gr-bluetooth/libbtbb源码分析

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 3DSdissect_bt3ds
Bluetooth AVDTPdissect_bta2dp
Bluetooth AMPdissect_btamp
Bluetooth AVCTPdissect_btavctp
Bluetooth AVDTPdissect_btavdtp
Bluetooth AVRCPdissect_btavrcp
Bluetooth Attribute Protocoldissect_btatt/dissect_btgatt
Bluetooth basebanddissect_btbb
Bluetooth BNEPdissect_btbnep
Bluetooth Pseudoheader for BR/EDR Basebanddissect_btbredr / dissect_btbredr_rf
Bluetooth HCI Commanddissect_btcommon_ad / dissect_btcommon_cod / dissect_btcommon_eir / dissect_btcommon_le_channel_map
Bluetooth Dial-Up Networking (DUN) profiledissect_btdun
Bluetooth Global Navigation Satellite System profile (GNSS)dissect_btgnss
Bluetooth ACLdissect_bthci_acl / dissect_bthci_*
Bluetooth HCRPdissect_bthcrp
Bluetooth Handsfree Profile (HFP)dissect_bthfp
Bluetooth HIDdissect_bthid
Bluetooth Headset Profile (HSP)dissect_bthsp
Bluetooth L2CAPdissect_btl2cap
Bluetooth Low Energydissect_btle
Bluetooth LMPdissect_btbrlmp
Bluetooth MCAPdissect_btmcap
Bluetooth meshdissect_btmesh_msg
Bluetooth RFCOMM protocoldissect_btrfcomm
Bluetooth SAPdissect_btsap
Bluetooth SDPdissect_btsdp
Bluetooth Low Energy Security Managerdissect_btsm

继承关系 Gr-Bluetooth

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

传统蓝牙 链路层

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

Bluetooth Low Energy 链路层

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

在这里插入图片描述

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

sundaygeek

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值