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.

   Actions John F. Braun said on February 22nd, 2010 at 10:25 AM (Edited: 04/13/2012 8:40 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.

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 May 27th

Sat, 10:00 AM
MacOS KenDensed - MacOS KenDensed: Apple’s Patent Lawsuit & Antitrust Shuffle
Fri, 5:58 PM
News - Sotheby’s to Auction Steve Jobs Atari Memo (Photo Gallery)
5:42 PM
Free on iTunes - 3 Free iOS Apps for News Hounds
3:00 PM
Rumor - Nest Thermostat Reportedly Coming to Apple Retail Stores
2:40 PM
Particle Debris - The TV Industry’s Dreadful Little Secret
2:33 PM
News - Mobile Devices Account for 20% of Web Traffic in US, Canada
12:49 PM
News - Apple Now Offering “Free App of the Week” for iOS
12:21 PM
News - Tim Cook Declines $75 Million Dividend Payout
11:25 AM
News - Absinthe 2.0 Provides Untethered Jailbreak for iOS 5.1.1
11:09 AM
Quick Look Review - F18 Carrier Landing (iOS) is a Boatload of Fun
10:51 AM
TMO Appearances - Jeff Gamet talks Cool Apps & Accessories on Not Another Mac Podcast
10:12 AM
Hot Forum Topic - Forum Poll: Which is Your Favorite Photo Sharing Service?
 

The Mac Observer Reader Specials

  • Macsales.com for the Right Mac Memory. Most Popular: 16GB from $128; 8GB from $50. MacBook Pro & Mac mini Kits up to 16GB. iMac up to 32GB & Mac Pro now up to 128GB. - Macsales.com
  • 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!
  • Macpokeronline.com If you're using a Mac, then you've gotta check out PokerOnAMac.com. Online casinos and poker rooms are literally giving away cash and the casino sites at Poker on a Mac do the unthinkable, they actually reward! Join today, the download is free!
  •  Looking to find online casinos for mac? We can help you find the best real money casino sites where you can play your favorite casino games including blackjack and slots.

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