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

nRF9160 DK software update

I used SES and wrote a printf message at main entrance: when I run in nRF Connect I can see the message that I wrote just after I press the RESET button (OK). Still, as I can't get a connection to NB-IoT, I decided to roll back to the mfw_nrf9160_0.7.0-alpha version: I flashed the board but when I run it I still see my printf message, meaning that still the old code is running.

Can you explain? 

I am still not able to connect although I could before trials with SES...

Parents
  • mfw is the modem firmware for the nRF9160 radio modem, it is not the same as the application firmware which is written to the partitioned flash memory. Changes to the modem firmware will not change the firmware you have loaded using SES; unless you reflash the flash memory using SES or CLI, nothing will change in that regard.

  • So, this is like a Softdevice in the nRF51 family: I wondered already. Thanks.

    However, I already found out why the unit doesn't connect: AT%XSYSTEMMODE? returns 1,0,0,0, even I make the sequence below:

    AT+CFUN=4
    AT%XSYSTEMMODE=0,1,0,2
    AT+CFUN=0

    After reset and start, I send AT%XSYSTEMOMODE? and I get 1,0,0,0!

    If I send:

    AT+CFUN=4
    AT%XSYSTEMMODE=0,1,0,2
    AT+CFUN=1

    if I am fast enough and send AT%XSYSTEMMMODE? I get 0,1,0,2 but a few seconds later the system resets and then, after start (AT+CFUN=1) I get 1,0,0,0 if I ask for system mode.

    It just doesn't accept 0,1,0,2!

    What can I do?

  • Right, the asset_tracker requires human interaction to pair the device to the nrf cloud. If you want to simply test if the kit can connect to the NB-IoT network, you will need to swap application to the at_client application.

    Otherwise, try adding that line to prj.conf for the asset_tracker and then review the manual on pairing your nRF9160 DK to nRF Cloud. At which point I can not help as I have never connected to nRF Cloud as I do not have access to an NB-IoT network that can utilise MQTT protocols as needed for the asset_tracker application.

  • I added the line in prj.conf but I see no change in the project: it still is in LTE mode. Also, I can't find the file in SES, which I would expect. Where is it included?

    I searched for CONFIG_LTE_NETWORK_MODE_LTE_M in the whole ncs folder and I changed all occurrences to CONFIG_LTE_NETWORK_MODE_NBIOT. Now the unit runs in NB-IoT mode but it resets when connection is achieved. What CGDCONT settings should be done? I beleive it is necessary to define where and how we should connect to... am I wrong? 

  • /path/to/ncs/nrf/drivers/lte_link_control/lte_lc.c

  • Does the application at_client work in NB-IoT? Can I connect to nRF Cloud with it?

  • The at_client example allows you to test the Development Kit's connectivity to the NB-IoT network. It is the first stage of designing any NB-IoT device, as it allows you to test a device's ability to attach to the network, the network signal strength and if possible, sending test data to a server (not possible with NB-IoT using Nordic's at_client example but I have seen other modules that can do this via AT commands).

    You should run this example program first, then move to connecting to the nRF Cloud once you know for certain that the radio connection of your device is working as expected. It works the same way you have mentioned in the beginning of this question, via AT commands such as CFUN and XSYSTEMMODE, except this is the correct program to enter them.

    You will not be able to connect to the nRF Cloud using the at_client example program.

Reply
  • The at_client example allows you to test the Development Kit's connectivity to the NB-IoT network. It is the first stage of designing any NB-IoT device, as it allows you to test a device's ability to attach to the network, the network signal strength and if possible, sending test data to a server (not possible with NB-IoT using Nordic's at_client example but I have seen other modules that can do this via AT commands).

    You should run this example program first, then move to connecting to the nRF Cloud once you know for certain that the radio connection of your device is working as expected. It works the same way you have mentioned in the beginning of this question, via AT commands such as CFUN and XSYSTEMMODE, except this is the correct program to enter them.

    You will not be able to connect to the nRF Cloud using the at_client example program.

Children
No Data
Related