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

connecting nRF52831 to host MCU

Hi all

I want to connet the nRF52831 to host MCU that i have already using through SPI or UART as slave.

and ready program for that ?

  • Hello,

    Sorry. I don't understand exactly what you mean.

    You want to use the nRF52832 as a BLE slave device, is that correct?

    This is possible. Please check out the serialization example we have in our SDK

    Best regards,

    Edvin

  • yes as slave thanks i am checking the example now is there any commands list that i can send from the host mcu?

  • Well, yes, there is, but it is not listed in a nice list like that. We have some serialization projects, but I assume that you will not run with an nRF as the master MCU as well?

    I suggest you study those examples, such as SDK\examples\ble_peripheral\ble_app_hrs\pca10040\ser_s132_spi or ser_s132_uart. These applications will run the application, while the bluetooth slave will run the connectivity firmware.

    What you see is that in the application mcu's application, the regular sd_... functions that usually just point to the SoftDevice binary are now redirected to encoding the UART string. By clicking through the definitions you should be able to find the UART strings that you need to use, or alternatively you can port these projects to the MCU that you use for your main application.

    Depending on what your main MCU application is doing, you must consider a couple of things:

    Is it worth porting this example (the serialized example), or just to find the uart commands for the specific commands that you need, or simply to create a communication protocol of your own.

    If you just want to send some sensor data, not too frequently, the latter option is probably the easiest, but if you want all possibilities as if you used the nRF as the main mcu, then porting this serialized example is probably the way to go.

    Best regards,

    Edvin

Related