Working with Serial ports in Linux

  1. add yourself to the “dialout” group so that you don’t need to use sudo to access serial ports (one-time)

     sudo 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*
    
  4. Use PuTTY to work with serial ports (can also use minicom, which is less user-friendly in my opinion)

     apt install putty