Forums - HID auto reconnect fail

2 posts / 0 new
Last post
HID auto reconnect fail
tishihara
Join Date: 26 Apr 19
Posts: 5
Posted: Thu, 2019-05-30 17:41

I am testing QCA4024  QCLI_demo sample HID functionality.

On 2nd connection, it failed with 0x13 error. Does someone know what is wrong?

I did same test with SANWA Supply BLE mouse, it automatically connect on 2nd time.

Test steps

1) Flash QCLI_demo to QCA4024

2) Boot QCA4024

3) From PC terminal, select 3(BLE) > 4(Init) > 55(HOGP) > 4(Register HID) > 2(UP to BLE) > 16 1 (Advertise)

5) On Windows 10 Bluetooth setting, add Bluetooth device, select "lpw-spple-demo"

6) Windows setting shows Pairing -> Connected

7) Turn off QCA4024, then Turn on QCA4024

8) Same as step 3, start HID advertise

9) PC terminal shows Reason:0x13 diconnected, I attach log. BD_ADDR is not actual.

BLE: Advertising Channel Tx Power: 4.

BLE:    GAP_LE_Advertising_Enable success, Advertising Interval Range: 100 - 200.

BLE> BLE: etLE_Connection_Complete with size 24.

BLE:    Status:              0x00.

BLE:    Role:                Slave.

BLE:    Address Type:        QAPI_BLE_LAT_PUBLIC_E.

BLE:    BD_ADDR:             0x765B8F1CABCF.

BLE:    Connection Interval: 15.

BLE:    Slave Latency:       0.

BLE>

BLE: etLE_Channel_Selection_Algorithm_Update with size 16.

BLE:   Channel Selection Algorithm:        CSA #2.

BLE:   Connection Address Type:            QAPI_BLE_LAT_PUBLIC_E.

BLE:   Connection Address:                 0x765B8F1CABCF.

BLE>

BLE: etGATT_Connection_Device_Connection with size 16:

BLE:    Connection ID:   1.

BLE:    Connection Type: LE.

BLE:    Remote Device:   0x765B8F1CABCF.

BLE:    Connection MTU:  23.

BLE: Selected Remote Device:

BLE:    Address:       0x765B8F1CABCF

BLE:    ID:            1

BLE>

BLE: etLE_Data_Length_Change with size 14.

BLE:   Connection Address:                 0x765B8F1CABCF.

BLE:   Max Tx Octets:                      27.

BLE:   Max Tx Time:                        328.

BLE:   Max Rx Octets:                      81.

BLE:   Max Rx Time:                        760.

BLE>

BLE: etLE_Authentication with size 96.

BLE:     latKeyRequest:

BLE:       BD_ADDR: 0x765B8F1CABCF.

BLE>

BLE: etGATT_Connection_Device_Disconnection with size 16:

BLE:    Connection ID:   1.

BLE:    Connection Type: LE.

BLE:    Remote Device:   0x765B8F1CABCF.

BLE: The remote device information has been deleted.

BLE>

BLE: etLE_Disconnection_Complete with size 16.

BLE:    Status: 0x00.

BLE:    Reason: 0x13.

BLE:    BD_ADDR: 0x765B8F1CABCF.

BLE> 55

 
OS:Windows10 Version 1903
BLE chip:Intel Wireless-AC 9560 Driver:21.10.1.1
  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Tue, 2019-08-27 11:30

Hi tishihara,

QCLI BLE demo includes commands to store and load the paired device information.
Please refer spple_demo.c with StorePersistentData and LoadPersistentData.

After initial pairing completion, you may need StorePersistentData.
Before 2nd connection, you may need LoadPersistentData.

Thanks
BR
Jayden

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.