add support for Bluetooth on MT7622 SoC
Subsystems (8)
[email protected]
maintainerv2 cover add support for Bluetooth on MT7622 SoC
From: Sean Wang <[email protected]>
v2 and changes since v1
- Dropped patches already being applied
- Rewirte the whole driver using btuart [1], and add slight extension of btuart to fit into btmtkuart driver. Beware that [1] is also pulled into one part of the series for avoiding any breakage when the patchset is being compiled.
[1] btuart
https://www.spinics.net/lists/linux-bluetooth/msg74918.html
v1:
Hi,
This patchset introduces built-in Bluetooth support on MT7622 SoC. And, it should be simple to make an extension to support other MediaTek SoCs with adjusting a few of changes on the initialization sequence of the device.
Before the main driver is being introduced, a few of things about power-domain management should be re-worked for serdev core and MediaTek SCPSYS to allow the Bluetooth to properly power up.
Patch 2: add a generic way attaching power domain to serdev Patch 3 and 4: add cleanups with reuse APIs from Linux core Patch 5: fix a limitation about power enablement Bluetooth depends on Patch 1, 6 and 7: the major part of adding Bluetooth support to MT7622
Sean
Marcel Holtmann (1):
Bluetooth: Add new serdev based driver for UART attached controllers
Sean Wang (6):
dt-bindings: net: bluetooth: Add mediatek-bluetooth
serdev: add dev_pm_domain_attach|detach()
Bluetooth: Add new quirk for non-persistent setup settings
Bluetooth: Extend btuart driver for join more vendor devices
Bluetooth: mediatek: Add protocol support for MediaTek serial devices
MAINTAINERS: add an entry for MediaTek Bluetooth driver
.../devicetree/bindings/net/mediatek-bluetooth.txt | 35 ++ MAINTAINERS | 8 + drivers/bluetooth/Kconfig | 23 + drivers/bluetooth/Makefile | 3 + drivers/bluetooth/btmtkuart.c | 383 +++++++++++++++ drivers/bluetooth/btmtkuart.h | 119 +++++ drivers/bluetooth/btuart.c | 527 +++++++++++++++++++++ drivers/bluetooth/btuart.h | 30 ++ drivers/tty/serdev/core.c | 14 +- include/net/bluetooth/hci.h | 9 + net/bluetooth/hci_core.c | 3 +- 11 files changed, 1152 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/mediatek-bluetooth.txt create mode 100644 drivers/bluetooth/btmtkuart.c create mode 100644 drivers/bluetooth/btmtkuart.h create mode 100644 drivers/bluetooth/btuart.c create mode 100644 drivers/bluetooth/btuart.h
Signature · 1 line
2.7.4
[email protected]
maintainerPATCH v2 1/7 dt-bindings: net: bluetooth: Add mediatek-bluetooth
From: Sean Wang <[email protected]>
Add binding document for a SoC built-in device using MediaTek protocol. Which could be found on MT7622 SoC or other similar MediaTek SoCs.
--- .../devicetree/bindings/net/mediatek-bluetooth.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mediatek-bluetooth.txt
Documentation/devicetree/bindings/net/mediatek-bluetooth.txt new file +35 -0
@@ -0,0 +1,35 @@ +MediaTek SoC built-in Bluetooth Devices +================================== + +This device is a serial attached device to BTIF device and thus it must be a +child node of the serial node with BTIF. The dt-bindings details for BTIF +device can be known via Documentation/devicetree/bindings/serial/8250.txt. + +Required properties: + +- compatible: Must be one of + "mediatek,mt7622-bluetooth"": for MT7622 SoC +- clocks: Should be the clock specifiers corresponding to the entry in + clock-names property. +- clock-names: Should contain "ref" entries. +- power-domains: Phandle to the power domain that the device is part of + +Example: + + btif: serial at 1100c000 { + compatible = "mediatek,mt7622-btif", + "mediatek,mtk-btif"; + reg = <0 0x1100c000 0 0x1000>; + interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>; + clocks = <&pericfg CLK_PERI_BTIF_PD>; + clock-names = "main"; + reg-shift = <2>; + reg-io-width = <4>; + + bluetooth { + compatible = "mediatek,mt7622-bluetooth"; + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; + clocks = <&clk25m>; + clock-names = "ref"; + }; + };
Signature · 1 line
2.7.4
[email protected]
maintainerPATCH v2 2/7 serdev: add dev_pm_domain_attach|detach()
In reply to [email protected]From: Sean Wang <[email protected]>
In order to open up the required power gate before any operation can be effectively performed over the serial bus between CPU and serdev, it's clearly essential to add common attach functions for PM domains to serdev at the probe phase.
Similarly, the relevant dettach function for the PM domains should be properly and reversely added at the remove phase.
--- drivers/tty/serdev/core.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/tty/serdev/core.c +13 -1
@@ -13,6 +13,7 @@#include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> +#include <linux/pm_domain.h> #include <linux/serdev.h> #include <linux/slab.h>
@@ -330,8 +331,16 @@ EXPORT_SYMBOL_GPL(serdev_device_set_tiocm);static int serdev_drv_probe (struct device *dev) {const struct serdev_device_driver *sdrv =to_serdev_device_driver (dev->driver); +int ret; + + ret =dev_pm_domain_attach (dev, true); +if (ret != -EPROBE_DEFER ) { + ret = sdrv->probe (to_serdev_device (dev)); +if (ret) +dev_pm_domain_detach (dev, true); + } -return sdrv->probe (to_serdev_device (dev)); +return ret; }static int serdev_drv_remove (struct device *dev)
@@ -339,6 +348,9 @@ static int serdev_drv_remove(struct device *dev)const struct serdev_device_driver *sdrv =to_serdev_device_driver (dev->driver);if (sdrv->remove) sdrv->remove (to_serdev_device (dev)); + +dev_pm_domain_detach (dev, true); +return 0 ; }
Signature · 1 line
2.7.4
[email protected]
maintainerPATCH v2 3/7 Bluetooth: Add new serdev based driver for UART attached controllers
In reply to [email protected]From: Marcel Holtmann <[email protected]>
This is a from scratch written driver to run H:4 on serdev based system with a Bluetooth controller attached via an UART. It is currently tested on RPi3 and it has Broadcom integration. It is DT only and is missing GPIO and runtime power management integration. Also Apple or ACPI support is currently not added.
To integrate with controllers from Intel and Qualcomm, similar handling like with btusb.c has to be done. A simple abstraction for that has been provided to make it similar to hci_uart.
The goal is to run individual drivers on serdev capable systems so that we can retire hci_uart on these system and continue with a lot simpler and easier to maintain driver. It seems that hci_uart has too many race conditions due to handling TTY and line disciplines. And fixes for that are not really related to serdev based drivers. In a serdev only world it makes sense to remove any of the complex code.
--- drivers/bluetooth/Kconfig | 11 + drivers/bluetooth/Makefile | 1 + drivers/bluetooth/btuart.c | 506 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 518 insertions(+) create mode 100644 drivers/bluetooth/btuart.c
drivers/bluetooth/Kconfig +11 -0
@@ -74,6 +74,17 @@ config BT_HCIBTSDIO Say Y here to compile support for Bluetooth SDIO devices into the kernel or say M to compile it as module (btsdio). +config BT_HCIBTUART + tristate "HCI UART driver" + depends on SERIAL_DEV_BUS + help + Bluetooth HCI UART driver. + This driver is required if you want to use Bluetooth device with + UART interface. + + Say Y here to compile support for Bluetooth UART devices into the + kernel or say M to compile it as module (btuart). + config BT_HCIUART tristate "HCI UART driver" depends on SERIAL_DEV_BUS || !SERIAL_DEV_BUS
drivers/bluetooth/Makefile +1 -0
@@ -14,6 +14,7 @@ obj-$(CONFIG_BT_HCIBLUECARD) += bluecard_cs.o obj-$(CONFIG_BT_HCIBTUSB) += btusb.o obj-$(CONFIG_BT_HCIBTSDIO) += btsdio.o +obj-$(CONFIG_BT_HCIBTUART) += btuart.o obj-$(CONFIG_BT_INTEL) += btintel.o obj-$(CONFIG_BT_ATH3K) += ath3k.o
drivers/bluetooth/btuart.c new file +506 -0
506 lines not on this page · raw message
Signature · 1 line
2.7.4
[email protected]
maintainerPATCH v2 4/7 Bluetooth: Add new quirk for non-persistent setup settings
In reply to [email protected]From: Sean Wang <[email protected]>
Add a new quirk HCI_QUIRK_NON_PERSISTENT_SETUP allowing that a quirk that runs setup() after every open() and not just after the first open().
--- include/net/bluetooth/hci.h | 9 +++++++++ net/bluetooth/hci_core.c | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-)
include/net/bluetooth/hci.h +9 -0
@@ -183,6 +183,15 @@ enum {* during the hdev->setup vendor callback. */ HCI_QUIRK_NON_PERSISTENT_DIAG , + +/* When this quirk is set, setup() would be run after every +* open() and not just after the first open(). +* +* This quirk can be set before hci_register_dev is called or +* during the hdev->setup vendor callback. +* +*/ + HCI_QUIRK_NON_PERSISTENT_SETUP, };/* HCI device flags */
net/bluetooth/hci_core.c +2 -1
@@ -1377,7 +1377,8 @@ static int hci_dev_do_open(struct hci_dev *hdev)atomic_set (&hdev->cmd_cnt,1 );set_bit (HCI_INIT , &hdev->flags); -if (hci_dev_test_flag (hdev,HCI_SETUP )) { +if (hci_dev_test_flag (hdev,HCI_SETUP ) || +test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks)) {hci_sock_dev_event (hdev,HCI_DEV_SETUP );if (hdev->setup)
Signature · 1 line
2.7.4
Marcel Holtmann
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Hi Sean,
Quoted 34 lines
Add a new quirk
HCI_QUIRK_NON_PERSISTENT_SETUPallowing that a quirk that runssetup()after everyopen()and not just after the firstopen().Signed-off-by Sean Wang <[email protected]>---
include/net/bluetooth/hci.h| 9 +++++++++net/bluetooth/hci_core.c| 3 ++-2 files changed, 11 insertions(+), 1 deletion(-)include/net/bluetooth/hci.h +9
-0@@ -183,6 +183,15 @@ enum {* during the hdev->setup vendor callback. */ HCI_QUIRK_NON_PERSISTENT_DIAG , + +/* When this quirk is set, setup() would be run after every +* open() and not just after the first open(). +* +* This quirk can be set before hci_register_dev is called or +* during the hdev->setup vendor callback. +* +*/ + HCI_QUIRK_NON_PERSISTENT_SETUP, };/* HCI device flags */ net/bluetooth/hci_core.c +0
-0
net/bluetooth/hci_core.c static int hci_dev_do_open(struct hci_dev *hdev) · line 1382
Quoted 7 lines
net/bluetooth/hci_core.c +2
-1@@ -1377,7 +1377,8 @@ static int hci_dev_do_open(struct hci_dev *hdev)atomic_set (&hdev->cmd_cnt,1 );set_bit (HCI_INIT , &hdev->flags); -if (hci_dev_test_flag (hdev,HCI_SETUP )) { +if (hci_dev_test_flag (hdev,HCI_SETUP ) || +test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks)) {hci_sock_dev_event (hdev,HCI_DEV_SETUP );
I am not 100% sure that we want to send the HCI_DEV_SETUP event also multiple times. That is a userspace change that I would need to think about. We need to check create_monitor_event() and see what the btmon trace for this looks like. Can you send me a btmon -w trace.log when this change is active.
Regards
Marcel
Sean Wang
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Quoted 2 lines · Marcel Holtmann
Hi Sean,
[ ... ]
Quoted 11 lines
Quoted 4 lines
net/bluetooth/hci_core.c +2
-1-if (hci_dev_test_flag (hdev,HCI_SETUP )) { +if (hci_dev_test_flag (hdev,HCI_SETUP ) || +test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks)) {hci_sock_dev_event(hdev, HCI_DEV_SETUP);I am not 100% sure that we want to send the
HCI_DEV_SETUPevent also multiple times. That is a userspace change that I would need to think about. We need to checkcreate_monitor_event()and see what the btmon trace for this looks like. Can you send me a btmon -w trace.log when this change is active.Regards
Marcel
Sure, I'll send you the trace.log with the change is active.
Sean
Sean Wang
maintainer[SPAM]Re: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Quoted 13 lines · Sean Wang
Quoted 2 lines · Marcel Holtmann
Hi Sean,
[ ... ]
Quoted 7 lines
Quoted 4 lines
net/bluetooth/hci_core.c +2
-1-if (hci_dev_test_flag (hdev,HCI_SETUP )) { +if (hci_dev_test_flag (hdev,HCI_SETUP ) || +test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks)) {hci_sock_dev_event(hdev, HCI_DEV_SETUP);I am not 100% sure that we want to send the
HCI_DEV_SETUPevent also multiple times. That is a userspace change that I would need to think about. We need to checkcreate_monitor_event()and see what the btmon trace for this looks like. Can you send me a btmon -w trace.log when this change is active.
Quoted 9 lines
Quoted 4 lines
Regards
Marcel
Sure, I'll send you the trace.log with the change is active.
Sean
Hi, Marcel
Attached trace.log was captured when I inputted commands power on and then off in bluetoothctl.
Sean
Quoted 5 lines
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trace.log
Type: text/x-log
Size: 6573 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180523/db18fea4/attachment.bin>
Marcel Holtmann
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Hi Sean,
Quoted 15 lines
Quoted 15 lines
[ ... ]
Quoted 11 lines
Quoted 4 lines
net/bluetooth/hci_core.c +2
-1-if (hci_dev_test_flag (hdev,HCI_SETUP )) { +if (hci_dev_test_flag (hdev,HCI_SETUP ) || +test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks)) {hci_sock_dev_event(hdev, HCI_DEV_SETUP);I am not 100% sure that we want to send the
HCI_DEV_SETUPevent also multiple times. That is a userspace change that I would need to think about. We need to checkcreate_monitor_event()and see what the btmon trace for this looks like. Can you send me a btmon -w trace.log when this change is active.Regards
Marcel
Quoted 8 lines
Quoted 4 lines
Sure, I'll send you the trace.log with the change is active.
Sean
Attached trace.log was captured when I inputted commands power on and then off in bluetoothctl.
the trace.log is somehow mangled. Something is not fully correct. Can you read it with btmon -r trace.log?
Regards
Marcel
Sean Wang
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Quoted 23 lines · Marcel Holtmann
Hi Sean,
Quoted 21 lines
Quoted 19 lines
[ ... ]
Quoted 11 lines
Quoted 4 lines
net/bluetooth/hci_core.c +2
-1-if (hci_dev_test_flag (hdev,HCI_SETUP )) { +if (hci_dev_test_flag (hdev,HCI_SETUP ) || +test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks)) {hci_sock_dev_event(hdev, HCI_DEV_SETUP);I am not 100% sure that we want to send the
HCI_DEV_SETUPevent also multiple times. That is a userspace change that I would need to think about. We need to checkcreate_monitor_event()and see what the btmon trace for this looks like. Can you send me a btmon -w trace.log when this change is active.Regards
Marcel
Sure, I'll send you the trace.log with the change is active.
Sean
Quoted 9 lines
Quoted 2 lines
Attached trace.log was captured when I inputted commands power on and then off in bluetoothctl.
the trace.log is somehow mangled. Something is not fully correct. Can you read it with btmon -r trace.log?
Regards
Marcel
Yes, I can read it with btmon -r trace.log.
I post it as plain text as below
Bluetooth monitor ver 5.37
= Note: Linux version 4.16.0-rc1+ (aarch64) 0.641494
= Note: Bluetooth subsystem version 2.22 0.641502
= New Index: 00:00:46:76:22:01 (BR/EDR,UART,hci0) [hci0] 0.641505
* Unknown packet (code 14 len 30) 0.641509
01 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 6c ..............bl
75 65 74 6f 6f 74 68 64 00 00 00 00 00 00 uetoothd......
* Unknown packet (code 14 len 30) 0.641592
02 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 74 ..............bt
6d 6f 6e 00 00 00 00 00 00 00 00 00 00 00 mon...........
* Unknown packet (code 16 len 7) [hci0] 6.536771
01 00 00 00 05 00 01 .......
= Open Index: 00:00:46:76:22:01 [hci0] 6.717019
= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 6.717030
> HCI Event: Unknown (0xe4) plen 5 [hci0] 6.741093
02 01 01 00 00 ..... Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.742088
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.743102
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.744105
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.745109
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.746104
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.747097
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.748090
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.749078
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.750070
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.751061
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.752054
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.753046
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.754038
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.755031
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.756025
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.757013
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.758006
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.758999
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.759991
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.760983
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.761975
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.762963
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.763956
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.764948
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.765941
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.766933
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.767926
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.768919
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.769914
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.770909
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.771908
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.772904
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.773898
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.774892
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.775890
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.776882
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.777877
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.778871
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.779869
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.780864
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.781858
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.782852
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.783850
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.784845
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.785839
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.786833
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.787831
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.788826
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.789820
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.790814
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.791813
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.792809
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.793803
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.794798
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.795797
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.796791
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.797786
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.798779
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.799778
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.800774
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.801769
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.802763
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.803761
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.804755
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.805749
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.806743
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.807741
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.808737
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.809731
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.810725
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.811725
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.812719
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.813714
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.814708
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.815705
02 01 01 00 00 .....
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.816378
02 01 01 00 00 .....
< HCI Command: Vendor (0x3f|0x006f) plen 5 [hci0] 6.816413
01 07 01 00 04 ..... Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.816536
02 07 01 00 00 .....
< HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 8.845071
01 06 02 00 00 01 ...... Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 8.923456
02 06 01 00 00 .....
< HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 10.861118
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.865763
Reset (0x03|0x0003) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Supported Fe.. (0x04|0x0003) plen 0 [hci0] 10.865805
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.865965
Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features: 0xbf 0x3e 0x8d 0xfe 0xdb 0xff 0x7b 0x87
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Sniff mode
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
CVSD synchronous data
Power control
Transparent synchronous data
Broadcast Encryption
Enhanced Data Rate ACL 2 Mbps mode
Enhanced Data Rate ACL 3 Mbps mode
Enhanced inquiry scan
Interlaced inquiry scan
Interlaced page scan
RSSI with inquiry results
Extended SCO link (EV3 packets)
EV4 packets
EV5 packets
AFH capable slave
AFH classification slave
LE Supported (Controller)
3-slot Enhanced Data Rate ACL packets
5-slot Enhanced Data Rate ACL packets
Sniff subrating
Pause encryption
AFH capable master
AFH classification master
Enhanced Data Rate eSCO 2 Mbps mode
Enhanced Data Rate eSCO 3 Mbps mode
3-slot Enhanced Data Rate eSCO packets
Extended Inquiry Response
Simultaneous LE and BR/EDR (Controller)
Secure Simple Pairing
Encapsulated PDU
Erroneous Data Reporting
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Enhanced Power Control
Extended features
< HCI Command: Read Local Version Info.. (0x04|0x0001) plen 0 [hci0] 10.865987
Quoted 1 line
HCI Event: Vendor (
0xff) plen 9 [hci0] 10.866259
29 19 09 17 20 48 07 11 00 )... H...
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.866372
Read Local Version Information (0x04|0x0001) ncmd 1
Status: Success (0x00)
HCI version: Bluetooth 4.2 (0x08) - Revision 4359 (0x1107)
LMP version: Bluetooth 4.2 (0x08) - Subversion 2329 (0x0919)
Manufacturer: MediaTek, Inc. (70)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 10.866391
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 10.866539
Read BD ADDR (0x04|0x0009) ncmd 1
Status: Success (0x00)
Address: 00:00:46:76:22:01 (OLIVETTI NORTH AMERICA)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 10.866609
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 10.866754
Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 1021 ACL max packet: 8
SCO MTU: 184 SCO max packet: 1
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 10.866775
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.866920
Read Class of Device (0x03|0x0023) ncmd 1
Status: Success (0x00)
Class: 0x001f00
Major class: Uncategorized, specific device code not specified
Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 10.866939
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 10.867256
Read Local Name (0x03|0x0014) ncmd 1
Status: Success (0x00)
Name: MTK MT7622 #1< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 10.867308
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 10.867447
Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting: 0x0060
Input Coding: Linear
Input Data Format: 2's complement
Input Sample Size: 16-bit
# of bits padding at MSB: 0
Air Coding Format: CVSD
< HCI Command: Read Number of Supporte.. (0x03|0x0038) plen 0 [hci0] 10.867474
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.867611
Read Number of Supported IAC (0x03|0x0038) ncmd 1
Status: Success (0x00)
Number of IAC: 4< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 [hci0] 10.867678
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.867865
Read Current IAC LAP (0x03|0x0039) ncmd 1
Status: Success (0x00)
Number of IAC: 1
Access code: 0x9e8b33 (General Inquiry)
< HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 10.867890
Type: Clear All Filters (0x00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868033
Set Event Filter (0x03|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: Write Connection Accept.. (0x03|0x0016) plen 2 [hci0] 10.868054
Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868235
Write Connection Accept Timeout (0x03|0x0016) ncmd 1
Status: Success (0x00)< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0 [hci0] 10.868262
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.868392
LE Read Buffer Size (0x08|0x0002) ncmd 1
Status: Success (0x00)
Data packet length: 251
Num data packets: 8
< HCI Command: LE Read Local Supported.. (0x08|0x0003) plen 0 [hci0] 10.868413
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868587
LE Read Local Supported Features (0x08|0x0003) ncmd 1
Status: Success (0x00)
Features: 0xfd 0x00 0x00 0x00 0x00 0x00 0x00 0x00
LE Encryption
Extended Reject Indication Slave-initiated Features Exchange
LE Ping
LE Data Packet Length Extension
LL Privacy
Extended Scanner Filter Policies
< HCI Command: LE Read Supported States (0x08|0x001c) plen 0 [hci0] 10.868646
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868787
LE Read Supported States (0x08|0x001c) ncmd 1
Status: Success (0x00)
States: 0x000000001fffffff
Non-connectable Advertising State
Scannable Advertising State
Connectable Advertising State
High Duty Cycle Directed Advertising State
Passive Scanning State
Active Scanning State
Initiating State
and Connection State (Master Role)
Connection State (Slave Role)
Non-connectable Advertising State
and Passive Scanning State
Scannable Advertising State
and Passive Scanning State
Connectable Advertising State
and Passive Scanning State
High Duty Cycle Directed Advertising State
and Passive Scanning State
Non-connectable Advertising State
and Active Scanning State
Scannable Advertising State
and Active Scanning State
Connectable Advertising State
and Active Scanning State
High Duty Cycle Directed Advertising State
and Active Scanning State
Non-connectable Advertising State
and Initiating State
Scannable Advertising State
and Initiating State
Non-connectable Advertising State
and Connection State (Master Role)
Scannable Advertising State
and Connection State (Master Role)
Non-connectable Advertising State
and Connection State (Slave Role)
Scannable Advertising State
and Connection State (Slave Role)
Passive Scanning State
and Initiating State
Active Scanning State
and Initiating State
Passive Scanning State
and Connection State (Master Role)
Active Scanning State
and Connection State (Master Role)
Passive Scanning State
and Connection State (Slave Role)
Active Scanning State
and Connection State (Slave Role)
Initiating State
and Connection State (Master Role)
and Master Role & Master Role
< HCI Command: Read Local Supported Co.. (0x04|0x0002) plen 0 [hci0] 10.868807
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 68 [hci0] 10.868985
Read Local Supported Commands (0x04|0x0002) ncmd 1
Status: Success (0x00)
Commands: 176 entries
Inquiry (Octet 0 - Bit 0)
Inquiry Cancel (Octet 0 - Bit 1)
Periodic Inquiry Mode (Octet 0 - Bit 2)
Exit Periodic Inquiry Mode (Octet 0 - Bit 3)
Create Connection (Octet 0 - Bit 4)
Disconnect (Octet 0 - Bit 5)
Add SCO Connection (Octet 0 - Bit 6)
Create Connection Cancel (Octet 0 - Bit 7)
Accept Connection Request (Octet 1 - Bit 0)
Reject Connection Request (Octet 1 - Bit 1)
Link Key Request Reply (Octet 1 - Bit 2)
Link Key Request Negative Reply (Octet 1 - Bit 3)
PIN Code Request Reply (Octet 1 - Bit 4)
PIN Code Request Negative Reply (Octet 1 - Bit 5)
Change Connection Packet Type (Octet 1 - Bit 6) Authentication Requested (Octet 1 - Bit 7)
Set Connection Encryption (Octet 2 - Bit 0)
Change Connection Link Key (Octet 2 - Bit 1)
Master Link Key (Octet 2 - Bit 2)
Remote Name Request (Octet 2 - Bit 3)
Remote Name Request Cancel (Octet 2 - Bit 4)
Read Remote Supported Features (Octet 2 - Bit 5)
Read Remote Extended Features (Octet 2 - Bit 6)
Read Remote Version Information (Octet 2 - Bit 7)
Read Clock Offset (Octet 3 - Bit 0)
Read LMP Handle (Octet 3 - Bit 1)
Sniff Mode (Octet 4 - Bit 2)
Exit Sniff Mode (Octet 4 - Bit 3)
QoS Setup (Octet 4 - Bit 6)
Role Discovery (Octet 4 - Bit 7)
Switch Role (Octet 5 - Bit 0)
Read Link Policy Settings (Octet 5 - Bit 1)
Write Link Policy Settings (Octet 5 - Bit 2)
Read Default Link Policy Settings (Octet 5 - Bit 3) Write Default Link Policy Settings (Octet 5 - Bit 4) Flow Specification (Octet 5 - Bit 5)
Set Event Mask (Octet 5 - Bit 6)
Reset (Octet 5 - Bit 7)
Set Event Filter (Octet 6 - Bit 0)
Flush (Octet 6 - Bit 1)
Read PIN Type (Octet 6 - Bit 2)
Write PIN Type (Octet 6 - Bit 3)
Create New Unit Key (Octet 6 - Bit 4)
Read Stored Link Key (Octet 6 - Bit 5)
Write Stored Link Key (Octet 6 - Bit 6)
Delete Stored Link Key (Octet 6 - Bit 7)
Write Local Name (Octet 7 - Bit 0)
Read Local Name (Octet 7 - Bit 1)
Read Connection Accept Timeout (Octet 7 - Bit 2)
Write Connection Accept Timeout (Octet 7 - Bit 3)
Read Page Timeout (Octet 7 - Bit 4)
Write Page Timeout (Octet 7 - Bit 5)
Read Scan Enable (Octet 7 - Bit 6)
Write Scan Enable (Octet 7 - Bit 7)
Read Page Scan Activity (Octet 8 - Bit 0)
Write Page Scan Activity (Octet 8 - Bit 1)
Read Inquiry Scan Activity (Octet 8 - Bit 2)
Write Inquiry Scan Activity (Octet 8 - Bit 3)
Read Authentication Enable (Octet 8 - Bit 4)
Write Authentication Enable (Octet 8 - Bit 5)
Read Encryption Mode (Octet 8 - Bit 6)
Write Encryption Mode (Octet 8 - Bit 7)
Read Class of Device (Octet 9 - Bit 0)
Write Class of Device (Octet 9 - Bit 1)
Read Voice Setting (Octet 9 - Bit 2)
Write Voice Setting (Octet 9 - Bit 3)
Read Automatic Flush Timeout (Octet 9 - Bit 4)
Write Automatic Flush Timeout (Octet 9 - Bit 5)
Read Num Broadcast Retransmissions (Octet 9 - Bit 6) Write Num Broadcast Retransmissions (Octet 9 - Bit 7) Read Transmit Power Level (Octet 10 - Bit 2)
Read Sync Flow Control Enable (Octet 10 - Bit 3)
Write Sync Flow Control Enable (Octet 10 - Bit 4)
Set Controller To Host Flow Control (Octet 10 - Bit 5) Host Buffer Size (Octet 10 - Bit 6)
Host Number of Completed Packets (Octet 10 - Bit 7)
Read Link Supervision Timeout (Octet 11 - Bit 0)
Write Link Supervision Timeout (Octet 11 - Bit 1)
Read Number of Supported IAC (Octet 11 - Bit 2)
Read Current IAC LAP (Octet 11 - Bit 3)
Write Current IAC LAP (Octet 11 - Bit 4)
Read Page Scan Mode (Octet 11 - Bit 7)
Write Page Scan Mode (Octet 12 - Bit 0)
Set AFH Host Channel Classification (Octet 12 - Bit 1) Read Inquiry Scan Type (Octet 12 - Bit 4)
Write Inquiry Scan Type (Octet 12 - Bit 5)
Read Inquiry Mode (Octet 12 - Bit 6)
Write Inquiry Mode (Octet 12 - Bit 7)
Read Page Scan Type (Octet 13 - Bit 0)
Write Page Scan Type (Octet 13 - Bit 1)
Read AFH Channel Assessment Mode (Octet 13 - Bit 2) Write AFH Channel Assessment Mode (Octet 13 - Bit 3) Read Local Version Information (Octet 14 - Bit 3)
Read Local Supported Features (Octet 14 - Bit 5)
Read Local Extended Features (Octet 14 - Bit 6)
Read Buffer Size (Octet 14 - Bit 7)
Read Country Code (Octet 15 - Bit 0)
Read BD ADDR (Octet 15 - Bit 1)
Read Failed Contact Counter (Octet 15 - Bit 2)
Reset Failed Contact Counter (Octet 15 - Bit 3)
Read Link Quality (Octet 15 - Bit 4)
Read RSSI (Octet 15 - Bit 5)
Read AFH Channel Map (Octet 15 - Bit 6)
Read Clock (Octet 15 - Bit 7)
Read Loopback Mode (Octet 16 - Bit 0)
Write Loopback Mode (Octet 16 - Bit 1)
Enable Device Under Test Mode (Octet 16 - Bit 2)
Setup Synchronous Connection (Octet 16 - Bit 3)
Accept Synchronous Connection Request (Octet 16 - Bit 4) Reject Synchronous Connection Request (Octet 16 - Bit 5) Read Extended Inquiry Response (Octet 17 - Bit 0)
Write Extended Inquiry Response (Octet 17 - Bit 1) Refresh Encryption Key (Octet 17 - Bit 2)
Sniff Subrating (Octet 17 - Bit 4)
Read Simple Pairing Mode (Octet 17 - Bit 5)
Write Simple Pairing Mode (Octet 17 - Bit 6)
Read Local OOB Data (Octet 17 - Bit 7)
Read Inquiry Response TX Power Level (Octet 18 - Bit 0) Write Inquiry Transmit Power Level (Octet 18 - Bit 1) Read Default Erroneous Data Reporting (Octet 18 - Bit 2) Write Default Erroneous Data Reporting (Octet 18 - Bit 3) IO Capability Request Reply (Octet 18 - Bit 7)
User Confirmation Request Reply (Octet 19 - Bit 0)
User Confirmation Request Neg Reply (Octet 19 - Bit 1) User Passkey Request Reply (Octet 19 - Bit 2)
User Passkey Request Negative Reply (Octet 19 - Bit 3) Remote OOB Data Request Reply (Octet 19 - Bit 4)
Write Simple Pairing Debug Mode (Octet 19 - Bit 5) Enhanced Flush (Octet 19 - Bit 6)
Remote OOB Data Request Neg Reply (Octet 19 - Bit 7) Send Keypress Notification (Octet 20 - Bit 2)
IO Capability Request Negative Reply (Octet 20 - Bit 3) Read Encryption Key Size (Octet 20 - Bit 4)
Set Event Mask Page 2 (Octet 22 - Bit 2)
Read Enhanced Transmit Power Level (Octet 24 - Bit 0) Enhanced Setup Synchronous Connection (Octet 29 - Bit 3) Enhanced Accept Synchronous Connection Request (Octet 29 - Bit 4) Read Local Supported Codecs (Octet 29 - Bit 5)
Set Triggered Clock Capture (Octet 30 - Bit 5)
Truncated Page (Octet 30 - Bit 6)
Truncated Page Cancel (Octet 30 - Bit 7)
Set Connectionless Slave Broadcast (Octet 31 - Bit 0) Start Synchronization Train (Octet 31 - Bit 2)
Set Reserved LT_ADDR (Octet 31 - Bit 4)
Delete Reserved LT_ADDR (Octet 31 - Bit 5)
Set Connectionless Slave Broadcast Data (Octet 31 - Bit 6) Read Synchronization Train Parameters (Octet 31 - Bit 7) Write Synchronization Train Parameters (Octet 32 - Bit 0) Remote OOB Extended Data Request Reply (Octet 32 - Bit 1) Read Authenticated Payload Timeout (Octet 32 - Bit 4) Write Authenticated Payload Timeout (Octet 32 - Bit 5) Read Local OOB Extended Data (Octet 32 - Bit 6)
Write Secure Connections Test Mode (Octet 32 - Bit 7) Read Extended Page Timeout (Octet 33 - Bit 0)
Write Extended Page Timeout (Octet 33 - Bit 1)
Read Extended Inquiry Length (Octet 33 - Bit 2)
Write Extended Inquiry Length (Octet 33 - Bit 3)
LE Set Data Length (Octet 33 - Bit 6)
LE Read Suggested Default Data Length (Octet 33 - Bit 7) LE Write Suggested Default Data Length (Octet 34 - Bit 0) LE Read Local P-256 Public Key (Octet 34 - Bit 1)
LE Generate DHKey (Octet 34 - Bit 2)
LE Add Device To Resolving List (Octet 34 - Bit 3)
LE Remove Device From Resolving List (Octet 34 - Bit 4) LE Clear Resolving List (Octet 34 - Bit 5)
LE Read Resolving List Size (Octet 34 - Bit 6)
LE Read Peer Resolvable Address (Octet 34 - Bit 7)
LE Read Local Resolvable Address (Octet 35 - Bit 0)
LE Set Address Resolution Enable (Octet 35 - Bit 1)
LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2) LE Read Maximum Data Length (Octet 35 - Bit 3)
Octet 35 - Bit 4
Octet 35 - Bit 5
Octet 35 - Bit 6
Octet 35 - Bit 7
Octet 36 - Bit 0
< HCI Command: Write Simple Pairing Mode (0x03|0x0056) plen 1 [hci0] 10.869023
Mode: Enabled (0x01)
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869185
Write Simple Pairing Mode (0x03|0x0056) ncmd 1
Status: Success (0x00)
< HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1 [hci0] 10.869239
Mode: Inquiry Result with RSSI or Extended Inquiry Result (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869371
Write Inquiry Mode (0x03|0x0045) ncmd 1
Status: Success (0x00)< HCI Command: Read Inquiry Response T.. (0x03|0x0058) plen 0 [hci0] 10.869396
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.869552
Read Inquiry Response TX Power Level (0x03|0x0058) ncmd 1
Status: Success (0x00)
TX power: -1 dBm
< HCI Command: Read Local Extended Fea.. (0x04|0x0004) plen 1 [hci0] 10.869572
Page: 1Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 14 [hci0] 10.869729
Read Local Extended Features (0x04|0x0004) ncmd 1
Status: Success (0x00)
Page: 1/2
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Secure Simple Pairing (Host Support)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 10.869783
Mask: 0x3dbff807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete Authentication Complete
Remote Name Request Complete Encryption Change
Change Connection Link Key Complete Master Link Key Complete
Read Remote Supported Features Complete Read Remote Version Information Complete QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete Synchronous Connection Changed Sniff Subrating
Extended Inquiry Result
Encryption Key Refresh Complete
IO Capability Request
IO Capability Request Reply
User Confirmation Request
User Passkey Request
Remote OOB Data Request
Simple Pairing Complete
Link Supervision Timeout Changed Enhanced Flush Complete
User Passkey Notification
Keypress Notification
Remote Host Supported Features Notification LE Meta
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869921
Set Event Mask (0x03|0x0001) ncmd 1
Status: Success (0x00)
< HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 10.869947
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Read all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.870129
Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 4
Num keys: 0
< HCI Command: Write Default Link Poli.. (0x02|0x000f) plen 2 [hci0] 10.870148
Link policy: 0x0005
Enable Role Switch
Enable Sniff Mode
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.870310
Write Default Link Policy Settings (0x02|0x000f) ncmd 1
Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 10.870331
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.870485
Read Page Scan Activity (0x03|0x001b) ncmd 1
Status: Success (0x00)
Interval: 1280.000 msec (0x0800)
Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 10.870504
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.870652
Read Page Scan Type (0x03|0x0046) ncmd 1
Status: Success (0x00)
Type: Standard Scan (0x00)< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 [hci0] 10.870671
Mask: 0x0000000000000980
LE Read Local P-256 Public Key Complete
LE Generate DHKey Complete
Unknown mask (0x0000000000000800)
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.870839
LE Set Event Mask (0x08|0x0001) ncmd 1
Status: Success (0x00)
< HCI Command: Write LE Host Supported (0x03|0x006d) plen 2 [hci0] 10.870859
Supported: 0x01
Simultaneous: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.871028
Write LE Host Supported (0x03|0x006d) ncmd 1
Status: Success (0x00)
< HCI Command: Read Local Extended Fea.. (0x04|0x0004) plen 1 [hci0] 10.871059
Page: 2Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 14 [hci0] 10.871201
Read Local Extended Features (0x04|0x0004) ncmd 1
Status: Success (0x00)
Page: 2/2
Features: 0x25 0x0b 0x00 0x00 0x00 0x00 0x00 0x00
Connectionless Slave Broadcast - Master
Synchronization Train
Generalized interlaced scan
Secure Connections (Controller Support)
Ping
Train nudging
< HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7 [hci0] 10.871240
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Delete all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 10.871384
Delete Stored Link Key (0x03|0x0012) ncmd 1
Status: Success (0x00)
Num keys: 0< HCI Command: Set Event Mask Page 2 (0x03|0x0063) plen 8 [hci0] 10.871403
Mask: 0x0000000000b0c000
Triggered Clock Capture
Synchronization Train Complete
Slave Page Response Timeout Connectionless Slave Broadcast Channel Map Change Authenticated Payload Timeout Expired
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.871566
Set Event Mask Page 2 (0x03|0x0063) ncmd 1
Status: Success (0x00)< HCI Command: Read Local Supported Co.. (0x04|0x000b) plen 0 [hci0] 10.871599
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.871750
Read Local Supported Codecs (0x04|0x000b) ncmd 1
Status: Success (0x00)
Number of supported codecs: 2
Codec: CVSD (0x02)
Codec: Transparent (0x03)
Number of vendor codecs: 0< HCI Command: Read Synchronization Tr.. (0x03|0x0077) plen 0 [hci0] 10.871769
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 10.871928
Read Synchronization Train Parameters (0x03|0x0077) ncmd 1
Status: Success (0x00)
Interval: 0.000 msec (0x0000)
Timeout: 0.000 msec (0x00000000)
Service data: 0x00
< HCI Command: Write Secure Connection.. (0x03|0x007a) plen 1 [hci0] 10.871947
Support: Enabled (0x01)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872098
Write Secure Connections Host Support (0x03|0x007a) ncmd 1
Status: Success (0x00)< HCI Command: Unknown (0x08|0x0031) plen 3 [hci0] 10.872156
03 00 00 ...
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872322
Unknown (0x08|0x0031) ncmd 1
Status: Success (0x00)= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 10.872361
< HCI Command: LE Set Scan Response D.. (0x08|0x0009) plen 32 [hci0] 10.872431
Length: 10
Name (complete): builder
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872606
LE Set Scan Response Data (0x08|0x0009) ncmd 1
Status: Success (0x00)
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 10.872627
Scan enable: Page Scan (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872819
Write Scan Enable (0x03|0x001a) ncmd 1
Status: Success (0x00)
< HCI Command: Write Class of Device (0x03|0x0024) plen 3 [hci0] 10.872841
Class: 0x000000
Major class: Miscellaneous
Minor class: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873036
Write Class of Device (0x03|0x0024) ncmd 1
Status: Success (0x00)
* Unknown packet (code 17 len 9) [hci0] 10.873069
02 00 00 00 07 00 00 00 00 .........
* Unknown packet (code 17 len 9) [hci0] 10.873069
01 00 00 00 07 00 00 00 00 ......... < HCI Command: Write Local Name (0x03|0x0013) plen 248 [hci0] 10.873096
Name: builder
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873446
Write Local Name (0x03|0x0013) ncmd 1
Status: Success (0x00)
< HCI Command: Write Extended Inquir.. (0x03|0x0052) plen 241 [hci0] 10.873470
FEC: Not required (0x00)
Name (complete): builder
TX power: -1 dBm
Device ID: USB Implementer's Forum assigned (0x0002)
Vendor: Linux Foundation (0x1d6b)
Product: 0x0246
Version: 5.2.11 (0x052b)
16-bit Service UUIDs (complete): 4 entries
Generic Access Profile (0x1800)
Generic Attribute Profile (0x1801)
A/V Remote Control (0x110e)
A/V Remote Control Target (0x110c)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873857
Write Extended Inquiry Response (0x03|0x0052) ncmd 1
Status: Success (0x00)
* Unknown packet (code 17 len 13) [hci0] 10.873903
01 00 00 00 01 00 05 00 00 d1 0a 00 00 .............
* Unknown packet (code 17 len 10) [hci0] 10.873913
02 00 00 00 06 00 d1 0a 00 00 ..........
* Unknown packet (code 16 len 7) [hci0] 17.803939
01 00 00 00 05 00 00 .......
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 17.803983
Scan enable: No Scans (0x00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 17.804233
Write Scan Enable (0x03|0x001a) ncmd 1
Status: Success (0x00)
< HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 17.804282
01 06 02 00 00 00 ...... Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 17.804636
02 06 01 00 00 .....
* Unknown packet (code 17 len 13) [hci0] 17.811580
01 00 00 00 01 00 05 00 00 d0 0a 00 00 .............
* Unknown packet (code 17 len 10) [hci0] 17.811596
02 00 00 00 06 00 d0 0a 00 00 .......... = Close Index: 00:00:46:76:22:01 [hci0] 17.811625
Marcel Holtmann
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Hi Sean,
Quoted 48 lines
Quoted 21 lines
Quoted 21 lines
Quoted 19 lines
[ ... ]
Quoted 11 lines
Quoted 4 lines
net/bluetooth/hci_core.c +2
-1-if (hci_dev_test_flag (hdev,HCI_SETUP )) { +if (hci_dev_test_flag (hdev,HCI_SETUP ) || +test_bit (HCI_QUIRK_NON_PERSISTENT_SETUP , &hdev->quirks)) {hci_sock_dev_event(hdev, HCI_DEV_SETUP);I am not 100% sure that we want to send the
HCI_DEV_SETUPevent also multiple times. That is a userspace change that I would need to think about. We need to checkcreate_monitor_event()and see what the btmon trace for this looks like. Can you send me a btmon -w trace.log when this change is active.Regards
Marcel
Sure, I'll send you the trace.log with the change is active.
Sean
Quoted 9 lines
Quoted 2 lines
Attached trace.log was captured when I inputted commands power on and then off in bluetoothctl.
the trace.log is somehow mangled. Something is not fully correct. Can you read it with btmon -r trace.log?
Regards
Marcel
Yes, I can read it with btmon -r trace.log.
I post it as plain text as below
Bluetooth monitor ver 5.37
= Note: Linux version 4.16.0-rc1+ (aarch64) 0.641494
= Note: Bluetooth subsystem version 2.22 0.641502
= New Index: 00:00:46:76:22:01 (BR/EDR,UART,hci0) [hci0] 0.641505
* Unknown packet (code 14 len 30) 0.64150901 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 6c ..............bl 75 65 74 6f 6f 74 68 64 00 00 00 00 00 00 uetoothd...... * Unknown packet (code 14 len 30) 0.641592 02 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 74 ..............bt 6d 6f 6e 00 00 00 00 00 00 00 00 00 00 00 mon........... * Unknown packet (code 16 len 7) [hci0] 6.536771 01 00 00 00 05 00 01 .......
Quoted 2 lines
= Open Index: 00:00:46:76:22:01 [hci0] 6.717019
= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 6.717030
can you try with the latest BlueZ 5.49 or git version. Seems it actually stumbles over the extra packet here. Fun fact is that I can not get a backtrace to pin-point the issue in btmon and why it crashes.
Quoted 146 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74109302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74208802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74310202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74410502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74510902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74610402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74709702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74809002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74907802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75007002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75106102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75205402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75304602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75403802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75503102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75602502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75701302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75800602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75899902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75999102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76098302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76197502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76296302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76395602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76494802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76594102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76693302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76792602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76891902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76991402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77090902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77190802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77290402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77389802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77489202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77589002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77688202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77787702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77887102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77986902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78086402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78185802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78285202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78385002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78484502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78583902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78683302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78783102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78882602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78982002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79081402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79181302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79280902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79380302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79479802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79579702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79679102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79778602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79877902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79977802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80077402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80176902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80276302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80376102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80475502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80574902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80674302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80774102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80873702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80973102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81072502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81172502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81271902 01 01 00 00 .....
Quoted 8 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81371402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81470802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81570502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81637802 01 01 00 00 .....
Why do I see only HCI events here? Is this event conveying any useful information. It is kinda complicated that this is 0xe4 event code which is actually reserved for future use by the Bluetooth SIG. Are there any accompanying HCI commands for this and they just not make it into btmon?
Quoted 8 lines
< HCI Command: Vendor (0x3f|0x006f) plen 5 [hci0] 6.816413
01 07 01 00 04 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81653602 07 01 00 00 ..... < HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 8.845071 01 06 02 00 00 01 ......Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 8.92345602 06 01 00 00 .....
Here it looks like you have 0x006f opcode with first octet 0x01 for command and then vendor event 0xe4 with first octet 0x02 for event. I assume the second octet is then the vendor command code for these.
Quoted 57 lines
< HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 10.861118
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.865763Reset (0x03|0x0003) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Fe.. (0x04|0x0003) plen 0 [hci0] 10.865805
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.865965Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features:0xbf0x3e0x8d0xfe0xdb0xff0x7b0x87
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Sniff mode
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
CVSD synchronous data
Power control
Transparent synchronous data
Broadcast Encryption
Enhanced Data Rate ACL 2 Mbps mode
Enhanced Data Rate ACL 3 Mbps mode
Enhanced inquiry scan
Interlaced inquiry scan
Interlaced page scan
RSSI with inquiry results
Extended SCO link (EV3 packets)
EV4 packets
EV5 packets
AFH capable slave
AFH classification slave
LE Supported (Controller)
3-slot Enhanced Data Rate ACL packets
5-slot Enhanced Data Rate ACL packets
Sniff subrating
Pause encryption
AFH capable master
AFH classification master
Enhanced Data Rate eSCO 2 Mbps mode
Enhanced Data Rate eSCO 3 Mbps mode
3-slot Enhanced Data Rate eSCO packets
Extended Inquiry Response
Simultaneous LE and BR/EDR (Controller)
Secure Simple Pairing
Encapsulated PDU
Erroneous Data Reporting
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Enhanced Power Control
Extended features
< HCI Command: Read Local Version Info.. (0x04|0x0001) plen 0 [hci0] 10.865987
Quoted 2 lines
Quoted 1 line
HCI Event: Vendor (
0xff) plen 9 [hci0] 10.86625929 19 09 17 20 48 07 11 00 )... H?
Is this meant to happen here?
Quoted 308 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.866372Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: Bluetooth 4.2 (0x08) - Revision 4359 (0x1107) LMP version: Bluetooth 4.2 (0x08) - Subversion 2329 (0x0919) Manufacturer: MediaTek, Inc. (70)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 10.866391
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 10.866539Read BD ADDR (0x04|0x0009) ncmd 1 Status: Success (0x00) Address: 00:00:46:76:22:01 (OLIVETTI NORTH AMERICA)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 10.866609
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 10.866754Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 1021 ACL max packet: 8
SCO MTU: 184 SCO max packet: 1
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 10.866775Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.866920Read Class of Device (0x03|0x0023) ncmd 1 Status: Success (0x00) Class: 0x001f00 Major class: Uncategorized, specific device code not specified Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 10.866939
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 10.867256Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name: MTK MT7622 #1< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 10.867308
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 10.867447Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting:0x0060
Input Coding: Linear
Input Data Format: 2's complement
Input Sample Size: 16-bit
# of bits padding at MSB: 0
Air Coding Format: CVSD
< HCI Command: Read Number of Supporte.. (0x03|0x0038) plen 0 [hci0] 10.867474Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.867611Read Number of Supported IAC (0x03|0x0038) ncmd 1 Status: Success (0x00) Number of IAC: 4< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 [hci0] 10.867678
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.867865Read Current IAC LAP (0x03|0x0039) ncmd 1 Status: Success (0x00) Number of IAC: 1 Access code: 0x9e8b33 (General Inquiry) < HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 10.867890 Type: Clear All Filters (0x00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868033Set Event Filter (0x03|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: Write Connection Accept.. (0x03|0x0016) plen 2 [hci0] 10.868054 Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868235Write Connection Accept Timeout (0x03|0x0016) ncmd 1 Status: Success (0x00)< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0 [hci0] 10.868262
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.868392LE Read Buffer Size (0x08|0x0002) ncmd 1
Status: Success (0x00)
Data packet length: 251
Num data packets: 8
< HCI Command: LE Read Local Supported.. (0x08|0x0003) plen 0 [hci0] 10.868413Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868587LE Read Local Supported Features (0x08|0x0003) ncmd 1
Status: Success (0x00)
Features:0xfd0x000x000x000x000x000x000x00
LE Encryption
Extended Reject Indication Slave-initiated Features Exchange
LE Ping
LE Data Packet Length Extension
LL Privacy
Extended Scanner Filter Policies
< HCI Command: LE Read Supported States (0x08|0x001c) plen 0 [hci0] 10.868646Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868787LE Read Supported States (0x08|0x001c) ncmd 1
Status: Success (0x00)
States:0x000000001fffffff
Non-connectable Advertising State
Scannable Advertising State
Connectable Advertising State
High Duty Cycle Directed Advertising State
Passive Scanning State
Active Scanning State
Initiating State
and Connection State (Master Role)
Connection State (Slave Role)
Non-connectable Advertising State
and Passive Scanning State
Scannable Advertising State
and Passive Scanning State
Connectable Advertising State
and Passive Scanning State
High Duty Cycle Directed Advertising State
and Passive Scanning State
Non-connectable Advertising State
and Active Scanning State
Scannable Advertising State
and Active Scanning State
Connectable Advertising State
and Active Scanning State
High Duty Cycle Directed Advertising State
and Active Scanning State
Non-connectable Advertising State
and Initiating State
Scannable Advertising State
and Initiating State
Non-connectable Advertising State
and Connection State (Master Role)
Scannable Advertising State
and Connection State (Master Role)
Non-connectable Advertising State
and Connection State (Slave Role)
Scannable Advertising State
and Connection State (Slave Role)
Passive Scanning State
and Initiating State
Active Scanning State
and Initiating State
Passive Scanning State
and Connection State (Master Role)
Active Scanning State
and Connection State (Master Role)
Passive Scanning State
and Connection State (Slave Role)
Active Scanning State
and Connection State (Slave Role)
Initiating State
and Connection State (Master Role)
and Master Role & Master Role
< HCI Command: Read Local Supported Co.. (0x04|0x0002) plen 0 [hci0] 10.868807Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 68 [hci0] 10.868985Read Local Supported Commands (0x04|0x0002) ncmd 1
Status: Success (0x00)
Commands: 176 entries
Inquiry (Octet 0 - Bit 0)
Inquiry Cancel (Octet 0 - Bit 1)
Periodic Inquiry Mode (Octet 0 - Bit 2)
Exit Periodic Inquiry Mode (Octet 0 - Bit 3)
Create Connection (Octet 0 - Bit 4)
Disconnect (Octet 0 - Bit 5)
Add SCO Connection (Octet 0 - Bit 6)
Create Connection Cancel (Octet 0 - Bit 7)
Accept Connection Request (Octet 1 - Bit 0)
Reject Connection Request (Octet 1 - Bit 1)
Link Key Request Reply (Octet 1 - Bit 2)
Link Key Request Negative Reply (Octet 1 - Bit 3)
PIN Code Request Reply (Octet 1 - Bit 4)
PIN Code Request Negative Reply (Octet 1 - Bit 5) Change Connection Packet Type (Octet 1 - Bit 6) Authentication Requested (Octet 1 - Bit 7)
Set Connection Encryption (Octet 2 - Bit 0)
Change Connection Link Key (Octet 2 - Bit 1)
Master Link Key (Octet 2 - Bit 2)
Remote Name Request (Octet 2 - Bit 3)
Remote Name Request Cancel (Octet 2 - Bit 4)
Read Remote Supported Features (Octet 2 - Bit 5)
Read Remote Extended Features (Octet 2 - Bit 6)
Read Remote Version Information (Octet 2 - Bit 7) Read Clock Offset (Octet 3 - Bit 0)
Read LMP Handle (Octet 3 - Bit 1)
Sniff Mode (Octet 4 - Bit 2)
Exit Sniff Mode (Octet 4 - Bit 3)
QoS Setup (Octet 4 - Bit 6)
Role Discovery (Octet 4 - Bit 7)
Switch Role (Octet 5 - Bit 0)
Read Link Policy Settings (Octet 5 - Bit 1)
Write Link Policy Settings (Octet 5 - Bit 2)
Read Default Link Policy Settings (Octet 5 - Bit 3) Write Default Link Policy Settings (Octet 5 - Bit 4) Flow Specification (Octet 5 - Bit 5)
Set Event Mask (Octet 5 - Bit 6)
Reset (Octet 5 - Bit 7)
Set Event Filter (Octet 6 - Bit 0)
Flush (Octet 6 - Bit 1)
Read PIN Type (Octet 6 - Bit 2)
Write PIN Type (Octet 6 - Bit 3)
Create New Unit Key (Octet 6 - Bit 4)
Read Stored Link Key (Octet 6 - Bit 5)
Write Stored Link Key (Octet 6 - Bit 6)
Delete Stored Link Key (Octet 6 - Bit 7)
Write Local Name (Octet 7 - Bit 0)
Read Local Name (Octet 7 - Bit 1)
Read Connection Accept Timeout (Octet 7 - Bit 2) Write Connection Accept Timeout (Octet 7 - Bit 3) Read Page Timeout (Octet 7 - Bit 4)
Write Page Timeout (Octet 7 - Bit 5)
Read Scan Enable (Octet 7 - Bit 6)
Write Scan Enable (Octet 7 - Bit 7)
Read Page Scan Activity (Octet 8 - Bit 0)
Write Page Scan Activity (Octet 8 - Bit 1)
Read Inquiry Scan Activity (Octet 8 - Bit 2)
Write Inquiry Scan Activity (Octet 8 - Bit 3)
Read Authentication Enable (Octet 8 - Bit 4)
Write Authentication Enable (Octet 8 - Bit 5)
Read Encryption Mode (Octet 8 - Bit 6)
Write Encryption Mode (Octet 8 - Bit 7)
Read Class of Device (Octet 9 - Bit 0)
Write Class of Device (Octet 9 - Bit 1)
Read Voice Setting (Octet 9 - Bit 2)
Write Voice Setting (Octet 9 - Bit 3)
Read Automatic Flush Timeout (Octet 9 - Bit 4)
Write Automatic Flush Timeout (Octet 9 - Bit 5)
Read Num Broadcast Retransmissions (Octet 9 - Bit 6) Write Num Broadcast Retransmissions (Octet 9 - Bit 7) Read Transmit Power Level (Octet 10 - Bit 2)
Read Sync Flow Control Enable (Octet 10 - Bit 3) Write Sync Flow Control Enable (Octet 10 - Bit 4)
Set Controller To Host Flow Control (Octet 10 - Bit 5) Host Buffer Size (Octet 10 - Bit 6)
Host Number of Completed Packets (Octet 10 - Bit 7) Read Link Supervision Timeout (Octet 11 - Bit 0) Write Link Supervision Timeout (Octet 11 - Bit 1) Read Number of Supported IAC (Octet 11 - Bit 2)
Read Current IAC LAP (Octet 11 - Bit 3)
Write Current IAC LAP (Octet 11 - Bit 4)
Read Page Scan Mode (Octet 11 - Bit 7)
Write Page Scan Mode (Octet 12 - Bit 0)
Set AFH Host Channel Classification (Octet 12 - Bit 1) Read Inquiry Scan Type (Octet 12 - Bit 4)
Write Inquiry Scan Type (Octet 12 - Bit 5)
Read Inquiry Mode (Octet 12 - Bit 6)
Write Inquiry Mode (Octet 12 - Bit 7)
Read Page Scan Type (Octet 13 - Bit 0)
Write Page Scan Type (Octet 13 - Bit 1)
Read AFH Channel Assessment Mode (Octet 13 - Bit 2) Write AFH Channel Assessment Mode (Octet 13 - Bit 3) Read Local Version Information (Octet 14 - Bit 3) Read Local Supported Features (Octet 14 - Bit 5)
Read Local Extended Features (Octet 14 - Bit 6)
Read Buffer Size (Octet 14 - Bit 7)
Read Country Code (Octet 15 - Bit 0)
Read BD ADDR (Octet 15 - Bit 1)
Read Failed Contact Counter (Octet 15 - Bit 2)
Reset Failed Contact Counter (Octet 15 - Bit 3)
Read Link Quality (Octet 15 - Bit 4)
Read RSSI (Octet 15 - Bit 5)
Read AFH Channel Map (Octet 15 - Bit 6)
Read Clock (Octet 15 - Bit 7)
Read Loopback Mode (Octet 16 - Bit 0)
Write Loopback Mode (Octet 16 - Bit 1)
Enable Device Under Test Mode (Octet 16 - Bit 2) Setup Synchronous Connection (Octet 16 - Bit 3) Accept Synchronous Connection Request (Octet 16 - Bit 4) Reject Synchronous Connection Request (Octet 16 - Bit 5) Read Extended Inquiry Response (Octet 17 - Bit 0) Write Extended Inquiry Response (Octet 17 - Bit 1) Refresh Encryption Key (Octet 17 - Bit 2)
Sniff Subrating (Octet 17 - Bit 4)
Read Simple Pairing Mode (Octet 17 - Bit 5)
Write Simple Pairing Mode (Octet 17 - Bit 6)
Read Local OOB Data (Octet 17 - Bit 7)
Read Inquiry Response TX Power Level (Octet 18 - Bit 0) Write Inquiry Transmit Power Level (Octet 18 - Bit 1) Read Default Erroneous Data Reporting (Octet 18 - Bit 2) Write Default Erroneous Data Reporting (Octet 18 - Bit 3) IO Capability Request Reply (Octet 18 - Bit 7)
User Confirmation Request Reply (Octet 19 - Bit 0) User Confirmation Request Neg Reply (Octet 19 - Bit 1) User Passkey Request Reply (Octet 19 - Bit 2)
User Passkey Request Negative Reply (Octet 19 - Bit 3) Remote OOB Data Request Reply (Octet 19 - Bit 4) Write Simple Pairing Debug Mode (Octet 19 - Bit 5) Enhanced Flush (Octet 19 - Bit 6)
Remote OOB Data Request Neg Reply (Octet 19 - Bit 7) Send Keypress Notification (Octet 20 - Bit 2)
IO Capability Request Negative Reply (Octet 20 - Bit 3) Read Encryption Key Size (Octet 20 - Bit 4)
Set Event Mask Page 2 (Octet 22 - Bit 2)
Read Enhanced Transmit Power Level (Octet 24 - Bit 0) Enhanced Setup Synchronous Connection (Octet 29 - Bit 3) Enhanced Accept Synchronous Connection Request (Octet 29 - Bit 4) Read Local Supported Codecs (Octet 29 - Bit 5)
Set Triggered Clock Capture (Octet 30 - Bit 5) Truncated Page (Octet 30 - Bit 6)
Truncated Page Cancel (Octet 30 - Bit 7)
Set Connectionless Slave Broadcast (Octet 31 - Bit 0) Start Synchronization Train (Octet 31 - Bit 2)
Set ReservedLT_ADDR(Octet 31 - Bit 4)
Delete ReservedLT_ADDR(Octet 31 - Bit 5)
Set Connectionless Slave Broadcast Data (Octet 31 - Bit 6) Read Synchronization Train Parameters (Octet 31 - Bit 7) Write Synchronization Train Parameters (Octet 32 - Bit 0) Remote OOB Extended Data Request Reply (Octet 32 - Bit 1) Read Authenticated Payload Timeout (Octet 32 - Bit 4) Write Authenticated Payload Timeout (Octet 32 - Bit 5) Read Local OOB Extended Data (Octet 32 - Bit 6)
Write Secure Connections Test Mode (Octet 32 - Bit 7) Read Extended Page Timeout (Octet 33 - Bit 0)
Write Extended Page Timeout (Octet 33 - Bit 1)
Read Extended Inquiry Length (Octet 33 - Bit 2)
Write Extended Inquiry Length (Octet 33 - Bit 3)
LE Set Data Length (Octet 33 - Bit 6)
LE Read Suggested Default Data Length (Octet 33 - Bit 7) LE Write Suggested Default Data Length (Octet 34 - Bit 0) LE Read Local P-256 Public Key (Octet 34 - Bit 1)
LE Generate DHKey (Octet 34 - Bit 2)
LE Add Device To Resolving List (Octet 34 - Bit 3)
LE Remove Device From Resolving List (Octet 34 - Bit 4) LE Clear Resolving List (Octet 34 - Bit 5)
LE Read Resolving List Size (Octet 34 - Bit 6)
LE Read Peer Resolvable Address (Octet 34 - Bit 7)
LE Read Local Resolvable Address (Octet 35 - Bit 0)
Quoted 8 lines
LE Set Address Resolution Enable (Octet 35 - Bit 1) LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2) LE Read Maximum Data Length (Octet 35 - Bit 3) Octet 35 - Bit 4
Octet 35 - Bit 5
Octet 35 - Bit 6
Octet 35 - Bit 7
Octet 36 - Bit 0
So you support the PHY commands, but do not indicate support LE 2M or LE Coded? Also these are Bluetooth 5.0 commands.
Quoted 167 lines
< HCI Command: Write Simple Pairing Mode (0x03|0x0056) plen 1 [hci0] 10.869023
Mode: Enabled (0x01)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869185Write Simple Pairing Mode (0x03|0x0056) ncmd 1 Status: Success (0x00) < HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1 [hci0] 10.869239 Mode: Inquiry Result with RSSI or Extended Inquiry Result (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869371Write Inquiry Mode (0x03|0x0045) ncmd 1 Status: Success (0x00)< HCI Command: Read Inquiry Response T.. (0x03|0x0058) plen 0 [hci0] 10.869396
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.869552Read Inquiry Response TX Power Level (0x03|0x0058) ncmd 1 Status: Success (0x00) TX power: -1 dBm < HCI Command: Read Local Extended Fea.. (0x04|0x0004) plen 1 [hci0] 10.869572 Page: 1Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 14 [hci0] 10.869729Read Local Extended Features (0x04|0x0004) ncmd 1 Status: Success (0x00) Page: 1/2 Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Secure Simple Pairing (Host Support)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 10.869783
Mask:0x3dbff807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete Authentication Complete
Remote Name Request Complete Encryption Change
Change Connection Link Key Complete Master Link Key Complete
Read Remote Supported Features Complete Read Remote Version Information Complete QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete Synchronous Connection Changed Sniff Subrating
Extended Inquiry Result
Encryption Key Refresh Complete
IO Capability Request
IO Capability Request Reply
User Confirmation Request
User Passkey Request
Remote OOB Data Request
Simple Pairing Complete
Link Supervision Timeout Changed Enhanced Flush Complete
User Passkey Notification
Keypress Notification
Remote Host Supported Features Notification LE MetaQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869921Set Event Mask (0x03|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 10.869947 Address: 00:00:00:00:00:00 (OUI 00-00-00) Read all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.870129Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 4
Num keys: 0
< HCI Command: Write Default Link Poli.. (0x02|0x000f) plen 2 [hci0] 10.870148
Link policy:0x0005
Enable Role Switch
Enable Sniff ModeQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.870310Write Default Link Policy Settings (0x02|0x000f) ncmd 1 Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 10.870331
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.870485Read Page Scan Activity (0x03|0x001b) ncmd 1 Status: Success (0x00) Interval: 1280.000 msec (0x0800) Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 10.870504
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.870652Read Page Scan Type (0x03|0x0046) ncmd 1 Status: Success (0x00) Type: Standard Scan (0x00)< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 [hci0] 10.870671
Mask:0x0000000000000980
LE Read Local P-256 Public Key Complete
LE Generate DHKey Complete
Unknown mask (0x0000000000000800)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.870839LE Set Event Mask (0x08|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Write LE Host Supported (0x03|0x006d) plen 2 [hci0] 10.870859 Supported: 0x01 Simultaneous: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.871028Write LE Host Supported (0x03|0x006d) ncmd 1 Status: Success (0x00) < HCI Command: Read Local Extended Fea.. (0x04|0x0004) plen 1 [hci0] 10.871059 Page: 2Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 14 [hci0] 10.871201Read Local Extended Features (0x04|0x0004) ncmd 1 Status: Success (0x00) Page: 2/2 Features: 0x25 0x0b 0x00 0x00 0x00 0x00 0x00 0x00 Connectionless Slave Broadcast - Master Synchronization Train Generalized interlaced scan Secure Connections (Controller Support) Ping Train nudging < HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7 [hci0] 10.871240 Address: 00:00:00:00:00:00 (OUI 00-00-00) Delete all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 10.871384Delete Stored Link Key (0x03|0x0012) ncmd 1 Status: Success (0x00) Num keys: 0< HCI Command: Set Event Mask Page 2 (0x03|0x0063) plen 8 [hci0] 10.871403
Mask:0x0000000000b0c000
Triggered Clock Capture
Synchronization Train Complete
Slave Page Response Timeout Connectionless Slave Broadcast Channel Map Change Authenticated Payload Timeout ExpiredQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.871566Set Event Mask Page 2 (0x03|0x0063) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Co.. (0x04|0x000b) plen 0 [hci0] 10.871599
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.871750Read Local Supported Codecs (0x04|0x000b) ncmd 1 Status: Success (0x00) Number of supported codecs: 2 Codec: CVSD (0x02) Codec: Transparent (0x03) Number of vendor codecs: 0< HCI Command: Read Synchronization Tr.. (0x03|0x0077) plen 0 [hci0] 10.871769
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 10.871928Read Synchronization Train Parameters (0x03|0x0077) ncmd 1 Status: Success (0x00) Interval: 0.000 msec (0x0000) Timeout: 0.000 msec (0x00000000) Service data: 0x00 < HCI Command: Write Secure Connection.. (0x03|0x007a) plen 1 [hci0] 10.871947 Support: Enabled (0x01)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872098
Quoted 8 lines
Write Secure Connections Host Support (0x03|0x007a) ncmd 1 Status: Success (0x00)< HCI Command: Unknown (0x08|0x0031) plen 3 [hci0] 10.872156
03 00 00 ...Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872322Unknown (0x08|0x0031) ncmd 1 Status: Success (0x00)= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 10.872361
This extra index info worries me a little bit. I need to check if that is suppose to happen.
Quoted 56 lines
< HCI Command: LE Set Scan Response D.. (0x08|0x0009) plen 32 [hci0] 10.872431
Length: 10
Name (complete): builderQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872606LE Set Scan Response Data (0x08|0x0009) ncmd 1 Status: Success (0x00) < HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 10.872627 Scan enable: Page Scan (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872819Write Scan Enable (0x03|0x001a) ncmd 1 Status: Success (0x00) < HCI Command: Write Class of Device (0x03|0x0024) plen 3 [hci0] 10.872841 Class: 0x000000 Major class: Miscellaneous Minor class: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873036Write Class of Device (0x03|0x0024) ncmd 1 Status: Success (0x00) * Unknown packet (code 17 len 9) [hci0] 10.873069 02 00 00 00 07 00 00 00 00 ......... * Unknown packet (code 17 len 9) [hci0] 10.873069 01 00 00 00 07 00 00 00 00 .........< HCI Command: Write Local Name (0x03|0x0013) plen 248 [hci0] 10.873096
Name: builderQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873446Write Local Name (0x03|0x0013) ncmd 1 Status: Success (0x00) < HCI Command: Write Extended Inquir.. (0x03|0x0052) plen 241 [hci0] 10.873470 FEC: Not required (0x00) Name (complete): builder TX power: -1 dBm Device ID: USB Implementer's Forum assigned (0x0002) Vendor: Linux Foundation (0x1d6b) Product: 0x0246 Version: 5.2.11 (0x052b) 16-bit Service UUIDs (complete): 4 entries Generic Access Profile (0x1800) Generic Attribute Profile (0x1801) A/V Remote Control (0x110e) A/V Remote Control Target (0x110c)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873857Write Extended Inquiry Response (0x03|0x0052) ncmd 1 Status: Success (0x00) * Unknown packet (code 17 len 13) [hci0] 10.873903 01 00 00 00 01 00 05 00 00 d1 0a 00 00 ............. * Unknown packet (code 17 len 10) [hci0] 10.873913 02 00 00 00 06 00 d1 0a 00 00 .......... * Unknown packet (code 16 len 7) [hci0] 17.803939 01 00 00 00 05 00 00 ....... < HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 17.803983 Scan enable: No Scans (0x00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 17.804233Write Scan Enable (0x03|0x001a) ncmd 1 Status: Success (0x00) < HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 17.804282 01 06 02 00 00 00 ......
Quoted 7 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 17.80463602 06 01 00 00 ..... * Unknown packet (code 17 len 13) [hci0] 17.811580 01 00 00 00 01 00 05 00 00 d0 0a 00 00 ............. * Unknown packet (code 17 len 10) [hci0] 17.811596 02 00 00 00 06 00 d0 0a 00 00 ..........= Close Index: 00:00:46:76:22:01 [hci0] 17.811625
Regards
Marcel
Sean Wang
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Quoted 4 lines · Marcel Holtmann
Hi Sean,
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
[ ... ]
[ ... ]
Quoted 18 lines
Quoted 15 lines
I post it as plain text as below
Bluetooth monitor ver 5.37
= Note: Linux version 4.16.0-rc1+ (aarch64) 0.641494
= Note: Bluetooth subsystem version 2.22 0.641502
= New Index: 00:00:46:76:22:01 (BR/EDR,UART,hci0) [hci0] 0.641505
* Unknown packet (code 14 len 30) 0.64150901 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 6c ..............bl 75 65 74 6f 6f 74 68 64 00 00 00 00 00 00 uetoothd...... * Unknown packet (code 14 len 30) 0.641592 02 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 74 ..............bt 6d 6f 6e 00 00 00 00 00 00 00 00 00 00 00 mon........... * Unknown packet (code 16 len 7) [hci0] 6.536771 01 00 00 00 05 00 01 .......Quoted 2 lines
= Open Index: 00:00:46:76:22:01 [hci0] 6.717019
= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 6.717030
Quoted 2 lines
can you try with the latest BlueZ 5.49 or git version. Seems it actually stumbles over the extra packet here. Fun fact is that I can not get a backtrace to pin-point the issue in btmon and why it crashes.
I had less experience updating user land BlueZ, but I can try it as possible and see whether Unknown packets still are present at newest version BlueZ. Hopefully I don't misunderstand your point here.
Quoted 148 lines
Quoted 148 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74109302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74208802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74310202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74410502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74510902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74610402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74709702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74809002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74907802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75007002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75106102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75205402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75304602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75403802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75503102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75602502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75701302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75800602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75899902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75999102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76098302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76197502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76296302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76395602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76494802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76594102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76693302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76792602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76891902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76991402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77090902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77190802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77290402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77389802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77489202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77589002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77688202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77787702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77887102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77986902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78086402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78185802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78285202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78385002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78484502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78583902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78683302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78783102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78882602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78982002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79081402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79181302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79280902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79380302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79479802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79579702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79679102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79778602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79877902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79977802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80077402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80176902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80276302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80376102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80475502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80574902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80674302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80774102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80873702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80973102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81072502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81172502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81271902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81371402 01 01 00 00 .....
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81470802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81570502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81637802 01 01 00 00 .....Why do I see only HCI events here? Is this event conveying any useful information. It is kinda complicated that this is
0xe4event code which is actually reserved for future use by the Bluetooth SIG. Are there any accompanying HCI commands for this and they just not make it into btmon?
I have made all vendor HCI commands go through BlueZ core in v2 patch.
And for these HCI events, they are all corresponding to vendor ACL data, applied only to firmware setup packets, but they're not being sent via BlueZ core, so they are not being logged in btmon.
As for its event, where heading 0xe4 refers to a vendor event and is used on notification of that either vendor ACL data or vendor HCI command have been done.
Quoted 4 lines
Quoted 4 lines
< HCI Command: Vendor (0x3f|0x006f) plen 5 [hci0] 6.816413
01 07 01 00 04 .....
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81653602 07 01 00 00 ..... < HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 8.845071 01 06 02 00 00 01 ......Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 8.92345602 06 01 00 00 .....Here it looks like you have
0x006fopcode with first octet0x01for command and then vendor event0xe4with first octet0x02for event. I assume the second octet is then the vendor command code for these.
Yes, you're right.
Quoted 57 lines
Quoted 57 lines
< HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 10.861118
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.865763Reset (0x03|0x0003) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Fe.. (0x04|0x0003) plen 0 [hci0] 10.865805
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.865965Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features:0xbf0x3e0x8d0xfe0xdb0xff0x7b0x87
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Sniff mode
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
CVSD synchronous data
Power control
Transparent synchronous data
Broadcast Encryption
Enhanced Data Rate ACL 2 Mbps mode
Enhanced Data Rate ACL 3 Mbps mode
Enhanced inquiry scan
Interlaced inquiry scan
Interlaced page scan
RSSI with inquiry results
Extended SCO link (EV3 packets)
EV4 packets
EV5 packets
AFH capable slave
AFH classification slave
LE Supported (Controller)
3-slot Enhanced Data Rate ACL packets
5-slot Enhanced Data Rate ACL packets
Sniff subrating
Pause encryption
AFH capable master
AFH classification master
Enhanced Data Rate eSCO 2 Mbps mode
Enhanced Data Rate eSCO 3 Mbps mode
3-slot Enhanced Data Rate eSCO packets
Extended Inquiry Response
Simultaneous LE and BR/EDR (Controller)
Secure Simple Pairing
Encapsulated PDU
Erroneous Data Reporting
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Enhanced Power Control
Extended features
< HCI Command: Read Local Version Info.. (0x04|0x0001) plen 0 [hci0] 10.865987
Quoted 5 lines
Quoted 2 lines
Quoted 1 line
HCI Event: Vendor (
0xff) plen 9 [hci0] 10.86625929 19 09 17 20 48 07 11 00 )... H?Is this meant to happen here?
If event received is not expected as the specification defines, I think it's probably incorrect.
But it requires more discussion with firmware people to make it clearer.
Quoted 317 lines
Quoted 308 lines
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.866372Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: Bluetooth 4.2 (0x08) - Revision 4359 (0x1107) LMP version: Bluetooth 4.2 (0x08) - Subversion 2329 (0x0919) Manufacturer: MediaTek, Inc. (70)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 10.866391
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 10.866539Read BD ADDR (0x04|0x0009) ncmd 1 Status: Success (0x00) Address: 00:00:46:76:22:01 (OLIVETTI NORTH AMERICA)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 10.866609
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 10.866754Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 1021 ACL max packet: 8
SCO MTU: 184 SCO max packet: 1
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 10.866775Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.866920Read Class of Device (0x03|0x0023) ncmd 1 Status: Success (0x00) Class: 0x001f00 Major class: Uncategorized, specific device code not specified Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 10.866939
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 10.867256Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name: MTK MT7622 #1< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 10.867308
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 10.867447Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting:0x0060
Input Coding: Linear
Input Data Format: 2's complement
Input Sample Size: 16-bit
# of bits padding at MSB: 0
Air Coding Format: CVSD
< HCI Command: Read Number of Supporte.. (0x03|0x0038) plen 0 [hci0] 10.867474Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.867611Read Number of Supported IAC (0x03|0x0038) ncmd 1 Status: Success (0x00) Number of IAC: 4< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 [hci0] 10.867678
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.867865Read Current IAC LAP (0x03|0x0039) ncmd 1 Status: Success (0x00) Number of IAC: 1 Access code: 0x9e8b33 (General Inquiry) < HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 10.867890 Type: Clear All Filters (0x00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868033Set Event Filter (0x03|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: Write Connection Accept.. (0x03|0x0016) plen 2 [hci0] 10.868054 Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868235Write Connection Accept Timeout (0x03|0x0016) ncmd 1 Status: Success (0x00)< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0 [hci0] 10.868262
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.868392LE Read Buffer Size (0x08|0x0002) ncmd 1
Status: Success (0x00)
Data packet length: 251
Num data packets: 8
< HCI Command: LE Read Local Supported.. (0x08|0x0003) plen 0 [hci0] 10.868413Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868587LE Read Local Supported Features (0x08|0x0003) ncmd 1
Status: Success (0x00)
Features:0xfd0x000x000x000x000x000x000x00
LE Encryption
Extended Reject Indication Slave-initiated Features Exchange
LE Ping
LE Data Packet Length Extension
LL Privacy
Extended Scanner Filter Policies
< HCI Command: LE Read Supported States (0x08|0x001c) plen 0 [hci0] 10.868646Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868787LE Read Supported States (0x08|0x001c) ncmd 1
Status: Success (0x00)
States:0x000000001fffffff
Non-connectable Advertising State
Scannable Advertising State
Connectable Advertising State
High Duty Cycle Directed Advertising State
Passive Scanning State
Active Scanning State
Initiating State
and Connection State (Master Role)
Connection State (Slave Role)
Non-connectable Advertising State
and Passive Scanning State
Scannable Advertising State
and Passive Scanning State
Connectable Advertising State
and Passive Scanning State
High Duty Cycle Directed Advertising State
and Passive Scanning State
Non-connectable Advertising State
and Active Scanning State
Scannable Advertising State
and Active Scanning State
Connectable Advertising State
and Active Scanning State
High Duty Cycle Directed Advertising State
and Active Scanning State
Non-connectable Advertising State
and Initiating State
Scannable Advertising State
and Initiating State
Non-connectable Advertising State
and Connection State (Master Role)
Scannable Advertising State
and Connection State (Master Role)
Non-connectable Advertising State
and Connection State (Slave Role)
Scannable Advertising State
and Connection State (Slave Role)
Passive Scanning State
and Initiating State
Active Scanning State
and Initiating State
Passive Scanning State
and Connection State (Master Role)
Active Scanning State
and Connection State (Master Role)
Passive Scanning State
and Connection State (Slave Role)
Active Scanning State
and Connection State (Slave Role)
Initiating State
and Connection State (Master Role)
and Master Role & Master Role
< HCI Command: Read Local Supported Co.. (0x04|0x0002) plen 0 [hci0] 10.868807Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 68 [hci0] 10.868985Read Local Supported Commands (0x04|0x0002) ncmd 1
Status: Success (0x00)
Commands: 176 entries
Inquiry (Octet 0 - Bit 0)
Inquiry Cancel (Octet 0 - Bit 1)
Periodic Inquiry Mode (Octet 0 - Bit 2)
Exit Periodic Inquiry Mode (Octet 0 - Bit 3)
Create Connection (Octet 0 - Bit 4)
Disconnect (Octet 0 - Bit 5)
Add SCO Connection (Octet 0 - Bit 6)
Create Connection Cancel (Octet 0 - Bit 7)
Accept Connection Request (Octet 1 - Bit 0)
Reject Connection Request (Octet 1 - Bit 1)
Link Key Request Reply (Octet 1 - Bit 2)
Link Key Request Negative Reply (Octet 1 - Bit 3)
PIN Code Request Reply (Octet 1 - Bit 4)
PIN Code Request Negative Reply (Octet 1 - Bit 5) Change Connection Packet Type (Octet 1 - Bit 6) Authentication Requested (Octet 1 - Bit 7)
Set Connection Encryption (Octet 2 - Bit 0)
Change Connection Link Key (Octet 2 - Bit 1)
Master Link Key (Octet 2 - Bit 2)
Remote Name Request (Octet 2 - Bit 3)
Remote Name Request Cancel (Octet 2 - Bit 4)
Read Remote Supported Features (Octet 2 - Bit 5)
Read Remote Extended Features (Octet 2 - Bit 6)
Read Remote Version Information (Octet 2 - Bit 7) Read Clock Offset (Octet 3 - Bit 0)
Read LMP Handle (Octet 3 - Bit 1)
Sniff Mode (Octet 4 - Bit 2)
Exit Sniff Mode (Octet 4 - Bit 3)
QoS Setup (Octet 4 - Bit 6)
Role Discovery (Octet 4 - Bit 7)
Switch Role (Octet 5 - Bit 0)
Read Link Policy Settings (Octet 5 - Bit 1)
Write Link Policy Settings (Octet 5 - Bit 2)
Read Default Link Policy Settings (Octet 5 - Bit 3) Write Default Link Policy Settings (Octet 5 - Bit 4) Flow Specification (Octet 5 - Bit 5)
Set Event Mask (Octet 5 - Bit 6)
Reset (Octet 5 - Bit 7)
Set Event Filter (Octet 6 - Bit 0)
Flush (Octet 6 - Bit 1)
Read PIN Type (Octet 6 - Bit 2)
Write PIN Type (Octet 6 - Bit 3)
Create New Unit Key (Octet 6 - Bit 4)
Read Stored Link Key (Octet 6 - Bit 5)
Write Stored Link Key (Octet 6 - Bit 6)
Delete Stored Link Key (Octet 6 - Bit 7)
Write Local Name (Octet 7 - Bit 0)
Read Local Name (Octet 7 - Bit 1)
Read Connection Accept Timeout (Octet 7 - Bit 2) Write Connection Accept Timeout (Octet 7 - Bit 3) Read Page Timeout (Octet 7 - Bit 4)
Write Page Timeout (Octet 7 - Bit 5)
Read Scan Enable (Octet 7 - Bit 6)
Write Scan Enable (Octet 7 - Bit 7)
Read Page Scan Activity (Octet 8 - Bit 0)
Write Page Scan Activity (Octet 8 - Bit 1)
Read Inquiry Scan Activity (Octet 8 - Bit 2)
Write Inquiry Scan Activity (Octet 8 - Bit 3)
Read Authentication Enable (Octet 8 - Bit 4)
Write Authentication Enable (Octet 8 - Bit 5)
Read Encryption Mode (Octet 8 - Bit 6)
Write Encryption Mode (Octet 8 - Bit 7)
Read Class of Device (Octet 9 - Bit 0)
Write Class of Device (Octet 9 - Bit 1)
Read Voice Setting (Octet 9 - Bit 2)
Write Voice Setting (Octet 9 - Bit 3)
Read Automatic Flush Timeout (Octet 9 - Bit 4)
Write Automatic Flush Timeout (Octet 9 - Bit 5)
Read Num Broadcast Retransmissions (Octet 9 - Bit 6) Write Num Broadcast Retransmissions (Octet 9 - Bit 7) Read Transmit Power Level (Octet 10 - Bit 2)
Read Sync Flow Control Enable (Octet 10 - Bit 3) Write Sync Flow Control Enable (Octet 10 - Bit 4)
Set Controller To Host Flow Control (Octet 10 - Bit 5) Host Buffer Size (Octet 10 - Bit 6)
Host Number of Completed Packets (Octet 10 - Bit 7) Read Link Supervision Timeout (Octet 11 - Bit 0) Write Link Supervision Timeout (Octet 11 - Bit 1) Read Number of Supported IAC (Octet 11 - Bit 2)
Read Current IAC LAP (Octet 11 - Bit 3)
Write Current IAC LAP (Octet 11 - Bit 4)
Read Page Scan Mode (Octet 11 - Bit 7)
Write Page Scan Mode (Octet 12 - Bit 0)
Set AFH Host Channel Classification (Octet 12 - Bit 1) Read Inquiry Scan Type (Octet 12 - Bit 4)
Write Inquiry Scan Type (Octet 12 - Bit 5)
Read Inquiry Mode (Octet 12 - Bit 6)
Write Inquiry Mode (Octet 12 - Bit 7)
Read Page Scan Type (Octet 13 - Bit 0)
Write Page Scan Type (Octet 13 - Bit 1)
Read AFH Channel Assessment Mode (Octet 13 - Bit 2) Write AFH Channel Assessment Mode (Octet 13 - Bit 3) Read Local Version Information (Octet 14 - Bit 3) Read Local Supported Features (Octet 14 - Bit 5)
Read Local Extended Features (Octet 14 - Bit 6)
Read Buffer Size (Octet 14 - Bit 7)
Read Country Code (Octet 15 - Bit 0)
Read BD ADDR (Octet 15 - Bit 1)
Read Failed Contact Counter (Octet 15 - Bit 2)
Reset Failed Contact Counter (Octet 15 - Bit 3)
Read Link Quality (Octet 15 - Bit 4)
Read RSSI (Octet 15 - Bit 5)
Read AFH Channel Map (Octet 15 - Bit 6)
Read Clock (Octet 15 - Bit 7)
Read Loopback Mode (Octet 16 - Bit 0)
Write Loopback Mode (Octet 16 - Bit 1)
Enable Device Under Test Mode (Octet 16 - Bit 2) Setup Synchronous Connection (Octet 16 - Bit 3) Accept Synchronous Connection Request (Octet 16 - Bit 4) Reject Synchronous Connection Request (Octet 16 - Bit 5) Read Extended Inquiry Response (Octet 17 - Bit 0) Write Extended Inquiry Response (Octet 17 - Bit 1) Refresh Encryption Key (Octet 17 - Bit 2)
Sniff Subrating (Octet 17 - Bit 4)
Read Simple Pairing Mode (Octet 17 - Bit 5)
Write Simple Pairing Mode (Octet 17 - Bit 6)
Read Local OOB Data (Octet 17 - Bit 7)
Read Inquiry Response TX Power Level (Octet 18 - Bit 0) Write Inquiry Transmit Power Level (Octet 18 - Bit 1) Read Default Erroneous Data Reporting (Octet 18 - Bit 2) Write Default Erroneous Data Reporting (Octet 18 - Bit 3) IO Capability Request Reply (Octet 18 - Bit 7)
User Confirmation Request Reply (Octet 19 - Bit 0) User Confirmation Request Neg Reply (Octet 19 - Bit 1) User Passkey Request Reply (Octet 19 - Bit 2)
User Passkey Request Negative Reply (Octet 19 - Bit 3) Remote OOB Data Request Reply (Octet 19 - Bit 4) Write Simple Pairing Debug Mode (Octet 19 - Bit 5) Enhanced Flush (Octet 19 - Bit 6)
Remote OOB Data Request Neg Reply (Octet 19 - Bit 7) Send Keypress Notification (Octet 20 - Bit 2)
IO Capability Request Negative Reply (Octet 20 - Bit 3) Read Encryption Key Size (Octet 20 - Bit 4)
Set Event Mask Page 2 (Octet 22 - Bit 2)
Read Enhanced Transmit Power Level (Octet 24 - Bit 0) Enhanced Setup Synchronous Connection (Octet 29 - Bit 3) Enhanced Accept Synchronous Connection Request (Octet 29 - Bit 4) Read Local Supported Codecs (Octet 29 - Bit 5)
Set Triggered Clock Capture (Octet 30 - Bit 5) Truncated Page (Octet 30 - Bit 6)
Truncated Page Cancel (Octet 30 - Bit 7)
Set Connectionless Slave Broadcast (Octet 31 - Bit 0) Start Synchronization Train (Octet 31 - Bit 2)
Set ReservedLT_ADDR(Octet 31 - Bit 4)
Delete ReservedLT_ADDR(Octet 31 - Bit 5)
Set Connectionless Slave Broadcast Data (Octet 31 - Bit 6) Read Synchronization Train Parameters (Octet 31 - Bit 7) Write Synchronization Train Parameters (Octet 32 - Bit 0) Remote OOB Extended Data Request Reply (Octet 32 - Bit 1) Read Authenticated Payload Timeout (Octet 32 - Bit 4) Write Authenticated Payload Timeout (Octet 32 - Bit 5) Read Local OOB Extended Data (Octet 32 - Bit 6)
Write Secure Connections Test Mode (Octet 32 - Bit 7) Read Extended Page Timeout (Octet 33 - Bit 0)
Write Extended Page Timeout (Octet 33 - Bit 1)
Read Extended Inquiry Length (Octet 33 - Bit 2)
Write Extended Inquiry Length (Octet 33 - Bit 3)
LE Set Data Length (Octet 33 - Bit 6)
LE Read Suggested Default Data Length (Octet 33 - Bit 7) LE Write Suggested Default Data Length (Octet 34 - Bit 0) LE Read Local P-256 Public Key (Octet 34 - Bit 1)
LE Generate DHKey (Octet 34 - Bit 2)
LE Add Device To Resolving List (Octet 34 - Bit 3)
LE Remove Device From Resolving List (Octet 34 - Bit 4) LE Clear Resolving List (Octet 34 - Bit 5)
LE Read Resolving List Size (Octet 34 - Bit 6)
LE Read Peer Resolvable Address (Octet 34 - Bit 7)
LE Read Local Resolvable Address (Octet 35 - Bit 0)Quoted 8 lines
LE Set Address Resolution Enable (Octet 35 - Bit 1) LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2) LE Read Maximum Data Length (Octet 35 - Bit 3) Octet 35 - Bit 4
Octet 35 - Bit 5
Octet 35 - Bit 6
Octet 35 - Bit 7
Octet 36 - Bit 0
Quoted 2 lines
So you support the PHY commands, but do not indicate support LE 2M or LE Coded? Also these are Bluetooth 5.0 commands.
To be honest. When I ported the device into Bluez core, a unexpected event for LE read local feature would cause a fail at Bluez core, so I made a hack on Bluez core
to allow that I can keeping bring up the device without be blocked by the issue most probably from firmware.
Below code snippet is the only thing I added to avoid a fail at Bluez core to bring up the device.
@@ -927,6 +927,8 @@ static void hci_cc_le_read_local_features(struct hci_dev *hdev,
return;
memcpy(hdev->le_features, rp->features, 8);+ hdev->le_features[0] = 0;
+ hdev->le_features[1] = 0;
}
Quoted 245 lines
Quoted 167 lines
< HCI Command: Write Simple Pairing Mode (0x03|0x0056) plen 1 [hci0] 10.869023
Mode: Enabled (0x01)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869185Write Simple Pairing Mode (0x03|0x0056) ncmd 1 Status: Success (0x00) < HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1 [hci0] 10.869239 Mode: Inquiry Result with RSSI or Extended Inquiry Result (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869371Write Inquiry Mode (0x03|0x0045) ncmd 1 Status: Success (0x00)< HCI Command: Read Inquiry Response T.. (0x03|0x0058) plen 0 [hci0] 10.869396
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.869552Read Inquiry Response TX Power Level (0x03|0x0058) ncmd 1 Status: Success (0x00) TX power: -1 dBm < HCI Command: Read Local Extended Fea.. (0x04|0x0004) plen 1 [hci0] 10.869572 Page: 1Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 14 [hci0] 10.869729Read Local Extended Features (0x04|0x0004) ncmd 1 Status: Success (0x00) Page: 1/2 Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Secure Simple Pairing (Host Support)< HCI Command: Set Event Mask (0x03|0x0001) plen 8 [hci0] 10.869783
Mask:0x3dbff807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete Authentication Complete
Remote Name Request Complete Encryption Change
Change Connection Link Key Complete Master Link Key Complete
Read Remote Supported Features Complete Read Remote Version Information Complete QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete Synchronous Connection Complete Synchronous Connection Changed Sniff Subrating
Extended Inquiry Result
Encryption Key Refresh Complete
IO Capability Request
IO Capability Request Reply
User Confirmation Request
User Passkey Request
Remote OOB Data Request
Simple Pairing Complete
Link Supervision Timeout Changed Enhanced Flush Complete
User Passkey Notification
Keypress Notification
Remote Host Supported Features Notification LE MetaQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.869921Set Event Mask (0x03|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 [hci0] 10.869947 Address: 00:00:00:00:00:00 (OUI 00-00-00) Read all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.870129Read Stored Link Key (0x03|0x000d) ncmd 1
Status: Success (0x00)
Max num keys: 4
Num keys: 0
< HCI Command: Write Default Link Poli.. (0x02|0x000f) plen 2 [hci0] 10.870148
Link policy:0x0005
Enable Role Switch
Enable Sniff ModeQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.870310Write Default Link Policy Settings (0x02|0x000f) ncmd 1 Status: Success (0x00)< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 [hci0] 10.870331
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.870485Read Page Scan Activity (0x03|0x001b) ncmd 1 Status: Success (0x00) Interval: 1280.000 msec (0x0800) Window: 11.250 msec (0x0012)< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 [hci0] 10.870504
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.870652Read Page Scan Type (0x03|0x0046) ncmd 1 Status: Success (0x00) Type: Standard Scan (0x00)< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 [hci0] 10.870671
Mask:0x0000000000000980
LE Read Local P-256 Public Key Complete
LE Generate DHKey Complete
Unknown mask (0x0000000000000800)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.870839LE Set Event Mask (0x08|0x0001) ncmd 1 Status: Success (0x00) < HCI Command: Write LE Host Supported (0x03|0x006d) plen 2 [hci0] 10.870859 Supported: 0x01 Simultaneous: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.871028Write LE Host Supported (0x03|0x006d) ncmd 1 Status: Success (0x00) < HCI Command: Read Local Extended Fea.. (0x04|0x0004) plen 1 [hci0] 10.871059 Page: 2Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 14 [hci0] 10.871201Read Local Extended Features (0x04|0x0004) ncmd 1 Status: Success (0x00) Page: 2/2 Features: 0x25 0x0b 0x00 0x00 0x00 0x00 0x00 0x00 Connectionless Slave Broadcast - Master Synchronization Train Generalized interlaced scan Secure Connections (Controller Support) Ping Train nudging < HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7 [hci0] 10.871240 Address: 00:00:00:00:00:00 (OUI 00-00-00) Delete all: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 10.871384Delete Stored Link Key (0x03|0x0012) ncmd 1 Status: Success (0x00) Num keys: 0< HCI Command: Set Event Mask Page 2 (0x03|0x0063) plen 8 [hci0] 10.871403
Mask:0x0000000000b0c000
Triggered Clock Capture
Synchronization Train Complete
Slave Page Response Timeout Connectionless Slave Broadcast Channel Map Change Authenticated Payload Timeout ExpiredQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.871566Set Event Mask Page 2 (0x03|0x0063) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Co.. (0x04|0x000b) plen 0 [hci0] 10.871599
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.871750Read Local Supported Codecs (0x04|0x000b) ncmd 1 Status: Success (0x00) Number of supported codecs: 2 Codec: CVSD (0x02) Codec: Transparent (0x03) Number of vendor codecs: 0< HCI Command: Read Synchronization Tr.. (0x03|0x0077) plen 0 [hci0] 10.871769
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 10.871928Read Synchronization Train Parameters (0x03|0x0077) ncmd 1 Status: Success (0x00) Interval: 0.000 msec (0x0000) Timeout: 0.000 msec (0x00000000) Service data: 0x00 < HCI Command: Write Secure Connection.. (0x03|0x007a) plen 1 [hci0] 10.871947 Support: Enabled (0x01)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872098Quoted 8 lines
Write Secure Connections Host Support (0x03|0x007a) ncmd 1 Status: Success (0x00)< HCI Command: Unknown (0x08|0x0031) plen 3 [hci0] 10.872156
03 00 00 ...Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872322Unknown (0x08|0x0031) ncmd 1 Status: Success (0x00)= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 10.872361
This extra index info worries me a little bit. I need to check if that is suppose to happen.
Quoted 56 lines
< HCI Command: LE Set Scan Response D.. (0x08|0x0009) plen 32 [hci0] 10.872431
Length: 10
Name (complete): builderQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872606LE Set Scan Response Data (0x08|0x0009) ncmd 1 Status: Success (0x00) < HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 10.872627 Scan enable: Page Scan (0x02)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.872819Write Scan Enable (0x03|0x001a) ncmd 1 Status: Success (0x00) < HCI Command: Write Class of Device (0x03|0x0024) plen 3 [hci0] 10.872841 Class: 0x000000 Major class: Miscellaneous Minor class: 0x00Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873036Write Class of Device (0x03|0x0024) ncmd 1 Status: Success (0x00) * Unknown packet (code 17 len 9) [hci0] 10.873069 02 00 00 00 07 00 00 00 00 ......... * Unknown packet (code 17 len 9) [hci0] 10.873069 01 00 00 00 07 00 00 00 00 .........< HCI Command: Write Local Name (0x03|0x0013) plen 248 [hci0] 10.873096
Name: builderQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873446Write Local Name (0x03|0x0013) ncmd 1 Status: Success (0x00) < HCI Command: Write Extended Inquir.. (0x03|0x0052) plen 241 [hci0] 10.873470 FEC: Not required (0x00) Name (complete): builder TX power: -1 dBm Device ID: USB Implementer's Forum assigned (0x0002) Vendor: Linux Foundation (0x1d6b) Product: 0x0246 Version: 5.2.11 (0x052b) 16-bit Service UUIDs (complete): 4 entries Generic Access Profile (0x1800) Generic Attribute Profile (0x1801) A/V Remote Control (0x110e) A/V Remote Control Target (0x110c)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.873857Write Extended Inquiry Response (0x03|0x0052) ncmd 1 Status: Success (0x00) * Unknown packet (code 17 len 13) [hci0] 10.873903 01 00 00 00 01 00 05 00 00 d1 0a 00 00 ............. * Unknown packet (code 17 len 10) [hci0] 10.873913 02 00 00 00 06 00 d1 0a 00 00 .......... * Unknown packet (code 16 len 7) [hci0] 17.803939 01 00 00 00 05 00 00 ....... < HCI Command: Write Scan Enable (0x03|0x001a) plen 1 [hci0] 17.803983 Scan enable: No Scans (0x00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 17.804233Write Scan Enable (0x03|0x001a) ncmd 1 Status: Success (0x00) < HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 17.804282 01 06 02 00 00 00 ......Quoted 7 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 17.80463602 06 01 00 00 ..... * Unknown packet (code 17 len 13) [hci0] 17.811580 01 00 00 00 01 00 05 00 00 d0 0a 00 00 ............. * Unknown packet (code 17 len 10) [hci0] 17.811596 02 00 00 00 06 00 d0 0a 00 00 ..........= Close Index: 00:00:46:76:22:01 [hci0] 17.811625
Regards
Marcel
Marcel Holtmann
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Hi Sean,
Quoted 23 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
[ ... ]
[ ... ]
Quoted 18 lines
Quoted 17 lines
I post it as plain text as below
Bluetooth monitor ver 5.37
= Note: Linux version 4.16.0-rc1+ (aarch64) 0.641494
= Note: Bluetooth subsystem version 2.22 0.641502
= New Index: 00:00:46:76:22:01 (BR/EDR,UART,hci0) [hci0] 0.641505
* Unknown packet (code 14 len 30) 0.64150901 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 6c ..............bl 75 65 74 6f 6f 74 68 64 00 00 00 00 00 00 uetoothd...... * Unknown packet (code 14 len 30) 0.641592 02 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 74 ..............bt 6d 6f 6e 00 00 00 00 00 00 00 00 00 00 00 mon........... * Unknown packet (code 16 len 7) [hci0] 6.536771 01 00 00 00 05 00 01 .......= Open Index: 00:00:46:76:22:01 [hci0] 6.717019
= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 6.717030
Quoted 4 lines
Quoted 2 lines
can you try with the latest BlueZ 5.49 or git version. Seems it actually stumbles over the extra packet here. Fun fact is that I can not get a backtrace to pin-point the issue in btmon and why it crashes.
I had less experience updating user land BlueZ, but I can try it as possible and see whether Unknown packets still are present at newest version BlueZ. Hopefully I don't misunderstand your point here.
please use the latest btmon and check if it can read your trace.
Quoted 155 lines
Quoted 155 lines
Quoted 154 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74109302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74208802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74310202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74410502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74510902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74610402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74709702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74809002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74907802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75007002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75106102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75205402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75304602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75403802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75503102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75602502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75701302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75800602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75899902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.75999102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76098302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76197502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76296302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76395602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76494802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76594102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76693302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76792602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76891902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.76991402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77090902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77190802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77290402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77389802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77489202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77589002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77688202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77787702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77887102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.77986902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78086402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78185802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78285202 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78385002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78484502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78583902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78683302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78783102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78882602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.78982002 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79081402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79181302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79280902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79380302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79479802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79579702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79679102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79778602 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79877902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.79977802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80077402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80176902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80276302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80376102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80475502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80574902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80674302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80774102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80873702 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.80973102 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81072502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81172502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81271902 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81371402 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81470802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81570502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81637802 01 01 00 00 .....
Quoted 8 lines
Quoted 2 lines
Why do I see only HCI events here? Is this event conveying any useful information. It is kinda complicated that this is
0xe4event code which is actually reserved for future use by the Bluetooth SIG. Are there any accompanying HCI commands for this and they just not make it into btmon?I have made all vendor HCI commands go through BlueZ core in v2 patch.
And for these HCI events, they are all corresponding to vendor ACL data, applied only to firmware setup packets, but they're not being sent via BlueZ core, so they are not being logged in btmon.
As for its event, where heading
0xe4refers to a vendor event and is used on notification of that either vendor ACL data or vendor HCI command have been done.
I would prefer if everything goes via the Bluetooth core since then we have it all properly scheduled. Sending things down the ACL data path however if kinda funky. Does your hardware accept sending command both via ACL data and as HCI command? If so, then I would prefer sending them as HCI commands since the speed improvement you think you are getting is neglectable on Linux (I have been down that path). This seems to be a pure optimization when Windows is driving the device.
And the vendor event 0xe4 is really only received during firmware download? It is not ever received during normal operation?
Quoted 75 lines
Quoted 5 lines
Quoted 5 lines
< HCI Command: Vendor (0x3f|0x006f) plen 5 [hci0] 6.816413
01 07 01 00 04 .....Quoted 9 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81653602 07 01 00 00 ..... < HCI Command: Vendor (0x3f|0x006f) plen 6 [hci0] 8.845071 01 06 02 00 00 01 ......Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 8.92345602 06 01 00 00 .....Here it looks like you have
0x006fopcode with first octet0x01for command and then vendor event0xe4with first octet0x02for event. I assume the second octet is then the vendor command code for these.Yes, you're right.
Quoted 58 lines
Quoted 58 lines
< HCI Command: Reset (0x03|0x0003) plen 0 [hci0] 10.861118
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.865763Reset (0x03|0x0003) ncmd 1 Status: Success (0x00)< HCI Command: Read Local Supported Fe.. (0x04|0x0003) plen 0 [hci0] 10.865805
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.865965Read Local Supported Features (0x04|0x0003) ncmd 1
Status: Success (0x00)
Features:0xbf0x3e0x8d0xfe0xdb0xff0x7b0x87
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Sniff mode
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
CVSD synchronous data
Power control
Transparent synchronous data
Broadcast Encryption
Enhanced Data Rate ACL 2 Mbps mode
Enhanced Data Rate ACL 3 Mbps mode
Enhanced inquiry scan
Interlaced inquiry scan
Interlaced page scan
RSSI with inquiry results
Extended SCO link (EV3 packets)
EV4 packets
EV5 packets
AFH capable slave
AFH classification slave
LE Supported (Controller)
3-slot Enhanced Data Rate ACL packets
5-slot Enhanced Data Rate ACL packets
Sniff subrating
Pause encryption
AFH capable master
AFH classification master
Enhanced Data Rate eSCO 2 Mbps mode
Enhanced Data Rate eSCO 3 Mbps mode
3-slot Enhanced Data Rate eSCO packets
Extended Inquiry Response
Simultaneous LE and BR/EDR (Controller)
Secure Simple Pairing
Encapsulated PDU
Erroneous Data Reporting
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Enhanced Power Control
Extended features
< HCI Command: Read Local Version Info.. (0x04|0x0001) plen 0 [hci0] 10.865987Quoted 1 line
HCI Event: Vendor (
0xff) plen 9 [hci0] 10.866259
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
29 19 09 17 20 48 07 11 00 )... H?Is this meant to happen here?
If event received is not expected as the specification defines, I think it's probably incorrect.
But it requires more discussion with firmware people to make it clearer.
Please check and let them decode what this event means.
Quoted 328 lines
Quoted 318 lines
Quoted 309 lines
Quoted 2 lines
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.866372Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: Bluetooth 4.2 (0x08) - Revision 4359 (0x1107) LMP version: Bluetooth 4.2 (0x08) - Subversion 2329 (0x0919) Manufacturer: MediaTek, Inc. (70)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 10.866391
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 10.866539Read BD ADDR (0x04|0x0009) ncmd 1 Status: Success (0x00) Address: 00:00:46:76:22:01 (OLIVETTI NORTH AMERICA)< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 [hci0] 10.866609
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 11 [hci0] 10.866754Read Buffer Size (0x04|0x0005) ncmd 1
Status: Success (0x00)
ACL MTU: 1021 ACL max packet: 8
SCO MTU: 184 SCO max packet: 1
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 [hci0] 10.866775Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.866920Read Class of Device (0x03|0x0023) ncmd 1 Status: Success (0x00) Class: 0x001f00 Major class: Uncategorized, specific device code not specified Minor class: 0x00< HCI Command: Read Local Name (0x03|0x0014) plen 0 [hci0] 10.866939
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 252 [hci0] 10.867256Read Local Name (0x03|0x0014) ncmd 1 Status: Success (0x00) Name: MTK MT7622 #1< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 [hci0] 10.867308
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 [hci0] 10.867447Read Voice Setting (0x03|0x0025) ncmd 1
Status: Success (0x00)
Setting:0x0060
Input Coding: Linear
Input Data Format: 2's complement
Input Sample Size: 16-bit
# of bits padding at MSB: 0
Air Coding Format: CVSD
< HCI Command: Read Number of Supporte.. (0x03|0x0038) plen 0 [hci0] 10.867474Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 5 [hci0] 10.867611Read Number of Supported IAC (0x03|0x0038) ncmd 1 Status: Success (0x00) Number of IAC: 4< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 [hci0] 10.867678
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 8 [hci0] 10.867865Read Current IAC LAP (0x03|0x0039) ncmd 1 Status: Success (0x00) Number of IAC: 1 Access code: 0x9e8b33 (General Inquiry) < HCI Command: Set Event Filter (0x03|0x0005) plen 1 [hci0] 10.867890 Type: Clear All Filters (0x00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868033Set Event Filter (0x03|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: Write Connection Accept.. (0x03|0x0016) plen 2 [hci0] 10.868054 Timeout: 20000.000 msec (0x7d00)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4 [hci0] 10.868235Write Connection Accept Timeout (0x03|0x0016) ncmd 1 Status: Success (0x00)< HCI Command: LE Read Buffer Size (0x08|0x0002) plen 0 [hci0] 10.868262
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 7 [hci0] 10.868392LE Read Buffer Size (0x08|0x0002) ncmd 1
Status: Success (0x00)
Data packet length: 251
Num data packets: 8
< HCI Command: LE Read Local Supported.. (0x08|0x0003) plen 0 [hci0] 10.868413Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868587LE Read Local Supported Features (0x08|0x0003) ncmd 1
Status: Success (0x00)
Features:0xfd0x000x000x000x000x000x000x00
LE Encryption
Extended Reject Indication Slave-initiated Features Exchange
LE Ping
LE Data Packet Length Extension
LL Privacy
Extended Scanner Filter Policies
< HCI Command: LE Read Supported States (0x08|0x001c) plen 0 [hci0] 10.868646Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.868787LE Read Supported States (0x08|0x001c) ncmd 1
Status: Success (0x00)
States:0x000000001fffffff
Non-connectable Advertising State
Scannable Advertising State
Connectable Advertising State
High Duty Cycle Directed Advertising State
Passive Scanning State
Active Scanning State
Initiating State
and Connection State (Master Role)
Connection State (Slave Role)
Non-connectable Advertising State
and Passive Scanning State
Scannable Advertising State
and Passive Scanning State
Connectable Advertising State
and Passive Scanning State
High Duty Cycle Directed Advertising State
and Passive Scanning State
Non-connectable Advertising State
and Active Scanning State
Scannable Advertising State
and Active Scanning State
Connectable Advertising State
and Active Scanning State
High Duty Cycle Directed Advertising State
and Active Scanning State
Non-connectable Advertising State
and Initiating State
Scannable Advertising State
and Initiating State
Non-connectable Advertising State
and Connection State (Master Role)
Scannable Advertising State
and Connection State (Master Role)
Non-connectable Advertising State
and Connection State (Slave Role)
Scannable Advertising State
and Connection State (Slave Role)
Passive Scanning State
and Initiating State
Active Scanning State
and Initiating State
Passive Scanning State
and Connection State (Master Role)
Active Scanning State
and Connection State (Master Role)
Passive Scanning State
and Connection State (Slave Role)
Active Scanning State
and Connection State (Slave Role)
Initiating State
and Connection State (Master Role)
and Master Role & Master Role
< HCI Command: Read Local Supported Co.. (0x04|0x0002) plen 0 [hci0] 10.868807Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 68 [hci0] 10.868985Read Local Supported Commands (0x04|0x0002) ncmd 1
Status: Success (0x00)
Commands: 176 entries
Inquiry (Octet 0 - Bit 0)
Inquiry Cancel (Octet 0 - Bit 1)
Periodic Inquiry Mode (Octet 0 - Bit 2)
Exit Periodic Inquiry Mode (Octet 0 - Bit 3)
Create Connection (Octet 0 - Bit 4)
Disconnect (Octet 0 - Bit 5)
Add SCO Connection (Octet 0 - Bit 6)
Create Connection Cancel (Octet 0 - Bit 7)
Accept Connection Request (Octet 1 - Bit 0)
Reject Connection Request (Octet 1 - Bit 1)
Link Key Request Reply (Octet 1 - Bit 2)
Link Key Request Negative Reply (Octet 1 - Bit 3)
PIN Code Request Reply (Octet 1 - Bit 4)
PIN Code Request Negative Reply (Octet 1 - Bit 5) Change Connection Packet Type (Octet 1 - Bit 6) Authentication Requested (Octet 1 - Bit 7)
Set Connection Encryption (Octet 2 - Bit 0)
Change Connection Link Key (Octet 2 - Bit 1)
Master Link Key (Octet 2 - Bit 2)
Remote Name Request (Octet 2 - Bit 3)
Remote Name Request Cancel (Octet 2 - Bit 4)
Read Remote Supported Features (Octet 2 - Bit 5)
Read Remote Extended Features (Octet 2 - Bit 6)
Read Remote Version Information (Octet 2 - Bit 7) Read Clock Offset (Octet 3 - Bit 0)
Read LMP Handle (Octet 3 - Bit 1)
Sniff Mode (Octet 4 - Bit 2)
Exit Sniff Mode (Octet 4 - Bit 3)
QoS Setup (Octet 4 - Bit 6)
Role Discovery (Octet 4 - Bit 7)
Switch Role (Octet 5 - Bit 0)
Read Link Policy Settings (Octet 5 - Bit 1)
Write Link Policy Settings (Octet 5 - Bit 2)
Read Default Link Policy Settings (Octet 5 - Bit 3) Write Default Link Policy Settings (Octet 5 - Bit 4) Flow Specification (Octet 5 - Bit 5)
Set Event Mask (Octet 5 - Bit 6)
Reset (Octet 5 - Bit 7)
Set Event Filter (Octet 6 - Bit 0)
Flush (Octet 6 - Bit 1)
Read PIN Type (Octet 6 - Bit 2)
Write PIN Type (Octet 6 - Bit 3)
Create New Unit Key (Octet 6 - Bit 4)
Read Stored Link Key (Octet 6 - Bit 5)
Write Stored Link Key (Octet 6 - Bit 6)
Delete Stored Link Key (Octet 6 - Bit 7)
Write Local Name (Octet 7 - Bit 0)
Read Local Name (Octet 7 - Bit 1)
Read Connection Accept Timeout (Octet 7 - Bit 2) Write Connection Accept Timeout (Octet 7 - Bit 3) Read Page Timeout (Octet 7 - Bit 4)
Write Page Timeout (Octet 7 - Bit 5)
Read Scan Enable (Octet 7 - Bit 6)
Write Scan Enable (Octet 7 - Bit 7)
Read Page Scan Activity (Octet 8 - Bit 0)
Write Page Scan Activity (Octet 8 - Bit 1)
Read Inquiry Scan Activity (Octet 8 - Bit 2)
Write Inquiry Scan Activity (Octet 8 - Bit 3)
Read Authentication Enable (Octet 8 - Bit 4)
Write Authentication Enable (Octet 8 - Bit 5)
Read Encryption Mode (Octet 8 - Bit 6)
Write Encryption Mode (Octet 8 - Bit 7)
Read Class of Device (Octet 9 - Bit 0)
Write Class of Device (Octet 9 - Bit 1)
Read Voice Setting (Octet 9 - Bit 2)
Write Voice Setting (Octet 9 - Bit 3)
Read Automatic Flush Timeout (Octet 9 - Bit 4)
Write Automatic Flush Timeout (Octet 9 - Bit 5)
Read Num Broadcast Retransmissions (Octet 9 - Bit 6) Write Num Broadcast Retransmissions (Octet 9 - Bit 7) Read Transmit Power Level (Octet 10 - Bit 2)
Read Sync Flow Control Enable (Octet 10 - Bit 3) Write Sync Flow Control Enable (Octet 10 - Bit 4)
Set Controller To Host Flow Control (Octet 10 - Bit 5) Host Buffer Size (Octet 10 - Bit 6)
Host Number of Completed Packets (Octet 10 - Bit 7) Read Link Supervision Timeout (Octet 11 - Bit 0) Write Link Supervision Timeout (Octet 11 - Bit 1) Read Number of Supported IAC (Octet 11 - Bit 2)
Read Current IAC LAP (Octet 11 - Bit 3)
Write Current IAC LAP (Octet 11 - Bit 4)
Read Page Scan Mode (Octet 11 - Bit 7)
Write Page Scan Mode (Octet 12 - Bit 0)
Set AFH Host Channel Classification (Octet 12 - Bit 1) Read Inquiry Scan Type (Octet 12 - Bit 4)
Write Inquiry Scan Type (Octet 12 - Bit 5)
Read Inquiry Mode (Octet 12 - Bit 6)
Write Inquiry Mode (Octet 12 - Bit 7)
Read Page Scan Type (Octet 13 - Bit 0)
Write Page Scan Type (Octet 13 - Bit 1)
Read AFH Channel Assessment Mode (Octet 13 - Bit 2) Write AFH Channel Assessment Mode (Octet 13 - Bit 3) Read Local Version Information (Octet 14 - Bit 3) Read Local Supported Features (Octet 14 - Bit 5)
Read Local Extended Features (Octet 14 - Bit 6)
Read Buffer Size (Octet 14 - Bit 7)
Read Country Code (Octet 15 - Bit 0)
Read BD ADDR (Octet 15 - Bit 1)
Read Failed Contact Counter (Octet 15 - Bit 2)
Reset Failed Contact Counter (Octet 15 - Bit 3)
Read Link Quality (Octet 15 - Bit 4)
Read RSSI (Octet 15 - Bit 5)
Read AFH Channel Map (Octet 15 - Bit 6)
Read Clock (Octet 15 - Bit 7)
Read Loopback Mode (Octet 16 - Bit 0)
Write Loopback Mode (Octet 16 - Bit 1)
Enable Device Under Test Mode (Octet 16 - Bit 2) Setup Synchronous Connection (Octet 16 - Bit 3) Accept Synchronous Connection Request (Octet 16 - Bit 4) Reject Synchronous Connection Request (Octet 16 - Bit 5) Read Extended Inquiry Response (Octet 17 - Bit 0) Write Extended Inquiry Response (Octet 17 - Bit 1) Refresh Encryption Key (Octet 17 - Bit 2)
Sniff Subrating (Octet 17 - Bit 4)
Read Simple Pairing Mode (Octet 17 - Bit 5)
Write Simple Pairing Mode (Octet 17 - Bit 6)
Read Local OOB Data (Octet 17 - Bit 7)
Read Inquiry Response TX Power Level (Octet 18 - Bit 0) Write Inquiry Transmit Power Level (Octet 18 - Bit 1) Read Default Erroneous Data Reporting (Octet 18 - Bit 2) Write Default Erroneous Data Reporting (Octet 18 - Bit 3) IO Capability Request Reply (Octet 18 - Bit 7)
User Confirmation Request Reply (Octet 19 - Bit 0) User Confirmation Request Neg Reply (Octet 19 - Bit 1) User Passkey Request Reply (Octet 19 - Bit 2)
User Passkey Request Negative Reply (Octet 19 - Bit 3) Remote OOB Data Request Reply (Octet 19 - Bit 4) Write Simple Pairing Debug Mode (Octet 19 - Bit 5) Enhanced Flush (Octet 19 - Bit 6)
Remote OOB Data Request Neg Reply (Octet 19 - Bit 7) Send Keypress Notification (Octet 20 - Bit 2)
IO Capability Request Negative Reply (Octet 20 - Bit 3) Read Encryption Key Size (Octet 20 - Bit 4)
Set Event Mask Page 2 (Octet 22 - Bit 2)
Read Enhanced Transmit Power Level (Octet 24 - Bit 0) Enhanced Setup Synchronous Connection (Octet 29 - Bit 3) Enhanced Accept Synchronous Connection Request (Octet 29 - Bit 4) Read Local Supported Codecs (Octet 29 - Bit 5)
Set Triggered Clock Capture (Octet 30 - Bit 5) Truncated Page (Octet 30 - Bit 6)
Truncated Page Cancel (Octet 30 - Bit 7)
Set Connectionless Slave Broadcast (Octet 31 - Bit 0) Start Synchronization Train (Octet 31 - Bit 2)
Set ReservedLT_ADDR(Octet 31 - Bit 4)
Delete ReservedLT_ADDR(Octet 31 - Bit 5)
Set Connectionless Slave Broadcast Data (Octet 31 - Bit 6) Read Synchronization Train Parameters (Octet 31 - Bit 7) Write Synchronization Train Parameters (Octet 32 - Bit 0) Remote OOB Extended Data Request Reply (Octet 32 - Bit 1) Read Authenticated Payload Timeout (Octet 32 - Bit 4) Write Authenticated Payload Timeout (Octet 32 - Bit 5) Read Local OOB Extended Data (Octet 32 - Bit 6)
Write Secure Connections Test Mode (Octet 32 - Bit 7) Read Extended Page Timeout (Octet 33 - Bit 0)
Write Extended Page Timeout (Octet 33 - Bit 1)
Read Extended Inquiry Length (Octet 33 - Bit 2)
Write Extended Inquiry Length (Octet 33 - Bit 3)
LE Set Data Length (Octet 33 - Bit 6)
LE Read Suggested Default Data Length (Octet 33 - Bit 7) LE Write Suggested Default Data Length (Octet 34 - Bit 0) LE Read Local P-256 Public Key (Octet 34 - Bit 1)
LE Generate DHKey (Octet 34 - Bit 2)
LE Add Device To Resolving List (Octet 34 - Bit 3)
LE Remove Device From Resolving List (Octet 34 - Bit 4) LE Clear Resolving List (Octet 34 - Bit 5)
LE Read Resolving List Size (Octet 34 - Bit 6)
LE Read Peer Resolvable Address (Octet 34 - Bit 7)
LE Read Local Resolvable Address (Octet 35 - Bit 0)Quoted 8 lines
LE Set Address Resolution Enable (Octet 35 - Bit 1) LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2) LE Read Maximum Data Length (Octet 35 - Bit 3) Octet 35 - Bit 4
Octet 35 - Bit 5
Octet 35 - Bit 6
Octet 35 - Bit 7
Octet 36 - Bit 0Quoted 2 lines
So you support the PHY commands, but do not indicate support LE 2M or LE Coded? Also these are Bluetooth 5.0 commands.
To be honest. When I ported the device into Bluez core, a unexpected event for LE read local feature would cause a fail at Bluez core, so I made a hack on Bluez core
to allow that I can keeping bring up the device without be blocked by the issue most probably from firmware.
Below code snippet is the only thing I added to avoid a fail at Bluez core to bring up the device.
Review static void hci_cc_le_read_local_features(struct hci_dev *hdev, · line 932
Quoted 6 lines
(quoted diff) +2
-0@@ -927,6 +927,8 @@ static void hci_cc_le_read_local_features(struct hci_dev *hdev, return; memcpy(hdev->le_features, rp->features, 8); + hdev->le_features[0] = 0; + hdev->le_features[1] = 0; }
Send me the trace where you didn?t clear the feature bits and I check what is going on. I doubt that we have a bug, but maybe some of the commands are optional and we should add an appropriate check. Or you guys need to fix your firmware. A new btmon should decode all bits properly.
Regards
Marcel
Sean Wang
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Quoted 3 lines · Marcel Holtmann
Hi Sean,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[ ... ]
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
* Unknown packet (code 14 len 30) 0.641509
01 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 6c ..............bl 75 65 74 6f 6f 74 68 64 00 00 00 00 00 00 uetoothd...... * Unknown packet (code 14 len 30) 0.641592 02 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 74 ..............bt 6d 6f 6e 00 00 00 00 00 00 00 00 00 00 00 mon........... * Unknown packet (code 16 len 7) [hci0] 6.536771 01 00 00 00 05 00 01 .......= Open Index: 00:00:46:76:22:01 [hci0] 6.717019
= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 6.717030
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
can you try with the latest BlueZ 5.49 or git version. Seems it actually stumbles over the extra packet here. Fun fact is that I can not get a backtrace to pin-point the issue in btmon and why it crashes.
I had less experience updating user land BlueZ, but I can try it as possible and see whether Unknown packets still are present at newest version BlueZ. Hopefully I don't misunderstand your point here.
please use the latest btmon and check if it can read your trace.
sure, I'll have a try with the latest btmon.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74109302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74208802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74310202 01 01 00 00 .....
[ ... ]
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81470802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81570502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81637802 01 01 00 00 .....Why do I see only HCI events here? Is this event conveying any useful information. It is kinda complicated that this is
0xe4event code which is actually reserved for future use by the Bluetooth SIG. Are there any accompanying HCI commands for this and they just not make it into btmon?
Quoted 8 lines
Quoted 5 lines
I have made all vendor HCI commands go through BlueZ core in v2 patch.
And for these HCI events, they are all corresponding to vendor ACL data, applied only to firmware setup packets, but they're not being sent via BlueZ core, so they are not being logged in btmon.
As for its event, where heading
0xe4refers to a vendor event and is used on notification of that either vendor ACL data or vendor HCI command have been done.I would prefer if everything goes via the Bluetooth core since then we have it all properly scheduled. Sending things down the ACL data path however if kinda funky. Does your hardware accept sending command both via ACL data and as HCI command? If so, then I would prefer sending them as HCI commands since the speed improvement you think you are getting is neglectable on Linux (I have been down that path). This seems to be a pure optimization when Windows is driving the device.
firmware people said the device can support firmware download as HCI commands. According to my test, this way indeed works so I will improve the part in the next version.
Quoted 2 lines
And the vendor event
0xe4is really only received during firmware download? It is not ever received during normal operation?
0xe4 is only received during chip initialization.
I also thought 0xe4 is a poor definition for vendor event and already have notified firmware people should pick 0xff as its vendor event id in the future.
but for now, unfortunately, 0xe4 cannot be changed on the device, the only way is to add a workaround in RX path as below to allow btmon can recognize these bad events properly.
int mtk_btuart_hci_frame(struct hci_dev *hdev, struct sk_buff *skb)
{
struct hci_event_hdr *hdr = (void *)skb->data;
/* Fix up the vendor event id with HCI_VENDOR_PKT instead of
* 0xe4 so that btmon can parse the kind of vendor event properly.
*/
if (hdr->evt == 0xe4)
hdr->evt = HCI_VENDOR_PKT;
/* Each HCI event would go through the core. */
return hci_recv_frame(hdev, skb);
}Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
< HCI Command: Vendor (0x3f|0x006f) plen 5 [hci0] 6.816413
01 07 01 00 04 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81653602 07 01 00 00 .....
[ ... ]
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Encapsulated PDU
Erroneous Data Reporting
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Enhanced Power Control
Extended features
< HCI Command: Read Local Version Info.. (0x04|0x0001) plen 0 [hci0] 10.865987Quoted 1 line
HCI Event: Vendor (
0xff) plen 9 [hci0] 10.86625929 19 09 17 20 48 07 11 00 )... H?
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Is this meant to happen here?
If event received is not expected as the specification defines, I think it's probably incorrect.
But it requires more discussion with firmware people to make it clearer.
Please check and let them decode what this event means.
it's just debugging purpose information listing built-time something like that and will be removed in the firmware.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.866372Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: Bluetooth 4.2 (0x08) - Revision 4359 (0x1107) LMP version: Bluetooth 4.2 (0x08) - Subversion 2329 (0x0919) Manufacturer: MediaTek, Inc. (70)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 10.866391
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 10.866539
[ ... ]
Quoted 27 lines
Quoted 27 lines
Quoted 15 lines
Quoted 6 lines
LE Add Device To Resolving List (Octet 34 - Bit 3) LE Remove Device From Resolving List (Octet 34 - Bit 4) LE Clear Resolving List (Octet 34 - Bit 5)
LE Read Resolving List Size (Octet 34 - Bit 6) LE Read Peer Resolvable Address (Octet 34 - Bit 7) LE Read Local Resolvable Address (Octet 35 - Bit 0)Quoted 8 lines
LE Set Address Resolution Enable (Octet 35 - Bit 1) LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2) LE Read Maximum Data Length (Octet 35 - Bit 3) Octet 35 - Bit 4
Octet 35 - Bit 5
Octet 35 - Bit 6
Octet 35 - Bit 7
Octet 36 - Bit 0Quoted 2 lines
So you support the PHY commands, but do not indicate support LE 2M or LE Coded? Also these are Bluetooth 5.0 commands.
To be honest. When I ported the device into Bluez core, a unexpected event for LE read local feature would cause a fail at Bluez core, so I made a hack on Bluez core
to allow that I can keeping bring up the device without be blocked by the issue most probably from firmware.
Below code snippet is the only thing I added to avoid a fail at Bluez core to bring up the device.
(quoted diff) +0
-0@@ -927,6 +927,8 @@ static void hci_cc_le_read_local_features(struct hci_dev *hdev, return;
Quoted 7 lines
Review static void hci_cc_le_read_local_features(struct hci_dev *hdev, · line 932
Quoted 4 lines
(quoted diff) +2
-0memcpy(hdev->le_features, rp->features, 8); + hdev->le_features[0] = 0; + hdev->le_features[1] = 0; }Send me the trace where you didn?t clear the feature bits and I check what is going on. I doubt that we have a bug, but maybe some of the commands are optional and we should add an appropriate check. Or you guys need to fix your firmware. A new btmon should decode all bits properly.
okay, I'll have a follow-up.
Quoted 4 lines
Regards
Marcel
Sean Wang
maintainerRe: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings
Quoted 21 lines · Sean Wang
Quoted 3 lines · Marcel Holtmann
Hi Sean,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[ ... ]
Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
Quoted 10 lines
* Unknown packet (code 14 len 30) 0.641509
01 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 6c ..............bl 75 65 74 6f 6f 74 68 64 00 00 00 00 00 00 uetoothd...... * Unknown packet (code 14 len 30) 0.641592 02 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 74 ..............bt 6d 6f 6e 00 00 00 00 00 00 00 00 00 00 00 mon........... * Unknown packet (code 16 len 7) [hci0] 6.536771 01 00 00 00 05 00 01 .......= Open Index: 00:00:46:76:22:01 [hci0] 6.717019
= Index Info: 00:00:46:76:22:01 (MediaTek, Inc.) [hci0] 6.717030can you try with the latest BlueZ 5.49 or git version. Seems it actually stumbles over the extra packet here. Fun fact is that I can not get a backtrace to pin-point the issue in btmon and why it crashes.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I had less experience updating user land BlueZ, but I can try it as possible and see whether Unknown packets still are present at newest version BlueZ. Hopefully I don't misunderstand your point here.
please use the latest btmon and check if it can read your trace.
sure, I'll have a try with the latest btmon.
I use the btmon version 5.50 and it can read the trace
Quoted 138 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74109302 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74208802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.74310202 01 01 00 00 .....[ ... ]
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81470802 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81570502 01 01 00 00 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81637802 01 01 00 00 .....Why do I see only HCI events here? Is this event conveying any useful information. It is kinda complicated that this is
0xe4event code which is actually reserved for future use by the Bluetooth SIG. Are there any accompanying HCI commands for this and they just not make it into btmon?Quoted 8 lines
Quoted 5 lines
I have made all vendor HCI commands go through BlueZ core in v2 patch.
And for these HCI events, they are all corresponding to vendor ACL data, applied only to firmware setup packets, but they're not being sent via BlueZ core, so they are not being logged in btmon.
As for its event, where heading
0xe4refers to a vendor event and is used on notification of that either vendor ACL data or vendor HCI command have been done.I would prefer if everything goes via the Bluetooth core since then we have it all properly scheduled. Sending things down the ACL data path however if kinda funky. Does your hardware accept sending command both via ACL data and as HCI command? If so, then I would prefer sending them as HCI commands since the speed improvement you think you are getting is neglectable on Linux (I have been down that path). This seems to be a pure optimization when Windows is driving the device.
firmware people said the device can support firmware download as HCI commands. According to my test, this way indeed works so I will improve the part in the next version.
Quoted 2 lines
And the vendor event
0xe4is really only received during firmware download? It is not ever received during normal operation?
0xe4is only received during chip initialization.I also thought
0xe4is a poor definition for vendor event and already have notified firmware people should pick0xffas its vendor event id in the future.but for now, unfortunately,
0xe4cannot be changed on the device, the only way is to add a workaround in RX path as below to allow btmon can recognize these bad events properly.int
mtk_btuart_hci_frame(struct hci_dev *hdev, struct sk_buff *skb){ struct hci_event_hdr *hdr = (void *)skb->data; /* Fix up the vendor event id with HCI_VENDOR_PKT instead of * 0xe4 so that btmon can parse the kind of vendor event properly. */ if (hdr->evt == 0xe4) hdr->evt = HCI_VENDOR_PKT; /* Each HCI event would go through the core. */ return hci_recv_frame(hdev, skb); }Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
< HCI Command: Vendor (0x3f|0x006f) plen 5 [hci0] 6.816413
01 07 01 00 04 .....Quoted 1 line
HCI Event: Unknown (
0xe4) plen 5 [hci0] 6.81653602 07 01 00 00 .....[ ... ]
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Encapsulated PDU
Erroneous Data Reporting
Non-flushable Packet Boundary Flag
Link Supervision Timeout Changed Event
Inquiry TX Power Level
Enhanced Power Control
Extended features
< HCI Command: Read Local Version Info.. (0x04|0x0001) plen 0 [hci0] 10.865987Quoted 1 line
HCI Event: Vendor (
0xff) plen 9 [hci0] 10.86625929 19 09 17 20 48 07 11 00 )... H…Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Is this meant to happen here?
If event received is not expected as the specification defines, I think it's probably incorrect.
But it requires more discussion with firmware people to make it clearer.
Please check and let them decode what this event means.
it's just debugging purpose information listing built-time something like that and will be removed in the firmware.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
HCI Event: Command Complete (
0x0e) plen 12 [hci0] 10.866372Read Local Version Information (0x04|0x0001) ncmd 1 Status: Success (0x00) HCI version: Bluetooth 4.2 (0x08) - Revision 4359 (0x1107) LMP version: Bluetooth 4.2 (0x08) - Subversion 2329 (0x0919) Manufacturer: MediaTek, Inc. (70)< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 [hci0] 10.866391
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 10 [hci0] 10.866539[ ... ]
Quoted 27 lines
Quoted 27 lines
Quoted 15 lines
Quoted 6 lines
LE Add Device To Resolving List (Octet 34 - Bit 3) LE Remove Device From Resolving List (Octet 34 - Bit 4) LE Clear Resolving List (Octet 34 - Bit 5)
LE Read Resolving List Size (Octet 34 - Bit 6) LE Read Peer Resolvable Address (Octet 34 - Bit 7) LE Read Local Resolvable Address (Octet 35 - Bit 0)Quoted 8 lines
LE Set Address Resolution Enable (Octet 35 - Bit 1) LE Set Resolvable Private Address Timeout (Octet 35 - Bit 2) LE Read Maximum Data Length (Octet 35 - Bit 3) Octet 35 - Bit 4
Octet 35 - Bit 5
Octet 35 - Bit 6
Octet 35 - Bit 7
Octet 36 - Bit 0Quoted 2 lines
So you support the PHY commands, but do not indicate support LE 2M or LE Coded? Also these are Bluetooth 5.0 commands.
To be honest. When I ported the device into Bluez core, a unexpected event for LE read local feature would cause a fail at Bluez core, so I made a hack on Bluez core
to allow that I can keeping bring up the device without be blocked by the issue most probably from firmware.
Below code snippet is the only thing I added to avoid a fail at Bluez core to bring upbtsnoop the device.
(quoted diff) +0
-0@@ -927,6 +927,8 @@ static void hci_cc_le_read_local_features(struct hci_dev *hdev, return;Quoted 7 lines
Review static void hci_cc_le_read_local_features(struct hci_dev *hdev, · line 932
Quoted 4 lines
(quoted diff) +2
-0memcpy(hdev->le_features, rp->features, 8); + hdev->le_features[0] = 0; + hdev->le_features[1] = 0; }Send me the trace where you didn’t clear the feature bits and I check what is going on. I doubt that we have a bug, but maybe some of the commands are optional and we should add an appropriate check. Or you guys need to fix your firmware. A new btmon should decode all bits properly.
Quoted 1 line
okay, I'll have a follow-up.where
.
It's a fault from the device and can be simply fixed up in the firmware. The fault is the device reporting to host told it can support "LE Read Maximum Data Length", but actually it can't. so it's just a fail at the command.
The attached here is the fail log I captured with btmon 5.50 where I already turned the patch setup in HCI command from ACL data and turned event id 0xe4 to 0xff every vendor should use. And, finally, it can be seen that btmon already can record and parse all traffic between host and device well.
Quoted 6 lines
Quoted 5 lines
Regards
Marcel
btsnoop � $ $�� �L5n��Linux version 4.16.0-rc1+ (aarch64) ! !�� �L5n��Bluetooth subsystem version 2.22 �� �L5n� btmon # #��
�L5o��bluetoothd Bluetooth daemon 5.43 �� �L5o�t/ bluetoothd ! !��
�L5o�{obluetoothd Starting SDP server 2 2��
�L5o���bluetoothd Failed to open RFKILL control device �� �L5o��U �� �L5o��D = =��
�L5o���bluetoothd Bluetooth management interface 1.14 initialized �� �L5o��� � ��� �L5o��� A #