- udev: 70-canable.rules — gs_usb VID/PID 1d50:606f, names iface can0 and brings it up at 500 kbps on plug-in - systemd: can-bringup.service — oneshot service bound to sys-subsystem-net-devices-can0.device - scripts: can_setup.sh — manual up/down/verify helper; candump verify for VESC IDs 61 (0x3D) and 79 (0x4F) - install_systemd.sh updated to install can-bringup.service and all udev rules Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
688 B
Plaintext
20 lines
688 B
Plaintext
# CANable 2.0 USB-CAN adapter (gs_usb driver)
|
|
# Exposes the adapter as can0 via the SocketCAN subsystem.
|
|
# Issue: https://gitea.vayrette.com/seb/saltylab-firmware/issues/643
|
|
#
|
|
# Install:
|
|
# sudo cp 70-canable.rules /etc/udev/rules.d/
|
|
# sudo udevadm control --reload && sudo udevadm trigger
|
|
#
|
|
# CANable 2.0 USB IDs (Geschwister Schneider / candleLight firmware):
|
|
# idVendor = 1d50 (OpenMoko)
|
|
# idProduct = 606f (candleLight / gs_usb)
|
|
#
|
|
# Verify with: lsusb | grep -i candl
|
|
# ip link show can0
|
|
|
|
SUBSYSTEM=="net", ACTION=="add", \
|
|
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="606f", \
|
|
NAME="can0", \
|
|
RUN+="/sbin/ip link set can0 up type can bitrate 500000"
|