Solved

How to receive incoming calls using mscomm control

Posted on 2002-07-10
5
300 Views
Last Modified: 2008-01-09
Hi,
I'm using MSCOMM control for my dialer program.

the following is my vb settings:-
   MSComm1.CommPort = 3
   MSComm1.Settings = "9600,N,8,1"
   MSComm1.InputLen = 0
   MSComm1.RTSEnable = True    'must
   MSComm1.PortOpen = True
   
this one is a call
   MSComm1.Output = "ATDT" + Trim(Text1.Text) + Chr$(13)
and this is on my timer
   If MSComm1.InBufferCount Then
        MsgBox (MSComm1.Input)
   End If
at this stage, i can call any phone number and also can send & receive msg to & from other party.

but when other party call my program, i don't know how to pickup or receive the call. for a start can somebody show how to pop up a message when there is a incoming calls.

0
Comment
Question by:azsoft
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 50 total points
ID: 7143234
0
 
LVL 4

Expert Comment

by:AlonHirsch
ID: 7145309
Hi,

The MSCOMM Control raises events when ever anything happens on the COM port.
The Event is _OnCom

You have to detect a RING on the modem (comEvRing) and when it is received, you need to issues an ANSWER modem instruction (ATA).

If you set the RTThreshHold to 1 - an event will be raised everytime a character arrives on the port.
You can also use this to detect the 'RING' data arriving on the port and then handling the Ring.

I've had to do this on NT as NT has a problem raising the comEvRing event.

Once the modem answers the call you can change the RTThreshHold to a value that better suits you or even to 0 to prevent the raising of events.

HTH,
Alon
0
 

Author Comment

by:azsoft
ID: 7153321
Where can i get the ATA.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8002263
Hi azsoft,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept vinnyd79's comment(s) as an answer.

azsoft, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8095162
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS Date Picker 64 bit 32 bit issue 12 72
Visual Studio search word table and return Cell index 8 85
How to Add / Edit Windows Menu 4 80
Zip Folders Using Chilkat Routines 1 86
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question