• 0
YakirP

Packets lost during WiFi connection between 2 ZedBoards cards

Question

Hello

i'm using 2 ZedBoards cards with Vivado 2017.4 (for the record - i've tried to work with 2018.1 but from some reason there was a problem with the wifi's library and someone here at the forum suggest to work with 2017.4. link to this post: https://forum.digilentinc.com/topic/17224-pmod-wifi-sdk-problem/#comment-42818

the 2 ZedBoards are connected with the PmodWiFi module, this module has been tested and the hardware is working fine.

 

my goal is to transfer a 120*160 matrix of integers from one zedboard to another. i've succeded to transfer string or several integers between the boards.

the project are based on the tcp client and tcp server which exists in the examples inside PmodWiFi library. (also tried the UDP examples, didn't work). i'm sending each time an array of 160 elements. so in total in each transfer there are 640 bytes of data. the function being used is: tcpSocket.writeStream((u8*)mat,160*4)) in while loop until 120 transfers are being made.

the current situation is that i'm not getting all the packets at the second card. in average 15-20 packets from total 120 packets are recieved.

after a research i've made, i get an offer to put the function -> DEIPck::periodicTasks(); after every write stream but it didn't work.

putting sleep(2) after each send also didn't solve the issue.

attached a screenshot of the relevant code which will help to explain how the send data works.

i'll be glad if someone could help with this topic or refer me to relevant project.

 

‏‏לכידה.PNG

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @YakirP,

Glad to here you were able to get the Pmod wifi working with Vivado 2017.4. You are correct to be using a client server process.  I have not accomplished this type of protocol in the FPGA/zynq platform before. I am not sure why you are having packet loss. I would search for standard  tcp packet loss reasons and solution. Here is a journal I found that might be helpful.

cheers,

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