WINC3400 socket buffer max length

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

 

I am trying to send 7k data via WIFI.

And I found almost 200ms latency for transfer this data.

So I am trying to change below socket buffer length in socket.h

#define SOCKET_BUFFER_MAX_LENGTH                            1400

But it make disconnect tcp connection or no ack issues. not working at all.

Anyone know how can I change it and is possible to reduce data transfer time via WIFI on WINC3400?

 

Thanks,

Aaron

AaronK

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You shouldn't change that #define. It is a number that indicates what the hardware is capable. In this case, it tells you that the max TCP payload size is 1400. If you have a large chunk of data to send, you need to break it down into smaller pieces. You can call send() multiple times until it returns SOCK_ERR_BUFFER_FULL. 

Last Edited: Thu. Apr 25, 2019 - 02:39 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks!! I got it

AaronK