SID 0x36 Request Handling and Recovery

SID 0x36 Request Handling and Recovery A workflow diagram generated by Archify. EX / Negative Response 02 / Request Intake 03 / Sequential Validation 04 / Memory Write EX / Recovery 06 / Block Response 0x36 request handler NRC 0x7F / 0x22 / 0x33 · wrong session or locked · Negative Response › 0x36 request handler NRC 0x7F / 0x22 / 0x33 wrong session or locked NRC 0x22 · no transfer context · Negative Response › 0x36 request handler NRC 0x22 no transfer context NRC 0x24 · restart with new SID 0x34 · Negative Response › 0x36 request handler NRC 0x24 restart with new SID 0x34 NRC 0x13 · verify block size calculation · Negative Response › 0x36 request handler NRC 0x13 verify block size calculation NRC 0x93 / 0x92 / 0x31 · voltage or address range failure · Negative Response › 0x36 request handler NRC 0x93 / 0x92 / 0x31 voltage or address range failure Receive 0x36 request · byte 1: BSC, bytes 2-N: data · Request Intake › 0x36 request handler Receive 0x36 request byte 1: BSC, bytes 2-N: data Session + security pass? · 0x02 / 0x03, unlocked · Sequential Validation › 0x36 request handler Session + security pass? 0x02 / 0x03, unlocked Transfer context active? · opened by SID 0x34 / 0x35 · Sequential Validation › 0x36 request handler Transfer context active? opened by SID 0x34 / 0x35 BSC == expected? · expected starts at 0x01 · Sequential Validation › 0x36 request handler BSC == expected? expected starts at 0x01 Length == block size? · maxNumberOfBlockLength from 0x34 · Sequential Validation › 0x36 request handler Length == block size? maxNumberOfBlockLength from 0x34 Voltage + address OK? · 11.0 to 15.5 V example range · Sequential Validation › 0x36 request handler Voltage + address OK? 11.0 to 15.5 V example range Write data to memory · Memory Write › 0x36 request handler Write data to memory NRC 0x72 critical · SID 0x11 reset, restart from SID 0x10 · Recovery › 0x36 request handler NRC 0x72 critical SID 0x11 reset, restart from SID 0x10 Respond 0x76 + echoed BSC · increment first, wrap 0xFF to 0x01 · Block Response › 0x36 request handler Respond 0x76 + echoed BSC increment first, wrap 0xFF to 0x01 BSC mismatch out of range no context wrong length wrong session or locked write fails Legend Agent logic Policy