0

I am using a SIM800C Module with AWS IoT. I want to be able to trigger some code running on my device by sending an SMS from AWS.

I can generate the SMS OK, but I'm stuck with how to get this to trigger the code I want to run. I assume I need to generate an interrupt and put my code in an interrupt handler?

In that case, how do I generate the interrupt?

4
  • 1
    Why is this tagged mqtt when you talk about using sms?
    – hardillb
    Commented Jan 10, 2018 at 14:41
  • 3
    What do you mean by triggering an interrupt in the SIM800C? Commented Jan 10, 2018 at 15:49
  • 1
    @naveen, I edited your question to reflect one of the possible interpretations of what you might be asking. Actually, you're asking the wrong level of detail, and probably don't want an interrupt at all here. Commented Jan 11, 2018 at 8:51
  • 1
    Where does your code run? On the SIM800C or on an MCU which is interfaced with the SIM800C? Commented Jan 11, 2018 at 9:25

1 Answer 1

1

A GSM phone or modem receives messages automatically. Basically you are just retrieving the messages from the memory of the device or SIM card. To select the message storage used to read the messages from, you have to use the "AT+CPMS" command.

For example, to read messages from the SIM card use: AT+CPMS="SM"

More details you can find on this link...

Not the answer you're looking for? Browse other questions tagged or ask your own question.