Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Serial Serial Serial
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial Serial Serial



At 22:42 -0500 13/3/01, Adam Skwersky wrote:
Yes, I've been hearing some similar things about how to implement this, but
no concrete advice like "what format should each library be in", and how to
link the libraries to my application, and how to load them as necessary.

That's because the situation is slightly different for each developer and each product. This level of personalised mini-consulting service is what DTS does for a living.

If you're building a Carbon CFM application I would recommend that you do the following:

1. Build the app Carbon CFM. Load the appropriate plug-in using
CFBundle or CFPlugIn.
2. Build the classic serial plug-in as InterfaceLib CFM.
3. Build the IOKit serial plug-in as Mach-O.

Another option is to build a package-based application with an InterfaceLib-based binary for traditional Mac OS and a Mach-O binary for Mac OS X. This option will be more feasible when CodeWarrior's Mach-O tools come online.

Also, I thought the IOKit was just used to *find* the serial ports, and then
you used the BSD open/read/write/close to actually use the serial port.

You're correct. That part of the Q&A is slightly out of date. I will revise this as soon as I get time [Radar ID 2661427].

What IOKit routines can you use to send/receive data??

For serial there are no obvious routines to do this. Serial currently requires you to use BSD APIs to transfer data.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware


References: 
 >Re: Serial Serial Serial (From: Adam Skwersky <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.