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. US Association In 3 Phase Meter

US Association in 3 phase meter

By _Aparna_ , 28 October, 2023
Forums
Gurux.DLMS

Hi Mikko,

I can establish communication with single phase meter in all associations and PC, MR in 3 phase meter. But when trying in US i am getting the following error. I have checked passwords and they are correct as everything is working in guruxdirector perfectly.

COM11:9600 8NONE1
Authentication: 2
ClientAddress: 0x30
ServerAddress: 0x1
Standard: 1
Security: 48
System title: 56 41 52 30 30 30 30 31
Authentication key: 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
Block cipher key: 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
Dedicated key: 45 46 49 43 41 41 45 4E 53 4D 41 52 54 4C 54 44
TX: 11:06:51 7E A0 07 03 61 93 69 47 7E 8
RX: 11:06:52 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 8
TX: 11:06:52 7E A0 7C 03 61 10 AA 6B E6 E6 00 60 6E A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 56 41 52 30 30 30 30 31 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 DC C5 D3 66 41 5E 2E 21 AD 56 05 B6 50 33 3B DC BE 34 04 32 21 30 30 00 00 00 00 75 20 0A DE 67 38 73 2D 75 0F 73 1F 74 A8 4D 7E 0C EE 03 98 10 32 66 92 F2 2A 2D D5 06 7C DD 3D 5A 4B E6 C6 ED CE E5 A5 B6 4B B1 31 B8 7E 8
RX: 11:06:52 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 56 41 52 32 33 30 30 31 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 00 02 00 BC C0 78 9D 81 B9 12 9F 13 81 B9 39 D8 32 9D 0A AB AE FE 29 89 81 8C E6 D7 FE 76 7E 8
TX: 11:06:52 7E A0 3E 03 61 32 7B 46 E6 E6 00 CB 30 30 00 00 00 00 B7 20 DB 9B 2E 71 30 44 34 4A C2 4D 38 E0 0F 63 AB 7E 8B 5B 48 D8 BB 23 4A 6E BE DD 81 43 44 93 CB DF 94 76 50 69 E5 3A 97 F7 5E 45 E5 7E 8
Data send failed. Try to resend 1/3
RX: 11:06:58 7E A0 07 61 03 51 67 44 7E 8
parseApplicationAssociationResponse
Server did not accept CtoS.
Traceback (most recent call last):
File "c:\Users\aparna.p\Desktop\DLMS_Trash\connect.py", line 96, in <module>
connection()
File "c:\Users\aparna.p\Desktop\DLMS_Trash\connect.py", line 84, in connection
reader.initializeConnection()
File "C:\Users\aparna.p\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\GXDLMSReader.py", line 321, in initializeConnection
self.client.parseApplicationAssociationResponse(reply.data)
File "C:\Users\aparna.p\AppData\Local\Programs\Python\Python311\Lib\site-packages\gurux_dlms\GXDLMSClient.py", line 670, in parseApplicationAssociationResponse
raise Exception("parseApplicationAssociationResponse failed. " + " Server to Client do not match.")
Exception: parseApplicationAssociationResponse failed. Server to Client do not match.

This is how i have given settings
settings.client.ciphering.security= Security.AUTHENTICATION_ENCRYPTION
settings.client.ciphering.invocationCounter = 1000
settings.client.useLogicalNameReferencing = True
settings.client.standard = Standard.INDIA
settings.client.clientAddress = 48
settings.client.serverAddress = 1
settings.client.interfaceType = InterfaceType.HDLC
settings.client.ciphering.systemTitle = bytes("VAR00001", encoding="UTF-8")
settings.client.isAuthenticationRequired = SourceDiagnostic.AUTHENTICATION_REQUIRED
settings.client.authentication = Authentication.HIGH
settings.client.ciphering.blockCipherKey = bytes("9999999999999999", encoding="UTF-8")
settings.client.ciphering.authenticationKey = bytes("9999999999999999", encoding='UTF-8')
settings.client.ciphering.dedicatedKey = bytes("EFICAAENSMARTLTD", encoding="UTF-8")
settings.client.password = "VVVVVVVVVVVVVVVV"
settings.trace = TraceLevel.INFO
settings.outputFile = "output.xml"
client.settings.useCustomChallenge = True
client.settings.connected = ConnectionState.DLMS
settings.client.ciphering.Security = SecuritySuite.AES_GCM_128

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, Check your password. Are…

Hi,

Check your password. Are you reading the invocation counter with GXDLMSDirector? If you are, you need to add -V argument.

BR,
Mikko

_Aparna_

2 years 7 months ago

Hi Mikko, This is the output…

Hi Mikko,

I have used this command

python example.py -S COM11:9600:8None1 -c 48 -a High -v 0.0.43.1.0.255 -P VVVVVVVVVVVVVVVV -C AuthenticationEncryption -T 5641523030303031 -A 39393939393939393939393939393939 -B 39393939393939393939393939393939 -D 92288D3A30D12606F39ACC77B7C6832E -d India -w 1 -f 128 -t Verbose

This is the output when i tried to execute from command prompt.
gurux_dlms version: 1.0.145
gurux_net version: 1.0.20
gurux_serial version: 1.0.20
Authentication: 2
ClientAddress: 0x30
ServerAddress: 0x1
Standard: 1
Security: 48
System title: 56 41 52 30 30 30 30 31
Authentication key: 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
Block cipher key: 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
Dedicated key: 92 28 8D 3A 30 D1 26 06 F3 9A CC 77 B7 C6 83 2E
TX: 13:01:31 7E A0 07 03 21 93 0F 01 7E
TX: 13:01:31 7E A0 07 03 21 93 0F 01 7E 8
RX: 13:01: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
RX: 13:01: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 8
TX: 13:01: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
TX: 13:01: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 8
RX: 13:01:41 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 04 00 00 07 86 A1 7E
RX: 13:01:41 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 04 00 00 07 86 A1 7E 8
TX: 13:01:41 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 00 2B 01 00 FF 02 00 7D 8F 7E
TX: 13:01:41 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 00 2B 01 00 FF 02 00 7D 8F 7E 8
RX: 13:01:46 7E A0 11 21 03 52 B1 F8 E6 E7 00 C4 01 C1 01 04 CC F6 7E
RX: 13:01:46 7E A0 11 21 03 52 B1 F8 E6 E7 00 C4 01 C1 01 04 CC F6 7E 8
TX: 13:01:46 7E A0 15 03 61 54 0D 0F E6 E6 00 62 03 80 01 00 03 80 01 00 EB 86 7E
TX: 13:01:46 7E A0 15 03 61 54 0D 0F E6 E6 00 62 03 80 01 00 03 80 01 00 EB 86 7E 8
TX: 13:02:21 7E A0 07 03 61 53 65 81 7E
TX: 13:02:21 7E A0 07 03 61 53 65 81 7E 8
RX: 13:02:26 7E A0 07 61 03 1F 1D EF 7E
RX: 13:02:26 7E A0 07 61 03 1F 1D EF 7E 8
Access Error : Unknown error.
DisconnectRequest
Ended. Press any key to continue.
It seems that I dont have much dependency with invocation counter. As i dont have any differene if i add it or remove it while reading. I have checked password again and it is correct as per the team.

Thanks
Aparna

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, Can you add the…

Hi,

Can you add the GXDLMSDirector log as a hex so I can check what argument is different?

Only the connection log is important. Please, don't all anything else.

BR,
Mikko

_Aparna_

2 years 7 months ago

Hi Mikko, Please find the…

Hi Mikko,

Please find the connection log from guruxDirector.

19:59:29 Send SNRM request.
TX: 7E A0 07 03 61 93 69 47 7E
19:59:29
RX: 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

19:59:29 Send AARQ request.
TX: 7E A0 7C 03 61 10 AA 6B E6 E6 00 60 6E A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 56 41 52 30 30 30 30 31 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 62 72 77 69 17 70 41 68 0F 6E 76 4C 3C 71 42 22 BE 34 04 32 21 30 30 00 00 00 00 75 20 0A 09 09 FC 0A 5C E5 6C 3B BF A3 25 68 9D 86 39 69 98 10 32 66 92 F2 2A 4F D5 06 7C DD 4F EF C1 97 A6 E2 BC 99 3E 95 0F 15 F3 B0 7E
19:59:30
RX: 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 56 41 52 32 33 30 30 31 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 00 00 AF 2B 0B DF 4D 0F 73 D0 B7 15 EF 4A DC EB 42 FD 38 6C E0 05 4A CC 7F BC 91 8C 2B 46 7E

19:59:30 Authenticating.
TX: 7E A0 3E 03 61 32 7B 46 E6 E6 00 CB 30 30 00 00 00 01 90 16 10 61 D8 F2 66 05 6B BC 39 76 DE B7 BB 29 A0 13 0B 3D 6F D3 5C 88 3E 3B A4 5E DD 0D 14 6A BB 7A D7 0B 7A B2 F4 90 14 30 2B ED A7 7E
19:59:30
RX: 7E A0 37 61 03 52 0E 3A E6 E7 00 CF 29 30 00 00 00 01 62 1D D7 81 62 7F D8 61 71 1C A9 B0 9E 38 69 9C AD F6 C4 F7 9B 6A 58 13 3F 21 36 14 3C FF 59 91 F8 EF 83 DB 54 1B 7E

Thanks
Aparna

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, Remove -v 0.0.43.1.0.255…

Hi,

Remove -v 0.0.43.1.0.255. Your meter is not using the invocation counter.

BR,
Mikko

_Aparna_

2 years 7 months ago

Hi Mikko, I have executed…

Hi Mikko,

I have executed the command without invocation counter but still the issue persists. And here is the log.

SNRM
TX: 12:44:49 7E A0 07 03 61 93 69 47 7E
RX: 12:44:54 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 8

ARQ
TX: 12:44:54 7E A0 7C 03 61 10 AA 6B E6 E6 00 60 6E A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 56 41 52 30 30 30 30 31 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 2D B5 D2 D1 5F C7 6E 71 06 14 B7 61 E5 5A 88 2C BE 34 04 32 21 30 30 00 00 00 00 75 20 0A 09 09 FC 0A 5C E5 6C 3B BF A3 25 68 9D 86 39 69 98 10 32 66 92 F2 2A 2D D5 06 7C DD A8 54 8D C8 66 BA 4F 4E 43 9A AE D6 B7 45 7E
RX: 12:44:59 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 56 41 52 32 33 30 30 31 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 00 03 1D A0 38 D4 8C A5 AD CA 46 6E A8 7D 62 D3 04 D9 03 78 6C 19 E5 96 B8 5F 97 75 13 93 7E 8

Authentication/challenge
TX: 12:44:59 7E A0 3E 03 61 32 7B 46 E6 E6 00 CB 30 30 00 00 00 00 B7 20 DB 9B 2E 71 30 44 34 4A C2 4D 38 E0 0F 63 AB 7E 8B 5B 48 D8 BB 23 4A 6E BE DD 81 43 44 93 CB DF 94 76 50 69 E5 3A 97 F7 5E 45 E5 7E 8
RX: 12:45:14 7E 7E A0 07 61 03 51 67 44 7E 8 ------wrong frame as reply

Disconnect Request
TX: 12:45:14 7E A0 07 03 61 53 65 81 7E
RX: 12:45:19 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 8

Thanks
Aparna

_Aparna_

2 years 7 months ago

Hi Mikko, The same settings…

Hi Mikko,

The same settings are working as expected with single phase meter. Even i can download PC and MR with 3 phase meter. Not sure what additional changes that needs to done for US association. All the keys are correct and password is also correct as per the team. Can you confirm if there are additional settings that needs to be done?

Thanks
Aparna

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, The only thing that is…

Hi,

The only thing that is different between GXDLMSDirector and your Python traces is the value of the invocation counter. Set the value of the invocation counter to one like this:

self.client.ciphering.invocationCounter = 1

BR,
Mikko

_Aparna_

2 years 7 months ago

Hi Mikko, I have added…

Hi Mikko,

I have added invocation counter as suggested. But still the issue persists.

Thanks
Aparna

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, What authentication key…

Hi,

What authentication key you are using in GXDLMSDirector?

BR,
Mikko

_Aparna_

2 years 7 months ago

Hi Mikko, I am using…

Hi Mikko,

I am using authentication key and Block cipher Key as 9999999999999999.

Thanks
Aparna

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi, Get the version 1.0.146…

Hi,

Get the version 1.0.146. The default invocation counter value is changed from zero to one and ciphering invocation counter is increased in the same way as in C#. Let me know what happened.

BR,
Mikko

_Aparna_

2 years 6 months ago

Hi Mikko, That worked for me…

Hi Mikko,

That worked for me. Issue is resolved now. Thankyou for your assistance.

Regards
Aparna

Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi Aparna, Thank you for…

Hi Aparna,

Thank you for letting me know about this. I'm glad that you can read your meter now.

BR,
Mikko

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin