-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Radiosonde M20 additional params #1948
Comments
Hello @voxo22, I added the feature to identify & decode M20 coordinate and altitude because this was the only things needed to chase them and didn't really care about temp/hum/pressure/Vbat... If you wish to give me a bounty to add this feature I can do it for you. |
How much would you like for that and also for adding detection for the DFM sonde? I'll see accordingly |
Unfortunately I won't be able to work on decoding DFM as there isn't such a sonde in my country. For M20, It depends on you how much you want to offer for this feature ? |
Hm, I have no idea how much effort/time can this take. 20€? I have DFM 17 sonde here, I can share IQ file with you |
I don't think I have enough skills to reverse it only with an IQ file. I can start to work on decoding other data from M20 if the ammount you wrote is ok for you without DFM17 ? |
ok, I understand. Yes, the amount for M20 decoding is ok for me, if it's ok for you.... |
I think you should definitely consider buying 2nd hackrf to comfortably simulate any recorded signal ;-) |
@joyel24 hi, any update? Do you think it is doable? |
@gullradriel @joyel24 I have successfuly made LOG decoder (TEMP, HUMIDITY, PRESSURE, BAT_VOLTAGE) for this M20 sonde, so now I can support direct sonde_packet.cpp code update. I can post it here, can you please move it then to original code and compile? I am too lazy to do that :-/ |
Sorry, at lot busy... I don't know if you still need it, I did not understood well your last comment. |
@joyel24 I have made it as webpage in PHP. M20 sonde has very easy-to-decode bitstream, so I think adding missing params to sonde_packet.cpp is quite easy. But I am not familiar with C++ so much plus I have no compilers installed, so if you provide me with the way how to modify/add the code in this repo, I can do it. Who will test it then (and make final firmware release)? Or, you can read my code for M20 (attached) and copy the parts, which are about decoding batt voltage, temp, humidity, serial number and gps time. It would be even so nice to have all measured values in the log, in readable form (so I would not have to translate it from the hex string, as I do it now) |
@joyel24 and one more thing would be nice: Auto-sync of the portapack-clock based on real GPS time from the radiosonde. I have this parameter decoded for both M20 and RS41 (see variable $gpx in my code). |
Nice, we have to make something with this |
Last light I started to work with temperature. I had troubles using my docker building image but I've been able to get the temperature with a caltulator using the formula in the radiosonde_auto_rx project. I fixed my old docker image, then I've just built this firmware that normally decodes temperature, but I'm can't check because I have nothing actually that can decode temp of the M20 to check if it's matching. The bin is here: |
@joyel24 I have tried your bin. There is temp displayed, but, in comparison with the log, there are kind of weird values. Normally, now is 20.3°C, radiosonde app showed 19.6. When I touched the sensor, there is pretty curve up to 33°C and down in the log, app shows still 19.6. There was one more value, 22.3 in the app, but it seems like only these two values are possible, nothing else. |
Yep looks like temp were good but with big steps. Added .0 to numbers and it looks better now : https://github.com/joyel24/portapack-mayhem/releases/download/temp/portapack-h1_h2-mayhem.bin I sill have nothing to compare but I used fridge and freezer witch gave me 5.8 (top of fridge) and -14.6. I got 20.6 indoor and 20.4 outdoor where online wheather tells it's 20. |
Yep, granularity of the value is now ok. But you definitely compute temp from the wrong parameter. You use get_Tntc2 function (see lines from 636 in attached zip), instead of get_Temp function (see lines from 564). Thats why outer temp sensor does not respond to my hand touch. I mean get_Tntc2 is kind of temp measurement, which use internal SMD sensor or some other magic to acquire data, but definitely not outer temp sensor. Measurement is then much slower and low dynamic compared to outer sensor. |
@joyel24 Hi, do you think it is possible to finalize the code in short time? M20 also supports air pressure [hPa] data, so all three of them (temp/rH/pressure) could be displayed simultaneously. if needed, please use excerpt from the c_m20mod.zip (c++) above. |
Hello, I did not work on RS this year finally... |
@joyel24 of course I would welcome the fix. The Radiosonde app has several more errors, e.g. a truncated timestamp, missing pressure and dew point data for the RS41 sonde, but the M20 displays virtually nothing, except for the "Meteomodem" and the position that you added. The entire program in C++ is available and you just need to rewrite the procedures into the code in the mayhem app, just like I did in PHP when I was making a decoder for the Radiosonde log. There are already a lot of M20s flying in the world today, so it's a big shame that the data can't be monitored in real time on the display, but only from the log. The M20 provides virtually the same data as the RS41, so there could also be displayed ID of sonde, battery voltage, temperature, dew point, humidity, and pressure. They are all available in C++ code, which I also uploaded to the issue. If I could compile it myself, I would have done it, but I'm completely out of my depth when it comes to compiling for mayhem. |
Description of the feature you're suggesting.
Hi, is it possible to add temp, humidity, pressure, batt, etc params to existing ones for Meteomodem M20?
Thank you!
Anything else?
No response
The text was updated successfully, but these errors were encountered: