nRF52840 Dongle seems not support le extended advertising

Hello,

I'm using nRF52840 Dongle with Zephyr hex built from zephyr/samples/bluetooth/hci_usb/.

But, it seems not support le extended advertising like below.

< HCI Command: LE Read Local Supported Features (0x08|0x0003) plen 0                                                                                           #37 [hci0] 8281.379929
> HCI Event: Command Complete (0x0e) plen 12                                                                                                                   #38 [hci0] 8281.496034
      LE Read Local Supported Features (0x08|0x0003) ncmd 1
        Status: Success (0x00)
        Features: 0xff 0x49 0x01 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Connection Parameter Request Procedure
          Extended Reject Indication
          Slave-initiated Features Exchange
          LE Ping
          LE Data Packet Length Extension
          LL Privacy
          Extended Scanner Filter Policies
          LE 2M PHY
          LE Coded PHY
          Channel Selection Algorithm #2
          Minimum Number of Used Channels Procedure
@ RAW Close: hcitool         

and, when I execute extended adv related command. the result is here.

< HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6                                                                                                #33 [hci0] 2214.834790
        Extended scan: Enabled (0x01)
        Filter duplicates: Disabled (0x00)
        Duration: 0 msec (0x0000)
        Period: 0.00 sec (0x0000)
> HCI Event: Command Status (0x0f) plen 4                                                                                                                      #34 [hci0] 2214.948804
      LE Set Extended Scan Enable (0x08|0x0042) ncmd 1
        Status: Unknown HCI Command (0x01)
@ RAW Close: hcitool                 
< HCI Command: LE Set Extended Advertising Data (0x08|0x0037) plen 18                                                                                          #35 [hci0] 2426.866100
        Handle: 0x06
        Operation: Complete extended advertising data (0x03)
        Fragment preference: Fragment all (0x00)
        Data length: 0x0e
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Name (complete): Ayush3
        TX power: -7 dBm
> HCI Event: Command Status (0x0f) plen 4                                                                                                                      #36 [hci0] 2426.980259
      LE Set Extended Advertising Data (0x08|0x0037) ncmd 1
        Status: Unknown HCI Command (0x01)
@ RAW Close: hcitool    

Below is my environments.

Host PC: Ubuntu 20.04.3 LTS

Zephyr source code: https://github.com/zephyrproject-rtos/zephyr (commit: 20a05b68385193d23158303ce6e805b751fb3831)

  • Hi,

    There is noting preventing the dongle from using extended advertising, but it depends on how you have configured the hci_usb project that is running on it.

    I see you point directly to Zephyr, so please note that we only support using the nRF Connect SDK (of which Zephyr is a big part). If you are using vanilla Zephyr, you should try the Zephyr community instead.

    Depending on which features you want to support, you need to add some configurations. Relevant configurations for extended advertising are (you may not need all and might want other configurations, so adjust as needed):

    • CONFIG_BT_EXT_ADV=y
    • CONFIG_BT_EXT_ADV_MAX_ADV_SET=2
    • CONFIG_BT_CTLR_ADV_EXT=y
    • CONFIG_BT_EXT_ADV_LEGACY_SUPPORT=y
  • Thank you for your answer! when I enable above features, extended advertising seems to be enabled.

    < HCI Command: LE Read Local Supported Features (0x08|0x0003) plen 0 #1 [hci0] 4.797483
    > HCI Event: Command Complete (0x0e) plen 12 #2 [hci0] 4.926297
    LE Read Local Supported Features (0x08|0x0003) ncmd 1
    Status: Success (0x00)
    Features: 0xff 0x59 0x01 0x00 0x00 0x00 0x00 0x00
    LE Encryption
    Connection Parameter Request Procedure
    Extended Reject Indication
    Slave-initiated Features Exchange
    LE Ping
    LE Data Packet Length Extension
    LL Privacy
    Extended Scanner Filter Policies
    LE 2M PHY
    LE Coded PHY
    LE Extended Advertising
    Channel Selection Algorithm #2
    Minimum Number of Used Channels Procedure
    @ RAW Close: hcitool

Related