So, I have searched and search - but found nothing.
I have one of the dreaded MX-RM-5v wireless receiver modules and my goal is to replace the crappy china "GSM Alarm" system with a custom Arduino based system.
The only thing I want to replace is the actual alarm unit itself. All the EXISTING wireless sensors work. I currently have 3 pir sensors and 3 door sensors.
Now, using RC-Switch library, I am able to receive data from these sensors. Each time I trigger one, I get the data (unique to each sensor) and "Protocol 1".
The first issue is: after 5-10 minutes, the rc-switch library simply stops working. I stop receiving any data from all my sensors. Each sensor (when triggered) usually sends the datagram several times. Over the course of a few minutes, the number of received datagrams continues to reduce until I receive NOTHING. Not just one sensor - but all sensors. It seems like the receiver just gradually stops receiving.
Again, please remember that I am talking about re-built wireless sensors here - not custom made devices.
Anyway, if I power the entire arduino OFF for a couple minutes and back on (receiver module included), it starts working again. I have tried 3 of these receiver modules - all have the same issue.
I decided to try the RF Blink code - just to see how the module was behaving. Well, It seems to be working continually. The serial console spews LOTS of data. Continually. Like WAY more than I can even begin to copy/sort through for analyzing. The interesting thing is: even after an HOUR of leaving the system powered on (arduino w/ receiver) I am STILL getting LOTS of data. So I doubt I have a [hardware] issue with the receivers. This seems to be an issue with rc-switch just not coping with all the background noise after a few minutes and slowly dying. At least this is my best guess.
So, I decided to try Radiohead. Few other souls on the interwebs mentioned Radiohead was much better at handling background noise and was kinda the de-facto standard for this stuff now.
Problem with radiohead is: almost no documentation regarding MY application. 22 24 69
What the heck is an rf22, rf24 or rf69? Wireless transmission protocols I assume? How do I determine which I should be using? I tried a couple randomly - to no avail. Under the the rc-switch library, I know these sensors were sending "24 bit, protocol 1" datagrams. Not sure how that fits into the Radiohead library. There are many examples, but virtually NO documentation.
What pins do I use on the Arduino?
What protocol/example should I be using to just "see" some of the sensor data?