Solved

VB and Modem

Posted on 2003-10-24
6
293 Views
Last Modified: 2012-05-04
I've a motorola sm56 pci spearkerphone modem which has called id detection facility. i wud like to make an application using the mscomm control of vb to trap the caller id recieved by the modem and show in a text box. any ideas how to accomplish this?
i tried the oncomm event but failed.
0
Comment
Question by:skbandi
  • 2
  • 2
6 Comments
 

Author Comment

by:skbandi
ID: 9619090
hi moderator,
plz shift this question to VB Controls area
0
 
LVL 1

Expert Comment

by:CycLonE
ID: 9619844
Hey skbandi,

The Microsoft modem control does not support this feature directly, that is to say caller ID is supported by a special command sent to your modem, thus caller ID depends on your modem rather than on the ms modem control.

first check to see if your modem support caller ID then

you can use these command to send to your modem using the MScomm control.

If your modem's hardware supports Caller ID, use the V.253 standard command AT+VCID=n command, where
n=0 disables Caller ID
n=1 enables formatted display
n=2 enables unformatted display

Good Luck ;-)
0
 

Author Comment

by:skbandi
ID: 9621465
Hi CycLonE,
i tried it but failed. can u tell me the sequence of operation. suppose my appication is waiting for a call with the portopen method. then if a call comes, it fires a oncomm event and recieves RING from the modem, but the caller Id info is passed between the 1st and the 2nd rings by the telecom company. so how can i catch that? if u can provode me with some logic and code, i really appreciate it. coz the msdn help abt the mscomm control is not sufficient, neither the modem manual with its list of AT commands.
my modem has callerid feature.
0
 
LVL 1

Accepted Solution

by:
CycLonE earned 75 total points
ID: 9641208
Sure it's a very simple process:

To send commands to the modem using the MSCOMM control:
say mscomm name is "MSComm1"
- "AT" is used before any command.
- the Chr$(13) or return is used after each command.
- the command line would be:
MSComm1.Output = "ATVCID=n" & Chr$(13), where :

n=0 disables Caller ID
n=1 enables formatted display
n=2 enables unformatted display
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now