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
Is there any way you can begin your project by testing it with wired ethernet? Ethernet is a very, very complex subject matter that going straight to wireless is likely to introduce a whole host of problems so wired will be a much easier place to start.
- Altera_Forum
Honored Contributor
Hi BTXSistemas,
I have been following your posts since last year about the UDP communication between PC and DE2..but do you have any resources for UDP communication between two DE2 boards. Your reply would be greatly appreciated. It will help a lot. Thanks - Altera_Forum
Honored Contributor
Sorry.
I've not any more of this, since a lot of time Im not playing with this. Cheers. - Altera_Forum
Honored Contributor
hello,
i downloaded the ethernet project of yours. i generated the system using sopc builder and compiled the assignment file in quartus. then i have downloaded the system on to my DE2 board using altera monitor program. i have added the hello led program to the project in altera monitor program. i have run the program and connected my pc to the network. i have checked the packets in wireshark. i dont find them. i dont understand what the problem is. i am new to this. please guide me. :( - Altera_Forum
Honored Contributor
Hi jamiaditya91,
Pls, give us more information about your tests, as Quartus version, SO version and forth. If you want, you can e-mail me in [email protected]. Regards - Altera_Forum
Honored Contributor
--- Quote Start --- hello, i downloaded the ethernet project of yours. i generated the system using sopc builder and compiled the assignment file in quartus. then i have downloaded the system on to my DE2 board using altera monitor program. i have added the hello led program to the project in altera monitor program. i have run the program and connected my pc to the network. i have checked the packets in wireshark. i dont find them. i dont understand what the problem is. i am new to this. please guide me. :( --- Quote End --- It's been a long time since I worked on this, but you might want to try the version I modified here (http://dl.dropbox.com/u/347853/de2_net.zip) which I know works on the DE2 board. - Altera_Forum
Honored Contributor
hello driscoll42,
i have downloaded your project. i generated the system. and when i used altera monitor program to compile the C code, i got errors. i have added only the hello_led.c code for that. do i need to add any other codes into altera monitor program? i got thr following errors C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:2:66: error: altera_avalon_pio_regs.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:5:27: error: sys/alt_flash.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:6:33: error: sys/alt_flash_types.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:7:88: error: sys/alt_alarm.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:8:32: error: sys/alt_timestamp.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:9:27: error: sys/alt_stdio.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:20:20: error: system.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c: In function 'main': C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: 'BUTTON_PIO_BASE' undeclared (first use in this function) C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: (Each undeclared identifier is reported only once C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: for each function it appears in.) C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:197: error: 'EXPANSION_JP1_BASE' undeclared (first use in this function) Compilation stopped. - Altera_Forum
Honored Contributor
--- Quote Start --- hello driscoll42, i have downloaded your project. i generated the system. and when i used altera monitor program to compile the C code, i got errors. i have added only the hello_led.c code for that. do i need to add any other codes into altera monitor program? i got thr following errors C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:2:66: error: altera_avalon_pio_regs.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:5:27: error: sys/alt_flash.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:6:33: error: sys/alt_flash_types.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:7:88: error: sys/alt_alarm.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:8:32: error: sys/alt_timestamp.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:9:27: error: sys/alt_stdio.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:20:20: error: system.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c: In function 'main': C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: 'BUTTON_PIO_BASE' undeclared (first use in this function) C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: (Each undeclared identifier is reported only once C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: for each function it appears in.) C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:197: error: 'EXPANSION_JP1_BASE' undeclared (first use in this function) Compilation stopped. --- Quote End --- Ah yes, I forgot you needed to install the University Program Installer (http://www.altera.com/education/univ/software/upds/unv-upds.html). That adds the functionality for some bits. Try that and let me know how it goes. - Altera_Forum
Honored Contributor
--- Quote Start --- It's been a long time since I worked on this, but you might want to try the version I modified here (http://dl.dropbox.com/u/347853/de2_net.zip) which I know works on the DE2 board. --- Quote End --- hello driscoll42, i have downloaded your project.. i works fine when i directly connect my DE2 to pc.. but i dont find the packets when i connect it through the network.. do u have any solution for this? and sir.. do u have the project to get the data on to the pc when we ping the DE2 kit? - Altera_Forum
Honored Contributor
hello driscoll42,
i have downloaded your project.. i works fine when i directly connect my DE2 to pc.. but i dont find the packets when i connect it through the network.. do u have any solution for this? and sir.. do u have the project to get the data on to the pc when we ping the DE2 kit?