2

需要确定中央设备和外围设备(均运行蓝牙 5.0)是否通过更快的 LE 2M PHY 比特率进行通信。

我通过以下方式发送的命令hcitool

sudo hcitool cmd 8 30 40 0

收到的回复:

01 30 20 01

btmon输出:

@ RAW Open: hcitool (privileged) version 2.22                                     {0x0005} 3503.199467
@ RAW Close: hcitool                                                              {0x0005} 3503.199506
@ RAW Open: hcitool (privileged) version 2.22                              {0x0005} [hci0] 3503.199594
< HCI Command: LE Read PHY (0x08|0x0030) plen 2                              #11120 [hci0] 3503.200023
        Handle: 64
> HCI Event: Command Complete (0x0e) plen 4                                  #11121 [hci0] 3503.200353
      LE Read PHY (0x08|0x0030) ncmd 1
        Status: Unknown HCI Command (0x01)
@ RAW Close: hcitool                  

由于某种原因Unknown HCI Command,在通过 bleno 设置为外围设备的 RPi 4 上运行此命令时出现错误。

难道我做错了什么?在读取和设置符号率之前,我需要采取哪些初步步骤?

更多信息:

< HCI Command: Read Local Ve.. (0x04|0x0001) plen 0  #3 [hci0] 42.465863
> HCI Event: Command Complete (0x0e) plen 12         #4 [hci0] 42.466325
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Bluetooth 5.0 (0x09) - Revision 315 (0x013b)
        LMP version: Bluetooth 5.0 (0x09) - Subversion 24857 (0x6119)
        Manufacturer: Cypress Semiconductor Corporation (305)
@ RAW Close: hcitool                           {0x0003} [hci0] 42.466507
4

0 回答 0