- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
2 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite