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.
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.
Hi,
1 .as topic,when I trigger the mouse_movement_send() and the mouse_click_send() at the same time, Error occurs.
Could you elaborate more on how you trigger the mouse_movement_send() and the mouse_click_send() at the same time? What is the Error? Please provide the error log.
2.how to detect BLE search device sucessfully and how to detect BLE connect sucessfully.
Please see the Testing with nRF Connect documentation.
-Amanda H.
Hi,Amanda:
Thank you for your reply,to cause the first question ,it may be about the tx buffer overflow.Could you tell me how to find the BLE tx buffer? 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.
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.
Hi, Amanda:
Thank you for your reply! So now, It is OK,if the time is set to every 5ms to fill the buffer. But like that, the tansmitting rate is too low. how to raise the transmitting rate?
Hi,
This is a quite complex topic. Check out the ATT_MTU Throughput Example (ble_app_att_mtu_throughput) example to see how the connection parameters are affecting the transfer rate.
-Amanda H.
Hi,
This is a quite complex topic. Check out the ATT_MTU Throughput Example (ble_app_att_mtu_throughput) example to see how the connection parameters are affecting the transfer rate.
-Amanda H.