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

How to communicate two nrf52832?

Hi, I have two nrf52832 boards. One as mater and other as slave. I'm trying to develop a communication between master and slave through ble. Also i need to connect the master with a smart phone via ble(for configuring some parameters in the master board). Is it is possible? Can i get any example code for this?Doc1.docx

Parents
  • Hi,

    Yes, this is possible. SoftDevice S132 v4.0.X added support for 20 connections, where you can freely configure each link/connection in any combination between Peripheral and Central.

    The smartphone is often a typical central device, so the nRF52832 master board in your drawing will be a peripheral in the connection with the smartphone. The slave board can either be configured as a peripheral or central device, depending on your requirements. If the slave is configured as e.g. a peripheral, the master board will be a central in the connection with the slave. I.e. the master will be acting concurrently as a central in the slave connection, and as a peripheral in the smartphone connection.

    Take a look at e.g. the BLE Multiperipheral Application example in SDK 13.

  • So with SDK 11 you will have to use S132 version 2.0.x, which supports one connection as a Peripheral and up to eight connections as a Central. So the nRF52832 master board in your drawing could here be configured with 1 Peripheral link and 1 Central link. For example code, take a look at e.g. the BLE Relay Example in SDK 11.

    Note that if you are just starting your project, I would recommend upgrading/migrating to the latest SDK( SDK 13 at the moment.). The latest SDK can be downloaded from here.

Reply
  • So with SDK 11 you will have to use S132 version 2.0.x, which supports one connection as a Peripheral and up to eight connections as a Central. So the nRF52832 master board in your drawing could here be configured with 1 Peripheral link and 1 Central link. For example code, take a look at e.g. the BLE Relay Example in SDK 11.

    Note that if you are just starting your project, I would recommend upgrading/migrating to the latest SDK( SDK 13 at the moment.). The latest SDK can be downloaded from here.

Children
No Data
Related