User Tools

Site Tools


can:portmapping-en

USB Port Mapping

ContentCommand StationsmergCBUS

  • USB Port Mapping


VendorID

To get a unique vendorID for mapping the CANUSB must be programmed:

Ubuntu 11.04

The rules file:
/etc/udev/rules.d/99-rocrail.rules

SYSFS{idVendor}=="0403", SYSFS{idProduct}=="bfd8", RUN+="/sbin/modprobe -q ftdi_sio vendor=0x0403 product=0xbfd8"
SYSFS{idVendor}=="0403", SYSFS{idProduct}=="8f98", RUN+="/sbin/modprobe -q ftdi_sio vendor=0x0403 product=0x8f98"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd8", SYMLINK+="rocrail/opendcc"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="rocrail/bidib"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="rocrail/lbusb"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="8f98", SYMLINK+="rocrail/cbus"

After the CANUSB is plugged in the symbolic link will be created:

ls -l /dev/rocrail
lrwxrwxrwx 1 root root 10 2011-07-30 08:47 cbus -> ../ttyUSB0

The device name in the CBUS Setup:
"/dev/rocrail/cbus"

can/portmapping-en.txt · Last modified: 2018/11/12 08:56 (external edit)