Re: Writing an "AT-Command" to a Modem
Re: Writing an "AT-Command" to a Modem
- Subject: Re: Writing an "AT-Command" to a Modem
- From: Alastair Houghton <email@hidden>
- Date: Tue, 23 Oct 2007 11:56:20 +0100
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:
This email sent to email@hidden