Page 1 of 1

ESP32c3 mini - URC messages

Posted: Fri Nov 28, 2025 10:22 am
by LucioS
Good morning,
i have a question about the urc messages scenarios :

I send a AT command :
1 - the URC can be received before the answer ?
2 - the URC can be received in the middle of the answer?
3 - the receiving is random?

I'm receving datas (for examples from a server):
+IPD:xxxxxxxx

A urc can be received in the middle? like this : +IPD,0,n:xxxxxxxxxxxxxxxxxxx+CONNECT,0xxxxxxxx or a MQTT notify

In other words , is there a "syncronization" with the ongoing trasmissions from the ESP to the microcontroller?

Thank you.

Best regards,
Lucio.

Re: ESP32c3 mini - URC messages

Posted: Wed Dec 17, 2025 6:48 am
by esp-at
@LucioS URC messages are asynchronous and are generated by internal events (Wi-Fi, TCP/IP, MQTT, etc.).
They are not synchronized with AT command execution, so a URC may arrive before, during, or after the response of an AT command.

However, the firmware ensures that:
  • Each message (AT response or URC) is output as a complete line
  • Messages are not byte-interleaved
So while messages may be interleaved at the line level, they are not mixed at the character level.

So a situation like this will NOT happen:

Code: Select all

+IPD,0,n:xxxxxxxxxxxx+CONNECT,0xxxxxxxx