Bluetooth support
Porting Android to the iPAQ 200/210/211/212/214 or equilivalent
Status: Alpha
Brought to you by:
alvinwong
Bluetooth is supported on Angstrom so current kernel driver should be working.
Just have to make Android use the driver.
When trying to enable Bluetooth in the UI it simply does nothing, even with BOARD_HAVE_BLUETOOTH := true.
All I can get is this in logcat:
I've already tried to modify the code of
bluedroidto make it use the specific device for switching bluetooth power, but it doesn't even try to start the hciattach service.The parameters are the same as the script in Angstrom. I've chown'ed
/dev/ttyS0for bluetooth already.A bit messing up with
bttest enableseems to makehcitool devshow a device, but is different from the MAC address when I see in Windows Mobile.I can perform
hcitool scanandhcitool inq.The problem is that Bluetooth still doesn't start from the Settings UI.
OK, finally done a clean build and more happens. It finally does what
bttest enabledoes when switching from the UI.Then the system server restarted.
Still can't start Bluetooth normally from UI.
OK, fixed the above problem. Reference: http://tassardge.blog.163.com/blog/static/17230170820114125337103/ (Chinese)
Solution is to modify [root]/frameworks/base/core/jni/android_server_BluetoothEventLoop.cpp
In function
register_agentchangeoobfrom typebooltoint.I can search for devices and connect, though no actual use at the moment.
P.S. I keep getting this logcat message:
It's just like flooding.
Last edit: Alvin Wong 2012-02-01
OK, now I try to use brcm_patchram_plus instead of hciattach. With the firmware extracted in Windows Mobile, I get this:
Without patchram it's working fine. But is there some problem considering patchram?
Last edit: Alvin Wong 2012-10-11
Bluetooth has been working, but still missing the firmware download part and bdaddr.
Bluetooth address configure support added. Closing.