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
--- Quote Start --- 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. --- Quote End --- hello,dear BTXSistemas,today,I find your code and download it,when I open the NIOSII IDE and build the project,but the error come out,like that No rule to make target `/cygdrive/c/altera/72/ip/nios2_ip/altera_nios2/HAL/src/crt0.S', needed by `crt0.o' I use Quartus II 6.1,maybe this is why the error happen,so I modify the code ,like this <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>altera.components</name> <comment></comment> <projects> </projects> <buildSpec> </buildSpec> <natures> <nature>org.eclipse.cdt.core.cnature</nature> </natures> <linkedResources> <link> <name>Nios II Software Packages</name> <type>2</type> <location>D:\altera\61\nios2eds\components</location> </link> <link> <name>Newlib C Library/src</name> <type>2</type> <location>D:\altera\61\nios2eds\bin\nios2-gnutools\src</location> </link> <link> <name>Newlib C Library/include</name> <type>2</type> <location>D:\altera\61\nios2eds\bin\nios2-gnutools\include</location> </link> <link> <name>IP Device Drivers</name> <type>2</type> <location>D:\altera\61\ip</location> </link> </linkedResources> </projectDescription> But the error is the same,How I should to do?Thanks Very much! My email is [email protected],please tell me what to do if you do not busy! file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/moz-screenshot.png - Altera_Forum
Honored Contributor
I have resolve the problem,and I found the bps is 5.9M/s,sound very good,thank you all the same for offer your code for us,you are so good.
Next,I will read your code ,if I improve the bps when I modify the code,I will tell you,thanks! - Altera_Forum
Honored Contributor
Sorry I was on vacations.
I used Quartus 7.2 for that project. And let me know what you get please !! Thanks so much. Cheers. Alberto. - Altera_Forum
Honored Contributor
I resolved the problem by deleting the "Debug" file and rebuild the IDE projiect and then it worked.
I read your code carefully,but I have confused,when you packet your data,why did you add the MAC address? I think it is not necessary. Another question,when I build my own system use sopc,I want add the TCP\IP protocol,I did not find the option like your system,I don't konw why. Because I want to transport video data using NIOS II,do you have similar code?It will be helpfull. Thank you very much for replay my feedback. - Altera_Forum
Honored Contributor
Hi.
I've packed the MAC in the UDP header.... what do you mean ? Neither I don't understand you 2nd question. Cheers. Alberto. - Altera_Forum
Honored Contributor
I mean that if you don't packet MAC in your UDP header,the system still work or not . Another question is how to add LWIP in my own system if I build my system with SOPC.Please tell me how and the detail progess,thank you very much.
- Altera_Forum
Honored Contributor
hi,thanks,but it seems i cant download
- Altera_Forum
Honored Contributor
hi! i have successfully run your program! but i still have some question ,how does the data packet make up,i know the TXT[]={
Mac_dest1, Mac_dest2, Mac_dest3, Mac_dest4 ,Mac_dest5, Mac_dest6,Mac_source1, Mac_source2, Mac_source3, Mac_source4, Mac_source5, Mac_source6,0x08, 0x00,??? } but i dont konw the ??? part very well,can you tell me? i'll be very thankful. - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
thanks,i have got it!