Project

General

Profile

Receiving Oregon sensor data on an XD-RF-5V

Added by okina over 5 years ago

Or rather, not receiving anything !

I’m using an Arduino UNO, with an XD-RF-5V 433Mhz receiver (ubiquitous on eBay).
My temperature probe is Oregon V3 THGR800, and it works well with the Oregon console.
I can send and transmit 433 Mhz data with the RCswitch library.
But I get nothing with the “Oregon decoder by Dominique Pierre” code.

Has anybody succeeded with that receiver, or should I get another model ?


Replies (13)

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by leafbench over 5 years ago

Are you using the code as-is? I think Dominique’s code is for an Arduino Mega, so it uses ports that are beyond the range of the Uno. I never had success in modifying it to work with an Uno.

Receiving Oregon sensor data on an XD-RF-5V - Added by okina over 5 years ago

I was aware of this potential problem with ports, and If I remember
well the equivalent port on the Uno is digital 2, but nothing’s working. I
also tried with another 433Mhz receptor. Maybe I should just order a Mega.
In the meantime, I’ve used my old weather station (Bresser, a.k.a. Meade in
the US).
I’ve managed to receive, decode and reverse engineer its 433Mhz
temperature and humidity messages, and I’m making progress on rain and wind.
I could have done the same for Oregon (the messages are more complex, but
their structure is well documented), but I thought I’d eventually find a
way to make it work with Dom’s code.

Le jeudi 26 décembre 2013, a écrit :

> JeeLabs Café - Support: RE: Receiving Oregon sensor data on an XD-RF-5V
> leafbench
>
> Are you using the code as-is? I think Dominique’s code is for an Arduino
> Mega, so it uses ports that are beyond the range of the Uno. I never had
> success in modifying it to work with an Uno.

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by leafbench over 5 years ago

I’ve had some success with this code as it’s Uno-based. It doesn’t have as many sensors as Dom’s:

http://www.lostbyte.com/arduino-osv3/

I might end oh ordering a mega as well, although he mentions it should work on a JeeNode, I have yet to test that.

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by leafbench over 5 years ago

Well thanks to you I was inspired to attempt to get the code working on my Uno. I’m not using the same 433mhz as you, I think it’s an OnShine that I bought some time ago. However I am now seeing packets from a couple of sensors - a THGR810N temp/humid sensor, and PCR122 rain gauge. Curiously I see nothing from my THN132N.

This isn’t a clean edit by any means, I just commented out some of the mega references and changed the ports accordingly.

Ook_OSV2.ino (15.3 KB) Ook_OSV2.ino code modified to work with Arduino UNO.

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by okina over 5 years ago

I’ll have to give it a try, but I won’t have time for that in the next couple of weeks.
Below is a link to the new 433mHz I’m currently using. I read somewhere it filters noise better than the other one.
I used my Mac sound board as an oscilloscope, and I can see clearly what I presume are the Oregon Manchester coded signals. So my problem is definitely software related.

www.telecontrolli.com/en/resources/telecontrolli-download/products-datasheet-telecontrolli/radiofrequency-products/rf-receivers-datasheet.html?download=165:rrq3

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by leafbench over 5 years ago

Well, good luck! I hope it works for you. One note on the code I posted before: I deleted the code that prints out data for the non-Oregon sensors. I replaced the original code, and now the THN132N shows up, but it’s coming in as a Cresta encoding. I’ll have to figure that out.

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by okina over 5 years ago

I just took a couple minutes to run your code without even looking into it, and it works !
Below are the first frames I’m receiving. As you’ll see, I also receive Cresta and Hez codes, of unknown origin.
I found a description of the Cresta protocol (members.upc.nl/m.beukelaar/Crestaprotocol.pdf), but the frames they describe are shorter than the 15 bytes I receive. And they do not come either from my Bresser/Meade station. More work needed !
Thanks anyway,
Bruno

[ookDecoder]
OSV3 FA281496801190044459
CRES 94D83AD30BC10F06170B23026A74D1
HEZ
CRES 94D83AE30BC10F06170B23026A145C
HEZ
CRES 94D83AB30BC10F06170B23026AB427
HEZ
OSV3 1A89040180C03640043C
OSV3 1A89040180C05740043F
CRES B2D9300018840FCC10C404
HEZ 00C30001080C01
OSV3 2A190437000000720360
HEZ
CRES 94D83AD30BC10F06170BF22022E703
HEZ
CRES 94D83AE30BC10F06170BF22022878E
HEZ
CRES 94D83AB30BC10F06170BF2202227F5
HEZ 0081403884E401
OSV3 1A89040170C04940043F
OSV3 1A89040190C03620043B
CRES B2D930001BB405C6D0E406
HEZ 00181820433803
OSV3 FA281496801190044459

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by leafbench over 5 years ago

Try this code. I disabled the extraneous decoders, but also added the generic OregonDecoder from the Jeelib decoders.h, and created one for the THN132N, thanks to this post:

http://forum.jeelabs.net/node/1249.html

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by leafbench over 5 years ago

Another update. For some reason the “thn132n” decoder always catches my THN132N and my PCR122 rain gauge. The OSV2 only seems to get the rain gauge. (And randomly the older Oregon decoder pops in with an OSV3 packet.)

Anyway I think I figured out the THGR810N format, but my brain hurts so I’ll have to recheck. I used the “RFreceiver” program from http://www.rfxcom.com/downloads.htm to help, along with a heater/freezer/breath to trigger the various states.

With this packet : FA281493482890044D6E

Inputting into RFreceiver (adding “50” to the beginning) shows:

Simulate: 50FA281493482890044D6E
TH2[37633] THGR810 CH 1 addr:93 temp:28.4°C | 83.12°F hum:49 Normal Battery OK

[0..3] - FA28 = THGR810
[4] - channel 1
[5] - 4 - ?
[6..7] - 93 - address
[8] - 4 - third temp digit
[10] - 2 - first temp digit
[11] - 8 - second temp digit
[12] - 9 - second humidty digit
[13] - 0 - positive temp (8 for negative)
[14] - 0 = “normal” (dry=8, wet=C, comfort=4, normal=0)
[15] - 4 - first humidity digit

Onto the other sensors!

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by leafbench over 5 years ago

Rain gauge: mine is PCR122, but it looks like formula works for others. Also will change the code a bit so OSV2 grabs the rain gauge. The THN132N also tries to grab it, but data is cut off. Will have to figure out how to identify within decoding process, or just ignore it.

That’s enough decoding in a day for me, hopefully this helps someone. Eventually I’ll code it so it assembles the data in a readable/consumable format.

2A1D0065502735102063
Simulate: 502A1D0065502735102063
RAIN1[25856] RGR126,RGR682,RGR918 addr:65 rain fall 275 mm/hr total rain cnt 103 mm flip cnt 5 Battery OK

[0..3] - Rain guauge identifer
[4] - channel? (unaware if rain gauges have channels)
[5] -
[6..7] - address
[8] - rain rate mm/hr - ones (the “3” in 123)
[9] - ?
[10] - rain rate mm/hr - hundreds (the “1” in 123)
[11] - rain rate mm/hr - tens (the “2” in 123)
[12] - total rain mm - ones
[13] - flip count (range is 0-9)
[14] - total rain mm - hundreds
[15] - total rain mm - tens

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by Siftah about 5 years ago

Very happy to have found this thread, I’ve been struggling with getting OokRelay from JeeLib to read an Oregon sensor - at some point, during my many attempts, I’ve had it successfully working and decoding the Oregon sensor, but now it seems to only be decoding it as the Cresta protocol (as mentioned above).

I can only imagine this is a timing issue, perhaps the code is a little sensitive to the speed of the Arduino and I’m running it on an older Diecimilia using the ATMega 128, so perhaps this is part of the issue.

Anyway - I now have some new code to review and hopefully I can bodge something together which works! :)

It unfortunately looks like RFReceiver has been removed from the linked page, which is a shame - I’ve not yet written any code to parse the output from OokRelay.

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by Siftah about 5 years ago

Thanks leafbench, your code worked fine and is able to decode the output from my Oregon sensor.

I’ve started work on porting your code into the OokRelay2 ‘current’ code from JeeLib (ie: adding it into decoders.h). I’ve not yet managed to get this to work yet, but I’ll keep at it!

RE: Receiving Oregon sensor data on an XD-RF-5V - Added by tecniq almost 5 years ago

Hey there,
I just want to give you some feedback for your code. I’m currently using an Arduino UNO and a cheap 433 MHz receiver as well as the super heterodyne receiver QAM-RX1-433 (SMD). I’ve got two Oregon Scientific sensors (THGN500 and THGR122N). This is the result of your code (I edited the result for better readability and added the sensor names):

[ookDecoder]
thn132n 1A3D10D91C273083          

So it seems that there is still more data sent by the THGR122N which is not displayed by the thn132n decoder. But I didn’t read the protocol specification ;)
The code from the repository (https://github.com/jcw/jeelib/tree/rf12mods/examples/RF12/ookRelay2) only prints the data for my THG500 (identified as CRESTA) but not for the THGR122N.
Bye, tecniq

    (1-13/13)