-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for TFA Stratos 30.3151 #2538
Comments
Looks like PCM 60 µs with the usual The 6 repeats don't seem to have a separator though. A code should be something like This should work
But to see the repeats you would rather need the raw output of |
Ok, i've run these commands and add the output to the repo. |
Table the codes with the measured data, e.g.
Then we can figure out where the temperature is in that data. Also with enough codes we can figure out the checksum -- should be somewhere in the |
Hi, But search the preamble into the row within a loop will be better and will avoid any shift of bit positions.
Now I can't say what is what , I need to compare with existing decoders like ambientweather_wh31e very close to this one ... to be continued ... |
Hi, I'm not able to find more information, can you capture more payloads with :
Also, can you check at the same time, with another sensor, the temp & humidity, and put them with the captured messages. Did you have also the Wind and Rain sensors connected to it ? if yes, add some water, 1 Litter and note if any changes in the payload, also measure the funnel size (top internal diameter). Also move the wind elements to get some changes into the payload and see the position of wind. |
Hi, ans sorry for my late answer. |
Ok, one step further: |
Format data into a BitBench like this to make analyzing easier. |
Hi, 51e0bd3f000003231a0015555545ba8a3c17a7e0000064634002 If i use bitbench with following format line: 8b 8h TEMP_C:8d It also seems that aaaaa8b75 is also an preamble. |
As I explained in my previous post, the same message is repeated 6 times with a small gap between each. bytes not aligned :
The gap is around 11 bits long and therefore not a multiple of 4 bits (hexa nibble) so there is an offset in the hexadecimal values. This is why we are using the preamble feature to find the good position of the bytes of the message payload, then the bytes are aligned (gap excluded):
Without the preambles, you have 6 times the same useful data
Now looking to the message data , looks like this : Bitbench with your sample valuespreamble{40}
I : 12 bits Model = 0x51 (8 bits) , 0xe = ID / Battery ?
This is my estimation, we don't know the battery signal if any, and why nothing at Wind level ? |
Hi @ProfBoc75 |
Ok, after @ProfBoc75 clarification i played a bit. |
Yes , we have some answers ! I reviewed the TFA STRATOS 35.1077 pdf (link into your README) and there's no wind vane, only wind speed sensor.
And we can see that the RAIN minimum resolution is 0.3 mm, this means that 1 pulse = 0.3 mm/m² So we have this bitbench :
We need to compare the Wind information from other sensor with the same kind of sensor to have the correct conversion into km/h or m/s ... not sure it is knots , I checked rtl_433 devices, none use this unit. We have enough information to draft a new device driver. Here the new Bitbench |
One more thing, I saw also into the pdf guide that the DCF information is sent by the thermo-hygro sensor, this means that , you can also receive another kind of message payload than those ones you already shared. If I'm not wrong , 1 time by hour ( around minute 59 ) a full DCF signal is sent with all information (date , time ... ) , so you may have to collect at that time, 1 or 2 minutes before a new hour .. And only if you're living in Europe and within 1500 Km around Frankfurt. |
@zuckschwerdt ; In fact, I was looking into existing devices, and I noticed that we are facing to the FSK PCM version of this sensor already decoded but OOK PPWM : fineoffset_wh1050.c , which also refers to the same station TFA Stratos 35.1077 ! Except preamble, everything else is consistent with my findings. |
Your right, with the informations in your link i found the DCF Data! |
I started to work on the fineoffset_wh1050.c in order to add this new modulation, this will take some time (one or 2 days). To be continued ... |
Is it still necessary to make measurements on the rain sensor? |
@jonnycastaway up to you, no emergency , when my updated device is ready I will check with you. Anyway , the guide says that rain resolution is 0.3 mm and this is already decoded like this into ook version. Then later the device can be corrected if any errors are found by others who own same TFA 30.3151 FSK version with the station 35.1077. |
Hi , My update is ready, if you want to test: For me, it works with the message type 5 samples (cu8 files) from you and from the Fineoffset wh1050 samples too. But we don't have message type 6 with DFC information to test this kind of message. Let us know your result and if positive, @zuckschwerdt will merge my request/commit (hope so ;-) ). |
Puh, lot's of math but i'll try. The Rainsensor is a rectangle with 5cm * 11cm.. That's 55cm² but the surface is bigger because it's a funnel. Is this not relevant? If it isn't i investigated further: 1m² = 10000cm² 181.81l / 344pulses = 0,528l by pulse / m² 1l = 1mm/m2 Should this be correct? I don't know... |
No Problem, here some DCF77 Data: Or did you need it in another format? |
About the Rain, your numbers sound good, but not what is defined into the current device. Yes, the funnel collects as much as much water from its top, so here classic 5x11 cm, so 55 cm². so around 181.81 less than 1m². Looking other sensors with the same kind of rain gauge, the conversion is 0.5f or 0.5180f so very close. For DCF, we need the cu8 file to be able to decode it from a raw rf signal (replay) , same you already captured and put in rtl test repository. Edit: Did you put the water very carefully and slowly and not regularly, I mean a little water, stop, again little water stop, and random pause between to let the water reach the tipping bucket. It's because for this model, I can't find 0.5 mm/m² but 0.3 mm or 0.1 mm and into the guide is refer to 0.3mm, I would like to trust them. |
Done and yes, your code is working. rtl_433 -f 868.3M -R 246 looking good. so only need the units for wind, gust and rain :-/ |
You're right, I will add the units ... my mistake. |
I catched ~500 cu8 files over a larger timespan (20 minutes, over 1 GB) to hopefully catch the dcf77 signal. |
cloned and compiled it again, now units are present. 👍 |
Yes, Done, my updated fork gives the unit , (play also with -C option to change the units). About the cu8 files, you can replay them with my fork version. (install it first with sudo make install from build folder)
Note the names of each cu8 files that will give you the time and upload into rtl test few of them (2 / 3 files is enough ) to be able to replay them later. (message type = 1) If my version is not showing the time, you can also replay them with the flex options :
And note cu8 file where the message is starting with 61e ( instead of 51e...) , they are DCF messages, and upload those ones to be able to decode them. |
Puh, that was tough but i uploaded some files with DCF77 Data in it. |
Well done ! and it works fine. All is good. If you have time to retest the rain gauge , expected around 606 pulses for 1 L , then 1 pulse = 0.3 mm/m² For the wind, it's very difficult to estimate, it's best to wait for a windy period with weather forecasts on wind speed and possible gusts, then compare with your results. With Open Weather Map you may have such forecast information. |
I will screw the station on its's place tomorrow. I will do another test with the rain sensor then. |
Hi, checked the Rain Sensor again. 322 pulses this time. |
Hi, I made the correction and pushed the update, since the both tests confirm that it's more 0.5 than 0.3 mm. @zuckschwerdt , if you please, sounds all are ok now, can you merge my PR #2549 please. |
The Anemometer arrived at me today and i checked the units. Seems that km/h is correct. ;-) |
Checked windspeed with the anemometer again today. km/h as unit is correct. |
Is there a PR on the table, or is this merged? If this should remain open, please summarize current status and what needs to be done. |
As you can see in the Comment from ProfBoc75 yes there is a PR. It's tested and functional. |
It's merged so i close this issue. |
Damn |
The radio clock also gives wired data: 2000-05-108T25:64:00 |
Can you grab codes below zero and a weird date with |
Of course. Her it is. There are some points where the radio clock is ok. Ithink that's the original radio clock packet. The other packets, with false radio clock values, are originally temp/hum packets i think because they comes more often. And there aren't fine packets with temp/hum anymore. |
We seem to have gotten the "weather or radio" bit wrong. It might rather be a temp-sign bit. The strange radio clock packets are actually weather packets. They show a temp of 0.5 C -- are you sure it was below zero (-0.5 C)? |
Pretty sure but don't nail me down. A temperature of 0.1°C is reported correctly. I record the temp/hum and visualize the data in grafana. The line stops moving down exactly at 0°C. |
The negative temperatures and wrong weather/clock packet detection is fixed now. |
Ok, will test it tomorrow. |
Testes -> functional! Good work! Many thanks for your superfast support! |
Got an TFA Stratos without Head Unit. But all sensors are there an working.
See description.txt
Default device protocols and enabled (default disabled) protocols shows nothing.
Samples, links and little description are in the Repo rtl_433_tests PR #454 as mentioned here.
The text was updated successfully, but these errors were encountered: