Firmware version 2 Plugwise protocol and POL 2.0

Plugwise Forum about Plugwise devices and the Source software.

Firmware version 2 Plugwise protocol and POL 2.0

Postby Mdamen » Sun Jan 03, 2010 12:21 am

I have just had a look at the Plugwise protocol of firmware version 2 (special thanks to rene :-) )
Some things have drastically changed, such as power measuring (this is due to the bidirectional metering, I guess)

After a few hours of looking at the protocol again I managed to get the power information out (like POL 0.2 for version 1 of the firmware protocol)
I will be releasing a POL version 2.0 (2.0 branch for the 2.0 firmware)

This topic is used as inventory to get the priorities right for POL 2.0.
My current list (priority based):

1) Implement POL 0.2 functions in POL 2.0
2) Improve stability (more error handling)
3) Implement power buffer reading.

Any other suggestions/requests?

p.s: for obvious reasons POL 2.0 won't be released until firmware version 2 is publically released.
Last edited by Mdamen on Sun Jan 03, 2010 12:26 am, edited 1 time in total.
Mdamen
Forum Moderator
Forum Moderator
 
Posts: 390
Joined: November 2008
Location: Netherlands

Re: Firmware version 2 protocol and POL 2.0

Postby Rene » Sun Jan 03, 2010 12:26 am

It was an interesting afternoon and evening ;-)
Rene.
User avatar
Rene
Global Moderator
Global Moderator
 
Posts: 1689
Joined: October 2008
Location: Netherlands

Re: Firmware version 2 protocol and POL 2.0

Postby daromer » Sun Jan 03, 2010 1:27 pm

This im looking forward to. :D
daromer
Starting Member
Starting Member
 
Posts: 42
Joined: October 2009
Location: Sweden

Re: Firmware version 2 protocol and POL 2.0

Postby guldan » Tue Jan 05, 2010 9:45 am

Maarten,

Would it be possible for you to share those changes to the protocol, that way I can also easily incorporate those changes in my dll. If you want you can reach me at:schilder85[AT]hotmail[Dot]com. Thanks!
guldan
Starting Member
Starting Member
 
Posts: 6
Joined: December 2009

Re: Firmware version 2 protocol and POL 2.0

Postby Mdamen » Tue Jan 05, 2010 2:52 pm

I am a bit concerned releasing any details about the new protocol.
Looking at the new protocol I get the feeling they want to do anything to frustrate me/the open source community (all commands I used in POL were changed)
Plugwise is not willing to co-operate with the community by releasing protocol specifications in any way :(

Bottom line is that I feel more like releasing a big bang, with all the documentation I have about protocol version 2 when plugwise releases firmware version 2 publicly.
That way they can't change any thing last minute.
Maybe you can postpone the release of the new dll to this time aswell?
Mdamen
Forum Moderator
Forum Moderator
 
Posts: 390
Joined: November 2008
Location: Netherlands

Re: Firmware version 2 protocol and POL 2.0

Postby guldan » Tue Jan 05, 2010 3:31 pm

Maarten, sure no problem. I was just wondering. If you need help maybe i can give you some assistance. I know my way around the old dlls quite a bit. Anyways it would really help me when you release the protocol info because then I wouldn't need to reverse engineer the protocol. But for now i'll wait for the new release, any idea when that is planned?
guldan
Starting Member
Starting Member
 
Posts: 6
Joined: December 2009

Re: Firmware version 2 protocol and POL 2.0

Postby Bwired » Tue Jan 05, 2010 8:30 pm

Hi Maarten,
If you are right thats not good News at all!
Is everything changed of just the things (commands) you opened up....
and where those changes in your opinion necessary? looks like you are telling... NOT
User avatar
Bwired
Administrator
Administrator
 
Posts: 5308
Joined: March 2006
Location: Netherlands

Re: Firmware version 2 protocol and POL 2.0

Postby Mdamen » Tue Jan 05, 2010 10:35 pm

The commands I checked sofar have changed.. and I doubt they are all necessary..
For example they changed 8 bits from the front to the last position.
But then again.. plugwise has all the rights to change it, I just hope they don't do it on purpose and that it just looks that way!
Mdamen
Forum Moderator
Forum Moderator
 
Posts: 390
Joined: November 2008
Location: Netherlands

Re: Firmware version 2 protocol and POL 2.0

Postby daromer » Wed Jan 13, 2010 10:07 am

If thats true then i would probably continue with the development of the units i started to build.

I hope you can get it to work fully for now.
daromer
Starting Member
Starting Member
 
Posts: 42
Joined: October 2009
Location: Sweden

Re: Firmware version 2 protocol and POL 2.0

Postby wusel » Sun Jan 17, 2010 3:28 am

Is there a way to find out which firmware version one's plugs are running? I ordered my starter kit in the first week of 2010, it got delivered last week. Today I installed the plugs ("Circles"), and, as someone mentioned "The Source" is neccessary to get one's mesh starting, I installed the Source as well. The Source worked fine so far, now I'm trying to take this to Linux commandline -- and got stuck :(

root@plug-2:~/POL# python pol.py -p /dev/ttyUSB0 -w 000d6f00004be24
... just hangs there :( ...

As I'm on ARM here, so I'm glad it's python ;)

Linux plug-2 2.6.32.2 #4 PREEMPT Tue Jan 12 17:04:53 CET 2010 armv5tel GNU/Linux

As I said before, I got my kit that week, all (2) of my plugs are ok in Plugwise' Source, but nothing with Linux :( As I don't run Windows on a daily basis, I'd love to geht this working. Thanks in advance,
-- kai
--
Kai 'wusel' Siering, Blog: http://blogdoch.net/
User avatar
wusel
Starting Member
Starting Member
 
Posts: 19
Joined: January 2010

Re: Firmware version 2 protocol and POL 2.0

Postby Mdamen » Sun Jan 17, 2010 7:18 pm

Wusel,
Using the source please check the date of your firmware.
You can find the date on the settings->devices page..

After that we can have a look if it is a firmware issue, or something else.
Mdamen
Forum Moderator
Forum Moderator
 
Posts: 390
Joined: November 2008
Location: Netherlands

Re: Firmware version 2 protocol and POL 2.0

Postby wusel » Mon Jan 18, 2010 12:45 am

Mdamen wrote:Using the source please check the date of your firmware.
You can find the date on the settings->devices page..

After that we can have a look if it is a firmware issue, or something else.

Maarten, not sure I found the right place, I only found the date of the Stick's firmware, 2008-08-26. I uploaded a screenshot at http://blogdoch.net/images/plugwise-1-cut.jpg ... There was no mention of the Circle's firmware, not even in the properties (or I missed it).

Hope this helps,
-kai
--
Kai 'wusel' Siering, Blog: http://blogdoch.net/
User avatar
wusel
Starting Member
Starting Member
 
Posts: 19
Joined: January 2010

Re: Firmware version 2 protocol and POL 2.0

Postby yjb » Mon Jan 18, 2010 9:16 am

wusel wrote:
There was no mention of the Circle's firmware, not even in the properties (or I missed it).


Just slide the slidebar to the right, and you will see the firmware of the individual circles:
verbruik - totaal - vanaf - firmware - aangemaakt
yjb
Member
Member
 
Posts: 188
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Firmware version 2 protocol and POL 2.0

Postby wusel » Mon Jan 18, 2010 3:37 pm

yjb wrote:Just slide the slidebar to the right, and you will see the firmware of the individual circles:
verbruik - totaal - vanaf - firmware - aangemaakt


Ah. Yes, it's 2008-08-26 (see http://blogdoch.net/images/plugwise-2.jpg). So, it's not Protocol 2 I suppose?

Well, just plugged The Stick into an i386 box running Debian lenny -- still no response :(
Code: Select all
lenny:~/POL#  date ; /root/with_timeout +15 python pol.py -p /dev/ttyUSB1 -w 000d6f00004bXXXX ; date
Mon Jan 18 15:26:52 CET 2010
Traceback (most recent call last):
  File "pol.py", line 149, in <module>
    main()
  File "pol.py", line 133, in main
    print plugwise.GetPowerInfo()
  File "pol.py", line 48, in GetPowerInfo
    self.GetCalibrationInfo()
  File "pol.py", line 27, in GetCalibrationInfo
    result = self.GetResult(self.CALIBRATIONRESPONSECODE)
  File "pol.py", line 90, in GetResult
    data += self.serial.read(1)
  File "/usr/lib/python2.5/site-packages/serial/serialposix.py", line 317, in read
    ready,_,_ = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt
Mon Jan 18 15:27:07 CET 2010

4B.... is the address of the Circle+. It's less that 3m to the right; using The Stick on Vista with The Source several meters away in that room works, so I don't expect it to be an issue of distance. (The other Circle is ~1m to the left of The Stick. Just ignore the descriptions within The Source for now.)

Tried "python pol.py -p /dev/ttyUSB1 -w 4bXXXX" as well, same result (i. e. no response for hours if not interrupted manually).

Anything else I could try? (I was considering to replace/extend my ELV FS20 setup with Plugwise, but it has to run on Linux/ARM, as my home automation stuff runs on one of my SheevaPlugs; I'm using FHEM as the frame work and would build a perl module to interface Plugwise with FHEM.)

Regards,
-kai
--
Kai 'wusel' Siering, Blog: http://blogdoch.net/
User avatar
wusel
Starting Member
Starting Member
 
Posts: 19
Joined: January 2010

Re: Firmware version 2 protocol and POL 2.0

Postby Mdamen » Mon Jan 18, 2010 6:03 pm

I see you are using lowercase chars in your mac address... try uppercase. This might just be the problem.
Mdamen
Forum Moderator
Forum Moderator
 
Posts: 390
Joined: November 2008
Location: Netherlands

Next

Return to Plugwise Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron