I've just started to use python's xmlclient and I used same cmd arguments as in "normal" gurux client. The problem is, when it starts to read Clock, there's "Data send failed" and it stops reading. Same issue happens when I added -x argument with GetClock.xml . Logs are below:
------------------------------------------------------------
Messages\LN\GetClock
Authentication: 1
ClientAddress: 0x1
ServerAddress: 0x1
TX: 09:22:48 00 01 00 01 00 01 00 38 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 31 32 33 34 35 36 37 38 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 40 1E 5D 01 92
RX: 09:22:48 00 01 00 01 00 01 00 2B 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 40 1E 1D 01 92 00 07
------------------------------------------------------------
<GetRequest>
<GetRequestNormal>
<InvokeIdAndPriority Value="129" />
<AttributeDescriptor>
<ClassId Value="0008" />
<InstanceId Value="0000010000FF" />
<AttributeId Value="02" />
</AttributeDescriptor>
</GetRequestNormal>
</GetRequest>
TX: 09:22:48 00 01 00 01 00 01 00 0D C0 01 81 00 08 00 00 01 00 00 FF 02 00
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3
RX: 09:23:03
And there's just exception at end:
raise TimeoutException("Failed to receive reply from the device in given time.")
What am I doing wrong? Cmd line (which worked in normal gurux client) below:
python main.py -r ln -c 1 -s 1 -h <ip> -p 3294 -i WRAPPER -t Verbose -a Low -P 12345678 -C None -d DLMS -L MCS -v 0.0.43.1.1.255 -o "GetClock.xml"
Update: I figured it out. In…
Update: I figured it out. In InvokeIdAndPriority it had wrong value, changed that and now works.