It looks like the SRING: x is being treated as an undefined message rather than a unsolicited message. What does your pCellularUrcTokenWoPrefixTable look like?
It looks like SRING: x is the URC to indicate that data is ready to be received from the socket buffer.
Once SRING: x is received, you should call the callback function registered with Cellular_SocketRegisterDataReadyCallback to notify application to receive from the socket.
The problem is that the URC SRING: x doesn’t start with + leading char. This causes the library to regard this line as undefined response and delegate the handling of this line to the cellular modem port through undefined message callback. The cellular modem port can handle the undefined message in the callback.
You can reference the SARA-R4 +UUSORD URC handler implementation for your undefined message handler implementation.
Hello !
i already take as a reference the SARA-R4 source
i understood this URC is not handled by the lib and also seen i can use the undefined message callback but before writing code, i prefered asked here if there is other config to do for this case.
in the meantime, i tried with a homemade workaround… …
defining “S” as a leading prefix, and “RING” in the URC callback table…
That’s works like a charm… but honestly, its not satisfying…
in fact i do not understand the behaviour of identifying an URC by the leading char… all modems have differents leading chars (and some not…) and for compatibilities, i think it could be better the library should not take care about this leading char but the whole frame header…
i haven’t understood the benefits of this…
i will implement the undefined message callback for my modem.
again with URC not handled…
here i do not understand why the URC (not really an URC) “NO CARRIER” is not handled in all cases… same for all errors frames…
This response comes always as AT UNDEFINED …
for sur the differents arrays defining URCs are well defined…
Honestly I’m a little bit frustrated with the behavior of the lib…
if i need to redefine all internal functions outside…