Re: USB to Serial assignemts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux