Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine dial tone?
Message
From
17/01/2005 12:06:26
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
 
To
17/01/2005 11:49:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00977741
Message ID:
00977773
Views:
19
Hi Tracy,
I'm trying to think how to do that. I used to work with modems a lot long ago and I would just fopen() the com port and fputs() the 'ATZ', etc., can you do that these days? I'm thinking I might have to make an API call or use RAS or something.

On another note, the recent weather up here, -10 to -15, while not unusual for this time of year, has me thinking fondly of NC winters!

Gary


>I think if you send 'ATDT'+CHR(13)to the modem you can check the response buffer for the string "NO DIALTONE" Usually you send an attention and init command to the modem first though. Typically it is: "ATQ0V1E1S0=0" + Chr(13) or "ATZ" + CHR(13) (reponds 'OK')
>
>
>>I'm looking for a way to determine if a dial tone can be gotten from a modem. I have a modem hooked to a Windows server and sometimes the line goes down or the modem is unavailable for a variety of reasons and I'd like to programmatically know this, presumably by taking the modem off hook and detecting a dial tone or some other indication that the modem is turned on and able to get a dial tone.
>>
>>Anyone ever done this? Thanks in advance.
>>
>>Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform