Solved

VB and Modem

Posted on 2003-10-24
6
294 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

832 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