一、官方参考文档:

nRF_Sniffer_BLE_UG_v3.1.pdf

二、环境与软件要求:

1.下载安装Wireshark 3.2.2

2.下载nRF Sniffer 3.0.0

3.下载Python 3.8.2

三、使用nRF52840开发板烧录sniff固件

四、安装nRF Sniffer工具

4.1 检查安装环境是否满足

打开文件夹Sniffer_Software/extcap/,命令行输入

pip3 install -r requirements.txt

4.2安装和配置wireshark

 

在C:\Program Files\Wireshark\extcap路径下通过命令行输入

nrf_sniffer_ble.bat --extcap-interfaces

打开Wireshark软件,按F5刷新界面

五、开始抓包

六、基本的用法

6.1 监听所有的蓝牙广播信道,尽可能多的从设备上获取蓝牙消息数据包,这是默认模式。

6.2 跟踪监听某一个特定的设备,并尝试捕获发送到该设备或从该设备发出的所有无线数据包。这个模式可以捕获以下几种数据包:

  • 监听设备发出的蓝牙广播和扫描回复
  • 监听设备收到的蓝牙扫描请求和连接请求
  • 连接中两个设备之间发送的数据包

6.3选项

  • Hardware interface 抓包工具通道选择,可以同时选择多个
  • Device list 如果选择“All advertising devices”可以显示附近所有广播的设备消息,如果选择特定的某一个设备,就可以只监听这个设备的发送和接收
  • Passkey and OOB key 秘钥输入
  • Advertising hop sequence 广播调频顺序,默认顺序是37->38->39->37->38->39...,你可以自定义监听的顺序
  • RSSI filter  根据信号强度过滤 例如输入rssi >= -70

6.4 界面

6.5 抓包显示过滤

一般使用&& || == != !逻辑运算符过滤条件


6.6 添加信息显示列

6.7保存抓包文件和重新开始抓包

七、 抓包的几种场景

  • 抓附近所有设备的广播数据包
  1. Run nRF Sniffer (if not already running).
  2. Ensure that All advertising devices is selected in the device list
  • 抓某个特定的设备的数据包
  1. Run nRF Sniffer (if not already running).
  2. Select your device from the device list.
  • 抓蓝牙连接过程的数据包
  1. Run nRF Sniffer (if not already running).
  2. Select your device from the device list.
  3. Connect the Central to the Peripheral.
  • 抓已经配对的设备间的数据包
  1. Run nRF Sniffer (if not already running).
  2. Select your device from the device list.
  3. Enter the credentials for pairing. The procedure depends on the type of encryption.

• For connections that use legacy pairing with Just Works:
a. Initiate pairing between the devices if it does not happen automatically.
No further action is required.
• For connections that use legacy pairing with a passkey:
a. Initiate pairing between the devices if it does not happen automatically.
Common sniffing actions
b. Type the 6-digit passkey that is displayed on either the Central or the Peripheral device into the
Passkey / OOB key field in Wireshark.
c. Press Enter.
d. Enter the passkey into the other device.
• For connections that use legacy pairing with OOB:
a. Before the devices initiate pairing, type the OOB key in big-endian, hexadecimal format with a
leading "0x" into the Passkey / OOB key field in Wireshark.
b. Press Enter.
c. Connect the Central to the Peripheral device.
d. Initiate pairing between the devices if it does not happen automatically.
• For connections that use LE Secure Connections:
a. Enable Secure Connections debug mode on one or both of the devices.
b. Initiate pairing between the devices if it does not happen automatically.
In debug mode, the connection uses the debug keys specified in the Bluetooth Core Specification.
The Sniffer uses the same keys to decrypt the encrypted packets.

Nordic nRF52840实战学习--使用nRF52840开发板抓蓝牙数据包相关推荐

  1. Linux学习之ARM开发板连接ubuntu18.04LTS及NFS相关配置

    Linux学习之ARM开发板连接ubuntu18.04LTS及NFS相关配置 第一步:在PC机安装Ubuntu18.04LTS 具体安装步骤参见上一篇文章 第二步:安装arm-linux-gcc交叉编 ...

  2. 物联网开发笔记(53)- 使用Micropython开发ESP32开发板之蓝牙BLE通信

    一.目的 这一节我们学习如何使用我们的ESP32开发板通过蓝牙和手机进行通信. 二.环境 ESP32 + 手机(笔者用的小米10) + Thonny IDE 三.蓝牙介绍 这个知识大家自行百度吧,这里 ...

  3. ks8851网卡驱动在omap4460上的移植,发现开发板能发送数据,但是接受不到数据

    开发板是omap4460,内核我用的是3.0.80 版本的 ,网卡是ks8851,内核自带的网卡驱动,由于我移植上内核后,在命令行中ping,开发板和主机不同,于是我在主机上用抓包软件抓取数据包,发现 ...

  4. RT-ThreadBearPi 开发笔记 -- 为小熊派开发板制作 RT-Thread BSP 包

    为小熊派开发板制作 RT-Thread BSP 包 前段时间,微联智控工作室向南京厚德物联网有限公司申请了一款物联网开发平台---小熊派物联网开发套件(BearPi-IoT).关于小熊派IoT开发平台 ...

  5. 【Arduino学习】01.开发板选择和环境的搭建

    1.Arduino是一款便捷灵活.方便上手的开源电子原型平台.包含硬件(各种型号的Arduino板)和软件(Arduino IDE).由一个欧洲开发团队于2005年冬季开发. 2.做嵌入式开发有一点不 ...

  6. 【迅为推荐】适合新手学习的arm开发板-iTOP-4412开发板

    转自网站:www.topeetboard.com 免费部分视频试看地址:(PS:迅为提供高清版下载地址) [视频教程]iTOP-4412开发板之学习方法--致初学者 http://v.youku.co ...

  7. linux开发板作为蓝牙音箱,USB 蓝牙适配器在ARM 开发板下的使用

    4.可能出现的问题和解决方案: 4.1 编译dbus 时出现: 1checking for accept4... yes checking abstract socket namespace... n ...

  8. 全志D1开发板 XR829蓝牙 Can‘t get device info: No such device 自我分析及解决方案

    想用D1开发板设计一个小电脑,搭配蓝牙鼠标键盘远程控制其他设备.因此需要用到XR829的蓝牙部分,现在的问题是: # hciconfig hci0 upCan't get device info: N ...

  9. 以太网(ethernet)通信。DSP开发板28388D发送数据,电脑接收数据。使用的是UDP协议

    一.使用的开发板(DSP28388D): TMDSCNCD28388D(3核) 二.想要实现的目标: 电脑连到交换机A上,开发板连到交换机A上.电脑与开发板能够进行数据通信(暂时,先调开发板给电脑发送 ...

  10. 迅为3588开发板Linux源码包编译Buildroot

    Buildroot 是一款集成的编译集合包,解决了以前交叉编译麻烦的问题,本小节将介绍 buildroot 镜像的编译流程,分为单独编译和完整全自动编译. 首先输入以下命令,选择 buildroot ...

最新文章

  1. 一周内咸鱼疯传3.6W次,最终被所有大厂封杀
  2. Python 计算欧氏距离
  3. Error in match.names(clabs, names(xi)) : names do not match previous names
  4. 二叉搜索树的第k个结点
  5. ES6的字符串与正则表达式
  6. python去重保留唯一一个值_Python DataFrame使用drop_duplicates()函数去重(保留重复值,取重复值)...
  7. 6-4-2:STL之list——list的模拟实现
  8. 阿里云ECS服务器部署HADOOP集群(三):ZooKeeper 完全分布式集群搭建
  9. Visual Studio 2019 v16.6 和 v16.7 Preview 1 发布
  10. mysql文件扩展名查询_如何通过MySQL查询获取文件的文件扩展名?
  11. 20190814:(leetcode习题)移动零 (补)
  12. linux Rootkit检查
  13. 蒋小华老师-中高层管理专家-专职助理冰冰
  14. webview适配(一):文件选择,相机拍照,相册选择
  15. Detached InstanceError:Instance is not bound to a Session 关闭session后使用SQLAlchemy对象
  16. 百变鹏仔缤纷彩色文字广告位代码美化版
  17. 小程序码(getUnlimited,createQRCode)
  18. python kdj指标详解_python实现kdj、macd、rsi、bias、willr指标
  19. 360安全卫士添加信任区
  20. 关系图 antv G6

热门文章

  1. transCAD求解两路径问题中遇到的问题和解决方法
  2. 测试计划、用例、测试报告、缺陷报告总结
  3. 数值计算(四)——插值法(3)Hermite插值法
  4. 3d数字孪生智慧城市大数据可视化建设方案
  5. vue 电子签名插件
  6. AMOS软件简介【SPSS 050期】
  7. c语言点分十进制转化成长整形,点分十进制IP和长整型转换
  8. PS中标尺工具在哪里
  9. Tomcat 修改启动端口号
  10. 计算机d盘无法格式化,四种方法解决D盘无法格式化问题