Page 1 of 1
Redirect LOG messages over WiFi (UDP)
Posted: Fri Nov 21, 2025 5:41 pm
by Stipa88
Hello everyone
Can LOG messages, which are printed when the assert(), abort, panic()... functions are called, messages printed on JTAG, be redirected and sent somewhere else, e.g. via UDP?
Tnx
Re: Redirect LOG messages over WiFi (UDP)
Posted: Tue Nov 25, 2025 7:40 am
by MicroController
Re: Redirect LOG messages over WiFi (UDP)
Posted: Tue Nov 25, 2025 6:34 pm
by Stipa88
Thanks for the link.
I think that when abort(), assert(), panic()... UDP messages happen, they are no longer received. And I especially need messages when an error occurs, not the usual log messages
Re: Redirect LOG messages over WiFi (UDP)
Posted: Tue Nov 25, 2025 10:56 pm
by RandomInternetGuy
In general, once you've called panic() it's because the system is in an unrecoverable state. Panic is also not real picky about where it's called from because it's literally the end of the road. Being able to allocate network buffers and successfully transmit them from inside the interrupt handler that called panic because the system had 0 bytes of memory is inherently doomed. Even barfing out a UDP announcement from random context in unknown system state is crazy hard.
Error handling for system errors is inherently difficult. You'd be shocked to learn what server-class OSes have to do in order to be able to write a crash dump when the reason for the crash might be in the very disk driver you're using to write the crash to, for example.
You might get some of them at best, but it's generally a false sense of security.
Re: Redirect LOG messages over WiFi (UDP)
Posted: Wed Nov 26, 2025 9:31 am
by MicroController
A
core dump could help to provide crash information to forward after the reboot.