Re: Internal Modem
Re: Internal Modem
- Subject: Re: Internal Modem
- From: Roger Smith <email@hidden>
- Date: Mon, 26 Nov 2001 18:21:46 -0800
Your issue is not specific to serial ports. Other developers have
wanted to do similar things with audio and hard drive devices . At
issue is the IOKit layer which is the layer between BSD and MacOS.
The IOSerialFamily kext is responsible for creating the /dev/cu.xx
and /dev/tty.xx entries and funnelling the IO to the correct
hardware driver. Last I looked at this issue, some of the calls
(basically IOCTLS's) which some old style UNIX programs use are
ignored and don't make it down to the hardware, I think this issue is
filed as a bug in Radar, but I'm not sure about it's status.
On a side note, we have compiled both Minicom and Kermit on X and
those programs work fine. You might want to check on the Darwin list
to see if anyone has a more modern tool that might work, but it
certainly is possible to write a command line tool that talks to the
modem, you just have to avoid the older crusty API's. In general
man termios will tell you what's supported under X.
Roger
At 5:30 PM -0800 11/26/01, John C. Randolph wrote:
Roger,
Back on my NeXTStation, I was able to talk to my modem on serial
port A with "tip cufa", and so on.
Since Mac OS X doesn't have "tip", is there any way to talk to the
modem from a shell that you can tell us about? I can see
/dev/cu.modem there...
-jcr
On Monday, November 26, 2001, at 03:19 PM, Roger Smith wrote:
The Apple internal modem responds to traditional AT commands,
Normally there's a document on your hard drive called AT
Commands.pdf if you have a factory fresh install. This lists the
AT Commands the current modem supports.
Using the serialport example, you can cause the modem to dial by
sending a string such as "ATDT 5551212\r" If you are intending to
kick off PPP then you would be interacting through the socket api's
and the act of creating and opening a socket would cause ppp to
initiate a connection to the Internet.
Roger
At 4:06 PM +0100 11/26/01, Stiphane Sudre wrote:
Le lundi 26 novembre 2001, ` 01:30 , Ingvar Nedrebo a icrit :
On Saturday, November 24, 2001, at 12:52 pm, Gerriet M. Denkmann wrote:
I would like to write a small App, which dials a number on the internal
modem (G4 cube, OS X 10.1.1.)
But I cannot find any documentation about the commands this modem
understands.
Is there any example code using the modem available?
--