USB Mapping (Linux)

This is partly copied from:

Create, as super user, following file:
and write the next lines in the new file: (Check if the vendor and product ID matches the OpenDCC hardware with lsusb command.)

SYSFS{idVendor}=="0403", SYSFS{idProduct}=="bfd8", RUN+="/sbin/modprobe -q ftdi_sio vendor=0x0403 product=0xbfd8"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd8", SYMLINK+="opendcc/opendcc"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfdd", SYMLINK+="opendcc/bidib"

After plugging in the hardware a new device folder is created:

$ ls /dev/opendcc
bidib  opendcc	usb

In the rocrail.ini following device names can be used instead of the /dev/ttyUSB*:

OpenDCC CS /dev/opendcc/opendcc
BiDiB-GBM /dev/opendcc/bidib

Ubuntu 11.04

It seems that the rules file should be the last one found in the directory: 99-lb.rules
Using prefix 10- will not create the symlink… Bug or feature?

GBMBoost Master

KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd8", SYMLINK+="opendcc/z1"
KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfdd", SYMLINK+="opendcc/bidib"
ls -l /dev/opendcc/
total 0
lrwxrwxrwx 1 root root 10 Jul  2 07:25 bidib -> ../ttyUSB0

Personal Tools