Should I call RSSISTOP task after a finished RSSI measurement?

Hello, I want to manually perform RSSI measurements, which I am doing as described in the specification of the nRF52840:

  1. Call RXEN task
  2. Call START radio task after READY event (done via SHORTS)
  3. Call RSSISTART task
  4. Read RSSISAMPLE after RSSIEND event

After the finished measurement I am disabling the radio. My question is, whether I should call the RSSISTOP task after step 4?

The documentation just says that the RSSISTOP task stops an RSSI measurement. To my understanding this would mean that in the very short sample period of 0.25 µs (RSSIPERIOD) between step 3 and 4 an RSSISTOP would abort this measurement and therefore prevent that the value in RSSISAMPLE changes.

But I am wondering whether this task also performs something else like disabling some hardware that is performing the measurement, which may affect the power consumption in a negative way when not calling RSSISTOP after the finished measurement.

This came to my mind as to perform an RSSI measurement the radio has to start an RX. So, there would be no (correct) RSSI measurement possible anyway when the radio is disabled. But there is also a dedicated SHORT existing for calling the RSSISTOP task when the radio got DISABLED. Or is the purpose of this just as already indicated above to prevent an invalid value written to RSSISAMPLE if the radio gets disabled during a measurement?

Parents
  • Hi

    If you disable the radio and are finished with your RSSI measurement the RSSI measurement is ended and thus also stopped, so this shouldn't be necessary I think. You're right in your last paragraph, RSSISTOP is there to manually stop an ongoing RSSI measurement, for example when you disable the radio to prevent invalid values.

    Best regards,

    Simon

  • Thanks for the fast reply! 

    I have just one follow up question: When performing several consecutive RSSI measurements on the same channel I should be fine repeating just step 3 and 4 after a short delay, right? Or asked in another way: As long as I am performing measurements on the same channel I do not need to do the complete cycle of starting the radio, performing the measurement and disabling the radio? (Also here I would then not call RSSISTOP in between the measurements.)

    I already tried it in hardware and it is outputting different measurement results. I just want to make sure that the obtained values are also valid. 

  • Yes, that should be fine. How different are these measurement results exactly? Some variation must be expected since RSSI is not the most stable readings out there.

    Best regards,

    Simon

  • Perfect, that sounds good.

    I just made a test with always ten consecutive measurements for just one RXEN with 15 us between the measurements.

    Within these measurements I am getting in general fluctuating values of around -93 to -98 dBm. When having heavy WIFI activity nearby most of the values for the affected channels have values of about -50 to -60 dBm mixed in.

    So, I think this seems reasonable then.

Reply
  • Perfect, that sounds good.

    I just made a test with always ten consecutive measurements for just one RXEN with 15 us between the measurements.

    Within these measurements I am getting in general fluctuating values of around -93 to -98 dBm. When having heavy WIFI activity nearby most of the values for the affected channels have values of about -50 to -60 dBm mixed in.

    So, I think this seems reasonable then.

Children
Related