Hi, Mikko,
I've searched almost all the forum topics regarding "pre-established" AA, but didn't find the similar situation I'm meeting.
I tried indian standard of PUSH association which needs this pre-established AA.
In secured connections, I ticked "pre-established system" and set the HEX value of 8 bytes of server system title.
I input the value of invocation counter which I had read by public Client, I'm sure the invocation counter is more than the actual value.
But I got the following log:
14:55:49 Send SNRM request.
7E A0 07 03 81 93 F0 AE 7E
14:55:49
7E A0 20 81 03 73 A4 97 81 80 14 05 02 03 40 06 02 03 40 07 04 00 00 00 01 08 04 00 00 00 01 B7 29 7E
14:55:49 Parsing UA reply succeeded.
14:55:51 --- Collecting objects. ---
14:55:51 Collecting objects
7E A0 20 03 81 10 11 C0 E6 E6 00 C8 12 20 00 00 10 9A 93 99 99 2A 1A 9D 6D 25 23 9D 11 B0 7B FA 3E 7E
14:55:51
7E A0 0F 81 03 30 91 DA E6 E7 00 D8 02 03 46 4A 7E
System.Exception: GetObjects failed. Exception response. "Service unknown"-exception. Other reason
在 GXDLMSDirector.MainForm.RefreshDevice(GXDLMSMeter dev, Boolean bRefresh)
在 GXDLMSDirector.MainForm.Refresh(Object sender, GXAsyncWork work, Object[] parameters)
If I use GUI tool, the get objects-GetRequestNormal is as below,and the association objects can be retrieved successfully:
7EA0290381107239E6E600DB0852454E3030303030122000000FFCE585AF689CB52F989A39118EAD1DE97E
Comparing the 2 get objects packets, I found GXDLMSDIrector didn't send the system title in the packet.
Am I right or is there any configuration missing?
Thanks,
Jimmy Lau
Hi Jimmy, You need to set…
Hi Jimmy,
You need to set the meter system title as a Pre-established system title for the "Secured Connections" tab.
Make also sure that you have checked "General Protection" from the "Supported services" tab.
BR,
Mikko
Thanks for your prompt…
Thanks for your prompt answer, Mikko.
System title is correct. I missed ticking the "General Protection". Now I ticked it, and I can connect the meter.
But the new question is:
1) If I ticked Invocation Counter "read automatically" with LN:0.0.43.1.4.255, when I connect the meter, it's in disconnect mode
17:27:51 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
17:27:51
7E A0 20 21 03 73 73 98 81 80 14 05 02 03 40 06 02 03 40 07 04 00 00 00 01 08 04 00 00 00 01 B7 29 7E
17:27:51 Parsing UA reply succeeded.
17:27:51 Disconnect request
Data send failed. Try to resend 1/3
17:27:56 Data send failed. Try to resend 1/3
7E A0 07 03 81 53 FC 68 7E
17:27:56
7E A0 20 21 03 73 73 98 81 80 14 05 02 03 40 06 02 03 40 07 04 00 00 00 01 08 04 00 00 00 01 B7 29 7E 7E A0 07 81 03 1F BC E6 7E
Gurux.DLMS.GXDLMSException: Disconnect mode.
在 GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
在 GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
在 GXDLMSDirector.GXDLMSDevice.InitializeConnection()
在 GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
2) If I explicitly input the invocation counter, I can connect the meter sucessfully. But if I want to read data, I had to input the invocation counter value again manually while in connected situation it's not possible to configure any setting of secured connection.
Jimmy Lau
Thanks for your prompt…
Thanks for your prompt answer, Mikko.
System title is correct. I missed ticking the "General Protection". Now I ticked it, and I can connect the meter.
But the new question is:
1) If I ticked Invocation Counter "read automatically" with LN:0.0.43.1.4.255, when I connect the meter, it's in disconnect mode
17:27:51 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
17:27:51
7E A0 20 21 03 73 73 98 81 80 14 05 02 03 40 06 02 03 40 07 04 00 00 00 01 08 04 00 00 00 01 B7 29 7E
17:27:51 Parsing UA reply succeeded.
17:27:51 Disconnect request
Data send failed. Try to resend 1/3
17:27:56 Data send failed. Try to resend 1/3
7E A0 07 03 81 53 FC 68 7E
17:27:56
7E A0 20 21 03 73 73 98 81 80 14 05 02 03 40 06 02 03 40 07 04 00 00 00 01 08 04 00 00 00 01 B7 29 7E 7E A0 07 81 03 1F BC E6 7E
Gurux.DLMS.GXDLMSException: Disconnect mode.
在 GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
在 GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
在 GXDLMSDirector.GXDLMSDevice.InitializeConnection()
在 GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
2) If I explicitly input the invocation counter, I can connect the meter sucessfully. But if I want to read data, I had to input the invocation counter value again manually while in connected situation it's not possible to configure any setting of secured connection.
Jimmy Lau
image attached. The…
image attached.
The invocation counter not increased accordingly when "Read".
Best Regards,
Jimmy Lau
Hi, Update to the latest…
Hi,
Update to the latest version. Pre-established connection is not used when the invocation counter is read. I believe it will solve your problem.
https://gurux.fi/release/gxdlmsdirector-9024052801
BR,
Mikko
Hi, Mikko, Thanks a lot for…
Hi, Mikko,
Thanks a lot for your quick action.
I've updated to latest version 9024052803. And I can connect successfully without ticking read automatically the invocation counter.
But when I try to read data, I still have to give a correct value of invocation counter before the above correct. If the invocation counter is correct, i can get the data in the PUSH association successfully.
Then I save this gxc file, it gives the prompt message meaning "error found when generating XML file", then the gxc file is damaged.
Best Regards,
Jimmy Lau
Hi, You said that you have…
Hi,
You said that you have read the invocation counter from 0.0.43.1.4.255. There might be multiple invocation counters. Make sure that you use the correct IV counter.
Make the connection for the meter and read all IV counter data objects. Check where the value is near 6053 and use that logical name to read the IV counter value automatically.
BR,
Mikko
Hi, Mikko, I've tried also…
Hi, Mikko,
I've tried also to read automatically the invocation counter. And it works perfectly now. Thanks!
The last question is after reading the PushSetup data in PUSH association, the reading is OK, when
I saved the gxc file after the reading, it gives the prompt message meaning "error found when generating XML file", then the gxc file is damaged which means it cannot be opened successfully again. The data retrieved from the meter is as attached.
Best Regards,
Jimmy Lau
Hi, Can you add a screenshot…
Hi,
Can you add a screenshot from the Objects tab? Your Destination also looks odd. It's usually TCP/IP address. Now I don't know what it is.
BR,
Mikko