<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="">Prima. Wurde heute auch offiziell gemerged/aufgenommen.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 22.02.2015 um 14:51 schrieb Reto <<a href="mailto:reto.roelli@gmx.ch" class="">reto.roelli@gmx.ch</a>>:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Hallo Zusammen,<br class="">
    <br class="">
    Es funktioniert nun bestens, die Werte können alle geloggt werden.<br class="">
    <br class="">
    Vielen Dank.<br class="">
    <br class="">
    Gruss Reto<br class="">
    <br class="">
    <div class="moz-cite-prefix">Am 20.02.2015 um 17:10 schrieb Matthias
      Behr:<br class="">
    </div>
    <blockquote cite="mid:125F39BC-8C7B-4F42-9334-B9D068AE9924@mcbehr.de" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
      Der formelle Github Weg müsste folgender sein:
      <div class=""><br class="">
      </div>
      <div class="">aus dem Verzeichnis, wo vzlogger bereits enthalten
        ist:</div>
      <div class="">git fetch origin pull/<id>/head:<name>
         // also hier git fetch origin pull/124/head:pr124</div>
      <div class="">git checkout <name> // hier dann git checkout
        pr124</div>
      <div class=""><br class="">
      </div>
      <div class="">dann</div>
      <div class="">cmake .</div>
      <div class="">make</div>
      <div class="">sudo make install</div>
      <div class=""><br class="">
      </div>
      <div class="">Falls noch kein Verzeichnis mit geclontem vzlogger
        vorhanden ist:</div>
      <div class="">git clone <a moz-do-not-send="true" href="https://github.com/volkszaehler/vzlogger.git" class="">https://github.com/volkszaehler/vzlogger.git</a></div>
      <div class="">cd vzlogger</div>
      <div class=""><br class="">
      </div>
      <div class="">(dann wie oben beschrieben)</div>
      <div class=""><br class="">
        <div class="">
          <blockquote type="cite" class="">
            <div class="">Am 20.02.2015 um 14:56 schrieb Reto <<a moz-do-not-send="true" href="mailto:reto.roelli@gmx.ch" class="">reto.roelli@gmx.ch</a>>:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
              <div bgcolor="#FFFFFF" text="#000000" class=""> Hallo
                Andreas,<br class="">
                <br class="">
                Vielen Dank für die schnelle Anpassung.<br class="">
                <br class="">
                Leider kenne ich mich mit git überhaupt nicht aus und
                mit Hilfe des Linkes gelang es mir bis jetzt nicht, die
                Änderung zu testen.<br class="">
                <br class="">
                Also wenn der Aufwand nicht zu gross ist, könnte mir
                eventl. jemand eine Schritt für Schritt Anleitung
                mitteilen, damit ich diese Änderung bei mir local testen
                kann.<br class="">
                <br class="">
                Gruss Reto<br class="">
                <br class="">
                <div class="moz-cite-prefix">Am 18.02.2015 um 20:23
                  schrieb Matthias Behr:<br class="">
                </div>
                <blockquote cite="mid:D890D162-465D-44B7-97A0-70A5EEF06BAB@mcbehr.de" type="cite" class="">
                  <meta http-equiv="Content-Type" content="text/html;
                    charset=utf-8" class="">
                  Fix provided as PR#124 
                  <div class=""><br class="">
                  </div>
                  <div class="">(see here on how to clone a PR locally
                    via git: <a moz-do-not-send="true" href="https://help.github.com/articles/checking-out-pull-requests-locally/" class="">https://help.github.com/articles/checking-out-pull-requests-locally/</a> )</div>
                  <div class=""><br class="">
                  </div>
                  <div class=""><br class="">
                    <div class="">
                      <blockquote type="cite" class="">
                        <div class="">Am 17.02.2015 um 22:05 schrieb
                          Andreas Götz <<a moz-do-not-send="true" href="mailto:cpuidle@gmail.com" class="">cpuidle@gmail.com</a>>:</div>
                        <br class="Apple-interchange-newline">
                        <div class="">...und danach muss Reto von Hand
                          kompilieren oder ein neues Image nehmen...<br class="">
                          <br class="">
                          Viele Grüße, Andreas<br class="">
                          <br class="">
                          <br class="">
                          <br class="">
                          <br class="">
                          <blockquote type="cite" class="">Am 17.02.2015
                            um 21:55 schrieb Matthias Behr <<a moz-do-not-send="true" href="mailto:mbehr@mcbehr.de" class="">mbehr@mcbehr.de</a>>:<br class="">
                            <br class="">
                            Danke für die Infos. Nehme ich in die Unit
                            Tests mit auf.<br class="">
                            <br class="">
                            Ich stelle den als PR (PullRequest) bereit.
                            Den kannst du dann schon testen. (per git
                            clone …).<br class="">
                            <br class="">
                            Dann dauert es typisch ein paar Tage, bis er
                            im Master Branch enthalten ist. Abhängig von
                            Testerg., Review Results,…<br class="">
                            <br class="">
                            PR dauert aber bis morgen Abend.<br class="">
                            <br class="">
                            <blockquote type="cite" class="">Am
                              17.02.2015 um 21:50 schrieb Reto <<a moz-do-not-send="true" href="mailto:reto.roelli@gmx.ch" class="">reto.roelli@gmx.ch</a>>:<br class="">
                              <br class="">
                              Dies hier sind alle Codes die gem. Landis
                              und Gyr von diesem Zählertyp ausgegeben
                              werden:<br class="">
                              <br class="">
                              F.F       00<br class="">
                              0.0<br class="">
                              C.1.0<br class="">
                              C.1.1<br class="">
                              1.8.1     003400.447 kWh<br class="">
                              1.8.2     005230.688 kWh<br class="">
                              2.8.1     000000.000 kWh<br class="">
                              2.8.2     000000.842 kWh<br class="">
                              1.8.0     008631.135 kWh<br class="">
                              2.8.0     000000.842 kWh<br class="">
                              15.8.0    008631.122 kWh<br class="">
                              16.7<br class="">
                              C.7.0     0118<br class="">
                              32.7      248 V<br class="">
                              52.7      248 V<br class="">
                              72.7      009 V<br class="">
                              31.7      000.03 A<br class="">
                              51.7      000.04 A<br class="">
                              71.7      000.05 A<br class="">
                              82.8.1    0001<br class="">
                              82.8.2    0000<br class="">
                              0.2.0     M23<br class="">
                              C.5.0     0433<br class="">
                              <br class="">
                              Wie komme ich dann am besten an den neuen
                              Parser ran?<br class="">
                              <br class="">
                              Vielen Dank für eure super Hilfe hier.<br class="">
                              <br class="">
                              Gruss Reto<br class="">
                              <br class="">
                              <blockquote type="cite" class="">Am
                                17.02.2015 um 21:42 schrieb Matthias
                                Behr:<br class="">
                                ok die sind gültig. DIe anderen Logger
                                geben aber statt „31.7“ ein „1.31.7“
                                aus.<br class="">
                                <br class="">
                                Ich passe den Parser an.<br class="">
                                <br class="">
                                <br class="">
                                <blockquote type="cite" class="">Am
                                  17.02.2015 um 21:30 schrieb Matthias
                                  Behr <<a moz-do-not-send="true" href="mailto:mbehr@mcbehr.de" class="">mbehr@mcbehr.de</a>>:<br class="">
                                  <br class="">
                                  Hmm. Das Problem ist, dass der
                                  Obis-Code „32.7“ nicht akzeptiert
                                  wird. Der muss (lt. akt.
                                  Implementierung) mit 0,1,2 oder C,F
                                  anfangen.<br class="">
                                  <br class="">
                                  Ist das ein gültiger Code?<br class="">
                                  <br class="">
                                  <br class="">
                                  <br class="">
                                                switch (obis_code[0]) {
                                  // let's check sanity of first char.
                                  we can't use isValid() as here we get
                                  incomplete obis_codes as well (e.g.
                                  1.8.0 -> 255-255:1.8.0)<br class="">
                                                case '0': // nobreak;<br class="">
                                                case '1': // nobreak;<br class="">
                                                case '2': // nobreak;<br class="">
                                                case 'C': // nobreak;<br class="">
                                                case 'F':<br class="">
                                                    print(log_debug,
                                  "Parsed reading (OBIS code=%s,
                                  value=%s, unit=%s)",<br class="">
                                                                    name().c_str(),

                                  obis_code, value, unit);<br class="">
                                                    rds[number_of_tuples].value(strtod(value,

                                  NULL));<br class="">
                                  <br class="">
                                                    try {<br class="">
                                                        Obis
                                  obis(obis_code);<br class="">
                                                        ReadingIdentifier
                                  *rid(new ObisIdentifier(obis));<br class="">
                      rds[number_of_tuples].identifier(rid);<br class="">
                      rds[number_of_tuples].time();<br class="">
                      number_of_tuples++;<br class="">
                                                    } catch
                                  (vz::VZException &e) {<br class="">
                                                        print(log_error,
                                  "Failed to parse obis code (%s)",
                                  name().c_str(), obis_code);<br class="">
                                                    }<br class="">
                                                break;<br class="">
                                                default:<br class="">
                                                    print(log_debug,
                                  "Ignored reading (OBIS code=%s,
                                  value=%s, unit=%s)",<br class="">
                                                                    name().c_str(),

                                  obis_code, value, unit);<br class="">
                                  <br class="">
                                  <br class="">
                                  <blockquote type="cite" class="">Am
                                    17.02.2015 um 16:35 schrieb Reto
                                    <<a moz-do-not-send="true" href="mailto:reto.roelli@gmx.ch" class="">reto.roelli@gmx.ch</a>>:<br class="">
                                    <br class="">
                                    Hallo,<br class="">
                                    <br class="">
                                    Ich verwende ein aktuelles
                                    Raspi-Image für den volkszähler.<br class="">
                                    <br class="">
                                    Am Raspi ist der USB-Lesekopf von
                                    UDO mont.<br class="">
                                    <br class="">
                                    Ausgelesen wird ein E350 von
                                    Landis+Gyr per d0.<br class="">
                                    <br class="">
                                    Das Ganze funktioniert soweit, nur
                                    leider werden bei gewissen OBIS
                                    Codes im vzlogger.log "Ignored
                                    reading" angezeigt.<br class="">
                                    Somit kann ich dann die Werte auch
                                    nicht für die weitere Verwendung
                                    gebrauchen.<br class="">
                                    <br class="">
                                    Hier ein ausschnitt aus dem
                                    vzlogger.log:<br class="">
                                    <br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG
                                    OBIS_CODE byte<br class="">
                                    hex= A<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG
                                    OBIS_CODE byte 3 hex= 33<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG
                                    OBIS_CODE byte 2 hex= 32<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG
                                    OBIS_CODE byte . hex= 2E<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG
                                    OBIS_CODE byte 7 hex= 37<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG
                                    OBIS_CODE byte ( hex= 28<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG VALUE
                                    byte= 2 hex= 32<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG VALUE
                                    byte= 3 hex= 33<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG VALUE
                                    byte= 1 hex= 31<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG VALUE
                                    byte= * hex= 2a<br class="">
                                    [Feb 17 12:38:43][d0]   Ignored
                                    reading (OBIS code=32.7, value=231,
                                    unit=V)<br class="">
                                    [Feb 17 12:38:43][d0]   DEBUG
                                    OBIS_CODE byte<br class="">
                                    hex= A<br class="">
                                    <br class="">
                                    Gerne würde ich die betreffenden
                                    Werte auch gerne loggen.<br class="">
                                    <br class="">
                                    Muss ich noch was einstellen damit
                                    alle Werte verarbeitet werden?<br class="">
                                    <br class="">
                                    Besten Dank für eure Hilfe / Tipps.<br class="">
                                    <br class="">
                                    Gruss Reto<br class="">
                                  </blockquote>
                                  Gruß<br class="">
                                  <br class="">
                                  Matthias<br class="">
                                </blockquote>
                                Gruß<br class="">
                                <br class="">
                                Matthias<br class="">
                              </blockquote>
                            </blockquote>
                            <br class="">
                            Gruß<br class="">
                            <br class="">
                            Matthias Behr<br class="">
                            <br class="">
                          </blockquote>
                        </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 class="">Gruß</div>
                        <div class=""><br class="">
                        </div>
                        <div class="">Matthias Behr</div>
                      </span> </div>
                    <br class="">
                  </div>
                </blockquote>
                <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 class="">Gruß</div>
            <div class=""><br class="">
            </div>
            <div class="">Matthias Behr</div>
          </span>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br class="">
  </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-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div class="">Gruß</div><div class=""><br class=""></div><div class="">Matthias Behr</div></span>
</div>
<br class=""></div></body></html>