Guidance on Implementing Concurrent Central and Peripheral Roles for nRF52832 Using nRF5 SDK 17.0.2

Hi,

We are currently planning to start a project using the nRF52832 as our controller, SEGGER Embedded Studio version 5.42a as the IDE, and nRF5 SDK version 17.0.2 as our SDK. Our requirement is to have an nRF52832 device that behaves as both a central and peripheral.

Initially, the nRF52832 will act as a peripheral, allowing it to connect with the nRF Connect app. After this connection is established, the nRF52832 needs to function as both a central and a peripheral simultaneously. Other nRF52832 peripheral devices will be present, and these peripherals will connect to the central nRF52832. The central device should send information about the connected peripheral devices, such as MAC IDs and advertising names, to the app.

When the app sends BLE UART data specifying a particular destination device, this data should be forwarded to the corresponding nRF52832 peripheral device through the nrf52832 central device (GATEWAY) .

Project Details:

  • SDK: nRF5 SDK 17.0.2
  • IDE: SEGGER Embedded Studio 5.42a
  • Controller: nRF52832

Thank you for your support.

Best regards,
SILTVM

Parents Reply
  • We added the NUS_C and NUS parts from the ble_app_uart_c and ble_app_uart examples to the ble_app_hrs_rscs example project and made some necessary corrections in the event handlers of the central and peripheral side handlings. Now, we are able to send data to the APK through the gateway and vice versa. We have implemented bidirectional data transfer through the gateway. We are greatly appreciative of your valuable suggestions

Children
Related