Skip to main content

You are here

Oregon v2 decode

1 post / 0 new
Oregon v2 decode


I'm using OSV2 decoder found here : but have some problem with it.

My THN132 sensor are not decode for two reason, first I need to modify the line : else if (32 <= flip) to else if (31 <= flip). I don't know why, I read the protocol spec here and the preamble should be 32bit ... why it is 31 on my sensor ?

The second problem, the decoder return if it received 160bits (2x80). Most oregon sensors send 80bits long data but not all. THN132N send 136 (2x68).

With this two modification I'm able to receive and decode THN132N sensor but can't exmplain the problem on the preamble lenght ??

Premium Drupal Themes by Adaptivethemes