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.
2hcidump -XVt            # print live HCI UART traffic.
3hcitool scan            # scan for local devices. Useful to check if RX/TX works.
4l2ping ADDRESS          # ping another BT device. Useful to check if RX/TX works.
5sdptool records ADDRESS # request the SDP records of another BT device.

 

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

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

 

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

 

转载于:https://www.cnblogs.com/SZLLQ2000/p/4909208.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值