본문 바로가기
Programming/Android Java

bluetooth overview for android QC

by 개Foot/Dog발?! 2014. 9. 8.

URL : http://www.xuebuyuan.com/1012380.html





.....


BlueZ Startup Procedure (Host BlueZ (Android Bluetooth host stack) )


Call flow on enabling/disabling Bluetooth in UI settings → Wireless control 

Functions bt_enable, bt_disable in android/system/bluetooth/

bluedroid/bluetooth.c are entry points to enable/disable Bluetooth

■ Related services are declared in android/system/core/rootdir/

   etc/init.qcom.rc

■ Modify arguments for hci_qcomm_init in android/system/core/rootdir/

   etc/init.qcom.bt.sh for your platform dependency

■ Bttest test tool enables/disables Bluetooth device


bttest enable and bttest disable commands in ADB shell

Reference source code – android/system/bluetooth/bluedroid/bttest.c


Startup scripts

/etc/init.qcom.rc and /etc/init.qcom.bt.sh are scripts for Android Bluetooth startup procedure


Bluetooth SoC Initialization – hci_qcomm_init (cont.)


.....