Here's an update for anyone who's interested:
- I got my USB wifi adapter(Cirago BTA7300) from the internet so that my Rpi has networking connectivity where the D16X panel is located(buys me time until I cable it up with CAT6).
- Still waiting on delivery of my Rpi compatible RS232 USB adapter so I can work with live data.
- I've jumped head first into PHP and have got it to read the table on the SQL DB and split up the bytes according to their meaning.
- For those who have seen the manual which outlines the ASCII data the panel spits out (there was a post from ady at the beginning of this thread which has an example) you will know that meaning of the DATA message is based on combination of values in a table as they match up with a bunch of decimal and hex values that the panel outputs.
- I've initially approached the task of interpreting the DATA message with a whole lot of nested if and else statements, so that at the end of it I'll be able to display them in plain english on a page.
- I'd also like to ultimately maintain a state table of the panel so that I can log in and see exactly what state things are in such as zones etc.. but that's probably phase 2 or more.
- Also once I get the interpretation of events from the DATA message all sorted out, I'll be able to pick which ones get sent via email or Google push(we're an android phone household, so while that may be phase 3 or so, if it's possible it has good potential)
This coding stuff is strangely addictive....
Bookmarks