virtual grind thoughts from the virtual world


Using Keyspan USB Serial Adapter With Mac OSX

I have been getting a lot of questions about using USB serial adapters with my Mac. Although there are a lot out there, I usually recommend that people try the Keyspan USA-19HS. I have never had an issue with this adapter on OSX, as well as Windows.

I do recommend installing the driver that comes with the adapter, it will add a new device to OSX, /dev/tty.KeySerial1.

Once you install the driver, you can add the small AppleScript snippet to open a new terminal window and utilize screen. You can also compile this simple script and create a clickable application to launch your serial screen quickly.

Code below:

tell application "Terminal"
do script with command "screen /dev/tty.KeySerial1"
set number of rows of window 1 to 100
set number of columns of window 1 to 80
set background color of window 1 to "black"
set normal text color of window 1 to "green"
set custom title of window 1 to "SerialOut"
end tell

I must thank Mark Stewart for the info on this.