How can I detect when no SIM card is inserted at startup?
The purpose is to operate without a connection if there is no SIM card.
[Environ]
nRF Connect SDK v3.2.1
nRF9151 (Custom board)
VSCode (1.109.5)
Currently, this is done in the following way:
- Modem Initialization (nrf_modem_lib_init())
- LTE connection processing (lte_lc_connect_async())
- After 1 second, send AT command [AT%XSIM?]
Here, check "%XSIM: 1". (0 means none)
(5 trials every 200ms)
This will take time.
Is there a better way?
Best regards,
Kato.