Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
hardware:controllers:gaszaehler_lesekopf [2016/09/24 12:06] – [Gaszähler-Lesekopf] udo1 | hardware:controllers:gaszaehler_lesekopf [2022/04/21 22:16] (aktuell) – [vzlogger-Konfiguration] daemon, logfile & port jau |
---|
Die Spannungsversorgung des Gaszähler-Kopfs erfolgt über USB.\\ | Die Spannungsversorgung des Gaszähler-Kopfs erfolgt über USB.\\ |
| |
<note important>Hinweise zum Gaszähler-Kopf gibt es bei udo.volksz@gmail.com</note>\\ | <note important>Wir sind derzeit leider nicht in der Lage fertige Hardware anzubieten</note>\\ |
| |
=====Features===== | =====Features===== |
=====Stromlaufplan===== | =====Stromlaufplan===== |
| |
{{:hardware:controllers:gaszaehler-kopf_stromlaufplan.png?800|}} | {{:hardware:controllers:gaszaehler-kopf_stromlaufplan.png?800|}}\\ |
Bild zur größeren Darstellung zweimal anklicken.\\ | Bild zur größeren Darstellung zweimal anklicken.\\ |
| |
stty -F /dev/ttyUSB0 300 raw | stty -F /dev/ttyUSB0 300 raw |
strace -ttt -e read cat < /dev/ttyUSB0 | strace -ttt -e read cat < /dev/ttyUSB0 |
</code> | </code>\\ |
| Das betätigen des Reed-Kontaktes löst einen Impuls aus, der über USB als Steuerzeichen “NUL”, Hexadezimal: 00, übertragen wird, |
| bzw. löst einen SO-Impuls am S0-Ausgang aus. |
| Dieses Zeichen wird mit vzlogger erfasst. |
| \\ |
\\ | \\ |
Beispiel-Konfig für vzlogger wenn Anschluss nur über USB-Leitung erfolgt:\\ | Beispiel-Konfig für vzlogger wenn Anschluss über USB-Leitung erfolgt:\\ |
<code base|vzlogger-Konfiguration> | <code base vzlogger.conf> |
/** | /** |
* vzlogger configuration | * vzlogger configuration |
| |
{ | { |
"retry" : 30, /* how long to sleep between failed requests, in seconds */ | "retry" : 0, /* how long to sleep between failed requests, in seconds */ |
"daemon": true, /* run periodically */ | "verbosity" : 15, /* one of 0 = log_error and log_warning, 5 = log_info, 10 = log_debug, 15 = log_finest */ |
"verbosity" : 0, /* one of 0 = log_error and log_warning, 5 = log_info, 10 = log_debug, 15 = log_finest */ | "log" : "/var/log/vzlogger/vzlogger.log", /* path to logfile, optional */ |
"log" : "/tmp/vzlogger.log", /* path to logfile, optional */ | |
| |
"local" : { | "local" : { |
"enabled" : false, /* local HTTPd for serving live readings, 'false' für Daten an die middleware !!! */ | "enabled" : false, /* local HTTPd for serving live readings, 'false' für Daten an die middleware !!! */ |
"port" : 8080, /* the TCP port for the local HTTPd */ | "port" : 8081, /* the TCP port for the local HTTPd */ |
"index" : true, /* should we provide a index listing of available channels if no UUID was requested? */ | "index" : true, /* should we provide a index listing of available channels if no UUID was requested? */ |
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */ | "timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */ |
"protocol" : "s0", | "protocol" : "s0", |
"device" : "/dev/ttyUSB0", | "device" : "/dev/ttyUSB0", |
"aggtime" : 30, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */ | "aggtime" : -1, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */ |
"aggfixedinterval" : false, /* round all timestamps to middleware to nearest aggtime, reduces accuracy, use only when needed */ | "aggfixedinterval" : false, /* round all timestamps to middleware to nearest aggtime, reduces accuracy, use only when needed */ |
"channel" : { | "channels" : { |
"uuid" : "UUID des Kanals", | "uuid" : "UUID des Kanals", |
"middleware" : "http://localhost/middleware.php", /* http://IP auf dem die Middleware läuft */ | "middleware" : "http://localhost/middleware.php", /* http://IP auf dem die Middleware läuft */ |
"identifier": "Impulse", /* counts the S0 impulses. Can also supply "Power" readings */ | "identifier": "Impulse", /* counts the S0 impulses. Can also supply "Power" readings */ |
"aggmode" : "SUM" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/ | "aggmode" : "none" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/ |
} | } |
}] | }] |
</code> | </code> |
| |
<note important>Wenn der Anschluss über S0 erfolgt (z.B. über die RPi-Erweiterungen), sollte auch die neueste Version von vzlogger genutzt werden.\\ Um eine entsprechende vzlogger-conf zu erstellen kann der [[http://volkszaehler.github.io/vzlogger/|vzlogger-Editor]] verwendet werden.</note> | <note important>Um eine vzlogger-conf für S0-Impulse zu erstellen kann der [[http://volkszaehler.github.io/vzlogger/|vzlogger-Editor]] verwendet werden.</note> |
| |
| |