Skip to content
Wireshark Wiki 中文翻译整理专题首页原始页面

BTL2CAP

BTL2CAP 是一种直接位于 BTHCI_ACL 之上的协议,它在两个 Bluetooth 设备上的应用程序之间提供 signalling 和 session。

协议依赖

  • BTHCI_ACL:BTL2CAP 始终承载在 ACL 之上。

一些实现在 BTL2CAP 之上的协议如下。这些协议称为“profiles”。

  • BTSDP:Bluetooth Service Discovery Protocol。

  • RFCOMM:串口 profile,PPP 和其他串口协议可以承载在其之上。

  • BNEP:用于在 Bluetooth 之上传输 Ethernet 帧的 profile。

示例流量

No. Time Source Destination Protocol Info 77 146.955458 SDP Rcvd SDP_ServiceSearchAttributeRequestFrame 77 (13 bytes on wire, 13 bytes captured)Bluetooth HCI H4 Rcvd ACL DataBluetooth HCI ACL Packet .... 0000 0010 1010 = Connection Handle: 0x002a ..01 .... .... .... = PB Flag: Continuing Fragment (1) 00.. .... .... .... = BC Flag: Point-To-Point (0) Data Total Length: 8 This is a continuation to the PDU in frame: 76Bluetooth L2CAP Packet Length: 21 CID: 0x0040 PSM: SDP (0x0001)Bluetooth SDP: SDP_ServiceSearchAttributeRequest (0x6) PDU: SDP_ServiceSearchAttributeRequest (0x06) TransactionID: 0x0001 ParameterLength: 16 ServiceSearchPattern UUID:Headset (0x1108) Headset(0x1108) MaximumAttributeByteCount: 672 AttributeIDList 0x0000 - 0xffff ContinuationState

Wireshark

BTL2CAP dissector 功能完整,并支持通过 BTHCI_ACL 层进行分片重组。

首选项设置

BTL2CAP 没有首选项设置。

示例捕获文件

  • SampleCaptures/l2ping.cap(Linux BlueZ hcidump)包含一些使用 hcidump 捕获的 Bluetooth 数据包,这些数据包来自 Linux BlueZ 协议栈附带的 l2ping 命令。

  • SampleCaptures/Bluetooth1.cap(Linux BlueZ hcidump)包含一些使用 hcidump 捕获的 Bluetooth 数据包。

显示过滤器

BTL2CAP 显示过滤器字段的完整列表可在显示过滤器参考中找到

仅显示基于 PROTO 的流量:

 btl2cap

捕获过滤器

你无法在捕获期间直接过滤 BTL2CAP 协议,因为目前还无法进行捕获。

外部链接

有关示例捕获和链接,请参阅 Bluetooth。

讨论

于 2020-08-11 23:11:39 UTC 从 https://wiki.wireshark.org/BTL2CAP 导入

相关 Wireshark Wiki 页面

网络分析技术档案