Skip to content

feat(serial): add UDS-over-serial (uartcan) virtual CAN vendor - #407

Open
crazy0104 wants to merge 1 commit into
ecubus:masterfrom
crazy0104:uds-on-serial
Open

crazy0104 wants to merge 1 commit into
ecubus:masterfrom
crazy0104:uds-on-serial

Conversation

@crazy0104

Copy link
Copy Markdown
Contributor

Adds a new CAN vendor that tunnels ISO 15765-2 (CAN-TP) traffic over a plain serial port, so the full UDS tester/sequence/trace toolchain can run without a real CAN transceiver, resolving #394.

  • src/main/docan/uartcan: CanBase implementation framing each CAN frame as a fixed 13-byte record (ID + DLC + 8-byte data) over UART, with resync-on-corruption and idle-timeout recovery.
  • Hardware page: Serial is now its own top-level group with two entries, Serial (raw UART) and UDS (the uartcan device).
  • Network page: new Serial interactive (IA) panel for hand-crafted raw byte sends, wired to both plain Serial and UDS devices.
  • Bundled example (resources/examples/uds_on_serial) simulating the ECU side in script so the multi-frame exchange can be seen in Trace with no external hardware.
  • Bilingual docs (en/zh) covering the wire format, device setup, and MCU-side bridge notes.

Adds a new CAN vendor that tunnels ISO 15765-2 (CAN-TP) traffic over a
plain serial port, so the full UDS tester/sequence/trace toolchain can
run without a real CAN transceiver, resolving ecubus#394.

- src/main/docan/uartcan: CanBase implementation framing each CAN
  frame as a fixed 13-byte record (ID + DLC + 8-byte data) over UART,
  with resync-on-corruption and idle-timeout recovery.
- Hardware page: Serial is now its own top-level group with two
  entries, Serial (raw UART) and UDS (the uartcan device).
- Network page: new Serial interactive (IA) panel for hand-crafted
  raw byte sends, wired to both plain Serial and UDS devices.
- Bundled example (resources/examples/uds_on_serial) simulating the
  ECU side in script so the multi-frame exchange can be seen in Trace
  with no external hardware.
- Bilingual docs (en/zh) covering the wire format, device setup, and
  MCU-side bridge notes.
@frankie-zeng

Copy link
Copy Markdown
Collaborator

不能增加UDS( the uartcan device)。 hardware界面只能是真是硬件设备。只能修改tester相关的代码。同时由于uart-tp,没有一个标准。是否可以支持自定义tp,而不是局限于 ID + DLC +data 的方式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants