Skip to content

Serial Comm on the Macbook – Screen

March 27, 2015

15-03-27 screen

On windows I have a bajillion choices of serial monitor programs, I use Terminal from Bray Software.

On the mac, the simplest choice seems to be “screen” which is a built-in command line app. To use it, you find your modem name, then invoke screen as follows

bills-MacBook-Pro:~ bill$ ls /dev/tty.*
/dev/tty.Bluetooth-Incoming-Port /dev/tty.SparkFun-BT-SerialPort
/dev/tty.Bluetooth-Modem /dev/tty.usbserial-FTWUA7K0
bills-MacBook-Pro:~ bill$ screen /dev/tty.usbserial-FTWUA7K0 57600

Once screen starts it takes over the terminal window and you’re talking to the serial port. One obvious issue is the stair step output which is something to do with line endings in unix.

To get out of Screen you can type ^a ^\. Don’t type ^c because that kills the whole terminal window while leaving screen running detached in the background and the serial port tied up! You can reconnect to the session with screen -r.

Screen has a lot of other options and capabilities I don’t even think it’s primarily a serial comm application.


From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: