Tool/software:
Hi TI Community,
I’m working on a project using IEEE 802.15.4 for packet transmission. The system transmits packets in a timer callback, which is confirmed to execute repeatedly (via an LED toggle). However, only the first packet is sent, and no further transmissions occur.
Here’s the key part of my code:
void timerCallback(Timer_Handle handle, int arg)
{
// Prepare packet
packet[0] = PAIR_ID;
packet[1] = HOPPING_ID;
packet[2] = (uint8_t)(seqNumber >> 8);
packet[3] = (uint8_t)(seqNumber++);
// Load packet into command
RF_cmdIeeeTx.pPayload = packet;
RF_cmdIeeeTx.startTrigger.triggerType = TRIG_NOW;
RF_cmdIeeeTx.payloadLen = PAYLOAD_LENGTH;
// Transmit packet
RF_runCmd(rfHandle, (RF_Op*)&RF_cmdIeeeTx, RF_PriorityNormal, NULL, 0);
GPIO_toggle(CONFIG_GPIO_GLED);
}
I’ve tried both RF_runCmd and RF_postCmd, but neither resolves the issue. The transmission only occurs once.
What could be causing the repeated transmissions to fail?
Thanks!