Console Logs: ============= 1. CheckForDevice failed as device not listed in Inquiry -------------------------------------------------------- earpiece_data->EarpieceName : Kinivo BTH240 earpiece_data->PairingKey : 0000 GAP_Inquiry_Result: 1 Found. GAP Inquiry Result: 1, 0xC0EEFB55AD1C. GAP_Query_Remote_Device_Name: Function Successful. GAP Remote Name Result: DEVICE NOT FOUND !!!!! 2. Device listed, but CheckForDevice failed as Remote name returned is blank. ----------------------------------------------------------------------------- earpiece_data->EarpieceName : Kinivo BTH240 earpiece_data->PairingKey : 0000 GAP_Inquiry_Result: 3 Found. GAP Inquiry Result: 1, 0x5800E38A6FC8. GAP Inquiry Result: 2, 0x001A7D87115B. GAP Inquiry Result: 3, 0xC0EEFB55AD1C. GAP_Query_Remote_Device_Name: Function Successful. GAP Remote Name Result: KRISHNA GAP_Query_Remote_Device_Name: Function Successful. GAP Remote Name Result: GAP_Query_Remote_Device_Name: Function Successful. GAP Remote Name Result: DEVICE NOT FOUND !!!!! Error in checkForDevice 3. Authentication failed while pairing -------------------------------------- earpiece_data->EarpieceName : Kinivo BTH240 earpiece_data->PairingKey : 0000 GAP_Inquiry_Result: 3 Found. GAP Inquiry Result: 1, 0x5800E38A6FC8. GAP Inquiry Result: 2, 0xC0EEFB55AD1C. GAP Inquiry Result: 3, 0x001A7D87115B. GAP Remote Name Result: KRISHNA GAP Remote Name Result: GAP Remote Name Result: Kinivo BTH240 GAP_Initiate_Bonding (General): Function Successful. atAuthenticationStatus: 4 Board: 0x001A7D87115B atAuthenticationStatus FAILED!!! 4. Successful Connection and audio playback -------------------------------------------- earpiece_data->EarpieceName : Kinivo BTH240 earpiece_data->PairingKey : 0000 AP_Inquiry_Result: 1 Found. GAP Inquiry Result: 1, 0xFC58FAB984AC. GAP_Query_Remote_Device_Name: Function Successful. GAP Remote Name Result: Kinivo BTH240 GAP_Initiate_Bonding (General): Function Successful. atLinkKeyRequest: 0xFC58FAB984AC GAP_Authentication_Response() Success. atPINCodeRequest: 0xFC58FAB984AC Respond with the command: PINCodeResponse GAP_Authentication_Response(), Pin Code Response Success. atLinkKeyCreation: 0xFC58FAB984AC Link Key: 0xF3BDCEB6037015AE06C838B2B1BE0BCF Link Key Stored locally. atAuthenticationStatus: 0 Board: 0xFC58FAB984AC HDSET_Open_Remote_Headset_Port() was successful. HDSET Open Port Confirmation, HDSETID: 0x0001, Status 0x0000. HDSET Open Port Confirmation SUCCESS HDSET Speaker Gain Indication, ID: 0x0001, Gain: 0x000F. HDSET_Setup_Audio_Connection: Function Successful. HDSET Audio Connection Indication, ID: 0x0001. PlayAudio Success 5. Issue with BT Speaker: Connection was Successful and and audio was played, but HDSET port closed immediately. ---------------------------------------------------------------------------------------------------------------- earpiece_data->EarpieceName : Logitech X50 earpiece_data->PairingKey : 0000 GAP_Inquiry_Result: 2 Found. GAP Inquiry Result: 1, 0x88C62670B7E8. GAP Inquiry Result: 2, 0x5800E38A6FC8. GAP_Query_Remote_Device_Name: Function Successful. GAP Remote Name Result: Logitech X50 GAP_Initiate_Bonding (General): Function Successful. atLinkKeyRequest: 0x88C62670B7E8 GAP_Authentication_Response() Success. atPINCodeRequest: 0x88C62670B7E8 Respond with the command: PINCodeResponse GAP_Authentication_Response(), Pin Code Response Success. atLinkKeyCreation: 0x88C62670B7E8 Link Key: 0xF50A328ADF563D6AA4C7DFA206F698E9 Link Key Stored locally. atAuthenticationStatus: 0 Board: 0x88C62670B7E8 HDSET_Open_Remote_Headset_Port() was successful. HDSET Open Port Confirmation, HDSETID: 0x0001, Status 0x0000. HDSET Open Port Confirmation SUCCESS HDSET_Setup_Audio_Connection: Function Successful. HDSET Audio Connection Indication, ID: 0x0001. PlayAudio Success HDSET Close Port Indication, HDSETID: 0x0001, Status 0x0001.