Re: Serial Ports across platforms
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Serial Ports across platforms

From: Melissa Schrumpf <m_schrumpf_at_yahoo_com_NOT@microsoft.com>
Date: Sat Dec 31 2005 - 22:14:09 CET

Ian Bell wrote:

> > I am writing a cross platform application that communicates with a device
> > via an RS232 serial link. The serial connection might be direct to a
> > serial port on the host platform or via a USB to serial converter.
> >
> > I am OK under Linux that the ports appear as either ttySx or ttyUSBx. I
> > believe under windows they will always be COMx:
> >
> > What happens on the MAC?
> >
> > Ian
>
> OK, answered my own question from man open - opening a serial port is not
> currently supported on the Mac.

As has already been responded by slebetman, that refers to Mac OS 9 and
earlier.

Your main problem on a modern Mac is that it HAS NO SERIAL PORTS.

Well, modern Macs don't SHIP with serial ports, anyhow.

That said, I know there are USB-Serial adapters you can get, and there
may even be usable PCI cards to add serial ports. The answer to your
question then depends on the vendor of said hardware.

For example, a quick google search shows that at least one version of
the Keyspan USB-serial adapter creates something like:

   /dev/cu.USA28X111P1.1
   /dev/cu.USA28X111P2.2

You'll just have to check your specific machine/hardware combo.

-- 
MKS
Received on Tue Jan 3 03:09:59 2006