New firmware for EmonTX breaks the protocol

123 views
Skip to first unread message

Harri Kapanen

unread,
Mar 21, 2020, 2:22:05 PM3/21/20
to rtl_433
Hi,

EmonTxV3, the OpenEnergyMonitor transmitter, has a new firmware that changes the protocol: https://github.com/openenergymonitor/EmonTxV3CM

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

Benjamin Larsson

unread,
Mar 21, 2020, 2:30:46 PM3/21/20
to rtl...@googlegroups.com
On 2020-03-21 19:22, Harri Kapanen wrote:
> Hi,
>
> EmonTxV3, the OpenEnergyMonitor transmitter, has a new firmware that
> changes the protocol: https://github.com/openenergymonitor/EmonTxV3CM
>
> /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

Harri Kapanen

unread,
Mar 23, 2020, 6:13:58 AM3/23/20
to rtl_433
On Saturday, March 21, 2020 at 8:30:46 PM UTC+2, Benjamin Larsson wrote:

Looks easy to implement but as always we need signal samples before
anyone can do anything.

While I could learn how to do this, I suspect my 433MHz environment is too crowded for the task. Or does it matter that much in practise?

Harri

Benjamin Larsson

unread,
Mar 23, 2020, 6:20:15 AM3/23/20
to rtl...@googlegroups.com
Well without any samples there is a near zero chance of anyone fixing
this. Just remove the antenna and the place a device near the rtl-sdr
device and grab a few samples with rtl_433 -S unknown.

MvH
Benjamin Larsson

Harri Kapanen

unread,
Mar 24, 2020, 1:33:08 PM3/24/20
to rtl_433
Please find some samples attached - hope this helps. If so, that was surprisingly convenient!

MvH,

Harri
g001_433.92M_1024k.cu8
g002_433.92M_1024k.cu8
g003_433.92M_1024k.cu8
g004_433.92M_1024k.cu8
g005_433.92M_1024k.cu8
g006_433.92M_1024k.cu8
g007_433.92M_1024k.cu8
g008_433.92M_1024k.cu8

Harri Kapanen

unread,
Mar 27, 2020, 1:15:09 PM3/27/20
to rtl_433
Are the samples useful? Anything else I could do?

MvH,

Harri

Benjamin Larsson

unread,
Mar 28, 2020, 3:36:14 PM3/28/20
to rtl...@googlegroups.com
Den 2020-03-27 kl. 18:15, skrev Harri Kapanen:
> Are the samples useful? Anything else I could do?
>
> MvH,
>
> Harri
>

Yes, you can open a github issue so this is not forgotten.

MvH
Benjamin Larsson

Harri Kapanen

unread,
Mar 29, 2020, 7:18:56 AM3/29/20
to rtl_433
Sure, #1342.

MVH,

Harri
Reply all
Reply to author
Forward
0 new messages