pre-established application association problem

6 posts / 0 new
Last post
miacovella
pre-established application association problem

After the last 2 upgrade of DLMSDirector i have a problem with pre-established Application Associations.
I have a serie of meters configured with pre-established AA (client 1) and server system title of 8 byte (like 8305678802000403).
After the last upgrades the check for pre-established AA in the Secured connections tab of Device properties result unchecked, but in the entries there is the correct System title i have originally configured and if i connect to the meter the connection work like before
But if i re-check pre-established AA and press ok then i get the error message "Invalid server system title. Server system title must be 8 bytes long.".
Then when reopen the Device properties the check for pre-established AA result unchecked and the system title result like this 38333035363738383032303030343033.
At this point if i try to connect to the meter, after the connection whit the public client for retrive the invocation counter in the log i see a new AARQ this time whit sender client 1 that the meter obviously reject.

Thanks.
Mauro Iacovella.

Kurumi
Kurumi's picture

Hi Mauro,

Thank you for this info. I'll check this and let you know ASAP.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Kurumi
Kurumi's picture

Hi,

This is fixed. Update to the latest version.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

miacovella

The problem i was experimenting is partially resolved.
After the last upgrade when in the Secured connections tab of Device properties i check pre-established AA and press ok i don't get the error message anymore and when reopen the Device properties
the system title is correct, but the check for pre-established AA result unchecked and if i try to connect to the meter, after the connection whit the public client for retrive the invocation counter in the log i see a new AARQ this time whit sender client 1 that the meter obviously reject.

The situation is this:
I open my original .gxc file with the configurations of my meters with pre-established Application Association with client 1. If i connect to a meter the communication work perfectly.

This is the log of a connect and a GET

GXDLMSDirector 8.1.2103.1001
Log created 15:24:09
15:24:38 Initializing serial connection.
15:24:38 03:24:38.882 Info Opening
15:24:38 03:24:38.883 Info Serial Port Settings: Port Name: COM3 Baud Rate: 9600 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
15:24:39 03:24:39.038 Info Open
15:24:40 Send SNRM request.
7E A0 20 03 21 93 7D D9 81 80 14 05 02 02 30 06 02 02 30 07 04 00 00 00 01 08 04 00 00 00 01 3C 19 7E
15:24:40 03:24:40.040 Sent 7E A0 20 03 21 93 7D D9 81 80 14 05 02 02 30 06 02 02 30 07 04 00 00 00 01 08 04 00 00 00 01 3C 19 7E
15:24:40 03:24:40.228 Received 7E A0 20
15:24:40 03:24:40.243 Received 20 21 03 73 73 98 81 80 14 05 02 02 00
15:24:40 03:24:40.260 Received 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F
15:24:40 03:24:40.275 Received EF
15:24:40
7E A0 20 21 03 73 73 98 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:24:40 Parsing UA reply succeeded.
15:24:40 Send AARQ request.
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 02 9F 02 30 AD 3A 7E
15:24:40 03:24:40.276 Sent 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 02 9F 02 30 AD 3A 7E
15:24:40 03:24:40.484 Received 7E A0 37 21 03 30 6C 7C E6 E7
15:24:40 03:24:40.499 Received E7 00 61 29 A1 09 06
15:24:40 03:24:40.515 Received 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E
15:24:40 03:24:40.531 Received 08 00 06 5F 1F 04 00 00 02 14 01 F8 00 07 61
15:24:40 03:24:40.547 Received A0
15:24:40
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 02 14 01 F8 00 07 61 A0 7E
15:24:40 Parsing AARE reply succeeded.
15:24:40 Reading object 0.1.43.1.1.255, interface Data
7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 01 2B 01 01 FF 02 00 13 0C 7E
15:24:40 03:24:40.548 Sent 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 01 2B 01 01 FF 02 00 13 0C 7E
15:24:40 03:24:40.739 Received 7E A0 15 21 03 52 5D 8A E6 E7 00 C4 01
15:24:40 03:24:40.746 Received 01 C1 00 06 80 00 01
15:24:40 03:24:40.762 Received 1A 10 93
15:24:40
7E A0 15 21 03 52 5D 8A E6 E7 00 C4 01 C1 00 06 80 00 01 1A 10 93 7E
15:24:40 Disconnect request
15:24:40 Disconnect request
7E A0 07 03 21 53 03 C7 7E
15:24:40 03:24:40.763 Sent 7E A0 07 03 21 53 03 C7 7E
15:24:40 03:24:40.938 Received 7E A0 07 21 03 73 01 40 7E
15:24:40
7E A0 07 21 03 73 01 40 7E
15:24:40 Send SNRM request.
7E A0 20 03 03 93 FE C9 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:24:40 03:24:40.939 Sent 7E A0 20 03 03 93 FE C9 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:24:41 03:24:41.130 Received 7E A0 20 03 03
15:24:41 03:24:41.146 Received 03 73 F0 2E 81 80 14 05 02 02 00
15:24:41 03:24:41.162 Received 07 04 00 00 00 01 08 04 00 00 00 01 6F EF
15:24:41
7E A0 20 03 03 73 F0 2E 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:24:41 Parsing UA reply succeeded.
15:25:05 Read object type Data index: 2
7E A0 35 03 03 10 9B D2 E6 E6 00 DB 08 53 41 43 53 41 43 53 41 1E 30 80 00 01 1B ED 5A 42 AB CD 03 2A 1B D7 78 F1 75 34 26 63 D0 46 03 DD E9 4C 38 BC 37 8B 87 75 7E
15:25:05 03:25:05.134 Sent 7E A0 35 03 03 10 9B D2 E6 E6 00 DB 08 53 41 43 53 41 43 53 41 1E 30 80 00 01 1B ED 5A 42 AB CD 03 2A 1B D7 78 F1 75 34 26 63 D0 46 03 DD E9 4C 38 BC 37 8B 87 75 7E
15:25:05 03:25:05.416 Received 7E A0 31 03 03 30
15:25:05 03:25:05.430 Received 30 75 81 E6 E7 00 DB 08 83 05 67
15:25:05 03:25:05.446 Received 1A 30 00 00 01 22 52 5E 24 A6 38 8A 85 4A
15:25:05 03:25:05.462 Received C8 78 A2 69 E9 19 33 8B 15 9F 86 68 FB AC B8
15:25:05
7E A0 31 03 03 30 75 81 E6 E7 00 DB 08 83 05 67 88 02 00 04 03 1A 30 00 00 01 22 52 5E 24 A6 38 8A 85 4A C8 78 A2 69 E9 19 33 8B 15 9F 86 68 FB AC B8 7E

Then i disconnect, open the Device properties, click cancel or check pre-established and click OK or whatever and reconnect to the meter the connection fail because DLMSDirector try to establish an explicit Application Association.

This is the log

GXDLMSDirector 8.1.2103.1001
Log created 15:34:58
15:35:02 Initializing serial connection.
15:35:02 03:35:02.510 Info Opening
15:35:02 03:35:02.510 Info Serial Port Settings: Port Name: COM3 Baud Rate: 9600 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
15:35:02 03:35:02.619 Info Open
15:35:03 Send SNRM request.
7E A0 20 03 21 93 7D D9 81 80 14 05 02 02 30 06 02 02 30 07 04 00 00 00 01 08 04 00 00 00 01 3C 19 7E
15:35:03 03:35:03.619 Sent 7E A0 20 03 21 93 7D D9 81 80 14 05 02 02 30 06 02 02 30 07 04 00 00 00 01 08 04 00 00 00 01 3C 19 7E
15:35:05 Failed to receive reply from the device in given time.
15:35:05 Disconnect request
15:35:05 Send Disconnect request.
7E A0 07 03 21 53 03 C7 7E
15:35:05 03:35:05.620 Sent 7E A0 07 03 21 53 03 C7 7E
15:35:05 03:35:05.788 Received 7E A0 07 21 03 73 01 40 7E
15:35:05
7E A0 07 21 03 73 01 40 7E
15:35:05 Send SNRM request.
7E A0 20 03 21 93 7D D9 81 80 14 05 02 02 30 06 02 02 30 07 04 00 00 00 01 08 04 00 00 00 01 3C 19 7E
15:35:05 03:35:05.789 Sent 7E A0 20 03 21 93 7D D9 81 80 14 05 02 02 30 06 02 02 30 07 04 00 00 00 01 08 04 00 00 00 01 3C 19 7E
15:35:05 03:35:05.980 Received 7E A0 20 21 03 73
15:35:05 03:35:05.996 Received 73 73 98 81 80 14 05 02 02 00
15:35:06 03:35:06.012 Received 04 00 00 00 01 08 04 00 00 00 01 6F EF
15:35:06
7E A0 20 21 03 73 73 98 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:35:06 Parsing UA reply succeeded.
15:35:06 Send AARQ request.
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 02 9F FF FF 26 C8 7E
15:35:06 03:35:06.012 Sent 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 02 9F FF FF 26 C8 7E
15:35:06 03:35:06.220 Received 7E A0 37 21 03 30 6C 7C E6
15:35:06 03:35:06.236 Received E6 E7 00 61 29 A1 09 06
15:35:06 03:35:06.252 Received A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04
15:35:06 03:35:06.268 Received 0E 08 00 06 5F 1F 04 00 00 02 14 01 F8 00 07
15:35:06 03:35:06.284 Received 61 A0
15:35:06
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 02 14 01 F8 00 07 61 A0 7E
15:35:06 Parsing AARE reply succeeded.
15:35:06 Reading object 0.1.43.1.1.255, interface Data
7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 01 2B 01 01 FF 02 00 13 0C 7E
15:35:06 03:35:06.284 Sent 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 01 2B 01 01 FF 02 00 13 0C 7E
15:35:06 03:35:06.476 Received 7E A0 15 21 03 52 5D 8A E6 E7 00 C4 01
15:35:06 03:35:06.492 Received 01 C1 00 06 80 00 01 1F BD C4
15:35:06
7E A0 15 21 03 52 5D 8A E6 E7 00 C4 01 C1 00 06 80 00 01 1F BD C4 7E
15:35:06 Disconnect request
15:35:06 Disconnect request
7E A0 07 03 21 53 03 C7 7E
15:35:06 03:35:06.492 Sent 7E A0 07 03 21 53 03 C7 7E
15:35:06 03:35:06.652 Received 7E
15:35:06 03:35:06.668 Received 7E A0 07 21 03 73 01 40
15:35:06
7E A0 07 21 03 73 01 40 7E
15:35:06 Send SNRM request.
7E A0 20 03 03 93 FE C9 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:35:06 03:35:06.668 Sent 7E A0 20 03 03 93 FE C9 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:35:06 03:35:06.860 Received 7E A0 20 03 03 73
15:35:06 03:35:06.876 Received 73 F0 2E 81 80 14 05 02 02 00
15:35:06 03:35:06.892 Received 04 00 00 00 01 08 04 00 00 00 01 6F EF
15:35:06
7E A0 20 03 03 73 F0 2E 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
15:35:06 Parsing UA reply succeeded.
15:35:06 Send AARQ request.
7E A0 57 03 03 10 09 72 E6 E6 00 60 49 A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 53 41 43 53 41 43 53 41 8A 02 07 80 8B 07 60 85 74 05 08 02 00 BE 23 04 21 21 1F 30 80 00 01 20 3A A0 2B 7D C2 0E A8 DD CF BC 9B 7B F9 80 47 B9 8A 05 8D 5C 67 2E CA 30 0B AA BE 8B 7E
15:35:06 03:35:06.893 Sent 7E A0 57 03 03 10 09 72 E6 E6 00 60 49 A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 53 41 43 53 41 43 53 41 8A 02 07 80 8B 07 60 85 74 05 08 02 00 BE 23 04 21 21 1F 30 80 00 01 20 3A A0 2B 7D C2 0E A8 DD CF BC 9B 7B F9 80 47 B9 8A 05 8D 5C 67 2E CA 30 0B AA BE 8B 7E
15:35:07 03:35:07.164 Received 7E A0 2D 03 03 30
15:35:07 03:35:07.180 Received 30 E0 D5 E6 E7 00 DB 08 83 05
15:35:07 03:35:07.196 Received 03 16 30 00 00 01 28 34 98 8B 26 8D 81 40 90 F6
15:35:07 03:35:07.212 Received 92 03 E5 8C 5D 83 D1 43 31 DF
15:35:07
7E A0 2D 03 03 30 E0 D5 E6 E7 00 DB 08 83 05 67 88 02 00 04 03 16 30 00 00 01 28 34 98 8B 26 8D 81 40 90 F6 92 03 E5 8C 5D 83 D1 43 31 DF 7E
15:35:07 03:35:07.218 Info Closing
15:35:07 03:35:07.333 Info Closed
Gurux.DLMS.GXDLMSExceptionResponse: Exception response. ""-exception. Operation not possible
in Gurux.DLMS.GXDLMS.HandleExceptionResponse(GXReplyData data)
in Gurux.DLMS.GXDLMS.GetPdu(GXDLMSSettings settings, GXReplyData data, GXDLMSClient client)
in Gurux.DLMS.GXDLMS.HandleGloDedResponse(GXDLMSSettings settings, GXReplyData data, Int32 index, GXDLMSClient client)
in Gurux.DLMS.GXDLMS.GetPdu(GXDLMSSettings settings, GXReplyData data, GXDLMSClient client)
in Gurux.DLMS.GXDLMS.GetData(GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data, GXReplyData notify, GXDLMSClient client)
in Gurux.DLMS.GXDLMSClient.GetData(GXByteBuffer reply, GXReplyData data, GXReplyData notify)
in GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
in GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, Int32 tryCount, GXReplyData reply)
in GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, GXReplyData reply)
in GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, GXReplyData reply)
in GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[][] data, String text, GXReplyData reply)
in GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
in GXDLMSDirector.GXDLMSDevice.InitializeConnection()
in GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)

Kurumi
Kurumi's picture

Hi,

I was able to repeat this using your instructions and I know the reason for this. I created an issue and the new version from GXDLMSDirector is released today.

https://www.gurux.fi/node/18083

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Kurumi
Kurumi's picture

Hi,

This is now fixed and a new version is released.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi