Tool/software: TI-RTOS
Hi Team,
In the process of using the WOR example, I encountered a packet loss problem, and it is difficult for me to figure out what the reason is.I only added the print function, the test method is to count the number of times sent and received. Generally they should be equal, but in reality they always have differences.
Tx side:
/* Send packet */ RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTxAdv, RF_PriorityNormal, NULL, 0); /* Update display */ seqNumber ++; Display_printf(uartDisplayHandle, 0, 0, "Pkts sent: %u", seqNumber);
Rx side:
if (e & RF_EventRxEntryDone) { do { /* Toggle LED on RX */ PIN_setOutputValue(ledPinHandle, Board_PIN_LED1, !PIN_getOutputValue(Board_PIN_LED1)); Display_printf(uartDisplayHandle, 0, 0, "rxStatistics.nRxOk=%u,rxStatistics.nRxNok=%u,rxStatistics.nRxBufFull=%u,rxStatistics.nRxIgnored=%u,rxStatistics.nRxStopped=%u", rxStatistics.nRxOk,rxStatistics.nRxNok,rxStatistics.nRxBufFull,rxStatistics.nRxIgnored,rxStatistics.nRxStopped); ......
Result: