CAN: UDS va ISO-TP
CAN traffic captured through a vehicle diagnostic port was saved in the candump -l format: can.log. Line: (vaqt) can0 ID#MA'LUMOT (data in hex). The log contains periodic background frames such as engine/ABS and UDS (ISO 14229) diagnostic sessions. The tester sends requests to 0x7E0, the engine ECU responds on 0x7E8; another unit uses 0x7E1 / 0x7E9.
Long responses are split using ISO-TP (ISO 15765-2): Single Frame (0x0L), First Frame (0x1L LL, total length 12 bits), Consecutive Frame (0x21..0x2F, 0x20, 0x21...), Flow Control (0x30). UDS: a positive response to a 0x22 DID request is 0x62 DID ma'lumot, a negative response is 0x7F SID NRC.
The positive response of the engine ECU to the custom identifier DID 0xF1A7 contains a flag in ASCII form. Assemble it from the log. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).