Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Cocoa and modem control

Cocoa and modem control
Thread Tools
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
May 11, 2002, 04:31 AM
 
Hey guys... I don't know Obj-C, or Cocoa, so I'm in a bit of trouble here.

My programming experience is limited to C++, and I'd rather not go there. I can fumble my way around C fairly well given the C++ knowledge, however.

A long time ago I wrote an app, for OS9, with very simple functions; 1) to off-hook a modem (AT command 'H1'), 2) hang up a modem (AT command 'H0'), and a third, which automatically answers a call (simply detects a ring, then sends the H1).

The AT commands aren't a problem.

But... I have no idea how to interface them all together. It's very different from using CodeWarrior in OS8 and 9...

If anyone could help, I'd greatly appreciate it... even just a pointer as to what direction to look in; or even if there are libraries in Cocoa with this kind of stuff pre-built, or what.

If an app exists out there that just does that, even that would suffice for what I'm attempting right now; which is really just to see if my aim is possible. If not, then I won't bother going any further; if so, then I'll work on it.

TIA.

[ 05-11-2002: Message edited by: Cipher13 ]
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
May 11, 2002, 10:38 AM
 
Well, I got the entire thing working in OS9... so at least I know it's possible... however, OSX doesn't have the same options built in as OS9 does.

*opens CoreAudio PDF*

Oh well.

[ 05-11-2002: Message edited by: Cipher13 ]
     
Fresh-Faced Recruit
Join Date: Apr 2002
Location: France
Status: Offline
Reply With Quote
May 11, 2002, 11:22 AM
 
     
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
May 11, 2002, 12:23 PM
 
no idea whether this would work... but is getting a filehandle to /dev/tty.modem and sending and receiving stuff an alternative or is that just plain stupid?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:57 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2