Forums - qapi_BLE_BSC_Initialize returning error

3 posts / 0 new
Last post
qapi_BLE_BSC_Initialize returning error
jagan
Join Date: 2 Jan 20
Posts: 15
Posted: Thu, 2020-01-02 21:29

Hi,

I am integrating BLE in QCA4020 based development board

I am initializing the BLE through the QAPI   "qapi_BLE_BSC_Initialize()". The function is returning error code -14. From the header file looks like  -14 represents "QAPI_BLE_BTPS_ERROR_HCI_DRIVER_ERROR"

I am unable to figure out the reason behind this error to proceed further.

Appreciate if any one can help me on this. 

Regards,

Jagan
 

 

 

  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Thu, 2020-01-02 22:34

Hi Jagan,

It seems the error occurs because HCI driver was not configured.
Please try following change on your code.
#define QAPI_BLE_HCI_DRIVER_SET_COMM_INFORMATION is found in qapi_ble_hcitypes.h

+ /* Set the HCI driver information. */
+ QAPI_BLE_HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, 115200, QAPI_BLE_COMM_PROTOCOL_UART_E);

Thanks
BR,
Jayden

  • Up0
  • Down0
jagan
Join Date: 2 Jan 20
Posts: 15
Posted: Thu, 2020-01-02 23:26

Thanks Jayden, setting the HCI driver information worked.  

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