Before commenting read Forum rules
Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
Before commenting read Forum rules
Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
Hello Mikko,
DLMS Director returns error when trying to read attribute 3 of IC 62 (0.0.66.0.61.255).
It is because of the value of "data_index", member of "capture_object" structure, is 0xE001.
From my point of view, the response is correct.
When data_item value is changed to 0, reading of attribute 3 is OK.
Note1- I think value 0xE001 does not oveflow int16.
Note2- data_index is defined as "long unsigned" in Blue Book, which should be uint16_t.
Could You tell me Your opinion, please?
Thank You.
Best Regards
Ondrej
This is captured log
(Exception text could be translated as "The value is either too big or small for int16 type"):
"
GXDLMSDirector 9.0.2210.0401
Log created 11:11:07
11:11:14 Read object type CompactData index: 3
7E A0 35 03 03 10 9B D2 E6 E6 00 DB 08 53 41 43 53 41 43 53 41 1E 30 00 00 00 00 B6 3A 72 99 E2 7C 36 6F 92 BC F2 73 7B 82 81 5D 62 A5 1E 56 9E F3 6F 7C FA CF 5E 7E
11:11:14
7E A8 89 03 03 30 11 5F E6 E7 00 DB 08 45 4C 47 30 31 32 33 34 81 B8 30 00 00 00 00 0F E4 04 3B 96 E5 00 40 61 46 F8 BE 05 85 46 AC 83 AC AB 27 E3 B4 66 9A A4 B8 89 4E CB CF E7 19 32 BF BB 19 3E 68 1D 75 AA B0 83 23 3F 06 B8 09 99 31 21 75 71 40 85 00 C5 A2 23 67 16 05 FB C0 54 AC 3F 74 0E 81 5D B4 26 B7 B9 C6 F5 C1 CF FD 49 F9 71 07 55 06 D4 FA 96 10 9A C7 91 79 CA 84 83 F6 E6 29 27 2B D5 77 12 75 79 37 D1 FD 7E
11:11:14 Get next frame.
11:11:14 Read object type CompactData index: 3
7E A0 07 03 03 31 94 97 7E
11:11:14
7E A0 50 03 03 32 38 27 AB 7D 88 7C E6 3B DB 54 EA 6D 76 4D B7 96 C6 E7 05 29 64 EB CC 97 2D EF 7C E7 36 66 9F C4 B4 FD 10 89 D1 3D E6 EA A5 D5 5C 44 43 FE 81 DE 97 09 27 1E C6 E7 1B 0F C1 6E 06 9E EF D9 B3 EF FB 5E 93 DB 99 57 A9 CD 7F AB 1F 7E
System.OverflowException: Pro typ Int16 byla hodnota buď příliš velká, nebo příliš malá.
v Gurux.DLMS.Objects.GXDLMSCompactData.SetCaptureObjects(GXDLMSSettings settings, List`1 list, IEnumerable`1 array)
v Gurux.DLMS.Objects.GXDLMSCompactData.Gurux.DLMS.Objects.IGXDLMSBase.SetValue(GXDLMSSettings settings, ValueEventArgs e)
v Gurux.DLMS.GXDLMSClient.UpdateValue(GXDLMSObject target, Int32 attributeIndex, Object value, List`1 columns)
v Gurux.DLMS.GXDLMSClient.UpdateValue(GXDLMSObject target, Int32 attributeIndex, Object value)
v GXDLMSDirector.GXDLMSCommunicator.Read(Object sender, GXDLMSObject obj, Boolean forceRead)
v GXDLMSDirector.MainForm.Read(Object sender, GXAsyncWork work, Object[] parameters)
"
This is trace log:
"
11:17:38
<!-- DLMS system title:
Manufacturer Code: SAC
Serial number: 4412225
-->
<!-- Invocation Counter: 0 -->
<!-- Decrypt data: C0 01 C1 00 3E 00 00 42 00 3D FF 03 00
<GetRequest>
<GetRequestNormal>
# Priority: High, ServiceClass: Confirmed, Invoke ID: 1
<InvokeIdAndPriority Value="C1" />
<AttributeDescriptor>
# CompactData
<ClassId Value="003E" />
# 0.0.66.0.61.255
<InstanceId Value="000042003DFF" />
# CaptureObjects
<AttributeId Value="03" />
</AttributeDescriptor>
</GetRequestNormal>
</GetRequest>
-->
<GeneralGloCiphering>
<SystemTitle Value="5341435341435341" />
<CipheredService Value="3000000000B63A7299E27C366F92BCF2737B82815D62A51E569EF36F7CFA" />
</GeneralGloCiphering>
11:17:38
<NextFrame Value="DB08454C47303132333481B830000000000FE4043B96E500406146F8BE058546AC83ACAB27E3B4669AA4B8894ECBCFE71932BFBB193E681D75AAB083233F06B8099931217571408500C5A223671605FBC054AC3F740E815DB426B7B9C6F5C1CFFD49F971075506D4FA96109AC79179CA8483F6E629272BD57712757937" />
11:17:38
<Command Value="NextFrame" />
11:17:38
<NextFrame Value="AB7D887CE63BDB54EA6D764DB796C6E7052964EBCC972DEF7CE736669FC4B4FD1089D13DE6EAA5D55C4443FE81DE9709271EC6E71B0FC16E069EEFD9B3EFFB5E93DB9957A9CD7F" />
"
Hi,
Hi,
You are right. The data index should be UInt16, not Int16. I created an issue from this and it's fixed for the next release.
https://www.gurux.fi/node/20280
BR,
Mikko
Hello Mikko, could You…
Hello Mikko,
could You please estimate the next DLMS Director release date?
Thank You.
Best Regards
Ondrej
Hi Ondrej, It's released…
Hi Ondrej,
It's released tomorrow.
BR,
Mikko
Hi, There was one fix that…
Hi,
There was one fix that needs to add for this release. The release day is changed to 1st of February.
BR,
Mikko