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
[…] https://embeddedfreak.wordpress.com/2008/08/12/using-gnu-screen-to-debug-your-serial-port/ […]
Pingback by Linux Ubuntu…serial things « FABLAB adventures — February 3, 2010 @ 3:30 am
[…] If you’re on HP-UX, you’re stuck with Screen. If you need telnet support built-in, or serial support you’re stuck with […]
Pingback by Introduction to tmux: A GNU Screen Alternative | Linux openSUSE — March 15, 2011 @ 10:54 pm