« Home | Fix: Running screen under Mac OS X clobbers path » | Fear and loathing » | Regscan = scam (Skype: Windows Requires Immediate ... » | Financial Crisis Made Simple... » | Git: Script to svn rebase subdirectories » | How to force qmake to stop generating an XCode pro... » | American Express continues to slash credit lines (... » | Is the tech recession over or over-blown? » | Travel: Water Purification for Travelers (Part 3) » | Travel: Water Treatment and Purification Options f... »

Using screen utility to connect to serial devices

Since I've discovered the screen utility, I've stopped using minicom to connect to attached embedded devices over serial.  This works under OS X and Linux. The real bonus is that I can disconnect from the remote workstation and reattach when I need to.

For example, to connect to a serial device (over a USB doggle) at 155200 baud:

$ screen /dev/ttyUSB0 115200

Now if I disconnect from the workstation this is attached to I can reattach to the screen session:

$ screen -list

There is a screen on:
        9514.pts-0.twc-joe      (Dettached)
1 Socket in /var/run/screen/S-root.

I can reattach to the session and resume where I left off:

$ screen -r 9514.pts-0.twc-joe

#/