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

BLE UART/SPI

Hello all,

I'm working on updating bluetooth communication. Currently using a module that receives AT style commands.

The first step will be replacing with nordic device, then change HW and include the code into the SoC.

I have a nRF52 DK, but all the examples are meant to program directly on the nRF52.

Does anyone know if there is a FW I can use that will allow using the nRF52 as a similar module through SPI or UART? Or is the nRF52 a bad choice here?

Thanks for any help you can provide

Parents Reply Children
  • Well, since your end goal is to keep the BLE application on the nRF52 I think you should consider not to use serialization as you will save a lot of development time in the long run. To use the serialization library you need to port a lot of our drivers and libraries to your host MCU.

    What exactly are your BLE needs? 

  • I think I agree. (though still not entirely clear)

    Rather that try to do this hybrid half-way-house mash-up, I think it may be easier to just treat this as a new development.

    ie, start on nRF with some basic BLE functionality, and bring in stuff from your "main" app ...

  • My BLE needs are very low power and security. It will not advertise unless instructed and ideally it will be completely silent except during communication.

    The device needs to receive configuration and answer to commands from a PC/Tablet or phone, this just a few times a day. Data is just plain data, so the Nordic UART over BLE is a good fit to start with.

    A version of the application is already running with a BT 2 module, using serial cable emulation, with no security and high power, with AT style control.

    I'd like to substitute the module with a nRF. Initially I want to use it as is, if possible not writing code for it (using an existing FW from nordic) and controlling BLE through SPI or UART. I don't mind porting some libraries to do this, but it would certainly help if they are already made.

    After this solution is working the next step will be shifting the comms processing entirely to the nRF, but that will be a separate effort. I don't think I'll be able to move all my application to the nRF due to timing, I/O and peripheral requirements.

  • The UART/Serial Port Emulation over BLE example is definitely the way to go in your case. I would forget the serialization library as it is not suited for your use-case. 

    Once you have the UART over BLE communication up and running you can offload other tasks from the main MCU if you want to. 

  • OK,

    I'm starting from the UART, I'll just change how to connect (security, power)

    Is there a way to have some control of the BLE from the application MCU? Because if I understand correctly I have only the UART that goes through.

Related