Questionning several peripherals one by one when connected

Hello everyone,

I am working with the SDK v17.1.0 with the DK nRF52832 with the examples of ble_app_uart and ble_app_uart_c.

I managed to implement a multilink communication of BLE over UART with 3 nRF52832  connected peripherals to a nRF52832  central.

What I have now is that each peripheral send data to the central once powered, and the central is just receiving all these data.

What I want is the central to send an "enable" to one peripheral  and then retrieve the data send by the asked peripheral. I want to be able to ask each peripheral individually. 

 

What I was thinking is that once all the peripherals are connected, the central would ask each peripheral to send its data through their conn_handle. For each, I would put to sleep the others peripherals. 

Is that possible?

Thank you for your time and help!

Vincent

Parents
  • There are many ways this can be implemented, but the easiest might be to have some "software handshaking" between the central and peripherals. The software handshaking can simly be that the central write a command to a characteristic on the peer, the peripheral can then interpret the command to either start or stop sending data, how much data it can send and how frequently etc. The central can then at any time update the command value on a characteristic on each individual peripheral.

    Best regards,
    Kenneth

Reply
  • There are many ways this can be implemented, but the easiest might be to have some "software handshaking" between the central and peripherals. The software handshaking can simly be that the central write a command to a characteristic on the peer, the peripheral can then interpret the command to either start or stop sending data, how much data it can send and how frequently etc. The central can then at any time update the command value on a characteristic on each individual peripheral.

    Best regards,
    Kenneth

Children
No Data
Related