Re: /dev/ttyUSB0 changes to /dev/ttyUSB1

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

 



> I have a device, namely a Davis Vantage Pro2 Weather Station Console,
> attached to the second USB port on a laptop; the first port is used by a
> mouse.  Occasionally the port on which the console is visible changes
> from /dev/ttyUSB0 to /dev/ttyUSB1.  I haven't noticed any reason for
> this, in particular no change in physical connections; it just happens
> when it happens.  This prevents some software which handles the console
> from operating, since it's expecting to find the console
> on /dev/ttyUSB0.
>
> Has anyone else noticed anything similar?  Any idea what's happening?
>
> Thanks - jon
>
>

You can create rules in /etc/udev/rules.d eg "10-local.rules (see man udev)

and do something like:
BUS=="usb", SYSFS{serial}=="1234",KERNEL=="ttyUSB*", SYMLINK+="wx"

this way whenever the USB device is plugged in a symlink will be created
from /dev/wx pointing to /dev/ttyUSBx  The only problem is many of the
cheap usb to serial adapters all have a serial number of "0" and there is
nothing unique separating one device from the other.

Jeff

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux