Other Parts Discussed in Thread: CC1350
Hello,
I am using the latest SDK for the CC1350 launchpad Listen Before Talk (LBT) example as my base code. Instead of printing random numbers and transmitting all the time I only want to read sensor data and transmit that data if it passes a certain threshold. It appears that if I am not transmitting all the time, within a 5 minute window the program hangs and nothing will transmit. Is there something I am misunderstanding about the radio code? Here is my code snippet:
While(true)
{
Sensor code that detects whether to transmit or not
if (transmit)
{
/* Set absolute TX time to utilize automatic power management */
time += (PACKET_INTERVAL_US * 4);
RF_cmdNop.startTime = time;
/* Send packet */
RF_runCmd(rfHandle, (RF_Op*)&RF_cmdNop, RF_PriorityNormal, &callback, 0);
RF_cmdNop.status = IDLE;
RF_cmdPropCs.status = IDLE;
RF_cmdCountBranch.status = IDLE;
RF_cmdPropTx.status = IDLE;
RF_cmdCountBranch.counter = CS_RETRIES_WHEN_BUSY;
}