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

S110 role switching

Is possible to put S110 in observer role (as peripheral) , waiting for a specific advertising (or waiting for an active scanning) and then switch to advertiser role (always as peripheral) ?

Thank all.

Update : Nordic has released S130 softdevice.

  • If the aim is to connect to a specific Central device, with which you have already bonded, you should look into whitelisting. This is the exact functionality this offers. For an example of how this can be implemented, I'd recommend you to take a look on the ble_app_proximity. It uses a bond manager API function to get a whitelist, which it then uses when advertising.

    The S110 can do the Peripheral and Broadcaster roles only, and can not behave as an Observer. Also, an Observer would not normally be able to see other Central devices, so I'm not sure how useful that would have been.

  • The aim is having a passive , non advertising, peripheral, who reacts only to a specific active scanning message without having a previous bonding.

    Is it possible with S110 ?

  • No, this isn't possible with the S110, and not actually with any BLE Peripheral or Central device as far as I can see.

    You have to be advertising to be able to receive a connection request, since a Peripheral will only listen for packets right after having sent an advertisement. Also, a Scanner will not send any packets but only listen passively if it doesn't first receive any advertisement packages, so unfortunately I don't see how your suggested scheme could work with any BLE device.

  • If the device had the chance to switch from central to peripheral (and the other device from peripheral to central) do you think it could be possible ? Let me to be more clear : Device A is running as central - (scanner) Device B wake up as peripheral, start to advertise Device A recognize the right advertising , communicates the ok to B, changes role to peripheral Device B (as receives the OK) switch to Central

    at the end : Device A is a Peripheral/Server Device B is a Central/Client

    Admitting nRF51822 be a Central in a new release of S110.

    Thank you.

  • If you have two devices, both capable of switching roles, you might be able to get this working, but then again, I'm having trouble understanding what you achieve by all this trouble, as it seems pretty excessive to me.

    I'd absolutely looking into whitelisting and the addition of manufacturer specific data to solve this in some other way. Whitelisting will require that you either have been bonded with the other device, or that you know its Bluetooth address. Manufacturer specific data is data that you can add to your advertisement package, which the Central then can read for specific information about your peripheral. If you need further information on either of these, it might make most sense to post it as a separate question.

Related