Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98908

Low energy scanner is not finding any results under 6.2.2 and macOS 12

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      MacBook Pro (13-inch, M1, 2020), Apple M1
    • Platform/s:
      macOS

      Description

      When I build the example lowenergyscanner (which is running with macos 11 and 6.2.2)  the scanner is not finding any devices.

      Here is the log of the Console:

      default	12:19:55.230671+0100	bluetoothd	Received XPC message "CBMsgIdTCCDone" from session "lowenergyscanner-central-1560-58"
      default	12:19:55.230743+0100	bluetoothd	PowerManager power state is 1
      default	12:19:55.230777+0100	bluetoothd	Power state changed. PowerState:1 managerState:5 fUserAuthorization: 0	 medicalDeviceorStateRestorationAppPendingTCC:0
      default	12:19:55.230806+0100	bluetoothd	Sending 'state updated' event with state "On" to session "lowenergyscanner-central-1560-58"
      default	12:19:55.230834+0100	bluetoothd	Sending XPC message "CBMsgIdStateUpdated" to session "lowenergyscanner-central-1560-58"
      default	12:19:55.230881+0100	bluetoothd	Sending XPC message "CBMsgIdSupportedFeatures" to session "lowenergyscanner-central-1560-58"
      default	12:19:55.230933+0100	bluetoothd	advertisingAddressDidChange connectable:<private> non-connectable:<private>
      default	12:19:55.230979+0100	bluetoothd	Ignore advertisingAddressDidChange for session <private> with access level : 0 and manager state not powered on
      default	12:19:55.231134+0100	bluetoothd	advertisingAddressDidChange connectable:<private> non-connectable:<private>
      default	12:19:55.231271+0100	bluetoothd	Ignore advertisingAddressDidChange for session <private> with access level : 0 and manager state not powered on
      default	12:19:55.231291+0100	bluetoothd	Received XPC message "CBMsgIdScan" from session "lowenergyscanner-central-1560-58"
      default	12:19:55.231434+0100	bluetoothd	PowerManager power state is 1
      default	12:19:55.231760+0100	bluetoothd	fShouldRetainDupsNextUpdate 0, screen? 1, retaindup? 0, EN scans? 0, created[EN]=0
      default	12:19:55.231794+0100	bluetoothd	EN is not active - new retain dups value 0
      default	12:19:55.231843+0100	bluetoothd	Received 'start active scan' request without duplicates for all UUIDs on 1M PHY from session "lowenergyscanner-central-1560-58"
      default	12:19:55.231880+0100	bluetoothd	ShouldScan=1 AnyValidScanRequests=1 anyValidScanRequestInPaused=0 fObserverState=Active ClientScanPowerAssertRequired=0
      default	12:19:55.231920+0100	bluetoothd	state 32
      default	12:19:55.232002+0100	bluetoothd	allowDupes 0, agent: 0
      default	12:19:55.232044+0100	bluetoothd	active 0
      default	12:19:55.232112+0100	bluetoothd	state 32
      default	12:19:55.232148+0100	bluetoothd	allowDupes 0, agent: 0
      default	12:19:55.232173+0100	bluetoothd	active 1
      default	12:19:55.232228+0100	bluetoothd	ScanParams:AD:0 AS:0 MSL:3 (30/300) PSV:1 [com.apple.bluetoothd-central-98064-22 SO:0 AP:0 AD:0(30/300) AS:0 RAS:0 DMN:1 FG:0 ADVBF:0] | AD:0 AS:1 MSL:3 (30/300) PSV:1 [lowenergyscanner-central-1560-58 SO:0 AP:0 AD:0(0/0) AS:1 RAS:0 DMN:1 FG:0 ADVBF:0] |
      default	12:19:55.232264+0100	bluetoothd	Returning scan parameters: Main:30.00ms/300.00ms LP:0.00ms/300.00ms Dm:(m:30/300) Cond:0:1:0 Sc:1:0 (active) Dupfilter:Disabled minScanLevel:3 ENAssertion:N
      default	12:19:55.232299+0100	bluetoothd	needToRestart=1
      default	12:20:20.238322+0100	bluetoothd	Received XPC message "CBMsgIdStopScan" from session "lowenergyscanner-central-1560-58"
      default	12:20:20.238456+0100	bluetoothd	Received 'stop scan' request from session "lowenergyscanner-central-1560-58" updateScanParams:YES shouldUpdateState:YES
      default	12:20:20.238636+0100	bluetoothd	ShouldScan=1 AnyValidScanRequests=1 anyValidScanRequestInPaused=0 fObserverState=Active ClientScanPowerAssertRequired=0
      default	12:20:20.238727+0100	bluetoothd	state 32
      default	12:20:20.238780+0100	bluetoothd	allowDupes 0, agent: 0
      default	12:20:20.238826+0100	bluetoothd	active 0
      default	12:20:20.238909+0100	bluetoothd	ScanParams:AD:0 AS:0 MSL:3 (30/300) PSV:1 [com.apple.bluetoothd-central-98064-22 SO:0 AP:0 AD:0(30/300) AS:0 RAS:0 DMN:1 FG:0 ADVBF:0] |
      default	12:20:20.238970+0100	bluetoothd	Returning scan parameters: Main:30.00ms/300.00ms LP:0.00ms/300.00ms Dm:(m:30/300) Cond:0:1:0 Sc:1:0 (passive) Dupfilter:Enabled minScanLevel:3 ENAssertion:N
      default	12:20:20.239027+0100	bluetoothd	needToRestart=1
      default	12:20:20.239597+0100	bluetoothd	stopTrackingForSession: <private> for tracking devices (null) from requests <private>
      default	12:20:20.239653+0100	bluetoothd	Now tracking <private> with devices <private>
      default	12:20:20.239751+0100	bluetoothd	Stopping scan for session "<private>" - 0 advertisements delivered
      
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            abeat Constantin Wiesener
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes