Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Node
  3. Optical port

Optical port

By labasvakaras, 1 June, 2023
Forums
Gurux.DLMS

Hello, i am trying to read data through optical port, but i have few questions:

1. Does meters always responds with all OBIS they have, when you write /?!\n\r.
2. Is it possible to read only one parameter instead of all?

I have two meters, both of them are responding everything they have instantly, when I write /?!\n\r

I am testing HDLCWithModeE.

Profile picture for user Kurumi

Kurumi

3 months 4 weeks ago

Hi, When you send /?!\n\r…

Hi,

When you send /?!\n\r the meter is using IEC 62056-21 Mode A (readout). In readout mode the meter returns some of the register values, but not all.

https://www.gurux.fi/DLMSCOSEMFAQ

If you want to read only one value you need to use IEC 62056-21 Mode C or DLMS.

With DLMS you can access the meter better, but it's not as easy as IEC 62056-21 Mode A.

If you want only to get some data from the meter it's the easiest if you get the readout and then parse needed the data. The bad side is that you can't write anything for the meter, for example, update the clock.

BR,
Mikko

labasvakaras

3 months 3 weeks ago

Tried as you said: on first…

Tried as you said:

on first iteration everything is fine.

I am sending /?!\n\r, I get:

2F 43 4C 45 35 5C 57 30 30 31 36 0D 0A

then communication starts with DLMS protocol. After i close socket:

[Debug ] TX: 7E A0 11 03 05 76 C4 7D E6 E6 00 62 03 80 01 00 BD 9B 7E
[Debug ] RX: 7E A0 11 05 03 96 C3 18 E6 E7 00 63 03 80 01 00 2C 0F 7E

[Debug ] TX: 7E A0 07 03 05 53 50 83 7E
[Debug ] RX: 7E A0 20 05 03 73 29 F8 81 80 14 05 02 01 00 06 02 01 00 07 04 00 00 00 01 08 04 00 00 00 01 69 6D 7E

I try to initiate again (with or without sending /?!\n\r), but i get:

7E A0 20 05 03 73 29 F8 81 80 14 05 02 01

is this normal DLMS payload?

Profile picture for user Kurumi

Kurumi

3 months 3 weeks ago

Hi, That looks like part of…

Hi,

That looks like part of the DLMS frame.

Some meters expect that you wait for a while before you can establish the connection again. Try to wait e.g. one minute and re-establish the connection.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Wed, 09/27/2023 - 13:50
gurux.dlms.c 20230927.1
Fri, 09/22/2023 - 19:50
gurux.dlms.c 20230922.1
Mon, 09/18/2023 - 13:51
Gurux.DLMS.AMI4 4.0.2309.1801
Fri, 09/15/2023 - 12:00
gurux.dlms.c 20230915.1
Tue, 09/12/2023 - 11:10
Gurux.DLMS.AMI4 4.0.2309.1201

Open bugs

gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1
Gurux.DLMS.Net
1

New forum topics

  • Billing Profile Data not getting With Range Selector
  • Unable to Fetch Data using Listener from SMART METER.
  • Not Enough Memory when reading data which does't fit into the max PDU size.
  • DateTime epoch conversion
  • DLMS Client for python
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin