|No. 1710||Re: Re: Re: Re: Re: Re: Data Loss wit CSW-M83 Serial RS232 to WIFI||2019-12-06|
Thank you for the information.
The serial receiving buffer size of CSW-M83 is 1024 bytes.
When “Disable TCP transmission delay” is set, CSW-M83 receives data from serial port and forwards to network as quickly as possible.
Therefore, a single frame of serial data may be divided into multiple packets and transmitted separately to TCP network.
So, you may see the small-size TCP frames.
For your reference, you may also try to unset “Disable TCP transmission delay”, and use "Separator function" instead.
If you send the serial frame with separators, then CSW-M83 will forward the TCP frame based on those separators.
Using this function, you may set CSW-M83 to send the TCP frame with the larger size, thus reduces the number of TCP frames sent.
In case of WLAN connection, reducing the number of frames sent may increase the TCP transmission rate.
Note that, when you enable this function, the maximum packet size is 512 bytes.
For more information about this function, you can refer to page 66, CSW-M83, https://www.eztcp.com/en/download/pds_files/cswm83en.pdf.
Please feel free to contact us if you have any inquiries.
Thank you very much.
> Garros wrote:
> Thanks for your answer.
> I already tried do disable TCP delay option. And I receive TCP frame with a little size. Very often 14 bytes.
> What is the buffer size in the chip ?
> For your information we send via serial a 23 bytes Frame at a frequency of 800Hz.
> It doesn't seems to me to be too much for a Wifi connection.