This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems with s130 connect event handle can't trigger

Hello,i have nrf518822 device,program the s130 (0.9 version).The centrel connect to the peripherals ,now have a problem.When pressed button1 the {event_handle(BLE_GAP_EVT_CONNECTED, 2000, gs_evt_buf, sizeof(gs_evt_buf) } cant't run to BLE_GAP_EVT_CONNECTED event,stranges is p_ble_evt->header.evt_id == 0x0037 .What's the meanning of 0x0037,it's overflow the enum BLE_GAP_EVTS .
PS:I can scan the Service 、Characteristic and Descriptor ,and establish the connection. S130_DEMO_LOG: src\main.c: 922: Service found UUID 0x1950 S130_DEMO_LOG: src\main.c: 967: Characteristic found UUID 0x2A6D S130_DEMO_LOG: src\main.c: 1013: Descriptor found UUID 0x2902 S130_DEMO_LOG: src\main.c: 1054: (Peripheral 0) Writing CCCD S130_DEMO_LOG: src\main.c: 847: (Peripheral 1) Connecting. S130_DEMO_LOG: src\main.c: 857: (Peripheral 1) Connection established. (Peripheral 1) Connected. S130_DEMO_LOG: src\main.c: 640: (Peripheral 0) Write confirmed

Parents
  • Hi lk,

    Could you explain a little bit more on your issue ? Do you mean when you press BUTTON_1, there is no connection established ? Have you make sure you have a peripheral running ble_app_hrs ? I can see in the log you do have event Connected, connection established ?

    Regarding evt_id = 0x37, this means BLE_GATTC_EVT_WRITE_RSP, which is normal when you do a write command to enable CCCD.

Reply
  • Hi lk,

    Could you explain a little bit more on your issue ? Do you mean when you press BUTTON_1, there is no connection established ? Have you make sure you have a peripheral running ble_app_hrs ? I can see in the log you do have event Connected, connection established ?

    Regarding evt_id = 0x37, this means BLE_GATTC_EVT_WRITE_RSP, which is normal when you do a write command to enable CCCD.

Children
No Data
Related