#2092 [Device Request] Blackview X2 on H Band

Open
opened 2 weeks ago by PolarBearLRG · 8 comments

Your wearable device is:

Blackview X2, Pairs to application "H Band"
1.3-inch TFT-LCD 240 x 240 pixels 2.5D curved Corning Gorilla Glass 3 display
Call and SMS reminders
All-day heart monitor
Waterproof to 5ATMs
10-day battery (45 days in basic mode)
NRF52832 CPU
64KB flash
512KB ROM
Bluetooth 5.0
260mAh lithium polymer battery (charging time about 2 hours)
9 sports mode
Compatible with iOS 9.0 & higher and Android 6.0 & higher
Firmware Version 70.01 (Up-to-Date)
I also came across the CPU manufacturer's SDK. The software is under QFAA-Bx0 I believe.
Here

I hope my info is of use and that this can be implemented. Thank you!

#### Your wearable device is: Blackview [X2](https://store.blackview.hk/en/buy/x2), Pairs to application "[H Band](https://play.google.com/store/apps/details?id=com.veepoo.hband)" 1.3-inch TFT-LCD 240 x 240 pixels 2.5D curved Corning Gorilla Glass 3 display Call and SMS reminders All-day heart monitor Waterproof to 5ATMs 10-day battery (45 days in basic mode) NRF52832 CPU 64KB flash 512KB ROM Bluetooth 5.0 260mAh lithium polymer battery (charging time about 2 hours) 9 sports mode Compatible with iOS 9.0 & higher and Android 6.0 & higher Firmware Version 70.01 (Up-to-Date) I also came across the CPU manufacturer's SDK. The software is under QFAA-Bx0 I believe. [Here](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52832/Download#infotabs) I hope my info is of use and that this can be implemented. Thank you!
Poster

I see that there are some other device requests on the NRF52832 platform and link to H Band, were they ever attempted? If so, what can I do for my X2 to work with GadgetBridge?

I see that there are some other device requests on the NRF52832 platform and link to H Band, were they ever attempted? If so, what can I do for my X2 to work with GadgetBridge?
izzy added the
device request
label 2 weeks ago
izzy commented 2 weeks ago
Poster

To help getting things started, please take a look at our Wiki: Support for a new Device (end-users) and Support for a new Device (for those with some development knowledge). Those technical details would help our developers. Thanks!

To help getting things started, please take a look at our Wiki: [Support for a new Device](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Support-for-a-new-Device) (end-users) and [Support for a new Device](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Support-for-a-new-Device) (for those with some development knowledge). Those technical details would help our developers. Thanks!
Poster

Thanks for the links, I enjoy projects like this and I will get started today, I will post findings / questions here. Thank you.

Thanks for the links, I enjoy projects like this and I will get started today, I will post findings / questions here. Thank you.
Poster

I have made good beginning progress today, but alas I am at a stonewall. I have installed / used JDK15, Git, Android Studio, nRF Connect (Android app) and Wireshark. I have exported all nRF service connect data to X2.xml but, When I try to run
adb shell dumpsys bluetooth_manager
adb bugreport
I get the error
Bug report finished but could not be copied to 'X:\Documents\GitHub\Gadgetbridge\bugreport-BV6300_EEA-QP1A.190711.020-2020-11-19-20-13-14.zip'.,
I can run
adb pull data/bugreport-BV6300_EEA-QP1A.190711.020-2020-11-19-20-13-14.zip X:/Documents/Bugreports
and get the bug report zip. But inside, there is no trace of btsnoop_hci.log. I have used btsnooz.py to find the save location of the log file but it seems it doesn't get exported and there is nothing in the bugreport txt that mentions the btsnoop_hci log file or where it is saved. I believe the log file is saved data/misc/bluetooth/logs/btsnoop_hci.log but i have no root or superuser access to get the file. I don't know if this means the snooping feature isn't working or if it is missing it during the bugreport.

I have also tried doing a full bugreport on the device and uploading to a google driveand have been met with the same results.

I have made good beginning progress today, but alas I am at a stonewall. I have installed / used JDK15, Git, Android Studio, nRF Connect (Android app) and Wireshark. I have exported all nRF service connect data to X2.xml but, When I try to run `adb shell dumpsys bluetooth_manager` `adb bugreport` I get the error `Bug report finished but could not be copied to 'X:\Documents\GitHub\Gadgetbridge\bugreport-BV6300_EEA-QP1A.190711.020-2020-11-19-20-13-14.zip'.`, I can run `adb pull data/bugreport-BV6300_EEA-QP1A.190711.020-2020-11-19-20-13-14.zip X:/Documents/Bugreports` and get the bug report zip. But inside, there is no trace of btsnoop_hci.log. I have used btsnooz.py to find the save location of the log file but it seems it doesn't get exported and there is nothing in the bugreport txt that mentions the btsnoop_hci log file or where it is saved. I believe the log file is saved data/misc/bluetooth/logs/btsnoop_hci.log but i have no root or superuser access to get the file. I don't know if this means the snooping feature isn't working or if it is missing it during the bugreport. I have also tried doing a full bugreport on the device and uploading to a google driveand have been met with the same results.
4.2 KiB
Poster

I have started reading packets using nRF Connect and nRF Logger. Is there a fast way I can compate the bytes in the packets to an already supported device's protocol?

I have started reading packets using nRF Connect and nRF Logger. Is there a fast way I can compate the bytes in the packets to an already supported device's protocol?
vanous commented 2 weeks ago
Poster
Collaborator

I have also tried doing a full bugreport on the device and uploading to and have been met with the same results.

Did you enable HCI Snooping in Developer options? Without it, there is no log in the zip.

> I have also tried doing a full bugreport on the device and uploading to and have been met with the same results. Did you enable HCI Snooping in Developer options? Without it, there is no log in the zip.
Poster

I have also tried doing a full bugreport on the device and uploading to and have been met with the same results.

Did you enable HCI Snooping in Developer options? Without it, there is no log in the zip.

I have, and I have tried many different cobinations of rebooting, toggling bluetooth and toggling the snooping.

edit: That is why I wonder if the snooping feature is not working.

> > I have also tried doing a full bugreport on the device and uploading to and have been met with the same results. > > Did you enable HCI Snooping in Developer options? Without it, there is no log in the zip. > I have, and I have tried many different cobinations of rebooting, toggling bluetooth and toggling the snooping. edit: That is why I wonder if the snooping feature is not working.
Poster
Bluetooth Status
  enabled: true
  state: ON
  address: ----
  name: Ice Pack
  time since enabled: 00:01:30.445

Enable log:
  11-19 17:33:29  Enabled  due to SYSTEM_BOOT by android
  11-19 21:23:39 Disabled  due to APPLICATION_REQUEST by com.github.akinaru.hcidebugger
  11-19 21:23:42  Enabled  due to APPLICATION_REQUEST by com.github.akinaru.hcidebugger
  11-19 21:27:40 Disabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter
  11-19 21:27:40  Enabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter
  11-19 21:28:07 Disabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter
  11-19 21:28:08  Enabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter
  11-19 22:48:22 Disabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter
  11-19 22:48:22  Enabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter
  11-20 09:22:49 Disabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter
  11-20 09:22:50  Enabled  due to APPLICATION_REQUEST by com.treydev.micontrolcenter

Bluetooth crashed 0 times

1 BLE appregistered
  com.google.android.gms


AdapterProperties
  Name: Ice Pack
  Address: ----
  BluetoothClass: 5a020c
  ScanMode: SCAN_MODE_CONNECTABLE_DISCOVERABLE
  ConnectionState: STATE_DISCONNECTED
  State: ON
  MaxConnectedAudioDevices: 5
  A2dpOffloadEnabled: false
  Discovering: false
  DiscoveryEndMs: 1605892969891
  Bonded devices:
    -- [BR/EDR] J29 R
    -- [BR/EDR] Wireless Controller
mSnoopLogSettingAtEnable = full
mDefaultSnoopLogSettingAtEnable = null

AdapterState:
 total records=24
 rec[0]: time=11-19 21:23:39.586 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF
 rec[1]: time=11-19 21:23:39.839 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED
 rec[2]: time=11-19 21:23:42.131 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON
 rec[3]: time=11-19 21:23:42.568 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED
 rec[4]: time=11-19 21:27:40.207 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF
 rec[5]: time=11-19 21:27:40.409 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED
 rec[6]: time=11-19 21:27:40.864 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON
 rec[7]: time=11-19 21:27:41.107 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED
 rec[8]: time=11-19 21:28:07.584 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF
 rec[9]: time=11-19 21:28:07.789 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED
 rec[10]: time=11-19 21:28:08.021 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON
 rec[11]: time=11-19 21:28:08.279 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED
 rec[12]: time=11-19 22:48:22.236 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF
 rec[13]: time=11-19 22:48:22.425 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED
 rec[14]: time=11-19 22:48:22.819 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON
 rec[15]: time=11-19 22:48:23.076 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED
 rec[16]: time=11-20 09:22:49.868 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF
 rec[17]: time=11-20 09:22:50.202 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED
 rec[18]: time=11-20 09:22:50.973 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON
 rec[19]: time=11-20 09:22:51.220 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED
curState=OnState

SilenceDeviceManager:
  Address            | Is silenced?

Profile: GattService
  mAdvertisingServiceUuids:
  mMaxScanFilters: 0

GATT Scanner Map
  Entries: 5

  com.veepoo.hband
  LE scans (started/stopped)         : 37 / 37
  Scan time in ms (min/max/avg/total): 0 / 10011 / 5152 / 190634
  Total number of results            : 1416
  Last 5 scans                       :
    11-19 22:46:42 - 5007ms 50 results (4)
    11-19 22:48:25 - 147ms 1 results (4)
    11-19 23:56:02 - 6012ms 62 results (4)
    11-20 00:20:47 - 6006ms 47 results (4)
    11-20 09:22:53 - 102ms 2 results (6)

  com.google.uid.shared:10121 (Registered) (Filtered)
  LE scans (started/stopped)         : 268 / 266
  Scan time in ms (min/max/avg/total): 5 / 27510556 / 195884 / 52496956
  Total number of results            : 4
  Last 5 scans                       :
    11-20 09:17:43 - 306701ms Opp Filter 0 results (6)
    11-20 09:22:50 - 334ms Opp Filter 0 results (4)
    11-20 09:22:50 - 672ms Filter 0 results (4)
    11-20 09:22:51 - 358ms Filter 0 results (4)
    11-20 09:22:51 - 4813ms Filter 0 results (4)
  Ongoing scans                      :
    11-20 09:22:56 - 84877ms Opp Filter 0 results (4)
    11-20 09:22:57 - 84008ms Filter 0 results (6)
  Application ID                     : 4
  UUID                               : ec44efd7-5c62-4802-afa8-5d444573eb87
  Connections: 0

  no.nordicsemi.android.mcp
  LE scans (started/stopped)         : 24 / 24
  Scan time in ms (min/max/avg/total): 0 / 4339 / 1975 / 47401
  Total number of results            : 794
  Last 5 scans                       :
    11-19 22:30:55 - 2561ms 82 results (9)
    11-19 22:37:57 - 2052ms 60 results (9)
    11-19 22:38:30 - 1611ms 54 results (9)
    11-19 22:42:32 - 1706ms 63 results (9)
    11-19 22:45:04 - 2135ms 67 results (9)

  nodomain.freeyourgadget.gadgetbridge
  LE scans (started/stopped)         : 1 / 1
  Scan time in ms (min/max/avg/total): 0 / 6421 / 6421 / 6421
  Total number of results            : 47
  Last 1 scans                       :
    11-20 00:10:06 - 6421ms 47 results (8)

  no.nordicsemi.android.nrftoolbox (Filtered)
  LE scans (started/stopped)         : 19 / 19
  Scan time in ms (min/max/avg/total): 0 / 5046 / 3469 / 65919
  Total number of results            : 86
  Last 5 scans                       :
    11-19 20:13:21 - 2783ms Filter 0 results (10)
    11-19 22:45:27 - 5039ms Filter 0 results (10)
    11-19 22:45:45 - 1425ms Filter 0 results (4)
    11-19 22:46:01 - 2410ms Filter 0 results (4)
    11-19 22:46:05 - 5016ms Filter 0 results (4)

GATT Client Map
  Entries: 3

  com.veepoo.hband (Registered)
  LE scans (started/stopped)         : 0 / 0
  Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0
  Total number of results            : 0
  Application ID                     : 4
  UUID                               : 7f81377c-bed4-40b9-8741-264906779fd6
  Connections: 1
    11-20 09:22:57 - 84019ms : CF:8B:BC:F4:2D:04 (4)

  no.nordicsemi.android.mcp
  LE scans (started/stopped)         : 0 / 0
  Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0
  Total number of results            : 0

  no.nordicsemi.android.nrftoolbox
  LE scans (started/stopped)         : 0 / 0
  Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0
  Total number of results            : 0

GATT Server Map
  Entries: 1

  no.nordicsemi.android.mcp
  LE scans (started/stopped)         : 0 / 0
  Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0
  Total number of results            : 0

GATT Handle Map
  Entries: 0
  Requests: 0

Profile: HeadsetService
  mMaxHeadsetConnections: 5
  DefaultMaxHeadsetConnections: 5
  mActiveDevice: null
  isInbandRingingEnabled: false
  isInbandRingingSupported: false
  mInbandRingingRuntimeDisable: false
  mAudioRouteAllowed: true
  mVoiceRecognitionStarted: false
  mVoiceRecognitionTimeoutEvent: null
  mVirtualCallStarted: false
  mDialingOutTimeoutEvent: null
  mForceScoAudio: false
  mCreated: true
  mStarted: true
  AudioManager.isBluetoothScoOn(): false
  Telecom.isInCall(): false
  Telecom.isRinging(): false

Profile: A2dpService
  mActiveDevice: null

Profile: HidHostService
  mTargetDevice: null
  mInputDevices:

Profile: PanService
  mMaxPanDevices: 5
  mPanIfName: bt-pan
  mTetherOn: false
  mPanDevices:

Profile: BluetoothMapService
  mRemoteDevice: null
  sRemoteDeviceName: null
  mState: 0
  mAppObserver: com.android.bluetooth.map.BluetoothMapAppObserver@cb58fd7
  mIsWaitingAuthorization: false
  mRemoveTimeoutMsg: false
  mPermission: 0
  mAccountChanged: false
  mBluetoothMnsObexClient: null
  mMasInstanceMap:
    null : MasId: 0 Uri:null SMS/MMS:true
  mEnabledAccounts:

Profile: AvrcpTargetService:
  List of MediaControllers: size=0
  List of Browsers: size=0
  AvrcpVolumeManager:
    mCurrentDevice: null
    Current System Volume: 7
    Device Volume Memory Map:
      Device Address    : Device Name    : Vol : AbsVol
      26:00:00:02:31:C9 : J29 R          :  15 : NotConnected

Profile: SapService

Profile: HidDeviceService

Profile: BluetoothOppService

Profile: BluetoothPbapService

Connection Events:
  11-20 09:22:57.458 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:57.456 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:56.595 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:55.790 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:55.790 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:55.790 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:51.232 DISCONNECTED cf:8b:bc:f4:2d:04 reason=22
  11-20 09:22:51.232 DISCONNECTED cf:8b:bc:f4:2d:04 reason=22
  11-20 09:22:51.232 DISCONNECTED cf:8b:bc:f4:2d:04 reason=22
  11-20 09:22:51.120 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:50.650 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:22:50.297 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:17:43.507 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:17:43.450 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:17:40.355 CONNECTED    cf:8b:bc:f4:2d:04
  11-20 09:17:37.460 CONNECTED    cf:8b:bc:f4:2d:04

Bond Events:
  Total Number of events: 20
  Time          address            Function             State
  21:32:05.225  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  21:48:05.408  cf:8b:bc:f4:2d:04  btif_dm_create_bond  BOND_STATE_NONE
  21:48:05.414  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_BONDING
  21:48:05.458  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  21:59:50.154  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:12:01.481  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:20:06.948  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:21:32.837  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:22:20.193  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:41:23.386  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:41:47.693  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:44:11.884  cf:8b:bc:f4:2d:04  btif_dm_create_bond  BOND_STATE_NONE
  22:44:11.887  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_BONDING
  22:44:11.910  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE
  22:44:29.499  cf:8b:bc:f4:2d:04  bond_state_changed   BOND_STATE_NONE

A2DP State:
  TxQueue:
  Counts (enqueue/dequeue/readbuf)                        : 0 / 0 / 0
  Last update time ago in ms (enqueue/dequeue/readbuf)    : 0 / 0 / 0
  Frames per packet (total/max/ave)                       : 0 / 0 / 0
  Counts (flushed/dropped/dropouts)                       : 0 / 0 / 0
  Counts (max dropped)                                    : 0
  Last update time ago in ms (flushed/dropped)            : 0 / 0
  Counts (underflow)                                      : 0
  Bytes (underflow)                                       : 0
  Last update time ago in ms (underflow)                  : 0
  Enqueue deviation counts (overdue/premature)            : 0 / 0
  Enqueue overdue scheduling time in ms (total/max/ave)   : 0 / 0 / 0
  Enqueue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0
  Dequeue deviation counts (overdue/premature)            : 0 / 0
  Dequeue overdue scheduling time in ms (total/max/ave)   : 0 / 0 / 0
  Dequeue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0

A2DP Source State: Enabled
  Active peer: 00:00:00:00:00:00

A2DP Sink State: Disabled

AVRCP Target Native Service: 0 devices

Bluetooth Config:
  Config Source: Original file
  Devices loaded: 2
  File created/tagged: 2020-10-18 03:27:01
  File source: Empty

Bluetooth HF Client BTA Statistics

Bluetooth Wakelock Statistics:
  Is acquired                    : false
  Acquired/released count        : 3973 / 3973
  Acquired/released error count  : 0 / 0
  Last acquire/release error code: 0 / 0
  Last acquired time (ms)        : 1
  Acquired time min/max/avg (ms) : 0 / 2432 / 7
  Total acquired time (ms)       : 31526
  Total run time (ms)            : 57050409

Bluetooth Memory Allocation Statistics:
  Total allocated/free/used counts : 0 / 0 / 0
  Total allocated/free/used octets : 0 / 0 / 0

Bluetooth Alarms Statistics:
  Total Alarms: 1

  Alarm : btm_ble_addr.refresh_raddr_timer (SINGLE)
    Action counts (sched/resched/exec/cancel)      : 64 / 0 / 63 / 0
    Deviation counts (overdue/premature)           : 51 / 0
    Time in ms (since creation/interval/remaining) : 343528 / 900000 / 556473
    Overdue scheduling time in ms (total/max/avg)  : 6190 / 2052 / 121
    Premature scheduling time in ms (total/max/avg): 0 / 0 / 0

Hearing Aid Manager:
  Hearing Aid Audio HAL:
    Counts (underflow)                                      : 0
    Bytes (underflow)                                       : 0
    Last update time ago in ms (underflow)                  : 0


connection_manager state:

        no Low Energy connection attempts

BT Quality Report Events:
Event queue is empty.
--- BEGIN:BTSNOOP_LOG_SUMMARY (0 bytes in) ---
AgAAAAAAAAAA
--- END:BTSNOOP_LOG_SUMMARY ---

The BTSNOOP_LOG_SUMMARY is empty even though the HCI logging is enabled. :(
The BT_stack.conf, says nothing about bluetooth logging enabled or log location.

# Enable trace level reconfiguration function
# Must be present before any TRC_ trace level settings
TraceConf=true

# Trace level configuration
#   BT_TRACE_LEVEL_NONE    0    ( No trace messages to be generated )
#   BT_TRACE_LEVEL_ERROR   1    ( Error condition trace messages )
#   BT_TRACE_LEVEL_WARNING 2    ( Warning condition trace messages )
#   BT_TRACE_LEVEL_API     3    ( API traces )
#   BT_TRACE_LEVEL_EVENT   4    ( Debug messages for events )
#   BT_TRACE_LEVEL_DEBUG   5    ( Full debug messages )
#   BT_TRACE_LEVEL_VERBOSE 6    ( Verbose messages ) - Currently supported for TRC_BTAPP only.
TRC_BTM=2
TRC_HCI=2
TRC_L2CAP=2
TRC_RFCOMM=2
TRC_OBEX=2
TRC_AVCT=2
TRC_AVDT=2
TRC_AVRC=2
TRC_AVDT_SCB=2
TRC_AVDT_CCB=2
TRC_A2D=2
TRC_SDP=2
TRC_SMP=2
TRC_BTAPP=2
TRC_BTIF=2
TRC_BNEP=2
TRC_PAN=2
TRC_HID_HOST=2
TRC_HID_DEV=2

# This is Log configuration for new C++ code using LOG() macros.
# See libchrome/base/logging.h for description on how to configure your logs.
# sample configuration:
#LoggingV=--v=0
#LoggingVModule=--vmodule=*/btm/*=1,btm_ble_multi*=2,btif_*=1

# PTS testing helpers

# Secure connections only mode.
# PTS_SecurePairOnly=true

# Disable LE Connection updates
#PTS_DisableConnUpdates=true

# Disable BR/EDR discovery after LE pairing to avoid cross key derivation errors
#PTS_DisableSDPOnLEPair=true

# SMP Pair options (formatted as hex bytes) auth, io, ikey, rkey, ksize
#PTS_SmpOptions=0xD,0x4,0xf,0xf,0x10

# PTS AVRCP Test mode
#PTS_AvrcpTest=true

# SMP Certification Failure Cases
# Set any of the following SMP error values (from smp_api_types.h)
# to induce pairing failues for various PTS SMP test cases.
# Setting PTS_SmpFailureCase to 0 means normal operation.
# Failure modes:
#
#  SMP_PASSKEY_ENTRY_FAIL = 1
#  SMP_PAIR_AUTH_FAIL = 3
#  SMP_CONFIRM_VALUE_ERR = 4
#  SMP_PAIR_NOT_SUPPORT = 5
#  SMP_PAIR_FAIL_UNKNOWN = 8
#  SMP_REPEATED_ATTEMPTS = 9
#  SMP_NUMERIC_COMPAR_FAIL = 12
#PTS_SmpFailureCase=0


``` Bluetooth Status enabled: true state: ON address: ---- name: Ice Pack time since enabled: 00:01:30.445 Enable log: 11-19 17:33:29 Enabled due to SYSTEM_BOOT by android 11-19 21:23:39 Disabled due to APPLICATION_REQUEST by com.github.akinaru.hcidebugger 11-19 21:23:42 Enabled due to APPLICATION_REQUEST by com.github.akinaru.hcidebugger 11-19 21:27:40 Disabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter 11-19 21:27:40 Enabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter 11-19 21:28:07 Disabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter 11-19 21:28:08 Enabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter 11-19 22:48:22 Disabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter 11-19 22:48:22 Enabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter 11-20 09:22:49 Disabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter 11-20 09:22:50 Enabled due to APPLICATION_REQUEST by com.treydev.micontrolcenter Bluetooth crashed 0 times 1 BLE appregistered com.google.android.gms AdapterProperties Name: Ice Pack Address: ---- BluetoothClass: 5a020c ScanMode: SCAN_MODE_CONNECTABLE_DISCOVERABLE ConnectionState: STATE_DISCONNECTED State: ON MaxConnectedAudioDevices: 5 A2dpOffloadEnabled: false Discovering: false DiscoveryEndMs: 1605892969891 Bonded devices: -- [BR/EDR] J29 R -- [BR/EDR] Wireless Controller mSnoopLogSettingAtEnable = full mDefaultSnoopLogSettingAtEnable = null AdapterState: total records=24 rec[0]: time=11-19 21:23:39.586 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF rec[1]: time=11-19 21:23:39.839 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED rec[2]: time=11-19 21:23:42.131 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON rec[3]: time=11-19 21:23:42.568 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED rec[4]: time=11-19 21:27:40.207 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF rec[5]: time=11-19 21:27:40.409 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED rec[6]: time=11-19 21:27:40.864 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON rec[7]: time=11-19 21:27:41.107 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED rec[8]: time=11-19 21:28:07.584 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF rec[9]: time=11-19 21:28:07.789 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED rec[10]: time=11-19 21:28:08.021 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON rec[11]: time=11-19 21:28:08.279 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED rec[12]: time=11-19 22:48:22.236 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF rec[13]: time=11-19 22:48:22.425 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED rec[14]: time=11-19 22:48:22.819 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON rec[15]: time=11-19 22:48:23.076 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED rec[16]: time=11-20 09:22:49.868 processed=OnState org=OnState dest=TurningOffState what=2(0x2) USER_TURN_OFF rec[17]: time=11-20 09:22:50.202 processed=TurningOffState org=TurningOffState dest=BleOnState what=6(0x6) BREDR_STOPPED rec[18]: time=11-20 09:22:50.973 processed=BleOnState org=BleOnState dest=TurningOnState what=1(0x1) USER_TURN_ON rec[19]: time=11-20 09:22:51.220 processed=TurningOnState org=TurningOnState dest=OnState what=5(0x5) BREDR_STARTED curState=OnState SilenceDeviceManager: Address | Is silenced? Profile: GattService mAdvertisingServiceUuids: mMaxScanFilters: 0 GATT Scanner Map Entries: 5 com.veepoo.hband LE scans (started/stopped) : 37 / 37 Scan time in ms (min/max/avg/total): 0 / 10011 / 5152 / 190634 Total number of results : 1416 Last 5 scans : 11-19 22:46:42 - 5007ms 50 results (4) 11-19 22:48:25 - 147ms 1 results (4) 11-19 23:56:02 - 6012ms 62 results (4) 11-20 00:20:47 - 6006ms 47 results (4) 11-20 09:22:53 - 102ms 2 results (6) com.google.uid.shared:10121 (Registered) (Filtered) LE scans (started/stopped) : 268 / 266 Scan time in ms (min/max/avg/total): 5 / 27510556 / 195884 / 52496956 Total number of results : 4 Last 5 scans : 11-20 09:17:43 - 306701ms Opp Filter 0 results (6) 11-20 09:22:50 - 334ms Opp Filter 0 results (4) 11-20 09:22:50 - 672ms Filter 0 results (4) 11-20 09:22:51 - 358ms Filter 0 results (4) 11-20 09:22:51 - 4813ms Filter 0 results (4) Ongoing scans : 11-20 09:22:56 - 84877ms Opp Filter 0 results (4) 11-20 09:22:57 - 84008ms Filter 0 results (6) Application ID : 4 UUID : ec44efd7-5c62-4802-afa8-5d444573eb87 Connections: 0 no.nordicsemi.android.mcp LE scans (started/stopped) : 24 / 24 Scan time in ms (min/max/avg/total): 0 / 4339 / 1975 / 47401 Total number of results : 794 Last 5 scans : 11-19 22:30:55 - 2561ms 82 results (9) 11-19 22:37:57 - 2052ms 60 results (9) 11-19 22:38:30 - 1611ms 54 results (9) 11-19 22:42:32 - 1706ms 63 results (9) 11-19 22:45:04 - 2135ms 67 results (9) nodomain.freeyourgadget.gadgetbridge LE scans (started/stopped) : 1 / 1 Scan time in ms (min/max/avg/total): 0 / 6421 / 6421 / 6421 Total number of results : 47 Last 1 scans : 11-20 00:10:06 - 6421ms 47 results (8) no.nordicsemi.android.nrftoolbox (Filtered) LE scans (started/stopped) : 19 / 19 Scan time in ms (min/max/avg/total): 0 / 5046 / 3469 / 65919 Total number of results : 86 Last 5 scans : 11-19 20:13:21 - 2783ms Filter 0 results (10) 11-19 22:45:27 - 5039ms Filter 0 results (10) 11-19 22:45:45 - 1425ms Filter 0 results (4) 11-19 22:46:01 - 2410ms Filter 0 results (4) 11-19 22:46:05 - 5016ms Filter 0 results (4) GATT Client Map Entries: 3 com.veepoo.hband (Registered) LE scans (started/stopped) : 0 / 0 Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0 Total number of results : 0 Application ID : 4 UUID : 7f81377c-bed4-40b9-8741-264906779fd6 Connections: 1 11-20 09:22:57 - 84019ms : CF:8B:BC:F4:2D:04 (4) no.nordicsemi.android.mcp LE scans (started/stopped) : 0 / 0 Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0 Total number of results : 0 no.nordicsemi.android.nrftoolbox LE scans (started/stopped) : 0 / 0 Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0 Total number of results : 0 GATT Server Map Entries: 1 no.nordicsemi.android.mcp LE scans (started/stopped) : 0 / 0 Scan time in ms (min/max/avg/total): 0 / 0 / 0 / 0 Total number of results : 0 GATT Handle Map Entries: 0 Requests: 0 Profile: HeadsetService mMaxHeadsetConnections: 5 DefaultMaxHeadsetConnections: 5 mActiveDevice: null isInbandRingingEnabled: false isInbandRingingSupported: false mInbandRingingRuntimeDisable: false mAudioRouteAllowed: true mVoiceRecognitionStarted: false mVoiceRecognitionTimeoutEvent: null mVirtualCallStarted: false mDialingOutTimeoutEvent: null mForceScoAudio: false mCreated: true mStarted: true AudioManager.isBluetoothScoOn(): false Telecom.isInCall(): false Telecom.isRinging(): false Profile: A2dpService mActiveDevice: null Profile: HidHostService mTargetDevice: null mInputDevices: Profile: PanService mMaxPanDevices: 5 mPanIfName: bt-pan mTetherOn: false mPanDevices: Profile: BluetoothMapService mRemoteDevice: null sRemoteDeviceName: null mState: 0 mAppObserver: com.android.bluetooth.map.BluetoothMapAppObserver@cb58fd7 mIsWaitingAuthorization: false mRemoveTimeoutMsg: false mPermission: 0 mAccountChanged: false mBluetoothMnsObexClient: null mMasInstanceMap: null : MasId: 0 Uri:null SMS/MMS:true mEnabledAccounts: Profile: AvrcpTargetService: List of MediaControllers: size=0 List of Browsers: size=0 AvrcpVolumeManager: mCurrentDevice: null Current System Volume: 7 Device Volume Memory Map: Device Address : Device Name : Vol : AbsVol 26:00:00:02:31:C9 : J29 R : 15 : NotConnected Profile: SapService Profile: HidDeviceService Profile: BluetoothOppService Profile: BluetoothPbapService Connection Events: 11-20 09:22:57.458 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:57.456 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:56.595 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:55.790 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:55.790 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:55.790 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:51.232 DISCONNECTED cf:8b:bc:f4:2d:04 reason=22 11-20 09:22:51.232 DISCONNECTED cf:8b:bc:f4:2d:04 reason=22 11-20 09:22:51.232 DISCONNECTED cf:8b:bc:f4:2d:04 reason=22 11-20 09:22:51.120 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:50.650 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:22:50.297 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:17:43.507 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:17:43.450 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:17:40.355 CONNECTED cf:8b:bc:f4:2d:04 11-20 09:17:37.460 CONNECTED cf:8b:bc:f4:2d:04 Bond Events: Total Number of events: 20 Time address Function State 21:32:05.225 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 21:48:05.408 cf:8b:bc:f4:2d:04 btif_dm_create_bond BOND_STATE_NONE 21:48:05.414 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_BONDING 21:48:05.458 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 21:59:50.154 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:12:01.481 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:20:06.948 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:21:32.837 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:22:20.193 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:41:23.386 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:41:47.693 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:44:11.884 cf:8b:bc:f4:2d:04 btif_dm_create_bond BOND_STATE_NONE 22:44:11.887 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_BONDING 22:44:11.910 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE 22:44:29.499 cf:8b:bc:f4:2d:04 bond_state_changed BOND_STATE_NONE A2DP State: TxQueue: Counts (enqueue/dequeue/readbuf) : 0 / 0 / 0 Last update time ago in ms (enqueue/dequeue/readbuf) : 0 / 0 / 0 Frames per packet (total/max/ave) : 0 / 0 / 0 Counts (flushed/dropped/dropouts) : 0 / 0 / 0 Counts (max dropped) : 0 Last update time ago in ms (flushed/dropped) : 0 / 0 Counts (underflow) : 0 Bytes (underflow) : 0 Last update time ago in ms (underflow) : 0 Enqueue deviation counts (overdue/premature) : 0 / 0 Enqueue overdue scheduling time in ms (total/max/ave) : 0 / 0 / 0 Enqueue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0 Dequeue deviation counts (overdue/premature) : 0 / 0 Dequeue overdue scheduling time in ms (total/max/ave) : 0 / 0 / 0 Dequeue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0 A2DP Source State: Enabled Active peer: 00:00:00:00:00:00 A2DP Sink State: Disabled AVRCP Target Native Service: 0 devices Bluetooth Config: Config Source: Original file Devices loaded: 2 File created/tagged: 2020-10-18 03:27:01 File source: Empty Bluetooth HF Client BTA Statistics Bluetooth Wakelock Statistics: Is acquired : false Acquired/released count : 3973 / 3973 Acquired/released error count : 0 / 0 Last acquire/release error code: 0 / 0 Last acquired time (ms) : 1 Acquired time min/max/avg (ms) : 0 / 2432 / 7 Total acquired time (ms) : 31526 Total run time (ms) : 57050409 Bluetooth Memory Allocation Statistics: Total allocated/free/used counts : 0 / 0 / 0 Total allocated/free/used octets : 0 / 0 / 0 Bluetooth Alarms Statistics: Total Alarms: 1 Alarm : btm_ble_addr.refresh_raddr_timer (SINGLE) Action counts (sched/resched/exec/cancel) : 64 / 0 / 63 / 0 Deviation counts (overdue/premature) : 51 / 0 Time in ms (since creation/interval/remaining) : 343528 / 900000 / 556473 Overdue scheduling time in ms (total/max/avg) : 6190 / 2052 / 121 Premature scheduling time in ms (total/max/avg): 0 / 0 / 0 Hearing Aid Manager: Hearing Aid Audio HAL: Counts (underflow) : 0 Bytes (underflow) : 0 Last update time ago in ms (underflow) : 0 connection_manager state: no Low Energy connection attempts BT Quality Report Events: Event queue is empty. --- BEGIN:BTSNOOP_LOG_SUMMARY (0 bytes in) --- AgAAAAAAAAAA --- END:BTSNOOP_LOG_SUMMARY --- ``` The BTSNOOP_LOG_SUMMARY is empty even though the HCI logging is enabled. :( The BT_stack.conf, says nothing about bluetooth logging enabled or log location. ``` # Enable trace level reconfiguration function # Must be present before any TRC_ trace level settings TraceConf=true # Trace level configuration # BT_TRACE_LEVEL_NONE 0 ( No trace messages to be generated ) # BT_TRACE_LEVEL_ERROR 1 ( Error condition trace messages ) # BT_TRACE_LEVEL_WARNING 2 ( Warning condition trace messages ) # BT_TRACE_LEVEL_API 3 ( API traces ) # BT_TRACE_LEVEL_EVENT 4 ( Debug messages for events ) # BT_TRACE_LEVEL_DEBUG 5 ( Full debug messages ) # BT_TRACE_LEVEL_VERBOSE 6 ( Verbose messages ) - Currently supported for TRC_BTAPP only. TRC_BTM=2 TRC_HCI=2 TRC_L2CAP=2 TRC_RFCOMM=2 TRC_OBEX=2 TRC_AVCT=2 TRC_AVDT=2 TRC_AVRC=2 TRC_AVDT_SCB=2 TRC_AVDT_CCB=2 TRC_A2D=2 TRC_SDP=2 TRC_SMP=2 TRC_BTAPP=2 TRC_BTIF=2 TRC_BNEP=2 TRC_PAN=2 TRC_HID_HOST=2 TRC_HID_DEV=2 # This is Log configuration for new C++ code using LOG() macros. # See libchrome/base/logging.h for description on how to configure your logs. # sample configuration: #LoggingV=--v=0 #LoggingVModule=--vmodule=*/btm/*=1,btm_ble_multi*=2,btif_*=1 # PTS testing helpers # Secure connections only mode. # PTS_SecurePairOnly=true # Disable LE Connection updates #PTS_DisableConnUpdates=true # Disable BR/EDR discovery after LE pairing to avoid cross key derivation errors #PTS_DisableSDPOnLEPair=true # SMP Pair options (formatted as hex bytes) auth, io, ikey, rkey, ksize #PTS_SmpOptions=0xD,0x4,0xf,0xf,0x10 # PTS AVRCP Test mode #PTS_AvrcpTest=true # SMP Certification Failure Cases # Set any of the following SMP error values (from smp_api_types.h) # to induce pairing failues for various PTS SMP test cases. # Setting PTS_SmpFailureCase to 0 means normal operation. # Failure modes: # # SMP_PASSKEY_ENTRY_FAIL = 1 # SMP_PAIR_AUTH_FAIL = 3 # SMP_CONFIRM_VALUE_ERR = 4 # SMP_PAIR_NOT_SUPPORT = 5 # SMP_PAIR_FAIL_UNKNOWN = 8 # SMP_REPEATED_ATTEMPTS = 9 # SMP_NUMERIC_COMPAR_FAIL = 12 #PTS_SmpFailureCase=0 ```
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.