jdiazbb / rfxcmd

Automatically exported from code.google.com/p/rfxcmd
1 stars 0 forks source link

OS PCR800 (rain) gives 'Rain-Rate' = not supported #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Connect rfxtrx433 to raspberry
2.  Start rfxcmd
3.  Wait until data passes

What is the expected output? What do you see instead?
Extpected value for rainrate, instead of 'not supported', because in your 
sensorprintouts the PCR800 give a correct value

What version of the product are you using? On what operating system?
0.3 alpha, download at 24-07-2013 on raspberry

Please provide any additional information below.

Original issue reported on code.google.com by embe...@gmail.com on 24 Jul 2013 at 2:09

GoogleCodeExporter commented 8 years ago
Hi, it seems to me that the source in 0.30 to much chanched from 0.24.
Look at Rain sensors 0x55 and the source beneath that.

Greetings,

Original comment by embe...@gmail.com on 24 Jul 2013 at 2:59

GoogleCodeExporter commented 8 years ago
Thanks for the report, I will check.

Original comment by sebastia...@gmail.com on 25 Jul 2013 at 7:44

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I changed my code in v030 of 0x55 to the code found in your svn.
This seems to be working correct now.

Wright no it's bad weather : raining and so on. RESULT :

Received                = 0B 55 02 45 7D 00 02 AD 00 01 6F 59
Date/Time               = 2013-07-26 12:49:16
Packet Length           = 0B
Packettype              = Rain sensors
Subtype                 = PCR800
Seqnbr                  = 45
Id                      = 7D00
Rain rate               = 6.85 mm/hr
Raintotal:              = 36.7 mm
Battery                 = 9
Signal level            = 5

Original comment by embe...@gmail.com on 26 Jul 2013 at 10:50

GoogleCodeExporter commented 8 years ago
According to : http://www.bashewa.com/wmr200-protocol.php

The printout is :

WMR200 PROTOCOL
Version 3.0

WMR200 Data Protocol Sniffer
WMR200 USB DLL

Intro   Notes   C# Code
Snippet History
[D2]    Wind
[D3]    Rain
[D4]    UVI
[D5]    Baro
[D6]    Temp/Hum
[D7]    Status
[D9]
[D4] Rain
================================================================================
==============
[D4] RAIN (NOTE: rainfall is in inches)
     One tip according to OS is 0.04 inch = 1.016 mm (needs to be confirmed)
================================================================================
==============

----> Time/Date----> Rain------------------> Rain Date----> CHSUM
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 ...byte nr
ID LL mm-hh dd-mm-yy rL-rH hL-hH dL-dH aL-aH mm-hh dd-mm-yy cL-cH ...notation
----- -------------- ----- ----- ----- ----- ----- -------- -----
d4 16 3b 15 08 0c 0a 0f 00 04 00 4b 00 7e 02 00 0c 01 01 07 4b 02 ...data
-----------------------------------------------------------------

DECODED:
Packet Nr .......... [D4]
Packet Length ...... [16] 22 bytes
Time ............... [15:3b] 21:59
Date ............... [07-0c-0a] 08-12-2010
Rain rate .......... [000f] 0.15 inch/hr
Rain last hour ..... [0004] 0.04 inch
Rain last 24hr ..... [004b] 0.75 inch
Rain accumulated ... [027e] 6.38 inch (162.052 mm)
Rain since time .... [0c:00] 12:00
Rain since date .... [01:01:07] 01-01-2007
Check-sum .......... [024b]
--------------------------------------------------------------------------------
--------------

HEADER ------
   Byte 00: (ID) [D4] Packet Id
   Byte 01: (LL) [16] Packet Length = 22 bytes

DATE/TIME ---
   Byte 02: (mm) Minute
   Byte 03: (hh) Hour
   Byte 04: (dd) Day
   Byte 05: (mm) Month
   Byte 06: (yy) Year

D4 RAIN -----
   Rainfall rate in inches (and not in millimeters)
   Byte 07: (rL) Rainfall Rate low  byte +
   Byte 08: (rH) Rainfall Rate high byte

                 RainRate in inch/hr = ((256*rH) + rL) / 100)
                 RainRate in mm/hr   = ((256*rH) + rL) / 100) * 25.4

   Rain This Hour: activated when rain starts being measured
   Byte 09: (hL) Rainfall This Hour low  byte +
   Byte 10: (hH) Rainfall This Hour high byte

                 Rain_this_hour in inch = ((256*hH) + hL) / 100)
                 Rain_this_hour in mm   = ((256*hH) + hL) / 100) * 25.4

   Rain Past 24 Hours: excluding current hour
   Byte 11: (dL) Rainfall Past  24H low  byte +
   Byte 12: (dH) Rainfall Past  24H high byte

                 Rain_last_24h in inch = ((256*dH) + dL) / 100)
                 Rain_last_24h in mm   = ((256*dH) + dL) / 100) * 25.4

   Accumulated rain since 12h00 1st January 2007
   Byte 13: (aL) Rainfall Accumulated low  byte +
   Byte 14: (aH) Rainfall Accumulated high byte

                 Rain_accum in inch = ((256*aH) + aL) / 100)
                 Rain_accum in mm   = ((256*aH) + aL) / 100) * 25.4

   Date/time since accumulated rainfall (always 12h00 01-01-2007)
   Byte 15: (mm) Rainfall Accumulated Minute
   Byte 16: (hh) Rainfall Accumulated Hour
   Byte 17: (dd) Rainfall Accumulated Day
   Byte 18: (mm) Rainfall Accumulated Month
   Byte 19: (yy) Rainfall Accumulated Year

CHECKSUM ---- Add up the bytes 00 to 19 == ((256*cH) + cL)
   Byte 20: (cL) Check-sum low  byte
   Byte 21: (cH) Check-sum high byte

Accoring to this i think your sourcecode voor 0x55 is not correct ......

Original comment by embe...@gmail.com on 27 Jul 2013 at 10:25

GoogleCodeExporter commented 8 years ago
Verified to be working in latest SVN version. 

Original comment by sebastia...@gmail.com on 3 Aug 2013 at 10:19