Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC1310: Packet format and parameters related issues

$
0
0

Part Number:CC1310

Tool/software: TI-RTOS

Hi Team,

When I read the proprietary RF section of the reference manual, I encountered a lot of problems that I could not understand.First, RF_cmdPropTx->pktConf.bVarLen = 0x1, which means the length is sent as the first byte. However, the length field information is not reflected in the rfPacketTx example.

 /* Create packet with incrementing sequence number and random payload 
        packet[0] = (uint8_t)(seqNumber >> 8);
        packet[1] = (uint8_t)(seqNumber++);
        uint8_t i;
        for (i = 2; i < PAYLOAD_LENGTH; i++)
        {
            packet[i] = rand();
        }

There is no bVarLen parameter in the CMD_PROP_TX_ADV command, but the length byte must be filled in the WOR-TX example.

memcpy(RF_cmdPropTxAdv, RF_cmdPropTx, RADIO_OP_HEADER_SIZE);
packet[0] = PAYLOAD_LENGTH;
        packet[1] = (uint8_t)(seqNumber >> 8);
        packet[2] = (uint8_t)(seqNumber++);
        uint8_t i;
        for (i = 3; i < PAYLOAD_LENGTH +1; i++)
        {
            packet[i] = rand();
        }

Can you explain why?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>