Forum Discussion
Altera_Forum
Honored Contributor
21 years agolwIP UDP thoughut w/o an RTOS
Wanted to receive 1500 byte payload from 100 MAC (on Cyclone II) device, and using lwIP UDP no RTOS is required. Can the UDP RX receive 80 Mbit/s? Where the UDP TX is minimal for data flow cont...
Altera_Forum
Honored Contributor
20 years agoHell Danny,
take a look at the following code. After executing "udp_test_init" it should be possible to send UDP packets.IP4_ADDR(&udpDestIpAddr, 192, 168, 2, 150);
pbuflfsr = pbuf_alloc(PBUF_TRANSPORT,LFSR_LENGTH,PBUF_RAM); //Get a pbuf struct.
((u8_t *)(pbuflfsr->payload)) = LFSR_TOS;
((u8_t *)(pbuflfsr->payload)) = LFSR_VS;
((u8_t *)(pbuflfsr->payload)) = 0x00;
((u8_t *)(pbuflfsr->payload)) = 0x00;
udp_sendto(pcb, pbuflfsr, &udpDestIpAddr, 1510); Regards, niosIIuser