> /Note: This firmware uses data whitening to improve the reliability of
> the data transmission. A standard pattern of 1s and 0s is overlayed on
> the underlying data, this prevents sync issues that result from too many
> zero values in a packet. When the packet is received it is decoded by
> emonhub. The 'whitening = 1' is required to tell emonhub to decode the
> packet correctly.
> /
>
> Any chance supporting this?
>
> Thanks,
>
> Harri
#ifdef RF_WHITENING
byte WHITENING = 0x55;
for (byte i = 0, *p = (byte *)&tmp; i < sizeof tmp; i++, p++)
*p ^= (byte)WHITENING;
#endif
Looks easy to implement but as always we need signal samples before
anyone can do anything.
MvH
Benjamin Larsson