Powerlink serial pinout, linux daemon and web interface

Forum about Visonic products like Powermax Plus and Powermax Pro

Moderators: Rene, Willem4ever

Post Reply
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Powerlink serial pinout, linux daemon and web interface

Post by viknet »

hello all,

I had trouble finding the pinout of the powermax pro (without buying any cable), so with the help of a multimeter and a usb to 3.3V serial TTL adapter (such as this one cgi.ebay.fr/2pcs-USB-2-0-to-TTL-UART-6P ... 3a6f4cc144 but others from arduino/spakfun/adafruit will work) I found these information

I can confirm the pinout because I manage to link a PC using http://realterm.sourceforge.net/ and such a cable I manually calculated a checksum and manage to do the enrolement process.

for the posterity, please find attached two picture of the serial port, with your protocol the serial pinout and a small router such as this one TP-Link TL-WR703N
http://wiki.openwrt.org/toh/tp-link/tl-wr703n you can easily recreate yourself a free (not as in beer) powerlink.

Best regards

Viknet

P.S.
By the way hello to all of domoticaforum user and a big thanks to Rene for describing the protocol

P.S 2
for those too lazy for registering to view the pictures, the port is a 10pin header labeled PC /IP the pinout is described below :

Code: Select all

_______________________________
|?0V   GND  TX   RX     3.75V |
|?0V   ?3V    ?0V  GND  3.75V |
-------------------------------
             PC / IP
Attachments
overview of the powermax pro panel
overview of the powermax pro panel
IMG_2582.JPG (65.33 KiB) Viewed 56589 times
pinout of the 3.3V powermax to powerlink link
pinout of the 3.3V powermax to powerlink link
IMG_2571.JPG (49.89 KiB) Viewed 56589 times
Last edited by viknet on Sun Jun 16, 2013 10:25 pm, edited 1 time in total.
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Powerlink serial pinout and daemon for linux openwrt

Post by viknet »

hello,

I wanted to give some information about where I am now, I bought a powerlink2 and found it to be incompatible with my alarm :-(

I did some sniffing in case some of you want
powermax -> powerlink2 (enrolement)
0D AB 0A 00 01 00 00 00 00 00 00 00 43 06 0A

powerlink2 reply -> powermax
0D 24 00 00 F9 62 00 00 00 00 00 00 80 0A

nothing is working..............................................
so if you want a powerlink2 I sale one.

so I decided to go the opensource way and bought these for 30€
http://wiki.openwrt.org/toh/tp-link/tl-wr703n
http://cgi.ebay.fr/USB-to-Serial-Adapte ... 415d279d2b

install openwrt, and create a cable to plug the powermax and the wifi router (3.7V power from powermax is enough) is is small and fit inside a powermax (plus it's wifi)

Now I am writing a linux daemon to chat with the powermax in C (perl/php/python is too heavy for this router).

This is mainly done (the only things not yet designed is how to chat from the daemon to the open world, at this moment you have to press a key to send code)

So if people are interested in writing an opensource daemon for powermax, please feel free to mail me
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

Re: Powerlink serial pinout

Post by Rene »

I can confirm this works!!!

I tried it with an USBBUB.
Rene.
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

hello everybody,

I am back with some consistent work and some (less consistant work) ;-)

So I have build what I designed in my previoused post :-)

I have created a daemon in C handling all messages from the pmax and a web interface (designed with jquery and made for ios/android ) in C/cgi discussing with the daemon over xpl (xpl is an home automation protocol)

here are some picture were you will see the wifi router with an usb to serial interface and picture of the web interface

I will post the binary and sources (GPL if you ask) soon
Attachments
zoom on the router and cable
zoom on the router and cable
IMG_2973.JPG (70.65 KiB) Viewed 56521 times
overview of the pmax pro with the installed router
overview of the pmax pro with the installed router
IMG_2970.JPG (40.68 KiB) Viewed 56521 times
pmax daemon web interface
pmax daemon web interface
Capturepmx.jpg (61.85 KiB) Viewed 56521 times
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

Well I have installed Openwrt in my TP link.
Could you help us for going longer?
CybFox
Starting Member
Starting Member
Posts: 4
Joined: Mon Jul 09, 2012 12:54 pm

Re: Powerlink serial pinout

Post by CybFox »

Hi Viknet,

Nice information there ! I want to do something similar so I have a few questions:
- Do you only connect RX,TX and GND from the USB2Serial -> PowerMax PC/IP connector ?
- Is it possible to use the PowerMAX Remote Programmer software with the above connections ? Or does it only work with the real RS232 ports ?
- Is it possible to look at the deamon code you have written ?

Best regards,

Cybfox
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

Re: Powerlink serial pinout

Post by Rene »

I can only answer one of these questions. Yes it is possible to use the remote programmer with this connection.
Rene.
CybFox
Starting Member
Starting Member
Posts: 4
Joined: Mon Jul 09, 2012 12:54 pm

Re: Powerlink serial pinout

Post by CybFox »

Hi Rene,
Rene wrote:Yes it is possible to use the remote programmer with this connection.
Ok that's good News already !
I'd like to use an Arduino as a USB to serial converter to connect to the PowerMax, but to make sure I don't damage anything, could you tell us how you connected the USB BUB to the PowerMax ? (I mean which pin connected to which pin).
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

@CybFox
If you look at picture 1, you see that VIKNET uses PC/IP connector and not RS232 connector
I am using Viknet' material: TP link + USB/serial cable = 25€ and all is OK

I am working on binaries and sources codes
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

CybFox wrote:Hi Viknet,

Nice information there ! I want to do something similar so I have a few questions:
- Do you only connect RX,TX and GND from the USB2Serial -> PowerMax PC/IP connector ?
- Is it possible to use the PowerMAX Remote Programmer software with the above connections ? Or does it only work with the real RS232 ports ?
- Is it possible to look at the deamon code you have written ?

Best regards,

Cybfox

I have connected 3.75V, GND RX and TX, (3.75V is enough for powering the router), but if you prefer an external power supply (can be usefull for debugging if you suspect power issue even if I never had one) then only GND RX and TX need to be connected

I don't have the "PowerMAX Remote Programmer" but if it work serialy then it could work (rene seems to be sure about it) with the serial converter connected to your PC if you want to use the router setup then it's another thing (also probably doable)

yes I can publish the code (latter this evening probably) GPL if somebody ask
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

I cannot upload ipk file (if an admin can remove this limitation)
file are uploaded at:
http://dl.free.fr/pqVtEgIOi xpl library
http://dl.free.fr/gVS3VE2eA pmax daemon
http://dl.free.fr/i9Z7TjWoX xpl example and utility (optional)


src of the three: http://dl.free.fr/gJZy64Wnr


copy to your router in /tmp then install using opkg install something.ipk

the daemon is at /bin/pmaxd


you can run it without option (daemon mode) or with the -f option (foreground)
when run in foreground you can press key (a for arming away g for getlog c for quit d for disarm and h for arming home)
for some log and info run with the v option, more v mean more logs: pmad -fvvvvv is very nice
configuration file is at /etc/pmaxd.conf, you need to give your pin code your namezone and the name of the serial port (for an obscure bug on my openwrt where the serial port is jumping around, you can have more than one serial port)
you need lighttpd install and configured


there is no doc

there is no support (use at your own risk)

help is welcome :-)


if asked everything mine is GPL
Last edited by viknet on Thu Jul 26, 2012 10:17 pm, edited 1 time in total.
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

Yes you can publish code I take it whith pleasure
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Re: Powerlink serial pinout

Post by Bwired »

mail the samples to me directly and i upload them in the files directory and put a link in your post.
I think you have my mail...
CybFox
Starting Member
Starting Member
Posts: 4
Joined: Mon Jul 09, 2012 12:54 pm

Re: Powerlink serial pinout

Post by CybFox »

Thanks Viknet !
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

Thanks for all
Post Reply

Return to “Visonic Alarm systems”