Using Serial ports on Linux

  1. add the user to the dialout group for non-root access to serial ports (one-time)

     adduser $(whoami) dialout
    

    then logout and login

  2. list the active HARDWARE serial ports

     apt install setserial
    
     setserial -g /dev/ttyS* | grep -v unknown
    
  3. list the active USB-serial ports

     ls /dev/ttyUSB*
    

Linux serial port programs

  • PuTTY is a GUI program that works well with serial ports (and SSH as well).

      apt install putty
    
  • Minicom is less user-friendly in my opinion

Leave a Comment