Control Powermax via RaspberryPi

Forum about Visonic products like Powermax Plus and Powermax Pro

Moderators: Rene, Willem4ever

Post Reply
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

Control Powermax via RaspberryPi

Post by gb1980 »

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.
rolk
Starting Member
Starting Member
Posts: 5
Joined: Mon Apr 01, 2013 8:48 pm

Re: Control Powermax via RaspberryPi

Post by rolk »

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:

http://www.domoticaforum.eu/viewtopic.p ... =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.
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

Re: Control Powermax via RaspberryPi

Post by gb1980 »

I've got a Powermax Pro.
My connections look exactly like those on the pictures on:
domoticaforum.eu/viewtopic.php?f=68& ... 152#p53758
pochorro
Starting Member
Starting Member
Posts: 1
Joined: Tue Aug 13, 2013 5:18 pm

Re: Control Powermax via RaspberryPi

Post by pochorro »

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
ayasystems
Starting Member
Starting Member
Posts: 40
Joined: Wed May 28, 2014 5:05 pm

Re: Control Powermax via RaspberryPi

Post by ayasystems »

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
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

Re: Control Powermax via RaspberryPi

Post by gb1980 »

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?
ayasystems
Starting Member
Starting Member
Posts: 40
Joined: Wed May 28, 2014 5:05 pm

Re: Control Powermax via RaspberryPi

Post by ayasystems »

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

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

Regards
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

Re: Control Powermax via RaspberryPi

Post by gb1980 »

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.
kingofnuls
Starting Member
Starting Member
Posts: 4
Joined: Mon Dec 08, 2014 10:50 am

Re: Control Powermax via RaspberryPi

Post by kingofnuls »

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 ?
uAlex73
Member
Member
Posts: 218
Joined: Sun Jan 01, 2012 3:42 pm
Contact:

Re: Control Powermax via RaspberryPi

Post by uAlex73 »

@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 / Home Assistant / Zigbee2MQTT / DSMR Reader / Toon1 (rooted)
kingofnuls
Starting Member
Starting Member
Posts: 4
Joined: Mon Dec 08, 2014 10:50 am

Re: Control Powermax via RaspberryPi

Post by kingofnuls »

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
Post Reply

Return to “Visonic Alarm systems”