use ncs v1.9.1
void module_info(void)
{
char str[100];
modem_info_init();
modem_info_string_get(MODEM_INFO_ICCID, str, sizeof(str));
printk("ICCID: %s\n", str);
}
Can't get ICCID.

Appenddix is the source code.
use ncs v1.9.1
void module_info(void)
{
char str[100];
modem_info_init();
modem_info_string_get(MODEM_INFO_ICCID, str, sizeof(str));
printk("ICCID: %s\n", str);
}
Can't get ICCID.

Appenddix is the source code.
Hi,
Looks like you are trying to read the ICCID from the SIM card before the SIM card is powered.
The SIM card is not powered by the modem until it is needed, i.e. you start an LTE network search.
You can also turn on the SIM card without starting the LTE stack by sending AT+CFUN=41.
Best regards,
Didrik
Hi Didrik:
Thank for you help.
Is it need to change to serial_lte_modem example when using "AT+CFUN=41"?
Hi Didrik:
Thank for you help.
Is it need to change to serial_lte_modem example when using "AT+CFUN=41"?
john.liu said:Is it need to change to serial_lte_modem example when using "AT+CFUN=41"?
No, you can send AT commands from the application using the AT interface in the modem library: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrfxlib/nrf_modem/doc/at_interface.html