没有合适的资源?快使用搜索试试~ 我知道了~
首页(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2
资源详情
资源评论
资源推荐
Copyright © 2018 Nordic Semiconductor ASA. All rights reserved.
Reproduction in whole or in part is prohibited without the prior written permission of the copyright holder.
nRF Sniffer
User Guide v2.2
nRF Sniffer User Guide v2.2
Page 2
1 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.
nRF Sniffer User Guide v2.2
Page 3
2 Setting up the nRF Sniffer
Set up the Sniffer for the first time by performing the following steps:
1. Except for the nRF Sniffer, install all of the software listed in Section 1.2 “Required software” on
page 2 before plugging in the hardware.
2. Connect the hardware to a USB port.
3. For Windows - Wait for the hardware drivers to be loaded before continuing. You can also click
Skip obtaining driver software from Windows Update to speed up the driver installation
process.
4. Place the hardware between the Peripheral and Central device. Now you’re ready to set up the
software.
Figure 1 System overview
nRF Sniffer User Guide v2.2
Page 4
2.1 Install nRF Sniffer
1. For Windows - Go to Help > About Wireshark.
2. Click on the Folders tab.
3. Click on the location for Extcap path.
4. Find and copy the nrf_sniffer_<version>_<hash> ZIP file to the folder associated with “Extcap
path”.
nRF Sniffer User Guide v2.2
Page 5
5. Unzip the ZIP's extcap content to the Wireshark Extcap path found in "About Wireshark” (shown
here as C:\Program Files\Wireshark\extcap).
6. For OS X and Linux - Verify that the nrf_sniffer.py file has the “x” permission. If the “x” permission
is missing, add it using
chmod +x nrf_sniffer.py.
7. For Windows - Verify that the path used for python in the nrf_sniffer.bat file correctly points to
the required version as stated in “Required software“ on page 2.
8. Close Wireshark.
2.2 Install firmware with SEGGER J-Link.
1. Locate the J-Link software.
• For Windows - Use the jlink.exe program, usually in C:\Program Files (x86)\SEGGER\.
• For OS X and Linux - Use the jlinkexe program.
2. Remove all hardware attached to the USB.
3. Plug in one of the hardware boards and wait for the drivers to install.
4. Open a command window.
5. In the command window, type jlink.exe (for Windows) or jlinkexe (for OS X and Linux) and hit
Enter to run the program.
6. Erase the contents by performing the following steps. Press Enter after each command.
a. Type erase.
b. Depending on the board you are using, type nRF51422_XXAC (for the nRF 51DK and
Dongle) or nRF52832_XXAA (for the nRF52 DK).
c. Type s to specify the SWD interface.
d. For Speed, type 1000.
e. Type loadfile then <Path to Wireshark>\extcap\nrf_sniffer_<ver-
sion>_<hash>\hex\sniffer_<board name>_<hash>.hex
f. Type r to reset the board.
g. Type g to run the board firmware.
剩余20页未读,继续阅读
wfzlry
- 粉丝: 49
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0