So I have a question about the nRF9160 when enabling the xDRX or PSM mode. Does one just turn the option on and leave it on eaven while uploading data or do you turn it off each time you want to send some data and communicate with a socket?
And do you need to request it again after sending data?
Hi Eirik,Please take a look at the Asset tracker sample, more specifically the "Power Optimization" section on how this can be achieved.
e.g. For PSM this is something that you enable once, and you should not need to disable the PSM if you don't want to stick with the data for all the parameters set to the default "manufacturer-specific" values.
So just to clearify set the option ance and just dont bother about it and use that moduem when you need it and it will go back to PSM mode after that correct?
Also mesuring on the modem is seems like it uses a 25 seconds communications window and I dont get any longer timthan that!?! Using Telenor LTE-m here in Norway.
Using the same methods as the asset tracking example.
I have always adle power of about 1mA but somtimes it gets stuck at 3mA or 8mA... Without finding any reason for the excess power usage...
So two issues... One get the PSM/eDRX sorted and longer intervals... That seems ok if the above checks out.
Second how to make sure we get the correct ilde power... Is there perhaps a way to check is we might have some unhandled interrups the keeps the CPU running and preventing sleep?? And if so how to we check that... I dont think we can to the power measuremnts testing with the debugging connected? Also I get the same fault as discussed earlier still at some random events... Meaning when we use gpio/sleep...
Thanks for the links I will try out the documentation examples for PSM/eDRX
Concerning entering PSM or (e)DRX sleep:
The application do not need to do any other control than to set preferred sleep periods.
Modem will retain those settings and negotiate values based on those settings with the network whenever that is needed. It will also enter various sleep states when that is possible.
Please note that there is an active time after connection before we can enter PSM sleep, i.e. power consumption stays on the “idle DRX” level before we move to “PSM level”.
Value for this timer can be seen with negotiated PSM parameters. This can be done by "subscribing to unsolicited network status notifications"; command +CEREG using AT+CEREG=5.
Same command will also return the negotiated PSM sleep value that will be used by the modem once in idle mode and active time is over.
One thing to keep in mind is that the debugger will prevent modem from entering deep sleep.
There is no way to check the sleep level of the modem from application side.
Is the 25 seconds comment actually about eDRX sleep length? (i.e. you has not been able to get longer sleep cycle from the network even though you have set something longer as a parameter to modem?).
There is a possibility that your carrier provider have not implemented the eDRX/PSM schemes yet as well.
The possible sleep periods are also dependent on what the carrier support. (some can support longer than others)
Best Regards,Martin L.
Thank you for the reply. It seems like eDRX is not currently supported all the way on my carrier but PSM mode seems to be working as expected.