如何解码Linux蓝牙驱动的hciconfig -a特性?

问题描述 投票:0回答:0

当我在 Ubuntu/Bluez 上运行 hciconfig -a 时,我得到以下信息,其中包含一个 8 字节的“功能”行。我如何解码这些字节?也就是what bit代表什么特征?

我特别感兴趣的是数据包长度扩展功能,我认为它由一个字节指示。

$ hciconfig -a
hci0:   Type: Primary  Bus: USB
    BD Address: EC:63:D7:F1:C7:8B  ACL MTU: 1021:5  SCO MTU: 96:6
    UP RUNNING 
    RX bytes:7667 acl:0 sco:0 events:297 errors:0
    TX bytes:5739 acl:0 sco:0 commands:123 errors:0
    Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH HOLD SNIFF 
    Link mode: PERIPHERAL ACCEPT 
    Name: 'linux'
    Class: 0x7c0104
    Service Classes: Rendering, Capturing, Object Transfer, Audio, Telephony
    Device Class: Computer, Desktop workstation
    HCI Version: 4.2 (0x8)  Revision: 0x1000
    LMP Version: 4.2 (0x8)  Subversion: 0x1000
    Manufacturer: Intel Corp. (2)
bluetooth bluetooth-lowenergy linux-device-driver bluez hci
© www.soinside.com 2019 - 2024. All rights reserved.