I want to wake up nRF9160 by SMS.
What I want to do:
The nRF9160 usually sleeps to reduce power consumption, and only when it receives SMS it wakes up and send some data by UDP or so.
I succeeded in implementing MQTT(+TLS), but have no experience to implement SMS function.
I've already checked the link below, but I don't really get what each line means.devzone.nordicsemi.com/.../sending-sms-using-at_client-example
This is my understanding.
----------------AT+CFUN=1=> Turn on the modem. The modem can receive SMS at any time.
AT+CPIN="1234"=> Set Pin number, which is a password of SIM.
AT+CNMI=3,2,0,1=> Configure the process of receving SMS.----------------
After this setting, MCU can go to sleep to wait until SMS is received. When SMS is received, MCU wakes up.
Is this correct? I'm not familiar with SMS function. Sorry for poor skill.
The sample you link to is for sending sms. For receiving sms, you need to poll the AT socket. Try to use at_client, and see if you are able to get a sms successfully received. Note that you need a SIM card which has a phone number in order to send/receive sms.
I can't receive SMS in eDRX.
When I set 82 sec interval, I hope nRF9160 check if it receives SMS in that interval, but it doesn't work.
Does this mean SMS can't be received when you use eDRX?
Are you able to receive SMS successfully in other operating modes?
Is it just eDRX that is the problem?
Yea, I can receive SMS in normal mode without PSM or eDRX.I use at_client program and hologram SIM. The SIM allows you to send SMS.
Could u tell me how to set up eDRX on LTE link monitor? I want to know the at commands for it.
SMS reception should work in eDRX and PSM, but the SMS itself will be delayed by one period, so if the eDRX or PSM timeout is set to 1 hour, you might have to wait 1 hour to read the received SMS.
Which operator network are you connected to?
Is it NB1 or LTE M1?
Yusuke said:Could u tell me how to set up eDRX on LTE link monitor?
To request eDRX: eDRX setting +CEDRXS
To check if the settings were applied: Read EDRX dynamic parameters +CEDRXRDP