Plugwise xPL-PERL support

Plugwise Forum about Plugwise devices and the Source software.
hollie
Starting Member
Starting Member
Posts: 17
Joined: Fri Aug 28, 2009 8:22 pm
Location: Belgium
Contact:

Re: Plugwise xPL-PERL support

Post by hollie »

Hey Daromer,

to be able to tell something useful I really need the debug output of the communication between the software and the Stick (this means all messages created and received by the stick just before the point where the communication fails).

As I stated before, I suspect that you can cause the interface code to hang by triggering a situation where the stick does not respond to a command/request. If the initial 'ACK' sequence is not generated by the stick then the software will hang. This is intentional, because if this happens I don't know the recommended way to handle this. Reason: we're lacking the docs of the communication protocol. Plugwise refuses to disclose this info (but happily refers users who want to control their circles from non-windows systems to this forum for help...)

Concerning your previous message: I suspect that your use of xpl-plugwise is causing something to happen to the Circle, not the mere fact that you are using xpl-plugwise to communicate to the Stick (as you suggest). I'm running xpl-plugwise since a few weeks before the release at home without problems.

I plan to add the power reading to my devices in the next days, so maybe I'll hit the same problem. We'll see :)
roheve
Starting Member
Starting Member
Posts: 49
Joined: Tue Apr 19, 2011 8:38 am
Contact:

Re: Plugwise xPL-PERL support

Post by roheve »

hollie wrote:As stated: xpl-plugwise stalls when it is waiting for a response from the Stick. I assume that the Stick responds to each frame in the same way: one 'ACK' with a frame counter, and one actual response.
I have seen communications like this:

Code: Select all

SEND	0023 000D6F0000B1B5B6
RECV	0000 0026 00C1 
RECV	0024 0026 000D6F0000B1B5B6 0B0B2462 00048D88 01 85 653907014023 4DCCDB7B 02
SEND	003E 000D6F0000B1B5B6
RECV	0000 0027 00C1 
RECV	003F 0027 000D6F0000B1B5B6 0B0E1C 01 01457A
SEND	0040 000D6F0000B1B5B6 00 01
RECV	0000 0028 00C1 
RECV	0000 0028 00E5 000D6F0000B1B5B6
SEND	0012 000D6F0000B1B5B6
RECV	0000 0029 00C1 
RECV	0013 0029 000D6F0000B1B5B6 0003 001A 00000848 0000 0000 000C
SEND	0023 000D6F0000AF65AA
RECV	0000 002A 00C1 
RECV	0024 002A 000D6F0000AF65AA 0B0B2462 00045728 01 85 653907014023 4DCCDB7B 02
SEND	003E 000D6F0000AF65AA
RECV	0000 002B 00C1 
RECV	003F 0027 000D6F0000B1B5B6 0B0E1E 01 01457A
RECV	003F 002B 000D6F0000AF65AA 0B0E1E 01 01457A
SEND	0040 000D6F0000AF65AA 00 01
RECV	0000 002C 00C1 
RECV	0000 002C 00E5 000D6F0000AF65AA
SEND	0012 000D6F0000AF65AA
RECV	0000 002D 00C1 
RECV	0013 002D 000D6F0000AF65AA 0000 0000 00000000 FFFF F080 0008
here an extra response is there for sequence 0027...

or 'mixed' results if the powerbuffer is read and at he same time actual powerusage. Seems like 'source' is running those two processes at the same time, like here:

Here look at sequnce numbers 0052/0053 and 0056/0057

Code: Select all

SEND	0048 000D6F0000AF4C47 00048C60
RECV	0000 0052 00C1 
SEND	0023 000D6F0000B1B64B
RECV	0049 0052 000D6F0000AF4C47 0B0B1B30 00000000 ... 0B0B1BE4 00000000 00048C60
RECV	0000 0053 00C1 
RECV	0024 0053 000D6F0000B1B64B 0B0B2462 00048D98 01 85 653907007324 4DCCDAF3 01
SEND	0048 000D6F0000AF6711 00048C60
RECV	0000 0054 00C1 
SEND	0012 000D6F0000B1B64B
RECV	0049 0054 000D6F0000AF6711 0B0B1B30 00011642 ... 0B0B1BE4 000101C4 00048C60
RECV	0000 0055 00C1 
RECV	0013 0055 000D6F0000B1B64B 001E 00F1 0000682B 0000 0000 0059
SEND	0023 000D6F0000B1B967
RECV	0000 0056 00C1 
SEND	0048 000D6F0000D3595D 00048C60	Buffer:2444
RECV	0024 0056 000D6F0000B1B967 0B0B2462 00048DA0 01 85 653907014023 4DCCDB7B 02
RECV	0000 0057 00C1 
RECV	0049 0057 000D6F0000D3595D 0B0B1B30 00001AC2 ... 0B0B1BE4 00001A8B 00048C60
note that in this case source is running on a 'dual/quad core/threat' like CPU (an N550 netbook), so might be running more threats, or running those processes in parallel in an other way.
daromer
Starting Member
Starting Member
Posts: 42
Joined: Sat Oct 24, 2009 2:41 pm
Location: Sweden

Re: Plugwise xPL-PERL support

Post by daromer »

Hi,

I havent had time to debug yet. It looks like the Circles actually come back online if I Just wait a bit. At the moment. i just restart xpl-plugwise when it happens.

Will post more info as soon as i got time to debug some.
Post Reply

Return to “Plugwise Forum”