Linux bluetooth development
 help / color / mirror / Atom feed
* Trying to run example-advertisement
@ 2015-07-02 19:22 Neil Martin
  2015-07-03  5:17 ` Gowtham Anandha Babu
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Martin @ 2015-07-02 19:22 UTC (permalink / raw)
  To: linux-bluetooth

I was having trouble using the advertising api in my own code, so
decided to run the example-advertisement python test to rule out
errors in my code.  This doesn't work either - I get the following
error message:

LEAdvertisingManager1 interface not found

I know the advertising api is experimental.  My bluez was built with
--enable-experimental  and I'm running bluetoothd with the -E flag.
It seems like this is an environment issue, but I don't find any
suggestions when I try googling for help.  Is there anything obvious
that I'm missing?

Neil

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

* RE: Trying to run example-advertisement
  2015-07-02 19:22 Trying to run example-advertisement Neil Martin
@ 2015-07-03  5:17 ` Gowtham Anandha Babu
  2015-07-03  8:18   ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 4+ messages in thread
From: Gowtham Anandha Babu @ 2015-07-03  5:17 UTC (permalink / raw)
  To: 'Neil Martin', 'linux-bluetooth'

Hi Neil,

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Neil Martin
> Sent: Friday, July 03, 2015 12:52 AM
> To: linux-bluetooth
> Subject: Trying to run example-advertisement
> 
> I was having trouble using the advertising api in my own code, so decided to
> run the example-advertisement python test to rule out errors in my code.
> This doesn't work either - I get the following error message:
> 
> LEAdvertisingManager1 interface not found
> 
> I know the advertising api is experimental.  My bluez was built with --enable-
> experimental  and I'm running bluetoothd with the -E flag.
> It seems like this is an environment issue, but I don't find any suggestions
> when I try googling for help.  Is there anything obvious that I'm missing?

I faced the similar issue and got resolved after updating the kernel to latest one.
Then it is able to successfully register.

> 
> Neil
> --

Regards,
Gowtham Anandha Babu


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

* Re: Trying to run example-advertisement
  2015-07-03  5:17 ` Gowtham Anandha Babu
@ 2015-07-03  8:18   ` Luiz Augusto von Dentz
  2015-07-03 16:40     ` Neil Martin
  0 siblings, 1 reply; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2015-07-03  8:18 UTC (permalink / raw)
  To: Gowtham Anandha Babu; +Cc: Neil Martin, linux-bluetooth

Hi Neil,

On Fri, Jul 3, 2015 at 8:17 AM, Gowtham Anandha Babu
<gowtham.ab@samsung.com> wrote:
> Hi Neil,
>
>> -----Original Message-----
>> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
>> owner@vger.kernel.org] On Behalf Of Neil Martin
>> Sent: Friday, July 03, 2015 12:52 AM
>> To: linux-bluetooth
>> Subject: Trying to run example-advertisement
>>
>> I was having trouble using the advertising api in my own code, so decided to
>> run the example-advertisement python test to rule out errors in my code.
>> This doesn't work either - I get the following error message:
>>
>> LEAdvertisingManager1 interface not found
>>
>> I know the advertising api is experimental.  My bluez was built with --enable-
>> experimental  and I'm running bluetoothd with the -E flag.
>> It seems like this is an environment issue, but I don't find any suggestions
>> when I try googling for help.  Is there anything obvious that I'm missing?
>
> I faced the similar issue and got resolved after updating the kernel to latest one.
> Then it is able to successfully register.

Yep, currently Linux 4.1 is required,  you can actually check if your
kernel support with the tools/mgmt-tester:

sudo ./tools/mgmt-tester -p "Read Advertising"
sudo ./tools/mgmt-tester -p "Add Advertising"

The tests should all pass otherwise bluetoothd wont be able to work
since it depends on these commands to manage the advertising data.

-- 
Luiz Augusto von Dentz

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

* Re: Trying to run example-advertisement
  2015-07-03  8:18   ` Luiz Augusto von Dentz
@ 2015-07-03 16:40     ` Neil Martin
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Martin @ 2015-07-03 16:40 UTC (permalink / raw)
  To: linux-bluetooth

On Fri, Jul 3, 2015 at 3:18 AM, Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
> Hi Neil,
>
> On Fri, Jul 3, 2015 at 8:17 AM, Gowtham Anandha Babu
> <gowtham.ab@samsung.com> wrote:
>> Hi Neil,
>>
>>> -----Original Message-----
>>> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
>>> owner@vger.kernel.org] On Behalf Of Neil Martin
>>> Sent: Friday, July 03, 2015 12:52 AM
>>> To: linux-bluetooth
>>> Subject: Trying to run example-advertisement
>>>
>>> I was having trouble using the advertising api in my own code, so decided to
>>> run the example-advertisement python test to rule out errors in my code.
>>> This doesn't work either - I get the following error message:
>>>
>>> LEAdvertisingManager1 interface not found
>>>
>>> I know the advertising api is experimental.  My bluez was built with --enable-
>>> experimental  and I'm running bluetoothd with the -E flag.
>>> It seems like this is an environment issue, but I don't find any suggestions
>>> when I try googling for help.  Is there anything obvious that I'm missing?
>>
>> I faced the similar issue and got resolved after updating the kernel to latest one.
>> Then it is able to successfully register.
>
> Yep, currently Linux 4.1 is required,  you can actually check if your
> kernel support with the tools/mgmt-tester:
>
> sudo ./tools/mgmt-tester -p "Read Advertising"
> sudo ./tools/mgmt-tester -p "Add Advertising"
>
> The tests should all pass otherwise bluetoothd wont be able to work
> since it depends on these commands to manage the advertising data.
>
> --
> Luiz Augusto von Dentz

Thanks for all the replies.  I'm running bluez on a raspberry pi 2 and
as far as I can tell, there isn't an easy path to a 4.1 kernel.  I
applied all the updates to my installation and ended up at 4.07.  I
don't have a lot of linux background, but from googling the topic, it
seems like 4.1 is so new that it isn't universally available.

Neil

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

end of thread, other threads:[~2015-07-03 16:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 19:22 Trying to run example-advertisement Neil Martin
2015-07-03  5:17 ` Gowtham Anandha Babu
2015-07-03  8:18   ` Luiz Augusto von Dentz
2015-07-03 16:40     ` Neil Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox