简体   繁体   中英

How to pair automatically bluetooth devices with a PIN

I am trying, without success, to pair a bluetooth device with a Android phone without asking to the user the PIN.

My idea is to fetch the desired PIN from a web service because the bluetooth device I want pair needs to be used from more people (and so for more android phones) without knowing and enter the PIN.

Do you have any idea for do it? I tried to see Bluetooth classes, but always, during device connection, I need to enter the PIN.

Thank you in advance!

You can use "just works" feature of Bluetooth pairing. This works only with SSP(secure simple pairing), from Bluetooth 2.1 onwards. You have to set the IO capabilities of device for this to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM