Bluetooth Notifications Delayed
Reported by
nall...@workbenchplatform.com,
Mar 28 2018
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Platform: 10510.0.0 (Official Build) dev-channel kevin Steps to reproduce the problem: I have a bluetooth device that sends notifications at a high rate. Over time, the notifications begin to lag behind the action performed on the device. When the device is first connected, the notifications reflect the action immediately, but after several minutes pass the notifications take a few seconds to reflect the action. What is the expected behavior? What went wrong? In these logs, the notifications slowly began to lag behind the action being performed on the device. At the end, the notifications simply stopped and my code triggered a disconnect. This is related to a different bug that is already reported. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 67.0.3376.0 Channel: dev OS Version: 67.0.3376.0 Flash Version: Notifications never start lagging on Mac. Also, notifications never abruptly stop on Mac either. This seems specific to Chrome OS.
,
Mar 28 2018
,
Mar 28 2018
Gio, is this something you would expect from BlueZ?
,
Mar 28 2018
,
Mar 28 2018
+mcchou, josephsih for bluez expertise I don't know why BlueZ could be causing something like this.
,
Mar 29 2018
From the chrome log attached in C#0, the notifications were received by chrome from bluez regularly at about 60 ms interval throughout the testing period (about 7 minutes). Hence, bluez was doing its job faithfully here. The problem seems to be on some layer above bluez. FWIW, In the chrome log, we saw something this message appearing regularly each time the notification was received: connection_holder.h(384)] Instance arc::mojom::BluetoothInstance not available. I am not sure if this is relevant.
,
Mar 29 2018
Let me know if any additional logs would be helpful. I work with multiple devices and this is the only one that experiences this issue or the issue with notifications stopping after several minutes. This is also the only device that does notifications on a regular interval, and not just when something changes. I'm not sure if that is relevant, but it is the only difference between this device and the other devices I work with that I can think of.
,
Apr 3 2018
Fyi, it is possible to bypass D-Bus entirely if the notification needs to have really low latency: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/gatt-api.txt#n126
,
Apr 3 2018
Hi Luiz, thanks for the pointer which is useful for low-latency notification!
,
May 11 2018
I tried this again today and the behavior seems slightly different than it was before. Now, as soon as I connect the notifications are delayed by about 1-2 seconds. After a minute or two the notifications start coming in bursts. This device still seems to work reliably on chrome on my mac.
,
May 11 2018
,
May 11 2018
FWIW, I'm having these notification issues with two devices. A Parrot FlyPad and a MicroBit. If anyone has one of these devices I can provide some code to reproduce if that is helpful! The FlyPad is the original device that has delayed notifications. The microbit behavior is slightly different. The notifications don't seem to be delayed on the characteristics that notify very frequently. But, when those characteristics are notifying, notifications on other characteristics don't consistently come through. I'm not sure if it makes sense to open a new issue though, considering the problem seems to revolve around characteristics that notify very rapidly.
,
May 16 2018
We do have micro:bit devices available so repro code would be very much appreciated. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by nall...@workbenchplatform.com
, Mar 28 2018480 KB
480 KB View Download