I'm measuring the current consumption of udp_with_psm program reading this post, and the current is very high. why?
Modified points compared to the udp_with_psm in the above post
- Modem FW: v1.0.0
- NCS tag: v1.0.0
- Use a LTE-M SIM which is not iBasis one. eDRX and PSM seems to work with the SIM.
- fixed code
freeaddrinfo(res); // THIS IS REQUIRED
- change PSM setting
# 1 minute interval
# 6 sec for idle
- change host and port
// UDP test
#define HOST "184.108.40.206"
#define PORT 53
With this program, the floor current is 29 uA. Also the DK seems to generates a high current spike every 1.28 sec.
Why a current spike is generated every 1.28 sec?
The message is sent in the configured interval, 1 min.
Use a LTE-M SIM which is not iBasis one. eDRX and PSM seems to work with the SIM.
Have you confirmed this with the vendor? The 29µA can indicate that the SIM card does not turn off. Can you please try to eject the SIM card during measurement to confirm? This should usually not be done in a normal scenario as it can cause issues with the network.
Thanks for pointing this out. This has been fixed in the Git repo: https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/udp_with_psmI have notified the author of the tutorial to fix this.
>Can you please try to eject the SIM card during measurement to confirm?
floor current drops to around 5 ~ 10uA
So Does this mean this SIM doesn't support PSM?
Yes, this is a good indication that it does not support PSM. Have you contacted your network vendor?
OK. I'll contact it. Thank you for your help!