Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RS232 options on mac OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RS232 options on mac OS X



Hi all,
There have been a couple of questions lately about RS-232 options for OS X. My favorite is Keyspan's family of USB-serial adapters. There is also sample code available on Apple's developer site that shows the basics in how to program for serial communications using IOKit. When I first came across this sample code, it struck me as a bit confusing and a lot of work just to set the table for using a serial port. I have since gotten the hang of things and have written serial drivers for many widgets using this sample code with my own tweaks.
One of these days I should get around to making a full-blown Cocoa class for RS232 ports, but in the meantime I have run across a couple other ones, and if anyone is interested I would be happy to share my code and/or guide you through the process of setting up a serial port for an application written in C (can also be used for Obj-C and C++ as well). I have written code for popup menus that display the list of available ports, allowing the user to select which one to use, reading and writing to a port with simple functions and so on.


Bottom line: if you need to communicate with something over RS232 with OS X, it's really very easy using the sample code given by Apple, provided you know what little bits you need to tweak!

Dave
________________________
"One word is worth 10^-3 pictures"

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Scitech mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to 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.