Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
87 Views

AX200 - Passive BLE scan - linux

Hi,

I'm using Asus X570-E gaming, with built in intel ax200 - bluetooth 5.0.

I can issue BLE connections, normal BLE scans and it works OK. Wifi also works OK.
However there seems to be no way to issue a passive scan.

I'm mostly using bluepy, but i tried with pure bluez tools.
Same SW stack is working OK on cheap BLE 4.0 dongle, or Centino N-6235 (on my older laptop)

HW: Intel AX 200 (on Asus X570E gaming)
SW: Linux kernel 5.9.3 (Manjaro)

Steps to reproduce:
 - using python3 in a temporary directory

python3 -m venv .venv && source .venv/bin/activate # create clean venv
pip install --upgrade pip  # update pip just in case
pip install bluepy # install bluepy and it's dependencies (bluez)

# next line work OK
sudo blescan # sudo needed for BLE scan permissions...

# next line fails, sine it uses passive scan 
sudo python .venv/lib/python3.8/site-packages/bluepy/scanner.py 




This is an example (using btmon to sniff hci traffic) when passive scan is issued.

@ MGMT Open: bluetoothd (privileged) version 1.18                                                                                  {0x0001} 0.280194
@ MGMT Open: bluepy-helper (privileged) version 1.18                                                                              {0x0002} 22.739867
@ MGMT Command: Read Management Version Information (0x0001) plen 0                                                               {0x0002} 22.739920
@ MGMT Event: Command Complete (0x0001) plen 6                                                                                    {0x0002} 22.739924
      Read Management Version Information (0x0001) plen 3
        Status: Success (0x00)
        Version: 1.18
@ MGMT Command: Set Low Energy (0x000d) plen 1                                                                             {0x0002} [hci0] 22.739965
        Low Energy: Enabled (0x01)
@ MGMT Event: Command Complete (0x0001) plen 7                                                                             {0x0002} [hci0] 22.739968
      Set Low Energy (0x000d) plen 4
        Status: Success (0x00)
        Current settings: 0x00000ad1
          Powered
          Bondable
          Secure Simple Pairing
          BR/EDR
          Low Energy
          Secure Connections
@ RAW Open: bluepy-helper (privileged) version 2.22                                                                        {0x0003} [hci0] 22.740140
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                           #1 [hci0] 22.740165
        Scanning: Disabled (0x00)
        Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                      #2 [hci0] 22.858377
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                                       #3 [hci0] 22.858447
        Type: Passive (0x00)
        Interval: 10.000 msec (0x0010)
        Window: 10.000 msec (0x0010)
        Own address type: Public (0x00)
        Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                      #4 [hci0] 22.862378
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Command Disallowed (0x0c)
@ RAW Open: bluepy-helper (privileged) version 2.22                                                                        {0x0004} [hci0] 24.864574
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                           #5 [hci0] 24.864596
        Scanning: Disabled (0x00)
        Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                      #6 [hci0] 24.867373
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)


 
If i do

sudo hcitool cmd 0x03 0x0003

before that, btmon returns Status as ""Success" everywhere, however no devices are scanned. And afterwards passive scan fails...

Is this linux driver issue, does HW not support passive scan, or am i missing something obvious?

Thanks in advance

Tags (2)
0 Kudos
1 Reply
Highlighted
Moderator
54 Views

Hello mm8803123,


Thank you for posting on the Intel* Community.


I am currently checking the information you provided internally, please expect a response soon.


Best regards,

Maria R.

Intel Customer Support Technician


0 Kudos