Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp629600pxb; Wed, 11 Nov 2020 12:06:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxmiWYCkVj6bxT0ZylSU/0fpmPCnKbBg8TOBXexWGzZ3eSmRCLzX3PfehBH4frnzO0K59R X-Received: by 2002:a17:906:3958:: with SMTP id g24mr27674260eje.360.1605125179701; Wed, 11 Nov 2020 12:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605125179; cv=none; d=google.com; s=arc-20160816; b=Bjn+4Wn86Ac9Pp+ORK80m5KlJl85QXJliE38BqtSusABZqUO4GU0/VORKJoFzKfUvl 5eaNZDKmWbNJDM0Uha7gv3bYmuv1cZbKsyAXnjW48g/YRqABicJCPB1a2pQtEF1gTg8w /rNVE3xapHVDplhZJpG5zJ8gTqkTGW5aMmSoUdsvPsveaV8DHz2b/RBrlsvPzQJiMFeo vHXf465LuYPMP4hiWTw5o62DX/Cju9iLkHj1zr77/sg6PeR1fvh4rSDFL02SFw3XtwYn aBpSXc3OVxLmWSTExcOmwn6yyfUliBiZjqgnBIsLaPQuiIIi0aGd/U0EhmLJnT1ZEN/Y EC9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=9H7BZJZ004P0MhE2A58zmEPBZUf3WsyOAqWfwUScxBk=; b=zzgAxJeNutBPmDIbEU/FsSEfnOuSryPwrQ186hS/ybXYo3wbevrHf5K4ANpARFiGeX rOdbMS8PMJRGoGfnV0jsYlobbKAXfScV6vx/filqPF1wJ79pCiJy4IRL0pP6KbYoR/Qb pWZNOwzgtY5GQq1IwJHOZb2peOxGF4Uh7UciL6xLaQpuBylj4ez//r4arbS0DPnk9c2X ZymkHowDl10naQcrktTiNoZSsEY2qvMjheZ6BO93hxXJiSyapTDv0UqfRf6BRH/S2uWb sdaJerWAgj5BCCMNxy6mpX+vNTTQ4VrcUdVoqPiXIt1s+E+nmk2amsiwCy7qqGQVFj+/ Bixg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mnmoran.org header.s=dkim header.b=SY+l6LAK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si1920256ejf.335.2020.11.11.12.05.36; Wed, 11 Nov 2020 12:06:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mnmoran.org header.s=dkim header.b=SY+l6LAK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725996AbgKKUEI (ORCPT + 99 others); Wed, 11 Nov 2020 15:04:08 -0500 Received: from hoster906.com ([192.252.156.27]:60156 "EHLO hoster906.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbgKKUEI (ORCPT ); Wed, 11 Nov 2020 15:04:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mnmoran.org; h=subject :to:references:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=dkim; bh=dTipWsRJestd 4Li8kMKjt+zKKITCEYj+meN0Ho0uReA=; b=SY+l6LAKjgYjbxrMDimuaqtsRJCu jdp8ddcZUxIzbxMV5tIz5CKhE11nDG/IpSPEFive3x8OxGs4ssZcmvoRUfR5LtRg yJs0hCcT/3UQNJ237TEW1xAk/pxNcq6S49ocr02FXUz8bYm9xBLnGyK62Ke+CHbv 1Ty4+m8Mjj4J/gc= Received: (qmail 37498 invoked by uid 503); 11 Nov 2020 20:04:07 -0000 Received: from unknown (HELO ?192.168.254.79?) (mike@mnmoran.org@40.134.89.129) by hoster906.com with ESMTPA; 11 Nov 2020 20:04:07 -0000 Subject: Re: LE Advertising: Command Disallowed To: Devin Bayer , linux-bluetooth@vger.kernel.org References: From: "Michael N. Moran" Message-ID: Date: Wed, 11 Nov 2020 15:04:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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