Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB and Modem

Posted on 2003-10-24
6
Medium Priority
?
300 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 300 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 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