Wireless
Participate in insightful discussions regarding issues related to Intel® Wireless Adapters and technologies
7422 Discussions

AX200 - Passive BLE scan - linux

mm8803123
Beginner
4,884 Views

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

0 Kudos
9 Replies
Maria_R_Intel
Moderator
4,851 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
Maria_R_Intel
Moderator
4,753 Views

Hello mm8803123,

 

Thank you for patiently waiting.

 

The engineering team has reviewed the information and it seems to be incomplete, you only provided the btmon trace, and we would like to know if you can provide the entire btmon logs for further analysis.

 

We will need this information to continue.

 

 

Best regards, 

Maria R.  

Intel Customer Support Technician 

 

0 Kudos
Maria_R_Intel
Moderator
4,739 Views

Hello mm8803123,


Were you able to check the previous post? 


Let me know if you need more assistance. 


Best regards, 

Maria R.  

Intel Customer Support Technician 


0 Kudos
mm8803123
Beginner
4,727 Views

Hi,
I'll try to produce logs this weekend.

Just to confirm,

I'm going to use command for ble trace: 
btmon -w <trace_file>

And provide
dbus.log file for dbus communication log
and
syslog file  for bluetoothd

Is there anything else i can provide or any other file you need?

Thanks,

0 Kudos
Maria_R_Intel
Moderator
4,708 Views

Hello mm8803123,


That is the only information we need at the moment; we will let you know if the team requests more info after checking the information you will provide.


Thank you


Best regards, 

Maria R.  

Intel Customer Support Technician 


0 Kudos
Maria_R_Intel
Moderator
4,696 Views

Hello mm8803123,


Were you able to check the previous post?

 

Let me know if you need more assistance.

 

Best regards, 

Maria R.  

Intel Customer Support Technician 


0 Kudos
Maria_R_Intel
Moderator
4,680 Views

Hello mm8803123,

 

We have not heard back from you, please let us know if you still need assistance. 

Best regards, 

Maria R.  

Intel Customer Support Technician 

 

0 Kudos
Maria_R_Intel
Moderator
4,650 Views

Hello mm8803123,


Happy New Year!


We thought that as per the Holidays you might not gather the information so we are following up on your thread, please let us know if you need more time.


Best regards,

Maria R.

Intel Customer Support Technician


0 Kudos
mknapik
Beginner
3,593 Views

Hi,

we have same problem with AX 200 on:

  • HW: imx8
  • SW: balenaOS 2.108.1

Normal BLE scan works fine, however there seems to be no way to process a passive scan.
Passive scan is working fine on same SW stack with BLE 4.0 dongle (Gembird BTD-MINI5 - it shout have Qualcomm CSR8510 A10).

 

We try passive scan with hcitool:

hcitool -i hci0 cmd 0x08 0x000b 00 00 10 00 10 00 00

and also with bluepy-helper:

# bluepy-helper.c version 1.3.0 built at 11:21:29 on Dec 20 2022
pasv
rsp=$mgmtcode=$badstate

and both returned (see btmon_debug.zip file) this:

Bluetooth monitor ver 5.64
= Note: Linux version 5.10.72-iot-gate-imx8-3.0 (aarch64)                                                                                                                                            0.839105
= Note: Bluetooth subsystem version 2.22                                                                                                                                                             0.839115
= New Index: E0:D4:E8:73:99:2E (Primary,USB,hci0)                                                                                                                                             [hci0] 0.839118
= Open Index: E0:D4:E8:73:99:2E                                                                                                                                                               [hci0] 0.839120
= Index Info: E0:D4:E8:73:99:2E (Intel Corp.)                                                                                                                                                 [hci0] 0.839122
@ RAW Open: bluepy-helper (privileged) version 2.22                                                                                                                                  {0x0003} [hci0] 0.839124
@ MGMT Open: bluepy-helper (privileged) version 1.18                                                                                                                                        {0x0002} 0.839126
@ MGMT Open: bluetoothd (privileged) version 1.18                                                                                                                                           {0x0001} 0.839128
@ RAW Open: bluepy-helper (privileged) version 2.22                                                                                                                                  {0x0004} [hci0] 8.131642
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                     #1 [hci0] 8.131714
        Scanning: Disabled (0x00)
        Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                #2 [hci0] 8.133771
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                                                                                                 #3 [hci0] 8.133887
        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] 8.135768
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Command Disallowed (0x0c)

 

So, we would like to know what is the problem and possibly how it could be fixed. 

Thanks.

0 Kudos
Reply