Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 17, 2004, 05:55 PM   #1
rain
macrumors newbie
 
Join Date: Oct 2004
MAC OS X Serial Port Programming

Hi,

This is the first time I am trying to do Mac programming.
I need to communicate with my device through USB/Serial adapter. As far as I understand, I need to write a serialport library for this, but I have no idea where to even begin.
Do I really need to learn Carbon or Cocoa to do this?
I hear that some of the C libraries are not supported for Mac OS X.

I need to get this done asap, so I would really appreicate your inputs!

Thanks!
rain is offline   0 Reply With Quote
Old Oct 17, 2004, 07:15 PM   #2
iMeowbot
macrumors 601
 
iMeowbot's Avatar
 
Join Date: Aug 2003
Sample code and pointers to Apple docs:

http://www.keyspan.com/support/developers/

[I ought to add that the old Apple Tech Note referenced there isn't necessary for getting serial to work under OS X. Just use the port detection stuff as shown in Keyspan's sample, and once you've found the devices it's really just like using a serial port on any Unix machine.]

Last edited by iMeowbot; Oct 18, 2004 at 03:54 AM.
iMeowbot is offline   0 Reply With Quote
Old Nov 11, 2004, 09:25 PM   #3
csubear
macrumors 6502a
 
csubear's Avatar
 
Join Date: Aug 2003
Ever use python? Check out http://pyserial.sourceforge.net/ , Its nice. Serial Com is a snap with it . I used it for my senior project to talk to my FPGA.
__________________
(\_/)
(-.-)
(><)o
csubear is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: Any good kids games to run on an iMac G3 running Mac OS 10.1-10.4? alexreich PowerPC Macs 10 Feb 10, 2012 02:09 AM
Mac OS X 10.8 Nyan Cat Vasileios Wasteland 6 Jul 22, 2011 08:45 AM
Can Mac OS 10.5 disc repair a 10.4 installation (PowerPC)) Chadder OS X 3 Jun 4, 2011 09:46 PM
Mac OS Lion Developer 3 Bug -BigMac- Mac OS X 10.7 Lion 2 May 31, 2011 07:53 AM
Mac OS X 10.6.7 frequent crashing nikhilkas MacBook Pro 1 May 3, 2011 07:05 PM


All times are GMT -5. The time now is 01:31 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC