USB to Serial assignemts?

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sun Dec 10 04:02:54 UTC 2006


Jeffrey Ross wrote:
> 
> Since I have two of these USB to serial adapters made by the same
> manufacture
> I guess the serial number is going to be the way to go, and I like the
> symlink
> idea, makes sense and is easy enough to implement in my scripts.
> 
> The device according to "lsusb -v" shows the following (among a lot of
> other stuff):
> 
>  idVendor           0x050d Belkin Components
>  idProduct          0x0109 F5U109/F5U409 PDA Adapter
>  bcdDevice            1.02
>  iManufacturer           1 Belkin USB PDA Adapter
>  iProduct                2
>  iSerial                 3 799020
> 
> 
> If I understand correctly I would create a file in /etc/udev/rules.d say
> /etc/udev/rules.d/serialusb an put the following lines:
> 
> KERNEL=="ttyUSB*", SYSFS{idSerial}=="799020",
> SYSFS{idProduct}=="0109", SYMLINK+="serial"
> 
> The next time the device was inserted into the USB port udev would create
> the mapping so that /dev/serial was always this adapter.
> 
> Did I get it right?
> 
> Thanks!
> 
> Jeff
> 
Correction of my last post...

I think that SYSFS{idSerial}=="799020" should be
SYSFS{serial}=="799020". Also, you would need to use serialusb.rules
or better yet, 10-serialusb.rules. In any case, I believe you need
to have the file name end in .rules, or it will be ignored.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!





More information about the fedora-list mailing list