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:
docs/en/testing.mdTesting Guide
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). - 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.
What Is Covered
motor_core:- Windows PCAN channel/bitrate parsing and validation
CoreControllerintegration tests with fakeCanBus:- duplicate device-id rejection
- frame routing
- enable/disable fan-out
- shutdown lifecycle behavior
motor_vendor_damiao:- protocol encode/decode primitives
- model matching/suggestion logic
motor_vendor_robstride:- extended CAN ID build/parse
- ping/parameter encoding and validation
motor_cli:- input parsing helpers and RobStride parameter value parsing
Run All Tests
Release Test Notes
Every release should add a repeatable release test note that records core, Rust CLI, Python binding/CLI, hardware-in-the-loop commands, and dangerous command boundaries.- Current version:
release_test_notes/0.2.9.md
Recommended Local Quality Gate
Hardware-in-the-loop (manual)
Automated tests avoid real CAN hardware. For hardware validation, run:- vendor scan
- enable/disable
- control mode command
- feedback/state readback
README.md (Linux) and Windows experimental section (can0@1000000) for repeatable checks.
Reliability helper scripts:
tools/reliability/README.mdtools/reliability/reliability_runner.py
Next Step Improvements
- Expand long-run HIL matrix (different adapters and bus loads)
- Add periodic cross-platform compare-scan jobs with explicit tolerance policy