当前位置: 首页 > article >正文

Linux 配置wireshark 分析thread 使用nRF-Sniffer dongle

Linux 配置wireshark nRF-Sniffer-for-802.15.4
1.下载固件和配置文件
https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4
2.烧写固件

使用nRF Connect for Desktop 中的 programmer 4.3烧写
https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-desktop/download

3.配置wireshark
3.1 给wireshark开放权限
参考:https://www.cnblogs.com/potatosuper/p/14391116.html
1)Create the wireshark group.
$ sudo groupadd wireshark

2) Add your username to the wireshark group
$ sudo usermod -a -G wireshark YOUR_USER_NAME

3) Change the group ownership of file dumpcap to wireshark
$ sudo chgrp wireshark /usr/bin/dumpcap

4) Change the mode of the file dumpcap to allow execution by the group wireshark
$ sudo chmod 750 /usr/bin/dumpcap

5) Grant capabilities with setcap, man capabilities(7), setcap(8), cap_from_text(3) for more info about what are "cap_net_raw", "cap_net_admin" and "eip". Anyway, after we grant the capabilities, the dump can perform various network-related operations, use RAW and PACKET sockets; bind to any address for transparent proxying.
$ sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap


6) Verify the change
$ sudo getcap /usr/bin/dumpcap
Output should be like below:
/usr/bin/dumpcap = cap_net_admin,cap_net_raw=eip

7) At this point, you will need to log out, or reset


3.2 安装802.15.4插件
找到Global Extcap path的位置:/usr/lib/x86_64-linux-gnu/wireshark/extcap

从1中下载文件中,拷贝nrf802154_sniffer.py 到/usr/lib/x86_64-linux-gnu/wireshark/extcap,确认nrf802154_sniffer.py的写权限

lsusb查看usb dongle的ID:1915,154a

查看nrf802154_sniffer.py文件
确认python3

确认1915,154a

重启wireshark,之后可以从Plugins中发现:

已经出现nRF Sniffer

双击nRF Sniffer配置channel

从哪找?thread设备命令行channel

Edit/Preference/Protocols

Decryption Keys Edit

从哪种?thread命令行networkkey

已经可以解析 802.15.4,6Lowpan和Coap


http://www.kler.cn/news/284288.html

相关文章:

  • kafak推送消息。
  • jenkins安装k8s插件发布服务
  • 项目中Redis常见的一些问题(缓存穿透,缓存雪崩,内存耗尽等)
  • Elasticsearch - SpringBoot 查询 es 相关示例
  • Linux Debian12安装flameshot火焰截图工具
  • 线段树维护更多类型的信息
  • c++ 分布式服务器 1
  • Linux | 进程池技术解析:利用无名管道实现并发任务处理(含实现代码)
  • NTP时间服务器是什么?功能是什么?京准电钟
  • 今日(2024年8月30日)科技新闻(本周)
  • Git之2.5版本重要特性及用法实例(五十七)
  • 《机器学习》【项目】 爬虫爬取数据、数据分词、贝叶斯算法、判断分类 <完整实战详解> (全篇完结)
  • ajax学习笔记
  • 认知杂谈42
  • 【系统】Linux系统下载 ubuntu/deepin/deepin
  • JAVA毕业设计166—基于Java+Springboot+vue3的流浪宠物救助管理小程序(源代码+数据库)
  • golang学习笔记——channel使用场景
  • 【云原生】Kubernetes中如何通过Pod名称查询Docker容器ID,通过Docker容器ID查询Pod名称?
  • Kafka队列:分布式系统的消息引擎
  • 【方案合集】园区数据治理解决方案(PPT原件)
  • RK3588 系列之2—通过PC网络共享,连接开发板
  • 8款对比分析:哪款协同办公软件最适合您的团队?
  • 算法题常用的STL(Java与C++)(90%)
  • ArcEngine二次开发实用函数18:使用shp矢量对栅格文件进行掩模和GP授权获取
  • CSS线性渐变拼接,一个完整的渐变容器(div),要拆分成多个渐变容器(div),并且保持渐变效果一致
  • YeAudio音频工具的介绍和使用
  • 【系统架构设计师】论文:论需求分析方法及应用
  • TCP/IP五层模型
  • 算法学习:一维数组的排序算法
  • 深入解析 Spring Boot 中 MyBatis 自动配置的流程