Hello Folks,
Back with some more questions. I did tried googling but couldn't able to find much info on 'btmgmt' tool hence sharing issues.
Ran below commands to Setup the device (All went Good):
btmgmt name testbt
btmgmt privacy on
btmgmt le on
btmgmt keys on
btmgmt ltks off
btmgmt irks
btmgmt connectable on
btmgmt bondable on
btmgmt pairable on
btmgmt discov on
btmgmt advertising on
btmgmt fast-conn on
btmgmt linksec on
btmgmt power on
Failed to Add Advertisement
------------------------------------
root@imx28evk:~/tools# btmgmt info
Index list with 1 item
hci0: Primary controller
addr 1C:BA:8C:86:81:21 version 6 manufacturer 13 class 0x000000
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
current settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
name testbt
short name
// Starting Gatt Service
root@imx28evk:~/tools# ./gatt-service &
gatt-service unique name: :1.6
Registered service: /service1
Get UUID: 00001802-0000-1000-8000-00805f9b34fb
Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
// Adding Advertisement but Fails
root@imx28evk:~/tools# btmgmt add-adv -u 180d -u 180f -d 090954657374204C4505FFE0000102 1
Add Advertising failed with status 0x01 (Unknown Command)
I am sure I am missing something to add advertisement. Can anyone share how to add advertisement?
Test case: TC_CONN_GCEP_BV_03_C
-----------------------------------------------
PTS Address: 00:1B:DC:07:2E:85
Ran below command on device before running the test:
root@imx28evk:~/tools# btmgmt info
Index list with 1 item
hci0: Primary controller
addr 1C:BA:8C:86:81:21 version 6 manufacturer 13 class 0x000000
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
current settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
name testbt
short name
root@imx28evk:~/tools# btmgmt keys on
Keys successfully loaded
root@imx28evk:~/tools# btmgmt ltks off
Long term keys successfully loaded
root@imx28evk:~/tools# btmgmt irks
Identity Resolving Keys successfully loaded
Step1) Run the testcase from PTS gui.
Step2) It comes with popup: "Please send connect request to establish a connection"
Step3) Ran below command on Device:
root@imx28evk:~/tools# btmgmt add-device -a 0x1 -t 0x01 00:1B:DC:07:2E:85
Adding device with 00:1B:DC:07:2E:85 (LE Public)
root@imx28evk:~/tools# btmgmt pair -c 0x03 -t 0x01 00:1B:DC:07:2E:85
Pairing with 00:1B:DC:07:2E:85 (LE Public)
hci0 00:1B:DC:07:2E:85 type LE Public connected eir_len 0
<Waited for 2 mins. Not returned to command prompt - Hence did ctrl-c>
Then run below command to check if the connection is there or not.
root@imx28evk:~/tools# btmgmt con
00:1B:DC:07:2E:85 type LE Public
Step4) Meanwhile, on PTS "Connect request" Popup disappear and new popup appears "Please start the Bonding Procedure in bondable mode" and stays forever.
ON PTS Output Window:
Test case : TC_CONN_GCEP_BV_03_C started
- MTC: Successfully received HCI_LE_CLEAR_WHITE_LIST_COMPLETE_EVENT.
- MTC: Successfully received HCI_LE_ADD_DEVICE_TO_WHITE_LIST_COMPLETE_EVENT.
- MTC: LE bondable mode successfully set.
- MTC: Successfully received HCI_LE_SET_ADVERTISING_PARAMETERS_COMPLETE_EVENT.
- MTC: Successfully received HCI_LE_SET_ADVERTISING_DATA_COMPLETE_EVENT.
- MTC: Successfully received HCI_LE_SET_SCAN_RESPONSE_DATA_COMPLETE_EVENT.
- MTC: Successfully received HCI_LE_SET_ADVERTISE_ENABLE_COMMAND_COMPLETE_EVENT.
- MTC: Successfully received HCI_LE_CONNECTION_COMPLETE_EVENT.
<No More Output>
The device is in bondable mode based on the btmgmt info command output as above. Still I couldnt able to find why PTS fails to start Bonding Procedure? Is there something related to storing of the ltks keys?
Please share your suggestions.
Thank you,
Ankur.
Hi Ankur,
On Tue, May 12, 2015 at 5:13 PM, Ankur Patel <[email protected]> wrote:
>> Hi Ankur,
>>
>> On Tue, May 12, 2015 at 2:23 AM, Ankur Patel <[email protected]>
>> wrote:
>> > Hello Folks,
>> >
>> > Back with some more questions. I did tried googling but couldn't able to
>> find much info on 'btmgmt' tool hence sharing issues.
>> >
>> > Ran below commands to Setup the device (All went Good):
>> > btmgmt name testbt
>> > btmgmt privacy on
>> > btmgmt le on
>> > btmgmt keys on
>> > btmgmt ltks off
>> > btmgmt irks
>> > btmgmt connectable on
>> > btmgmt bondable on
>> > btmgmt pairable on
>> > btmgmt discov on
>> > btmgmt advertising on
>> > btmgmt fast-conn on
>> > btmgmt linksec on
>> > btmgmt power on
>> >
>> > Failed to Add Advertisement
>> > ------------------------------------
>> >
>> > root@imx28evk:~/tools# btmgmt info
>> > Index list with 1 item
>> > hci0: Primary controller
>> > addr 1C:BA:8C:86:81:21 version 6 manufacturer 13 class 0x000000
>> > supported settings: powered connectable fast-connectable
>> discoverable bondable link-security ssp br/edr hs le advertising debug-keys
>> privacy
>> > current settings: powered connectable fast-connectable discoverable
>> bondable link-security ssp br/edr hs le advertising debug-keys privacy
>> > name testbt
>> > short name
>> >
>> > // Starting Gatt Service
>> > root@imx28evk:~/tools# ./gatt-service & gatt-service unique name: :1.6
>> > Registered service: /service1 Get UUID:
>> > 00001802-0000-1000-8000-00805f9b34fb
>> > Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
>> > Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
>> > Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
>> >
>> > // Adding Advertisement but Fails
>> > root@imx28evk:~/tools# btmgmt add-adv -u 180d -u 180f -d
>> > 090954657374204C4505FFE0000102 1 Add Advertising failed with status
>> > 0x01 (Unknown Command)
>> >
>> > I am sure I am missing something to add advertisement. Can anyone share
>> how to add advertisement?
>>
>> This usually means that your kernel does not have support for the Add
>> Advertisement MGMT command, which recently got added currently in
>> mainline Linux 4.1 rc kernels but not 4.0.
>
> Thank you Michael for your kind response. We already ported our kernel from 3.10 to 3.18 to get the mgmt. support and it will be tough to migrate one more time. Then is there any way to add advertisement apart from using
> 'hciconfig' and 'hcitool' ?
hcitool will work for setting the advertisement data, but it will be
overridden by the kernel mgmt layer whenever it updates it's
advertisement data, because the kernel does not know about this data.
So you must take this into account.
--
M Janssen
PiA+IEhpIEFua3VyLA0KPiA+DQo+ID4gT24gVHVlLCBNYXkgMTIsIDIwMTUgYXQgMjoyMyBBTSwg
QW5rdXIgUGF0ZWwgPGFua3VyQGVtYmVydGVjLmNvbT4NCj4gPiB3cm90ZToNCj4gPiA+IEhlbGxv
IEZvbGtzLA0KPiA+ID4NCj4gPiA+IEJhY2sgd2l0aCBzb21lIG1vcmUgcXVlc3Rpb25zLiBJIGRp
ZCB0cmllZCBnb29nbGluZyBidXQgY291bGRuJ3QNCj4gPiA+IGFibGUgdG8NCj4gPiBmaW5kIG11
Y2ggaW5mbyBvbiAnYnRtZ210JyB0b29sIGhlbmNlIHNoYXJpbmcgaXNzdWVzLg0KPiA+ID4NCj4g
PiA+IFJhbiBiZWxvdyBjb21tYW5kcyB0byBTZXR1cCB0aGUgZGV2aWNlIChBbGwgd2VudCBHb29k
KToNCj4gPiA+IGJ0bWdtdCBuYW1lIHRlc3RidA0KPiA+ID4gYnRtZ210IHByaXZhY3kgb24NCj4g
PiA+IGJ0bWdtdCBsZSBvbg0KPiA+ID4gYnRtZ210IGtleXMgb24NCj4gPiA+IGJ0bWdtdCBsdGtz
IG9mZg0KPiA+ID4gYnRtZ210IGlya3MNCj4gPiA+IGJ0bWdtdCBjb25uZWN0YWJsZSBvbg0KPiA+
ID4gYnRtZ210IGJvbmRhYmxlIG9uDQo+ID4gPiBidG1nbXQgcGFpcmFibGUgb24NCj4gPiA+IGJ0
bWdtdCBkaXNjb3Ygb24NCj4gPiA+IGJ0bWdtdCBhZHZlcnRpc2luZyBvbg0KPiA+ID4gYnRtZ210
IGZhc3QtY29ubiBvbg0KPiA+ID4gYnRtZ210IGxpbmtzZWMgb24NCj4gPiA+IGJ0bWdtdCBwb3dl
ciBvbg0KPiA+ID4NCj4gPiA+IEZhaW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luZSAidW5zdWJzY3JpYmUNCj4g
PiBsaW51eC1ibHVldG9vdGgiIGluIHRoZSBib2R5IG9mIGEgbWVzc2FnZSB0byBtYWpvcmRvbW9A
dmdlci5rZXJuZWwub3JnDQo+ID4gTW9yZSBtYWpvcmRvbW8gaW5mbyBhdCAgaHR0cDovL3ZnZXIu
a2VybmVsLm9yZy9tYWpvcmRvbW8taW5mby5odG1sDQo+IA0KPiANCj4gDQo+IC0tDQo+IE0gSmFu
c3Nlbg0KQXBwcmVjaWF0ZSB5b3VyIHN1Z2dlc3Rpb25zLiANClJlZ2FyZHMsDQpBbmt1cg0K
Hi Ankur,
On Tue, May 12, 2015 at 2:23 AM, Ankur Patel <[email protected]> wrote:
> Hello Folks,
>
> Back with some more questions. I did tried googling but couldn't able to find much info on 'btmgmt' tool hence sharing issues.
>
> Ran below commands to Setup the device (All went Good):
> btmgmt name testbt
> btmgmt privacy on
> btmgmt le on
> btmgmt keys on
> btmgmt ltks off
> btmgmt irks
> btmgmt connectable on
> btmgmt bondable on
> btmgmt pairable on
> btmgmt discov on
> btmgmt advertising on
> btmgmt fast-conn on
> btmgmt linksec on
> btmgmt power on
>
> Failed to Add Advertisement
> ------------------------------------
>
> root@imx28evk:~/tools# btmgmt info
> Index list with 1 item
> hci0: Primary controller
> addr 1C:BA:8C:86:81:21 version 6 manufacturer 13 class 0x000000
> supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
> current settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
> name testbt
> short name
>
> // Starting Gatt Service
> root@imx28evk:~/tools# ./gatt-service &
> gatt-service unique name: :1.6
> Registered service: /service1
> Get UUID: 00001802-0000-1000-8000-00805f9b34fb
> Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
> Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
> Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
>
> // Adding Advertisement but Fails
> root@imx28evk:~/tools# btmgmt add-adv -u 180d -u 180f -d 090954657374204C4505FFE0000102 1
> Add Advertising failed with status 0x01 (Unknown Command)
>
> I am sure I am missing something to add advertisement. Can anyone share how to add advertisement?
This usually means that your kernel does not have support for the Add
Advertisement MGMT command, which recently got added currently in
mainline Linux 4.1 rc kernels but not 4.0.
> Test case: TC_CONN_GCEP_BV_03_C
> -----------------------------------------------
> PTS Address: 00:1B:DC:07:2E:85
>
> Ran below command on device before running the test:
>
> root@imx28evk:~/tools# btmgmt info
> Index list with 1 item
> hci0: Primary controller
> addr 1C:BA:8C:86:81:21 version 6 manufacturer 13 class 0x000000
> supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
> current settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising debug-keys privacy
> name testbt
> short name
> root@imx28evk:~/tools# btmgmt keys on
> Keys successfully loaded
> root@imx28evk:~/tools# btmgmt ltks off
> Long term keys successfully loaded
The keys and ltks commands of btmgmt don't take an argument, so the
"off" and "on" doesn't do anything here.. It will always load the
keys.
> root@imx28evk:~/tools# btmgmt irks
> Identity Resolving Keys successfully loaded
>
> Step1) Run the testcase from PTS gui.
> Step2) It comes with popup: "Please send connect request to establish a connection"
> Step3) Ran below command on Device:
>
> root@imx28evk:~/tools# btmgmt add-device -a 0x1 -t 0x01 00:1B:DC:07:2E:85
> Adding device with 00:1B:DC:07:2E:85 (LE Public)
>
> root@imx28evk:~/tools# btmgmt pair -c 0x03 -t 0x01 00:1B:DC:07:2E:85
> Pairing with 00:1B:DC:07:2E:85 (LE Public)
> hci0 00:1B:DC:07:2E:85 type LE Public connected eir_len 0
> <Waited for 2 mins. Not returned to command prompt - Hence did ctrl-c>
>
> Then run below command to check if the connection is there or not.
>
> root@imx28evk:~/tools# btmgmt con
> 00:1B:DC:07:2E:85 type LE Public
>
> Step4) Meanwhile, on PTS "Connect request" Popup disappear and new popup appears "Please start the Bonding Procedure in bondable mode" and stays forever.
>
> ON PTS Output Window:
> Test case : TC_CONN_GCEP_BV_03_C started
> - MTC: Successfully received HCI_LE_CLEAR_WHITE_LIST_COMPLETE_EVENT.
> - MTC: Successfully received HCI_LE_ADD_DEVICE_TO_WHITE_LIST_COMPLETE_EVENT.
> - MTC: LE bondable mode successfully set.
> - MTC: Successfully received HCI_LE_SET_ADVERTISING_PARAMETERS_COMPLETE_EVENT.
> - MTC: Successfully received HCI_LE_SET_ADVERTISING_DATA_COMPLETE_EVENT.
> - MTC: Successfully received HCI_LE_SET_SCAN_RESPONSE_DATA_COMPLETE_EVENT.
> - MTC: Successfully received HCI_LE_SET_ADVERTISE_ENABLE_COMMAND_COMPLETE_EVENT.
> - MTC: Successfully received HCI_LE_CONNECTION_COMPLETE_EVENT.
> <No More Output>
>
> The device is in bondable mode based on the btmgmt info command output as above. Still I couldnt able to find why PTS fails to start Bonding Procedure? Is there something related to storing of the ltks keys?
>
> Please share your suggestions.
>
> Thank you,
> Ankur.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
M Janssen