Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5054

MicroPython • Re: How to receive large (>1024 byte) UDP datagram packets?

$
0
0
I just ran the example I found here (viewtopic.php?t=340208#p2039727). It's in C, and I can nicely verify that the low level UDP receive callback (RcvFromUDP) gets the information about packets > MTU: p->len gives 1472, whereas p->tot_len gives the total sent size, e.g. 2000. Oddly, though, there isn't a callback happening for the other part.
Many thanks for a pointer to that code. I have not done any networking using Pico SDK so it's always useful to have a helping hand when adventuring into unfamiliar territory.
The fact that I only got 1024 in my original test was because I was using the default micropython image which has a hard-coded 1024 limit in the lwipopts. Or so I thought to have seen there before. Now, when checking, I can't find anything like that any more.
I guess that was down to running older MicroPython firmware.

In which case I would say the headline issue is indeed solved.

Statistics: Posted by hippy — Tue Jul 30, 2024 12:52 pm



Viewing all articles
Browse latest Browse all 5054

Trending Articles