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/zh/windows_distribution.mdWindows 分发与 SDK 使用指南
通道兼容说明(PCAN + slcan + Damiao 串口桥)
- Linux SocketCAN 直接使用网卡名:
can0、can1、slcan0。 - 串口类 USB-CAN 需先创建并拉起
slcan0:sudo 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后缀。
slcan + Windows pcan)见 can_debugging.md。
本文说明 motorbridge 在 Windows 上如何分发与使用。
产物类型对照
- Python 用户:
- 安装
.whl(motorbridge-<ver>-cp3xx-...-win_amd64.whl)
- 安装
- C/C++ 用户:
- 使用 ABI
.zip(motorbridge-abi-<ver>-windows-x86_64.zip)
- 使用 ABI
- Linux 专用包:
.deb仅适用于 Ubuntu/Linux,Windows 不能安装
- MSI:
- 可选增强项,不是 SDK 使用的必要条件
运行时依赖
- 已安装 PEAK PCAN 驱动
- 已安装 PCAN-Basic 运行时(提供
PCANBasic.dll)
本地构建 Windows ABI
target/release/motor_abi.dlltarget/release/motor_abi.lib
本地构建 Windows Python Wheel
- wheel 构建会自动把 ABI DLL 打进包内。
- 若找不到 ABI DLL,会直接失败并提示路径,避免产出不可用 wheel。
安装并验证 Python SDK
安装并验证 C/C++ ABI
- 下载
motorbridge-abi-<ver>-windows-x86_64.zip。 - 解压 include/lib 到依赖目录。
- 在工程里链接
motor_abi.dll与 import lib。
Windows 通道与波特率约定
can0映射PCAN_USBBUS1can1映射PCAN_USBBUS2- 波特率后缀:
can0@1000000