Solved

VB and Modem

Posted on 2003-10-24
6
296 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
[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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The Rasberry PI is a low cost piece of hardware that you can have a lot of fun with through experimenting and building/working on projects like media players, running a low cost computer, build data loggers etc. - see: https://www.raspberrypi.org
A clone is a duplicate copy. Sheep have been cloned and maybe someday even people will be cloned, but disk cloning (performed by the hard drive cloning software) is a vital tool used to manage and protect data. Let’s look at what hard drive cloning …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

696 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