- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am working on a project where I need to send data from the cycloneIII board to the computer.I am using triple speed ethernet megafunction in the project. I need to use UDP protocol for the communication. Should the UDP protocol data be written in the FIFO or are they sent automatically? If so can you help me in the format of the UDP protocol. I found some information on the web about the protocols. As I understand the Ipv4 header, then the UDP protocol header and then the data should be sent. Is that right? Thanks.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nope. It's not that simple.
I think you'd need a processor and a stack to deal with UDP. You might want to look at the following: http://www.nioswiki.com/exampledesigns/nios2udpoffloadexample http://www.nioswiki.com/exampledesigns/superloopsimplesocketserverplus Cheers, - Brendan- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using a CPU with a TCP/IP stack is the easyest way to go. Using the Nios IDE you can create a simple project with ethernet interface within minutes.
If you need speed / low power or can't/won't have a CPU, UDP packets can be generated in hardware and sent to the TSE, but it's a lot of work. You need to add the headers for the UDP, IPv4 and Ethernet, as shown in the offload example given by Brendan. If you don't know the destination MAC address, you also need to implement the ARP protocol.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page