rnd-ash / ecu_diagnostics

A Rust crate for ECU diagnostic protocols (UDS / KWP)
GNU General Public License v3.0
170 stars 28 forks source link

J2534-2 implement CAN_MIXED_FORMAT #8

Open rnd-ash opened 2 years ago

rnd-ash commented 2 years ago

Needed for some J2534 devices for ISO-TP.

When an ECU responds with an ISO-TP frame that is not padded with 00 eg:

01A4: [02 10 20 76 54 32 10 99]

The adapter will reject this frame as ISO-TP as it expected the following formatted message:

01A4: [02 10 20 00 00 00 00 00]

Sending an IOCTL SET_CONFIG request of CAN_MIXED_FORMAT to the adapters ISO-TP channel will allow it to read and accept these ISO-TP frames