MQTT-SN over OPENTHREAD stack

Hi,

I am thinking of creating an aplication to simulate a home automation system. I want to utilize Thread protocol stack and use MQTT-SN as a transport.

I have successfully run OTBR and found resources how to use MQTT-SN gateway to connect to a broker. I am also familiar with cli example and basics of configuring Thread network using ot-cli. What is a best way to follow my idea and to establish simple connection between a gateway and a client. Am I able to somehow easily combine cli and mqtt_sn_publisher to begin communication?

I can imagine how communication works in 'plain stack', i.e. ethernet, ipv4/v6 and MQTT-SN, but how different it is when I use Thread as lower layers - do I simply create a socket in Zephyr and just send data to an open port and OTBR 'does magic'?

I am currently using nRF52833 DKs and OTBR in docker-RCP architecture (RCP from openthread repository).

I'd appreciate your help in this matter.

  • Follow up question: Are there any pre-defined overlays that might help me in debolopment of that project?

  • Hello,

    As you may know, we don't have any samples for OpenThread and MQTT-SN in nRF Connect SDK. This means that the support we have for this combination of protocols is limited. You are encouraged to experiment, but note that you will have to do most of the leg work to make this work. We will of course do our best to help you along the way.

    To start out I will try to be generic and offer you some resources to get you started. These are a combination of other DevZone tickets, documentation and code.

    It could be helpful for you to discuss with other people who have a similar goal as you do. This DevZone-user has established a connection and this other user wants to add Thread to the MQTT-SN publisher sample. You could try to reach out to them to see if they have any specific tips for starting out or considerations you'll have to make. There are also some GitHub repos which are referenced in the first ticket I linked.

    The MQTT-SN specification is useful to know. It highlights the differences between MQTT and MQTT-SN and describes the architecture, etc.

    Let me know if I completely missed your point here, and good luck!

    Best regards,

    Maria

Related