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

How to get receive data of DTM RX testing ?

Hi Sir 

We'd want to do RX testing with DTM mode, however, the dtm example code looks can't report receive data or total packets counts, 

So that, we don't know how to determine RX testing is pass or not ? please teach me how to get receive packet information, Thanks.

Parents Reply
  • Hi Sir 

    I'd want to read RX packets counts by cli, I made a timer to receive packets, but cli console got stuck after timer start, 

    How to create a infinite loop at background running and cli console also workable ?

    static void dtm_rx_handle(void * p_context)
    {
    	UNUSED_PARAMETER(p_context);
    
    	while(1)
    	{
    		dtm_wait();
    
    		if (stop_rx){
    			NRF_LOG_INFO("stop received.");
    			break;
    		}
    	}
    
    }
    
    
    static void cmd_dtm_start_rx(nrf_cli_t const * p_cli, size_t argc, char **argv)
    {
    	ret_code_t ret;
    	
    	ret = app_timer_create(&m_timer_1, APP_TIMER_MODE_SINGLE_SHOT, dtm_rx_handle);
    	APP_ERROR_CHECK(ret);
    
    	ret = app_timer_start(m_timer_1, APP_TIMER_TICKS(10), NULL);
    	APP_ERROR_CHECK(ret);
    	
    }

Children
No Data
Related