MS COMM HELP! HELP! HELP!

boskomihic
09-10-2001, 01:51 PM
Hi!
I'm making an application for sending files from one computer to other over modem (without using internet), and I have a problem. I don't know how to answer on incoming calls. Please, tell me how to answer on incoming call, how to make connection between two computers and how to transfer files.
And on the end, how to disconnect
P.S. I’m using Microsoft Comm Control
Hope hear you soon
Bosko

BillSoo
09-10-2001, 02:18 PM
Basically, you open your port to your modem. Then tell your modem to auto answer. Then just wait for a Carrier Detect event. You can put code in the OnComm event for this. In the event, just check the CommEvent property to see if it was a change in the carrier line which triggered the event...



"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

BillSoo
09-10-2001, 02:45 PM
To put your modem in auto-answer mode, just send it the proper command from your modem manual. I vaguely remember it as being an S register command. There is a partial list of commands <a href="http://www.spiralspider.demon.co.uk/hayes.htm"> HERE</a> but you should really consult your modem manual....



"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

boskomihic
09-11-2001, 02:24 PM
Please tell me,
how can I say to modem to answer on incoming call?
(Witch AT command shell I use?)

MSComm1.Settings = 115200,n,8,1
MSComm1.CommPort = 2
MSComm1.PortOpen = True
MSComm1.Output = ????????????????(what comes here?)

basdewaard
09-12-2001, 12:31 AM
Here are a couple of good reference sites on commands:

(http://www.modems.com/general/extendat.html> <font color=blue>Modems </font color=blue) and


Hope these help



<font color=blue> :: grin-r :: </font color=blue>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum