Closing Comm Port with Sportster 28.8K (MSCOMM) 
Author Message
 Closing Comm Port with Sportster 28.8K (MSCOMM)

I am have an application that uses MSCOMM and works as a phone
dialer.  The application works fine on my notebook, but on my
desktop PC when I press my hang up button, the modem does not
disconnect from the line.  I know this because i can here the
connection over the modem speaker.
The Code that I use is as follows to hang up.  Like I say, this
works for the notebook.

Comm1.output = "ATH" + Chr$(13)
Comm1.PortOpen = False

Thanks for any help
Jamie McCrindle



Mon, 22 Feb 1999 03:00:00 GMT  
 Closing Comm Port with Sportster 28.8K (MSCOMM)

I am have an application that uses MSCOMM and works as a phone
dialer.  The application works fine on my notebook, but on my
desktop PC when I press my hang up button, the modem does not
disconnect from the line.  I know this because i can here the
connection over the modem speaker.
The Code that I use is as follows to hang up.  Like I say, this
works for the notebook.

Comm1.output = "ATH" + Chr$(13)
Comm1.PortOpen = False

Thanks for any help
Jamie McCrindle



Mon, 22 Feb 1999 03:00:00 GMT  
 Closing Comm Port with Sportster 28.8K (MSCOMM)

Jamie,
I have this modem and I needed to put a pause or sleep routine in
between sending the hang up code and closing the port. It seems that the
computer is too fast executing the port close before the modem has a
chance to hang up.
HTH

Quote:

> I am have an application that uses MSCOMM and works as a phone
> dialer.  The application works fine on my notebook, but on my
> desktop PC when I press my hang up button, the modem does not
> disconnect from the line.  I know this because i can here the
> connection over the modem speaker.
> The Code that I use is as follows to hang up.  Like I say, this
> works for the notebook.

> Comm1.output = "ATH" + Chr$(13)
> Comm1.PortOpen = False

> Thanks for any help
> Jamie McCrindle



Tue, 23 Feb 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Closing Comm Port with Sportster 28.8 (MSCOMM)

2. Closing Comm Port with Sportster (MSCOMM)

3. MSComm at 28.8k

4. How do I get Baud rates above 28.8K with MSComm

5. How do I correctly trap the Comm Port with MSComm.ocx

6. How do I correctly trap the Comm port with MSComm.ocx

7. Closing the comm port

8. MS Comm Control won't close port

9. Closing a COMM Port

10. Comm Port Open/Close question

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

12. MSComm: Closing the port after data received

 

 
Powered by phpBB® Forum Software