Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

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

Breadcrumb

  1. Home
  2. Forums
  3. Read-write Error With Gurux Python Code

Read-write error with Gurux Python code

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By PrateekGoyal , 27 August, 2020
Forums
Gurux.DLMS

I am trying to read data from Landis+Gyr E150 meter using the Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python code.
I am sending the query:
python main.py -S /dev/ttyUSB3

On a lot of lines, I am getting "Device reports Read-Write denied". What is the meaning of this?
[Trace removed to simplify reading.]

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Those attributes are not implemented in the meter. Your meter doesn't support the time zone or DST.

The client example is improved. If the attribute is not readable it's not read. Get the latest version.

I'll remove trace because it's not needed.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

How to read the parameters

How to read the parameters like voltage, current, power etc?

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

If you can't see them you need to change authentication to Low. I believe that best way to start is if you install GXDLMSDirector and try to read your app with it.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

Miko, with your updated

Miko, with your updated python code on GitHub, the following problem is coming.
Error! Index: 7 can only concatenate str (not "int") to str
can only concatenate str (not "int") to str
Traceback (most recent call last):
File "/home/prateek/Documents/DLMS/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/GXDLMSReader.py", line 429, in getReadOut
self.writeTrace("Attribute" + pos + " is not readable.", TraceLevel.INFO)
TypeError: can only concatenate str (not "int") to str

And when I set the authentication to Low and give the password, with the query:
python main.py -S /dev/ttyUSB3 -a Low -P 11111111
This is the error: "Access Error : Device reports a hardware fault."

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

I'm sorry about this. This is now updated. Get the latest version.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

The code is working fine now,

Thanks, the code is working fine now, but how to read individual parameters with code. Because I am using Linux, and GXDLMSDirector runs on Windows.

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

You need to know what you want to read. You can read ex. the clock like this:
obj = GXDLMSClock("0.0.1.0.0.255")
val = self.read(obj, 2)
self.showValue(2, val)

The current example walks through all the objects and reads them all.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

Where shall I put this code

Where shall I put this code and what script to run?

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

You need to modify the source code. I believe that the best way to go is if you add -g parameter. It'll read the wanted object from the meter.

Example:
-g 0.0.1.0.0.255:2

This reads the current time from the meter.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

Yes, I was doing this only.

Yes, I was doing this only. But when I added some code with -g or -v, there was an error.

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

It might be that you can't access all the objects if you read your meter without authentication. Have you tried to connect using authentication? You can add -o parameter and save values to the XML file. You can then check if the object exists.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

Hi Mikko, I am getting this

Hi Mikko, I am getting this as xml response:
<?xml version="1.0" ?>
<Objects>
<GXDLMSAssociationLogicalName>
<LN>0.0.40.0.0.255</LN>
<Description>Ch. 0 Current association</Description>
<ClientSAP>16</ClientSAP>
<ServerSAP>1</ServerSAP>
<ApplicationContextName>
<JointIsoCtt>0</JointIsoCtt>
<Country>0</Country>
<CountryName>0</CountryName>
<IdentifiedOrganization>5</IdentifiedOrganization>
<DlmsUA>8</DlmsUA>
<ApplicationContext>1</ApplicationContext>
<ContextId>1</ContextId>
</ApplicationContextName>
<XDLMSContextInfo>
<Conformance>524288</Conformance>
<MaxReceivePduSize>100</MaxReceivePduSize>
<MaxSendPduSize>100</MaxSendPduSize>
<DlmsVersionNumber>6</DlmsVersionNumber>
<QualityOfService>0</QualityOfService>
<CypheringInfo/>
</XDLMSContextInfo>
<AuthenticationMechanismName>
<JointIsoCtt>0</JointIsoCtt>
<Country>0</Country>
<CountryName>0</CountryName>
<IdentifiedOrganization>5</IdentifiedOrganization>
<DlmsUA>8</DlmsUA>
<AuthenticationMechanismName>2</AuthenticationMechanismName>
<MechanismId>0</MechanismId>
</AuthenticationMechanismName>
<Secret/>
<AssociationStatus>2</AssociationStatus>
<SecuritySetupReference/>
</GXDLMSAssociationLogicalName>
<GXDLMSAssociationLogicalName>
<LN>0.0.40.0.1.255</LN>
<Description>Ch. 0 Association #1</Description>
<ClientSAP>16</ClientSAP>
<ServerSAP>1</ServerSAP>
<ApplicationContextName>
<JointIsoCtt>0</JointIsoCtt>
<Country>0</Country>
<CountryName>0</CountryName>
<IdentifiedOrganization>5</IdentifiedOrganization>
<DlmsUA>8</DlmsUA>
<ApplicationContext>1</ApplicationContext>
<ContextId>1</ContextId>
</ApplicationContextName>
<XDLMSContextInfo>
<Conformance>524288</Conformance>
<MaxReceivePduSize>100</MaxReceivePduSize>
<MaxSendPduSize>100</MaxSendPduSize>
<DlmsVersionNumber>6</DlmsVersionNumber>
<QualityOfService>0</QualityOfService>
<CypheringInfo/>
</XDLMSContextInfo>
<AuthenticationMechanismName>
<JointIsoCtt>0</JointIsoCtt>
<Country>0</Country>
<CountryName>0</CountryName>
<IdentifiedOrganization>5</IdentifiedOrganization>
<DlmsUA>8</DlmsUA>
<AuthenticationMechanismName>2</AuthenticationMechanismName>
<MechanismId>0</MechanismId>
</AuthenticationMechanismName>
<Secret/>
<AssociationStatus>2</AssociationStatus>
<SecuritySetupReference/>
</GXDLMSAssociationLogicalName>
<GXDLMSData>
<LN>0.0.42.0.0.255</LN>
<Description>Ch. 0 COSEM Logical device name</Description>
<Value Type="9" UIType="10">LGZ-LGC110/E150</Value>
</GXDLMSData>
<GXDLMSClock>
<LN>0.0.1.0.0.255</LN>
<Description>Ch. 0 Clock object #1</Description>
<Time>09/01/2020 10:20:50</Time>
<TimeZone>0</TimeZone>
<Status>0</Status>
<Begin/>
<End/>
<Deviation>0</Deviation>
<Enabled>0</Enabled>
<ClockBase>0</ClockBase>
</GXDLMSClock>
<GXDLMSData>
<LN>0.0.96.1.0.255</LN>
<Description>Ch. 0 Device ID 1, manufacturing number</Description>
<Value Type="10">26755917 </Value>
</GXDLMSData>
</Objects>

Can it be that I can't read voltage, current etc because I am not providing any client or server address?

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

As I told in the previous topic, you try to connect without authentication. You need to change the authentication level and client address. I believe it will help you and you can see more objects.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

With authentication, both

With authentication, both High and Low, I am getting this error: python main.py -S /dev/ttyUSB2 -a Low -P 11111111
gurux_dlms version: 1.0.93
gurux_net version: 1.0.17
gurux_serial version: 1.0.15
Authentication: Authentication.LOW
ClientAddress: 0x10
ServerAddress: 0x1
Standard: Standard.DLMS
DisconnectRequest
Access Error : Device reports a hardware fault.
Ended. Press any key to continue.

Is it possible to get the client or server address, because the manufacturer is not willing to give.

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Sounds interesting if you have bought the meter and the manufacturer is now willing to give the address.

We have two options.
1. If you have a manufacturer's application and you can get the trace I can get the address info from there.
2. If you are sure from the password you can try with different client addresses. Add parameter -c and start address from 1. This will take some time, but client address is usually quite small.
Indian standard is using values 32, 48, 64, and 80.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

1. Is only address enough and

1. Is only address enough and how can you help me in getting the trace?
2. Is there any method to check whether the password is correct or not?

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

You need a sniffer to get a trace. If you are using TCP/IP connection you can use Wireshark. If you are using the serial port you need serial port monitor application.

If the password is wrong meter returns an error.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

This was the trace I got when

This was the trace I got when I pinged the instantaneous parameter values from the L&G official software:

[01/09/2020 12:33:42] Read data (COM19)
7e a0 0a 41 00 02 04 01 1f 75 ba 7e ~ .A.....uº~
[01/09/2020 12:33:51] Read data (COM19)
7e a0 23 41 00 02 04 01 73 a5 31 81 80 14 05 02 ~ #A....s¥1€...
00 7e 06 02 00 7e 07 04 00 00 00 01 08 04 00 00 .~...~..........
00 01 3e 8d 7e ..>~
[01/09/2020 12:33:51] Read data (COM19)
7e a0 3a 41 00 02 04 01 30 ca b5 e6 e7 00 61 29 ~ :A....0ʵæç.a)
a1 09 06 07 60 85 74 05 08 01 01 a2 03 02 01 00 ¡...`…t....¢....
a3 05 a1 03 02 01 00 be 10 04 0e 08 00 06 5f 1f £.¡....¾......_.
04 00 00 10 14 00 64 00 07 e6 da 7e ......d..æÚ~
[01/09/2020 12:33:52] Read data (COM19)
7e a0 25 41 00 02 04 01 52 e3 59 e6 e7 00 c4 01 ~ %A....RãYæç.Ä.
81 00 0a 10 32 36 37 35 35 39 31 37 20 20 20 20 ...26755917
20 20 20 20 5d 97 7e ]—~
[01/09/2020 12:33:52] Read data (COM19)
7e a0 21 41 00 02 04 01 74 a1 72 e6 e7 00 c4 01 ~ !A....t¡ræç.Ä.
81 00 09 0c 07 e4 09 01 02 0c 22 09 ff 80 00 00 ....ä....".ÿ€..
36 d0 7e 6Ð~
[01/09/2020 12:33:52] Read data (COM19)
7e a0 29 41 00 02 04 01 96 51 68 e6 e7 00 c4 01 ~ )A....–Qhæç.Ä.
81 00 09 14 2a 36 38 2e 35 30 32 34 30 30 31 30 ...*68.50240010
30 36 30 43 46 32 72 42 41 16 7e 060CF2rBA.~
[01/09/2020 12:33:52] Read data (COM19)
7e a0 1f 41 00 02 04 01 b8 aa 2e e6 e7 00 c4 01 ~ .A....¸ª.æç.Ä.
81 00 0a 0a 4c 61 6e 64 69 73 2b 47 79 72 f1 6f ...Landis+Gyrño
7e ~
[01/09/2020 12:33:53] Read data (COM19)
7e a0 25 41 00 02 04 01 da a3 51 e6 e7 00 c4 01 ~ %A....Ú£Qæç.Ä.
81 00 0a 10 32 36 37 35 35 39 31 37 20 20 20 20 ...26755917
20 20 20 20 5d 97 7e ]—~
[01/09/2020 12:33:53] Read data (COM19)
7e a0 1f 41 00 02 04 01 fc 8a 2a e6 e7 00 c4 01 ~ .A....üŠ*æç.Ä.
81 00 0a 0a 4c 61 6e 64 69 73 2b 47 79 72 f1 6f ...Landis+Gyrño
7e ~
[01/09/2020 12:33:53] Read data (COM19)
7e a0 18 41 00 02 04 01 1e 8e 29 e6 e7 00 c4 01 ~ .A.....Ž)æç.Ä.
81 00 0a 03 30 30 31 80 9d 7e ...001€~
[01/09/2020 12:33:54] Read data (COM19)
7e a0 16 41 00 02 04 01 30 d3 67 e6 e7 00 c4 01 ~ .A....0Ógæç.Ä.
81 00 0a 01 35 80 4c 7e 7e a0 14 41 00 02 04 01 ...5€L~~ .A....
52 7c 10 e6 e7 00 c4 01 81 01 03 05 84 7e R|.æç.Ä....„~
[01/09/2020 12:33:54] Read data (COM19)
7e a0 17 41 00 02 04 01 74 26 fc e6 e7 00 c4 01 ~ .A....t&üæç.Ä.
81 00 0a 02 43 33 54 3c 7e ...C3T<~
[01/09/2020 12:33:54] Read data (COM19)
7e a0 16 41 00 02 04 01 96 ef a7 e6 e7 00 c4 01 ~ .A....–ï§æç.Ä.
81 00 12 07 e3 bc e8 7e 7e a0 14 41 00 02 04 01 ...ã¼è~~ .A....
b8 28 58 e6 e7 00 c4 01 81 01 03 05 84 7e ¸(Xæç.Ä....„~
[01/09/2020 12:33:55] Read data (COM19)
7e a0 29 41 00 02 04 01 da 39 e0 e6 e7 00 c4 01 ~ )A....Ú9àæç.Ä.
81 00 09 14 2a 36 38 2e 35 30 32 34 30 30 31 30 ...*68.50240010
30 36 30 43 46 32 72 42 41 16 7e 060CF2rBA.~
[01/09/2020 12:33:55] Read data (COM19)
7e a0 1c 41 00 02 04 01 fc e4 82 e6 e7 00 c4 01 ~ .A....ü䂿ç.Ä.
81 00 0a 07 31 30 2d 36 30 20 41 b5 1c 7e 7e a0 ...10-60 Aµ.~~ 
14 41 00 02 04 01 1e 14 98 e6 e7 00 c4 01 81 01 .A......˜æç.Ä..
03 05 84 7e 7e a0 14 41 00 02 04 01 30 68 50 e6 ..„~~ .A....0hPæ
e7 00 c4 01 81 01 03 05 84 7e ç.Ä....„~
[01/09/2020 12:33:56] Read data (COM19)
7e a0 24 41 00 02 04 01 52 36 c6 e6 e7 00 c4 01 ~ $A....R6Ææç.Ä.
81 00 09 0f 01 01 01 01 01 01 01 01 01 01 01 00 ...............
00 00 00 67 37 7e 7e a0 14 41 00 02 04 01 74 48 ...g7~~ .A....tH
54 e6 e7 00 c4 01 81 01 03 05 84 7e Tæç.Ä....„~
[01/09/2020 12:33:57] Read data (COM19)
7e a0 75 41 00 02 04 01 96 04 ab e6 e7 00 c4 02 ~ uA....–.«æç.Ä.
81 00 00 00 00 01 00 5c 01 07 02 04 12 00 01 09 ......\........
06 00 00 60 01 00 ff 0f 02 12 00 00 02 04 12 00 ...`..ÿ.........
01 09 06 00 00 60 01 01 ff 0f 02 12 00 00 02 04 .....`..ÿ.......
12 00 01 09 06 01 00 00 02 00 ff 0f 02 12 00 00 ..........ÿ.....
02 04 12 00 01 09 06 00 00 5e 5b 09 ff 0f 02 12 .........^[.ÿ...
00 00 02 04 12 00 01 09 06 00 00 5e 5b 0b ff 0f ...........^[.ÿ.
02 12 00 00 fa a3 7e ....ú£~
[01/09/2020 12:33:57] Read data (COM19)
7e a0 3d 41 00 02 04 01 b8 92 7a e6 e7 00 c4 02 ~ =A....¸’zæç.Ä.
81 01 00 00 00 02 00 24 02 04 12 00 01 09 06 00 ......$........
00 5e 5b 0c ff 0f 02 12 00 00 02 04 12 00 01 09 .^[.ÿ...........
06 00 00 60 01 04 ff 0f 02 12 00 00 20 ed 7e ...`..ÿ..... í~
[01/09/2020 12:33:57] Read data (COM19)
7e a0 4d 41 00 02 04 01 da ca 2b e6 e7 00 c4 01 ~ MA....ÚÊ+æç.Ä.
81 00 01 01 02 07 0a 10 32 36 37 35 35 39 31 37 .......26755917
20 20 20 20 20 20 20 20 0a 0a 4c 61 6e 64 69 73 ..Landis
2b 47 79 72 0a 03 30 30 31 0a 01 35 0a 02 43 33 +Gyr..001..5..C3
0a 07 31 30 2d 36 30 20 41 12 07 e3 3f 1a 7e ..10-60 A..ã?.~
[01/09/2020 12:33:58] Read data (COM19)
7e a0 75 41 00 02 04 01 fc 58 67 e6 e7 00 c4 02 ~ uA....üXgæç.Ä.
81 00 00 00 00 01 00 5c 01 18 02 04 12 00 08 09 ......\........
06 00 00 01 00 00 ff 0f 02 12 00 00 02 04 12 00 ......ÿ.........
03 09 06 01 00 0c 07 00 ff 0f 02 12 00 00 02 04 ........ÿ.......
12 00 03 09 06 01 00 0b 07 00 ff 0f 02 12 00 00 ..........ÿ.....
02 04 12 00 03 09 06 01 00 5b 07 00 ff 0f 02 12 .........[..ÿ...
00 00 02 04 12 00 03 09 06 01 00 0d 07 00 ff 0f ..............ÿ.
02 12 00 00 5c c7 7e ....\Ç~
[01/09/2020 12:33:58] Read data (COM19)
7e a0 73 41 00 02 04 01 1e 89 fb e6 e7 00 c4 02 ~ sA.....‰ûæç.Ä.
81 00 00 00 00 02 00 5a 02 04 12 00 03 09 06 01 ......Z........
00 0e 07 00 ff 0f 02 12 00 00 02 04 12 00 03 09 ....ÿ...........
06 01 00 09 07 00 ff 0f 02 12 00 00 02 04 12 00 ......ÿ.........
03 09 06 01 00 01 07 00 ff 0f 02 12 00 00 02 04 ........ÿ.......
12 00 03 09 06 01 00 01 08 00 ff 0f 02 12 00 00 ..........ÿ.....
02 04 12 00 03 09 06 01 00 09 08 00 ff 0f 02 12 ............ÿ...
00 00 90 35 7e ..5~
[01/09/2020 12:33:59] Read data (COM19)
7e a0 73 41 00 02 04 01 30 f5 33 e6 e7 00 c4 02 ~ sA....0õ3æç.Ä.
81 00 00 00 00 03 00 5a 02 04 12 00 04 09 06 01 ......Z........
00 01 06 00 ff 0f 02 12 00 00 02 04 12 00 04 09 ....ÿ...........
06 01 00 01 06 00 ff 0f 05 12 00 00 02 04 12 00 ......ÿ.........
04 09 06 01 00 09 06 00 ff 0f 02 12 00 00 02 04 ........ÿ.......
12 00 04 09 06 01 00 09 06 00 ff 0f 05 12 00 00 ..........ÿ.....
02 04 12 00 03 09 06 00 00 5e 5b 0e ff 0f 02 12 .........^[.ÿ...
00 00 0b e4 7e ...ä~
[01/09/2020 12:33:59] Read data (COM19)
7e a0 73 41 00 02 04 01 52 e1 73 e6 e7 00 c4 02 ~ sA....Rásæç.Ä.
81 00 00 00 00 04 00 5a 02 04 12 00 01 09 06 00 ......Z........
00 5e 5b 00 ff 0f 02 12 00 00 02 04 12 00 01 09 .^[.ÿ...........
06 00 00 00 01 00 ff 0f 02 12 00 00 02 04 12 00 ......ÿ.........
01 09 06 00 00 60 02 00 ff 0f 02 12 00 00 02 04 .....`..ÿ.......
12 00 03 09 06 01 00 03 07 00 ff 0f 02 12 00 00 ..........ÿ.....
02 04 12 00 03 09 06 01 00 05 08 00 ff 0f 02 12 ............ÿ...
00 00 b1 78 7e ..±x~
[01/09/2020 12:34:00] Read data (COM19)
7e a0 61 41 00 02 04 01 74 a7 b5 e6 e7 00 c4 02 ~ aA....t§µæç.Ä.
81 01 00 00 00 05 00 48 02 04 12 00 03 09 06 00 ......H........
00 60 01 dd ff 0f 02 12 00 00 02 04 12 00 01 09 .`.Ýÿ...........
06 00 00 60 02 c4 ff 0f 02 12 00 00 02 04 12 00 ...`.Äÿ.........
03 09 06 00 00 60 09 80 ff 0f 02 12 00 00 02 04 .....`.€ÿ.......
12 00 03 09 06 00 00 5e 5b 08 ff 0f 02 12 00 00 .......^[.ÿ.....
ee 41 7e îA~
[01/09/2020 12:34:00] Read data (COM19)
7e a0 74 41 00 02 04 01 96 d1 34 e6 e7 00 c4 02 ~ tA....–Ñ4æç.Ä.
81 00 00 00 00 01 00 5b 01 01 02 18 09 0c 07 e4 ......[.......ä
09 01 02 0c 22 11 ff 80 00 00 12 57 82 06 00 00 ....".ÿ€...W‚...
00 00 06 00 00 00 00 10 00 00 12 01 f4 06 00 00 ............ô...
00 00 05 00 00 00 00 06 00 00 0d d1 06 00 00 0d ...........Ñ....
d1 12 00 00 09 0c 00 00 00 00 ff 00 00 ff ff 80 Ñ.........ÿ..ÿÿ€
00 00 12 00 00 09 0c 00 00 00 00 ff 00 00 ff ff ...........ÿ..ÿÿ
80 00 00 2d 77 7e €..-w~
[01/09/2020 12:34:00] Read data (COM19)
7e a0 58 41 00 02 04 01 b8 b4 2e e6 e7 00 c4 02 ~ XA....¸´.æç.Ä.
81 01 00 00 00 02 00 3f 06 00 02 ac 24 06 00 00 ......?...¬$...
00 02 06 00 00 00 0c 12 00 00 05 00 00 00 00 06 ................
00 00 00 00 06 00 00 00 00 0a 14 34 34 30 32 31 ...........44021
30 39 33 34 39 32 31 32 34 36 34 36 36 33 34 10 093492124646634.
01 61 06 00 05 09 ff 3b 96 7e .a....ÿ;–~
[01/09/2020 12:34:01] Read data (COM19)
7e a0 75 41 00 02 04 01 da 6c 23 e6 e7 00 c4 02 ~ uA....Úl#æç.Ä.
81 00 00 00 00 01 00 5c 01 11 02 04 12 00 03 09 ......\........
06 01 00 0c 07 00 ff 0f 03 12 00 00 02 04 12 00 ......ÿ.........
03 09 06 01 00 0b 07 00 ff 0f 03 12 00 00 02 04 ........ÿ.......
12 00 03 09 06 01 00 5b 07 00 ff 0f 03 12 00 00 .......[..ÿ.....
02 04 12 00 03 09 06 01 00 0d 07 00 ff 0f 03 12 ............ÿ...
00 00 02 04 12 00 03 09 06 01 00 0e 07 00 ff 0f ..............ÿ.
03 12 00 00 d0 e4 7e ....Ðä~
[01/09/2020 12:34:01] Read data (COM19)
7e a0 73 41 00 02 04 01 fc 95 3f e6 e7 00 c4 02 ~ sA....ü•?æç.Ä.
81 00 00 00 00 02 00 5a 02 04 12 00 03 09 06 01 ......Z........
00 09 07 00 ff 0f 03 12 00 00 02 04 12 00 03 09 ....ÿ...........
06 01 00 01 07 00 ff 0f 03 12 00 00 02 04 12 00 ......ÿ.........
03 09 06 01 00 01 08 00 ff 0f 03 12 00 00 02 04 ........ÿ.......
12 00 03 09 06 01 00 09 08 00 ff 0f 03 12 00 00 ..........ÿ.....
02 04 12 00 04 09 06 01 00 01 06 00 ff 0f 03 12 ............ÿ...
00 00 a3 ab 7e ..£«~
[01/09/2020 12:34:02] Read data (COM19)
7e a0 73 41 00 02 04 01 1e 89 fb e6 e7 00 c4 02 ~ sA.....‰ûæç.Ä.
81 00 00 00 00 03 00 5a 02 04 12 00 04 09 06 01 ......Z........
00 09 06 00 ff 0f 03 12 00 00 02 04 12 00 03 09 ....ÿ...........
06 00 00 5e 5b 0e ff 0f 03 12 00 00 02 04 12 00 ...^[.ÿ.........
03 09 06 01 00 03 07 00 ff 0f 02 12 00 00 02 04 ........ÿ.......
12 00 03 09 06 01 00 05 08 00 ff 0f 03 12 00 00 ..........ÿ.....
02 04 12 00 03 09 06 00 00 60 01 dd ff 0f 03 12 .........`.Ýÿ...
00 00 f2 0b 7e 7e a0 3d 41 00 02 04 01 30 d2 72 ..ò.~~ =A....0Òr
e6 e7 00 c4 02 81 01 00 00 00 04 00 24 02 04 12 æç.Ä.......$...
00 03 09 06 00 00 60 09 80 ff 0f 03 12 00 00 02 ......`.€ÿ......
04 12 00 03 09 06 00 00 5e 5b 08 ff 0f 03 12 00 ........^[.ÿ....
00 5e 0a 7e .^.~
[01/09/2020 12:34:02] Read data (COM19)
7e a0 7d 41 00 02 04 01 52 c0 f5 e6 e7 00 c4 02 ~ }A....RÀõæç.Ä.
81 00 00 00 00 01 00 64 01 01 02 11 02 02 0f fe ......d.......þ
16 23 02 02 0f fd 16 21 02 02 0f fd 16 21 02 02 .#...ý.!...ý.!..
0f fe 16 ff 02 02 0f ff 16 2c 02 02 0f fe 16 1c .þ.ÿ...ÿ.,...þ..
02 02 0f fe 16 1b 02 02 0f 01 16 1e 02 02 0f 01 ...þ............
16 1f 02 02 0f 01 16 1b 02 02 0f 01 16 1c 02 02 ................
0f 00 16 06 02 02 0f fe 16 1d 02 02 0f 01 16 20 .......þ.......
02 02 0f 01 16 1e 02 02 0f ff 16 09 28 d6 7e 7e .........ÿ..(Ö~~
a0 1f 41 00 02 04 01 74 ca 22 e6 e7 00 c4 02 81  .A....tÊ"æç.Ä.
01 00 00 00 02 00 06 02 02 0f 00 16 06 8d 82 7e .............‚~
7e a0 0a 41 00 02 04 01 73 1f 13 7e ~ .A....s..~

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Try with parameters -c 32 -s 16640

BR,
Mikko

PrateekGoyal

5 years 9 months ago

Command - python main.py -S

Command - python main.py -S COM20 -c 32 -s 16640
Response -
gurux_dlms version: 1.0.93
gurux_net version: 1.0.17
gurux_serial version: 1.0.15
Authentication: Authentication.NONE
ClientAddress: 0x20
ServerAddress: 0x4100
Standard: Standard.DLMS
DisconnectRequest

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Can you add -t Verbose

Can you add -t Verbose parameter and add the trace?

BR,
Mikko

PrateekGoyal

5 years 9 months ago

python main.py -S COM17 -c 32

python main.py -S COM17 -c 32 -s 16640 -t Verbose
gurux_dlms version: 1.0.93
gurux_net version: 1.0.17
gurux_serial version: 1.0.15
Authentication: Authentication.NONE
ClientAddress: 0x20
ServerAddress: 0x4100
Standard: Standard.DLMS
TX: 11:34:52 7E A0 0A 00 02 04 01 41 93 22 D0 7E
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 11:35:07
DisconnectRequest

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Your data is correct. Check baud-rate. Because the meter is not reply anything it might be wrong.

BR,
Mikko

PrateekGoyal

5 years 9 months ago

It is 9600, checked with the

It is 9600, checked with the manufacturer.

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

With another application, you are using serial port COM19 and with python COM17. Is this correct?

Can you read the meter with GXDLMSDirector?

BR,
Mikko

PrateekGoyal

5 years 9 months ago

It is just I have connected a

It is just I have connected a USB hub, and sometimes I connect to it's random port so COM is not a problem. Let me try with GXDLMSDirector.

mekam srilatha

3 years 2 months ago

In reply to With authentication, both by PrateekGoyal

Sir can I know the…

Sir can I know the authentication password for landis gyr E150

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin