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
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