NRF52833 Adding UART to Thead MQTTSN client publisher

Good day

I need to add UART to a project based "Thead MQTTSN client publisher" example code. The device needs to receive data over UART and then send the data to the MQTT broker. I have tried to port the code over from the peripheral UART example from the same SDK, but to no avail. Where as most of the SDK's examples perfectly illustrate their concept, it can sometimes be a nightmare to merge two examples.

Could you please provide some guidance on how to add UART capabilities to the Thread example.

Project is being done on a NRF52833 chip with version 4.1 of the Thread SDK.

Kind regards

Parents
  • Hi,

    Which issues are you facing when adding UART? Can you post the errors you get when building?

    The typical problem when adding UART to the Thread examples is that the OpenThread CLI have been built with UART support into the OpenThread libraries in the SDK. Since you are using nRF52833, you should be able to use the second UART instance (UARTE1) without issues.

    In nRF5 SDK for Thread and Zigbee v4.1.0, the transport is also compiles into a separate library, to be easily changes/removed, without the need to rebuild the OpenThread libraries. If you want to use UART0 in your application, you may try replacing the library "libopenthread-nrf52833-transport.a" with "libopenthread-nrf52833-transport-none.a

    Best regards,
    Jørgen

Reply
  • Hi,

    Which issues are you facing when adding UART? Can you post the errors you get when building?

    The typical problem when adding UART to the Thread examples is that the OpenThread CLI have been built with UART support into the OpenThread libraries in the SDK. Since you are using nRF52833, you should be able to use the second UART instance (UARTE1) without issues.

    In nRF5 SDK for Thread and Zigbee v4.1.0, the transport is also compiles into a separate library, to be easily changes/removed, without the need to rebuild the OpenThread libraries. If you want to use UART0 in your application, you may try replacing the library "libopenthread-nrf52833-transport.a" with "libopenthread-nrf52833-transport-none.a

    Best regards,
    Jørgen

Children
No Data
Related