1.概述
在进行蓝牙设备的连接时,为了保护个人隐私和数据保密的需要,需要进行验证。
2.一些Frame
Frame74:本地发送Authentication requset command
00010001 00000100 00000010 00001001 00000000
Opcode: 0x0411
Connection Handle: 0x09 = 9
Frame75:Command Status event
00001111 00000100 00000000 00000010 00010001 00000100
Status: Success
Frame76:Link Key request event
该Event参数为BR_ADDR
00010111 00000110 10000000 10011001 00100011 01001100 11100000 00000000
Bluetooth Device Address: 0x00-e0-4c-23-99-80
注:该Event应该是对Authentication requset command的后续回应,向本地的Host要Link key。
Frame77:Link Key Negative request command
00001100 00000100 00000110 10000000 10011001 00100011 01001100 11100000 00000000
Bluetooth Device Address: 0x00-e0-4c-23-99-80
注:回应远端slave的Link Key request event,表示本地没有存储的Link Key。
Frame78:Link Key Negative request command---command complete event
Frame79: IO Capability request event
00110001 00000110 10000000 10011001 00100011 01001100 11100000 00000000
BD_ADDR: 0x00e04c239980
注:该event表示远端的slave要求本地Host的IO_Capability,这个参数将在pair的过程中用到。
Frame80:IO Capability Request Reply command
这个command的参数如下:
BD_ADDR,
IO_Capability,
OOB_Data_Present,
Authentication_Requirements
00101011 00000100 00001001 10000000 10011001 00100011 01001100 11100000 00000000 0000000100000000 00000101
Bluetooth Device Address: 0x00-e0-4c-23-99-80
IO Capability: 0x01 DisplayYesNo
OOB Data Present: 0x00 OOB authentication data not present
Authentication_Requirements:0x05 MITM Protection Required – General Bonding. Use IO capabilities to determine authentication procedure.
注:这是本地的Host回应远端的IO Capability request event的,表明本地Host具有的IO Capability。
Frame81:IO Capability Request Reply command--command complete
Frame82:IO Capability response event
该Event参数如下:
BD_ADDR,
IO_Capability,
OOB_Data_Present,
Authentication_Requirements
00110010 00001001 0000000000000000
BD_ADDR: 0x00e04c239980
IO Capability: DisplayYesNo
OOB Data Present: OOB authentication data not present
Authentication_Requirements:0x05 MITM Protection Required – General Bonding. Use IO capabilities to determine authentication procedure.
注:这个event由远端的Slave产生,用来回复IO Capability Request Reply command,参数也都基本一样,作用就是表明你的IO capability我已经收到了,是不是感觉有点多此一举呢??
Frame83:User Confirmation Request event
参数如下:
BD_ADDR,
Numeric_Value
00110011 00001010 10000000 10011001 00100011 01001100 11100000 00000000 10110000 10111101 00001000 00000000
BD_ADDR: 0x00e04c239980
Numeric Value: 0x0008bdb0
注:远端的slave要求一个Numeric value,本地的Host可以用User_Confirmation_Request_Reply 或者the
User_Confirmation_Request_Negative_Reply command来进行回应。
Frame84:User Confirmation Request Reply command
00101100 00000100 00000110 10000000 10011001 00100011 01001100 11100000 00000000
Bluetooth Device Address: 0x00-e0-4c-23-99-80
注:响应User Confirmation Request event,表示这个Numeric value实在正确的。
Frame85:User Confirmation Request Reply command---command complete
Frame86: Simple Pairing Complete event
00110110 00000111 00000000 10000000 10011001 00100011 01001100 11100000 00000000
BD_ADDR: 0xe04c23998000
status:0x00 success
注:表示配对成功
Frame87:Link Key Notification Event
该Event参数如下:
BD_ADDR,
Link_Key,
Key_Type
0011000 00010111 10000000 10011001 00100011 01001100 11100000 00000000 00010110 01010001 10001111 00011101 00100101 00110001 01101001 00001000 00000011 10110101 11101101 00011110 11110111 00000010 01001111 10101110 00000101
Bluetooth Device Address: 0x00-e0-4c-23-99-80
Link Key: 0xae 4f 02 f7 1e ed b5 03 08 69 31 25 1d 8f 51 16
Link Key Types: 0x05 Authenticated Combination Key
注:通知Host新的Link Key已经产生用来建立连接。
Frame89:Authentication complete event
00000110 00000011 00000000 00001001 00000000
Status: Success
Connection Handle: 9
注:表示验证的过程完成。
3.总结
主要总结了设备在Authentication过程中交换的HCI数据包和一些重要的参数,在进行完Authentication过程后将进行Encryption的一些操作,将在下一篇介绍。
- FTS抓包看蓝牙的SDP整个过程
1.概述 SDP是蓝牙的Service Discovery Protocol,用来发现远程设备能够提供的Service.它只负责发现对方支持的Service,不负责Service的具体实现. ...
- 【转】FTS抓包看蓝牙的SDP整个过程
原文网址:http://blog.sina.com.cn/s/blog_69b5d2a50101f23c.html 1.概述 SDP是蓝牙的Service Discovery Protocol,用 ...
- FTS抓包看L2CAP Connection的建立(二)
1.概述 前面一篇博文已经介绍到远端设备对本地的Connection request进行了response,目前L2CAP的连接处于pending状态.这篇将继续抓取下面的一些packets, ...
- FTS抓包看AVDTP
1.概述 测试过程为打开Audio连接,没有听音乐,人后断开Audio连接,主要目的是为了测试AVDTP的工作流程. 2.Frame分析 首先贴出抓取的关于AVDTP的包: 在L2CAP ...
- FTS抓包看L2CAP Connection的建立(一)
一.概述 在前面的文章中介绍了inquiry和ACL connection的建立过程.这个连接建立后,L2CAP signaling channel(CID = 0x0001)就已经存在,可以 ...
- 抓包分析SSL/TLS连接建立过程【总结】
1.前言 最近在倒腾SSL方面的项目,之前只是虽然对SSL了解过,但是不够深入,正好有机会,认真学习一下.开始了解SSL的是从https开始的,自从百度支持https以后,如今全站https的趋势越来 ...
- charles抓包看性能数据
1.优化某个接口或加载速度(H5加载速度慢) 抓包看Overview ①看Duration,就是接口的加载时间 ②看Latency,就是延时一端传播到另一端所花费的时间:一般和网络有关:可以综合Dur ...
- wireshark抓包看ECN
由于实验需要,要统计ECN信息.为了验证拓扑中是否真的有ECN信息,用了wireshark进行抓包查看. 网上找到的相关有用资料有:http://blog.csdn.net/u011414200/ar ...
- https确实加密了。 抓包是一个中间人攻击过程
https加密了为什么抓包还是明文 有客户已经正确部署了SSL证书,但是向我们提出了这个问题:我今天采用抓包工具进行抓包,但是我发现数据没有加密,请问是怎么回事?那采用证书加密有什么用?是不是很轻易的 ...
随机推荐
- 文件的存储读写,XML文件的存储与读写
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); s ...
- android 音频编解码1
1. Android 官方的 MediaCodec API 该 API 是在 Andorid 4.1 (API 16) 版本引入的 MediaCodec 使用的基本流程是: 1234567891011 ...
- js:数据结构笔记6--字典
Dictionary类的基础是数组不是对象:字典的主要用途是通过键取值: 基本定义: function Dictionary() { this.dataStore = new Array(); thi ...
- 模拟 POJ 1573 Robot Motion
题目地址:http://poj.org/problem?id=1573 /* 题意:给定地图和起始位置,robot(上下左右)一步一步去走,问走出地图的步数 如果是死循环,输出走进死循环之前的步数和死 ...
- LogHelper拾遗
1.被简化之前 对已LogHelper,形如: public static void WriteError(string className,string methodName,string mess ...
- BZOJ3787 : Gty的文艺妹子序列
将序列分成$\sqrt{n}$块,预处理出每两块之间的逆序对数,以及ap[i]表示前i块内数字出现次数的树状数组 预处理:$O(n\sqrt{n}\log n)$ 修改时,ap[i]可以在$O(\sq ...
- 【BZOJ】1008: [HNOI2008]越狱(快速幂)
http://www.lydsy.com/JudgeOnline/problem.php?id=1008 刚开始看不会做啊,以为是dp,但是数据太大!!!所以一定有log的算法或者O1的算法,,,,还 ...
- php 的curl 模拟登陆
做一个类似这样的web 应用. 1,解决掉验证码 其实这是正方的一个小bug,当我们进入登陆界面时,浏览器会去请求服务器,服务器会生成一个验证码图片.如果我们不去请求这个图片,那么正方后台也不会生成相 ...
- Embedded Database service fails to start after installing or migrating to Symantec Endpoint Protection (SEP) 12.1.5 (RU5)
https://support.symantec.com/en_US/article.TECH225587.html
- 针对css3特性浏览器兼容 封装less
//--------------------------------------------------- // LESS Prefixer //--------------------------- ...