User Tools

Site Tools


bidib-usb-en
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


bidib-usb-en [2018/11/12 08:56] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== BiDiB ======
 +[[:english#command_stations|{{  :interface.png}}]][[:english|{{  :rocrail-logo-35.png}}]]
 +[[:english|Content]] -> [[:english#command_stations|Command Stations]] ->  **[[:bidib-en|BiDiB]]** 
 +  * [[:bidib:bidib-config-en|Configuration]] | [[:bidib-examples-en|Setup examples]] | **[[:bidib-usb-en|USB Mapping]]**
 +  * [[:opendcc-en|OpenDCC]]
  
 +
 +
 + \\
 +
 +===== USB Mapping (Linux) =====
 +| //This is partly copied from:// http://www.opendcc.de/elektronik/opendcc/opendcc_rocrail.html | \\
 +
 +Create, as super user, following file:\\
 +**''/etc/udev/rules.d/10-opendcc.rules''**\\
 +and write the next lines in the new file: //(Check if the vendor and product ID matches the OpenDCC hardware with lsusb command.)//\\
 +<code>
 +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"
 +</code>
 +
 +After plugging in the hardware a new device folder is created:
 +<code>
 +$ ls /dev/opendcc
 +/dev/opendcc/:
 +bidib  opendcc usb
 +</code>
 +
 +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===
 +<code>
 +KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd8", SYMLINK+="opendcc/z1"
 +KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfdd", SYMLINK+="opendcc/bidib"
 +</code>
 +
 +<code>
 +ls -l /dev/opendcc/
 +total 0
 +lrwxrwxrwx 1 root root 10 Jul  2 07:25 bidib -> ../ttyUSB0
 +</code>
bidib-usb-en.txt · Last modified: 2018/11/12 08:56 by 127.0.0.1