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

Asset_tracker example, transmission protocol

Hi 

I am using nRF9160DK board and need transmit gps data to web site, I am trying with udp but have problems with that, I would like to know what protocol use asset_tracker example to transmit to nrfcloud? I try discover reading the example code but it's hard to me identify how its works, any documentation about the protocol and how its works will be very usefull to me.

thanks in advance 

Julio

Parents
  • Thanks for your answers 

    we will try whit MQTT because the target will be in motion and the period of transmittion is't short. I want to change the address of transmition of aseet tracker sample and have seen the sample but I can't find where I can where change the address of transmittion. Also I have seen the of mqtt_simple sample where the configuration (first image) is very clarely, I can see and modify the broker hostname, client id, topic, etc. but in asset tracker sample I cant find this configuration Where is this config in asset tracker?

    I find a tiket with following recomndation to change the ip "you should only have to change the following configs in the nRF_Cloud library Kconfig file in subsys/net/lib/nrf_cloud/" in that path I have this configs (second image) but I'm not sure about change that ip.

      

  • Hi,

    The reason this is not as easily found in the Asset Tracker application as in MQTT Simple is because the Asset Tracker is an application, which is targeted for a specific use case, while the samples are showcasing the use of a single feature or library, and is meant to show how you can use this feature or library in your application. In the regard of Asset Tracker it's meant to demonstrate how to use nRF Cloud, in addition to GPS and sensor data. Therefore, it uses the nRF Cloud library to connect to and communicate with nRF Cloud, and that library is what handles MQTT as well. Because of this, you can't easily change MQTT configurations, such as broker and topics, in the Asset Tracker application. You would have to switch out the nRF Cloud library with something that takes care of all of this but uses the broker etc. that you want. So I would instead recommend that you start out with MQTT Simple if you want to use another MQTT broker, or possibly the cloud client sample if you want to use AWS IoT or Azure IoT Hub, and then add the functionality you want from Asset Tracker to that, using the different samples available to see how the different features and libraries can be used.

    Best regards,

    Marte

Reply
  • Hi,

    The reason this is not as easily found in the Asset Tracker application as in MQTT Simple is because the Asset Tracker is an application, which is targeted for a specific use case, while the samples are showcasing the use of a single feature or library, and is meant to show how you can use this feature or library in your application. In the regard of Asset Tracker it's meant to demonstrate how to use nRF Cloud, in addition to GPS and sensor data. Therefore, it uses the nRF Cloud library to connect to and communicate with nRF Cloud, and that library is what handles MQTT as well. Because of this, you can't easily change MQTT configurations, such as broker and topics, in the Asset Tracker application. You would have to switch out the nRF Cloud library with something that takes care of all of this but uses the broker etc. that you want. So I would instead recommend that you start out with MQTT Simple if you want to use another MQTT broker, or possibly the cloud client sample if you want to use AWS IoT or Azure IoT Hub, and then add the functionality you want from Asset Tracker to that, using the different samples available to see how the different features and libraries can be used.

    Best regards,

    Marte

Children
Related