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

Preventing Services From Being Discovered

Hello,

I am currently working on a project and I would like to add some security to my device by preventing services from being discovered. Ideally when a user connects to the device they should only see a Password service with a lock and unlock characteristic. When the user unlocks the device by entering the proper password, the user will then be presented with additional services and characteristics for configuring the device. Once the user locks the device, disconnects and reconnects, they will again only be presented with the Password service. I would like this functionality to prevent unauthorized users from enumerating my GATT table. I have also tried to add the services i wish to hide as secondary services using sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_SECONDARY, p_uuid, p_handle) and then call sd_ble_gatts_include_add() but have been unsuccessful and there is no sample code to help guide me in the right direction regarding its usage.

Is this possible with the S110 SoftDevice and SDK 7.2? I know that there are some devices on the market that do this such as the Nike Fuel Band and I would like to add it to my current project using the nRF51822.

Any help or recommendations you have would be greatly appreciated.

Thanks!

Cory

Related