wireshark nrf sniffer使用说明

1 篇文章 0 订阅
1 篇文章 0 订阅

1、开发环境的搭建

参考《nRF52832 Dongle 上手指南.pdf》---淘宝-信驰达模块;

如果有能力的话,应该可以从官网直接下载该固件开发;官网有定时更新的版本(当前官网已经出了3.1.0的版本)https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE/Download#infotabs

关于python的说明,建议安装3.7以上的版本(本案例用的是3.7.8)可以参考文末的链接,网上大多数文档写的还是2.7的(配套sniffer一般是2.xx)

2、打开wireshark,插上nrf sniffer,点击F5可刷新设备列表

这中间如果出现电脑上有安装annaconda或者其它python工具,安装了不同版本的话,会导致无法识别;---需要卸载其它工具(现阶段的使用方法)

3、出现nrf sniffer设备,说明正确识别了sniffer;如下图所示:

4、双击进入设备监听蓝牙设备

5、现阶段在使用中发现一旦选择停止按钮后,会导致无法再次开启(该问题,还有待研究)————暂时建议开启后不要单击停止,否则需要等待一段时间,或者重启后才能再次打开

 

6、选择要监听的从机设备(蓝牙广播的设备)

7、滚动按钮

单击后,可以停止实时滚动,也可以继续实时滚动,可以方便观察数据

8、过滤和协议解析

9、过滤说明

过滤符号:

&&
||
==等于
!=不等于
!

 

过滤指令:

btle显示所有ble数据包
!(btle.length ==0)过滤长度为0的包,即过滤掉空包
btatt只显示ATT数据包
btsmp只显示SMP配对过程数据包
btl2cap只显示l2cap层数据包,包括ATT,SMP,L2CAP层其它数据包
(frame.len == 38) || (frame.len == 60)显示数据帧长度为38或者60字节长度的数据包

自动联想:在过滤窗口输入"bt" 或者"frame."等词的头,可以自动联想出来需要过滤的条件

 

参考链接:

#windows下搭建nrf52832nordic_ble_sniffer_3.0+wireshark抓包环境

#nrf52832 nRF Sniffer Wireshark 环境搭建完成Wireshark检测不到nRF SnifferCOM问题

#Wireshark配合nRF Sniffer使用技巧 - unrulife - 博客园 (cnblogs.com)

Introduction The nRF Sniffer is a tool for debugging Bluetooth low energy (BLE) applications by detecting packets between a selected device and the device it is communicating with, even when the link is encrypted. When developing a BLE product, knowing what happens over-the-air between devices can help you isolate and solve any potential issues. By default, the Sniffer lists nearby BLE devices that are advertising, providing the Bluetooth Address and Address type, complete or shortened name, and RSSI. 1.1 Required hardware To set up the Sniffer you will need one of the following kits: • nRF51 Development Kit (PCA10028) v1.0 or later and a micro USB cable • nRF51 Dongle (PCA10031) • nRF51822 Evaluation Kit (PCA10001) and a mini USB cable • nRF51422 Evaluation Kit (PCA10003) v3.0.0 or later and a mini USB cable • nRF51822 Development Kit dongle (PCA10000) • nRF52 Development Kit (PCA10040) and a micro USB cable • nRF52840 Development Kit (PCA10056) and a micro USB cable 1.2 Required software • nRF Sniffer software v2.x or later available on the Sniffer product page under the downloads tab. This also includes the SEGGER J-Link software that is compatible. • Wireshark v2.4.6 or later available from http://www.wireshark.org/. Wireshark is a free software tool that captures wireless traffic and reproduces it in a readable format. • An operating system that runs the required version of Wireshark • Windows 7 or later • 64 bit OS X/macOS 10.6 or later • Linux (check for version compatibility) • python v2.7.x available from https://www.python.org/downloads/ • pyserial v3.4 or later available from https://github.com/pyserial/pyserial • Type “pip --version” in the terminal to verify that the pip installed with python v2.7 is used • For Windows - “C:\Python27\Scripts\pip.exe install -r requirements.txt” to install the python modules required for nRF Sniffer v2 • For OS X/mac OS/Linux - verify that the pip software being used is the pip installed with python 2.7. Then type “pip install -r requirements.txt” into the terminal 1.3 Writing conventions This user guide follows a set of typographic rules that make the document consistent and easy to read. The following writing conventions are used: • Commands are written in Lucida Console. • Pin names are written in Consolas. • File names and User Interface components are written in bold. • Internal cross-references are italicized and written in semi-bold.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值