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

NUS with more then one device NRF51822

Hello what we want : One central and several periphals. The periphals will have different DEVICENAME. Is this possible with the NUS Service?

The doku says ; Note This application will connect to only one device that delivers the NUS. If the application cannot find the NUS in the device discovery, it will not disconnect. This makes it possible to use more GATT clients at the same time.

We want to use the ble_app_uart as base for our developtment.

Andreas

  • Yes, you can make it work and yes you can take ble_app_uart as starting point. Just remember that it's better to have GAP Central and GATT Client as center of star topology because that's how it was meant since BT4.0 specification. However today you could use nRF52 and S132 to have multiple GAP Peripheral and GATT Server connections. If you want to go with old nRF1 then I'm afraid S130 cannot do multiple GAP Peripheral connections so this example isn't the good source. However you might succeed with other stacks like Zephyr (but then you are on your own, I don't think there is NUS example for that stack) or switch to more logical GAP Central + GATT Client role for multi-connectable device.

  • Hello, maybe this is an missunderstanding... We don't want more then one connection active at the same time. We want several peripharels advertizing at the same time with different Devicenames. Example : DEVICE1 DEVICE2

    Now the central should connect only with DEVICE2 and not with DEVICE1.

    In the Nrf Toolbox for my iphone i touch "connect" and then i can see a list of devices advertizing. Then i can touch the devices that i want to connect to... That is what we want withe ble_uart_central ...

    Andreas

  • No question so nothing to answer (the only question from you so far was "Is this possible with the NUS Service?" and you got the answer "Yes it is possible":)))))

Related