- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The BLE event handler that I set up with CyBLE_Start gets called with event = 0x00010005 twice after CY_BLE_EVT_GAP_ENCRYPT_CHANGE when accessing the device whether through the CySmart app or through other BLE clients. I can't seem to find what this 0x00010005 event is in the header file or documentation. Notably CY_BLE_EVT_MAX is 0xFFFF, and this event is greater than that max.
I collected a stack trace:
0 bleEventHandler(uint32 event = 65541, void * event_param = 0x80475cc) main_cm4.c 371 0x10080A9A (All)
1 Cy_BLE_GATTS_WriteEventHandler(cy_stc_ble_gatts_write_cmd_req_param_t * eventParam = 0x80475cc, cy_stc_ble_gatts_write_cmd_req_param_t * eventParam@entry = 0x80475cc) Generated_Source\PSoC6\pdl\middleware\ble\cy_ble_gatt.c 110 0x10083316 (All)
2 Cy_BLE_EventHandler(cy_en_ble_event_t event = <optimized out>, void * evParam = 0x80475cc) Generated_Source\PSoC6\pdl\middleware\ble\cy_ble_event_handler.c 772 0x10083B2C (All)
3 CyBle_GattCB() ?????? ?????? 0x1008CE14 (All)
4 att_notify_application() ?????? ?????? 0x10088296 (All)
5 se_req_handler() ?????? ?????? 0x10094B92 (All)
6 fsm_post_event() ?????? ?????? 0x1008ABC6 (All)
7 att_l2cap_data_cb() ?????? ?????? 0x1008817E (All)
8 l2cap_lp_data_read() ?????? ?????? 0x100937C4 (All)
9 hci_transport_read_data() ?????? ?????? 0x1008FF8C (All)
10 Cy_BLE_EventHandler(cy_en_ble_event_t event = <optimized out>, void * evParam = 0x8047760) Generated_Source\PSoC6\pdl\middleware\ble\cy_ble_event_handler.c 326 0x100836CC (All)
11 CyBleController_HciSoftSend() ?????? ?????? 0x100957F2 (All)
12 hci_td_deliver_acl_data_to_host() ?????? ?????? 0x100A646E (All)
13 llft_service_queue() ?????? ?????? 0x100A2E5E (All)
14 llf_task_start_routine() ?????? ?????? 0x100A2DB2 (All)
15 CyBle_StackTaskHandler() ?????? ?????? 0x10087024 (All)
16 OS_scheduler() ?????? ?????? 0x100A95F2 (All)
17 main() main_cm4.c 418 0x10080C2E (All)
My function is bleEventHandler at frame 0.
Solved! Go to Solution.
- Tags:
- ble event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The event 0x10005 is a service specific event which can be found in "cy_ble_event_handler.h" file in PDL-->middleware-->BLE.
CY_BLE_EVT_GATTS_INDICATION_ENABLED: GATT Server - Indication for GATT Service's "Service Changed" Characteristic was enabled. The parameter of this event is a structure of cy_stc_ble_gatts_write_cmd_req_param_t type.
Thanks,
P Yugandhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The event 0x10005 is a service specific event which can be found in "cy_ble_event_handler.h" file in PDL-->middleware-->BLE.
CY_BLE_EVT_GATTS_INDICATION_ENABLED: GATT Server - Indication for GATT Service's "Service Changed" Characteristic was enabled. The parameter of this event is a structure of cy_stc_ble_gatts_write_cmd_req_param_t type.
Thanks,
P Yugandhar.