• 0
Ram

Xilinx SDK Templates echo server

Question

Hello everyone,

can anyone please tell me the size of send buffer in echo server XSDK code and also in which header file it is mentioned ...

your comments will be really helpful for me...please reply ...

thanks

Ram

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @Ram,

I believe it is the size of the tpcb which is used in the echo.c with the tcp_sndbuf and tcp_recv. I have attached an altered echo.c file that looks for two different strings and send a specific response when it gets the two different strings. 

best regards,

Jon

echo.txt

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, jpeyron said:

Hi @Ram,

I believe it is the size of the tpcb which is used in the echo.c with the tcp_sndbuf and tcp_recv. I have attached an altered echo.c file that looks for two different strings and send a specific response when it gets the two different strings. 

best regards,

Jon

echo.txt 4.23 kB · 0 downloads

Hi jpeyron,

thanks for your reply, actually in lwip echo server code, the tcp send buffer size is 8192 bytes, and it is fixed, but i need more size, becoze large number of data is transferring from zybo board to PC through ethernet, but due to limited size of send buffer only few data are receiving, i tried to change size 65536 bytes in system.mss file of board support package and it changed successfully, and rebuilding the program is successfully worked, and program is also successfully run on hardware but when i tried to make tcp connection via hercules utility tool. it said TCP connection timeout.

i dont know why tcp connection is not made successfully by hercules, 

can you please help me out from this issue...

thanks

Share this post


Link to post
Share on other sites
  • 0

Hi @Ram,

I have not altered the size of the send buffer for the LWiP.  I would suggest reaching out to xilinx about altering the send buffer with their IP.  Here is a a xilinx wiki ( wiki ) and here is a forum thread that might be helpful as well.

best regards,

Jon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now