Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by wwycoolboy@Sep 24 2006, 06:37 AM hello niosiiuser:
i am very interesting what you said.i want to how you write your own little udp stack and tcp stack?hope to receive your letter and your code!
thank for you help!! --- Quote End --- Hello wwycoolboy, The only thing I did was to write a little UDP stack which runs besides lwip. Lwip is managing arp and tcp. My code handles the incoming UDP packets only. Decoding UDP packets is easy. Take a look at http://en.wikipedia.org/wiki/user_datagram_protocol (http://en.wikipedia.org/wiki/user_datagram_protocol) to get more information about UDP. My code won’t help you because it is adapted to my very special needs. If I were you I would do the following things: 1. Set up a small lwip Nios application which handles arp and udp. 2. Write a small PC application which sends UDP packets to your Nios system. 3. Examine the packets with Ethereal and compare the information with the UDP protocol to learn more about UDP. 4. Modify your Nios Ethernet driver for intercepting the UDP packets which will be received. 5. Analyse the incepted UDP packets for your application. Good luck, niosIIuser