Hi,
I am hoping someone can help. I am creating a simple TX/RX application using 2x Launchpads. One of them sends a
packet and the other receives it. I have started with the proprietary network TX and RX examples (which run fine).
The problem is that my call to receive a packet never returns although my callback is activated. I am calling the
receive function like this to get a single packet.
RF_EventMask terminationReason = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropRx,
RF_PriorityNormal, &radioRxCallback,
RF_EventRxEntryDone);
One thing I noticed is that the RX sample code has the following comment prior to
calling RF_runCmd():
/* Enter RX mode and stay forever in RX */
What I really want to do is just receive a single packet and then return.
My RX configuration is as follows:
RF_cmdPropRx.pQueue = &rxQueue;
RF_cmdPropRx.rxConf.bAutoFlushIgnored = 1;
RF_cmdPropRx.rxConf.bAutoFlushCrcErr = 1;
RF_cmdPropRx.maxPktLen = 192;
RF_cmdPropRx.pktConf.bRepeatOk = 1;
RF_cmdPropRx.pktConf.bRepeatNok = 1;
I don't have the source so it's a bit difficult to debug. I did see in the 26xx source code (RF_syncCb()) that a semaphore is sent after calling
the user callback and since my callback is activated I would assume the semaphore is being sent as well.
Is it possible that RF_runCmd() is not supposed to return (stay forever in TX) based on my configuration? What do I need
to change in order to just receive a single packet?
Below are my smartrf settings.
/cfs-file/__key/communityserver-discussions-components-files/156/5482.smartrf_5F00_settings.c