Page 7 of 10

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 10:41 am
by Digit
I use

Code: Select all

240000xxxx000000000000
(add checksum etc. yourself)
xxxx is the pincode.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 10:49 am
by Willem4ever
Odin we found that the behaviour of the PM depends on the way you acknowledge the initial transmission. For now you should NOT register the powerlink but simply process the output it generates, when the output has stopped you can restart it using the 0xAB message. I noticed something similair in my setup (missing messages after registering my software as a powerlink) After starting/stopping the remote programmer the behaviour was back to 'normal' i.e. outputting all the messages as we see in the description.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:05 am
by Bwired
nice to see all the differences :)
I also use 0D AB 0A 00 01 00 00 00 00 00 00 00 43 06 0A to make it work
and this works good for me, no need for pincode.
Concur with Willem, I first disconnect mains and battery from visonic
then reboot
then send 0D AB 0A 00 01 00 00 00 00 00 00 00 43 06 0A

The login with pin is also possible, works with me too, but i think slightly different

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:11 am
by Willem4ever
Digit wrote:I use

Code: Select all

240000xxxx000000000000
I believe this is only necessary when you want to enter the programming mode, which shouldn't be necessary to receive message from the PM.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:12 am
by Odin
OK guys thanks for feedback - I will have a play and maybe reset as Bwired suggests. I also think maybe there are a few differences between the panels (I have a Complete panel).

Will report back.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:14 am
by Odin
Also, when my Perl program ends, I send a logoff msg as follows - is this what you guys do?

$pm_logoff=pack('H*',"0D0FF00A");

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:19 am
by Willem4ever
No logging on or off, just restarting communications with 0xAB messages. In fact the program is running 24x7 for two weeks now ....

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:20 am
by Digit
PS
To make sure everybody understands what I meant in my previous post: I was only showing how I log in - nothing else... cause that was the question.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:28 am
by Willem4ever
Digit wrote: To make sure everybody understands what I meant in my previous post: I was only showing how I log in - nothing else... cause that was the question.
Ahh i see, trying to emulate women behaviour by doing several things at the same time - and it isn't workin :lol:

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:32 am
by Digit
Right :) All other conclusions from my post were your own :D

@odin: 0x0F is indeed the way to logoff. But as you know by now, you don't have to do that. There are some commands that only work while logged in, but I can't remember them right now.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:37 am
by Willem4ever
e.g. commands which require a pincode seems to work without a pincpode when logged on.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:43 am
by Digit
No, more like this: Commands that do not have a pincode themselves don't work when not logged in, but do after logging in.
But I'll have to reread some chat logs to find out what it was exactly.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:47 am
by Odin
OK I tried the 'programming' way using the Visonic client, logged off and then tried again. Still no A7 msgs. so am currently resetting the unit (no AC Power and battery disconnected).

Just to be sure, when I open the Serial port connection from my client, I don't have to send any msgs to the PM - I should just wait for first msg back from PM to PC and then acknowledge the msg with 0D02FD0A ?

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 11:56 am
by Willem4ever
Odin, we are reverse engineering so your mileage may vary.

What I do when my little program starts is that I Send 0xAB, 0x0A, 0x00, 0x01, 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x43 to (re) start the output from the visonic. Received messages (when valid) are acknowledged by 0x2,0x43. I never send an 0xAB as an acknowledge since this changes the behaviour of the PM (we need some work on that). Registering PL emulator with PM seems not necessary for our purpose - as we know right now -

Not sure what digit and bwired are doing, but this is what I do.

Re: Visonic Powerlink RS232 Hack

Posted: Thu Aug 25, 2011 12:08 pm
by Digit
I also send AB 0A 00 01 00 00 00 00 00 00 00 43 when I (re)connect.