Documentation Index
Fetch the complete documentation index at: https://motorbridge.seeedstudio.com/llms.txt
Use this file to discover all available pages before exploring further.
Source:
tools/reliability/README.mdReliability Validation (Minimum Loop)
Channel Compatibility (PCAN + slcan + Damiao Serial Bridge)
- Linux SocketCAN uses interface names directly:
can0,can1,slcan0. - For USB-serial CAN adapters, bring up
slcan0first:sudo slcand -o -c -s8 /dev/ttyUSB0 slcan0 && sudo ip link set slcan0 up. - Damiao-only serial bridge transport is also available in CLI (
--transport dm-serial --serial-port /dev/ttyACM0 --serial-baud 921600). - Full Damiao serial-bridge interface list and command patterns are documented in
motor_cli/README.md(section3.6inmotor_cli/README.zh-CN.md). - On Linux SocketCAN, do not append bitrate in
--channel(for examplecan0@1000000is invalid). - On Windows (PCAN backend),
can0/can1map toPCAN_USBBUS1/2; optional@bitratesuffix is supported.
- endurance (long-run control/read loop)
- error/timeout behavior (automated unit tests + manual HIL checks)
- disconnect/recovery (manual HIL steps)
- cross-platform scan consistency (Linux vs Windows)
1) Endurance
Run one command repeatedly and generate a JSON report: Windows (PCAN) example:can0 or slcan0):
slcan0 regression (recommended):
tools/reliability/templates/linux_slcan_endurance_4340p.jsontools/reliability/templates/linux_slcan_endurance_rs00_vel.json
fail == 0success_rate == 1.0
thresholds.max_failthresholds.min_success_rate
2) Error/Timeout Injection
Automated coverage is incargo test --workspace --all-targets:
- bus read error path (
CoreController) - Damiao register timeout
- RobStride parameter timeout
3) Disconnect / Recovery (HIL)
Manual steps:- Start a short control loop (
pos-velorvel). - Unplug PCAN-USB (or down Linux CAN interface).
- Verify command pauses, then auto-reconnect/retry is attempted.
- Re-plug / recover bus.
- Verify loop resumes without restarting the process, or re-run scan/control to confirm recovery.
4) Cross-Platform Consistency (Scan)
Save scan stdout logs on Linux and Windows, then compare:- per-vendor
hitswith optional tolerance (--allow-hit-delta) - vendor subset filtering (
--vendors) - configurable
idmatching mode (--id-mode):exactleft-subsetright-subsetintersect-nonempty