Skip to content

Fix ash decoder when running late on EZSP/ASH frames input #52

Open
@lionelains

Description

@lionelains

ASH decoder fails to decode properly.
To reproduce this, run the lib in a debugger, break on the initialization of the lib (anywhere between start() and the run state).
If more than GP report is received, you will get an ASH decoding error.
This is either because multiple frames are sent to the decoder at once (low probability) or because frames are not acknowledges by the lib and thus retransmitted several times by the NCP (more likely).

CAsh::decode ERROR
Reading from serial port: 66 ee fe c6 63 2b e1 76 a0 24 14 c3 dc 6b 8f ff ee 16 dd d7 6d 8c 46 02 75 e1 9e 39 7e 26 7f b1 57 54 ef 6a 61 3f 94 72 25 fe 55 aa 49 c8 4e e2 a9 ec ce 66 ed fe c6 63 2b b8 de ec 5b 14 c3 dc
Writing to serial port: 82 50 3a 7e
Asynchronous received EZSP message
CLibEzspMain::handleEzspRxMessage EZSP_GPEP_INCOMING_MESSAGE_HANDLER
Searching source ID 0x540038
... not found
I know no key for this source ID
EZSP_GPEP_INCOMING_MESSAGE_HANDLER status : UNDOCUMENTED_UNKNOWN_KEY_FOR_SOURCE_ID, link : d4, sequence number : 65, gp address : CGpFrame: { [link_value: 0xd4][sequence_number: 0x65][source_id: 00540038][security: 2][key_type: 1][auto_commissioning: N][rx_after_tx: Y][security_frame_counter: 00000365][command_id: a2][mic: 839f081d][proxy_table_entry: 0xff][payload:02 04 00 00 29 cd 08 05 04 00 00 21 dc 0d] }
Reading from serial port: 6b 8f ff ee 17 dd d7 6d 8c 46 02 70 e1 c4 c8 7e 36 7f b1 57 54 ef 6a 66 3e 94 72 25 fe 55 aa 49 c8 4e e2 a9 ec ce 66 ec fe c6 63 2b 62 62 bc 02 14 c3 dc 6b 8f ff ee 15 dd d7 6d 8c 46 02 42 e1
Writing to serial port: 83 40 1b 7e
Asynchronous received EZSP message
CLibEzspMain::handleEzspRxMessage EZSP_GPEP_INCOMING_MESSAGE_HANDLER
Searching source ID 0x540038
... not found
I know no key for this source ID
EZSP_GPEP_INCOMING_MESSAGE_HANDLER status : UNDOCUMENTED_UNKNOWN_KEY_FOR_SOURCE_ID, link : d3, sequence number : 66, gp address : CGpFrame: { [link_value: 0xd3][sequence_number: 0x66][source_id: 00540038][security: 2][key_type: 1][auto_commissioning: N][rx_after_tx: Y][security_frame_counter: 00000366][command_id: a2][mic: fcd3a044][proxy_table_entry: 0xff][payload:02 04 00 00 29 cc 08 05 04 00 00 21 d9 0d] }
Reading from serial port: 17 d7 7e 46 7f b1 57 54 ef 6a 66 31 94 72 25 fe 55 aa 49 c8 4e e2 a9 ec ce 66 e3 fe c6 63 2b ce a2 26 fd 14 c3 dc 6b 8f ff ee 14 dd d7 6d 8c 46 02 bb e2 3c 2b 7e c2 02 51 a8 bd 7e c2 02 51 a8
Writing to serial port: 84 30 fc 7e
Asynchronous received EZSP message
CLibEzspMain::handleEzspRxMessage EZSP_GPEP_INCOMING_MESSAGE_HANDLER
Searching source ID 0x540038
... not found
I know no key for this source ID
EZSP_GPEP_INCOMING_MESSAGE_HANDLER status : UNDOCUMENTED_UNKNOWN_KEY_FOR_SOURCE_ID, link : d4, sequence number : 67, gp address : CGpFrame: { [link_value: 0xd4][sequence_number: 0x67][source_id: 00540038][security: 2][key_type: 1][auto_commissioning: N][rx_after_tx: Y][security_frame_counter: 00000367][command_id: a2][mic: a5831c9e][proxy_table_entry: 0xff][payload:02 04 00 00 29 ce 08 05 04 00 00 21 eb 0d] }
Writing to serial port: 85 20 dd 7e
Asynchronous received EZSP message
CLibEzspMain::handleEzspRxMessage EZSP_GPEP_INCOMING_MESSAGE_HANDLER
Searching source ID 0x540038
... not found
I know no key for this source ID
EZSP_GPEP_INCOMING_MESSAGE_HANDLER status : UNDOCUMENTED_UNKNOWN_KEY_FOR_SOURCE_ID, link : d4, sequence number : 68, gp address : CGpFrame: { [link_value: 0xd4][sequence_number: 0x68][source_id: 00540038][security: 2][key_type: 1][auto_commissioning: N][rx_after_tx: Y][security_frame_counter: 00000368][command_id: a2][mic: 5a19dc32][proxy_table_entry: 0xff][payload:02 04 00 00 29 cf 08 05 04 00 00 21 12 0e] }
CAsh::decode ERROR
Reading from serial port: bd 7e c2 02 51 a8 bd 7e c2 02 51 a8 bd 7e c2 02 51 a8 bd 7e c2 02 51 a8 bd 7e
CAsh::decode ERROR
CAsh::decode ERROR
CAsh::decode ERROR
CAsh::decode ERROR
CAsh::decode ERROR
Reading from serial port: c2 02 51 a8 bd 7e c2 02 51 a8 bd 7e c2 02 51 a8 bd 7e
CAsh::decode ERROR
CAsh::decode ERROR
CAsh::decode ERROR
ASH timeout while connected

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions