USB->Serial (MAC)

Nov 24, 2012

I bought a USB Serial port that had MAC drivers. Check before you buy it that it has drivers. Not all USB Serial have MAC support. I assume that you have installed the correct drivers from here.

First, open Terminal (Applications/Utilities/Terminal). Next, type

ls /dev/tty.*

to get a list of your serial lines. Pick the one that you want to open. For example, my list looks like this:

gf:dev gf$ ls -al tty.*<br></br>
crw-rw-rw- 1 root wheel 18, 4 Jan 25 07:32 tty.Bluetooth-Modem<br></br>
crw-rw-rw- 1 root wheel 18, 8 Jan 25 07:32 tty.Bluetooth-PDA-Sync<br></br><em>crw-rw-rw- 1 root wheel 18, 10 Jan 25 09:20 tty.PL2303-0000103D</em><br></br>
crw-rw-rw- 1 root wheel 18, 0 Jan 25 07:32 tty.SerialPort-1<br></br>
gf:dev gf$<br></br>```

And I know /dev/tty.PL2303-0000103D is the USB-to-serial adaptor becuase it’s connected, if you unplug it the tty.PL2303-0000103D stops being listed.

Knowing the serial port, you can just type screen portname datarate to show the serial data on the screen. In my case, it was:

screen /dev/tty.PL2303-0000103D 9600

To quit the screen app, type control-A, then control-.

Postscript

I don’t think that this is very complete, but it worked for me and might help you to get your USB serial working. Please let me know if there anything I can add to complete this piece.

Most of the material came from http://www.tigoe.net/pcomp/resources/archives/avr/000749.shtml

Rob Edwards

Northern (UK) chap focusing on platforms, automation, cloud and cloud native applications. Recovering network engineer, although it turns out networking is as important, if not more, now than before!

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.