前面几篇分别简单涉及了

那么接下来,可以仔细分析蓝牙的packets

raspberryPi scan

在raspberryPi上执行sudo hcitool lescan

pi@raspberrypi:~ $ sudo hcitool lescan
LE Scan ...
3F:27:A7:F4:76:A1 (unknown)
2B:52:CB:55:00:90 (unknown)
37:92:63:B7:9C:54 (unknown)
54:6C:0E:80:B4:86 CC2650 SensorTag

如log中54:6C:0E:80:B4:86 CC2650 SensorTag, Sensor Tag被扫描到。

Siniffer log

wireshark中Log的packet截图如下

ADV_IND

下图为sensorTag的广播报文



Advertising_Type:

  • 0x00 Connectable and scannable undirected advertising (ADV_IND)(default)
  • 0x01 Connectable high duty cycle directed advertising (ADV_DIRECT_IND, high duty cycle)
  • 0x02 Scannable undirected advertising (ADV_SCAN_IND)
  • 0x03 Non connectable undirected advertising (ADV_NONCONN_IND)
  • 0x04 Connectable low duty cycle directed advertising (ADV_DIRECT_IND, low duty cycle)

在spec 5.0中2.3.1.1 ADV_IND定义了ADV_IND PDU payload.

SCAN_REQ

下图为Scan Request packet



https://www.bluetooth.com/zh-cn/specifications/bluetooth-core-specification

Advertising devices may receive scan requests from listening devices in order to get additional user data from the advertising device. Scan responses are sent by the advertising device to the device making the scan request.

在spec 5.0 中, 4.2.2.3 Scanning Procedure

  • A scanning device uses the scanning procedure to listen for unidirectional broadcasts of user data from advertising devices using the advertising channel.
  • A scanning device can request additional user data from an advertising device by making a scan request.
  • The advertising device responds to these requests with additional user data sent to the scanning device over the advertising

    channel.

关于广播报文,Scan Request, Scan Response, 以及connect Request在下面的链接中有进一步的解释,

http://www.wowotech.net/bluetooth/ble_broadcast.html

这里就直接引用一下:

Reference

http://www.wowotech.net/bluetooth/ble_broadcast.html

最新文章

  1. Mvc中Session导致action不异步的问题
  2. Browsersync — 省时的浏览器同步测试工具
  3. hash连接
  4. 微信:JSSDK开发
  5. OAF_开发系列12_实现OAF开发中URL中的标记和加密参数传递(案例)
  6. maven依赖本地非repository中的jar包-依赖jar包放在WEB-INF/lib等目录下的情况客户端编译出错的处理
  7. DataGridView 绑定List集合后实现自定义排序
  8. CSS3 Animation
  9. SQL Server中DateTime与DateTime2的区别
  10. 项目源码--Android即时通讯IM客户端
  11. AlphaGo 已经战胜了李世石,而你还不知道什么是机器学习?
  12. 【网络流24题】No. 13 星际转移问题 (网络判定 最大流)
  13. RelativeLayout相对布局 安卓布局技巧
  14. 关于ECharts Java类库的一个jquery插件
  15. LeetCode之ReverseWorldString
  16. 求a和b的最大公约数
  17. CSAcademy Beta Round #5 Force Graph
  18. 认识Java(1)
  19. 浅谈 Glide - BitmapPool 的存储时机 & 解答 ViewTarget 在同一View显示不同的图片时,总用同一个 Bitmap 引用的原因
  20. zookeeper的三种安装模式

热门文章

  1. react native的Navigator组件示例
  2. Windows下打开某些软件时显示显卡驱动不是最新的问题
  3. jquery offsetParent()源码解读
  4. asp.net mvc 使用uploadfiles 实现异步上传数据
  5. .NET Core 1.0 CentOS7 尝试(一、安装)
  6. vue2.0:(一)、vue的安装和项目搭建(以外卖app项目举例)
  7. leetcode134 Gas Station
  8. IOS博客
  9. codevs 2059 逃出克隆岛
  10. css3 省略号