2015-06-18 07:23:17

by Zheng, Wu

[permalink] [raw]
Subject: Fail to test advertisement

Hi all,

I try to test the feature advertisement of bluez.

Environment:
The kernel is 3.19.
The bluez is the latest git version.

The process is the following points:

Hciconfig hci0 up.

then run "Bluetooth -Edn" for testing advertisement.

I can get the log info:

Src/advertising.c:btd_advertising_manager_new() LE Advertising Manger cretated for adapter: /org/bluez/hci0
Failed to read advertising features: Unknown Command (0x01)

Bluez failed to create LE Advertising Manager.

And try to run "ibeacon" to check "read advertising features". It works well.

What's suggestion? Any step is wrong? Thanks.

Best Regards
Zheng Wu


2015-06-19 00:51:42

by Marcel Holtmann

[permalink] [raw]
Subject: Re: Fail to test advertisement

Hi Zheng,

> I try to test the feature advertisement of bluez.
>
> Environment:
> The kernel is 3.19.
> The bluez is the latest git version.
>
> The process is the following points:
>
> Hciconfig hci0 up.
>
> then run "Bluetooth -Edn" for testing advertisement.
>
> I can get the log info:
>
> Src/advertising.c:btd_advertising_manager_new() LE Advertising Manger cretated for adapter: /org/bluez/hci0
> Failed to read advertising features: Unknown Command (0x01)
>
> Bluez failed to create LE Advertising Manager.
>
> And try to run "ibeacon" to check "read advertising features". It works well.
>
> What's suggestion? Any step is wrong? Thanks.

the kernel you have it not supporting advertising in a form that is needed for LE Advertising Manager. You need at least 4.1 kernel.

And the ibeacon test tool uses HCI User Channel and thus raw access to the hardware. You are looking for the mgmt interface for advertising. Check doc/mgmt-api.txt.

Regards

Marcel