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

BLE_HID_MOUSE example SCROLL ERROR

HI,ALL:

    In SDK16, 1 .as topic,when I trigger the mouse_movement_send() and  the mouse_click_send()  at the  same time, Error occurs.

                      2.how to detect BLE search device sucessfully  and  how to  detect  BLE connect sucessfully.

Parents Reply
  • Hi, 

    wzszzxj said:
    ,it may be about the tx buffer overflow.Could you tell me how to find the BLE tx buffer?

    When the queue is full, the function call will return NRF_ERROR_RESOURCES. Not sure what is your code, but you can take a look at Module currently can handle following types of GATT request:

    wzszzxj said:
    And the second question,I  just want to catch a flag,or something else in the source code,just to judge the device is connected or not.

    See the BLE_GAP_EVT_CONNECTED event in the ble_evt_handler function of main.c

    static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
    {
        ret_code_t err_code;
    
        switch (p_ble_evt->header.evt_id)
        {
            case BLE_GAP_EVT_CONNECTED:
                NRF_LOG_INFO("Connected");
                err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
                APP_ERROR_CHECK(err_code);
    
                m_conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
    
                err_code = nrf_ble_qwr_conn_handle_assign(&m_qwr, m_conn_handle);
                APP_ERROR_CHECK(err_code);
                break;
                
                ...
        }
    }
     

     -Amanda H.

Children
Related