Re: Talking to a serial port
Re: Talking to a serial port
- Subject: Re: Talking to a serial port
- From: Roger Smith <email@hidden>
- Date: Fri, 17 Aug 2001 12:18:38 -0700
The good news is that keyspan has an os x driver. Once their driver
is loaded, you can open the serial port through the character device
interface in /dev. There is sample code available that shows how to
find all the modems or serial interfaces:
http://developer.apple.com/samplecode/Sample_Code/Devices_and_Hardware/Serial/SerialPortSample.htm
The good news is since the serial port API's are fairly close to the
posix API's so you can typically just recompile code from unix/linux.
Roger
At 1:46 PM -0500 8/17/01, Chilton Webb wrote:
Weird Question #2:
What is the suggested method of talking to a serial device on a G4?
I have a keyspan adapter, but all of my example code is for OS9. I
need this to work under OSX. Suggestions?
Thanks,
-Chilton
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
--
Roger Smith 408-974-8122
Apple Computer, Inc. email@hidden
6 infinite Loop
MS 306-2HN