<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div dir="auto" class=""><div class="">Die Middleware schmeisst den allerersten Impuls immer weg- da es dafür kein Intervall gibt kann auch keine Leistung ermittelt werden.</div><div class=""><br class="">Am 31.10.2015 um 18:02 schrieb Matthias Behr <<a href="mailto:mbehr@mcbehr.de" class="">mbehr@mcbehr.de</a>>:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class="">Der erste Wert wird aus Startzeit und erstem Impuls ermittelt. Dadurch kommt es zu einem zu hohen Wert.<div class="">Soll ich den ersten Wert/Impuls ignorieren?<br class=""></div></div></blockquote><div class=""><br class=""></div>Ich würd sagen ja, s.o. <div class=""><br class=""></div><div class="">Versteh allerdings nicht warum das jetzt zum Problem wird. Weil der erste Impuls nun möglicherweise der einzige in der Sekunde ist und aufgrund des genaueren Timestamps jetzt näher an der Start des Meßintervalls rücken kann?<div class=""><br class=""></div></div></div></div></blockquote><div><br class=""></div><div>ja, genau. Ich update gleich den PR.</div><div><br class=""></div><div>Was machen wir mit gcc >=4.8? Akzeptabel?</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="auto" class=""><div class=""><div class="">Viele Grüße, Andreas </div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 31.10.2015 um 16:36 schrieb Andreas Goetz <<a href="mailto:cpuidle@gmail.com" class="">cpuidle@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Karlheinz, <br class=""><br class="">kannst Du die Fehler bitte direkt im PR beantworten? So kommen sie sofort bei Matthias an- danke!<br class=""><br class=""></div>Viele Grüße,<br class=""></div>Andreas<br class=""><br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-10-31 16:04 GMT+01:00 Karlheinz <span dir="ltr" class=""><<a href="mailto:karlheinz.es@gmx.de" target="_blank" class="">karlheinz.es@gmx.de</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF" class="">
    <div class="">erster Zwischenstand:<br class="">
      Die Genauigkeit ist nun viiiel besser. Der erste s0-Leistungswert
      180888.592855<small class="">
        ("identifier" : "Power") </small>kann aber nicht stimmen.<br class="">
      <pre class="">{ "version": "0.4.7", "generator": "vzlogger", "data": [ { "uuid": "e18", "last": 1446303343703, "interval": -1, "protocol": "s0", "tuples": [ [ 1446303307749, <big class=""><b class="">180888.592855 </b></big>], [ 1446303310689, 612.260874 ], [ 1446303327699, 105.823022 ], [ 1446303343703, 112.471462 ] ] } ] }</pre>
      Gruß<span class="HOEnZb"><font color="#888888" class=""><br class="">
      Karlheinz</font></span><div class=""><div class="h5"><br class="">
      <br class="">
      ------- Original Nachricht --------<br class="">
      Betreff: Re: [vz-users]Raspberry Volkszähler mit Erweiterung ohne
      Schaltausgänge - S0 zeigt Sägezahn<br class="">
    </div></div></div><div class=""><div class="h5">
    <br class="">
    <blockquote type="cite" class="">
      <div dir="ltr" class="">
        <div class="">Moin Jörg,<br class="">
          <br class="">
          Matthias war so nett und hat die Timestamps
          überarbeitet.Könntest Du bitte mal testen: <a href="https://github.com/volkszaehler/vzlogger/pull/211" target="_blank" class=""></a><a href="https://github.com/volkszaehler/vzlogger/pull/211" target="_blank" class="">https://github.com/volkszaehler/vzlogger/pull/211</a>
          <br class="">
          <br class="">
        </div>
        <div class="">Viele Grüße,<br class="">
        </div>
        <div class="">Andreas<br class="">
          <br class="">
        </div>
        <br class="">
      </div>
      <div class="gmail_extra"><br class="">
        <div class="gmail_quote">2015-10-19 8:00 GMT+02:00 Andreas Goetz
          <span dir="ltr" class=""><<a href="mailto:cpuidle@gmail.com" target="_blank" class="">cpuidle@gmail.com</a>></span>:<br class="">
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr" class="">
              <div class="">
                <div class="">Ich hab mal ein issue aufgemacht: <a href="https://github.com/volkszaehler/vzlogger/issues/206" target="_blank" class=""></a><a href="https://github.com/volkszaehler/vzlogger/issues/206" target="_blank" class="">https://github.com/volkszaehler/vzlogger/issues/206</a><br class="">
                  <br class="">
                </div>
                Viele Grüße,<br class="">
              </div>
              Andreas<br class="">
              <br class="">
            </div>
            <div class="">
              <div class="">
                <div class="gmail_extra"><br class="">
                  <div class="gmail_quote">2015-10-18 22:49 GMT+02:00
                    Andreas Goetz <span dir="ltr" class=""><<a href="mailto:cpuidle@gmail.com" target="_blank" class=""></a><a href="mailto:cpuidle@gmail.com" target="_blank" class="">cpuidle@gmail.com</a>></span>:<br class="">
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr" class="">
                        <div class="">
                          <div class="">
                            <div class="">
                              <div class="">
                                <div class="">
                                  <div class="">Ich sehe alle 1-2 Sekunden eine
                                    Messung:<br class="">
                                    <br class="">
                                    [1445155286634,3596.404],<br class="">
                                    [1445155288634,1800],<br class="">
                                    [1445155290634,1800],<br class="">
                                    [1445155291634,3600],<br class="">
                                    [1445155293634,1800],<br class="">
                                    [1445155295634,1800],<br class="">
                                    [1445155297634,1800],<br class="">
                                    [1445155298634,3600],<br class="">
                                    [1445155300635,1799.1],<br class="">
                                    [1445155302635,1800],<br class="">
                                    [1445155304635,1800],<br class="">
                                    [1445155305635,3600],<br class="">
                                    [1445155307635,1800],<br class="">
                                    [1445155309635,1800],<br class="">
                                    [1445155311635,1800],<br class="">
                                    [1445155312635,3600],<br class="">
                                    [1445155314636,1799.1],<br class="">
                                    [1445155316636,1800],<br class="">
                                    [1445155318636,1800],<br class="">
                                    [1445155319636,3600],<br class="">
                                    [1445155321636,1800],<br class="">
                                    [1445155323636,1800],<br class="">
                                    [1445155325636,1800]<br class="">
                                    <br class="">
                                  </div>
                                  Was wirklich komisch ist ist die
                                  Tatsache dass die Werte springen. Wenn
                                  man sich das als Rohwerte anschaut 
                                  (&options=raw) wird klar warum:<br class="">
                                  <br class="">
                                  [1445155286634,1],<br class="">
                                  [1445155288634,1],<br class="">
                                  [1445155290634,1],<br class="">
                                  [1445155291634,1],<br class="">
                                  [1445155293634,1],<br class="">
                                  [1445155295634,1],<br class="">
                                  [1445155297634,1],<br class="">
                                  [1445155298634,1],<br class="">
                                  [1445155300635,1],<br class="">
                                  [1445155302635,1],<br class="">
                                  [1445155304635,1],<br class="">
                                  [1445155305635,1],<br class="">
                                  [1445155307635,1],<br class="">
                                  [1445155309635,1],<br class="">
                                  [1445155311635,1],<br class="">
                                  [1445155312635,1],<br class="">
                                  [1445155314636,1],<br class="">
                                  [1445155316636,1],<br class="">
                                  [1445155318636,1],<br class="">
                                  [1445155319636,1],<br class="">
                                  [1445155321636,1],<br class="">
                                  [1445155323636,1],<br class="">
                                  [1445155325636,1]<br class="">
                                  <br class="">
                                </div>
                                Es wird jeder Impuls einzeln
                                geschrieben, aber immer mit Abständen
                                von 1 oder (nicht bis!) 2 Sekunden.<br class="">
                                <br class="">
                              </div>
                              @Matthias: wir hatten hier neulich eine
                              Diskussion über Sekundenauflösung. Das
                              Beispiel hier zeigt wieder dass wir
                              Millisekunden brauchen.<br class="">
                              <br class="">
                            </div>
                            Wäre es möglich GPIO so umzubauen dass alle
                            Impulse sofort geliefert werden statt im
                            Sekundenrhythmus? Wer mehr will muss dann
                            halt mmap verwenden?<br class="">
                            <br class="">
                          </div>
                          Viele Grüße,<br class="">
                        </div>
                        Andreas<br class="">
                        <br class="">
                      </div>
                      <div class="">
                        <div class="">
                          <div class="gmail_extra"><br class="">
                            <div class="gmail_quote">2015-10-18 16:20
                              GMT+02:00 Karlheinz <span dir="ltr" class=""><<a href="mailto:karlheinz.es@gmx.de" target="_blank" class=""></a><a href="mailto:karlheinz.es@gmx.de" target="_blank" class="">karlheinz.es@gmx.de</a>></span>:<br class="">
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                <div text="#000000" bgcolor="#FFFFFF" class="">
                                  <div class="">Hi,<span class=""><br class="">
                                      <br class="">
------- Original Nachricht --------<br class="">
                                      Betreff: Re: [vz-users] Raspberry
                                      Volkszähler mit Erweiterung ohne
                                      Schaltausgänge - S0 zeigt Sägezahn<br class="">
                                      <br class="">
                                    </span></div>
                                  <span class=""> <br class="">
                                    <blockquote type="cite" class="">
                                      <div class="">Moin,</div>
                                      <div class=""><br class="">
                                        Am 18.10.2015 um 07:35 schrieb
                                        Matthias Behr <<a href="mailto:mbehr@mcbehr.de" target="_blank" class=""></a><a href="mailto:mbehr@mcbehr.de" target="_blank" class="">mbehr@mcbehr.de</a>>:<br class="">
                                        <br class="">
                                      </div>
                                      <blockquote type="cite" class="">
                                        <div class=""> Ja, es werden immer
                                          Impulse pro Sek. geliefert.
                                          <div class="">Wieviel Impulse pro
                                            Zeiteinheit hast du?</div>
                                        </div>
                                      </blockquote>
                                    </blockquote>
                                  </span> Mein PV Zähler liefert 2000
                                  Imp / kWh. Pro Zeiteinheit ist keine
                                  Aussage möglich - je mehr Leistung,
                                  desto mehr Impulse pro Sekunde. Ab
                                  1000 Watt sind es dann regelmäßig 1-2
                                  Impulse pro Sekunde.<br class="">
                                  Wäre eine feinere Auflösung pro ms
                                  (für die power-Berechnung) und eine
                                  spätere Aggregation auf Sekunde
                                  möglich?<span class=""><br class="">
                                    <blockquote type="cite" class="">
                                      <div class=""><br class="">
                                      </div>
                                      Wenn ich den aktuellen
                                      Kurvenverlauf anschaue dann
                                      scheinen alle 2,5 Sekunden
                                      Messwerte reinzukommen. Nicht klar
                                      ist woher die 2,5-
                                      Sekundenauflösung kommt.</blockquote>
                                  </span> die 2,5-Sekundenauflösung kann
                                  ich nicht nachvollziehen. Ich sehe
                                  jede Sekunde eine Messung.<br class="">
                                  <pre class="">14447351<b class="">25</b>358, 14447351<b class="">26</b>359, 14447351<b class="">27</b>359 ...</pre>
                                  <span class=""> <br class="">
                                    <blockquote type="cite" class="">
                                      <div class=""><br class="">
                                      </div>
                                      <div class="">Probehalber könnte man mal
                                        von gpio auf mmap umstellen?</div>
                                      <div class=""><br class="">
                                      </div>
                                      <div class="">Viele Grüße, Andreas </div>
                                      <div class=""><br class="">
                                        <blockquote type="cite" class="">
                                          <div class="">
                                            <div class=""><br class="">
                                            </div>
                                            <div class=""><br class="">
                                              <div class="">
                                                <blockquote type="cite" class="">
                                                  <div class="">Am 16.10.2015 um
                                                    23:56 schrieb
                                                    Andreas Götz <<a href="mailto:cpuidle@gmail.com" target="_blank" class=""></a><a href="mailto:cpuidle@gmail.com" target="_blank" class="">cpuidle@gmail.com</a>>:</div>
                                                  <br class="">
                                                  <div class="">
                                                    <div dir="auto" class="">
                                                      <div class="">Hi,</div>
                                                      <div class=""><br class="">
                                                        Am 16.10.2015 um
                                                        23:05 schrieb
                                                        Karlheinz <<a href="mailto:karlheinz.es@gmx.de" target="_blank" class=""></a><a href="mailto:karlheinz.es@gmx.de" target="_blank" class="">karlheinz.es@gmx.de</a>>:<br class="">
                                                        <br class="">
                                                      </div>
                                                      <blockquote type="cite" class="">
                                                        <div class="">
                                                          <div class="">Hi,<br class="">
                                                          <br class="">
                                                          ich beobachte
                                                          ähnliche
                                                          Spitzen ohne
                                                          aggmode/aggtime.
                                                          Kann es sein,
                                                          dass die
                                                          Impulse nur
                                                          sekundeweise
                                                          anstatt pro ms
                                                          gezählt
                                                          werden?<br class="">
                                                          </div>
                                                        </div>
                                                      </blockquote>
                                                      <div class=""><br class="">
                                                      </div>
                                                      Nutzt Du auch
                                                      gpio?
                                                      <div class=""><br class="">
                                                        <blockquote type="cite" class="">
                                                          <div class="">
                                                          <div class=""> Real
                                                          waren es ca.
                                                          1500 kW. So
                                                          sah das mit
                                                          vzlogger aus
                                                          (2000
                                                          Imp/kWh):<br class="">
                                                          <a href="https://gist.githubusercontent.com/gitka/0cfc59ce364024abd3b4/raw/3923a1d637bae348fc0b2f1938fe2cf3ad5a5f8e/httpd%2520Ausgabe" target="_blank" class=""></a><a href="https://gist.githubusercontent.com/gitka/0cfc59ce364024abd3b4/raw/3923a1d637bae348fc0b2f1938fe2cf3ad5a5f8e/httpd%2520Ausgabe" target="_blank" class="">https://gist.githubusercontent.com/gitka/0cfc59ce364024abd3b4/raw/3923a1d637bae348fc0b2f1938fe2cf3ad5a5f8e/httpd%2520Ausgabe</a><br class="">
                                                          <br class="">
                                                          Gruß<br class="">
                                                          Karlheinz<br class="">
                                                          </div>
                                                          </div>
                                                        </blockquote>
                                                        <br class="">
                                                      </div>
                                                    </div>
                                                  </div>
                                                </blockquote>
                                              </div>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                    </blockquote>
                                    <br class="">
                                  </span></div>
                              </blockquote>
                            </div>
                            <br class="">
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br class="">
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br class="">
  </div></div></div>

</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Gruß</div><div class=""><br class=""></div><div class="">Matthias</div></div></span>
</div>
<br class=""></div></div></div></blockquote></div></div></div></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Gruß</div><div class=""><br class=""></div><div class="">Matthias</div></div></span>
</div>
<br class=""></body></html>