Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial Ports under OSX



I don't think there is something wrong with the software
try USA-19W adaptor

I used pilot-link tool, which I ported to MAC OS X, for sync Palm with baud rate lake
57600 115200 without any problem
general idea is to use IOKit tAPI for defining device(if you know exactly what the name is
you even don't need IOKit API) and after that regular UNIX
api for communicating with the device
Dmitry Markman


On Saturday, March 9, 2002, at 06:19 PM, Mark Gilbert wrote:

Folks

I am sure this subject has come up many times.

I need to include serial communications in my app.

I was developing in Carbon. Then I discovered its not possible to directly access Serial Ports under OSX from Carbon.

So, I am experimenting with Mach-O, hoping to build some kind of library I can use from my Carbon app.

Anyway - simple enough, I am using Apple's SerialSample code using a keyspan USA-28 USB Serial adaptor. The Apple code seems to work OK as is. I am just sending out 'abc' to another CPU running a terminal emulator.

Now, I am trying to increase the baud rate. Apple's example seems to work great at 9600 baud. However as soon as I increase that , using options.c_ispeed = 19200 and options.c_ospeed = 19200, or cfsetspeed, it doesnt change the baud rate used, still chucks out 9600 as far as I can tell.

Does anyone have any idea what might be wrong. Is there something more I need to do in order to change the baud rate ?

Also, does anyone have any advice on making a library from Codewarrior in Mach-O and getting that into a Codewarrior Carbon Project ?

Thanks

Mark Gilbert.

-- email@hidden
Tel: +44 208 340 5677
fax: +44 870 055 7790
http://www.gallery.co.uk
Check out the **new** mtools site at:
http://www.mtools.info
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Serial Ports under OSX (From: Mark Gilbert <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.