[solved] OpenDCC at Linux 'device or ressource busy'

Post Reply

[solved] OpenDCC at Linux 'device or ressource busy'

Post by Tobi » 15.01.2013, 17:23

Hi Folks,

since it took me hours to figure it out:

When connecting my OpenDCC Z1 to my new laptop (with fresh installed Kubuntu 12.10) I had to get my udev config to fixed:

1st I had to add an udev rules files as described on the OpenDCC webpage. I added a file /etc/udev/rules.d/99-opendcc.rules:

Code: Select all

KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd8", SYMLINK+="opendcc/opendcc"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd9", SYMLINK+="opendcc/schnueffel"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfda", SYMLINK+="opendcc/throttle"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfdb", SYMLINK+="opendcc/basestation"
KERNEL=="ttyUSB*" ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfdc", SYMLINK+="opendcc/gbm"
But then the modem-manager always probed the new device. So I got always (in the rocrail terminal output or log):

Code: Select all

20130115.170432.860 r9999I main     OSerial  0196 rocs_serial_open:open rc=16 read=0 write=0 [16] [Device or resource busy]
20130115.170432.860 r9999E main     OP50x    1808 Could not init p50x port!
To stop modem-manager from to probe the OpenDCC Z1 I added this as /etc/udev/rules.d/70-mm-usb-device-blacklist-opendcc.rules:

Code: Select all

ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd8", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfd9", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfda", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfdb", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bfdc", ENV{ID_MM_DEVICE_IGNORE}="1"
Now everything works fine. :D Maybe this helps someone.



Site Admin
Posts: 41017
Joined: 10.04.2006, 08:48
Location: Speyer, Germany

Post by rjversluis » 16.01.2013, 08:36

Hi Tobi,


I added it to the Wiki:
http://wiki.rocrail.net/doku.php?id=faq ... busy_linux

Post Reply

Return to “OpenDCC & BiDiB”