• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Jaranda Water-Detector SR-02
#1
Hello everybody,

I would like to propose to add the following device to the protocols.
It's an Water detector called SR-02 of a company called Jaranda.
Apart from an alarm tone, it includes also a relais-switch and sends an 433Mhz-Signal when it detects water.


I evaluated the 433Mhz-Signal using pilight-debug and think I have at least the basic logic of the signal identified.
A typical output of the device is:

Code:
time:           Sun Mar 11 23:37:33 2018
hardware:       433gpio
pulse:          11
rawlen:         50
pulselen:       456

Raw code:
495 1485 1440 495 495 1485 1440 495 450 1530 450 1485 1440 495 1440 495 1440 495 1440 495 495 1530 1440 495 1440 495 1440 495 450 1530 450 1530 495 1530 1440 495 450 1530 1440 495 1440 495 1440 495 450 1530 495 1485 495 15525
--[RESULTS]--

time:           Sun Mar 11 23:37:41 2018
hardware:       433gpio
pulse:          11
rawlen:         50
pulselen:       455

Raw code:
495 1485 1440 495 495 1485 1440 540 450 1530 495 1485 1440 495 1440 495 1440 495 1440 495 495 1485 1440 540 1440 495 1440 495 495 1485 495 1485 495 1485 1440 495 450 1530 1440 495 1440 495 1440 495 495 1530 495 1485 495 15480
--[RESULTS]--

time:           Sun Mar 11 23:37:59 2018
hardware:       433gpio
pulse:          11
rawlen:         50
pulselen:       456

Raw code:
495 1485 1440 495 495 1485 1440 495 495 1485 495 1485 1440 495 1440 495 1440 540 1440 495 495 1485 1440 495 1440 495 1440 495 495 1485 495 1485 495 1485 1440 495 495 1485 1440 495 1440 495 1440 495 450 1530 495 1485 495 15525

I have two of them, the other one sends something like this:
Code:
time:           Mon Mar  5 23:28:41 2018
hardware:       433gpio
pulse:          10
rawlen:         50
pulselen:       454

Raw code:
495 1485 495 1530 495 1485 1440 495 450 1530 1440 495 1440 540 1395 495 450 1530 1440 540 1440 495 1440 540 450 1530 450 1485 450 1530 450 1530 450 1485 1440 540 450 1530 1440 495 1440 540 1440 495 450 1530 450 1530 450 15435
--[RESULTS]--

time:           Mon Mar  5 23:28:41 2018
hardware:       433gpio
pulse:          11
rawlen:         50
pulselen:       454

Raw code:
495 1485 495 1485 495 1485 1440 495 495 1485 1440 495 1440 495 1440 495 495 1485 1440 495 1440 495 1440 495 450 1485 495 1485 495 1485 495 1485 450 1485 1440 495 450 1485 1440 495 1440 495 1440 495 450 1530 450 1485 495 15435
--[RESULTS]--

time:           Mon Mar  5 23:28:41 2018
hardware:       433gpio
pulse:          11
rawlen:         50
pulselen:       454

Raw code:
495 1485 495 1485 495 1485 1440 495 495 1485 1485 450 1440 495 1440 495 495 1485 1440 495 1440 495 1440 495 450 1485 495 1485 495 1485 450 1485 495 1485 1440 495 495 1485 1440 495 1440 495 1440 495 450 1530 495 1485 495 15435
--[RESULTS]--

time:           Mon Mar  5 23:28:42 2018
hardware:       433gpio
pulse:          10
rawlen:         50
pulselen:       454

Raw code:
495 1485 495 1485 495 1485 1440 495 495 1485 1440 495 1440 495 1485 495 495 1485 1440 495 1440 495 1440 495 495 1485 495 1530 450 1485 495 1485 495 1485 1440 495 450 1530 1395 495 1440 495 1440 495 495 1485 495 1485 450 15435

With a little reformatting like in the other protocols, the scheme looks to me like the follwing:

Two number pairs:
495    1485          => Could stand for low
1440    495          => Could stand for high

Sometimes the numbers vary from one to the next transmission, but they jump always by an offset of exactly +/-45  from the numbers above. Therefore I think this is just related to the discretization and some noise between sender and receiver.

At the end, there ist always a number like 15435, 15480 or 15525. Also differing with steps of 45.

Asuming the logic above and comparing the results of the two transmitters it looks to me like the  following scheme is used:
Part 1:
Bit 1-14:   Unique Identifier of the Device between 0 and 16383 (Does not change after Power loss!)

Part 2:
Bit 15-24: Identifier for Water-Detector SR-02, the same for each of these devices, resulting decimal number is always 92

Here are evaluation examples for each of the transmitters (assuming 1-14,15-24-Scheme):

Example Transmitter A:
See Attachment Example_A.png


Example Transmitter B:
See Attachment Example_B.png


Discussion: The question is of course where to draw the border between Part 1 and 2 because it might be coincidence that bit 15-17 are the same for both of my devices. It might be more safe to use Bit 1-17 for part 1 and just Bit 18-24 for part 2 because the Device-type SR-02 identifier(part 2) would still result in "92" and the Unique Identifier (Part 1) would just result in bigger numbers.


Attached Files Thumbnail(s)
       
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Elro/Flamingo FA20RF Smoke detector meloen 76 37,563 12-16-2017, 07:07 PM
Last Post: pilino1234
  Wireless Gas Detector dolapos 0 1,145 02-24-2016, 07:15 PM
Last Post: dolapos
  Ninja Blocks 433mhz Motion Detector scorpydude 0 2,047 12-07-2013, 03:37 PM
Last Post: scorpydude

Forum Jump:


Browsing: 1 Guest(s)