Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to write modem programming in VFP?
Message
From
27/04/2002 09:03:08
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00647449
Message ID:
00649968
Views:
12
I have some questions:
(1) I am not fully understand the logic of Modem's response. I have checked the Hayes AT command web page, I found it has some AT Command Result Codes like "1 Ring", "8 No Answer" and "33 Fax". I want to receive these modem responses by using ocxComm.input inside a ocxComm's (MS Communication Control) OnComm event but failed.
For example:
1. Ring --- I used ATDT a phone no. (my 2nd phone line) and don't take the call so it keeps ringing. I thought the response will be "Ring" or "No Answer" but it just shows "NO CARRIER"
33. Fax --- I used ATDT to a fax no., the response was "CONNECT", any chance or case can I get a "FAX"?

(2) Is there any possible way to distinguish the phone no. is a fax or a voice? I tried to use a voice to take the call and the response will be "No CARRIER" only. (I think if I got a response of "CONNECT", I can suppose it is a "FAX" or "data"? Right?)

(3) If my case is "The target phone no. will ring for 2 seconds, then it forward to a fax no." Is it possible to get the response of "The first 2 second is: "NO ANSWER", after that it is "CONNECT"? Or the modem will only give us the last response "CONNECT"?

Thanks for help

>>As title or how to send AT command to the modem? And how to get the return response from the modem in VFP like busy, no one take the call, Fax or voice line, etc.
>>I tried to search in VFP's help and book but can't find any hint.
>>Thanks.
>
>You can use MSComm ActiveX control. There're some sample code in mskb #Q291535, file #1154 and file #9336.
Power Wong
Every problem will have a solution, the only problem is that can you find it out.
Previous
Reply
Map
View

Click here to load this message in the networking platform