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.

CC1352R: cmdPropRx to cmdPropTx

Part Number: CC1352R

Hi:

I refer rfEchoRx example but this example Rx side send echo data return delay 100ms after receive data from Tx side

I want to receive Tx side data and then do something work, that response result to Tx side not base on RF_cmdPropTx.startTime = TX_DELAY

How should I config cmdPropRx and cmdPropTx?

Best Regards.

Peter

  • Hi Peter, 

    If I understand you correctly, you want to receive some data, then not immediately transmit after TX_delay, but do a transmission after performing some logic. 

    In this case you would have to modify the rfEchoRx example.

    Comment out these lines:

    // RF_cmdPropRx.pNextOp = (rfc_radioOp_t *)&RF_cmdPropTx;
    // RF_cmdPropTx.startTime = TX_DELAY;
    // RF_cmdPropTx.startTrigger.triggerType = TRIG_REL_PREVEND;

    The above changes  would prevent the chaining of the Tx command.

    And then you need to change the tx command startTrigger.TriggerType to trigger immediately after scheduled to the radio. You do this by changing the following line. 

    RF_cmdPropTx.startTrigger.triggerType = TRIG_NOW;
     

    After the above changes, you can run the TX command whenever you want with the runCmd API. 

            /* Send packet */
            RF_EventMask terminationReason = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTx,
                                                       RF_PriorityNormal, NULL, 0);

    Regards,

    Sid