EDS v1.7.4 — ISO-TP TX frame padding
What's new
ISO-TP TX frame padding (ISOTP_TX_PADDING)
Opt-in padding of transmitted SF, CF, FC, and CAN FD FF frames per ISO 15765-2 Annex B. Unused bytes are filled with 0xCC and DLC is extended to the next valid frame size. Default off — zero behaviour change for existing integrations.
| Frame | Padding off | Padding on |
|---|---|---|
| Classic CAN SF | DLC = length+1 | DLC = 8, tail = 0xCC |
| CAN FD SF | DLC = length+2 | DLC = next valid FD DLC |
| Classic CAN FF | DLC = 8 (unchanged) | DLC = 8 (already full) |
| CAN FD FF escape | DLC = 6+data | DLC = next valid FD DLC |
| Classic CAN CF | DLC = bytes+1 | DLC = 8, tail = 0xCC |
| FC | DLC = 3 | DLC = 8, bytes [3..7] = 0xCC |
Zephyr: CONFIG_ISOTP_TX_PADDING=y in prj.conf
FreeRTOS / bare-metal: -DISOTP_TX_PADDING=1 compiler flag
See docs/ISOTP_PADDING.md for full reference.
Closes #29.
Upgrade
# west.yml
- name: eds
url: https://github.com/Xaloqi/EDS
revision: v1.7.4