This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connecting to nrfcloud with SIM from another vendor

I connected to nrfcloud using a SIM card from iBasis and the asset tracker example.

Is it possible to connect to nrfcloud using a SIM card from another vendor? (in my case Telenor) When running the asset tracker example with the Telenor SIM card, led 3 blinks indefinitely, and the LTE Link monitor looks like this:

Parents Reply Children
  • Hello,

    thank you. I did power cycle a few times. This is the output from the at client example.

    Regards,

    Lars

  • I'm sorry, I did not specify that when the message "The AT host sample started" you must issue the command "AT+CFUN?" This should output more information from your modem. See this tutorial for more information

  • Ah ok, thanks.
    Issuing the command once returned this:

    2019-11-06T09:01:57.506Z DEBUG modem >> AT+CFUN?\x0D\x0A
    2019-11-06T09:01:57.523Z DEBUG modem << +CFUN: 4\x0D\x0A
    2019-11-06T09:01:57.541Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:01:57.549Z DEBUG modem >> AT+CFUN=1\x0D\x0A
    2019-11-06T09:01:57.583Z DEBUG modem << OK\x0D\x0A\x00

    Issuing it once more returned this:

    2019-11-06T09:02:00.246Z DEBUG modem >> AT+CFUN?\x0D\x0A
    2019-11-06T09:02:00.253Z DEBUG modem << +CFUN: 1\x0D\x0A
    2019-11-06T09:02:00.279Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.282Z DEBUG modem >> AT+CGSN=1\x0D\x0A
    2019-11-06T09:02:00.295Z DEBUG modem << +CGSN: "352656100221129"\x0D\x0A
    2019-11-06T09:02:00.297Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.300Z DEBUG modem >> AT+CGMI\x0D\x0A
    2019-11-06T09:02:00.312Z DEBUG modem << Nordic Semiconductor ASA\x0D\x0A
    2019-11-06T09:02:00.315Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.318Z DEBUG modem >> AT+CGMM\x0D\x0A
    2019-11-06T09:02:00.328Z DEBUG modem << nRF9160-SICA\x0D\x0A
    2019-11-06T09:02:00.330Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.333Z DEBUG modem >> AT+CGMR\x0D\x0A
    2019-11-06T09:02:00.345Z DEBUG modem << mfw_nrf9160_1.0.1\x0D\x0A
    2019-11-06T09:02:00.347Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.349Z INFO Nordic Semiconductor ASA nRF9160-SICA [mfw_nrf9160_1.0.1] SerNr: 352656100221129
    2019-11-06T09:02:00.350Z DEBUG modem >> AT+CEMODE?\x0D\x0A
    2019-11-06T09:02:00.362Z DEBUG modem << +CEMODE: 2\x0D\x0A
    2019-11-06T09:02:00.364Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.381Z DEBUG modem >> AT%XCBAND=?\x0D\x0A
    2019-11-06T09:02:00.394Z DEBUG modem << %XCBAND: (1,2,3,4,5,8,12,13,14,17,18,19,20,25,26,28,66)\x0D\x0A
    2019-11-06T09:02:00.396Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.411Z DEBUG modem >> AT+CMEE?\x0D\x0A
    2019-11-06T09:02:00.416Z DEBUG modem << +CMEE: 0\x0D\x0A
    2019-11-06T09:02:00.418Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.428Z DEBUG modem >> AT+CMEE=1\x0D\x0A
    2019-11-06T09:02:00.431Z DEBUG modem << OK\x0D\x0A
    2019-11-06T09:02:00.435Z DEBUG modem >> AT+CNEC?\x0D\x0A
    2019-11-06T09:02:00.444Z DEBUG modem << +CNEC: 0\x0D\x0A
    2019-11-06T09:02:00.447Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.451Z DEBUG modem >> AT+CNEC=24\x0D\x0A
    2019-11-06T09:02:00.461Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.464Z DEBUG modem >> AT+CGEREP?\x0D\x0A
    2019-11-06T09:02:00.469Z DEBUG modem << +CGEREP: 0,0\x0D\x0A
    2019-11-06T09:02:00.478Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.481Z DEBUG modem >> AT+CGDCONT?\x0D\x0A
    2019-11-06T09:02:00.495Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.499Z DEBUG modem >> AT+CGACT?\x0D\x0A
    2019-11-06T09:02:00.512Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.516Z DEBUG modem >> AT+CGEREP=1\x0D\x0A
    2019-11-06T09:02:00.526Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.530Z DEBUG modem >> AT+CIND=1,1,1\x0D\x0A
    2019-11-06T09:02:00.535Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.537Z DEBUG modem >> AT+CEREG=2\x0D\x0A
    2019-11-06T09:02:00.546Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.551Z DEBUG modem >> AT+CEREG?\x0D\x0A
    2019-11-06T09:02:00.562Z DEBUG modem << +CEREG: 2,4,"FFFE","FFFFFFFF",7\x0D\x0A
    2019-11-06T09:02:00.564Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.579Z DEBUG modem >> AT%CESQ=1\x0D\x0A
    2019-11-06T09:02:00.586Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.595Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:00.603Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D
    2019-11-06T09:02:00.612Z DEBUG modem << \x0A
    2019-11-06T09:02:00.614Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.632Z DEBUG modem >> AT%XSIM=1\x0D\x0A
    2019-11-06T09:02:00.637Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.644Z DEBUG modem >> AT%XSIM?\x0D\x0A
    2019-11-06T09:02:00.649Z DEBUG modem << %XSIM: 0\x0D\x0A
    2019-11-06T09:02:00.652Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:00.684Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:00.692Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D\x0A
    2019-11-06T09:02:00.695Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:01.684Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:01.709Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D\x0A
    2019-11-06T09:02:01.713Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:02.684Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:02.705Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D\x0A
    2019-11-06T09:02:02.709Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:03.689Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:03.698Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D\x0A
    2019-11-06T09:02:03.711Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:04.685Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:04.692Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D
    2019-11-06T09:02:04.694Z DEBUG modem << \x0A
    2019-11-06T09:02:04.695Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:05.685Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:05.696Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D\x0A
    2019-11-06T09:02:05.701Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T09:02:06.685Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T09:02:06.708Z DEBUG modem << +CESQ: 99,99,255,255,255,255\x0D\x0A
    2019-11-06T09:02:06.710Z DEBUG modem << OK\x0D
    2019-11-06T09:02:07.142Z INFO Modem port is closed

  • Thank you! Can you please do the same with your iBasis SIM? I assume this is with the Telenor SIM?


    I edited your comment by adding the output in code format (Insert -> Insert Code) to make it more readable. 


    I will go through the output to see what is going on.

  • Thank you. Yes, the first one was Telenor, this is iBasis.
    With iBasis, the Modem, UICC, LTE and PDN bars all turn green after the second "AT+CFUN?" command. With Telenor, only the Modem bar turns green.

    2019-11-06T10:24:26.547Z DEBUG modem << ***** Booting Zephyr OS v1.14.99-ncs2 *****\x0D\x0A
    2019-11-06T10:24:26.552Z DEBUG modem << The AT host sample started\x0D\x0A
    2019-11-06T10:24:29.148Z DEBUG modem >> AT+CFUN?\x0D\x0A
    2019-11-06T10:24:29.164Z DEBUG modem << +CFUN: 4\x0D\x0A
    2019-11-06T10:24:29.174Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:29.176Z DEBUG modem >> AT+CFUN=1\x0D\x0A
    2019-11-06T10:24:29.209Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:32.889Z DEBUG modem >> AT+CFUN?\x0D\x0A
    2019-11-06T10:24:32.912Z DEBUG modem << +CFUN: 1\x0D\x0A
    2019-11-06T10:24:32.926Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:32.934Z DEBUG modem >> AT+CGSN=1\x0D\x0A
    2019-11-06T10:24:32.940Z DEBUG modem << +CGSN: "352656100221129"\x0D\x0A
    2019-11-06T10:24:32.943Z DEBUG modem << OK\x0D\x0A
    2019-11-06T10:24:32.946Z DEBUG modem >> AT+CGMI\x0D\x0A
    2019-11-06T10:24:32.953Z DEBUG modem << Nordic Semiconductor ASA\x0D\x0A
    2019-11-06T10:24:32.955Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:32.958Z DEBUG modem >> AT+CGMM\x0D\x0A
    2019-11-06T10:24:32.969Z DEBUG modem << nRF9160-SICA\x0D\x0A
    2019-11-06T10:24:32.971Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:32.974Z DEBUG modem >> AT+CGMR\x0D\x0A
    2019-11-06T10:24:32.985Z DEBUG modem << mfw_nrf9160_1.0.1\x0D\x0A
    2019-11-06T10:24:32.988Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:32.991Z INFO Nordic Semiconductor ASA nRF9160-SICA [mfw_nrf9160_1.0.1] SerNr: 352656100221129
    2019-11-06T10:24:32.993Z DEBUG modem >> AT+CEMODE?\x0D\x0A
    2019-11-06T10:24:33.003Z DEBUG modem << +CEMODE: 2\x0D\x0A
    2019-11-06T10:24:33.005Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.022Z DEBUG modem >> AT%XCBAND=?\x0D\x0A
    2019-11-06T10:24:33.036Z DEBUG modem << %XCBAND: (1,2,3,4,5,8,12,13,14,17,18,19,20,25,26,28,66)\x0D\x0A
    2019-11-06T10:24:33.039Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.054Z DEBUG modem >> AT+CMEE?\x0D\x0A
    2019-11-06T10:24:33.058Z DEBUG modem << +CMEE: 0\x0D
    2019-11-06T10:24:33.069Z DEBUG modem << \x0A
    2019-11-06T10:24:33.071Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.074Z DEBUG modem >> AT+CMEE=1\x0D\x0A
    2019-11-06T10:24:33.086Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.089Z DEBUG modem >> AT+CNEC?\x0D\x0A
    2019-11-06T10:24:33.094Z DEBUG modem << +CNEC: 0\x0D\x0A
    2019-11-06T10:24:33.103Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.107Z DEBUG modem >> AT+CNEC=24\x0D\x0A
    2019-11-06T10:24:33.119Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.124Z DEBUG modem >> AT+CGEREP?\x0D\x0A
    2019-11-06T10:24:33.135Z DEBUG modem << +CGEREP: 0,0\x0D\x0A
    2019-11-06T10:24:33.137Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.140Z DEBUG modem >> AT+CGDCONT?\x0D\x0A
    2019-11-06T10:24:33.153Z DEBUG modem << +CGDCONT: 0,"IP","ibasis.iot","10.160.52.227",0,0\x0D\x0A
    2019-11-06T10:24:33.155Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.174Z DEBUG modem >> AT+CGACT?\x0D\x0A
    2019-11-06T10:24:33.179Z DEBUG modem << +CGACT: 0,1\x0D
    2019-11-06T10:24:33.186Z DEBUG modem << \x0A
    2019-11-06T10:24:33.188Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.203Z DEBUG modem >> AT+CGEREP=1\x0D\x0A
    2019-11-06T10:24:33.207Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.220Z DEBUG modem >> AT+CIND=1,1,1\x0D\x0A
    2019-11-06T10:24:33.225Z DEBUG modem << OK\x0D\x0A
    2019-11-06T10:24:33.237Z DEBUG modem >> AT+CEREG=2\x0D\x0A
    2019-11-06T10:24:33.253Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.260Z DEBUG modem >> AT+CEREG?\x0D\x0A
    2019-11-06T10:24:33.272Z DEBUG modem << +CEREG: 2,5,"76C1","0102EC02",7\x0D\x0A
    2019-11-06T10:24:33.274Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.290Z DEBUG modem >> AT+COPS=3,2\x0D\x0A
    2019-11-06T10:24:33.296Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.304Z DEBUG modem >> AT+COPS?\x0D\x0A
    2019-11-06T10:24:33.310Z DEBUG modem << +COPS: 0,2,"24201",7\x0D\x0A
    2019-11-06T10:24:33.321Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.340Z DEBUG modem >> AT%XCBAND\x0D\x0A
    2019-11-06T10:24:33.346Z DEBUG modem << %XCBAND: 20\x0D\x0A
    2019-11-06T10:24:33.354Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.370Z DEBUG modem >> AT+CGDCONT?\x0D\x0A
    2019-11-06T10:24:33.386Z DEBUG modem << +CGDCONT: 0,"IP","ibasis.iot","10.160.52.227",0,0\x0D\x0A
    2019-11-06T10:24:33.388Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.402Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:33.409Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D
    2019-11-06T10:24:33.419Z DEBUG modem << \x0A
    2019-11-06T10:24:33.421Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.436Z DEBUG modem >> AT+CGACT?\x0D\x0A
    2019-11-06T10:24:33.441Z DEBUG modem << +CGACT: 0,1\x0D
    2019-11-06T10:24:33.443Z DEBUG modem << \x0A
    2019-11-06T10:24:33.445Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.457Z DEBUG modem >> AT%CESQ=1\x0D\x0A
    2019-11-06T10:24:33.461Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.469Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:33.476Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D\x0A
    2019-11-06T10:24:33.485Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.507Z DEBUG modem >> AT%XSIM=1\x0D\x0A
    2019-11-06T10:24:33.519Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.525Z DEBUG modem >> AT%XSIM?\x0D\x0A
    2019-11-06T10:24:33.539Z DEBUG modem << %XSIM: 1\x0D\x0A
    2019-11-06T10:24:33.542Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.559Z DEBUG modem >> AT+CPIN?\x0D\x0A
    2019-11-06T10:24:33.571Z DEBUG modem << +CPIN: READY\x0D\x0A
    2019-11-06T10:24:33.573Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.589Z DEBUG modem >> AT+CPINR="SIM PIN"\x0D\x0A
    2019-11-06T10:24:33.604Z DEBUG modem << +CPINR: "SIM PIN",3\x0D\x0A
    2019-11-06T10:24:33.606Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.622Z DEBUG modem >> AT+CIMI\x0D\x0A
    2019-11-06T10:24:33.637Z DEBUG modem << 204080813519393\x0D\x0A
    2019-11-06T10:24:33.639Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:33.640Z INFO IMSIdentity: 204080813519393
    2019-11-06T10:24:34.383Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:34.415Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D\x0A
    2019-11-06T10:24:34.421Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:35.383Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:35.411Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D\x0A
    2019-11-06T10:24:35.414Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:36.383Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:36.412Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D\x0A
    2019-11-06T10:24:36.417Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:37.383Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:37.408Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D\x0A
    2019-11-06T10:24:37.411Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:38.382Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:38.411Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D\x0A
    2019-11-06T10:24:38.415Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:39.383Z DEBUG modem >> AT+CESQ\x0D\x0A
    2019-11-06T10:24:39.411Z DEBUG modem << +CESQ: 99,99,255,255,255,74\x0D\x0A
    2019-11-06T10:24:39.415Z DEBUG modem << OK\x0D\x0A\x00
    2019-11-06T10:24:39.818Z INFO Modem port is closed

Related