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

Different way of whitelisting

Hi! 

I'm developing application on nrf52832 development board which will be a work indicator - for office desk ;) Main idea is that i have client based on nRF MCU and desktop application which connects to.

As for now i have take some examples and nordic tutorials and have finished all data flow, from connecting to sending and processing data. And now i have reach some blocker with a can't handle. I want to use some kind of mechanizm to prevent connecting to device with other client when desktop app is off. I have tried to use whitelisting but there is a problem with desktop app side. I have used Qt framework which as far i now don't support bonding / paring with BLE. Only raw connection. So in this case i can't use whitelist to store bonded device information because there is no bonding support.

Do you know any other mechanizm to prevent connecting different device when main device is off? I have thinking about button and long press to enable connecting but i don't know how to set advertisements pockets to send only to my last connected device? Do you know any other ways to solve this problem?

Best regards

GoRo3

  • Hello,

    For the peripheral device you should look at an example that support peer manager. For instance the \ble_app_hrs, this example support bonding, and can after bonding advertise with whitelist enabled to ensure that only a specific peer (e.g. desktop) may re-connect. You may add additional handling of for instance button presses to allow restart of advertisement with or without whitelist (there is an api for it if you are using the ble advertisment module).

    For the desktop I do not quite understand what you have done. I assume the desktop operate in the central role, in which case I know Microsoft have made available an app and source code on github:
    https://www.microsoft.com/en-us/p/bluetooth-le-explorer/9n0ztkf1qd98?activetab=pivot:overviewtab

    Do you know any other mechanizm to prevent connecting different device when main device is off?

    Not really no (would be very proprietary, e.g. less robust in terms of security etc), hopefully the app by Microsoft above can support bonding for you.

    Best regards,
    Kenneth

Related