I’m using Linux, and tools like Window’s Hyperterminal to debug your serial port is rare, difficult to use, unpractical, and I have to live with it =) So, after moving here and there, I finally choose my favorite serial debugger in Linux: GNU Screen.
Here’s some tips to use it for your debugging:
- Opening serial port (with the correct baud rate)
bash> screen /dev/ttyUSB0 57600
/dev/ttyUSB0 is the serial port, while 57600 sets its baud rate into 57600bps.
- Enable the CTS/RTS handshake
bash> screen /dev/ttyUSB0 57600,ctsrts
- Close the screen after you finish the debugging session
Ctrl + A + k
- View your serial port status (CTS/RTS/DTS/PE/RI..etc)
Ctrl + A + i