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?

  • What application are you running?

    nrf_cloud_connect failed: 22

    Unless I am mistaken, this is an error message for the asset_tracker application which handles modem control via lte_lc.c. It is therefore all scripted code and doesn't require manual at commands.

    The above at commands are for the at_client application which allows you to manually configure the modem.

    EDIT:

    I wasn't mistaken, that error is only used in two files in the entire ncs directory, lte_ble_gateway main.c and asset_tracker main.c, you must have one of these, 99% likely it's the asset_tracker

  • If you are in fact running the asset_tracker application, please see the following lines in lte_lc.c
    https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/drivers/lte_link_control/lte_lc.c#L46-L48
    These lines indicate that you need to add an additional line to your prj.conf file to configure the device to NB-IoT in that application. (or any application that directly uses LTE Link Control (lte_lc) to handle modem control)

    Try adding into the prj.conf file:

    CONFIG_LTE_NETWORK_MODE_NBIOT=y

  • 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? 

Reply
  • 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? 

Children
Related