more G-Labs products

Author Topic: Heartbeat Monitor  (Read 1128 times)

September 19, 2015, 05:11:29 AM
Read 1128 times

JerryR

  • *
  • Information
  • Newbie
  • Posts: 20
I'm very new to HG and I am very impressed with it. I have a collection of DS10As talking via a CM15 to my RaspPi and it works great.
I have observed that about once and hour (not with real regularity), the DS10As send a message to the Pi. This appears to be a verification that the batteries in that specific DS10A are still good.

I would like to put together a small program that could monitor this for each of the DS10A's and if one fails to report say over 2-3 hours, I would like to pop something up or create a flag that would tell me I am not receiving messages from that DS10A and should therefore check the batteries in that unit.

It sounds simple but I don't even know where to start. Can you folks give me some suggestions on which of the functions I might use to put such a simple program together and what trigger(s) I might use? I'd like to do it in C# if I can (Just to learn more about the language).

Thanks for any tips you can offer,
Jerry

September 19, 2015, 05:44:16 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
The DS10A is a security type motion sensor and does in fact send a heartbeat to let the system know it's present and functioning.  I suggest reading the documentation on the X10 security protocol.  I don't believe that HG deals with this heartbeat internally, so I suspect you will have to interpret the raw RF communication.

September 20, 2015, 06:04:08 AM
Reply #2

JerryR

  • *
  • Information
  • Newbie
  • Posts: 20
Hi and thanks for the reply.
Well I know how to parse the RF IDs they send so I can tell them apart but what I was hoping to find out was how I could programmatically receive those transmissions in HG and then I could see if they are occurring every 60-70 minutes or not at all. However I don't know how to receive that information in a program. If I trigger a program when the DSs10a's transmit, is there some way to get the current time then so I can check for another message received about an hour after that? That way failure to receive the message after say 2 hours would point to probable battery failure. I would need my program to run whether a message was received or not so I could tell when a DS10A is not transmitting?

I just don't know how to go about this in HG
Jerry