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

nrf52832 , switch central mode to peripheral mode

Hi, 

I have to nrf52832 , s132 modules working as peripheral and central.

I would like to get an idea and input on how to change central mode to peripheral mode.

The purpose of my project is to fetch the advertising device RSSI (nrf52832- peripheral)and then forward(nrf52832 central mode to peripheral mode) the data to another BLE module and publish the data.

1) How to change the operating modes?

2} What are the settings that i should consider at the peripheral that is advertising?

3)How can i proceed ?

4) How can i send the RSSI values of the advertising packet, in the scan report of central after changing in the operating mode to peripheral to advertise that data?

Thanks,

Uma

Parents Reply
  • Hi,

    Is the following what you are looking for?

    Device A, in the broadcaster role. This is the device advertising.

    Device B, combining the observer and peripheral roles. This is the device listening to the advertisements to determine RSSI, which it then sends over a BLE link to device C.

    Device C, in central role. This is the device receiving the RSSI reports. (The reports describe the signal strength of Device A when received by Device B.)

    S132 lets you run roles concurrently, so you use the SoftDevice API (either directly or through SDK libraries) to set up the activities that you need. They will then run concurrently (you do not have to manually switch between e.g. observing and connecting as peripheral.) I can direct you to relevant examples when I know what roles and behavior you are looking for.

    Regards,
    Terje

Children
Related