List Archives : http://void.nothingness.org
List Archives

XTension Discussion

Fwd: [mh] Whole House Power Meter

From: Greg Satz <satz-AT-iranger.com>
Date: 13 Apr 2008 01:20:35 UTC   (08:20:35 PM in author's locale)
To: xtensionlist-AT-shed.com
Here is what the Misterhouse group has reverse engineered so far. See
www.nabble.com/Re%3A-Whole-House-Power-Meter-
tp16169718p16569683.html for the complete thread. I had to pull the
pdf file from the message so the mail forwarder will process it.

Thanks,
Greg

Begin forwarded message:
> From: Misterhouse <misterhouse-AT-blecherfamily.net>
> Date: April 7, 2008 9:14:17 PM MDT
> To: The main list for the MisterHouse home automation program
> <misterhouse-users-AT-lists.sourceforge.net>
> Subject: Re: [mh] Whole House Power Meter
> Reply-To: The main list for the MisterHouse home automation program
> <misterhouse-users-AT-lists.sourceforge.net>
>
> David,
>
> Here is the updated data. I have created a PDF to make it easy to
> view. I was unsuccessful with TED today. They are currently not
> budging on releasing the binary block. Hopefully with a bit more
> work, we will have all the fields decoded anyway.
>
> Let me know if you decode anything else. I am interested in your
> ted.pm file. Right now, I just have some C++ code that is really
> used to just decode the block.
>
> Joe
>
>
> David Satterfield wrote:
>>
>> --- In misterhouse-AT-yahoogroups.com, Misterhouse <misterhouse@...>
>> wrote:
>> >
>> > David,
>> >
>> > Thanks for the great help. If only TED would give us the
>> documentation
>> > we need, this would have been much easier. They have not
>> responded to my
>> > emails last week, so I will give them a call tomorrow. Wish me
>> luck.
>>
>> Luck :)
>> >
>> > With that said, I have decoded much of the block between 0-100
>> bytes. I
>> > will send this out later this evening as I am now dealing with the
>> > packet size changing based upon what rate mode you are in.
>> Hopefully I
>> > will get my hands around this today.
>>
>> Cool. Yes I noticed that too, and just went back to a single rate
>> for now. That's all I really need, but I suppose for completeness
>> we should figure out the whole thing.
>> >
>> > FYI: Offset 84-85 is not the current rate. It is "Tier rate 1".
>> You can
>> > have up to five tier rates. (well actually 10, if you have both
>> summer
>> > and winter rates in effect)
>>
>> When I set just a simple, single rate, I get it at 84 and 85, and
>> get 0s at 92,93.
>>
>> >
>>
>> > and what is Calibration%?
>>
>> That's the value you set (from .9 to 1.1) you set to adjust Ted to
>> match your electric bill.
>>
>> >
>> > Keep up the good work.
>>
>> Sounds good. I have a Ted.pm module written, maybe I'll fire it
>> over to you once I clean it up and see what you think. My plan was
>> to put all the data in a %Electricity hash. I'm a bit stuck on the
>> stuff around 170. Some of that data is dynamic, but I don't know
>> what it is yet. Any comments on the questions I posted? Can you
>> compare your data with mine?
>>
>> I also suspect that over time, some of the 0 fields will get
>> filled in with history (Ted keeps 12 months of simple history
>> around).
>> Regards,
>> David Satterfield
>>
>> >
>> > Joe
>> >
>> > David Satterfield wrote:
>> > > Hi, I have more of the packet decoded:
>> > >
>> > > Field Start End Conversion
>> > > CurrentRate 84 85 div 10000
>> > > DlrHrAlarm 122 123 div 100
>> > > Calibration% 107 108 div 1000
>> > >
>> > > I suspect that 142/143 is the LoVMtd, but it doesn't line up
>> with what
>> > > Footprints says. I'm thinking Footprints might have a bug? Can
>> someone
>> > > report what you see in that field Still haven't found the
>> month and
>> > > day-of-month that goes with the Hi/LoVMtd values.
>> > >
>> > > Some of the lower fields (3-10) correspond to various electric
>> rates,
>> > > but I haven't fully decoded them. I don't have variable rate
>> electric,
>> > > so it would really just be a completeness exercise for me.
>> > >
>> > > Bytes 160-163 are watt totals as Joe said. They only get
>> updated once
>> > > per minute, along with the KwhMtdCnt value, which is just a
>> count that
>> > > increments each minute. I suspect you can get KWh used that
>> minute by
>> > > subtracting the watt total from the previous minute from the
>> current
>> > > value, and dividing by 60000. I'll try that today. You should
>> be able
>> > > to keep a KWh running total that way. I suspect that's what
>> footprints
>> > > does. It gives the SW 60 chances to capture the KWh data each
>> minute.
>> > >
>> > > There are now only a few fields left to decode:
>> > >
>> > > 160:76 85 a 0 dc 18 0 0 ed 44 76 0 76 80 4f 0 1 84 8 9c
>> > > (168,169,170-179 unknown)
>> > >
>> > > 16,18,19: I get 80,1d,1
>> > > 261: I get 4
>> > > 271:272 - I suspect it's a crc
>> > > 273 - always 6b for me
>> > >
>> > > What do you guys see for those? Any ideas?
>> > > Thanks,
>> > > David Satterfield
>> > >
>> > >
>> > >
>> > > --- In misterhouse-AT-yahoogroups.com, David Satterfield
>> > > <david_misterhouse@> wrote:
>> > > >
>> > > > Hi, I hacked away at TED's packet a bit today. Here are some
>> > > additionsto the packet decode. I don't know the "official"
>> names, but
>> > > you shouldget the idea. Note that I think the original post is
>> wrong
>> > > onKwPeakTdy. That field is actually KwPeakMtd, with KwPeakTdy
>> being
>> > > at148 and 149. Also, CurrentRate is not showing up for me at
>> 92 and
>> > > 93.Those fields are 0 for me.
>> > > >
>> > > > I'm also having trouble getting KWhtoday, and KWh month-to-
>> date. I
>> > > don't know how to decode the 160-165bytes yet. Has anyone
>> decrypted
>> > > that? to get the above values that Teddisplays? Also haven't
>> figured
>> > > out DlrTdy (dollars today) yet.
>> > > > Regards,
>> > > > David Satterfield
>> > > >
>> > > >
>> > > > Field Start End Conversion
>> > > > DlrKwAlarm 122 123 div 100
>> > > > KwAlarm 124 125 div 100
>> > > > DlrMtdAlarm 127 126 div 10
>> > > > KwhMtdAlarm 129 128 none
>> > > > LoVAlarm 130 131 div 10
>> > > > HiVAlarm 132 133 div 10
>> > > > KwPeakTdy 148 149 div 100
>> > > > KwPeakMtd 152 153 div 100
>> > > > DlrMtd 255 256 div 10
>> > > > DlrProj 257 258 div 10
>> > > >
>> > > > > Field Start Byte End Byte Conversion
>> > > > > Start of Data 0 1 0x1004
>> > > > > CurrentRate 92 93 div 10000
>> > > > > TED Marker 113 116 TED<SPACE>
>> > > > > LoVrmsTdy 134 135 div 10
>> > > > > stLoVtimTdy 136 137 minutes
>> > > > > HiVrmsTdy 138 139 div 10
>> > > > > stHiVtimTdy 140 141 minutes
>> > > > > HiVrmsMtd 145 146 div 10
>> > > > > DlrPeakTdy 150 151 div 100
>> > > > > KwPeakTdy 152 153 div 100
>> > > > > DlrPeakMtd 154 155 div 100
>> > > > > WattTdySum 160 163 none
>> > > > > KwhMtdCnt 164 165 none
>> > > > > KWNow 249 250 div 100
>> > > > > DlrNow 251 252 div 100
>> > > > > VrmsNowDsp 253 254 div 10
>> > > > > KWProj 259 260 none
>> > > > > End of Data 278 279 0x1003
>>
>>
>> You rock. That's why Blockbuster's offering you one month of
>> Blockbuster Total Access, No Cost.
>> ---------------------------------------------------------------------
>> ---- This SF.net email is sponsored by the 2008 JavaOne(SM)
>> Conference Register now and save $200. Hurry, offer ends at 11:59
>> p.m., Monday, April 7! Use priority code J8TLD2. http://
>> ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/
>> javaone ________________________________________________________
>> To unsubscribe from this list, go to: sourceforge.net/mail/?
>> group_id=1365
> !DSPAM:47fae31a696651524564532!
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> ad.doubleclick.net/clk;198757673;13503038;p://
> java.sun.com/javaone
>
> !DSPAM:47fae31a696651524564532!
> ________________________________________________________
> To unsubscribe from this list, go to: sourceforge.net/mail/?
> group_id=1365
>
>
>
> !DSPAM:47fae31a696651524564532!

* List Archives

IMC GeneralRA-LThe Graphics ListThe Situationist ListXTension Discussion
 
 

This site made manifest by Manifesto software

Page executed in 0.78923106193542 seconds.
Loaded 105 classes from 6 of 10 total class files. Read 2 objects from the database. Served 2 items from the cache.
Queries - count: 2 select: 3 update: 1