How to configure Thread in the mqtt-sn-publisher project of zephyr sdk?

I want to configure Thread in project mqtt-sn-publisher( https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/net/mqtt_sn_publisher ) and communicate with mqtt-sn-gateway through Thread network.

I followed the instruction(https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/configuring.html) to add some configurations in file prj.conf of mqtt-sn-publisher project.

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

But it always exited after it joined Thread network. What is the problem? Did I do something wrong?

Parents Reply Children
  • It is possible that you get this error because the permissions required to run Thread is not sufficient un USERSPACE. I do not think that path is the correct way to resolve the issue you are facing.

    I also do not think there is any crash in your first test, but it could be blocking somewhere. There is no logs indicating crash.

    Can you upload your full project for us to debug/reproduce?

  • Thank you!! Here is my project.

    I build the project by using command 

    Fullscreen
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I used a virtual machine ubuntu and RCP dongle to act as OTBR.

    6305.mqtt-sn.zip