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.

CC1310: RSSI, PER and dataframes

Part Number: CC1310

Hi,

I am working with TI 15.4 Stack and I have few questions

How can I calculate RSSI and PER and number of packet sent by sensor node?
I don't want to use SmartRF because I want to calculate these values based on data sent by my sensors.
And where can I observe elements of dataframes? how long is each frame?

Thanks in advance!

  • Hi Sang,

    RSSI can be extracted from the TI 15.4 stack, have a look at this thread regarding 15.4 and RSSI:

    e2e.ti.com/.../685612

    Regarding PER, you would have to add this functionality yourself to the collector/sensor code as it is not part of the stack.

    Could you elaborate on what you mean by frame length, is this in time or bytes? Either way you can use for example Packet Sniffer to observe the traffic or the data frames. You could also have a look at the smsg.h file in the examples as this contain the data structures used to send sensor messages.
  • Hi M-W,

    thanks for your information
    I followed steps of Hector but his explanation is not clear for me. I don't know where to add the code in the function and how to print it in UART.
    BTW, thanks for your information about data frames.

    Sang
  • Hi Sang,

    I would suggest you look over the TI 15.4 API documentation and have a look at the different data structures and how callback propagate:

    dev.ti.com/.../

    You can see that pDataIndCb for example is passed a structure containing RSSI of that frame in particular. In the collector example, you can find that "dataIndCb" is registered to handle this which could be a good place for you to start looking into how to it works.

    Regarding printing over UART, if based on the collector/sensor examples, look into how these example use "LCD_WRITE_STRING" inside csf.c to write data to the display (wrapping System_printf which is set to send over UART).