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: Writing an "AT-Command" to a Modem



On 23 Oct 2007, at 09:20, Stefan Lehrner wrote:

Hi HalfActivist,

thanks - that sounds plausible!

In addition to using the normal BSD APIs (open, close, read, write et al.), or their Cocoa equivalents, you'll probably need to configure the serial port (or, for "internal" modems, the pretend serial port) to the settings you need.


To do that, you'll probably want to use the POSIX terminal functions (defined in the header <termios.h>). See

<http://www.opengroup.org/onlinepubs/009695399/basedefs/ xbd_chap11.html>
<http://www.opengroup.org/onlinepubs/009695399/basedefs/ termios.h.html>


for more information.

I also recall seeing that someone had written some Cocoa classes to help with serial ports; you can find them here:

  <http://www.harmless.de/cocoa.php>

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Writing an "AT-Command" to a Modem (From: Stefan Lehrner <email@hidden>)
 >Re: Writing an "AT-Command" to a Modem (From: Half Activist <email@hidden>)
 >Re: Writing an "AT-Command" to a Modem (From: Half Activist <email@hidden>)
 >Re: Writing an "AT-Command" to a Modem (From: Stefan Lehrner <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.