Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2006, 06:43 AM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aksharma Send a message via Yahoo to aksharma
Default Voice Conversation Problem through Modem

hi all guys n gals

i m facing a call disconnection problem while voice conversation

i won't be able to disconnect my call .

any budy knows how to make a voice call through modem and how to disconnect it.

i m using this way

AT#CLS=8

OK

AT#VLS=6

OK

AT#VRN=0

OK

ATDT212

VCON

AT#VTX

CONNECT

after this i want to disconnect but can't

can any one help me....



Anil Kumar Sharma
 
Old June 13th, 2006, 06:59 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Sharma

check this link
http://members.tripod.com/michaelgellis/modem.html

and search for disconnect, it highligts the commands there which
might help you to disconnect the phone line

hope this helps



With Regards,
Raghavendra Mudugal
 
Old June 13th, 2006, 07:02 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And also look up there

ATH: Hang up in Voice Mode

just give a try

With Regards,
Raghavendra Mudugal
 
Old June 13th, 2006, 07:06 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And check this link

Hayes Modem Commands

&D3, Hang up, reset modem and return to command mode upon DTR. &F0 or &F, Factory defaults

http://www.lisa.univ-paris12.fr/Electronik/Hayes.htm

hope this helps


With Regards,
Raghavendra Mudugal
 
Old June 13th, 2006, 08:14 AM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aksharma Send a message via Yahoo to aksharma
Default

I m very thankful to u raghavendra ji
but i have try ATH command
When i m in voice conversation mode then i won't accept any ATH or ATZ Command
even destination end hang up the phone.
My modem produce an arrow sign and b character and won't accept any command untill i hard reset my external modem or restart the PC

I try anything which i can do
may be i m thinking that i missing setting of any register which link to AT#VTX command

if u know please tell me ASAP.

again Thank you very much for reply... :)
Hope, u'll get rid of this problem..


Anil Kumar Sharma
 
Old June 13th, 2006, 08:47 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Sharma Ji,

if possible, let me know which modem you are using (model, name ...)
and as of knowledge, the modem's booklet or web site will provide some
set of commands to send from PC, please refer to that. If you already refered,
then send me the details of your modem.

And by the way, how did you connect the modem to PC COM1 or COM2 and are you
using MSCOMM32 control of VB6 or any other 3rd party control.

Please let me know, it will help to figure it our how to get rid of this
problem.

hope this helps.



With Regards,
Raghavendra Mudugal
 
Old June 13th, 2006, 11:44 PM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aksharma Send a message via Yahoo to aksharma
Default

Thank you for ur reply Mudugal Ji,

i m using MSCOMM32 control of VB6 and i have an external MD 56K Data/Fax/Voice Modem which is connected to COM1 Port

The Modem company is Microtek and its Chipset is Rockwell

I have already read Rockwell Voice Command document but the link is :

http://gmacario.altervista.org/voice-cmds.html

I found rockwell name by using AT#MFR? command

I think u use my voice commands then may u face same problem which i have and u got exact answere

u can use these command on ur hyper terminal which is connected to COM1 Port
use commands like this

AT#CLS=8 (First Command - Setting Voice Command Mode)

OK (Get Ok Messsage From Modem)

AT#VLS=6 (Second Command - Setting Headset and SpeakerPhone Mode)

OK (Get Ok Messsage From Modem)

AT#VRN=0 (Third Command - Setting Ringback Never Came Timer (Originate))

OK (Get Ok Messsage From Modem)

ATDT212 (Fourth command - Dial Phone no - 212 is our extension no,
         u can also test on ur local EPABX system)

VCON (Modem send message that means u r ready to voice communication)

AT#VTX (Fifth Command - A Clear Voice Transmission Command)

CONNECT (Finally modem reply with connect message and u can talk with each other)

->u ( and i have receive this string arrow and u which i think
       Shielded DTE Command String)

     If other end hang up the phone the i got a Continuous string Like
->b (it may be busy string)

    but after that i could not disconnect or reset modem even i send ATH or ATZ Command to modem

   Now please tell where i m wrong ....

thank you for devoting ur precious time

waiting for ur reply



Anil Kumar Sharma
 
Old June 14th, 2006, 12:47 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Sharma ji,

your explaintion was very clear. (thank you for that)

I will look into this and get back to you as soon.

By the way in mean while, check this

set RThreshold=0 (so here receiving "->b" is stopped)
Clear InBuffer and OutBuffer
and
set RThreshold=1 (so line is clear)
and try sending the command for disconnecting.

This is just an idea of me (well i am not sure)

Hope this helps


With Regards,
Raghavendra Mudugal
 
Old June 14th, 2006, 12:54 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I guess in the link ...
http://gmacario.altervista.org/voice-cmds.html

if you look at 8.2.8 (Section), there its clearly mentioned what exactly
you are looking for. and to your explaination, i came to know its not
happening as you need.

In my previous post what i said, just give a try on that and send "H" command
hope it might receive and line gets disconnected.

CDHolding Property (MSCOMM32, avail only at ruu time)
===================
Determines whether the carrier is present by querying the state of the Carrier Detect (CD) line. Carrier Detect is a signal sent from a modem to the attached computer to indicate that the modem is online. This property is not available at design time and is read-only at run time.

Setting Description
True: Carrier Detect line is high
False: Carrier Detect line is low

Note:It is especially important to trap a loss of the carrier in a host application, such as a bulletin board, because the caller can hang up (drop the carrier) at any time.

The Carrier Detect is also known as the Receive Line Signal Detect (RLSD).


With Regards,
Raghavendra Mudugal
 
Old June 14th, 2006, 01:52 AM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aksharma Send a message via Yahoo to aksharma
Default

Hello Sir ...

 if u have only 5 minutes then try above 5 AT commands and use disconnect command , u'll find out what i have exact problem b'coz' when i execute last command AT#VTX it won't accept any other commands.

I have also tried for disconnecting phone line
 MSCOMM1.RThreshold=0
 MSComm1.InBuffertCount=0
 MSComm1.OutBufferCount=0
 MSComm1.RThreshold=1
 ATH
 ATZ

 but can't...........

 hope u'll not angry and understand me

 THANK YOU VERY MUCH



Anil Kumar Sharma





Similar Threads
Thread Thread Starter Forum Replies Last Post
modem poja Visual Studio 2005 10 September 15th, 2011 03:31 AM
voice problem in phone dialer mkazim85 VS.NET 2002/2003 0 October 6th, 2007 01:31 AM
modem driver angelboy Linux 1 October 5th, 2007 03:27 PM
Modem poja Pro Visual Basic 2005 0 November 15th, 2006 11:34 PM
Phone and Modem options abelmirma Access VBA 0 March 3rd, 2005 12:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.