Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top