Forum Discussion
DE2_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
That's all I need to test it.
Thank you very much - Altera_Forum
Honored Contributor
You're wellcome, I hope that code was usefull for you & somebody more.
I test it again with my new PC net card, and I get 5.9 Mbytes/sec. !! Which is too much that I expected. I'll try to send something more usefull too, when I've some free time, maybe video. - Altera_Forum
Honored Contributor
Hello, I would like to know how to receive packages or information from the PC to the FPGA using Ethernet? You have the code for this task?
Thank you. - Altera_Forum
Honored Contributor
Hi. That is my next task man.
But still I get no time free to play with that. Once I get it, I'll post again, maybe too, I will ask some about that, I was trying a little bit after finished the send process, but I had some problems and I did leave it. - Altera_Forum
Honored Contributor
Look at any of the examples that provide a web server and the example code available with AN 429, available on Altera's AN Literature page (http://www.altera.com/literature/lit-an.jsp). The code for AN429 implements a subset of what a full tftp server would provide in order to perform remote configuration and it is pretty simple to understand.
These won't work out of the box on the DE2, but they should get you 90+% of the way there. Good luck! - Ura - Altera_Forum
Honored Contributor
Oh !! Thanks a lot Ura.
I downloaded it yet, I'll advise when I've notices. - Altera_Forum
Honored Contributor
Thanks Ura!
- Altera_Forum
Honored Contributor
Already tried to add this code in the last lines?
if (ior(0xFE)&0x01) { iow (0xFE,0x01); ethernet_interrupts(); } else { usleep(10); } } return 0; for receive! - Altera_Forum
Honored Contributor
If I don't remember bad, the recieve part code was commented in my original code, but if not, you can take it from the DE2_NET example. Then you need to understand it, and try to get work it fine. I did it but I had some problems.
- Altera_Forum
Honored Contributor
Dear BTXSistemas, Thanks alot for this project, but I don't know how to specify MAC and IP adress,also how using "wireshark", please help me,Thank you