By 953313493@qq.com , 25 May, 2022 Forums General discussion I donot know if it is the bug , both in c# and python when use xml to read block or action block request I need to fix settings.command when to recv block like that , otherwise settings.command=none ``` def handleMethodResponse(cls, settings, data, index): type_ = int(data.data.getUInt8()) data.invokeId = data.data.getUInt8() if data.xml: data.xml.appendStartTag(Command.METHOD_RESPONSE) data.xml.appendStartTag(Command.METHOD_RESPONSE, type_) data.xml.appendLine(TranslatorTags.INVOKE_ID, None, data.xml.integerToHex(data.invokeId, 2)) if type_ == ActionResponseType.NORMAL: GXDLMS.handleActionResponseNormal(settings, data) elif type_ == 2: settings.command=0xc3 ##############################################fix to add it GXDLMS.handleActionResponseWithBlock(settings, data, index) elif type_ == 3: raise ValueError("Invalid Command.") error pdu like that if I do not fix it , loss cmd TX: 17:18:44 00 01 00 11 00 01 00 19 C3 01 C1 00 7B 00 00 12 00 00 FF 02 01 02 02 11 00 02 02 12 00 01 12 F4 47 RX: 17:18:44 00 01 00 01 00 11 02 57 C7 02 C1 00 00 00 00 01 82 02 4C 01 82 02 55 02 09 0A 01 30 0A 05 39 39 39 39 39 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 06 38 38 38 38 38 38 0A 01 32 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 35 0A 01 32 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 36 0A 01 32 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 37 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 38 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 02 31 39 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 33 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 34 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 35 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 36 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 37 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 38 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 31 39 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 32 30 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 32 31 0A 01 31 0A 00 0A 01 31 0A 0A 30 30 30 30 30 30 30 30 30 30 0A 00 0A 00 0A 00 02 09 0A 01 30 0A 03 32 TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 01 RX: 17:18:44 00 01 00 01 00 11 00 03 D8 02 05 TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 02 RX: 17:18:44 00 01 00 01 00 11 00 03 D8 02 05 TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 03 RX: 17:18:44 00 01 00 01 00 11 00 03 D8 02 05 TX: 17:18:44 00 01 00 11 00 01 00 04 00 00 00 04 Hi, Hi, You are right on this. Thank you for pointing that out. This is now fixed. Get the latest version. BR, Mikko
Hi, Hi, You are right on this. Thank you for pointing that out. This is now fixed. Get the latest version. BR, Mikko
Hi,
Hi,
You are right on this. Thank you for pointing that out. This is now fixed.
Get the latest version.
BR,
Mikko