Re: Broken TCP/IP packets
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Mon, 2 Apr 2007 13:41:18 -0700
In your TCP layer add packetization overhead and then decode it
in the other end. With TCP you have no guarantee for the receive
sizes because TCP is a stream.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Ali" <abdulrazaq@xxxxxxxxx> wrote in message
news:1175420831.870106.313590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a serial device that is using MCU's UART (rs232) for data
transfer, every time my device is suppose to deliver 20 bytes making
it a single transaction. We have a VB and C# app using MSCOMM and it
works perfectly.
Now I have added an Ethernet converter to convert serial data to TCP/
IP packets. It works atleast for half of the time. For the rest of
the problematic half the behavior is very strange, yes, my received
packets are broken in parts. For example I'll receive 20 bytes in tow
transactions like 10 byte for each time. I tried to look at the MCU
UART signal via oscilloscope but the timing was quite consistent.
Can't understand why packets are broken/scattered, any idea? where is
should be lookin?
The TCP/IP is using simple send function upon the arrival of serial
data. Is there anything that i can do with time out or anything else?
regards,
ali
.
- References:
- Broken TCP/IP packets
- From: Ali
- Broken TCP/IP packets
- Prev by Date: Re: Enumerating user of a domain from a service
- Next by Date: Re: authenticating AD users from the workstation computer
- Previous by thread: Re: Broken TCP/IP packets
- Next by thread: Re: Set Static IP configuration, Enable/Disable DHCP
- Index(es):
Relevant Pages
|