Hi,
I try receiver test on the serialization application. The interface is UART.
The operation is the following.
1. Application board send ble_dtm_init command.
2. After DTM starts, DTM of nRF connect for Desktop is operated below
Command: Test setup (0x0000) Event: Test Status(0x0000)
Command: Receiver Test(0x4064)Event: Test Status(0x0000)
3. DTM Transmitter Test is started on other device
4. DTM of nRF connect for Desktop is operated below
Command: Test end(0xC000) Event: Packet Report(0x8001)
PACKET COUNT of Packet Report is 1, 2 or 3. Why?
I confirmed related source code "dtm_uart.c".
During receiver test, PACKET COUNT can not be increased because the following code is executed by polling.
dtm_uart.c function: nrfx_uart_rx
do
{
do
{
error = nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_ERROR);
rxrdy = nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_RXDRDY);
rxto = nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_RXTO);
} while ((!rxrdy) && (!rxto) && (!error));
if (error || rxto)
{
break;
}
rx_byte(p_instance->p_reg, p_cb);
} while (p_cb->rx_buffer_length > p_cb->rx_counter);