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

How to raise mouse frequency(or report rate) with nrf51822

It's only 90hz now with my nrf6310 and hid_mouse_app

Parents
  • 
    
    /**@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.

Reply
  • 
    
    /**@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.

Children
No Data
Related