Hello,
please help. I fail to connect to Management Client. The message is "Index of array is out of bounds." It used to work in previous versions.
I am able to connect to Public Client.
Behaviour is the same for IP and HDLC connection.
Log:
Connect to Management Client via HDLC
9.0.2311.0602:
----------------------
7E A0 7 3 21 93 F 1 7E
7E A0 1E 21 3 73 C3 7A 81 80 12 5 1 80 6 1 80 7 4 0 0 0 1 8 4 0 0 0 1 53 3B 7E
7E A0 7 3 21 53 3 C7 7E
7E A0 1E 21 3 73 C3 7A 81 80 12 5 1 80 6 1 80 7 4 0 0 0 1 8 4 0 0 0 1 53 3B 7E
8.1.2019.3001:
---------------------
7E A0 7 3 21 93 F 1 7E
7E A0 1E 21 3 73 C3 7A 81 80 12 5 1 80 6 1 80 7 4 0 0 0 1 8 4 0 0 0 1 53 3B 7E
7E A0 2B 3 21 10 FB AF E6 E6 0 60 1D A1 9 6 7 60 85 74 5 8 1 1 BE 10 4 E 1 0 0 0 6 5F 1F 4 0 62 1E 5D FF FF 88 55 7E
7E A0 37 21 3 30 6C 7C E6 E7 0 61 29 A1 9 6 7 60 85 74 5 8 1 1 A2 3 2 1 0 A3 5 A1 3 2 1 0 BE 10 4 E 8 0 6 5F 1F 4 0 0 12 14 2 0 0 7 EA 8D 7E
7E A0 19 3 21 32 6F D8 E6 E6 0 C0 1 C1 0 1 0 0 2B 1 1 FF 2 0 C6 93 7E
7E A0 15 21 3 52 5D 8A E6 E7 0 C4 1 C1 0 6 0 0 0 25 D2 6E 7E
7E A0 7 3 21 53 3 C7 7E
7E A0 1E 21 3 73 C3 7A 81 80 12 5 1 80 6 1 80 7 4 0 0 0 1 8 4 0 0 0 1 53 3B 7E
7E A0 7 3 3 93 8C 11 7E
7E A0 1E 3 3 73 40 CC 81 80 12 5 1 80 6 1 80 7 4 0 0 0 1 8 4 0 0 0 1 53 3B 7E
Hi, This is a Public client,…
Hi,
This is a Public client, not a Management client. I did test this and it worked without problems. You need to check your code.
BR,
Mikko
Hello Mikko, no I assure You…
Hello Mikko,
no I assure You it is Management Client, if You do not believe I could send a video.
In version .601 connection to Management Client works OK, in .602 not.
This is Directors log:
GXDLMSDirector 9.0.2311.0602
Log created 8:34:18
08:34:20 Initializing serial connection.
8:34:22 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
8:34:22
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
08:34:22 Parsing UA reply succeeded.
08:34:22 Disconnect request
8:34:22 Disconnect request
7E A0 07 03 21 53 03 C7 7E
8:34:22
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
System.IndexOutOfRangeException: Index je mimo hranice pole.
v GXDLMSDirector.GXDLMSCommunicator.ReleaseRequest()
v GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
v GXDLMSDirector.GXDLMSDevice.InitializeConnection()
v GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
BR
Ondrej
...And this is .601 log of…
...And this is .601 log of the same action:
GXDLMSDirector 9.0.2308.1601
Log created 8:37:11
08:37:13 Initializing serial connection.
8:37:14 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
8:37:14
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
08:37:14 Parsing UA reply succeeded.
8:37:14 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 62 1E 5D FF FF 88 55 7E
8:37:14
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 12 14 02 00 00 07 EA 8D 7E
08:37:14 Parsing AARE reply succeeded.
8:37:14 Reading object 0.0.43.1.1.255, interface Data
7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 01 00 00 2B 01 01 FF 02 00 C6 93 7E
8:37:14
7E A0 15 21 03 52 5D 8A E6 E7 00 C4 01 C1 00 06 00 F0 07 6E 39 53 7E
08:37:14 Disconnect request
8:37:14 Disconnect request
7E A0 07 03 21 53 03 C7 7E
8:37:14
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:37:14 Send SNRM request.
7E A0 07 03 03 93 8C 11 7E
8:37:14
7E A0 1E 03 03 73 40 CC 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
08:37:14 Parsing UA reply succeeded.
Hi, Your client address is…
Hi,
Your client address is public access (0x10). Also, your authentication level is None.
This is public access, not the management client.
BR,
Mikko
<HDLC len="2A" >
<TargetAddress Value="1" />
<SourceAddress Value="10" />
<!-- AARQ frame. -->
<FrameType Value="10" />
<PDU>
<AssociationRequest>
<ApplicationContextName Value="LN" />
<InitiateRequest>
<ProposedDlmsVersionNumber Value="06" />
<ProposedConformance>
<ConformanceBit Name="GeneralProtection" />
<ConformanceBit Name="GeneralBlockTransfer" />
<ConformanceBit Name="DeltaValueEncoding" />
<ConformanceBit Name="BlockTransferWithGetOrRead" />
<ConformanceBit Name="BlockTransferWithSetOrWrite" />
<ConformanceBit Name="BlockTransferWithAction" />
<ConformanceBit Name="MultipleReferences" />
<ConformanceBit Name="Access" />
<ConformanceBit Name="Get" />
<ConformanceBit Name="Set" />
<ConformanceBit Name="SelectiveAccess" />
<ConformanceBit Name="Action" />
</ProposedConformance>
<ProposedMaxPduSize Value="FFFF" />
</InitiateRequest>
</AssociationRequest>
</PDU>
</HDLC>
Hello Mikko, Management…
Hello Mikko,
Management Client address is 0x01, access is "AuthenticationAndEncryption".
I think that Director uses Public Client to get frame counter before communication with Management Client ( tab Properties-SecuredConnections-InvocationCounter-FrameCounterLN).
BR
Ondrej
Hi, You need to change the…
Hi,
You need to change the authentication level. In your picture it's None and it's reserved for the public client.
GXDLMSDirector uses public client to read the invocation counter when needed and it's returned back after the read.
BR,
Mikko
Hello Mikko, OK, I have…
Hello Mikko,
OK, I have changed the Authentication to High GMAC. But the behaviour is the same. Note that "Index out of bounds" comes during initial phase- communication with Public Client (in examples above .601 Director succesfully reads frame counter while in .602 not).
Thank You.
BR
Ondrej
Hi Ondrej, I finally…
Hi Ondrej,
I finally realized what was causing this. You are using a pre-established connection.
This is now fixed and the new release is available.
Restart GXDLMSDirector or select "Help" and "Check released".
Let me know if you have any problems.
BR,
Mikko
Hello Mikko, the behaviour…
Hello Mikko,
the behaviour is a bit different, but not correct. The error message changed to "The Frame is not fully received. And this is the log:
"
GXDLMSDirector 9.0.2311.1001
Log created 6:36:36
06:36:40 Initializing serial connection.
6:36:41 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
6:36:41
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
06:36:41 Parsing UA reply succeeded.
06:36:41 Disconnect request
6:36:41 Disconnect request
7E A0 07 03 21 53 03 C7 7E
6:36:41
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
System.Exception: Frame is not fully received.
v GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
v GXDLMSDirector.GXDLMSDevice.InitializeConnection()
v GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
"
Best Regards
Ondrej
Hi Ondrej, This is tested…
Hi Ondrej,
This is tested with a pre-established meter and it worked as should be. Can you select "Verbose Mode" from the device settings and then add the log here so I can check what might cause this?
BR,
Mikko
Hello Mikko, of course, this…
Hello Mikko,
of course, this is the log:
GXDLMSDirector 9.0.2311.1001
Log created 9:22:03
09:22:05 Initializing serial connection.
09:22:05 09:22:05.907 Info Opening
09:22:05 09:22:05.922 Info Nastavení sériového portu: Název portu: COM6 Přenosová rychlost: 38400 Datové bity: 8 Parita: None Stop Bits: One Řízení toku: None Eop: None
09:22:05 09:22:05.938 Info Open
9:22:06 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
09:22:06 09:22:06.953 Sent 7E A0 07 03 21 93 0F 01 7E
09:22:07 09:22:07.000 Received 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
9:22:07
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
09:22:07 Parsing UA reply succeeded.
09:22:07 Disconnect request
9:22:07 Disconnect request
7E A0 07 03 21 53 03 C7 7E
09:22:07 09:22:07.000 Sent 7E A0 07 03 21 53 03 C7 7E
09:22:07 09:22:07.047 Received 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
09:22:07 09:22:07.063 Received 53 3B
9:22:07
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
09:22:07 09:22:07.063 Info Closing
09:22:07 09:22:07.188 Info Closed
System.Exception: Frame is not fully received.
v GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
v GXDLMSDirector.GXDLMSDevice.InitializeConnection()
v GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
...and this is another…
...and this is another attempt:
GXDLMSDirector 9.0.2311.1001
Log created 9:26:53
09:26:57 Initializing serial connection.
09:26:57 09:26:57.135 Info Opening
09:26:57 09:26:57.135 Info Nastavení sériového portu: Název portu: COM6 Přenosová rychlost: 38400 Datové bity: 8 Parita: None Stop Bits: One Řízení toku: None Eop: None
09:26:57 09:26:57.150 Info Open
9:26:58 Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
09:26:58 09:26:58.166 Sent 7E A0 07 03 21 93 0F 01 7E
09:26:58 09:26:58.212 Received 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
9:26:58
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
09:26:58 Parsing UA reply succeeded.
09:26:58 Disconnect request
9:26:58 Disconnect request
7E A0 07 03 21 53 03 C7 7E
09:26:58 09:26:58.212 Sent 7E A0 07 03 21 53 03 C7 7E
09:26:58 09:26:58.259 Received 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
9:26:58
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
09:26:58 09:26:58.259 Info Closing
09:26:58 09:26:58.384 Info Closed
System.Exception: Frame is not fully received.
v GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
v GXDLMSDirector.GXDLMSDevice.InitializeConnection()
v GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
Hello Mikko, I kindly ask…
Hello Mikko,
I kindly ask You if You have analyzed logs from previous posts.
I would like to solve the issue. Now I have to stay with version 601, but I would like to keep updated with latest version of Director.
Thank You.
Best Regards
Ondrej
Hi Ondrej, Get the version…
Hi Ondrej,
Get the version number 9.0.2312.0402. Let me know if you have any problems.
BR,
Mikko
Hello Mikko, sorry I cannot…
Hello Mikko,
sorry I cannot find the version.
It seems that the current version is 9.0.2311.1001.
BR
Ondrej