Current version of AssetTracker

Hi

There is a github repo https://github.com/nrfconnect/Asset-Tracker-Template/tree/main that receives updates as of yesterday.

However on the documentation website https://docs.nordicsemi.com/bundle/ncs-2.9.2/page/nrf/applications/asset_tracker_v2/README.html , I read:

Important

The Asset Tracker v2 application is in maintenance mode. For new projects, it is recommended to use the Cellular: nRF Cloud multi-service sample instead..

Could explain what that means ? Why should I use the multi-service sample ? Is the AssetTracker as implemented in the github repo obsolete or is there a difference in functionality ?

Kind regards

Peter

Parents Reply Children
  • Hi,

    Eau Du Puid said:
    When I try to compile the Asset Tracker Template from Github for the nRF9161 Dk, I get a compile time error.

    The Asset tracker template does not natively support the nRF9161 DK. As for now, it only natively supports the nRF9151 DK / SMA DK and the Thingy:91 X. When using the Thingy, it also collects some more information from the on-board sensors.

    Eau Du Puid said:
    when I press Button 1, I get:

    It says that your monthly quota of 1500 location service has already been used. It fails because the Asset Tracker Template uses by default nRF Cloud A-GNSS, which uses "location service tokens". (If you don't know what A-GNSS is, you can learn a more here.)

    Now, you have 3 options in front of you:

    1. You can wait until you have new "location service tokens".
    2. You can upgrade your nRF Cloud plan to one that gives more "location service tokens"
    3. You can use normal GNSS instead of A-GNSS.

    I would recommend you to try the latest one, as you don't have to wait and it is free.

    To do that, you can go in the prj.conf and disable the A-GNSS config "CONFIG_NRF_CLOUD_AGNSS=n". Rebuild the application and flash it and now your device should be using normal GNSS.

    Please tell me if that worked, I wasn't able to test it myself as I don't have access to a limited nRF Cloud account right now.

    If you still don't have the right interface in nRF Cloud, you can try to delete the device and unclaim it. Then reclaim it and run the application again.

    Best regards,

    Simon D-M

  • Hi, thank you, unfortunately, it doesn't help. I flashed 3 different nRF9151 SMA DKs in addition to the Thingy91X and the nRF9161 DK.

    The Thingy91x has been flashed with the Asset Tracker from nRf Connect for Desktop, all others with the github version.

    Two of the three nRF9151 SMA DKs show this:

    I have reflashed one with the suggestion you made (disable CONFIG_NRF_CLOUD_AGNSS) but this doesnt help:

    Finally the third nRF9151 SMA DK show this:

    so no terminal , no data but a location !. This was the first one I claimed in nRFCloud. I have unclaimed it then reflashed it ( with the github version) and then reclaimed it.

    No idea why it is rendered differently in nRFCloud.

    Kind regards

    Peter

  • Hi Peter,

    I just asked internally, and the Asset Tracker Template has other things that use the nRF Cloud Location service.

    It uses the Location service for Cellular Positioning and Wi-Fi Positioning (Wi-Fi is only relevant for the Thingy:91 X).

    To deactivate these service, you can disable the config "CONFIG_LOCATION_METHOD_CELLULAR=n" in prj.conf.

    And :

    • for the nRF9151 DK, disable in boards/nrf9151dk_nrf9151_ns.conf :
      • "CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_CELLULAR=n
    • for the Thingy:91 X, disable in boards/thingy91x_nrf9151_ns.conf :
      • "CONFIG_LOCATION_METHOD_WIFI=n"
      • "CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_WIFI=n"
      • "CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_THIRD_CELLULAR=n"

    I hope this will solve your issue. If it still uses the Location Service I'll try to check if there is even more things that use it.

    Best regards,

    Simon D-M

  • Hi Simon

    Thank you , I will try this in a minute. I just upgraded to Pro but I still get the same error:

    [00:00:30.428,436] <inf> nrf_cloud_fota_poll: No pending FOTA job
    [00:00:30.428,436] <dbg> fota: state_polling_for_update_entry: No FOTA job available
    [00:00:30.428,833] <dbg> fota: state_waiting_for_poll_request_entry: state_waiting_for_poll_request_entry
    [00:00:30.869,415] <err> nrf_cloud_coap_transport: Unexpected response: {"message":"This request exceeds your monthly quota of 1500 location service requests.","code":40005}
    [00:00:30.869,476] <err> nrf_cloud_coap: Unexpected response: {"message":"This request exceeds your monthly quota of 1500 location service requests.","code":40005}
    [00:00:30.869,750] <err> nrf_cloud_coap: Error getting location; result code: 4.00
    [00:00:30.869,781] <wrn> cloud: nRF Cloud CoAP location coordinates not found, error: 128

    I don't need location so I am going to change prj.conf as you suggested, but since this is now Pro, maybe there is another issue ?

    Kind regards

    Peter

  • Hi,

    Yes, please try the suggested change first. And if you still have problems with the location service requests after that, I'll forward your issue internally to the nRF Cloud team.

    Best regards,

    Simon D-M

Related