Control Powermax via RaspberryPi

Forum about Visonic products like Powermax Plus and Powermax Pro

Moderators: Rene, Willem4ever

Control Powermax via RaspberryPi

Postby gb1980 » Sat Apr 20, 2013 2:33 pm

Hi,
I would like to control my Powermax via the RaspberryPi, with a web gui.
Eventually I want to control the Powermax via an android app.
I found some hardware in my box and tried to connect my Pi via an USB-serial converter to the Powermax connector.
my usb-serial device has an old prolific chip which is not supported under windows8.
So I can't try the software package that comes with the Powermax to program the alarm system.
Now I'm stuck in receiving and sending the right data from the Pi to the Powermax.

I hope someone can help me to get this connection up&running

------------------------------
Some other data so far
------------------------------

The serial adapter is connected as follow:
PI - Powermax
GND - GND
RX - TX
TX - RX

Powermax pin's found @ domoticaforum.eu/viewtopic.php?f=68& ... 152#p53758
------------------------------------
|?0V GND TX RX 3.75V |
|?0V ?3V ?0V GND 3.75V |
------------------------------------


USB-Serial converter: PL2303HX USB to TTL RS232 Auto Converter Module Adapter. Chip: PL-2303HX LF10193A
dx.com/p/pl2303hx-usb-to-ttl-rs232-auto ... ack-146784

The Pi finds the USB device:
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.760920] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.862620] usb 1-1.3: New USB device found, idVendor=067b, idProduct=2303
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.862653] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.862672] usb 1-1.3: Product: USB-Serial Controller
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.862685] usb 1-1.3: Manufacturer: Prolific Technology Inc.
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.989181] usbcore: registered new interface driver usbserial
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.992840] USB Serial support registered for generic
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.995070] usbcore: registered new interface driver usbserial_generic
    Apr 20 11:12:42 raspberrypi kernel: [ 3966.995102] usbserial: USB Serial Driver core
    Apr 20 11:12:42 raspberrypi kernel: [ 3967.005964] USB Serial support registered for pl2303
    Apr 20 11:12:42 raspberrypi kernel: [ 3967.006122] pl2303 1-1.3:1.0: pl2303 converter detected
    Apr 20 11:12:42 raspberrypi kernel: [ 3967.010529] usb 1-1.3: pl2303 converter now attached to ttyUSB0
    Apr 20 11:12:42 raspberrypi kernel: [ 3967.014289] usbcore: registered new interface driver pl2303
    Apr 20 11:12:42 raspberrypi kernel: [ 3967.014319] pl2303: Prolific PL2303 USB to serial adaptor driver

lsusb
    Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

I can connect to the serial adapter via:
# screen /dev/ttyUSB0 9600

When I connect the tx and rx on the serial adapter together I get my own echo/reply's when I'm pressing some keys.
gb1980
Member
Member
 
Posts: 52
Joined: December 2007
Location: Netherlands

Re: Control Powermax via RaspberryPi

Postby rolk » Fri Apr 26, 2013 9:08 am

Hi,

The type of Powermax you are trying to connect to is not clear from your post. Just so you know, a Powermax+ has a different pinout for the serial connector. If you do have a Powermax+, have a look at:

viewtopic.php?f=68&t=6581&start=45#p63022

It describes in some detail the serial connector for the Powermax+. I've used an FTDI USB-to-RS232 converter that works really well. I also tried a Prolific based cable, but never got that to work, I got no response whatsoever from the Powermax+ using that cable.
rolk
Starting Member
Starting Member
 
Posts: 5
Joined: April 2013

Re: Control Powermax via RaspberryPi

Postby gb1980 » Fri Apr 26, 2013 9:18 pm

I've got a Powermax Pro.
My connections look exactly like those on the pictures on:
domoticaforum.eu/viewtopic.php?f=68& ... 152#p53758
gb1980
Member
Member
 
Posts: 52
Joined: December 2007
Location: Netherlands

Re: Control Powermax via RaspberryPi

Postby pochorro » Wed Aug 14, 2013 9:03 am

hello everybody!

I want to connect my Powermax Pro with Raspberry Pi, but using the GPIO pins. I would use 6 GND, 8TX, 10 RX.

http://www.hobbytronics.co.uk/image/dat ... pinout.jpg



I know nothing about electronics. I have read that it is necessary that the voltage is 3.3v and it seems the PC port / IP and raspberry Powermax work to 3.3 v

Can it be done directly without any converter?
thanks
pochorro
Starting Member
Starting Member
 
Posts: 1
Joined: August 2013

Re: Control Powermax via RaspberryPi

Postby ayasystems » Wed May 28, 2014 4:10 pm

No. You dont need use a serial USB adapter. Raspberry and powermax use the same TTL voltage (3.3v) so you can connect both directly.

I'm looking for the same.

Best regards
ayasystems
Starting Member
Starting Member
 
Posts: 39
Joined: May 2014

Re: Control Powermax via RaspberryPi

Postby gb1980 » Wed May 28, 2014 6:01 pm

I haven't put any energy in the project as I was stuck on receiving any serial data from the powermax.
Maybe I have to powerdown the main powermax controller, just cut the AC and battery's so it get's a hard-reset.

I still have all the hardware, but I'm unsure if I have to run the windows programming software to "unlock" the serial-port.
Anyone knows the procedure to get the serial up&running?
gb1980
Member
Member
 
Posts: 52
Joined: December 2007
Location: Netherlands

Re: Control Powermax via RaspberryPi

Postby ayasystems » Wed May 28, 2014 8:48 pm

My English level isn't very good....

How are you connect both? With gpio rx tx or USB ttl adapter?

Regards
ayasystems
Starting Member
Starting Member
 
Posts: 39
Joined: May 2014

Re: Control Powermax via RaspberryPi

Postby gb1980 » Thu May 29, 2014 12:47 am

I've used a USB ttl adapter. But it doesn't matter which client, right?
I just need to know which codes to send to the controller.
gb1980
Member
Member
 
Posts: 52
Joined: December 2007
Location: Netherlands

Re: Control Powermax via RaspberryPi

Postby kingofnuls » Tue Feb 10, 2015 1:04 pm

Hi,

I want to do the same : connect my RPi to my powermaster30 in order to manage my alarm and got sensors informations. It works with vera (cf micasaverde forums) but no information about Rpi but this topic. Vicknet talk about a checksum to initiate the connection with openwrt but i haven't seen any how to :?

Has anybody got success with Rpi ?
kingofnuls
Starting Member
Starting Member
 
Posts: 4
Joined: December 2014

Re: Control Powermax via RaspberryPi

Postby uAlex73 » Wed Feb 11, 2015 8:26 am

@kingofnuls:

The PowerMaster30 isn't 100% compatible with the PowerMax protocol. The magnet contacts will work fine, BUT you can't get easily the PIR (motion sensor) information from the PowerMaster. I am still analysing protocol information, and I think i got an idea how to "guess" which PIR is detecting movement. It won't be a 100% solution, but it seems to work 97% (or more) in my case.
I think will have this worked out in a few weeks, but then you need to implement it in the application yourself to be able to use it on the Pi (i will only document the behaviour and implement it in DomotiGa).
DomotiGa / Z-Wave / RFXCom / Visonic PowerMaster
uAlex73
Member
Member
 
Posts: 212
Joined: January 2012

Re: Control Powermax via RaspberryPi

Postby kingofnuls » Wed Dec 09, 2015 2:16 pm

Hi Alex,

Because of (thanks to) you, i've connected my french Powermaster30 to a Domotiga3 Rpi B. I'm learning to use Domotiga which is more difficult than domoticz (imho). But your work is fantastic and i can now send my magnetic contacts informations and my alarm status to my domoticz controller. Domotiga will also be in charge of SMS communication.

For your information, in order to have the connection up with my PM30, i had to put the right download code.

THanks again for your hard work.

PS: Have you in project to switch on and off the alarm panel ?

Best ragards,

KingOfNuls
kingofnuls
Starting Member
Starting Member
 
Posts: 4
Joined: December 2014


Return to Visonic Alarm systems

Who is online

Users browsing this forum: No registered users and 1 guest