Skip to main content
CKai.1
Visitor II
July 28, 2022
Question

aci_gap_update_adv_data return 145 error code

  • July 28, 2022
  • 3 replies
  • 1786 views

I use the CUBEMX create a project of BLE and FreeRtos ,

when i send aci_gap_update_adv_data ,it return 145,I don't find the meaning of code in the aci/hci interface.

And i can see it in the BEL profile App, But I can not connect it. it return connect time out or cannot establish connection.

Below is the print debug infomation

�Wireless Firmware version 1.14.0

Wireless Firmware build 5

FUS version 1.2.0

>>== SHCI_SUB_EVT_CODE_READY

>>== WIRELESS_FW_RUNNING 

>>== DBGMCU_GetRevisionID= 2001 

  Success: SHCI_C2_BLE_Init command

==>> Start Ble_Hci_Gap_Gatt_Init function

  Success: hci_reset command

  Success: aci_hal_write_config_data command - CONFIG_DATA_PUBADDR_OFFSET

  Public Bluetooth Address: 00:80:e1:26:c8:e1

  Success: aci_hal_write_config_data command - CONFIG_DATA_IR_OFFSET

  Success: aci_hal_write_config_data command - CONFIG_DATA_ER_OFFSET

  Success: aci_hal_set_tx_power_level command

  Success: aci_gatt_init command

  Success: aci_gap_init command

  Success: aci_gatt_update_char_value - Device Name

  Success: aci_gatt_update_char_value - Appearance

  Success: aci_gap_set_io_capability command

  Success: aci_gap_set_authentication_requirement command

  Success: aci_gap_configure_whitelist command

==>> End Ble_Hci_Gap_Gatt_Init function

Device Information Service (DIS) is added Successfully 000C

Manufacturer Name Characteristic Added Successfully  000D 

Heart Rate Service (HRS) is added Successfully 000F

Heart Rate Measurement Characteristic Added Successfully  0010 

Sensor Location Characteristic Added Successfully  0013 

Control Point Characteristic Added Successfully  0015 

==>> aci_gap_set_discoverable - Success

==>> Start Fast Advertising Failed , result: 145 

3 replies

Targo
Associate
January 19, 2023

@CKai.1​ Did you have any success? I am experiencing the same issue. Sometimes I get error code 146 as well. I did find this but these codes don't appear on there: https://documentation.help/BlueNRG-MS/group___e_r_r_o_r___c_o_d_e_s.html

Associate II
November 9, 2023

Did someone fixed it?

Associate III
June 28, 2024