android bluetooth

Android bluetooth介绍(一):基本概念及硬件接口

 

BlueZ为调试和与蓝牙子系统通信提供很多设置命令行工具,包含下面这些:

hciconfig

hcitool

hcidump

sdptool

dbus-send

dbus-monitor
通过Android Shell命令,完全可以绕开上层的网络管理机制来控制网络接口的状态。

 

 

 

hciconfig -a            # print BT chipset address and features. Useful to checkif you can communicate with your BT chipset.
2 hcidump -XVt            # print live HCI UART traffic.
3 hcitool scan            # scan for local devices. Useful to check if RX/TX works.
4 l2ping ADDRESS          # ping another BT device. Useful to check if RX/TX works.
5 sdptool records ADDRESS # request the SDP records of another BT device.

 

下面的图表提供了一个以库为导向的蓝牙栈视图。

实线框的是Android模块,红色虚线部分为合作伙伴指定模块(译者注:芯片商提供)。

 

图表是以进程为导向视图:

 

posted on 2015-10-25 18:25  szllq2000  阅读(141)  评论(0编辑  收藏  举报