Redirect LOG messages over WiFi (UDP)

Stipa88
Posts: 25
Joined: Mon May 09, 2022 12:26 pm

Redirect LOG messages over WiFi (UDP)

Postby Stipa88 » Fri Nov 21, 2025 5:41 pm

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

MicroController
Posts: 2669
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Redirect LOG messages over WiFi (UDP)

Postby MicroController » Tue Nov 25, 2025 7:40 am


Stipa88
Posts: 25
Joined: Mon May 09, 2022 12:26 pm

Re: Redirect LOG messages over WiFi (UDP)

Postby Stipa88 » Tue Nov 25, 2025 6:34 pm

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

RandomInternetGuy
Posts: 82
Joined: Fri Aug 11, 2023 4:56 am

Re: Redirect LOG messages over WiFi (UDP)

Postby RandomInternetGuy » Tue Nov 25, 2025 10:56 pm

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.

MicroController
Posts: 2669
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Redirect LOG messages over WiFi (UDP)

Postby MicroController » Wed Nov 26, 2025 9:31 am

A core dump could help to provide crash information to forward after the reboot.

Who is online

Users browsing this forum: Bing [Bot], ChatGPT-User and 2 guests