Forum Discussion
UDP Socket in Niche Stack
Hi
Can Any one Help me plz in Niche stack.I want to know that how can we create a udp socket in Nichestack and send data or listen this socket to receive data. Its Urgent..................... PLZ Regards Hasil8616 Replies
- Altera_Forum
Honored Contributor
Unless you're using Superloop Nichestack....the same way you would for any other TCP/IP stack that supports the sockets API standard.
Also, this question has definitely been asked before and I believe there's even a few examples...either here or on alterawiki.com. Cheers, slacker - Altera_Forum
Honored Contributor
These Example are so tough for Beginners .........
- Altera_Forum
Honored Contributor
You don't have to use asynchronous sockets (which, I admit, are harder to understand). I would start with something like the following:
http://www.abc.se/~m6695/udp.html There will be small differences to get this functional with Interniche sockets, slightly more with the strangeness that is winsock, but it should work. Cheers, slacker - Altera_Forum
Honored Contributor
OOOH Yes ..................
I have done it............... Yah000000000000000000000 Thanks slacker - Altera_Forum
Honored Contributor
hi I am working on UDP Socket between DE2 board and PC. Could you show me how you were done UDP on DE2 board? (I am sending back and forth one character, like chatting)
- Altera_Forum
Honored Contributor
on De2 you would have to install uclinux or micro tcp/ip with micro c os2 to create the udp socket.As the de2 board has dm9000 ethernet controller which is not supported by interniche stack.
i have done it on de2-115 which have triple speed ethernet which is supported by interniche stack. Regards Hasil86 - Altera_Forum
Honored Contributor
--- Quote Start --- on De2 you would have to install uclinux or micro tcp/ip with micro c os2 to create the udp socket.As the de2 board has dm9000 ethernet controller which is not supported by interniche stack. i have done it on de2-115 which have triple speed ethernet which is supported by interniche stack. Regards Hasil86 --- Quote End --- Hi, as you say about triple speed Ethernet, you meant that you selected the Triple Speed Ethernet IP Core under Series Communication in SOPC. Is it right? Does it work as the same chip with DM9000A? Or that is the other chip on specific board? I am using DE2-70 Board, but there is nothing about Triple Speed Ethernet on the Manual Document. Thank you for your help! - Altera_Forum
Honored Contributor
Triple Speed Ethernet IP doesnt work with dm9000A .It only Works with de2-115 .This is specific to de2-115 .
The only possible solution for networking using sockets in De2-70 1.UClinux 2.Micro C OS2 + Micro C Tcp/ip But i didnt done both of the solution. so you have to workout - Altera_Forum
Honored Contributor
Hi Hasil,
I've got a DE2-115 and trying to get an ethernet connection to the PC, which i'm strucggling with. DO you know a good place to learn from or do you have working code that i can disect so I may teach myself? - Altera_Forum
Honored Contributor
I have done the Ethernet Connection between DE2-70 and PC, I am using DM9000A with UDP socket wrap by manually define Ethernet, IP, and UDP Checksum. On PC side I am running JAVA Programming, you have to do the same on PC side by manually program by RAW socket.
Here the link with very useful projects, which done Ethernet Connection on DE2 board. http://www.cs.columbia.edu/~sedwards/classes/2011/4840/index.html (http://www.cs.columbia.edu/~sedwards/classes/2011/4840/index.html)