This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

solution for serial cable replacement over BLE

Hello,

I need to implement a simple and minimal serial cable replacement using BLE SoC and external MCU host interfaced by 2-wire UART (without flow control). Is it feasible for Nordic SoCs? What's the best option for this purpose?

thanks in advance,

gaston

Parents
  • Just take a look at the ble_app_uart example in the SDK.

    There are several flavors of implementation.  You can do nRF to smartphone, nRF to nRF, and multi-nRF to single nRF host in a star configuration.

    If you search in the devzone you will find plenty of Q&A on the subject.

  • All right, thank you. I'll check the SDK as you suggested. As far as I know It is necessary to load the BLE stack into the Nordic Soc. Is it possible to do it from the external host MCU?

  • People do use serial bootloaders to load the code via uart (eg, from an MCU).  However, if this is a one time only design then you may find it easier to just make the SWD for the nRF available on your design and just program the flash on the nRF that way. It's less complicated. Look in the SDK for the for bootloader_secure_serial if you want to do serial dfu bootloader. If you base your design on nRF52840 then it has a usb transceiver and you can look at the usb dfu bootloader.

    With regard to the BLE stack, people often use ESB (enhanced shock burst), 802.15.4, and Gazelle protocols to accomplish the same thing. There is even an 802.15.4 uart example in the SDK.

    If you search the devzone I'm sure you will find plenty of example code for wireless uart.

Reply
  • People do use serial bootloaders to load the code via uart (eg, from an MCU).  However, if this is a one time only design then you may find it easier to just make the SWD for the nRF available on your design and just program the flash on the nRF that way. It's less complicated. Look in the SDK for the for bootloader_secure_serial if you want to do serial dfu bootloader. If you base your design on nRF52840 then it has a usb transceiver and you can look at the usb dfu bootloader.

    With regard to the BLE stack, people often use ESB (enhanced shock burst), 802.15.4, and Gazelle protocols to accomplish the same thing. There is even an 802.15.4 uart example in the SDK.

    If you search the devzone I'm sure you will find plenty of example code for wireless uart.

Children
Related