Using Terminal to connect to serial port

Can anyone suggest a way to use Terminal (or another app) to connect to a USB port to which has been connected a USB to Serial converter cable (USB-A to DB9)?

MacBook Pro, Mac OS X (10.4.8)

Posted on Nov 2, 2006 1:48 PM

Reply
8 replies

Nov 2, 2006 4:11 PM in response to mac2sun

The best solution I have found for this has been to use a program called Zterm. I do not know of any other way to make terminal.app an externally connecting console, but zterm does exactly that.
I have used zterm for a couple years now to console to networking equipment on my powerbook usb-db9-rollover rj45.

Hope that helps. Sorry I couldn't provide a way to use terminal directly.

Max

Mac Pro 2.66Ghz Mac OS X (10.4.8) Powerbook G4 1.33Ghz

Nov 3, 2006 6:33 AM in response to maxg4

Where did you get your usb-db9-rollover rj45 cable? So far all I have found are usb-db9 cables and then RJ45 adapters. I suppose I could do one up myself, but I would rather drop a few bucks on one done right. ;^)

So, Terminal cannot talk out a port? I seem to remember that any *NIX terminal program could be aimed at any port, I just don't recall how. I figured the trick was how to point at the port in a way that says a USB port is a serial port. I have seen some stuff on the net saying you need a cable specific driver, but I can not confirm this.

Nov 15, 2006 6:50 PM in response to mac2sun

I found this works much better than Zterm:

http://www.macosxhints.com/article.php?story=20061109133825654

I added baud rate set in my applescript so it looks like this now:

tell application "Terminal"
do script with command "screen -U /dev/tty.KeySerial1 38400"
set number of rows of window 1 to 100
set number of columns of window 1 to 150
set background color of window 1 to "white"
set normal text color of window 1 to "black"
set custom title of window 1 to "keyspan-1"
end tell

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using Terminal to connect to serial port

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.