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

How does my central device(phone) talk to 2 peripherals?

I have a phone app which talks to my peripheral device running the nrf52832 and so I will eventually add another peripheral device which ideally can communicate directly to my current peripheral device without going through the central. Unless that is just the way to go I'd like to setup my configuration to be a bit more robust.

Parents Reply Children
  • OK thats great....so how can I easily use that?  I am assuming you mean the experimental dual role example and integrate the UART over BLE into this?? Also what about the S130 softdevice for nRF52810?? I think that only covers peripheral and no central?

  • experimental dual role example and integrate the UART over BLE into this??

    I don't know the example you are referring to here. I would have started with ble_app_uart, added the relevant parts from ble_app_uart_c, and maybe used ble_app_hrs_rscs_relay as reference. However, this example here on github might implement what you are looking for: ble_app_lbs_nus_its_multi-role

    Also what about the S130 softdevice for nRF52810?? I think that only covers peripheral and no central?

    SoftDevice S130 is for nRF51-series. For nRF52810 you would normally use S112 Softdevice(peripheral only), it's possible to use S132 v5.1.0 on nRF52810, but nRF52810 has limited flash and ram, so running a multi-role application on nRF52810 would not be advisable, I think you would run out of available RAM. So, I definitely recommend to use the nRF52832 instead.

Related