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
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=alastairs-place.net; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= aug07; bh=1HXAjnTvDemXC9qaxE97bJqBkmA=; b=gkBljCwhi9kYyGl/oUInkk 5jO7s29FcevDdLhnCG1njGrZKEgarXL12brEwYVTy/7TYQzTA+55968NKBF4+haB HEodxnjp77/xV+X1Ia7C5wIwCglh/0EEYoWQM8mhH/GFWCzQStilX09HmsHyCcev xe8O3i7kxHb94vtc8AwG0=
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
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.