hanging up w/ mscomm.vbx? 
Author Message
 hanging up w/ mscomm.vbx?

Quote:

> Does anyone know how to propertly hangup using mscomm.vbx?  I tried
> setting the property, PortOpen, to false but that releases the comm
> port but doesn't hang up the phone.  
> Thanx.
>                                    Phil Chin


    Ret = MSComm1.DTREnable     'Save current setting
    MSComm1.DTREnable = True    'Turn DTR on
    MSComm1.DTREnable = False   'Turn DTR off
    MSComm1.DTREnable = Ret     'Restore old setting
--
Bob



Wed, 14 Jan 1998 03:00:00 GMT  
 hanging up w/ mscomm.vbx?
Does anyone know how to propertly hangup using mscomm.vbx?  I tried
setting the property, PortOpen, to false but that releases the comm
port but doesn't hang up the phone.  
Thanx.
                                        Phil Chin



Wed, 14 Jan 1998 03:00:00 GMT  
 hanging up w/ mscomm.vbx?

Quote:
>> Does anyone know how to propertly hangup using mscomm.vbx?  I tried
>> setting the property, PortOpen, to false but that releases the comm
>> port but doesn't hang up the phone.  
>> Thanx.
>>                                       Phil Chin

>    Ret = MSComm1.DTREnable     'Save current setting
>    MSComm1.DTREnable = True    'Turn DTR on
>    MSComm1.DTREnable = False   'Turn DTR off
>    MSComm1.DTREnable = Ret     'Restore old setting
>--

your modem should have a hangup command something like: ATH0, look in your
modem book, send the command then you should be able to close the port ( and
even read the message from the modem that connection is lost . .)_
cpm


Thu, 15 Jan 1998 03:00:00 GMT  
 hanging up w/ mscomm.vbx?


Quote:

> >> Does anyone know how to propertly hangup using mscomm.vbx?  I tried
> >> setting the property, PortOpen, to false but that releases the comm
> >> port but doesn't hang up the phone.  
> >> Thanx.
> >>                                       Phil Chin

> >    Ret = MSComm1.DTREnable     'Save current setting
> >    MSComm1.DTREnable = True    'Turn DTR on
> >    MSComm1.DTREnable = False   'Turn DTR off
> >    MSComm1.DTREnable = Ret     'Restore old setting
> >--

> your modem should have a hangup command something like: ATH0, look in
> your
> modem book, send the command then you should be able to close the port
> ( and
> even read the message from the modem that connection is lost . .)_
> cpm

I like the drop DTR method because it works if your modem is online (in
connect mode, I mean).  To use the ATH0 method while connected you must
first send "+++", wait a second or 2 to go into command mode, then send the
hangup command.

--
Bob

Author of DIALM and DIALW phone dialers.
Latest Versions: http://www.execpc.com/~bwilcox



Thu, 15 Jan 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. MSComm.VBX hangs computer? (Visual Basic 3.0, 4.0)

2. VB and COM ports and mscomm.vbx and hung PCs

3. MSCOMM.VBX Hanging UP

4. (MSCOMM.VBX) Hanging up the connection?

5. Outlook Hang ups

6. Visual Voice and Hang-ups

7. MSComm hangs computer? (VB 3.0, 4.0)

8. Why does MSComm hang PC on Open?

9. MSComm hangs computer? (VB 3.0, 4.0)

10. VB MSCOMM close port w/o hang-up

11. (BUG): Hanging up the modem without mscomm

12. MSComm-hangs if no answer?!?

 

 
Powered by phpBB® Forum Software