Page 1 of 1

Control Powermax via RaspberryPi

Posted: Sat Apr 20, 2013 3:33 pm
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.

Re: Control Powermax via RaspberryPi

Posted: Fri Apr 26, 2013 10:08 am
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.

Re: Control Powermax via RaspberryPi

Posted: Fri Apr 26, 2013 10:18 pm
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

Re: Control Powermax via RaspberryPi

Posted: Wed Aug 14, 2013 10:03 am
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

Re: Control Powermax via RaspberryPi

Posted: Wed May 28, 2014 5:10 pm
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

Re: Control Powermax via RaspberryPi

Posted: Wed May 28, 2014 7:01 pm
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?

Re: Control Powermax via RaspberryPi

Posted: Wed May 28, 2014 9:48 pm
by ayasystems
My English level isn't very good....

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

Regards

Re: Control Powermax via RaspberryPi

Posted: Thu May 29, 2014 1:47 am
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.

Re: Control Powermax via RaspberryPi

Posted: Tue Feb 10, 2015 2:04 pm
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 ?

Re: Control Powermax via RaspberryPi

Posted: Wed Feb 11, 2015 9:26 am
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).

Re: Control Powermax via RaspberryPi

Posted: Wed Dec 09, 2015 3:16 pm
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