Author Topic: How to calculate InterPacketRxDelay?  (Read 462 times)

Tylerlee12

  • Newbie
  • *
  • Posts: 4
How to calculate InterPacketRxDelay?
« on: May 03, 2018, 11:54:40 PM »
Hi all.  I'm writing some code for an RFM69W, using the LowPowerLab library code as a model, and am trying to figure out what the InterPacketRxDelay should be in RegPacketConfig2.  Looking at the documentation for the RFM69W (http://www.hoperf.com/upload/rf/RFM69W-V1.3.pdf), it says this:

After PayloadReady occurred, defines the delay between
FIFO empty and the start of a new RSSI phase for next
packet. Must match the transmitter’s PA ramp-down time.
- Tdelay = 0 if InterpacketRxDelay >= 12
- Tdelay = (2InterpacketRxDelay) / BitRate otherwise

It says it must match the transmitter's PA ramp-down time.  Is that set somewhere?  How do I know what I should be setting here?  Here's the config code in the library: https://github.com/LowPowerLab/RFM69/blob/9000aa379fd15ff9d473baccab3f167e83cfe828/RFM69.cpp#L88

ChemE

  • Sr. Member
  • ****
  • Posts: 419
  • Country: us
Re: How to calculate InterPacketRxDelay?
« Reply #1 on: May 04, 2018, 07:24:06 AM »
You can set PA ramp up rate, is the ramp down rate the same perhaps?  I am not aware of any way to set PA ramp down directly.

perky

  • Hero Member
  • *****
  • Posts: 873
  • Country: gb
Re: How to calculate InterPacketRxDelay?
« Reply #2 on: May 04, 2018, 02:04:40 PM »
The PA ramp time I think is symmetrical with the ramp down time, at least it makes sense to be so because the reason for it is to stop spectral splatter due to higher sideband content in the transmitted signal when quickly turning on and off a carrier.

Mark.

Tylerlee12

  • Newbie
  • *
  • Posts: 4
Re: How to calculate InterPacketRxDelay?
« Reply #3 on: May 07, 2018, 12:23:21 AM »
Hmm, interesting.  Guess I'll just stick with the library has and hope for the best... :-X