How to manage the uncolicited code with a SIM808

Good evening all!

I am working with a SIM808 whihc manage the incoming call, SMS, etc.

The is a list of unsolicited code result on my Serial1 port which is mixed with my AT response

For exmple:

RING
NO CARRIER
UNDER VOLTAGE
NORMAL POWERDOWN
+CMTI:

If you know SIM808 from simcom, is there a way to manage the unsolicited code, as for exemple, forward it the the Hardware Serial?

Or can I disable all unsolicited code, or a specific one

Actuallay the RING give me some trouble, because each time I call my module RING is merged with my AT+ repsose. It will have the same issue with +CMTI when a SMS is received.

The best way, it to disable it, and enbale with when my code is waiting or checking for an incoming call!
(I do not need the check +CMTI, because I am using an AT+ command to check the saved unread SMS.

Thank for your help!!!

If you want to detect particular messages (such as "UNDER VOLTAGE") you could store the incoming data in a temporary buffer and then search it for each of those messages. I think you need the strstr() function for that.

...R
Serial Input Basics