写在前面
因项目需要,近期在在深入研究EtherCAT协议,之后会将协议做一个系统的总结,分享在这个分栏。在研究EtherCAT协议帧时,使用了一个网络数据分析工具Wireshark,本文是关于EtherCAT数据帧分析工具使用中遇到的一个小问题(Wireshark无法抓取TwinCAT的EtherCAT包)。
问题解决参考:Wireshark无法抓取EtherCAT------解决方法.
Wireshark的下载安装参考:【工具篇】01. 下载与安装 ❀ 数据包分析工具 Wireshark.
一、问题描述
测试场景: 主站使用 TwinCAT,捕获收发从站的数据帧。
- 双击EtherCAT通信以太网。

- 弹出无法初始化捕获设备的警告。

二、问题解决方法
- 出现以上问题的原因是TwinCAT项目中未给Wireshark捕获权限,打开即可,如图所示。

- 然后再次操作Wireshark,双击EtherCAT通信以太网,即可正常捕获通信帧。

在学习中......,有什么疑问,欢迎评论区讨论。