Powerlink serial pinout, linux daemon and web interface
Moderators: Rene, Willem4ever
Re: Powerlink serial pinout, linux daemon and web interface
Hello world...
I have a PowerMax Pro and a raspberry 2 with jeedom.
Please confirm if pmaxd is compatible with jeedom ?
Thank you.
I have a PowerMax Pro and a raspberry 2 with jeedom.
Please confirm if pmaxd is compatible with jeedom ?
Thank you.
Re: Powerlink serial pinout, linux daemon and web interface
Hi,
I have a PowerMax Pro with USB 2303 and Raspberry Pi 2.
I test pmaxd, but many error and i not understand...
Please help me...
Thank you...
I have a PowerMax Pro with USB 2303 and Raspberry Pi 2.
I test pmaxd, but many error and i not understand...
Please help me...
Thank you...
Code: Select all
# authenticator
usercode=0xXXXX;
device = ["/dev/ttyUSB0"]; // Use more than 2
zonename = ["R.D.C.", "Etage", "Salon", "Salle a manger", "cuisine", "porte garage", "volet garage", "detecteur incendie", "Zone9", "Zone10"]; // Use more than 2
restartscript = "/etc/restart.sh";
packet_timeout = 5000;
Code: Select all
pi@raspberrypi ~ $ sudo pmaxd -fvvvvv
NOTICE: [Fri Aug 21 23:31:58 2015 initLog:0058]Logging initialized
NOTICE: [Fri Aug 21 23:31:58 2015 initLog:0059]Verbose level: 5
NOTICE: [Fri Aug 21 23:31:58 2015 main:0412]Program started by User 0
NOTICE: [Fri Aug 21 23:31:58 2015 main:0446]Starting......
I have 10 zone:
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 0, name: R.D.C.
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 1, name: Etage
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 2, name: Salon
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 3, name: Salle a manger
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 4, name: cuisine
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 5, name: porte garage
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 6, name: volet garage
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 7, name: detecteur incendie
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 8, name: Zone9
NOTICE: [Fri Aug 21 23:31:58 2015 PmaxInit:0162]zone: 9, name: Zone10
ERR: [Fri Aug 21 23:31:58 2015 deFormatBuffer:0200]checksum NOK calculated:00FE in packet:0000
ERR: [Fri Aug 21 23:31:58 2015 packetManager:0356]Packet not correctly formated
ERR: [Fri Aug 21 23:31:58 2015 logBuffer:0155]Buffer: 01 00
ERR: [Fri Aug 21 23:31:58 2015 deFormatBuffer:0200]checksum NOK calculated:00FE in packet:0000
ERR: [Fri Aug 21 23:31:58 2015 packetManager:0356]Packet not correctly formated
ERR: [Fri Aug 21 23:31:58 2015 logBuffer:0155]Buffer: 01 00
ERR: [Fri Aug 21 23:31:58 2015 deFormatBuffer:0200]checksum NOK calculated:00FE in packet:0000
ERR: [Fri Aug 21 23:31:58 2015 packetManager:0356]Packet not correctly formated
ERR: [Fri Aug 21 23:31:58 2015 logBuffer:0155]Buffer: 01 00
Re: Powerlink serial pinout, linux daemon and web interface
Hello coco2083,
Are us still unable to connect to RPi from pmaxd? I got it running a few weeks back so let me know if u still have problem.
As for the errors u see I got them as well when connecting. Not sure how u connected your HW but I use a serial to USB cable and it works great.
=== Start by doing (if u still have problem) ===
pi@raspberrypi ~/powermax/code $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port ==> This is your connecting between RPi and PowerMax
pi@raspberrypi ~/powermax/code $
=== Next ===
pi@raspberrypi ~/powermax/code $ stty -F /dev/ttyUSB0 -a ==> Or ttyUSB1 maybe
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts ==> !!!!! Here is must say cs8 and nothing else
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon iexten -echo -echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
pi@raspberrypi ~/powermax/code $
Anyhow, let me know if you still have problem.
Regards
Rikard
Are us still unable to connect to RPi from pmaxd? I got it running a few weeks back so let me know if u still have problem.
As for the errors u see I got them as well when connecting. Not sure how u connected your HW but I use a serial to USB cable and it works great.
=== Start by doing (if u still have problem) ===
pi@raspberrypi ~/powermax/code $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port ==> This is your connecting between RPi and PowerMax
pi@raspberrypi ~/powermax/code $
=== Next ===
pi@raspberrypi ~/powermax/code $ stty -F /dev/ttyUSB0 -a ==> Or ttyUSB1 maybe
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts ==> !!!!! Here is must say cs8 and nothing else
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon iexten -echo -echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
pi@raspberrypi ~/powermax/code $
Anyhow, let me know if you still have problem.
Regards
Rikard
-
- Advanced Member
- Posts: 515
- Joined: Tue May 31, 2011 6:44 pm
- Contact:
Re: Powerlink serial pinout, linux daemon and web interface
Hi,
Is it possible to have an image for an rpi? I also would like to interface the visonic via rpi and control and monitor it via hs3 via the json interface.
Is it possible to have an image for an rpi? I also would like to interface the visonic via rpi and control and monitor it via hs3 via the json interface.
Software: HS3, HStouch, Plugwise , BLBackup, BLLatestImage, Zwave, JowiHUE, PHlocation, Netcam, Harmony Plugin, ThinkingCleaner, HSPhone, Eneco Toon Script, Pushover, Visonic Powermax LV Interface
(ON ESXI )on NUC
(ON ESXI )on NUC
Re: Powerlink serial pinout, linux daemon and web interface
Not completely sure if I understand your question. But given that I would like to interface my Pi to the Visonic, I will give it a try. I have already installed the VisonicDriver and I can read out the Visonic panel, so on the hardware side everything is fine.
If you mean just a regular image for a Rasp Pi, I would recommend the following; https://sourceforge.net/projects/domoti ... z/download
It has everything to get you going and start testing on a Pi.
If you mean the Linux Powermax source, in this thread; have a look over here; https://github.com/viknet365/pmaxd
If you mean just a regular image for a Rasp Pi, I would recommend the following; https://sourceforge.net/projects/domoti ... z/download
It has everything to get you going and start testing on a Pi.
If you mean the Linux Powermax source, in this thread; have a look over here; https://github.com/viknet365/pmaxd
Re: Powerlink serial pinout, linux daemon and web interface
For anyone who want to get this running on a Raspberry Pi, have a look over here;
domoticz.com/forum/viewtopic.php?f=38&a ... mp;t=11134
domoticz.com/forum/viewtopic.php?f=38&a ... mp;t=11134
-
- Starting Member
- Posts: 40
- Joined: Wed May 28, 2014 5:05 pm
Re: Powerlink serial pinout, linux daemon and web interface
If you want you can get my app designed to work with viknet linux daemond
https://play.google.com/store/apps/deta ... larmviknet
Good job viknet thanks for share it with us
Best regards
https://play.google.com/store/apps/deta ... larmviknet
Good job viknet thanks for share it with us
Best regards
Re: Powerlink serial pinout, linux daemon and web interface
Hi, I have a powermax+ from 2005, the pin out is 6+6 for pc connection ( no plastic around to tell whats up/down and no text on ) and my cable only has 5+5. Anyone knows the output for my modell ? I cant find it...
I just received a visonic 232 kit from UK. Would love to make my alarm connect to my VERA controller.
Thanks for your good work !
I just received a visonic 232 kit from UK. Would love to make my alarm connect to my VERA controller.
Thanks for your good work !
Re: Powerlink serial pinout, linux daemon and web interface
coincidentally I'm running in the same challenge as reidar77...I also have a Powemax plus with 6+6 connector and was struggling this weekend to find out the pin layout but didn't succeed except frying my usb device
who can help us out?
thanks!
who can help us out?
thanks!
-
- Starting Member
- Posts: 40
- Joined: Wed May 28, 2014 5:05 pm
Re: Powerlink serial pinout, linux daemon and web interface
Hi to all
In order to use pmaxd with domoticz I have added more calls to scripting commands on pmaxd
Now you can execute a script when PIR is raised, when door sensor is open / close, system is armed/disarmed/alarm....))
For examample.... I'm using the followed script when a door is opend
Config pmaxd.con must be set at /etc/pmaxd/
The name of scripts event must be:
root@OpenWrt:~# ls -lah /etc/pmaxd
drwxr-xr-x 2 root root 1.0K Aug 31 10:00 .
drwxr-xr-x 1 root root 2.0K Sep 1 00:03 ..
-rwxr-xr-x 1 root root 253 Jun 18 00:48 alarm
-rwxrwxr-x 1 root root 175 Jun 18 00:48 armedAway
-rwxrwxr-x 1 root root 190 Jun 18 00:49 armedHome
-rwxrwxr-x 1 root root 188 Jun 18 00:49 disarmed
-rw-r--r-- 1 root root 260 Jun 16 13:06 pmaxd.conf
-rwxrwxr-x 1 root root 194 Aug 31 02:35 zoneActive
-rwxrwxr-x 1 root root 231 Jun 18 00:45 zoneBatt
-rwxrwxr-x 1 root root 472 Aug 31 17:00 zoneClose
-rwxrwxr-x 1 root root 1.4K Aug 31 17:50 zoneEvent
-rwxrwxr-x 1 root root 469 Aug 31 17:00 zoneOpen
The binary compiled with these modifications:
https://www.dropbox.com/s/k9wqsgvl7uhwm1a/pmaxd?dl=0
Reneame your /bin/pmaxd to /bin/pmaxd_stable
put my pmaxd into yout /bin/ forlder....
Remember create /etc/pmaxd/ folder and put a copy of your /etc/pmaxd.conf in the new folder
In order to activate scripts your pmaxd.conf need have a line "execute_scripts=1;". Here is my conf file as example:
Regards!
In order to use pmaxd with domoticz I have added more calls to scripting commands on pmaxd
Now you can execute a script when PIR is raised, when door sensor is open / close, system is armed/disarmed/alarm....))
For examample.... I'm using the followed script when a door is opend
Code: Select all
#!/bin/sh
NOW=$(date +"%d/%m/%Y %H:%M")
if [ $1 = "4" ]; then #Puerta
EMAIL="To: xxxxx@gmail.com
Subject: ALARMA - Zona Puerta abierta $NOW
Zona Puerta abierta
$NOW
"
echo "$EMAIL" | sendmail -t
wget -qO- "http://192.168.3.241/json.htm?type=command¶m=switchlight&idx=28&switchcmd=On" &> /dev/null
fi
The name of scripts event must be:
root@OpenWrt:~# ls -lah /etc/pmaxd
drwxr-xr-x 2 root root 1.0K Aug 31 10:00 .
drwxr-xr-x 1 root root 2.0K Sep 1 00:03 ..
-rwxr-xr-x 1 root root 253 Jun 18 00:48 alarm
-rwxrwxr-x 1 root root 175 Jun 18 00:48 armedAway
-rwxrwxr-x 1 root root 190 Jun 18 00:49 armedHome
-rwxrwxr-x 1 root root 188 Jun 18 00:49 disarmed
-rw-r--r-- 1 root root 260 Jun 16 13:06 pmaxd.conf
-rwxrwxr-x 1 root root 194 Aug 31 02:35 zoneActive
-rwxrwxr-x 1 root root 231 Jun 18 00:45 zoneBatt
-rwxrwxr-x 1 root root 472 Aug 31 17:00 zoneClose
-rwxrwxr-x 1 root root 1.4K Aug 31 17:50 zoneEvent
-rwxrwxr-x 1 root root 469 Aug 31 17:00 zoneOpen
The binary compiled with these modifications:
https://www.dropbox.com/s/k9wqsgvl7uhwm1a/pmaxd?dl=0
Reneame your /bin/pmaxd to /bin/pmaxd_stable
put my pmaxd into yout /bin/ forlder....
Remember create /etc/pmaxd/ folder and put a copy of your /etc/pmaxd.conf in the new folder
In order to activate scripts your pmaxd.conf need have a line "execute_scripts=1;". Here is my conf file as example:
Code: Select all
# authenticator
usercode=0x2256;
device = ["/dev/ttyATH0"]; // Use more than 2
zonename = ["Entrada", "Salon", "Dormitorios", "Puerta","Garaje"]; // Use more than 2
restartscript = "/etc/restart.sh";
packet_timeout = 1000;
execute_scripts=1;
event_log_file=1;
Regards!
Re: Powerlink serial pinout, linux daemon and web interface
Thanks for the nice work ayasystems!
I have been attempting to get this working on my system but running into Seg Faults and always seems to be after "Command Fine":
DEBUG: [Sun Sep 11 12:18:13 2016 findCommand:0229]Command find !!!!
Segmentation fault
Do you happen to know why this might be happening?
Thanks!
I have been attempting to get this working on my system but running into Seg Faults and always seems to be after "Command Fine":
DEBUG: [Sun Sep 11 12:18:13 2016 findCommand:0229]Command find !!!!
Segmentation fault
Do you happen to know why this might be happening?
Thanks!
Re: Powerlink serial pinout, linux daemon and web interface
It looks like I was able to get past the Seg Fault issue. It could have been something within the executed script that was causing this.
I'm now having another issue with disarming, seems that it does not execute the /etc/pmaxd/disarmed script at all. No errors at all either, just does not execute it. I see the others in the debug: "ExecuteScript:0182]Script /etc/pmaxd/armedHome & executed" but never see anything for "disarmed"
Any ideas on this?
Thanks!
I'm now having another issue with disarming, seems that it does not execute the /etc/pmaxd/disarmed script at all. No errors at all either, just does not execute it. I see the others in the debug: "ExecuteScript:0182]Script /etc/pmaxd/armedHome & executed" but never see anything for "disarmed"
Any ideas on this?
Thanks!
Re: Powerlink serial pinout, linux daemon and web interface
Sorry for all of the posting here, been trying some new things to get this working good.
I was seeing Checksum NOK errors while hooked up to the USB -> TTL and tried all sorts of different timeout settings with none being able to fix the checksum issue. Then decided to remove the USB -> TTL and directly connect the pmax serial connector to the TP_IN and TP_OUT pads on the wr703n board. That fixed the Checksum errors, now getting an OK on that. However, I'm now having the same issues that maximillian was having a little earlier in the thread. I can send commands to the panel (a - arm, d - disarm, g - log) just fine but the wr703n can NOT read from the panel, exactly what maximillian expressed. I traced the wiring and it does look properly hooked up.
Has anyone else done a direct connect like this to the wr703n and have it working correctly? Am I missing something?
I was seeing Checksum NOK errors while hooked up to the USB -> TTL and tried all sorts of different timeout settings with none being able to fix the checksum issue. Then decided to remove the USB -> TTL and directly connect the pmax serial connector to the TP_IN and TP_OUT pads on the wr703n board. That fixed the Checksum errors, now getting an OK on that. However, I'm now having the same issues that maximillian was having a little earlier in the thread. I can send commands to the panel (a - arm, d - disarm, g - log) just fine but the wr703n can NOT read from the panel, exactly what maximillian expressed. I traced the wiring and it does look properly hooked up.
Has anyone else done a direct connect like this to the wr703n and have it working correctly? Am I missing something?
Re: Powerlink serial pinout, linux daemon and web interface
Sure: see this thread: http://www.domoticaforum.eu/viewtopic.php?f=68&t=11254povlhp wrote:Did anybody try to connect the $2-$3 ESP8266 WiFi<-> 3.3V serial module directly to the PowerMax, to network enable it ? Then use a remote PC / AP to render the we interface, and talk to the PowerMax Pro through WiFi -> the ESP8266
Shuldn't this be easy and doable ? Just need the FTDI to program the ESP8266 to connect to home network.
Cheers,
Irek
-
- Starting Member
- Posts: 40
- Joined: Wed May 28, 2014 5:05 pm
Re: Powerlink serial pinout, linux daemon and web interface
Yes... here for you!!manno wrote:Thanks for the nice work ayasystems!
I have been attempting to get this working on my system but running into Seg Faults and always seems to be after "Command Fine":
DEBUG: [Sun Sep 11 12:18:13 2016 findCommand:0229]Command find !!!!
Segmentation fault
Do you happen to know why this might be happening?
Thanks!
https://github.com/ayasystems/pmaxd
Regards