Ftdi - device or resource busy

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
Line 12: Line 12:
 
In <code>/lib/udev/rules.d/95-devkit-power-wup.rules</code> you may well find the following line:
 
In <code>/lib/udev/rules.d/95-devkit-power-wup.rules</code> you may well find the following line:
 
<pre>
 
<pre>
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A80?????", ENV{DKP_...{bla bla bla}
+
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A80?????", ENV{...{bla bla}
 
</pre>
 
</pre>
 
This line is very over aggressive with its match. The serial number (<code>A80?????</code>) will match far too many devices, and as the Vendor ID and Product ID are that of an FTDI chip... well... It seems that the "Watts Up? Pro" uses an FTDI chip.
 
This line is very over aggressive with its match. The serial number (<code>A80?????</code>) will match far too many devices, and as the Vendor ID and Product ID are that of an FTDI chip... well... It seems that the "Watts Up? Pro" uses an FTDI chip.
  
 
My fix is to comment this line out and restart - it worked a treat :D
 
My fix is to comment this line out and restart - it worked a treat :D

Revision as of 23:20, 14 March 2010

Using Fedora 12, my various FTDI devices are inaccessible to any user other than root.

The error message presented by trying to use minicom is:

$ minicom
minicom: cannot open /dev/ttyUSB0: Device or resource busy
$ 

This has been driving me crazy for weeks. I have been using su to access the serial ports, but I have finally found a reason!

In /lib/udev/rules.d/95-devkit-power-wup.rules you may well find the following line:

SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A80?????", ENV{...{bla bla}

This line is very over aggressive with its match. The serial number (A80?????) will match far too many devices, and as the Vendor ID and Product ID are that of an FTDI chip... well... It seems that the "Watts Up? Pro" uses an FTDI chip.

My fix is to comment this line out and restart - it worked a treat :D

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox