ftdi USB to RS232 use on Ubuntu Server needing to make ttyUSB0 be used all the time
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ftdi USB to RS232 use on Ubuntu Server needing to make ttyUSB0 be used all the time
I have a FTDI usb port to RS232 connection. I need ttyUSB0 to remain available, active and the same every time the Ubuntu server boots as it is a dedicated system to record data. I am not a skilled Linux user. Does Udev change ttyUSB0 in any way or once the device is plugged in (remains plugged it) and is active? Will I be able to be assured that data collection and transmission to the raspberry pi will continue to work after every reboot? I need to be assured of this before I travel 300 miles to do an installation. Thank you for your help.
I tried to enter my own rules but it did not work. I had
ubuntu@ubuntu:~$ lsusb
Bus 001 Device 006: ID 154b:00ee PNY
Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@ubuntu:~$
I need device 4 to go from ttyUSB0 to ttyLAN
I did
ubuntu@ubuntu:~$ udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0)
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0':
KERNEL=="ttyUSB0"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0':
KERNELS=="ttyUSB0"
SUBSYSTEMS=="usb-serial"
DRIVERS=="ftdi_sio"
ATTRS{port_number}=="0"
ATTRS{latency_timer}=="16"
looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0':
KERNELS=="1-1.2:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="ftdi_sio"
ATTRS{bInterfaceClass}=="ff"
ATTRS{interface}=="FT232R USB UART"
ATTRS{supports_autosuspend}=="1"
ATTRS{bInterfaceProtocol}=="ff"
ATTRS{bNumEndpoints}=="02"
ATTRS{bInterfaceSubClass}=="ff"
ATTRS{authorized}=="1"
ATTRS{bAlternateSetting}==" 0"
ATTRS{bInterfaceNumber}=="00"
in the example SYMLINK had only one = . I will try it with one.
the printout said:
Hence, services/programs configurations must be setup accordingly.
Considering the GPS case, make sure the configuration file
(/etc/sysconfig/gpsd or /etc/default/gpsd) contains the following
line: DEVICE="/dev/ttyGPS"
but there were no /etc/sysconfig/ftdid or /etc/default/ftdid files.
it did not work with one = sign.
I will try to find the appropriate log files for errors but I do not know much about linux. Please help me. Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.