Other Parts Discussed in Thread: CC1350, CC1200, CC1120
Tool/software: Starterware
Dear Support:
I am trying to get the RSSI from the CC1350 using RF Driver. From what I understand, there are 2 options: use the RF Driver API RF_getRSSI( hRF ) or set the append RSSI field in the receive command (i.e. .rxConf.bAppendRssi = 0x1 ). However there are a few issues that I am confused about how to go about doing this:
1.) with RF_getRSSI, when issuing the receive command, I was anticipating issuing this call in the receive callback routine, but from what I understand, this won't work since this command needs to be issued while it is receiving the packet. I issue the command and then block waiting on the packet to be received, so when I am supposed to issue this RF_getRSSI(...) call since I can't do this in the callback? I tried issuing this in a repetitive loop after issuing the receive command, but that doesn't work either. Please advise how you are supposed to go about using this RF_getRSSI(...) call after issuing the receive command.
2.) Preferably, I would like to just do this in the callback and access the appended data at the end of the received packet. However I couldn't find any documentation on how to know where this appended byte is relative to the received data in the received packet. From what I can tell, it looks like it is the 1st byte at the end of the received packet, but not sure - please advise as where documentation is that describes where the appended bytes are located after setting the bit fields in the receive command to append the desired bytes (i.e. RSSI, Timestamp, Status, etc).
3.) As an alternative, I found documentation that advises to perform the following to get the RSSI :
rfc_propRxOutput_t rxStatistics;
RF_cmdPropRx.pOutput = &rxStatistics;
...
in the callback routine:
RSSI = &rxStatistics.lastRssi;
but I couldn't get this to work. Is there any documentation (i.e. example code) that describes how to go about getting RSSI using this method?
4.) Finally once I get the RSSI properly, are there any adjustments/modifications I need to make to this returned value to get this in terms of an accurate RSSI dBm reading? Please advise.
Thanks,
Tim