Skip to content

Support for Emos E6016 Rain Gauge sensor #2001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stomko11 opened this issue Mar 1, 2022 · 82 comments
Closed

Support for Emos E6016 Rain Gauge sensor #2001

stomko11 opened this issue Mar 1, 2022 · 82 comments

Comments

@stomko11
Copy link
Contributor

stomko11 commented Mar 1, 2022

Hello. Recently support for Emos E6016 weather station was added. My set contained also rain gauge sensor (no specific name, just additional sensor). I have uploaded signal captures to rtl_433_tests (at the moment it is still pending approval to upload) and am looking for anyone willing to help on this.
@AutomGuy since you actively worked on Emos E6016 addition, wondering if you also have rain gauge too?

@zuckschwerdt
Copy link
Collaborator

The transmission looks different than the EMOS E6016, it's not PWM but Manchester.
This should get the codes: rtl_433 -X 'n=EMOS-RAIN,m=OOK_MC_ZEROBIT,s=500,l=500,r=1200'
If that does not work get the raw PCM with: rtl_433 -X 'n=EMOS-RAIN,m=OOK_PCM,s=500,l=500,r=1200'

Try to get a progression of codes with each code +1 bucket tip. Then we can look for the fields in a BitBench.

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 1, 2022

Attached is capture. Transmission is every 1 minute 25 seconds.
I started off with timestamp 13:50:14, and then between every other transmission, I manipulated with the tip. Not sure if this is the output that you were looking for?

13:50:14
13:51:39
13:53:04
13:54:29
13:55:54
13:57:19

emos_rain.txt

@zuckschwerdt
Copy link
Collaborator

zuckschwerdt commented Mar 1, 2022

Those codes look empty. But e.g. from your PR g009 I get:

{97}2aaaaaaaccb532cd553532b50
{97}33354b555554b54ccaad2b528

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 1, 2022

OK, here is another capture using second command. Same method as previously.
emos_rain2.txt

@zuckschwerdt
Copy link
Collaborator

Ok, so it's not Manchester then or not recognized as MC anyway.
If we assume a data whitening of 0xaa we get this BitBench where a counter and a checksum is visible.

It's stange that there is so much data for basically one byte rain counter and one byte checksum.
You need to perform more tests, reset the battery and such to confirm the pattern.

Collect your data in a BitBench like above.

@AutomGuy
Copy link
Contributor

AutomGuy commented Mar 1, 2022

@stomko11 ,
the EMOS 6016 consist of 3 parts at Mister Bezos buisness you can buy EOMOS Complete consisting of Windgauge, Raingauge, and Colored Display. Or you can by only the windgauge as extra Part. Apparently is the rain gauge a independently device.

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 1, 2022

I took another capture, BitBench
Raw output here:
emos_rain3.txt

Between 15:47:49 and 15:48:12 I changed the tip and reinserted battery. That's why it is not after 1:25, but it sends report when battery is inserted.
Between 15:49:37 and 15:51:02 I did no change to tip.
Between 15:51:02 and 15:51:20 I just pulled the battery (again that's why early report at 15:51:20).
Besides those ocassions described above, I did always change tip between the reports.

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 3, 2022

It seems that pattern is changing after pulling battery (reports since 15:51:20). I am not able to move forward. Any help would be appreciated.

@zuckschwerdt
Copy link
Collaborator

I suspect the transmission is no picked up reliably or the demod fails. The output isn't really plausible.
Perhaps try to optimize the reception and record a set of cu8 samples. This isn't ideal, but it seems we can't trust the bit slicing here. https://triq.org/rtl_433/ANALYZE.html

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 3, 2022

I will get another USB stick and try to gather more samples. I appreciate the support you are providing. This is great project and wonderful community.

@stomko11
Copy link
Contributor Author

I did get the additional tuner and tried to follow recommended article, I just don't know what to do with it. I did take few cu8 samples, analyzed them, but I don't actually know what am I looking at or what am I searching for. Or what should I see here. Example cu8 file is attached, together with generated sample based on article. Can someone help me out?
EMOS.zip

@zuckschwerdt
Copy link
Collaborator

At least the first sample (g001) works. The others (6,7) are too strong and swamp the receiver.
This will decode clean signals: rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'
And gets you aaa58a34ec300000298 repeated a few times.

You would now need to run that and optimize distance or position to always reliably get those codes.
We can then look at the codes for different known readings, e.g. a slow ramp of temperature, to figure out how to pick the codes apart.

@stomko11
Copy link
Contributor Author

Well this is only rain gauge, does not measure anything else, only adds +0,7mm of rainfall with each swing,
I will follow above recommendations and post back.

@stomko11
Copy link
Contributor Author

Attached are samples that I took

21:25:47
21:27:12
6 swings
21:28:37
1 swing
21:30:02
21:31:27
5 swings + removed and reinserted battery
21:31:54
21:33:19
2 swings
21:34:44
removed and reinserted battery
21:35:00
21:36:25

Is the captured output any helpful?

rain_gauge_1.txt
.

@zuckschwerdt
Copy link
Collaborator

The received codes look very clean and regular, good reception!

You would now collect and format the codes and your notes like this:

{73}aaa58a34ec300000298[2022-03-23 21:25:47]
{73}aaa58a34ec300000298[2022-03-23 21:27:12]
{73}aaa58a34ec3000062f8[2022-03-23 21:28:37 +6 swings]
{73}aaa58a34ec300007308[2022-03-23 21:30:02 +1 swings]
{73}aaa58a34ec300007308[2022-03-23 21:31:27]
{73}aaa58a34ec300000298[2022-03-23 21:31:54 +5 swings + removed and reinserted battery]
{73}aaa58a34ec300000298[2022-03-23 21:33:19]
{73}aaa58a34ec3000022b8[2022-03-23 21:34:44 +2 swings]
{73}aaa58a34ec300000298[2022-03-23 21:35:00 removed and reinserted battery]
{73}aaa58a34ec300000298[2022-03-23 21:36:25]

and put that in a BitBench.

So we know the last byte is a checksum (addition over 8 bytes) and the two bytes before that are a counter.
I guess the start is part preamble, sync word, ID, and status. Not sure, but too long for just ID.
Can you perhaps insert known dead batteries or use a variable voltage power supply to see if some bits before the counter change (battery_low flag).

@AutomGuy
Copy link
Contributor

Good morning guys,
@stomko11 please take a look into that emos_e6016.c and you will see this
Format String
MODEL?:8h8h8h ID?:8d BAT?2b DT:6d-4d-5dT5d:6d:6d CH:2d TEMP:12d HUM?8d WSPEED:8d WINDIR:4d ?4h CHK:8h REPEAT:8h
Decode Example
MODEL?:aaa583 ID?:255 BAT?10 DT:21-05-21T07:49:35 CH:0 TEMP:0201 HUM?037 WSPEED:000 WINDIR:10 ?2 CHK:c7 REPEAT:00
Your Device
Format String
MODEL?:8h8h8h ID?:8h BAT?:2b ?:6h8h RAIN:8h8h CHK:8h 8x
Decode Example
MODEL?:aaa58a ID?:34 BAT?:11 ?:2c30 RAIN:0000 CHK:29

Bitbench for That
The bytes of my wind sensor were inverted

@AutomGuy
Copy link
Contributor

I gues now it is easy to copy the file in the post before and modified it 👍 :)

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 24, 2022

Here is the capture and this BitBench

rain_gauge_battery.txt

@AutomGuy
Copy link
Contributor

@stomko11 , May be that BitBench

@zuckschwerdt
Copy link
Collaborator

This is confusing. So the decoder for "EMOS E6016 weatherstation with DCF77" is for a sensor to the "E6016 station", but we don't have a model number for the sensor. And this rain gauge is also a sensor for that station, but again with no own model number, right?

@stomko11
Copy link
Contributor Author

Right. This one on the sticker just says "EMOS, type: E6016", SN: 401502
As displayed here there are basically 3 things - indoor unit displaying data, then station (outdoor temp, wind speed, wind direction, humidity, ...) and additional rain gauge. But this acts as standalone sensor as far as rtl_433 is concerned.

@AutomGuy
Copy link
Contributor

So i explain what i ment.

That is the pream before inverting the bytes at EMOS6016 Windsensor
aaa583 -> we can Identify the sensor as Windsensor
Here we check the pream of the inverted bytes
// model check 55 5a 7c
if (b[0] != 0x55 || b[1] != 0x5a || b[2] != 0x7c) {
decoder_log(decoder, 2, func, "Model check fail");
return DECODE_ABORT_EARLY;
}
the result of that are the name
data_t *data = data_make(
"model", "", DATA_STRING, "EMOS-E6016",

the only thing what we have to do is
the pream of the rain gauge sensor is
aaa58a -> the diff is the a at last position.
// model check aa a5 8a
if (b[0] != 0xaa || b[1] != 0xa5 || b[2] != 0x8a) {
decoder_log(decoder, 2, func, "Model check fail");
return DECODE_ABORT_EARLY;
}

the result of that are the name
data_t *data = data_make(
"model", "", DATA_STRING, "EMOS-E6016_RAIN",

i hope now it is clear what i ment.
Best Regards

@AutomGuy
Copy link
Contributor

Has the rain gauge sensor a Channel Switch?

@stomko11
Copy link
Contributor Author

no, it does not have channel switch.

@AutomGuy
Copy link
Contributor

@stomko11, So i have had a look into the manual of that rain gauge sensors.
The technical data say the range og that sensor is "precipitation sensor measurement range: 0 to 2,999 mm"
That means that is the max.
{73}aaa58a34ec300bb7298[2022-03-23 21:25:47] -> the checksum is wrong (i change the rain bytes by Hand) :)

That is the format string
MODEL?:8h8h8h ID?:8h BAT?:2b ?:6h8h4h RAIN:12d CHK:8h 8x

and here the link to the BitBench
May be with all these informations you can create a decoder. :)

@AutomGuy
Copy link
Contributor

@stomko11, I used the emos_e6016.c decoder as a basis and derived the decoder for the rain gauge.
you have to replace <your name, e-mail> with your data, transmision interval.
then you have to compile the decoder in your rtl_433 at your machine. test it.
if it works satisfactorily you can create a pull request or may be christian will help you out.
the decoder file as zip
emos_e6016_rain.zip
Best regards
.

@AutomGuy
Copy link
Contributor

I have overlooked that each swing are 0.7mm.
i have corrected this.
emos_e6016_rain.zip

@stomko11
Copy link
Contributor Author

Appreciate your support on this, but I am pretty lost. So how do I actually test this? I did compile the code on my raspberry where I am testing this, by following the tutorial. But I am not quite sure I understand where to put this or what to do. I am new at all this, sorry.

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 24, 2022

OK first of all, thanks. I did check the file, seems that there was a typo on line 71

    float rain_mm  = rain_row * 0.7;

I did change that to rain_raw and corrected file is attached. However I am not able to receive anything. I did check the PR when EMOS station support was added, and basically the important part it decoder (attached) and references to it. I first tried to modify those files and add additional decoder, but I was unsuccessful. So I cloned the master repository and just renamed emos_e6016_rain.c to emos_e6016.c and compiled it. But when I run it, I don't decode anything. When I capture raw signal, there are signals sent by gauge, but when I just run rtl_433 without any additional arguments (or specify protocol 214 in this case), I don't get any good decoding output. Maybe the procedure I used here was not the right one...
emos_e6016_rain.zip

@AutomGuy
Copy link
Contributor

Morning, that was a mistake from me, it should be "rain_raw".
you have to download or clone the entire project.
then find in the directory structure "src/device/" copy into that directory the decoder file (emos_e6016_rain.c)
then goto directory /src find "CMakeList.txt" add in this file under "add_library("
that "devices/emos_e6016_rain.c" below the other "emos_e6016".

then goto "/include" find that file "rtl_433_devices.h" add in this file under "#define DEVICES "at last "DECL(emos_e6016_rain) "
now you have to compile the project. And when no errors occurs
And you start "rtl_433 -R help" should the output a list of all decoders.
And the Last output could look like this "[21x] EMOS E6016 Rain Gauge"

@AutomGuy
Copy link
Contributor

but when you look back with this parameters you get 726 Bytes and the first 3 Bytes tells me it is the wind sensor. when you take out the bat of the wind sensor und you try it again only with the rain sensor.
rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'
what is the result?

@AutomGuy
Copy link
Contributor

my emos wind sensor has the preamble aa a5 83 and your wind sensor also otherwise the windsensor decoder doesent work.
the rain sensor has the preamble aa a5 8a i gues

@AutomGuy
Copy link
Contributor

the wind sensor send approx. all 61s and the rain sensor ?

@AutomGuy
Copy link
Contributor

please type into your console rtl_433 -R help
and look wich is the number for the emos rain gauge
and replace the 216 by your number of your emos rain gauge -> run this command rtl_433 -R 216 -y '{73}555a75cb13cffff8cf0 {73}555a75cb13cffff8cf0 {73}555a75cb13cffff8cf0'

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 29, 2022

I did not pull batteries from weather station, because every time I insert batteries to rain gauge, it sends report. So basically I can pull batteries and insert it back, it sends report. Weather station reports in periodic intervals (61s), rain gauge is 85s
So here is the output if I pulled and reinserted batteries to rain gauge few times shortly after each other:

rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'

pi@raspberrypi:~ $ rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 09:53:40
model     : name         count     : 5             num_rows  : 11            rows      :
len       : 1            data      : 8,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000290
codes     : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 09:53:48
model     : name         count     : 5             num_rows  : 11            rows      :
len       : 1            data      : 8,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000290
codes     : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 09:53:54
model     : name         count     : 5             num_rows  : 11            rows      :
len       : 1            data      : 8,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000290
codes     : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 09:53:59
model     : name         count     : 5             num_rows  : 11            rows      :
len       : 1            data      : 8,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000298,
len       : 1            data      : 8,
len       : 73           data      : aaa58a34ec300000290
codes     : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290

Then

pi@raspberrypi:~ $  rtl_433 -R
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
rtl_433: option requires an argument -- 'R'
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
rtl_433: option requires an argument -- 'R'
                = Supported device protocols =
    [01]  Silvercrest Remote Control
.
.
.
    [214]  EMOS E6016 weatherstation with DCF77
    [215]  Altronics X7064 temperature and humidity sensor
    [216]  EMOS E6016 RAIN GAUGE

And the last one:

pi@raspberrypi:~ $ rtl_433 -R 216 -y '{73}555a75cb13cffff8cf0 {73}555a75cb13cffff8cf0 {73}555a75cb13cffff8cf0'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 1 out of 216 device decoding protocols [ 216 ]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 09:56:54
model     : EMOS-E6016_RAIN                        House Code: 52
Battery_OK: 1            Rain_mm   : 4.9           Integrity : CHECKSUM

@AutomGuy
Copy link
Contributor

@zuckschwerdt , Christian what have to be here .modulation = OOK_PULSE_PWM in option -X m=OOK_PWM?
is that the same?

@AutomGuy
Copy link
Contributor

@stomko11 , Please try this at me this work.
rtl_433 -R 216 -y '{73}555a75cb13cffff8cf0 {1}0 {73}555a75cb13cffff8cf0 {1}0 {73}555a75cb13cffff8cf0 {1}0'
output is:


time : 2022-03-29 10:11:37
model : EMOS-E6016_RAIN House Code: 52
Battery_OK: 1 Rain_mm : 4.9 Integrity : CHECKSUM

@stomko11
Copy link
Contributor Author

It looks the same for me:

pi@raspberrypi:~ $ rtl_433 -R 216 -y '{73}555a75cb13cffff8cf0 {1}0 {73}555a75cb13cffff8cf0 {1}0 {73}555a75cb13cffff8cf0 {1}0'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 1 out of 216 device decoding protocols [ 216 ]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 10:24:36
model     : EMOS-E6016_RAIN                        House Code: 52
Battery_OK: 1            Rain_mm   : 4.9           Integrity : CHECKSUM

@AutomGuy
Copy link
Contributor

@stomko11, Do this rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert' without ',inverted' please.

@stomko11
Copy link
Contributor Author

Tried both below, wasn't sure which one you are after. Did few battery reinserts, nothing returned on the output.

pi@raspberrypi:~ $ rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
^CSignal caught, exiting!
Reattached kernel driver
pi@raspberrypi:~ $ rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
^CSignal caught, exiting!
Reattached kernel driver

@AutomGuy
Copy link
Contributor

and you have to pull out and set in the batterie (rain gauge) please i will see the output like


time : 2022-03-29 09:53:40
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {

@AutomGuy
Copy link
Contributor

but without inverted

@stomko11
Copy link
Contributor Author

So above is the output with exact commands I used, I am not sure which one is precisely the one you want me to execute. However in both cases, I did reinsert batteries several times, but nothing on the console output.

@AutomGuy
Copy link
Contributor

so that is realy strange:
you post this:
pi@raspberrypi:~ $ rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers


time : 2022-03-29 09:53:40
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290


time : 2022-03-29 09:53:48
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290


time : 2022-03-29 09:53:54
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290


time : 2022-03-29 09:53:59
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290

and actually i would like have the same post
with this command rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72'

i expected the same data but not inverted. output above data: aaa58a. i expected 555a75

@zuckschwerdt
Copy link
Collaborator

.modulation = OOK_PULSE_PWM in option -X m=OOK_PWM? is that the same?

Yes.

@AutomGuy
Copy link
Contributor

@zuckschwerdt , Christian how to put here the inverted tag at this structure
// -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'
r_device emos_e6016_rain = {
.name = "EMOS E6016 RAIN GAUGE",
.modulation = OOK_PULSE_PWM,
.short_width = 300,
.long_width = 800,
.gap_limit = 1000,
.reset_limit = 2500,
.decode_fn = &emos_e6016_rain_decode,
.fields = output_fields,
};

@zuckschwerdt
Copy link
Collaborator

You can't. Use the bitbuffer_invert(bitbuffer); function.

@stomko11
Copy link
Contributor Author

OK I am not sure what went wong, if my batteries, or I was too close to radio, but here is again both commands, with what I capured:

pi@raspberrypi:~ $ rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 11:36:42
model     : name         count     : 5             num_rows  : 11            rows      :
len       : 1            data      : 0,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd68
codes     : {1}0, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd68
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 11:36:48
model     : name         count     : 5             num_rows  : 11            rows      :
len       : 1            data      : 0,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd68
codes     : {1}0, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd68
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 11:36:54
model     : name         count     : 5             num_rows  : 11            rows      :
len       : 1            data      : 0,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd60,
len       : 1            data      : 0,
len       : 73           data      : 555a75cb13cfffffd68
codes     : {1}0, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd60, {1}0, {73}555a75cb13cfffffd68
^CSignal caught, exiting!
Reattached kernel driver

pi@raspberrypi:~ $ rtl_433 -R 0 -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72,invert'
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers


time : 2022-03-29 11:37:52
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290


time : 2022-03-29 11:37:59
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290


time : 2022-03-29 11:38:04
model : name count : 5 num_rows : 11 rows :
len : 1 data : 8,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000298,
len : 1 data : 8,
len : 73 data : aaa58a34ec300000290
codes : {1}8, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000298, {1}8, {73}aaa58a34ec300000290
^CSignal caught, exiting!
Reattached kernel driver
pi@raspberrypi:~ $

@AutomGuy
Copy link
Contributor

@zuckschwerdt That's what I thought, i use it inside the decoder.

@AutomGuy
Copy link
Contributor

@stomko11 the post without 'inverted' looks like what i expected, but then my decoder should work.
so the inversion will be done in
line 72 bitbuffer_invert(bitbuffer);

as you can see
the decoder use the same timings as -X option

// -X 'n=name,m=OOK_PWM,s=300,l=800,g=1000,r=2500,bits>=72'
r_device emos_e6016_rain = {
.name = "EMOS E6016 RAIN GAUGE",
.modulation = OOK_PULSE_PWM,
.short_width = 300,
.long_width = 800,
.gap_limit = 1000,
.reset_limit = 2500,
.decode_fn = &emos_e6016_rain_decode,
.fields = output_fields,
};
try to use this command
rtl_433 -R 0 -R 216 and then insert the batterie into the raingauge sensor. and see what is happend.
i have no more ideas.
maybe @zuckschwerdt Christian has a tip or can support.

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 29, 2022

hmm, something is unreliable on these battery pulls. But here is the output:

pi@raspberrypi:~ $ rtl_433 -R 0 -R 216
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ 216 ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 16:03:15
model     : EMOS-E6016_RAIN                        House Code: 52
Battery_OK: 1            Rain_mm   : 0.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 16:04:04
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 0.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 16:04:13
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 0.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-29 16:05:38
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 0.7           Integrity : CHECKSUM

This is with your latest decoder posted here yesterday.

@zuckschwerdt
Copy link
Collaborator

Your decoder looks good. A few notes:

  • you don't need to set bitbuffer->bits_per_row =
  • just use bitbuffer_find_repeated_row(bitbuffer, 3, 72)
  • then if (bitbuffer->bits_per_row[r] < 72 || bitbuffer->bits_per_row[r] > 73) {
  • no need for (int16_t) on rain_raw
  • model must have only one dash, e.g. "EMOS-E6016R"

@stomko11
Copy link
Contributor Author

stomko11 commented Mar 30, 2022

@AutomGuy something is definitely going on with either my dvb t tuner that I am testing with, or raspberry, or both. Sometimes I just don't capture any signal. But I don't think this is issue with gauge itself, as when I turn on Emos internal unit in parallel, that always gets right values.
After few attempts, here is example again today, did several swings here and there, working as expected:

pi@raspberrypi:~ $ rtl_433 -R 0 -R 216
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ 216 ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 08:28:35
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 0.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 08:30:00
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 7.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 08:31:25
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 7.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 08:32:50
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 7.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 08:34:15
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 7.7           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 08:35:40
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 8.4           Integrity : CHECKSUM

At the end, I did 50 swings, but no longer got any report. Seems like issue with my RPI, being underpowered or what. I killed the process and started it again, got the report:

pi@raspberrypi:~ $ rtl_433 -R 0 -R 216
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ 216 ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 08:38:30
model     : EMOS-E6016_RAIN                        House Code: 180
Battery_OK: 1            Rain_mm   : 44.1          Integrity : CHECKSUM

Can we work on Christian's suggestions? I also think it should be your name on the decoder, as you did most of the work :)

@AutomGuy
Copy link
Contributor

@zuckschwerdt thx for your notes
have modified the decoder in accordance to your notes.
here is that decoder file emos_e6016_rain.zip
@stomko11 but your name should also on the decoder and @zuckschwerdt christian as well.
@stomko11 you have delivered the codes. @zuckschwerdt christian delivered some important instructions.
last but not least -> to programming the decoder is just pure craftsmanship.

the next step is make a pull request or may be christian can help you out in case you are not familar with pull request

@stomko11
Copy link
Contributor Author

I compiled using that version, looks good.
I modified it, added @zuckschwerdt and myself as contributor.

pi@raspberrypi:~/rtl_433/build $ rtl_433 -R 0 -R 216
rtl_433 version 21.12-80-gf4b73f11 branch master at 202203221518 inputs file rtl_tcp RTL-SDR with TLS
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Disabling all device decoders.
Registered 1 out of 216 device decoding protocols [ 216 ]
Detached kernel driver
Found Fitipower FC0012 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 09:46:17
model     : EMOS-E6016R  House Code: 180
Battery_OK: 1            Rain_mm   : 0.0           Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time      : 2022-03-30 09:47:42
model     : EMOS-E6016R  House Code: 180
Battery_OK: 1            Rain_mm   : 0.7           Integrity : CHECKSUM

I will try to create pull request now.

@zuckschwerdt
Copy link
Collaborator

No need, I'll merge the code from the zip soon ;)

@stomko11
Copy link
Contributor Author

Ah I already created that. Cancel it if you like. Zip did not have contributors listed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants