使用 tshark 进行蓝牙流量传输

使用 tshark 进行蓝牙流量传输

我对使用 tshark 进行蓝牙通信有一个疑问。我知道我可以指定一个用于 tshark 的接口,但我不知道如何指定蓝牙接口,或者这是否可行?

我知道 wiresharks GUI 可用于查看蓝牙流量,所以我想通过终端实现相同的功能。

任何帮助都将不胜感激!

答案1

阅读(好吧,搜索)man wireshark(从SEE ALSOman tshark让我

   Wireshark can read / import the following file formats:
...
·   Linux Bluez Bluetooth stack hcidump -w traces

并向man hcidump我展示:

NAME

       hcidump - Parse HCI data

SYNOPSIS

       hcidump [-h]
       hcidump [option [option...]] [filter]

DESCRIPTION

       hcidump  reads raw HCI data coming from and going to a Bluetooth device
       (which can be specified with  the  option  -i,  default  is  the  first
       available  one)  and  prints  to  screen commands, events and data in a
       human-readable form. Optionally, the dump can  be  written  to  a  file
       rather  than  parsed,  and  the dump file can be parsed in a subsequent
       moment.

相关内容