• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Talking to a serial port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Talking to a serial port (From: Chilton Webb <email@hidden>)

  • Prev by Date: Re: Talking to a serial port
  • Next by Date: tcpdump wiggin out?
  • Previous by thread: Re: Talking to a serial port
  • Next by thread: Re: Talking to a serial port
  • Index(es):
    • Date
    • Thread