[vz-users] Fehler mit Vzlogger

michael19 michael19 at freenet.de
So Jun 7 20:18:48 CEST 2020


Hallo,
bitte um Hilfe da ich nicht weiter weiß.
Kann seit einiger Zeit keine Powerimpulse mehr empfangen.
Habe deswegen den Raspi schon neu installiert und die neue Version ist jetzt 
Buster. In der vzlogger.log werden keine Impulse empfangen. Habe versucht die 
USB Buchse abzufragen ohne Erfolg. Leider kann ich den Impuls nirgendwo sehen. 
Zu dem "[s0]   Counter thread started with blocking hwif" kann ich im Internet 
keine Erklärung finden.
Kann der Lesekopf defekt sein? Wie kann ich das messen? Die Kontroll-LED geht 
an und aus bei Durchlauf der Zählerscheibe.
Als Anhang die benötigten Daten. 


Mit freundlichem Gruß
Michael
-------------- nächster Teil --------------

Ferraris-Zähler

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

offizielles VZ Image
git checkout
M	etc/middleware.json
M	htdocs/js/options.js
Your branch is up to date with 'origin/master'.

vzlogger -V
0.8.0
 based on git version: heads/master-0-g8d06176360
 last commit date: Sat, 18 Jan 2020 09:23:08 +0100


/etc/vzlogger.conf
{
        // General settings
          "retry": 0,
          "daemon": true,
          "verbosity": 15,
          "log": "/var/log/vzlogger.log",

        // Build-in HTTP server
  "local":
        {
            "enabled": false,
            "port": 8080,
            "index": true,
            "timeout": 30,
            "buffer": -1,
        },

  "meters": [

        {     /* Beispiel-Ferraris-Meter */
             "enabled" : true,
             "protocol" : "s0",
             "device" : "/dev/ttyUSB0",
             "aggtime" : -1,
             "aggfixedinterval" : false,
             "channels" : [{
                           "uuid" : "67b28250-a045-11ea-b972-c3d67fd79ff6",
                           "api": "volkszaehler",
                           "middleware" : "http://127.0.0.1/middleware.php",
                           "identifier": "Impulse",
                           "aggmode" : "none",

                         }]

        }
          ]
}


vzlogger.log
[Jun 07 19:23:05][main] vzlogger v0.8.0 based on heads/master-0-g8d06176360 from Sat, 18 Jan 2020 09:23:08 +0100 started.
[Jun 07 19:23:05][mtr0] Creating new meter with protocol s0.
[Jun 07 19:23:05][mtr0] Meter configured, enabled.
[Jun 07 19:23:05]       New meter initialized (protocol=s0)
[Jun 07 19:23:05]       Configure channel.
[Jun 07 19:23:05][chn0] New channel initialized (uuid=...d79ff6 api=volkszaehler id=Impulse)
[Jun 07 19:23:05]       Have 1 meters.
[Jun 07 19:23:05][main] log level is 15
[Jun 07 19:23:05][main] daemon=1, local=1
[Jun 07 19:23:05]       Daemonize process...
[Jun 07 19:23:05]       Opened logfile /var/log/vzlogger.log
[Jun 07 19:23:05][push] No pushDataServer defined.
[Jun 07 19:23:05][]     ===> Start meters
[Jun 07 19:23:05][s0]   counter_thread created
[Jun 07 19:23:05][mtr0] Meter connection established
[Jun 07 19:23:05][mtr0] Meter thread started
[Jun 07 19:23:05][mtr0] Meter is opened. Starting channels.
[Jun 07 19:23:05][chn0] Logging thread started
[Jun 07 19:23:05][http] Starting local interface HTTPd on port 8080
[Jun 07 19:23:05][s0]   Counter thread started with blocking hwif
[Jun 07 19:23:05][mtr0] Number of readers: 4
[Jun 07 19:23:05][mtr0] Config.daemon: 1
[Jun 07 19:23:05][mtr0] Config.local: 1
[Jun 07 19:23:05][]     Startup done.
[Jun 07 19:23:05][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
[Jun 07 19:23:05][chn0] Using default volkszaehler api.


git log -n 1
commit efb4722f0a140c489dc0d1c00bc15c37b0a81f8a (HEAD -> master, origin/master, origin/HEAD)
Author: trabant-rgb <59509759+trabant-rgb at users.noreply.github.com>
Date:   Wed May 13 10:53:33 2020 +0200

    Use additional right-aligned last axis as template #795 (#805)



Udo's ferrariszaehler_lesekopf

udevadm info --query=all --name=/dev/ttyUSB0

P: /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0
N: ttyUSB0
L: 0
S: serial/by-path/platform-20980000.usb-usb-0:1.2:1.0-port0
S: serial/by-id/usb-Silicon_Labs_USB-Ferraris-Kopf_001DDE71-if00-port0
E: DEVPATH=/devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0
E: DEVNAME=/dev/ttyUSB0
E: MAJOR=188
E: MINOR=0
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=20585667
E: ID_VENDOR=Silicon_Labs
E: ID_VENDOR_ENC=Silicon\x20Labs
E: ID_VENDOR_ID=10c4
E: ID_MODEL=USB-Ferraris-Kopf
E: ID_MODEL_ENC=USB-Ferraris-Kopf
E: ID_MODEL_ID=ea60
E: ID_REVISION=0100
E: ID_SERIAL=Silicon_Labs_USB-Ferraris-Kopf_001DDE71
E: ID_SERIAL_SHORT=001DDE71
E: ID_TYPE=generic
E: ID_BUS=usb
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=cp210x
E: ID_VENDOR_FROM_DATABASE=Cygnal Integrated Products, Inc.
E: ID_MODEL_FROM_DATABASE=CP2102/CP2109 UART Bridge Controller [CP210x family]
E: ID_PATH=platform-20980000.usb-usb-0:1.2:1.0
E: ID_PATH_TAG=platform-20980000_usb-usb-0_1_2_1_0
E: DEVLINKS=/dev/serial/by-path/platform-20980000.usb-usb-0:1.2:1.0-port0 /dev/serial/by-id/usb-Silicon_Labs_USB-Ferraris-Kopf_001DDE71-if00-port0
E: TAGS=:systemd:



strace -ttt -e read cat  < /dev/ttyUSB0 > /dev/null

1591550518.534653 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250\3\0\0004\0\0\0"..., 512) = 512
1591550518.539505 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960
1591550518.543494 read(3, "A*\0\0\0aeabi\0\1 \0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 43) = 43
1591550518.548329 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960
1591550518.550800 read(3, "A*\0\0\0aeabi\0\1 \0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 43) = 43
1591550518.552768 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960
1591550518.554450 read(3, "A*\0\0\0aeabi\0\1 \0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 43) = 43
1591550518.555882 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960
1591550518.557992 read(3, "A*\0\0\0aeabi\0\1 \0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 43) = 43
1591550518.560147 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960
1591550518.561600 read(3, "A*\0\0\0aeabi\0\1 \0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 43) = 43
1591550518.563100 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960
1591550518.564691 read(3, "A*\0\0\0aeabi\0\1 \0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 43) = 43
1591550518.569582 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\300x\1\0004\0\0\0"..., 512) = 512
1591550518.572539 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2800) = 2800
1591550518.574579 read(3, "A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\23\1\24"..., 47) = 47
1591550518.576791 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2800) = 2800
1591550518.579137 read(3, "A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\23\1\24"..., 47) = 47
1591550518.580594 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2800) = 2800
1591550518.582188 read(3, "A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\23\1\24"..., 47) = 47
1591550518.583575 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2800) = 2800
1591550518.585608 read(3, "A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\23\1\24"..., 47) = 47
1591550518.587231 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2800) = 2800
1591550518.589369 read(3, "A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\23\1\24"..., 47) = 47
1591550518.590751 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2800) = 2800
1591550518.592141 read(3, "A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\23\1\24"..., 47) = 47
1591550518.600796 read(0, "", 131072)   = 0
1591550525.482366 +++ exited with 0 +++


Mehr Informationen über die Mailingliste volkszaehler-users