After sending an outgoing call using SIM900 GSM module using AT commands, is there a way to know if the person receiving the call has answered it?
(directly communicating with GSM module using serial)
After sending an outgoing call using SIM900 GSM module using AT commands, is there a way to know if the person receiving the call has answered it?
(directly communicating with GSM module using serial)
Copyright © 2021 Jogjafile Inc.
The command
+CLCC
is the standard way to perform what you are asking. It means that this command will be available in any device supporting ETSI specification whatever is the model or the vendor.From SIM900 AT command guide:
So, basically, what you need to do is to provide the command (in polling), search for the row of the answer containing the remote number you are dialing to, contained in <number> parameter, and wait until the value of parameter <stat> changes from
2
(Dialing) to0
(Active).An alternative way for obtaining the info, not involving polling, is to enable URCs (unsolicited result codes). By setting
an URC will be asynchronously sent to the serial port whenever the call status changes (with the same format of the execution command respose explained above).
An easier SIM900 specific solution
It involves
AT+MORING
command. From AT command guide:So, providing
will enable a family of URCs in case of Mobile Originated call, in the form