I am trying to enable bluetooth usb dongle support on our android device which is default has no bluetooth option.
I have tried to follow this guide which is for specific AM335 bluetooth device.
First i have enabled all the options on kernel as follow
[*] Networking support --->
<*> Bluetooth subsystem support --->
[*] L2CAP protocol support
<*> RFCOMM protocol support
<*> RFCOMM protocol support
<*> BNEP protocol support
[*] Multicast filter support
[*] Protocol filter support
<*> HIDP protocol support
Bluetooth device drivers --->
<*> HCI UART driver
[*] UART (H4) protocol support
[*] HCILL protocol support
<*> RF switch subsystem support
Guide says i need to make changes on init.rc file.
There are lots of init.rc file on my device directory like init.[mydevice].rc init.[mydevice].usb.rc etc and the original android init.rc file which is not on my device directory but on platform/system/core/rootdir
My first question is which init.rc file should i apply the changes guide say?
Guide is not for USB dongle and i need to find where my usb dongle connects on android filesystem in order to give correct permissions.
chmod 0660 /dev/ttyO1
chown bluetooth bluetooth /dev/ttyO1
my second question is what should i write instead of tty01?
Also there is no bluetoothd service on my device as far as i can see from adb shell service list(I think there is something missing on init.rc file which creates dir for bluetoothd). I have enabled the bluetooth option in settings and can navigate to it without problem but when i enabled the bluetooth device is trying to enable it but couldnt succeed at all.
Later i suspected that maybe i couldnt enable the usb driver from kernel and try to list the usb devices by lsusb with and without usb dongle results are same so i think device cant recognise the usb dongle at all. And there is whole bluedroid thing that i dont know too.
My third and last question is: Is there any other thing should i enable or disable on kernel besides what i have already changed?
0 comments:
Post a Comment