All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael N. Moran" <mike@mnmoran.org>
To: Devin Bayer <dev@doubly.so>, linux-bluetooth@vger.kernel.org
Subject: Re: LE Advertising: Command Disallowed
Date: Wed, 11 Nov 2020 15:04:07 -0500	[thread overview]
Message-ID: <b86e5449-d784-deee-87d8-4bcf1b4b6308@mnmoran.org> (raw)
In-Reply-To: <d343e320-b368-e85b-d428-d5c000eb69df@doubly.so>

Hi Devin,

If I recall correctly, you get this if advertising is already enabled.


On 11/11/20 12:49 PM, Devin Bayer wrote:
> 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)


-- 
Michael N. Moran           (h) 770 704 9751
218 Wilshire Terrace       (c) 678 521 5460
White, GA, USA 30184       http://mnmoran.org


  reply	other threads:[~2020-11-11 20:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 17:49 LE Advertising: Command Disallowed Devin Bayer
2020-11-11 20:04 ` Michael N. Moran [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b86e5449-d784-deee-87d8-4bcf1b4b6308@mnmoran.org \
    --to=mike@mnmoran.org \
    --cc=dev@doubly.so \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.