Hello,
I am having difficulties reading the ICCID of a solder sim that is connected to a B1 revision of the NRF9160. I have tried two different NRF9160s, two different solder sims which have worked for me on previous hardware prototypes using a B0 NRF9160, and modem firmware versions 1.1.3, 1.2.3 and 1.1.4. I have also tried using both methods I can find which are:
ATAT+CRSM=176,12258,0,0,10
AT%XICCID
CI understand that the AT%XICCID only works with certain firmware versions but I have tried the ones that it supposedly works with. I have also insured to run CFUN=1 before attempting to read the ICCID and wait for the function to change by checking CFUN?.
At this point I believe there may be some difference with the B1 revision of the SoC or I have some sort of hardware issue.
Here is a code snippet where I am trying to read the ICCID (I am currently using mfw1.2.3 when running this example):
printk("The AT host sample started\n");
uint8_t buffer[100];
char buffer1[100];
k_sleep(K_MSEC(2000));
at_cmd_write("AT+CFUN=1", //AT+CEREG?
buffer,
100,
NULL);
printk("ANSWER %s\r\n", buffer);
k_sleep(K_MSEC(4000));
at_cmd_write("AT+CFUN?", //AT+CEREG?
buffer,
100,
NULL);
printk("ANSWER %s\r\n", buffer);
at_cmd_write("AT%XICCID", //AT+CEREG?
buffer,
100,
NULL);
printk("ANSWER %s\r\n", buffer);
at_cmd_write("ATAT+CRSM=176,12258,0,0,10", //AT+CEREG?
buffer,
100,
NULL);
printk("ANSWER %s\r\n", buffer);
at_cmd_write("AT%XVBAT", //AT+CEREG?
buffer,
100,
NULL);
printk("ANSWER %s\r\n", buffer);
The response always comes back empty. There is no error message or anything similar to that. Here is the response I get:The AT host sample started
LTE cell changed: Cell ID: -1, Tracking area: -1
PSM parameter update: TAU: -1, Active time: -1
ANSWER
ANSWER +CFUN: 1
ANSWER
ANSWER
ANSWER %XVBAT: 3335
Any help here would be greatly appreciated. Thank you