|
Posted by Gordon Burditt on 05/13/05 00:54
>I am quite new to telephony stuff.... will the modem automatically
>write the caller id info to the serial port??
It typically comes as part of the RING (spontaneous) response
generated when the phone rings. You may get the same caller-ID
data multiple times (one on each ring) if the phone isn't answered
immediately.
>If that's the case, then I just have to have a program to stand there
>and look at the port.....
It's almost that simple.
You may need to have the program set up the modem first, to tell
it you WANT "RING" responses, and ones with caller-ID in them, to
set up the serial port speed on the PC side, turn off auto-answer,
and such. This is a couple of AT commands once you set the speed.
(Sorry, I can't give you specific commands, and they are modem-dependent,
although there are probably only a few variations at most.) Then
just listen for info coming back.
You probably want your program to check that the modem is taking
the commands (you get an OK back) before assuming that it is working.
Gordon L. Burditt
Navigation:
[Reply to this message]
|