MSCOMM - Port data, Mscomm no data 
Author Message
 MSCOMM - Port data, Mscomm no data

Hi all,

2 PC's, sending data back and forth via comm, using
MSCOMM, all of a sudden MSCOMM buffer no longer gets data.
Using the Portmon utility on both machines I see the data
going out and coming in the ports. The MSCOMM control no
longer gets anything in the buffer but Portmon is showing
the data coming in.

Where might I start looking for problems ? Settings ?

Thanks



Tue, 13 Dec 2005 07:34:28 GMT  
 MSCOMM - Port data, Mscomm no data
Hi,

I haven't ever seen this.  I'd have to see an example.  What is your MSComm
.Handshaking property?

--
Richard Grier  (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.



Wed, 14 Dec 2005 00:06:12 GMT  
 MSCOMM - Port data, Mscomm no data
Hi{*filter*},

Good to talk to you again.

I've tried None and XonXoff. The core buffer processing is
code suggested by you, which works fine except for this
anomaly.
-------------------------
    .Settings = "9600,n,8,1"
    .RTSEnable = True
    .DTREnable = True
    .Handshaking = comNone        ' comRTS
    .InputMode = comInputModeText
    .commPort = 1
    .InputLen = 0
    .RThreshold = 1
    .SThreshold = 1
    .OutBufferSize = 1024
    .InBufferSize = 512
--------------------------
Case comEvReceive ' Received RThreshold # of chars.
  InBuff = InBuff & m_comPort.Input

  nPos = InStr(InBuff, Chr(scEOT))

  If (nPos > 0) Then
    Call subCreateMessage(Left$(InBuff, nPos))
    InBuff = Mid$(InBuff, nPos + 2)
  End If
===========================

Quote:
>-----Original Message-----
>Hi,

>I haven't ever seen this.  I'd have to see an example.  
What is your MSComm
>..Handshaking property?

>--
>Richard Grier  (Microsoft Visual Basic MVP)

>See www.hardandsoftware.net for contact information.

>Author of Visual Basic Programmer's Guide to Serial
Communications, 3rd
>Edition ISBN 1-890422-27-4 (391 pages) published February
2002.

>.



Wed, 14 Dec 2005 04:02:59 GMT  
 MSCOMM - Port data, Mscomm no data
Hi,

You need to be more specific.  What is the problem (its too hard for me to
figure out other folks code; I have enough trouble with my own)?
Especially, since they are view the problem from a state closer to the
hardware than the one where I reside.

Dick

--
Richard Grier  (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.



Thu, 15 Dec 2005 09:15:27 GMT  
 MSCOMM - Port data, Mscomm no data
Ok, I'll try...

2 PC's, 2 serial ports, 2 MSComm controls, 2 copies of
Portmon. Data is sent between each PC. Call and response.

Portmon shows the data going and coming from both PC's.

MSComm's buffer on one PC, stops recieving data. Yet
Portmon shows that data is coming in. Data will keep going
out that PC, but nothing shows up in the buffer,
regardless of what Portmon says.

The Oncomm event stops firing.

Quote:
>-----Original Message-----
>Hi,

>You need to be more specific.  What is the problem (its
too hard for me to
>figure out other folks code; I have enough trouble with
my own)?
>Especially, since they are view the problem from a state
closer to the
>hardware than the one where I reside.

>Dick

>--
>Richard Grier  (Microsoft Visual Basic MVP)

>See www.hardandsoftware.net for contact information.

>Author of Visual Basic Programmer's Guide to Serial
Communications, 3rd
>Edition ISBN 1-890422-27-4 (391 pages) published February
2002.

>.



Fri, 16 Dec 2005 23:17:03 GMT  
 MSCOMM - Port data, Mscomm no data
Sorry, I haven't seen this.  My experience suggests that there may be some
underlying logical (program) error.  I have applications that run for weeks
at a time without trouble.

I you are interested in consultation, you can contact me by email.  I'm
afraid that I'd have to know more, to offer more.

Dick

--
Richard Grier  (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.



Sat, 17 Dec 2005 01:03:50 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. QUESTION - Sending data out COM port (w/o using MSCOMM.VBX)

2. MSComm: Closing the port after data received

3. MSComm control - binary data transfer using a com port

4. MSComm does not recieve data when Hyper Terminal recieves data OK

5. HOW RECEIVE BINARY DATA WITH MSCOMM AND STORE THEM AS ASCII

6. MSCOMM and Data Arrays

7. MSCOMM...creating a temp file to write data to

8. MSComm / Serial data request

9. Sending binary data with MSComm control!

10. Using MSComm to receive large amounts of data

11. Help - MSComm Lost Data

12. MSComm - not receiving "0" data correctly

 

 
Powered by phpBB® Forum Software