On Apr 23, 2006, at 5:37 PM, Kevin Windham wrote:
On Apr 23, 2006, at 6:59 PM, Thomas Cunningham wrote:
PS: why DataAvailable is fired so many times after a single call ?
This appears to be the behavior of the modem. I've been following
this
thread and wrote a little demo that dials up my ISP. The modem
sends back
the instruction sent and a response. Mine looks like this:
I believe, IIRC from my modem days, that there is a command you can
send to the modem to turn that behavior off. I think it's called
local echo.
E0 stops the commands you send the modem from coming back to the
computer. X4 allows it to detect carriers, dial tones, busy signals
and so on. S#? is for looking at the contents of the S registers.
And modems for the most part, are chatty little things until you get
a connection. Then they send the "Carrier Detected" and "Connected
56,600" or something and now you're streaming. The modem messages are
always delimited. With CR/LF I think.
To get back to command state you have to send 3 escape characters.
The old Hayes standard used to be +++ (three pluses). It will respond
with AT. And to hang up you'd say "ATH", then "ATZ" to reset the modem.
For encoding, use ASCII. Modems have been around for a long time.
Perhaps even before encoding. I don't know, I used to work with them
in assembly language (binary) and all you had to know was ASCII.
Ah modems, fond memories...:-)
Mel
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>