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

Modify ASSET TRACKER

Hello, 

I'm trying to modify the current ASSET_TRACKER of SDK v1.4.1 to get it to work in my own server on AWS-IoT.

I'm wondering if there is any documentation about this app and if not I have a problem with finding the definition of the MQTT topics ( publish topics and subscribe topic ).

I want to modify these topics but I couldn't find their declarations

 

Thanks in advance!.

Parents
  • Most probably, take a bare machine in those cloud services, and install required server components. Then it may be easy  to integrate nRF-9160 to cloud. But integrating with one of their IoT services may be a challenge

  • Thanks Vkadal for your answer. Actually, my question was more about modifying the asset_tracker to get it to work on my own server ( also on AWS IOT ). until now I get successfully connection with my server and I could get messages on my shadow device topics. but when the device tries to publish a message-id ( RSRP ) to a modified topic which I modified instead of the old topic of nrf-cloud, I get then NRF_CLOUD_EVT_TRANSPORT_DISCONNECTED event. this error I get only when I try to publish the message with id (RSRP ) to another topic for example ( test/node ).

    Any idea what the problem is,

    Thanks in advance!

  • Hi,

    I'm not sure why it gives error when you try to publish with id to another topic, but I'll look more into your case and come back to you.

    Please be aware that we have reduced staffing due to holiday season, so response time might be longer than normal. In addition to this, most of our nRF9160 experts are on holiday, but some will be back next week.

    Best regards,

    Marte

  • Hi,

    Could you try testing with the Simple MQTT sample and connect with the AWS test server to see if that works? The Asset Tracker isn't meant for reuse in this way, so it might be simpler to combine some of the samples in NCS to do what you want, instead of changing one of the applications, which are designed for a specific use case.

    Could you also give a full log output from when you connect?

    Best regards,

    Marte

  • Hallo Marte, Thank you for your reply. I could finally get it working successfully. The problem was that Asset_tracker expects a message from the server when the connection is established with the cloud and that message contains the topic_id where asset_tracker has to publish. I could modify this one and get it working with my own configuration. 

    The reason I use Asset_tracker because it has almost the same features that are required in my application. 

Reply
  • Hallo Marte, Thank you for your reply. I could finally get it working successfully. The problem was that Asset_tracker expects a message from the server when the connection is established with the cloud and that message contains the topic_id where asset_tracker has to publish. I could modify this one and get it working with my own configuration. 

    The reason I use Asset_tracker because it has almost the same features that are required in my application. 

Children
Related