It's only 90hz now with my nrf6310 and hid_mouse_app
It's only 90hz now with my nrf6310 and hid_mouse_app
more info plz, I could have higher sample rate
/**@brief Function for the Power manager.
*/
static void power_manage(void)
{
uint32_t err_code = sd_app_event_wait();
APP_ERROR_CHECK(err_code);
}
/**@brief Function for application main entry.
*/
int main(void)
{
timers_init();
gpiote_init();
buttons_init();
sensor_init();
bond_manager_init();
ble_stack_init();
scheduler_init();
gap_params_init();
advertising_init(BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE);
services_init();
sensor_sim_init();
conn_params_init();
sec_params_init();
radio_notification_init();
//NRF_POWER->TASKS_CONSTLAT = 1; //try to get in to CONSTLAT mode
timers_start();
advertising_start();
// Enter main loop.
for (;;)
{
if(button_pressed == true)
button_check();
mouse_sensor_send();
app_sched_execute();
power_manage();
}
}
It test that it will report 64 data bag from hid mouse to pc, It should be up to 125/s as USB hid protocol.
win7 seems OK . When test my ble mouse (nrf51822, OS: win8.1), the mouse Report Rate can only up to about 110 HZ, ( when browser opened) even if I set the period to 1ms (it should be about 1000 HZ). And if set the sleep time to 8ms (want to make mouse report rate 125HZ like USB mouse), the test result is olny 70HZ.
int main(void)
{
timers_init();
gpiote_init();
buttons_init();
sensor_init();
bond_manager_init();
ble_stack_init();
scheduler_init();
gap_params_init();
advertising_init(BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE);
services_init();
sensor_sim_init();
conn_params_init();
sec_params_init();
radio_notification_init();
timers_start();
advertising_start();
for (;;)
{
wheel_check();
if(button_pressed == true)
button_check();
mouse_sensor_send();
app_sched_execute();
// power_manage();
nrf_delay_ms(1);
}
}
but USB mouse and other 2.4G mouse can up to 125 HZ (with browser opened)
And I test it with logic analyzer when move the mouse
I found that every 10ms it cost 5ms break:
And it is every diffcult between BLE mouse and USB mouse at win8.1 , test by MouseMovementRecorder
BLE mouse :
USB mouse:
Get the test soft in the attachment
I want to know
Thank you all !
MouseMovementRecorder.exe
Hello, can I get some reply please.