Re: SerialPort control using RTS/CTS seems to loose bytes
- From: "davewilliamson55555@xxxxxxxxxxx" <davewilliamson55555@xxxxxxxxxxx>
- Date: 21 Nov 2006 10:36:11 -0800
***,
I'm using hardware handshaking for flow control. The cable being used
has CTS and RTS crossed and RXD and TXD crossed (as well as DSR/DTR but
I'm not using that).
The SerialPort on both sides is setup like this:
With SerialPort1
Try
.PortName = "COM1" 'windows mobile 5
.ReadBufferSize = 4096 * 4
.WriteBufferSize = 4096
.Open()
.BaudRate = 115200
.Parity = IO.Ports.Parity.None
.DataBits = 8
.StopBits = IO.Ports.StopBits.One
.Handshake = IO.Ports.Handshake.RequestToSend
.ReadTimeout = 500
.WriteTimeout = 500
.Encoding = System.Text.Encoding.UTF8
.ReceivedBytesThreshold = 1
.DiscardInBuffer()
.DiscardOutBuffer()
Catch ex As Exception
MsgBox(ex.Message)
Exit Sub
End Try
End With
Receive Buffer Overflow .... yes ... the receiver is reporting an
Overrun ... (stupid me I should have been trapping those errors all
along anyway).
Now I need to figure out why with RTS/CTS it is getting an overrun.
.
- Follow-Ups:
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: *** Grier
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: davewilliamson55555@xxxxxxxxxxx
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: Paul G. Tobey [eMVP]
- Re: SerialPort control using RTS/CTS seems to loose bytes
- References:
- SerialPort control using RTS/CTS seems to loose bytes
- From: davewilliamson55555@xxxxxxxxxxx
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: davewilliamson55555@xxxxxxxxxxx
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: *** Grier
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: davewilliamson55555@xxxxxxxxxxx
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: davewilliamson55555@xxxxxxxxxxx
- Re: SerialPort control using RTS/CTS seems to loose bytes
- From: *** Grier
- SerialPort control using RTS/CTS seems to loose bytes
- Prev by Date: Re: SerialPort.Read()
- Next by Date: Re: SerialPort control using RTS/CTS seems to loose bytes
- Previous by thread: Re: SerialPort control using RTS/CTS seems to loose bytes
- Next by thread: Re: SerialPort control using RTS/CTS seems to loose bytes
- Index(es):