bhunting / Acurite_00592TX_sniffer

Arduino code to sniff and decode Acurite 00592TX remote wireless temperature probe
22 stars 2 forks source link

Is humidity not part of the sniffer code? #1

Open TheFern2 opened 6 years ago

TheFern2 commented 6 years ago

I am currently testing the Model 06002M / 592TXR and according to the datasheet it has both temperature and humidity sensors, but the sniffer code is only for the temperature. I'm assuming the data is sent by the acurite sensor and just not being parsed maybe you didn't need it.

This is the sensors I bought on Amazon they are 06002M but on the actual sensor on the back is 592TXR. https://www.amazon.com/AcuRite-06002M-Wireless-Temperature-Humidity/dp/B00T0K8NXC/ref=sr_1_1?ie=UTF8&qid=1522100239&sr=8-1&keywords=592TXR

Here's a screenshot of the incoming data, the 4th byte doesn't translate well to humidity as Ray's picture for the other model. image

yacko1975 commented 6 years ago

I think it would help to know what your humidity is while you are taking these readings. Can you run it again and give us a few variations of Temp and Humidity so that we can get an idea what we are looking for. For the values you have here the d4 would be 84% humidity (D4 & 7F), 53 would be 53% (53 & 7F), 55 would be 55% (55 & 7F). Might try getting some readings by sticking the sensor in the fridge, in a humid bathroom, in the basement, outside etc. Somewhere you can get some various readings using another device to match up with, these devices won't be the same but should give us an idea of if its being decoded correctly. I use the 6044 devices which have a screen making this process a little easier.

TheFern2 commented 6 years ago

I'll run some controlled tests, I do happen to have an DTH22 at hand some I'll post those test as soon as possible. 84% seems really high since I was inside the house.

TheFern2 commented 6 years ago

Ran some test today in conjunction with the DHT22 sensor. When the humidity was around 57%, 3A makes sense. I tried to put my breadboard inside the fridge for colder temp readings but it was a bit hard. I went outside and the humidity is around 44% according to the DHT22 I just couldn't cross reference with the hex output from the acurite. Full log is here https://www.dropbox.com/s/9pw1s0u36kv7zul/tempHumidityReadings.txt?dl=0

I think the temp readings are pretty spot on by the way. Just the response from the Acurite is very slow response.

c0,f1,44,3a,09,44,7c,11000000,11110001,1000100,111010,1001,1000100,1111100,Temperature: 21C/70F at 6963 msec
Humidity: 57.50 %   Temperature: 22.50 *C 72.50 *F  Heat index: 22.31 *C 72.15 *F
Humidity: 57.40 %   Temperature: 22.50 *C 72.50 *F  Heat index: 22.30 *C 72.15 *F
Humidity: 57.40 %   Temperature: 22.50 *C 72.50 *F  Heat index: 22.30 *C 72.15 *F
Humidity: 57.40 %   Temperature: 22.50 *C 72.50 *F  Heat index: 22.30 *C 72.15 *F
Humidity: 57.40 %   Temperature: 22.50 *C 72.50 *F  Heat index: 22.30 *C 72.15 *F
Humidity: 57.40 %   Temperature: 22.50 *C 72.50 *F  Heat index: 22.30 *C 72.15 *F
c0,f1,44,3a,09,44,7c,11000000,11110001,1000100,111010,1001,1000100,1111100,Temperature: 21C/70F at 21801 msec
Humidity: 57.40 %   Temperature: 22.50 *C 72.50 *F  Heat index: 22.30 *C 72.15 *F
Humidity: 57.40 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.19 *C 71.95 *F
Humidity: 57.40 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.19 *C 71.95 *F
Humidity: 57.40 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.19 *C 71.95 *F
Humidity: 57.50 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.20 *C 71.95 *F
Humidity: 57.50 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.20 *C 71.95 *F
Humidity: 57.50 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.20 *C 71.95 *F
c0,f1,44,3a,09,44,7c,11000000,11110001,1000100,111010,1001,1000100,1111100,Temperature: 21C/70F at 38928 msec
Humidity: 57.50 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.20 *C 71.95 *F
Humidity: 57.50 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.20 *C 71.95 *F
Humidity: 57.40 %   Temperature: 22.30 *C 72.14 *F  Heat index: 22.08 *C 71.75 *F
Humidity: 57.50 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.20 *C 71.95 *F
Humidity: 57.60 %   Temperature: 22.40 *C 72.32 *F  Heat index: 22.20 *C 71.96 *F
Humidity: 57.50 %   Temperature: 22.30 *C 72.14 *F  Heat index: 22.09 *C 71.76 *F

c0,f1,44,bb,09,42,fb,11000000,11110001,1000100,10111011,1001,1000010,11111011,Temperature: 21C/70F at 1050492 msec
Humidity: 58.90 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.91 *C 69.64 *F
Humidity: 58.80 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.91 *C 69.64 *F
Humidity: 58.70 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.91 *C 69.63 *F
Humidity: 57.80 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.88 *C 69.59 *F
Humidity: 56.50 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.85 *C 69.53 *F
Humidity: 55.70 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.83 *C 69.49 *F
Humidity: 55.00 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.81 *C 69.46 *F
c0,f1,44,bb,09,42,fb,11000000,11110001,1000100,10111011,1001,1000010,11111011,Temperature: 21C/70F at 1067626 msec
Humidity: 53.70 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.78 *C 69.40 *F
Humidity: 51.10 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.71 *C 69.28 *F
Humidity: 50.10 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.68 *C 69.23 *F
Humidity: 49.10 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.66 *C 69.18 *F
Humidity: 48.90 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.65 *C 69.17 *F
Humidity: 48.00 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.74 *C 69.33 *F
Humidity: 47.70 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.73 *C 69.32 *F
Humidity: 47.50 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.62 *C 69.11 *F
Humidity: 46.70 %   Temperature: 21.20 *C 70.16 *F  Heat index: 20.59 *C 69.07 *F
Humidity: 46.20 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.69 *C 69.25 *F
Humidity: 46.10 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.69 *C 69.24 *F
Humidity: 46.00 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.69 *C 69.24 *F
Humidity: 45.90 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.68 *C 69.23 *F
Humidity: 45.50 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.67 *C 69.21 *F
c0,f1,44,39,09,41,78,11000000,11110001,1000100,111001,1001,1000001,1111000,Temperature: 21C/70F at 1100767 msec
Humidity: 45.10 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.66 *C 69.19 *F
Humidity: 44.80 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.66 *C 69.18 *F
Humidity: 44.70 %   Temperature: 21.30 *C 70.34 *F  Heat index: 20.65 *C 69.17 *F
Humidity: 44.60 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.76 *C 69.37 *F
Humidity: 44.40 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.75 *C 69.36 *F
Humidity: 44.30 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.75 *C 69.35 *F
c0,f1,44,39,09,41,78,11000000,11110001,1000100,111001,1001,1000001,1111000,Temperature: 21C/70F at 1115608 msec
Humidity: 44.10 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.75 *C 69.34 *F
Humidity: 44.00 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.34 *F
Humidity: 44.10 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.75 *C 69.34 *F
Humidity: 44.10 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.75 *C 69.34 *F
Humidity: 43.90 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.34 *F
Humidity: 43.90 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.34 *F
Humidity: 43.80 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.33 *F
c0,f1,44,b8,09,41,f7,11000000,11110001,1000100,10111000,1001,1000001,11110111,Temperature: 21C/70F at 1132737 msec
Humidity: 43.80 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.33 *F
Humidity: 43.70 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.33 *F
Humidity: 43.70 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.33 *F
Humidity: 43.70 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.33 *F
Humidity: 43.70 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.33 *F
Humidity: 43.70 %   Temperature: 21.40 *C 70.52 *F  Heat index: 20.74 *C 69.33 *F
c0,f1,44,b8,09,41,f7,11000000,11110001,1000100,10111000,1001,1000001,11110111,Temperature: 21C/70F at 1147581 msec

I went ahead and use a drier to bring the humidity from 44% all the way to 19%, temp went to almost 100F, the temp change can be seen easily with the DTH22 readings and the Acurite slowly but surely was getting up there. Here are those readings:

c0,f1,44,35,09,47,7a,11000000,11110001,1000100,110101,1001,1000111,1111010,Temperature: 21C/70F at 2482452 msec
Humidity: 42.00 %   Temperature: 22.10 *C 71.78 *F  Heat index: 21.46 *C 70.63 *F
Humidity: 42.10 %   Temperature: 22.10 *C 71.78 *F  Heat index: 21.46 *C 70.64 *F
Humidity: 42.20 %   Temperature: 22.10 *C 71.78 *F  Heat index: 21.47 *C 70.64 *F
Humidity: 42.20 %   Temperature: 22.10 *C 71.78 *F  Heat index: 21.47 *C 70.64 *F
Humidity: 42.30 %   Temperature: 22.20 *C 71.96 *F  Heat index: 21.58 *C 70.84 *F
Humidity: 43.40 %   Temperature: 23.50 *C 74.30 *F  Heat index: 23.04 *C 73.47 *F
Humidity: 44.50 %   Temperature: 25.00 *C 77.00 *F  Heat index: 24.72 *C 76.49 *F
Humidity: 44.50 %   Temperature: 25.60 *C 78.08 *F  Heat index: 25.38 *C 77.68 *F
Humidity: 44.10 %   Temperature: 25.90 *C 78.62 *F  Heat index: 25.70 *C 78.25 *F
Humidity: 43.60 %   Temperature: 25.90 *C 78.62 *F  Heat index: 25.68 *C 78.23 *F
Humidity: 43.00 %   Temperature: 25.70 *C 78.26 *F  Heat index: 25.45 *C 77.81 *F
Humidity: 42.50 %   Temperature: 25.90 *C 78.62 *F  Heat index: 25.66 *C 78.18 *F
Humidity: 42.00 %   Temperature: 26.30 *C 79.34 *F  Heat index: 26.08 *C 78.95 *F
Humidity: 41.50 %   Temperature: 26.70 *C 80.06 *F  Heat index: 26.72 *C 80.09 *F
c0,f1,44,b4,09,48,fa,11000000,11110001,1000100,10110100,1001,1001000,11111010,Temperature: 22C/72F at 2515595 msec
Humidity: 41.20 %   Temperature: 27.70 *C 81.86 *F  Heat index: 27.48 *C 81.47 *F
Humidity: 40.20 %   Temperature: 28.30 *C 82.94 *F  Heat index: 27.95 *C 82.30 *F
Humidity: 39.20 %   Temperature: 28.70 *C 83.66 *F  Heat index: 28.24 *C 82.84 *F
Humidity: 38.30 %   Temperature: 29.20 *C 84.56 *F  Heat index: 28.66 *C 83.58 *F
Humidity: 37.30 %   Temperature: 29.60 *C 85.28 *F  Heat index: 28.97 *C 84.15 *F
Humidity: 36.50 %   Temperature: 30.10 *C 86.18 *F  Heat index: 29.42 *C 84.96 *F
c0,f1,44,33,09,cc,fd,11000000,11110001,1000100,110011,1001,11001100,11111101,Temperature: 22C/72F at 2530442 msec
Humidity: 35.70 %   Temperature: 30.40 *C 86.72 *F  Heat index: 29.66 *C 85.39 *F
Humidity: 34.50 %   Temperature: 30.90 *C 87.62 *F  Heat index: 30.09 *C 86.15 *F
Humidity: 33.80 %   Temperature: 31.30 *C 88.34 *F  Heat index: 30.46 *C 86.83 *F
Humidity: 33.00 %   Temperature: 31.60 *C 88.88 *F  Heat index: 30.71 *C 87.28 *F
Humidity: 32.20 %   Temperature: 31.90 *C 89.42 *F  Heat index: 30.96 *C 87.74 *F
Humidity: 31.40 %   Temperature: 32.20 *C 89.96 *F  Heat index: 31.22 *C 88.19 *F
Humidity: 30.50 %   Temperature: 32.50 *C 90.50 *F  Heat index: 31.46 *C 88.63 *F
c0,f1,44,b2,09,55,05,11000000,11110001,1000100,10110010,1001,1010101,101,Temperature: 23C/74F at 2547572 msec
Humidity: 29.80 %   Temperature: 32.80 *C 91.04 *F  Heat index: 31.73 *C 89.11 *F
Humidity: 29.00 %   Temperature: 33.10 *C 91.58 *F  Heat index: 31.98 *C 89.57 *F
Humidity: 28.50 %   Temperature: 33.30 *C 91.94 *F  Heat index: 32.16 *C 89.88 *F
Humidity: 28.00 %   Temperature: 33.50 *C 92.30 *F  Heat index: 32.33 *C 90.20 *F
Humidity: 27.50 %   Temperature: 33.70 *C 92.66 *F  Heat index: 32.50 *C 90.51 *F
Humidity: 27.20 %   Temperature: 34.00 *C 93.20 *F  Heat index: 32.83 *C 91.10 *F
c0,f1,44,30,09,5f,8d,11000000,11110001,1000100,110000,1001,1011111,10001101,Temperature: 24C/76F at 2562419 msec
Humidity: 26.80 %   Temperature: 34.20 *C 93.56 *F  Heat index: 33.02 *C 91.44 *F
Humidity: 26.20 %   Temperature: 34.50 *C 94.10 *F  Heat index: 33.31 *C 91.95 *F
Humidity: 25.90 %   Temperature: 34.70 *C 94.46 *F  Heat index: 33.51 *C 92.32 *F
Humidity: 25.60 %   Temperature: 34.90 *C 94.82 *F  Heat index: 33.72 *C 92.69 *F
Humidity: 25.30 %   Temperature: 35.10 *C 95.18 *F  Heat index: 33.92 *C 93.06 *F
Humidity: 24.90 %   Temperature: 35.20 *C 95.36 *F  Heat index: 33.98 *C 93.17 *F
Humidity: 24.70 %   Temperature: 35.40 *C 95.72 *F  Heat index: 34.20 *C 93.57 *F
c0,f1,44,2e,09,69,95,11000000,11110001,1000100,101110,1001,1101001,10010101,Temperature: 25C/77F at 2579552 msec
Humidity: 24.40 %   Temperature: 35.70 *C 96.26 *F  Heat index: 34.54 *C 94.17 *F
Humidity: 23.90 %   Temperature: 36.00 *C 96.80 *F  Heat index: 34.84 *C 94.71 *F
Humidity: 23.60 %   Temperature: 36.20 *C 97.16 *F  Heat index: 35.04 *C 95.08 *F
Humidity: 23.20 %   Temperature: 36.30 *C 97.34 *F  Heat index: 35.10 *C 95.18 *F
Humidity: 23.00 %   Temperature: 36.50 *C 97.70 *F  Heat index: 35.32 *C 95.58 *F
Humidity: 22.70 %   Temperature: 36.60 *C 97.88 *F  Heat index: 35.39 *C 95.71 *F
Humidity: 22.50 %   Temperature: 36.70 *C 98.06 *F  Heat index: 35.49 *C 95.87 *F
c0,f1,44,ac,09,f3,9d,11000000,11110001,1000100,10101100,1001,11110011,10011101,Temperature: 26C/79F at 2596687 msec
Humidity: 22.30 %   Temperature: 36.90 *C 98.42 *F  Heat index: 35.71 *C 96.27 *F
Humidity: 22.10 %   Temperature: 37.20 *C 98.96 *F  Heat index: 36.06 *C 96.91 *F
Humidity: 21.70 %   Temperature: 37.30 *C 99.14 *F  Heat index: 36.11 *C 97.00 *F
Humidity: 21.50 %   Temperature: 37.50 *C 99.50 *F  Heat index: 36.33 *C 97.40 *F
Humidity: 21.30 %   Temperature: 37.60 *C 99.68 *F  Heat index: 36.42 *C 97.56 *F
Humidity: 21.00 %   Temperature: 37.80 *C 100.04 *F Heat index: 36.62 *C 97.92 *F
c0,f1,44,2b,09,fc,25,11000000,11110001,1000100,101011,1001,11111100,100101,Temperature: 27C/81F at 2611535 msec
Humidity: 20.80 %   Temperature: 37.90 *C 100.22 *F Heat index: 36.71 *C 98.07 *F
Humidity: 20.70 %   Temperature: 38.00 *C 100.40 *F Heat index: 36.82 *C 98.27 *F
Humidity: 20.50 %   Temperature: 38.10 *C 100.58 *F Heat index: 36.90 *C 98.43 *F
Humidity: 20.30 %   Temperature: 38.20 *C 100.76 *F Heat index: 36.99 *C 98.58 *F
Humidity: 20.20 %   Temperature: 38.30 *C 100.94 *F Heat index: 37.10 *C 98.78 *F
Humidity: 20.10 %   Temperature: 38.50 *C 101.30 *F Heat index: 37.34 *C 99.21 *F
Humidity: 19.90 %   Temperature: 38.60 *C 101.48 *F Heat index: 37.43 *C 99.37 *F
Humidity: 19.80 %   Temperature: 38.80 *C 101.84 *F Heat index: 37.67 *C 99.80 *F
Humidity: 19.70 %   Temperature: 39.00 *C 102.20 *F Heat index: 37.91 *C 100.24 *F
Humidity: 19.60 %   Temperature: 38.90 *C 102.02 *F Heat index: 37.75 *C 99.95 *F
Humidity: 19.60 %   Temperature: 38.80 *C 101.84 *F Heat index: 37.62 *C 99.71 *F
yacko1975 commented 6 years ago

It looks like you have it working correctly. The updates are infrequent, every 30 seconds or so but for temp and humidity this isn't a big deal as changes won't be that quick. If you are interested in a different piece of code to work on these type devices check out mine over at https://github.com/yacko1975/WeatherStationESP32 this runs on the ESP32. My code is based on this and some others that I have found around the web. Good luck!

trlafleur commented 6 years ago

You might also want to look at my derived code for these devices... alarm, email, SMS, MQTT

and yes, the newer 06002, 06044 and 00592TX devices do send humidity...

https://github.com/trlafleur/Acurite-00592TX-Decoder-ESP32a

paulirwin commented 3 years ago

I rewrote this script in modern C++ for the Raspberry Pi, and added channel and humidity decoding as well as checksum validation. Let me know what you think. https://github.com/paulirwin/acurite-sensor-pi/

I have the set with 3 sensors, so I wanted to get the data from each of them: image

I made the license of mine GPL for now to protect the open-source nature of this library, but this one is currently unlicensed... it would be much appreciated if this could be licensed with a permissive license such as MIT and I'll update mine accordingly.

TheFern2 commented 3 years ago

I had totally forgotten about this issue being open, I guess I need to run more tests after 3 years or so, ha.