August 12, 2008

Using GNU screen to debug your serial port

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.