Skip to main content

通道兼容说明(PCAN + slcan + Damiao 串口桥)

  • Linux SocketCAN 直接使用网卡名:can0can1slcan0
  • 串口类 USB-CAN 需先创建并拉起 slcan0sudo slcand -o -c -s8 /dev/ttyUSB0 slcan0 && sudo ip link set slcan0 up
  • 仅 Damiao 可选串口桥链路:--transport dm-serial --serial-port /dev/ttyACM0 --serial-baud 921600
  • Linux SocketCAN 下 --channel 不要带 @bitrate(例如 can0@1000000 无效)。
  • Windows(PCAN 后端)中,can0/can1 映射 PCAN_USBBUS1/2,可选 @bitrate 后缀。

索引

  • Rust CLI: motor_cli/src/main.rs
  • C ABI: examples/c/c_abi_demo.c
  • C++ ABI: examples/cpp/cpp_abi_demo.cpp
  • Python ctypes: examples/python/python_ctypes_demo.py
  • 多厂商位置同步脚本: examples/python/four_vendor_pos_sync.py
  • WS 四电机同步上位机: examples/web/ws_quad_sync_hmi.html
  • Python SDK: bindings/python/examples/*
  • C++ wrapper: bindings/cpp/examples/*

快速命令

Damiao Python ctypes:
RobStride Python ctypes:
RobStride C ABI:
多厂商位置同步脚本:
Web 上位机(单拖杆同步四电机角度):