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

Deny connection on wrong application

Hi,

I'm working on a Custom Android app which connect to my NRF52 without any security.

This App is based on the UART demo App for Android, but I want that only my App will be able to connect to my device.

For example I have a smartwatch which i can't connect with my custom app but only with the official App provided by the manufacturer.

So, can you tell me how to do a such thing, Thanks you !

Parents
  • Hi Maxim,

    The identity and "protocol type" or GATT UUIDs are indeed separate thing. The only "standard" way according to BT SIG specification is to use Security Manager and pair the devices. Then you can manage which device can access your services/features and which not. If you don't like this peer-to-peer model (Bluetooth doesn't know anything else today in lower stack layers) then you need to solve it on application layer (and then space of available solutions is endless, some of them better, some of them worse;)

    Cheers Jan

Reply
  • Hi Maxim,

    The identity and "protocol type" or GATT UUIDs are indeed separate thing. The only "standard" way according to BT SIG specification is to use Security Manager and pair the devices. Then you can manage which device can access your services/features and which not. If you don't like this peer-to-peer model (Bluetooth doesn't know anything else today in lower stack layers) then you need to solve it on application layer (and then space of available solutions is endless, some of them better, some of them worse;)

    Cheers Jan

Children
No Data
Related