johnlee wrote:
Seeker, sorry if my mention of your system's data rates above was confusing/ or wrong & thanks for the analysis, but guess I missed your overall conclusion and a comment on what the previous emailer was saying about the (v low!) baud rates over air. Guess no-one (probably including most of the cc guys) knows how envi really works!.
Hi John, No confusion, I was just trying to show that the commonly held view (that it is collisions on the radio side causing the loss) does not apply in the example.
There are many places the problem can be introduced; Noisy or weak radio signals, insufficient buffering in the UART, PC running near 100% CPU are just a few. We just have to program around those things we can't fix.
Quote:
qs
1) why does the addition of the extra data cause your solar data/hr to be (consistently) different from the house data and much lower that w/o the extra data?
Who Knows? Possibly a lower powered transmitter?
Quote:
2) what's the likely answer to the original q - ie would envi support 10 sensors, in a usable fashion?
I'm sure it would, but need to define usable. Accepting there will always be
some loss, is 10% ok? is 20% too much?
Quote:
3) A practical q:- given the way that the data rates reduce with additional sensor lines, what is the correct/best/most accurate way to calculate the power for a sensor from the live sensor readings. Is it still, as cc recommend, to multiply the sensor reading in xml by the interval in secs since last reading, bearing in mind that maybe readings are lost between clamp/transmitter (by collisions) and pc, or is it better add up the readings and to scale according to the average no of readings received in an hour somehow? Or what.
Well this is the crux of it. Usability depends on the Mission. So if I want an estimate of Energy used each hour or 30 minutes, a single sample in each minute will probably suffice (This is what Techtonic Energy Station does). Assuming the samples are normally distributed a sample of 30 will give an approximation of the mean +/- 2SD ie about 99.5% confidence. (N.B. If you average the 6 second readings in each minute you can be certain that it is normally distributed).
On the other hand, if my mission is to identify appliances in use at any particular time I would need to pattern match the instantaneous power at a high frequency. so 6 second intervals is probably the outside of what is acceptable. (Doesn't negate the approach, but reduces confidence in result).
Wow! that was a bit esoteric wasn't it?

I didn't delete it cos I put a lot of thought into it

.
In practical terms the difference in the average value between your two approaches is marginal though the second approach is likely to have more variance.
In my home-brew system reading the inverter (CC not involved), i read the inverter each minute multiply the average reading before and after the interval by the interval length and sum over 10 minutes. I have special handling if I miss a reading on the minute boundary.