Nordic 91X - Incorporating NRF CLOUD and custom MQTT Broker

Hi all,

Our company is currently prototyping with the Nordic 91X DK and looking to use both nrf cloud services specifically for using location services whilst also connecting to a third-party mqtt broker for telemetry streaming, our hope is to be able to get the device to push data in the order of seconds to our custom client. We have looking to adapt the nrf cloud multi service sample. We are using the mqtt specific api and have followed the setup for onboarding setup as described by the nrfcloud-utils documentation for the following repo: https://github.com/nRFCloud/utils.

We have been having some issues with configuring the device for both custom mqtt endpoints and nrf cloud due to ssl certificate conflicts. We were wondering how others have configured their devices for similar use cases? I.e. which api are you using, how best to manage the certificates etc. Alternatively, is there a currently working sample application better suited for the 91X DK? 


Parents
  • Hi Andre,

    I am a bit uncertain about this myself, so I've asked the relevant team. I'll let you know once I hear from them. 

    Regards,

    Elfving

  • Have you had a look at the mqtt_helper library?

    It supports using two sec tags when establishing connection: https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/net/lib/mqtt_helper/mqtt_helper.c#L498

    You would want credentials stored in two sec tags, eg tag 1001 contain nrfcloud creds, while tag 1002 contains custom_mqtt_creds. Setting Kconfigs

    CONFIG_MQTT_HELPER_SEC_TAG=1001

    CONFIG_MQTT_HELPER_SECONDARY_SEC_TAG=1002

    allows connecting to both. Though I see you want two concurrent mqtt connections, and I don't think we have any good samples for this scenario unfortunately.

    Regards,

    Elfving

  • Thats all good Elfving. Thats very helpful, thankyou.

    I have a follow up question regarding setting up nrf cloud alongside a third party mqtt broker. We have been able to get it to connect to nrf cloud alongside a third party broker (without TLS certificates) but have some issues maintaining a reliable network connection to both when incorporating gnss location services. We want to be able to use the modem gnss mode and get hot and cold fixes for gnss whilst periodically sending these updates back to our broker.

    We have been having some trouble with the modem struggling to handle sudden changes for gnss acquisition and network connectivity for shorter streaming intervals (10's of seconds). In our case, we want to be able to have short periods of constant, high rate streaming alongside gnss location updates. Should we need to consider changing the power-saving mode for the device and ensure some polling mechanism as to not cause too much interference with the modem? Currently looking to get some indication of what maximum streaming rate we should reasonably expect with this architecture for the base 91X Development Kit.

    Thanks again

    Andre

Reply
  • Thats all good Elfving. Thats very helpful, thankyou.

    I have a follow up question regarding setting up nrf cloud alongside a third party mqtt broker. We have been able to get it to connect to nrf cloud alongside a third party broker (without TLS certificates) but have some issues maintaining a reliable network connection to both when incorporating gnss location services. We want to be able to use the modem gnss mode and get hot and cold fixes for gnss whilst periodically sending these updates back to our broker.

    We have been having some trouble with the modem struggling to handle sudden changes for gnss acquisition and network connectivity for shorter streaming intervals (10's of seconds). In our case, we want to be able to have short periods of constant, high rate streaming alongside gnss location updates. Should we need to consider changing the power-saving mode for the device and ensure some polling mechanism as to not cause too much interference with the modem? Currently looking to get some indication of what maximum streaming rate we should reasonably expect with this architecture for the base 91X Development Kit.

    Thanks again

    Andre

Children
No Data
Related