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.
You can specify a MAC address and a IP simply, write them in the correct place of the code....do you take a look at it ?? Wireshark is a net sniffer...just download it, and read the help file, it is very easy to understand. Cheers Alberto. - Altera_Forum
Honored Contributor
I know that I can write the MAc an IP Adress, but how can I find them in my PC? also IP adress for DE2 is always the same?
- Altera_Forum
Honored Contributor
Hi.
You have in the NIOS code:
Well, look for in your OS "net conections" (If it's XP) and see the details for the active one. You'll be find there your machine IP and your MAC address, write them in IPdestination and Mac_dest respectively. No more to do. The NIOS code has asigned an IP for your DE2 and a Mac too, you can change it if you want for another, So your DE2 will have for ever you run that code the same IP and MAC, change the IPdest and Macdest if you run the code in another computer.....or READ some more about net connections. Cheers. Alberto.IPsource_1 = 0xC0; // Assign ie: 192.168.0.44 IP for the DE2 IPsource_2 = 0xA8; IPsource_3 = 0x00; IPsource_4 = 0x2C; IPdestination_1 = 0xxx; // Insert your IP data here IPdestination_2 = 0xxx; IPdestination_3 = 0xxx; IPdestination_4 = 0xxx; Mac_dest1 = 0xxx; // Insert your MAC address data here Mac_dest2 = 0xxx; Mac_dest3 = 0xxx; Mac_dest4 = 0xxx; Mac_dest5 = 0xxx; Mac_dest6 = 0xxx; Mac_source1 = 0x01; // Assign an MAC address for DE2 Mac_source2 = 0x60; Mac_source3 = 0x6E; Mac_source4 = 0x11; Mac_source5 = 0x02; Mac_source6 = 0x0F; - Altera_Forum
Honored Contributor
Thanks a lot, I've got it.
- Altera_Forum
Honored Contributor
Dear BTXSistemas , The program is full work, but I wonder if you use MATLAB to receive data, because i've tried, but I can't get the data.
- Altera_Forum
Honored Contributor
Hi everybody! Can you send NET2.zip for me? my mail "[email protected]". Thank you very much. I'm beginer.
- Altera_Forum
Honored Contributor
Hello!
Thanks for a project, but an archive seems to be broken. Could you repack it and upload somewhere else? I'd be very grateful. - Altera_Forum
Honored Contributor
I just tested the archive and it is fine.
- Altera_Forum
Honored Contributor
--- Quote Start --- I just tested the archive and it is fine. --- Quote End --- Yep. WinRar turned down to unpack that files, but 7zip. Thnx for help. - Altera_Forum
Honored Contributor
The file was compressed using Winzip, I've tested it, and it is fine.