• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Writing an "AT-Command" to a Modem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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>)

  • Prev by Date: Drawing Text in spiral shape
  • Next by Date: Re: D&D warning alert w/Finder folder drop
  • Previous by thread: Re: Writing an "AT-Command" to a Modem
  • Next by thread: Re: Writing an "AT-Command" to a Modem
  • Index(es):
    • Date
    • Thread