Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Recommended UART API

Hi,

Our custom NRF52840 device uses a cellular modem. We communicate with this modem using AT commands.

We will also be hooking up our devices to a custom server that will push FOTA updates to our devices. 

I am aware of two UART api's on the NRF SDK - app_uart and nrf_serial.

Which one is more suitable for our use case?

Thanks,

Tim

  • Hello Tim,

    I suggest you just use the app_uart. It is a simpler module, and I believe this would be well suited for what you describe here.

  • Note: Remember that the bootloaders in our SDK require the device to push the image to the bootloader. The bootloader is a "passive" receiver. If your cellular modem is purely driven by AT commands, you will need to looking into a "background bootloader", where you store the new image in the flash while your application is running, and then jump to the bootloader to verify the new image. That means that you have to move the transport from the bootloader to the application, and then skip right to the verification when you start the bootloader.

    BR,

    Edvin

Related