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
  • I am able to collect the RSSI values and transmit that data (the first half of the diagram on the left).

    what i want to do now is i want hose obtained values to be sent over ble to another peripheral device.

    To do this i need to establish connection right?

    to get understand how i should proceed i tried to connect peripheral and central using gap connection , scan parametrs and i am able to connect obtain nrf success with sd_ble_gap_connect .

    i am connecting based on peer address.

    scan, get scan report, BLE_GAP_EVT_ADV_REPORT:, i called sd_ble_gap_connect and when success fetched rssi. The connected state BLE_GAP_EVT_CONNECTED, i don tget continuous.

    So is this the correct way to connect?

    how can i get continuously rssi values ?

Children
Related