Monday, September 14, 2015

Serial connection in Linux / ttyUSB


USB Serial / console connection in Linux

List all USB devices:
lsusb ----------------
Show USB Serial Devices & Drivers
cat /proc/tty/driver/usbserial
 ----------------
Show dev output of USB Serial
cat /proc/devices | grep -i "ttyUSB"
ls -al /dev/ttyUSB*
----------------
Change permissions for USB Serial to wrk properly (you might use 666)
chmod 777 /dev/ttyUSB* ----------------
Connect via minicom terminal (Ctrl+A Z to show menu, O to Serial Port Config, change settings as needed - usually only speed)




sudo apt install minicom
sudo minicom --device /dev/ttyUSB0

----------------
You might also use a PuTTY (Ubuntu has it in repo)
sudo apt search putty
sudo apt install putty putty-tools
----------------

Personally using a Quad Console Cable
Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC

usb 1-12.1: FTDI USB Serial Device converter now attached to ttyUSB0
usb 1-12.1: FTDI USB Serial Device converter now attached to ttyUSB1
usb 1-12.1: FTDI USB Serial Device converter now attached to ttyUSB2
usb 1-12.1: FTDI USB Serial Device converter now attached to ttyUSB3