Page 1 of 1

Some tips to develop a hardware plugin (visonic receiver)

Posted: Sunday 22 November 2015 22:13
by Holland
Hi,

Just wondering if someone could give me a few hints to start to develop a hardware plugin. I know it's to much work to explain the whole procedure, but I could at least start to try to understand an already existing hardware plugin that's able to read ASCII output of a device. Which plugin is good example to start with, is that maybe the P1Meter plugin? Which cpp file is the correct file to read, maybe P1MeterBase.cpp? Any other tips that are helpful to get me started?

The hardware I'm trying to develop for is a Alphatronic Visonic Wireless Interface (868,95 Mhz), it can receive signals from a Visonic alarm sensors. The device is connected to a raspberry via a serial to USB PL2303 interface. The output of the device is pretty simple, as is visible below, just plain vanilla ASCII output each time a response is received from one the sensors. In addition, the format is always the same.

Each response from a sensor can be transcoded as follows:
- P is message from a powercode sensor, K is from a keyfob
- the 8 numbers is an unique identifier for each sensor
- then bit 7 and 6 are never used (always a dot)
- bit 5, s, supervision messages
- bit 4, r, restore, e.g when a door sensor is put back on normal state (door closes)
- bit 3, low battery, when a B is displayed the battery power it to low
- bit 2, supervision, T a supervision timer
- bit 1, Alarm, when A a sensor is activated, PIR or door sensor
- bit 0, Sabotage, when S a sensor is opened
- @123, signal strength (a value between 20 and 130, 30 is weak but acceptable, 90 and above is a strong signal.

Output from my raspberry below....

pi@raspberrypi /dev $ screen ttyUSB0
#P14933113:..s.T...@060
#P14933113:..s.T...@061
#P10100117:..sR....@058
#P10100117:..sR....@058
#P13865205:..s.T...@106
#P13865205:..s.T...@106
#P08776324:..sRT...@013
#P08776324:..sRT...@014
#P08776404:..sRT...@059
#P08776404:..sRT...@058
#P13850765:..s.T...@016
#P13850765:..s.T...@016
#P13865290:..s.T...@103
#P13865290:..s.T...@103
#P14933170:..s.T...@028
#P14933158:..s..B..@029
#P14933158:..s..B..@030
#P14933166:..s.T...@035
#P14933153:..s.T...@037
#P07553292:..s.T...@080
#P07553292:..s.T...@080
#P07738788:..sRT...@064
#P07738788:..sRT...@063

Re: Some tips to develop a hardware plugin (visonic receiver

Posted: Sunday 22 November 2015 23:44
by Dnpwwo
I followed this guide: http://www.domoticz.com/wiki/Developing ... are_plugin

It seemed to cover off all the fundamentals. Good luck.

Re: Some tips to develop a hardware plugin (visonic receiver

Posted: Wednesday 02 December 2015 11:11
by MichelHardonk
Hi Holland,

I have basically the same setup which I want to use (Alphatronic Visonic Wireless Interface (868,95 Mhz)) on my Raspberry PI with Domoticz software, however I am not at all skilled in programming (I am an electronics engineer).
So I am very interested in your development of the hardware plugin. Did you make any progress with it?

Michel

Re: Some tips to develop a hardware plugin (visonic receiver)

Posted: Wednesday 03 February 2016 17:52
by djgodlike
Hi Holland,

Thats a good idea! Did you make it work?
Keep up the good work!

Re: Some tips to develop a hardware plugin (visonic receiver)

Posted: Wednesday 03 February 2016 18:06
by b_weijenberg
The RFXtrx868X supports also Visonic PowerCode sensors and is supported by Domoticz already.
A limited number of RFXtrx868X prototypes can be produced if enough users are interested.
Contact rfxcom.

Re: Some tips to develop a hardware plugin (visonic receiver)

Posted: Thursday 18 February 2016 8:58
by tiele004
I'm really curious if you got some results already. I also have the Powercode receiver and wouldn't like to buy aditional hardware. Could you please give us an update?

Re: Some tips to develop a hardware plugin (visonic receiver)

Posted: Thursday 18 February 2016 22:58
by Holland
Currently using the RFXtrx868X and it works reliable with Visonic. I would advice to let go the Alphatronic powercode receiver (assuming that you have that one), I don't think it will be integrated into domoticz