Android Mobile phone Nexus One connects to the Apple Bluetooth keyboard
Posted on August 20,201 0 by Henry
First, all Bluetooth Android phones are theoretically accessible. Bluetooth Keyboard Human Interface Device, unfortunatelyOfficial Of Bluetooth By default, hid profile is not included in profile. Therefore, only third-party Rom For example, cyanogen (cm6 or later) or bluez utility on the official Rom. Bluetooth Mouse and keyboard connection.
Here we will only discuss the second method of adding tools on the official Rom. Mobile phone required Root Permission , Or ADP (Android Dev phone), and busybox needs to be installed.
1. FirstDownload Required tools.
$ Wget http://androidobex.googlecode.com/files/hciconfig
$ Wget http://androidobex.googlecode.com/files/hcitool
$ Wget http://androidobex.googlecode.com/files/hidd
2. upgrade to the root permission and mount/system to read/write. The default value is read-only.
$ Su
# Mount-O remount, RW-T yaffs2/dev/block/mtdblock3/System
# Chmod 777/system/xbin
3. download File To mobile phone
$ ADB push hidd/system/xbin
$ ADB push hcitool/system/xbin
$ ADB push hciconfig/system/xbin
4. If your mobile phone is not ADP, you may not be able to directly access the local device Computer Copy the file to your mobile phone. In this way, you can connect to your mobile phone with a USB cable, copy the above three files to the root directory of the sdcard, and then execute.
# Cp/sdcard/hidd/system/xbin/
# Cp/sdcard/hcitool/system/xbin/
# Cp/sdcard/hciconfig/system/xbin/
5. Open your mobile phone Bluetooth In Settings> wireless & Network Settings> Bluetooth settings, find Keyboard And paired. The pin code can be set to 0000. After successful pairing, the device is displayed as 'paried but not connected' because the hid profile is missing.
6. Now we need to use the three files that were previously transferred to the mobile phone. In actual situations, the MAC address of the device is different from the following example.
# Hciconfig
Hci0: Type: UART
BD address: 00: 22: A5: B8: AD: 65 acl mtu: 1021:4 sco mtu: 180: 4
Up running pscan
RX Bytes: 8672 ACL: 98 SCO: 0 events: 285 errors: 0
TX Bytes: 3336 ACL: 102 SCO: 0 commands: 89 errors: 0
# Hcitool Dev
Devices:
Hci0 00: 22: A5: B8: AD: 65
# Hcitool Scan
Scanning...
00: 1D: 4f: A7: 9A: 49 Apple wireless keyboard
# Hidd-connect 00: 1D: 4f: A7: 9A: 49
# Hcitool con
Connections:
<ACL 00: 1D: 4f: A7: 9A: 49 handle 1 state 1 lm master
9. Now, the apple Bluetooth keyboard is successfully connected. Open arbitraryProgram , Bluetooth Keyboard The hitting key appears in the input column. Tested, Google Chinese Method can also be used normally and candidate words can be selected with a number key.
10. The remaining problem is Apple's Keyboard Multiple Function Key (adjust volume,Screen Brightness) is not available on mobile phones yet. Further research is needed on how to modify these key locations.
Reprinted: http://hi.baidu.com/fanrifei/blog/item/5a79607a0bf25fe22e73b3dc.html