gr-bluetooth/libbtbb源码分析

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mouse1598189/article/details/87721203

libbtbb

libbtbb是蓝牙基带解码库,源自GR-Bluetooth项目。 它可用于从Ubertooth设备以及GR-Bluetooth / USRP中提取蓝牙数据包信息。
https://github.com/greatscottgadgets/libbtbb

编译和安装

$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

gr-bluetooth

gr-bluetooth是GNU Radio的蓝牙基带层实现,用于实验和教授学生软件定义无线电,它不应该用于蓝牙通信,因为它不是一个完整的软件堆栈。
gr-bluetooth网站是:http://gr-bluetooth.sourceforge.net
https://github.com/greatscottgadgets/gr-bluetooth

编译和安装

$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

编译完成生成gnuradio-companion模块

在这里插入图片描述

代码分析

协议 函数
Bluetooth 3DS dissect_bt3ds
Bluetooth AVDTP dissect_bta2dp
Bluetooth AMP dissect_btamp
Bluetooth AVCTP dissect_btavctp
Bluetooth AVDTP dissect_btavdtp
Bluetooth AVRCP dissect_btavrcp
Bluetooth Attribute Protocol dissect_btatt/dissect_btgatt
Bluetooth baseband dissect_btbb
Bluetooth BNEP dissect_btbnep
Bluetooth Pseudoheader for BR/EDR Baseband dissect_btbredr / dissect_btbredr_rf
Bluetooth HCI Command dissect_btcommon_ad / dissect_btcommon_cod / dissect_btcommon_eir / dissect_btcommon_le_channel_map
Bluetooth Dial-Up Networking (DUN) profile dissect_btdun
Bluetooth Global Navigation Satellite System profile (GNSS) dissect_btgnss
Bluetooth ACL dissect_bthci_acl / dissect_bthci_*
Bluetooth HCRP dissect_bthcrp
Bluetooth Handsfree Profile (HFP) dissect_bthfp
Bluetooth HID dissect_bthid
Bluetooth Headset Profile (HSP) dissect_bthsp
Bluetooth L2CAP dissect_btl2cap
Bluetooth Low Energy dissect_btle
Bluetooth LMP dissect_btbrlmp
Bluetooth MCAP dissect_btmcap
Bluetooth mesh dissect_btmesh_msg
Bluetooth RFCOMM protocol dissect_btrfcomm
Bluetooth SAP dissect_btsap
Bluetooth SDP dissect_btsdp
Bluetooth Low Energy Security Manager dissect_btsm

继承关系 Gr-Bluetooth

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

传统蓝牙 链路层

btbb_decode
在这里插入图片描述
帧结构
在这里插入图片描述
解析header
在这里插入图片描述
解析payload
在这里插入图片描述
在这里插入图片描述

Bluetooth Low Energy 链路层

static gint dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)

解析Bluetooth Low Energy(BTLE)
在这里插入图片描述
广播报文的类型
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

--------------完--------------

猜你喜欢

转载自blog.csdn.net/mouse1598189/article/details/87721203
GR