[SOLVED] avoid data loss on UDP

Status
Not open for further replies.

sebblonline

Newbie level 5
Joined
Sep 22, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,361
Hi,

Im trying to send UDP datagrams from a FPGA (Virtex5) to a Windows XP PC. On the FPGA I use the UDP/IP Core from opencores.org. From there I send a fixed number of datagrams to the PC
On the PC I use a simple C application calling the socket function recvfrom() in a loop until all datagrams are received.
My problem is, that I cant receive all datagrams successfully with my c application. Wireshark monitors ALL datagrams sent from the FPGA! How can I handle the data loss via UDP in a C app? How is wireshark working to not lose datagrams?
Im aware that the problem is the transfer speed, because when I put a delay between two datagrams on the FPGA, I can receive all data without loss.

thanks in advance!
sebastian

edit: problem solved: i have a fixed number of datagrams to grab, so i increased the receive buffer with the setsockopt() to that amount of data.
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…