by providing following request from command line
C:\Users\fsn3kor\PycharmProjects\Smart_Meter\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python>python main.py -S COM9 -g 0.0.1.0.0.255:2 -c 48 -a High -P 0JK0CRSM01007488 -C AuthenticationEncryption -T 4C54434C49454E54 -A 31323334353637383930313233343536 -B 31323334353637383930313233343536 -v 0.0.43.1.3.255 -d India -w 1 -f 128 -t Verbose -o C:\\device.xml
Observed below response ,what might be the issue here
gurux_dlms version: 1.0.140
gurux_net version: 1.0.20
gurux_serial version: 1.0.20
Authentication: 2
ClientAddress: 0x30
ServerAddress: 0x1
Standard: 1
Security: 48
System title: 4C 54 43 4C 49 45 4E 54
Authentication key: 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
Block cipher key: 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
TX: 18:31:48 7E A0 07 03 21 93 0F 01 7E
RX: 18:31:48 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
TX: 18:31:48 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 40 1E 5D FF FF 91 23 7E
RX: 18:31:48 7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 10 03 0C 00 07 04 53 7E
TX: 18:31:48 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 00 2B 01 03 FF 02 00 B0 AA 7E
RX: 18:31:48 7E A0 15 21 03 52 5D 8A E6 E7 00 C4 01 C1 00 06 00 00 05 CD 2C 7B 7E
Invocation counter: 1486
DisconnectRequest
TX: 18:31:48 7E A0 07 03 21 53 03 C7 7E
RX: 18:31:48 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
TX: 18:31:48 7E A0 07 03 61 93 69 47 7E
RX: 18:31:49 7E A0 1E 61 03 73 B5 7C 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
TX: 18:31:49 7E A0 6B 03 61 10 2A FF E6 E6 00 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 4C 54 43 4C 49 45 4E 54 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 D7 9D 52 65 2D F6 4A 44 67 32 5F A6 C6 8B 26 A8 BE 23 04 21 21 1F 30 00 00 05 CE 52 49 2C C8 6C 8C BF F2 AA 57 50 D7 5F 19 0D 52 F0 0E 75 70 23 4D B7 1F E0 99 40 B6 7E
RX: 18:31:49 7E A0 77 61 03 30 AD 6C E6 E7 00 61 69 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 0E A4 0A 04 08 4C 4E 54 41 00 23 1C EB 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 BE 23 04 21 28 1F 30 00 00 04 2B C5 CE B0 33 87 77 37 09 60 CC B1 54 8F 30 17 A1 9C C9 2D 22 CE 98 AF F3 9D BE E9 85 7E
TX: 18:31:49 7E A0 3E 03 61 32 7B 46 E6 E6 00 CB 30 30 00 00 05 CE 90 48 ED C8 65 D3 A0 DE AA 17 B1 8B 5D 1C 40 C4 68 B5 D1 56 4F D4 26 70 D1 C1 45 ED B6 96 B9 C0 CB 06 60 17 37 7C 7F D4 BE 1C 37 BE 0B 7E
Data send failed. Try to resend 1/3
RX: 18:31:54 7E A0 07 61 03 51 67 44 7E
Server did not accept CtoS.
Traceback (most recent call last):
File "C:\Users\fsn3kor\PycharmProjects\Smart_Meter\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\main.py", line 92, in main
reader.initializeConnection()
File "C:\Users\fsn3kor\PycharmProjects\Smart_Meter\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\GXDLMSReader.py", line 319, in initializeConnection
self.client.parseApplicationAssociationResponse(reply.data)
File "C:\Users\fsn3kor\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\GXDLMSClient.py", line 667, in parseApplicationAssociationResponse
raise Exception("parseApplicationAssociationResponse failed. " + " Server to Client do not match.")
Exception: parseApplicationAssociationResponse failed. Server to Client do not match.
Ended. Press any key to continue.
Hi, Check your password. The…
Hi,
Check your password. The meter should reply error if the password is invalid, but the meter doesn't reply.
BR,
Mikko
Hi , The PW i'm using is -P…
Hi ,
The PW i'm using is -P 0JK0CRSM01007488, same thing is able to read from GXDLMS director.
But through python im still facing above error,could you please help on this ?
Hi, Update gurux_dlms to the…
Hi,
Update gurux_dlms to the latest version (1.0.146). There is one update that might solve your problem.
BR,
Mikko
Hi Kurumi, Thanks for the…
Hi Kurumi,
Thanks for the response.
I have updated the gurux_dlms,but i didn't see any difference in the response.
C:\Users\fsn3kor\PycharmProjects\DLMS_Python\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python>python main.py -S COM9 -g 0.0.1.0.0.255:2 -c 48 -a High -P 0BE04BCM01008219 -C AuthenticationEncryption -T 4C54434C49454E54 -A 31323334353637383930313233343536 -B 31323334353637383930313233343536 -v 0.0.43.1.3.255 -d India -w 1 -f 128 -t Verbose
gurux_dlms version: 1.0.140
gurux_net version: 1.0.20
gurux_serial version: 1.0.20
Authentication: 2
ClientAddress: 0x30
ServerAddress: 0x1
Standard: 1
Security: 48
System title: 4C 54 43 4C 49 45 4E 54
Authentication key: 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
Block cipher key: 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
TX: 12:06:36 7E A0 07 03 21 93 0F 01 7E
RX: 12:06:36 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
TX: 12:06:36 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 40 1E 5D FF FF 91 23 7E
RX: 12:06:37 7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 10 05 DC 00 07 91 97 7E
TX: 12:06:37 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 00 2B 01 03 FF 02 00 B0 AA 7E
RX: 12:06:37 7E A0 15 21 03 52 5D 8A E6 E7 00 C4 01 C1 00 06 00 00 02 1A 16 94 7E
Invocation counter: 539
DisconnectRequest
TX: 12:06:37 7E A0 07 03 21 53 03 C7 7E
RX: 12:06:37 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
TX: 12:06:37 7E A0 07 03 61 93 69 47 7E
RX: 12:06:37 7E A0 1E 61 03 73 B5 7C 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
TX: 12:06:37 7E A0 6B 03 61 10 2A FF E6 E6 00 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 4C 54 43 4C 49 45 4E 54 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 1E BC AA 3E D4 FF F8 8E 2E 17 05 74 00 1B 70 50 BE 23 04 21 21 1F 30 00 00 02 1B 5D C5 AA 06 49 41 17 FE A9 38 73 0C 89 47 A4 F4 92 8E 5B CB C9 B3 D6 39 CA 1D 08 50 7E
RX: 12:06:37 7E A0 77 61 03 30 AD 6C E6 E7 00 61 69 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 0E A4 0A 04 08 4C 4E 54 00 01 EC E0 5D 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 53 45 49 50 4C 2D 4C 54 45 41 2D 49 4E 44 49 41 BE 23 04 21 28 1F 30 00 00 01 E6 14 7A CC 0C 6C 34 4E 2B 13 62 D8 59 A4 F6 7D BE 27 DD 13 A7 F0 6B 0F CD 4D F6 AB 9E 7E
TX: 12:06:37 7E A0 3E 03 61 32 7B 46 E6 E6 00 CB 30 30 00 00 02 1B 9F C4 6B 06 40 1E 08 D2 A9 78 92 50 8D 92 7D 08 EB 45 BB 1A A0 79 67 27 08 81 5E EA 49 E6 23 CD B7 D5 7F D7 A2 06 72 8E D9 66 22 CB DF 7E
Data send failed. Try to resend 1/3
RX: 12:06:42 7E A0 07 61 03 51 67 44 7E
Server did not accept CtoS.
Traceback (most recent call last):
File "C:\Users\fsn3kor\PycharmProjects\DLMS_Python\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\main.py", line 92, in main
reader.initializeConnection()
File "C:\Users\fsn3kor\PycharmProjects\DLMS_Python\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\GXDLMSReader.py", line 318, in initializeConnection
self.client.parseApplicationAssociationResponse(reply.data)
File "C:\Users\fsn3kor\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\GXDLMSClient.py", line 667, in parseApplicationAssociationResponse
raise Exception("parseApplicationAssociationResponse failed. " + " Server to Client do not match.")
Exception: parseApplicationAssociationResponse failed. Server to Client do not match.
Ended. Press any key to continue.
C:\Users\fsn3kor\PycharmProjects\DLMS_Python\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python>
Hi, You are still using…
Hi,
You are still using gurux_dlms version: 1.0.140, not 1.0.146
You can update all versions running:
pip install -r requirements.txt --upgrade
BR,
Mikko