The Mac Observer

Monday's Mac Gadget

Want to Talk to Your Mac’s Serial Port?  Check Out CoolTerm!

TMO Talk (6)

Product Link : CoolTerm (Freeware/Donationware)

Before there was USB (Universal Serial Bus) many computers, be they from Apple or another vendor, used a serial port to connect to various devices, such as modems and printers. The most common flavors of serial port were RS-232, with Apple implementing a more robust standard known as RS-422. Sadly, Mac OS X doesn't include a decent terminal program that can talk to serial ports. Enter CoolTerm.

Once you start CoolTerm, the first thing you'll want to do is select Options, which will let you select your serial port, as well as the baud rate (speed) and number of data bits, parity and stop bits. These are often represented in a shorthand such as 81N (8 data bits, 1 stop bit, no parity) or 71E (7 data bits, 1 stop bit, even parity) by the maker of the serial device. Make sure you get all of these exactly right, or you'll see meaningless garbage on your screen. You can also set the method of flow control, which is how the serial port tell the device to stop sending data if it is coming in too fast. This can be done via hardware signals (CTS or DTR) or software (XON).

CoolTerm Talking to a Bluetooth Cellphone

Once you've configured the parameters, click on the Connect button. If everything is set up correctly, you'll see the name of the serial port, the speed and data word format, and the word Connected on the bottom of your screen.  You'll also be shown the state of the various control signals, including RTS, DTR, DCD, CTS, DSR and RI. You can then start typing in real time, or use the Send String feature to enter an ASCII or Hex string and send it all at once. There are some other handy options, such as an option to view the Hex values of the data. You can also capture your session to a file for later analysis.

Wait, you are saying, I don't have any serial ports on my Mac! Well, you probably do, but don't know it. If you have a modem, you'll have a serial port called Modem, and if you have Bluetooth, the you have a serial port called Bluetooth-Modem, which is used if you tether your cellphone to your Mac. The above screenshot shows some of the information your cellphone will provide if you issue an "ATI" command.

So start talking to your serial devices, and try CoolTerm today! Have any other programs that let you interact with your devices? Send an email to John and he'll check it out.


John is a software engineer with over 20 years of development experience, and has AS, BS and MS degrees in various computing disciplines, so his friends and colleagues are somewhat surprised that he’s a Mac enthusiast.  Having worked in an environment comprised largely of PCs, and watching others wrestle with the horror that is Windows, he’s glad to come home to a MacBook Pro and PowerMac G5 at the end of the day.

Post A Comment or Log-in. Need an account? Register here.

6 Observer Comments

   Actions Mike Weasner said on February 22nd, 2010 at 10:04 AM:

Sounds a like a great tool for troubleshooting serial connections made via a USB-serial adapter.  I’ll mention it on my ETX Site for testing telescope handcontroller connections from Mac OS X.  Thanks to you for mentioning it and to the developer for writing it.

Sounds a like a great tool for troubleshooting serial connections made via a USB-serial adapter.  I’ll mention it on my ETX Site for testing telescope handcontroller connections from Mac OS X.  Thanks to you for mentioning it and to the developer for writing it.

I’ve found reports that an old favorite, ZTerm, has issues with some USB to serial adapters under Snow Leopard, which makes this a worth alternative.

You can simply use Terminal to talk to your modem. Connect to the device using the screen command:

screen /dev/cu.Bluetooth-Modem 

Replace “/dev/cu.Bluetooth-Modem” with whatever your device is named. You can fiddle with line controls using the “stty” command.

Cornflake is another great serial terminal for Mac OS X.  You can download it at http://tomgerhardt.com/Cornflake/

   Actions Gus S. Calabrese said on February 22nd, 2010 at 6:41 PM:

Another fairly simple approach is to buy RealBasic for OS X.  The single user price is $99.  It has great support for serial ports.  It has an example of a how to build a serial terminal emulator.  The best part is that you can really customize / automate how your serial connections work.

   Actions Roger Meier said on February 23rd, 2010 at 7:33 PM:

Another fairly simple approach is to buy RealBasic for OS X.  The single user price is $99.  It has great support for serial ports.  It has an example of a how to build a serial terminal emulator.  The best part is that you can really customize / automate how your serial connections work.

As a matter of fact, CoolTerm was written in REALBasic. I.e. CoolTerm is a good example of what REALBasic is capable of.

Post A Comment or Log-in. Need an account? Register here.
 

Recent Headlines - Updated February 11th

Sat, 4:11 PM
MacOS KenDensed - MacOS KenDensed: iPad 3 Frenzy, Big-time Apple & Steve Jobs, G-Man
Fri, 8:10 PM
News - Apple Sues Motorola Mobility in California Over German Case
7:54 PM
Free on iTunes - OnLive Desktop: Windows & Office on Your iPad
7:43 PM
Product News - Apple Rolls Out MacBook Air Configurations for Education
6:35 PM
Just a Peek - Battle Pocket Bulge With The Hint for iPhone
6:01 PM
Rumor - Apple Reportedly Bringing MacBook Air Styling to Pro Line
4:50 PM
Particle Debris - The Hidden Gotchas of Browser Security
3:56 PM
Apple Stock Watch - Analyst: Paying a Dividend Makes Sense for Apple
2:58 PM
Deal Brothers - iMac 27-inch 2.93GHz Intel Quad-Core i7 processor:  $1,999
2:45 PM
In-Depth Review - Theodolite App for iOS is Breathtaking
12:52 PM
Apple Stock Watch - Mizuho Securities Starts Apple Coverage with $635 Target
11:35 AM
Hot Forum Topic - Forum Poll: Are You Planning on Buying a New iPad?
 

The Mac Observer Reader Specials

  • TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct from Strider Software.
  • Mac RAM Upgrades: MacBook Pro 16GB kits $475, 8GB Kits for $119.99! iMac 16GB RAM Kits (4x 4GB) for $229.99! Mac Pro Memory 32GB Kit for $399.99, 64GB Kit for $889.99! Mac Hard Drives 2TB Seagate SATA II for $249.99! Click Here!
  • Poker Mac If you're using a Mac, then you've gotta check out Online Poker Mac. This mac poker and online casino mac site actually does the unthinkable, it actually rewards!

Apple Stock Quote (AAPL)

Loading...

Hot Topics

TMO Express

Join the TMO Express Daily Newsletter to get the latest Mac headlines in your e-mail every weekday. Find out more!

Top Deals From DealBrothers.com

Recent Features

Support The Mac Observer

We noticed you may be running AdBlock on your computer. It takes real money to run this site and to deliver the news, tips, and opinions you love to read.

If you wish to block the ads that pay for the creation of our content, we ask that you instead support TMO Directly, either with a $5 monthly recurring contribution, or a one-time donation of any amount of your choice. Thanks!

Subscribe with Paypal Donate with Paypal