nRF Cloud - Not able to connct to it.

Hi,

I'm currently using an nRF9160DK with an NB-IoT sim, and the problem I am currently having is that I cannot establish a connection with the nRF cloud. 

What have I tried?

1. I tried the following: https://infocenter.nordicsemi.com/pdf/nRF9160_DK_Getting_Started_Guide_v1.1.pdf section "Provisioning the nRF Connect for Cloud certificate" by opening the nRF connect, deselecting automatic requests, removed the sim card, entering AT+CFUN?4 to put the modem to offline state (and checked the state of the modem to ensure that it is off). I have loaded the JSON certificate and ensured that the security tag is set to "16842753" and then updated the certificate. The log message states "certificate updated completed.

2. Then I tried to power cycle the nRF9160DK and then inserted the SIM card to let the automatic requests run. It seems like it tries to connect to the nRF cloud but fails. I am not quite sure why this happens.

3. I also tried to add the LTE device to the nRF connection, but this was not working

The image that I have flashed to the board is nrf9160dk_asset_tracker_v2_nbiot_2022-06-02_880c82db.

Additional things that I have tried

1. The SIM card supports NB-IoT, and there is coverage within my area.

3. I have tried another NB-IoT-supported IoT device to test out the sim card by doing a ping test to ensure that the connectivity is not the problem, and this seems to work fine. 

4. It seems like the nRF9160DK is able to connect to the eNB, and connect to the network, so that is not the problem. It seems to receive an IP address successfully, so this is not a problem.

3. I have tried to re-flash the nRF9160DK 

  • Hi,

    I have updated the topic. I will post more screenshots when it comes to the logs.

  • Hello, 

    The official Getting Started guide can be found here: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf9160_gs.html#getting-started-with-nrf9160-dk

    What version of the nRF9160 Development Kit are you running? When generating new certificates, what device ID did you enter? 

    You can test the connection to the LTE network by using the AT client, found in the precompiled package as well.

    Please provide full log output from the application you are running on your device, as screenshots provide too little information. You can find the log output in the LTE link monitor on the bottom.

    Kind regards,
    Øyvind

  • Hello, I'd like to say thanks for reaching back to me. You guys got back to me very quickly. I wasn't expecting that :)

    In terms of the guide, that is the one I have followed to get started.

    1) What version of the nRF9160 Development Kit are you running?: I assume you mean the FW version? I am running 2022-06-02_880c82db and I flashed nrf9160dk_asset_tracker_v2_nbiot_2022-06-02_880c82db on the nRF9160 DK

    2) When generating new certificates, what device ID did you enter: For the device ID, I used the IMEI that is given on the back side of the nRF9160DK. I tried entering nrf- at the start. In terms of the code, it is the same which is given on the backside.

    3) You can test the connection to the LTE network by using the AT client, found in the precompiled package as well: I assume you mean the AT Client that is a part of the application and firmware?  I just want to clarify that it can connect to the NB-IoT network and receive an IP address during an attach procedure with the eNB.

    4) In terms of the logs. I'll get back to you in a few with screenshots and various logs.

    Thanks.

  • dival said:
    I'd like to say thanks for reaching back to me. You guys got back to me very quickly. I wasn't expecting that :)

    We try our best to get back to our customer as soon as possible :)

    dival said:
    I assume you mean the FW version? I am running 2022-06-02_880c82db and I flashed nrf9160dk_asset_tracker_v2_nbiot_2022-06-02_880c82db on the nRF9160 DK

    I meant the HW itself. On the back the nRF9160DK you can find a sticker with version number under PCA10090

    dival said:
    For the device ID, I used the IMEI that is given on the back side of the nRF9160DK. I tried entering nrf- at the start. In terms of the code, it is the same which is given on the backside

    Yes, this should be sufficient, along with the pin code or HWID (depending on what version you have). Make sure that you have entered correct IMEI number after "nrf-"

    dival said:
    I assume you mean the AT Client that is a part of the application and firmware? I haven't used Nordic before, but I assume you want me to try to run this on the VS code? I just want to make it clear that it is able to connect to the NB-IoT network and receive an IP address during an attach procedure with the eNB.

    Yes, you can do that as well. In the precompiled package that you are using (2022-06-02_880c82db) you can also program a clean AT client which will only give you AT commands to test your connection to the network (not nRF Cloud). In LTE Link Monitor can you please issue AT command "AT+CFUN?", this will provide a lot of information. 

    dival said:
    In terms of the logs. I'll get back to you in a few with screenshots and various logs.

    Yes, please. This should provide more information to us.

    Kind regards,
    Øyvind

  • The version number is 1.1.0 (2022.23).

    Regarding the AT+CFUN, here is the output of it:

    2022-11-10T13:36:01.766Z DEBUG modem >> AT+CFUN?
    2022-11-10T13:36:01.773Z DEBUG modem << +CFUN: 1
    2022-11-10T13:36:01.775Z DEBUG modem << OK
    2022-11-10T13:36:01.801Z DEBUG modem >> AT+CGSN=1
    2022-11-10T13:36:01.807Z DEBUG modem << +CGSN: "351516172740326"
    2022-11-10T13:36:01.809Z DEBUG modem << OK
    2022-11-10T13:36:01.816Z DEBUG modem >> AT+CGMI
    2022-11-10T13:36:01.824Z DEBUG modem << Nordic Semiconductor ASA
    2022-11-10T13:36:01.827Z DEBUG modem << OK
    2022-11-10T13:36:01.833Z DEBUG modem >> AT+CGMM
    2022-11-10T13:36:01.839Z DEBUG modem << nRF9160-SICA
    2022-11-10T13:36:01.840Z DEBUG modem << OK
    2022-11-10T13:36:01.843Z DEBUG modem >> AT+CGMR
    2022-11-10T13:36:01.851Z DEBUG modem << mfw_nrf9160_1.3.2
    2022-11-10T13:36:01.853Z DEBUG modem << OK
    2022-11-10T13:36:01.856Z INFO Nordic Semiconductor ASA nRF9160-SICA [mfw_nrf9160_1.3.2] SerNr: 351516172740326
    2022-11-10T13:36:01.859Z DEBUG modem >> AT+CEMODE?
    2022-11-10T13:36:01.869Z DEBUG modem << +CEMODE: 0
    2022-11-10T13:36:01.872Z DEBUG modem << OK.

Related