All of lore.kernel.org
 help / color / mirror / Atom feed
* LE Advertising: Command Disallowed
@ 2020-11-11 17:49 Devin Bayer
  2020-11-11 20:04 ` Michael N. Moran
  0 siblings, 1 reply; 9+ messages in thread
From: Devin Bayer @ 2020-11-11 17:49 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I am trying to figure out why I'm getting "Command Disallowed" for the HCI
commands "LE Set Advertise Enable" and "LE Set Advertising Parameters". I've
been trying for a few days to get a GATT service running; first with the D-BUS
API, which occasionally worked but was very unstable. Now I'm trying with HCI
directly with the pybleno / bleno libraries.

I have bluetoothd disabled and I have tried an `hciconfig reset` and reboot.
Unsure what else I can do, I'm asking here.

The errors are these:

> HCI Event: Command Complete (0x0e) plen 4      #14 [hci0] 3.406377
      LE Set Advertise Enable (0x08|0x000a) ncmd 1
        Status: Command Disallowed (0x0c)

> HCI Event: Command Complete (0x0e) plen 4      #16 [hci0] 3.407380
      LE Set Advertising Parameters (0x08|0x0006) ncmd 1
        Status: Command Disallowed (0x0c)

The complete log follows:

Bluetooth monitor ver 5.53
= Note: Linux version 5.8.0-26-generic (x86_64)             0.408833
= Note: Bluetooth subsystem version 2.22                    0.408835
= New Index: DC:FB:48:24:13:5E (Primary,USB,hci0)    [hci0] 0.408836
= Open Index: DC:FB:48:24:13:5E                      [hci0] 0.408836
= Index Info: DC:FB:48:24:13:5E (Intel Corp.)        [hci0] 0.408837
@ MGMT Open: btmon (privileged) version 1.17       {0x0001} 0.408979
@ RAW Open: py.. (privileged) version 2.22  {0x0002} [hci0] 1.487478
< HCI Command: Set Event... (0x03|0x0001) plen 8  #1 [hci0] 1.487682
        Mask: 0x3dbff807fffbffff
          Inquiry Complete
          Inquiry Result
          Connection Complete
          Connection Request
          Disconnection Complete
          Authentication Complete
          Remote Name Request Complete
          Encryption Change
          Change Connection Link Key Complete
          Master Link Key Complete
          Read Remote Supported Features Complete
          Read Remote Version Information Complete
          QoS Setup Complete
          Command Complete
          Command Status
          Hardware Error
          Flush Occurred
          Role Change
          Mode Change
          Return Link Keys
          PIN Code Request
          Link Key Request
          Link Key Notification
          Loopback Command
          Data Buffer Overflow
          Max Slots Change
          Read Clock Offset Complete
          Connection Packet Type Changed
          QoS Violation
          Page Scan Mode Change
          Page Scan Repetition Mode Change
          Flow Specification Complete
          Inquiry Result with RSSI
          Read Remote Extended Features Complete
          Synchronous Connection Complete
          Synchronous Connection Changed
          Sniff Subrating
          Extended Inquiry Result
          Encryption Key Refresh Complete
          IO Capability Request
          IO Capability Request Reply
          User Confirmation Request
          User Passkey Request
          Remote OOB Data Request
          Simple Pairing Complete
          Link Supervision Timeout Changed
          Enhanced Flush Complete
          User Passkey Notification
          Keypress Notification
          Remote Host Supported Features Notification
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4       #2 [hci0] 1.605102
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Eve.. (0x08|0x0001) plen 8  #3 [hci0] 1.605163
        Mask: 0x000000000000001f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
> HCI Event: Command Complete (0x0e) plen 4       #4 [hci0] 1.605858
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local.. (0x04|0x0001) plen 0  #5 [hci0] 1.605905
> HCI Event: Command Complete (0x0e) plen 12      #6 [hci0] 1.606854
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Bluetooth 5.1 (0x0a) - Revision 256 (0x0100)
        LMP version: Bluetooth 5.1 (0x0a) - Subversion 256 (0x0100)
        Manufacturer: Intel Corp. (2)
< HCI Command: Write LE H.. (0x03|0x006d) plen 2  #7 [hci0] 1.606900
        Supported: 0x01
        Simultaneous: 0x00
> HCI Event: Command Complete (0x0e) plen 4       #8 [hci0] 1.607854
      Write LE Host Supported (0x03|0x006d) ncmd 1
        Status: Success (0x00)
< HCI Command: Read LE Ho.. (0x03|0x006c) plen 0  #9 [hci0] 1.607863
> HCI Event: Command Complete (0x0e) plen 6      #10 [hci0] 1.608862
      Read LE Host Supported (0x03|0x006c) ncmd 1
        Status: Success (0x00)
        Supported: 0x01
        Simultaneous: 0x00
< HCI Command: Read BD A.. (0x04|0x0009) plen 0  #11 [hci0] 1.608916
> HCI Event: Command Complete (0x0e) plen 10     #12 [hci0] 1.610004
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: DC:FB:48:24:13:5E (Intel Corporate)
< HCI Command: LE Set Ad.. (0x08|0x000a) plen 1  #13 [hci0] 1.610132
        Advertising: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4      #14 [hci0] 1.610811
      LE Set Advertise Enable (0x08|0x000a) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set A.. (0x08|0x0006) plen 15  #15 [hci0] 1.610893
        Min advertising interval: 100.000 msec (0x00a0)
        Max advertising interval: 100.000 msec (0x00a0)
        Type: Connectable undirected - ADV_IND (0x00)
        Own address type: Public (0x00)
        Direct address type: Public (0x00)
        Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
        Channel map: 37, 38, 39 (0x07)
        Filter policy: Allow Scan Request from Any, Allow Connect Request from
Any (0x00)
> HCI Event: Command Complete (0x0e) plen 4      #16 [hci0] 1.611979
      LE Set Advertising Parameters (0x08|0x0006) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set S.. (0x08|0x0009) plen 32  #17 [hci0] 1.612322
        Length: 6
        Name (short): echo
> HCI Event: Command Complete (0x0e) plen 4      #18 [hci0] 1.612880
      LE Set Scan Response Data (0x08|0x0009) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set A.. (0x08|0x0008) plen 32  #19 [hci0] 1.613007
        Length: 7
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        16-bit Service UUIDs (complete): 1 entry
          Unknown (0xec00)
> HCI Event: Command Complete (0x0e) plen 4      #20 [hci0] 1.613980
      LE Set Advertising Data (0x08|0x0008) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set Ad.. (0x08|0x000a) plen 1  #21 [hci0] 1.614025
        Advertising: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4      #22 [hci0] 1.614830
      LE Set Advertise Enable (0x08|0x000a) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set S.. (0x08|0x0009) plen 32  #23 [hci0] 1.614913
        Length: 6
        Name (short): echo
> HCI Event: Command Complete (0x0e) plen 4      #24 [hci0] 1.615974
      LE Set Scan Response Data (0x08|0x0009) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set A.. (0x08|0x0008) plen 32  #25 [hci0] 1.616018
        Length: 7
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        16-bit Service UUIDs (complete): 1 entry
          Unknown (0xec00)
> HCI Event: Command Complete (0x0e) plen 4      #26 [hci0] 1.616985
      LE Set Advertising Data (0x08|0x0008) ncmd 1
        Status: Command Disallowed (0x0c)

Any help / pointers is much appreciated.

~ Dev

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-12 16:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 17:49 LE Advertising: Command Disallowed Devin Bayer
2020-11-11 20:04 ` Michael N. Moran
2020-11-11 20:11   ` Devin Bayer
2020-11-11 20:53     ` Luiz Augusto von Dentz
2020-11-11 21:07       ` Devin Bayer
2020-11-11 23:00         ` Emil Lenngren
2020-11-12 12:16           ` Devin Bayer
2020-11-12 13:53             ` Emil Lenngren
2020-11-12 16:24               ` Devin Bayer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.