Thursday, January 23, 2014

Android Bluetooth development, the device can be used to control automatic code match?


            
When using a mobile phone to connect Bluetooth devices will be required to make a matching operation, the two sides entered a matching code, then you can match a success.
However, some devices, such as Bluetooth headsets, no input, such devices generally matching code is fixed, for example, 1234,0000, I want to ask is it possible to achieve through their own program automatically entered this fixed matching code Do not manually enter a user, such as for certain third-party Bluetooth devices specially developed software.

I found the android in the match when a dialog box will pop up to ask for matching code, content input I think it should be passed to the underlying services through Intent, may be broadcast, I wanted to be able to use their own program to send The broadcast, which can be done automatically matched ......

There are experts in this field have studied it, we can discuss what
Reply:
Want this, considering even the Bluetooth keyboard
Reply:
Their top ......
Reply:
That's good ......
Reply:
A partial understanding of your Bluetooth is sufficient;
2 a little bit of bias, the characteristics of Bluetooth technology, the Bluetooth pairing code is a one to one, although there are different codes 0000 and 1234, but not broadcast;
3 I did a Bluetooth serial port data acquisition module, so there is a little bit of insight:
a lot of equipment is the default write code such as matching Bluetooth headset, 0000 or 1234, then when the device is connected Android has received the device sent to the 0000 or 1234 matching code, then enter it again to match the pairing is successful ;
b There is no written part of the equipment matching codes, such as a Bluetooth keyboard (some products), which is connected to the device when Android will prompt you to allow you to enter a matching Bluetooth keyboard and Android already generated code matches the code to do matching verification;
c Of course, you would have thought, there will be another part of the equipment is needed both input matching, the specific equipment I do not illustrate ~
d there are some specialized equipment matching is not the default 0000 or 1234, nor is entered manually, but automatically match oh, high version of Bluetooth hardware support, but I have not come into contact with, it should be use to determine the transmit and receive power , for example, a lot of support fast matching Bluetooth headset, the phone near to, no pairing ~
Reply:
The reply was deleted at the moderator 2011-04-28 11:16:17

Reply:
Now do SPP protocol-related processing, because use to automatically set the pin value, very distressed.
Some phones can automatically bring up the Bluetooth PIN code input box to solve, some are not, is it because after each manufacturer has its own Bluz compiled product?
There are hidden setPin methods and setPasskey methods within BluetoothDevice, unfortunately, if invoked, it has no effect, input dialog box will pop up.
Inter-process communication methods, originally wanted to receive ACTION_PAIR_REQUEST by generating new BroadcastReceive, the results did not catch the broadcast.
Ibinder do not know how to deal with ..
Reply:
The reply was deleted at the moderator 2011-05-11 09:47:42

Reply:
references, 4th Floor wintelzhao reply:
1 you know about Bluetooth part is sufficient;
2 a little bit of bias, the characteristics of Bluetooth technology, the Bluetooth pairing code is a one to one, although there are different codes 0000 and 1234, but not broadcast;
3 I did a Bluetooth serial port data acquisition module, so there is a little bit of insight:
a lot of equipment is the default write code such as matching Bluetooth headset, 0000 or 1234, then when the device is connected Android has received the device sent to the 0000 or 1234 matching code, then enter it again to match the pairing is successful ;
b There ......


On the second point, I said, is the android system broadcast by sendBroadcast () method sends an internal system of broadcasting is something android, radio and you said transport layer is not the same
The reason you want to automatically match is to facilitate the use of the first time a user without manual matches; addition, colleagues write in C # winform program can write code to match the dead in the program instead of customer input, so I would also like to perform the same function on android.
Reply:
reference to the 6th floor cool_gua reply:
do now SPP protocol-related processing, because use to automatically set the pin value, very distressed.
Some phones can automatically bring up the Bluetooth PIN code input box to solve, some are not, is it because after each manufacturer has its own Bluz compiled product?
There are hidden setPin methods and setPasskey methods within BluetoothDevice, unfortunately, if invoked, it has no effect, input dialog box will pop up.
Inter-process communication methods, originally wanted to create a new BroadcastReceiv ......

BluetoothDevice two methods that are private or protected it? Not listed on the document to ~ ~
Reply:
Master really, ah, I just did not match the given dead data. Learn.
Reply:
The top one, Jiqiu solution
Reply:
http://immortal.5d6d.com/thread-566-1-1.html

Refer resolved
Reply:
Ask, how to achieve automatic pairing Bluetooth devices inside android, can give hair a sample code, thank you ah
Reply:
Ask, you have already solved the Bluetooth Auto pairing it? Now I did not have any good way to think.
Reply:
Heroes, why Bluetooth headset can voice answer but can not use the headset button above answer it?
Reply:
12th floor guy!
Can share code? I have encountered this problem ...... Thank you!
My email: 1175791947@qq.com
Reply:
Solved? Resolved, then contact my 249480300 QQ
Reply:
There are wooden phone with a Bluetooth headset paired source, the great God who

No comments:

Post a Comment