Send WAY Fewer Bytes

Started by ChemE, December 14, 2016, 02:15:33 PM

ChemE

#15
I've tested out moving the node further from the gateway and using powerlevel(0) and 300 kbps this is what I get:

# of preamble bytes || max range (ft)
0          ||          about 6'
1          ||          about 20'
2          ||          about 30' but RSSI is -90db b/c power level is so low

Adding a third sync byte to extend range does not appear to benefit my setup.  It may even work out that I would be better off increasing the power level a little and dropping back down to one preamble byte though I would need an oscilloscope to be able to collect the precise power consumption during broadcast to confirm or refute this theory.

EDIT: Going to powerlevel(31) and down to 1 preamble byte works perfectly fine for ranges of 100'.  It is too cold to move the node outside so I'm not going to work out how far I need to go to need the second preamble byte :)

joelucid

Quote# of preamble bytes || max range (ft)
0          ||          about 6'
1          ||          about 20'
2          ||          about 30' but RSSI is -90db b/c power level is so low

That makes sense: the bit synchronizer needs 12 bit preamble to sync according to the datasheet. Interestingly I just ran a range test with 300kbit this week to optimize radio parameters and found that I could improve range by going up to 6 bytes preamble. I do not have a good explanation for this experimental observation though.

WhiteHare

That's a very interesting result!  You're getting much longer range at relatively little incremental cost.

How much improvement is there in going from 2 bytes of pre-amble to 6-bytes?


perky

I think this might be evidence that the bit synchronizer is possibly PLL based, the more transitions the more accurate the final sampling windows are. That may result in a lower BER for a given S/N.
Mark.

joelucid

QuoteThat's a very interesting result!  You're getting much longer range at relatively little incremental cost.

How much improvement is there in going from 2 bytes of pre-amble to 6-bytes?

I'm not sure how much. I originally measured this result a couple of months back when I first measured out the best modulation index for given bitrates. I only retested this week again because I still don't fully understand this result. So I measured that it still exists, not the magnitude.

I didn't see this with lower bitrates than 300kbit btw.

WhiteHare

I think what's likely going on is that multi-path reflections and/or noise/interference can throw off the bit synchronizer, creating a false negative.  So, if you send multiple pre-amble bytes, it gives the receiver more chances to catch one that's "well formed," which then it uses to set the bit synchronizer and launch into further demodulation.