Issue metadata
Sign in to add a comment
|
BLE Advertisements continue to be reported by the scanner even when server device is off
Reported by
brianbre...@gmail.com,
Sep 4
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36 Steps to reproduce the problem: 1. Use an application that implements the BLE scanner to search for devices 2. Do whatever it takes to make a pairable BLE health device advertise 3. When discovered, connect and pair with it. What is the expected behavior? Advertisements cease to be reported by the scanner when the device stops advertising. What went wrong? Advertisements continue to be reported by the scanner even though the device is powered off or in another city. These advertisements will continue to be reported by the scanner until one unpairs the device. Did this work before? No Chrome version: 69.0.3497.81 Channel: stable OS Version: 10.0 Flash Version: You need an application that continuously scans in the background for new and known devices. The 'continuous' scanning stops, of course, during connection but once the connection indication is received the app resumes its scanning. The fact that advertisements continue to be reported by the scanner even though the device is not on causes the application to continuously try to connect to it. Of course the connection fails because the device is not out there.
,
Sep 4
,
Sep 4
,
Sep 5
Thanks for filing the issue! Struck at installing the BLE Scanner on the device as updated in Issue: 880538 . Thanks!
,
Sep 12
If you are able to install the LniPlugfestPHG that I mentioned in Issue: 880538 the next step you need to do is pair with a BTLE health device supported by the application. All BTLE health devices following the standard are supported. To pair run the application and do something to make the BTLE health device pairable. What that is will depend upon the device. With some devices all you need to is to take a measurement. The application will popup a screen asking if you want to connect to the device. Select yes. Pairing will happen automatically if the device asks to be paired. YOu may need to answer confirmation dialogs aking if you want to pair with the device. For some devices you will be prompted to enter a passkey. A&D BTLE devices require that you set them in a pairing mode. THis is usually done by holding down the power button until a pairing signal is displayed on the UI. Learning your devices will probably be the hardest part. THey all do the same thing in different ways.
,
Sep 12
I should have added that once paired, you can turn off your medical device, walk into another room, and advertisements from that devices will continue to be sent to the application. These spurious ads will continue until you unpair. The advertisements will cause the app to attempt to connect to the device, but since it does not exist, no connection will occur. The scanner is turned off while connecting since the scan channel and connection attempt channels are the same. Once connected, different channels are used and the scanner restarts. Since no connection happens, the attempt is killed after 61 seconds and the scanner restarted. A new connection attempt will occurs on the next ad and the process repeats indefinitely.
,
Oct 10
Could you please provide your confirmation that can we change the OS to 'Chrome' as this issue is related to Android platform (as mentioned in comment# 5 & 7 in Issue: 880538 ), hence adding Needs-Feedback label to it. Thanks!
,
Nov 1
,
Nov 5
qiyuh, is this an issue w/ caching? Can you take a look? Thanks!
,
Nov 5
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by brianbre...@gmail.com
, Sep 4here is a summary and a logcat trace Problem # 1: Non-stop advertisements The chromebook does not clear some type of cache of advertisements. The log below shows two advertisements being continuously reported by the scanner even though the device with address 00:1C:05:FF:E8:75 is a device that was connected at the office the day before and the device with address 00:1C:05:FF:E8:74 is one connected today. However, the batteries are out of the device and a Bluetooth sniffer shows no activity from the device. Both of these devices are Nonin 3230 pulse oximeters. The application scans for known devices and when it finds one it firsts asks the user if a connection to it is desired. If so, a connection attempt is made. The scanner stops and restarts when a connection is made. After that, since the device is known, when it sees the device again, it reconnects. So what happens is that these advertisements from a non-existent device are received, the scanner stops, a connection attempt is made, and since the device does not exist, it will never connect. The scanner restarts after a 61 second timeout. The connection attempt eventually fails. The cycle repeats indefinitely. Reboot does not solve the issue. It appears if one unpairs with the device, the spurious advertisements are no longer received. Here is a log 09-01 08:50:52.635 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Accepted Advertisement packet from device 00:1C:05:FF:E8:74 02 01 06 14 09 4E 6F 6E 69 6E 33 32 33 30 5F 35 30 31 39 30 30 30 38 33 11 07 1B C5 D5 A5 02 00 5E 8B E2 11 5F 0D E0 70 A9 46 0B 03 0F 18 22 18 05 18 0A 18 00 18 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 68 00 00 00 06 00 00 00 10 00 00 00 00 00 00 00 58 00 00 00 00 00 00 00 10 00 00 00 01 00 00 00 68 00 00 00 00 00 00 09-01 08:50:52.635 2622-2622/2 I/.BtScanner: Pause scan being called. Current state false 09-01 08:50:52.635 2622-2654/2 I/.BtScanner: Scan loop being paused during Btle scan for 61000 ms Scan loop now being paused for 61000 09-01 08:50:52.735 2622-2622/2 I/.BtScanner: Pause scan finished. Current state true 09-01 08:50:52.736 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Known Device; already have handler but Use First time connect. 09-01 08:50:52.741 2622-2622/2 D/BluetoothGatt: connect() - device: 00:1C:05:FF:E8:74, auto: false registerApp() registerApp() - UUID=988425d1-09ea-4f4c-b554-78b9b43018fe 09-01 08:50:52.742 2622-2634/2 D/BluetoothGatt: onClientRegistered() - status=0 clientIf=228 09-01 08:50:52.745 2622-2622/2 D/BluetoothAdapter: STATE_ON 09-01 08:50:52.748 2622-2622/2 D/BluetoothAdapter: STATE_ON 09-01 08:50:52.749 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Accepted Advertisement packet from device 00:1C:05:FF:E8:75 14 09 4E 6F 6E 69 6E 33 32 33 30 5F 35 30 31 39 30 30 30 38 32 11 07 1B C5 D5 A5 02 00 5E 8B E2 11 5F 0D E0 70 A9 46 0B 03 0F 18 22 18 05 18 0A 18 00 18 00 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 68 00 00 00 06 00 00 00 10 00 00 00 00 00 00 00 58 00 00 00 00 00 00 00 10 00 00 00 01 00 00 00 68 00 00 00 00 00 00 09-01 08:50:52.749 2622-2622/2 I/.BtScanner: Pause scan being called. Current state true Pause scan finished. Current state true 09-01 08:50:52.749 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Known Device; already have handler but Use First time connect. 09-01 08:50:52.751 2622-2654/2 I/.BtScanner: Pause was woken up Scan loop being re-paused. Scan loop now being paused for 61000 09-01 08:50:52.753 2622-2622/2 D/BluetoothGatt: connect() - device: 00:1C:05:FF:E8:75, auto: false registerApp() registerApp() - UUID=51d8fbe2-6473-4347-bb14-5f1081651022 09-01 08:50:52.754 2622-2634/2 D/BluetoothGatt: onClientRegistered() - status=0 clientIf=229 09-01 08:51:32.811 2622-2635/2 D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=229 device=00:1C:05:FF:E8:75 09-01 08:51:32.814 2622-2635/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Connection State change indication received from BTLE device Nonin3230_501900082 with address 00:1C:05:FF:E8:75 with state 0 09-01 08:51:32.816 2622-2635/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Premature disconnect; connection not etablished. Restart scans. Status 0 09-01 08:51:32.819 2622-2634/2 D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=228 device=00:1C:05:FF:E8:74 09-01 08:51:32.821 2622-2634/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Connection State change indication received from BTLE device Nonin3230_501900083 with address 00:1C:05:FF:E8:74 with state 0 09-01 08:51:32.823 2622-2634/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Premature disconnect; connection not etablished. Restart scans. Status 0 09-01 08:51:34.817 2622-2635/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: BTLE device has disconnected. Cancelling any remaining countdowns. 09-01 08:51:34.817 2622-2635/2 D/BluetoothGatt: close() unregisterApp() - mClientIf=229 09-01 08:51:34.817 2622-2654/2 I/.BtScanner: Pause was woken up Scan loop resumed. Pause handler ended. 09-01 08:51:34.826 2622-2635/2 I/.BluetoothPanService: Disconnect indication received from a BTLE device with address 00:1C:05:FF:E8:75 and system Id 0x System Id has not yet been obtained 09-01 08:51:34.826 2622-2635/2 I/.MeasurementLogActivity: Disconnect indication received from a BTLE device with address 00:1C:05:FF:E8:75 and system Id 0x System Id has not yet been obtained 09-01 08:51:36.817 2622-2634/2 I/.BtScanner: Scan loop already going 09-01 08:51:36.818 2622-2634/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: BTLE device has disconnected. Cancelling any remaining countdowns. 09-01 08:51:36.818 2622-2634/2 D/BluetoothGatt: close() unregisterApp() - mClientIf=228 09-01 08:51:36.824 2622-2634/2 I/.BluetoothPanService: Disconnect indication received from a BTLE device with address 00:1C:05:FF:E8:74 and system Id 0x System Id has not yet been obtained 09-01 08:51:36.824 2622-2634/2 I/.MeasurementLogActivity: Disconnect indication received from a BTLE device with address 00:1C:05:FF:E8:74 and system Id 0x System Id has not yet been obtained 09-01 08:51:39.836 2622-2622/2 D/BluetoothAdapter: STATE_ON 09-01 08:51:39.844 2622-2635/2 D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=230 mClientIf=0 09-01 08:51:40.074 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Accepted Advertisement packet from device 00:1C:05:FF:E8:74 02 01 06 14 09 4E 6F 6E 69 6E 33 32 33 30 5F 35 30 31 39 30 30 30 38 33 11 07 1B C5 D5 A5 02 00 5E 8B E2 11 5F 0D E0 70 A9 46 0B 03 0F 18 22 18 05 18 0A 18 00 18 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 68 00 00 00 06 00 00 00 10 00 00 00 00 00 00 00 58 00 00 00 00 00 00 00 10 00 00 00 01 00 00 00 68 00 00 00 00 00 00 09-01 08:51:40.075 2622-2622/2 I/.BtScanner: Pause scan being called. Current state false 09-01 08:51:40.075 2622-2654/2 I/.BtScanner: Scan loop being paused during Btle scan for 61000 ms Scan loop now being paused for 61000 09-01 08:51:40.175 2622-2622/2 I/.BtScanner: Pause scan finished. Current state true 09-01 08:51:40.175 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Known Device; already have handler but Use First time connect. 09-01 08:51:40.180 2622-2622/2 D/BluetoothGatt: connect() - device: 00:1C:05:FF:E8:74, auto: false registerApp() registerApp() - UUID=15485073-ce08-4dac-b943-9c723b5dfde2 09-01 08:51:40.181 2622-2635/2 D/BluetoothGatt: onClientRegistered() - status=0 clientIf=231 09-01 08:51:40.184 2622-2622/2 D/BluetoothAdapter: STATE_ON 09-01 08:51:40.186 2622-2622/2 D/BluetoothAdapter: STATE_ON 09-01 08:51:40.189 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Accepted Advertisement packet from device 00:1C:05:FF:E8:75 14 09 4E 6F 6E 69 6E 33 32 33 30 5F 35 30 31 39 30 30 30 38 32 11 07 1B C5 D5 A5 02 00 5E 8B E2 11 5F 0D E0 70 A9 46 0B 03 0F 18 22 18 05 18 0A 18 00 18 00 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 68 00 00 00 06 00 00 00 10 00 00 00 00 00 00 00 58 00 00 00 00 00 00 00 10 00 00 00 01 00 00 00 68 00 00 00 00 00 00 09-01 08:51:40.189 2622-2622/2 I/.BtScanner: Pause scan being called. Current state true 09-01 08:51:40.190 2622-2622/2 I/.BtScanner: Pause scan finished. Current state true 09-01 08:51:40.190 2622-2622/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleAdapter: Known Device; already have handler but Use First time connect. 09-01 08:51:40.191 2622-2654/2 I/.BtScanner: Pause was woken up Scan loop being re-paused. Scan loop now being paused for 61000 09-01 08:51:40.191 2622-2622/2 D/BluetoothGatt: connect() - device: 00:1C:05:FF:E8:75, auto: false registerApp() registerApp() - UUID=02e94db5-1ee0-4dce-b4d7-272477e81e2c 09-01 08:51:40.197 2622-2635/2 D/BluetoothGatt: onClientRegistered() - status=0 clientIf=232 09-01 08:52:20.298 2622-2665/2 D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=232 device=00:1C:05:FF:E8:75 09-01 08:52:20.300 2622-2665/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Connection State change indication received from BTLE device Nonin3230_501900082 with address 00:1C:05:FF:E8:75 with state 0 09-01 08:52:20.303 2622-2665/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Premature disconnect; connection not etablished. Restart scans. Status 0 09-01 08:52:20.307 2622-2635/2 D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=231 device=00:1C:05:FF:E8:74 09-01 08:52:20.309 2622-2635/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Connection State change indication received from BTLE device Nonin3230_501900083 with address 00:1C:05:FF:E8:74 with state 0 09-01 08:52:20.311 2622-2635/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: Premature disconnect; connection not etablished. Restart scans. Status 0 09-01 08:52:22.303 2622-2665/2 I/com.lampreynetworks.ahd.transport.btle.AndroidBtleHandler: BTLE device has disconnected. Cancelling any remaining countdowns. 09-01 08:52:22.303 2622-2665/2 D/BluetoothGatt: close() 09-01 08:52:22.304 2622-2665/2 D/BluetoothGatt: unregisterApp() - mClientIf=232 09-01 08:52:22.304 2622-2654/2 I/.BtScanner: Pause was woken up Scan loop resumed. Pause handler ended