Quantcast
Channel: Ubuntu USB-Serial port install procedure
Viewing all articles
Browse latest Browse all 60

Re: Ubuntu USB-Serial port install procedure

$
0
0
Quote
mm
does anyone know how to permanently change permissions for /dev/ttyUSB0. Mine keep reverting back.

Don't do that. Just add your user to the dialout group so you have appropriate permissions on the device. Try something like:
  sudo usermod -a -G dialout $USER
(in Ubuntu or Debian, this may need minor changes in other distributions).

Quote
mm
Does anyone know how to set the speed for a usb -to serial port?
  stty -F /dev/ttyUSB0 9600
should set /dev/ttyUSB0 to 9600bps.

In other words, this works exactly like any other serial port, you can set its speed using stty. Once the device is visible to the system, applications (including stty) do not know or care whether the serial port is a virtual one over USB, or any other low level hardware details about the way the device is implemented -- the driver and the kernel hide all that from applications. That's how Unix/Linux is supposed to work.

To see if setting the speed worked, use
  stty -F /dev/ttyUSB0 -a
and you should get all the details of exactly how that serial port is currently configured, including its speed.

Viewing all articles
Browse latest Browse all 60

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>