I'm looking for a sample code that show how to perform a transmit with CCA.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Siri,
An update. I have managed to get the easylink example working with CCA LBT. However, what I found was that 2 packets are sent, after which GPIO0 interrupt which I have configured as 0x06, does not fire anymore.
I had to get this to work, by strobing to idle and flushing the TX FIFO each time, before I write packet to TX FIFO and strobe RX. So, its now working reliably and I used another one our hardware devices to act as a jammer.
A few things however, I need clarification on:
1. In LBT mode, the the CC1120 users guide states:
"If LBT is enabled (PKT_CFG2.CCA_MODE = 100b) the CC112X will run the algorithm until successful transmission."
I'm just trying to understand what would happen if channel is jammed for a prolonged period of time such that my application is affected. How can the application become aware that the packet has not been successfully transmitted and the CC1120 LBT algorithm is still trying? I want to be able to know this, and at the higher level, back-off for some and try the TX again. After x number of retries without success, the application may abort and try a different channel for example. The application will manage changing channels.
2. While the CC1120 LBT algorithm is still running waiting for a clear channel, can the application switch back in RX mode? I assume this obviously can be done, but just wanted to confirm what is the process to switch to RX?
regards
Sudesh