Hello,
I'm trying to work with UDP communication over sockets starting with the examples in SDK version 8.04.
I modified the TCP example to send a counter out over both TCP and UDP using the same string.
The TCP portion works fine, but the UDP send, while a packet is always sent, does a very poor job of sending the correct string, with frequent skips and duplicates of the received packet. Are UDP sockets fully supported with the current SDK version, or is there ongoing development for that functionality?
memset(&snd_buf, 0, sizeof(snd_buf));
printed = snprintf(snd_buf, sizeof(snd_buf), "Hello over UDP %d\r\n", i);
EnetAppUtils_print(snd_buf);
EnetAppUtils_print("\r\n");
lwip_write(sock_udp, snd_buf, printed);
/* Send data to Host */
ret = lwip_write(sock, snd_buf, printed);
sock above is the tcp socket created in app_socket, sock_udp is a udp socket and a wireshark capture has the udp issue described above as well as a consistent "off by one" lag in the received string.
Thanks,
Mike