RE: Issue with Add Advertisement and Bonding Procedure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Hi Ankur,
> >
> > On Tue, May 12, 2015 at 2:23 AM, Ankur Patel <ankur@xxxxxxxxxxxx>
> > 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' ?

I used hcitool to add the advertisement which worked. Thanks.

> >
> > > 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.
> >
> I got your point. But still I didn’t get any idea why this test fails or what is
> missing?
> > > 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.
Thank you, I guess I have not registered the GATT Primary/Secondary Services and this is causing it to failure.  I need to fix this first.
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe
> > > linux-bluetooth" in the body of a message to
> > > majordomo@xxxxxxxxxxxxxxx More majordomo info at
> > > http://vger.kernel.org/majordomo-info.html
> >
> >
> >
> > --
> > M Janssen
> Appreciate your suggestions.
> Regards,
> Ankur

Regards,
Ankur
��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux