Forum Discussion
Altera_Forum
Honored Contributor
17 years agoDE2_UDP example for download here free (feedbacks are wellcomed)
Hi all.
My goal is to get about 3Mbytes/sec data transfer rate from my DE2 board to PC. Here in this example I get about 1.2 Mbytes/sec. I'll accept comments about, how to speed up this, as well as suggests to improve the code, and some feedback from people that have interest in this theme. Could be in this thread or private. You can download the full project from: http://www.btxsistemas.com.ar/net2.zip I've used Quartus II 7.2 full suite. And the Wireshark software (http://www.wireshark.org/) like a net sniffer, but also, I've included in the main project folder, a UDP reciever to test the comunication between the DE2 board and the PC, if you wont to download the wireshark. Don't forget to specify your IP address and your MAC address in the NIOS hello_word "C" code to get it work properly. The main project is a modification of the DE2_NET demostration code that comes with the DE2 board. Have fun, and I'll be waiting for some comments.94 Replies
- Altera_Forum
Honored Contributor
Hi & sorry.
I didn't finish the reciever part yet, and more, maybe it takes a long time for me that, because I'm playing now with a different hardware. Maybe someone else did it for me. - Altera_Forum
Honored Contributor
HI BTXSistemas,
Can you help to send it NET2.zip to me([email protected])? I download it but i do not able to unzip the contain? This can be a really good start for me. I really appreciate your help. Thanks. Regards, Chong kar foo - Altera_Forum
Honored Contributor
Hi Chong kar fo.
I've checked about a minute ago to download the file and descompress it, and it works fine.... please, check your internet connection or try from another PC or place, it's too heavy to send it by email to you. Cheers. Alberto. - Altera_Forum
Honored Contributor
--- Quote Start --- Hi Chong kar fo. I've checked about a minute ago to download the file and descompress it, and it works fine.... please, check your internet connection or try from another PC or place, it's too heavy to send it by email to you. Cheers. Alberto. --- Quote End --- Hi Alberto, Thanks. I manage to copy over the file. But i couldn't get the your testcase working. I am suspecting 2 thing. I need your help on this. 1. Do i need to change the iport to 1024(currently 80) to make the testcase work? 2. I have both Ethernet adapter Wireless Network Connection(have both IP and MAC) and Ethernet Adapter Local Area Connection(Only MAC). Which one should i choose? Thanks. Regards, cafukarfoo - Altera_Forum
Honored Contributor
Sorry cafukarfoo.
I can't understand your question,... :( You should only write your Ethernet Adapter Local Area IP in the code and your board MAC, no more to test it. Obviously forget your wireless parameters. Cheers. Alberto. - Altera_Forum
Honored Contributor
Hi Alberto,
I attached 2 picture here. 1. Picture 1 show the UDP tester. UDP tester only listen to iport = 1024 2. ANd my LAN setting showing it LAN port =80 instead of 1024. Do i need to make sure my LAN port = 1024 so that i can listen to the board? Thanks. Regards, cafukarfoo - Altera_Forum
Honored Contributor
Hi Alberto,
I manage to transfer data from FPGA to PC and view the data through Wireshark software. But i do not manage to send the correct IP destination to PC. I plan to set IP destination as 192.168.1.103 and it sometimes come out as 192.168.1.0. What actually went wrong here? Do you have any idea? Can i slow down the transmission so that PC always capture the right data? How you measure 3Mbytes/sec data transfer dta from DE2 to PC? Thanks. Regards, cafukarfoo - Altera_Forum
Honored Contributor
--- Quote Start --- Hi Alberto, I attached 2 picture here. 1. Picture 1 show the UDP tester. UDP tester only listen to iport = 1024 2. ANd my LAN setting showing it LAN port =80 instead of 1024. Do i need to make sure my LAN port = 1024 so that i can listen to the board? Thanks. Regards, cafukarfoo --- Quote End --- Forgot what you're doing, you can't test this code by that way..... I will answer in your below question. - Altera_Forum
Honored Contributor
--- Quote Start --- Hi Alberto, I manage to transfer data from FPGA to PC and view the data through Wireshark software. But i do not manage to send the correct IP destination to PC. I plan to set IP destination as 192.168.1.103 and it sometimes come out as 192.168.1.0. What actually went wrong here? Do you have any idea? Can i slow down the transmission so that PC always capture the right data? How you measure 3Mbytes/sec data transfer dta from DE2 to PC? Thanks. Regards, cafukarfoo --- Quote End --- Hi cafukarfoo. You will send bytes from the DE2 to your PC, well, you only should write your PC IP address in the example code in NIOS system (hello_led.c), it is in IPdestination_1, IPdestination_2, IPdestination_3, IPdestination_4. Then write your net card MAC in the Mac_dest1 through Mac_dest6. To be sure it works, connect your DE2 directly to your PC, and try also with a router (if you like). Then use a net sniffer like the "wireshark" http://www.wireshark.org/ Run the demo in your DE2 and "snif" the results in your PC, that's all, you will be able to know the speed transfer in wireshark, and the data you're sending by ethernet. Hope it's clear for you now. Sorry for the delay, I'm too busy this week. Cheers. Alberto. - Altera_Forum
Honored Contributor
Hi Alberto,
That is exactly what i did. I manage to snif the result from my PC using wireshark. But the data( IP destination ) send out by DE2 doesn't match the "IPdestination_1, IPdestination_2, IPdestination_3, IPdestination_4" that i set in the "hello_led.c". The IP destination got by PC(wireshark) is slightly different. Look like data is corrupt duing the transmission. Do you have any idea why this happen? THanks. Regards, cafukarfoo