Firmware version 2 Plugwise protocol and POL 2.0
Firmware version 2 Plugwise protocol and POL 2.0
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.
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 1:26 am, edited 1 time in total.
Re: Firmware version 2 protocol and POL 2.0
This im looking forward to.
Re: Firmware version 2 protocol and POL 2.0
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!
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!
Re: Firmware version 2 protocol and POL 2.0
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?
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?
Re: Firmware version 2 protocol and POL 2.0
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?
Re: Firmware version 2 protocol and POL 2.0
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
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
Re: Firmware version 2 protocol and POL 2.0
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!
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!
Re: Firmware version 2 protocol and POL 2.0
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.
I hope you can get it to work fully for now.
Re: Firmware version 2 protocol and POL 2.0
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
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/
Kai 'wusel' Siering, Blog: http://blogdoch.net/
Re: Firmware version 2 protocol and POL 2.0
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.
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.
Re: Firmware version 2 protocol and POL 2.0
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).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.
Hope this helps,
-kai
--
Kai 'wusel' Siering, Blog: http://blogdoch.net/
Kai 'wusel' Siering, Blog: http://blogdoch.net/
Re: Firmware version 2 protocol and POL 2.0
Just slide the slidebar to the right, and you will see the firmware of the individual circles:wusel wrote:
There was no mention of the Circle's firmware, not even in the properties (or I missed it).
verbruik - totaal - vanaf - firmware - aangemaakt
Re: Firmware version 2 protocol and POL 2.0
Ah. Yes, it's 2008-08-26 (see http://blogdoch.net/images/plugwise-2.jpg). So, it's not Protocol 2 I suppose?yjb wrote:Just slide the slidebar to the right, and you will see the firmware of the individual circles:
verbruik - totaal - vanaf - firmware - aangemaakt
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
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/
Kai 'wusel' Siering, Blog: http://blogdoch.net/
Re: Firmware version 2 protocol and POL 2.0
I see you are using lowercase chars in your mac address... try uppercase. This might just be the problem.