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
#/

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
#/

Post a Comment