[vz-users] Raspberry bleibt hängen

Heine.thomas at online.de Heine.thomas at online.de
Wed Jun 20 20:58:53 CEST 2018


Hallo,

Habe mein Logger neu auf einem Raspberry Pi 3 aufgezogen.
Netzteil Ist ein Meanwell 2,5A Hutschienennetzteil (5,12V). USB-Kabel
ist win AWG22 Micro-Usb-Kabel (den größten Querschnitt, welchen im im
Netz gefunden habe).
Hab auch schon andere Netzteile ausprobiert, ändert nichts.
Angeschlossen sind 2 USB-Leseköpfe und das Lan-Kabel.

Verwendet habe ich das aktuelle Image nach aktueller Anleitung.
Hab auch alles Upgedatet wie in der Anleitung beschrieben.

Der Logger funktioniert inzwischen auch gut. Leider belibt er meist 1-2x
am Tag hängen.

Weiß nicht, woran es liegt.
Im Anhang mal ein das Log des entsprechenden Zeitpunktes und ein
Frontend-Image.
Kann nicht sagen woran es liegt.
Wenn er hängt ist die Rote LED an und die grüne meist auch. Manchmal geht die Grüne kurz aus und dann wieder an.
Teilweise ist es so, dass wenn ich mit Putty drauf will, komm ich bis zur Benutzerabfrage.
Den kann ich dann noch eigeben . Dann kommt jedoch
(Server unexpectedly closed network connection)


Wie kann ich herausfinden, was der Pi killt?

Danke vorab

Gruß

Thomas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20180620/471c3caf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lbddfpepibbjpbjk.png
Type: image/png
Size: 5095 bytes
Desc: not available
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20180620/471c3caf/attachment-0001.png>
-------------- next part --------------
[Jun 19 14:51:45][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=-7553.00 ts=1529412705546
[Jun 19 14:51:45][chn0] Adding reading to queue (value=21015958.90 ts=1529412705546)
[Jun 19 14:51:45][chn1] Adding reading to queue (value=32300459.70 ts=1529412705546)
[Jun 19 14:51:45][chn2] Adding reading to queue (value=-7553.00 ts=1529412705546)
[Jun 19 14:51:45][MAX]  21015958.900000 @ 1529412703580
[Jun 19 14:51:45][MAX]  21015958.900000 @ 1529412705546
[Jun 19 14:51:45][MAX]  RESULT 21015958.900000 @ 1529412705546
[Jun 19 14:51:45][MAX]  32300455.500000 @ 1529412703580
[Jun 19 14:51:45][MAX]  32300459.700000 @ 1529412705546
[Jun 19 14:51:45][MAX]  RESULT 32300459.700000 @ 1529412705546
[Jun 19 14:51:45][mtr1] Got 4 new readings from meter:
[Jun 19 14:51:45][mtr1] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=47187167.40 ts=1529412705929
[Jun 19 14:51:45][mtr1] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=47186167.40 ts=1529412705929
[Jun 19 14:51:45][mtr1] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=1000.00 ts=1529412705929
[Jun 19 14:51:45][mtr1] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=-7984.00 ts=1529412705929
[Jun 19 14:51:45][chn3] Adding reading to queue (value=47187167.40 ts=1529412705929)
[Jun 19 14:51:45][chn4] Adding reading to queue (value=-7984.00 ts=1529412705929)
[Jun 19 14:51:45][MAX]  47187163.000000 @ 1529412703930
[Jun 19 14:51:45][MAX]  47187167.400000 @ 1529412705929
[Jun 19 14:51:45][MAX]  RESULT 47187167.400000 @ 1529412705929
[Jun 19 14:51:47][chn2] CURL: HTTP 1.0, assume close after body
[Jun 19 14:51:47][chn2] CURL: Received 26 bytes
[Jun 19 14:51:47][chn2] CURL: Received '{"version":"0.3","rows":5}' bytes
[Jun 19 14:51:47][chn2] CURL: Curl_http_done: called premature == 0
[Jun 19 14:51:47][chn2] CURL: Closing connection 29899
[Jun 19 14:51:47][chn2] CURL Request succeeded with code: 200
[Jun 19 14:51:47][chn0] JSON request body: [ [ 1529412689551, 21015958.900000002 ] ]
[Jun 19 14:51:47][chn2] emptied all (5) values
[Jun 19 14:51:47][chn2] ==> number of tuples: 6
[Jun 19 14:51:47][chn2] compare: 1529412693549 1529412695551
[Jun 19 14:51:47][chn0] CURL: Hostname localhost was found in DNS cache
[Jun 19 14:51:47][chn2] compare: 1529412695551 1529412697581
[Jun 19 14:51:47][chn2] compare: 1529412697581 1529412699550
[Jun 19 14:51:47][chn0] CURL:   Trying ::1...
[Jun 19 14:51:47][chn2] compare: 1529412699550 1529412701548
[Jun 19 14:51:47][chn0] CURL: TCP_NODELAY set
[Jun 19 14:51:47][chn2] compare: 1529412701548 1529412703580
[Jun 19 14:51:47][chn2] compare: 1529412703580 1529412705546
[Jun 19 14:51:47][chn2] copied 6/6 values for middleware transmission
[Jun 19 14:51:47][chn0] CURL: Connected to localhost (::1) port 80 (#29900)
[Jun 19 14:51:47][chn0] CURL: Sent 41 bytes..
[Jun 19 14:51:47][chn0] CURL: Sent '[ [ 1529412689551, 21015958.900000002 ] ]' bytes
[Jun 19 14:51:47][chn0] CURL: upload completely sent off: 41 out of 41 bytes
[Jun 19 14:51:47][mtr0] Got 7 new readings from meter:
[Jun 19 14:51:47][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=21015958.90 ts=1529412707548
[Jun 19 14:51:47][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=21014958.90 ts=1529412707548
[Jun 19 14:51:47][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=1000.00 ts=1529412707548
[Jun 19 14:51:47][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=32300463.90 ts=1529412707548
[Jun 19 14:51:47][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=32299463.90 ts=1529412707548
[Jun 19 14:51:47][mtr0] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=1000.00 ts=1529412707548
[Jun 19 14:51:47][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=-7556.00 ts=1529412707548
[Jun 19 14:51:47][chn0] Adding reading to queue (value=21015958.90 ts=1529412707548)
[Jun 19 14:51:47][chn1] Adding reading to queue (value=32300463.90 ts=1529412707548)
[Jun 19 14:51:47][chn2] Adding reading to queue (value=-7556.00 ts=1529412707548)
[Jun 19 14:51:47][MAX]  21015958.900000 @ 1529412705546
[Jun 19 14:51:47][MAX]  21015958.900000 @ 1529412707548
[Jun 19 14:51:47][MAX]  RESULT 21015958.900000 @ 1529412707548
[Jun 19 14:51:47][MAX]  32300459.700000 @ 1529412705546
[Jun 19 14:51:47][MAX]  32300463.900000 @ 1529412707548
[Jun 19 14:51:47][MAX]  RESULT 32300463.900000 @ 1529412707548
[Jun 19 14:51:47][mtr1] Got 4 new readings from meter:
[Jun 19 14:51:47][mtr1] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=47187171.90 ts=1529412707961
[Jun 19 14:51:47][mtr1] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=47186171.90 ts=1529412707961
[Jun 19 14:51:47][mtr1] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=1000.00 ts=1529412707961
[Jun 19 14:51:47][mtr1] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=-7984.00 ts=1529412707961
[Jun 19 14:51:47][chn3] Adding reading to queue (value=47187171.90 ts=1529412707961)
[Jun 19 14:51:47][chn4] Adding reading to queue (value=-7984.00 ts=1529412707961)
[Jun 19 14:51:47][MAX]  47187167.400000 @ 1529412705929
[Jun 19 14:51:47][MAX]  47187171.900000 @ 1529412707961
[Jun 19 14:51:47][MAX]  RESULT 47187171.900000 @ 1529412707961
[Jun 19 14:51:49][mtr0] Got 7 new readings from meter:
[Jun 19 14:51:50][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=21015958.90 ts=1529412709578
[Jun 19 14:51:50][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=21014958.90 ts=15294127[Jun 19 19:03:52][main] vzlogger v0.6.1 based on $
[Jun 19 19:03:52][mtr0] Creating new meter with protocol sml.
[Jun 19 19:03:52][sml]  pullseq len:0 found
[Jun 19 19:03:52][mtr0] Meter configured, enabled.
[Jun 19 19:03:52]       New meter initialized (protocol=sml)
[Jun 19 19:03:52]       Configure channel.
[Jun 19 19:03:52][chn0] New channel initialized (uuid=...525e04 api=volkszaehler id=1-0:1.8.0*255)
[Jun 19 19:03:52]       Configure channel.
[Jun 19 19:03:52][chn1] New channel initialized (uuid=...f0b4d4 api=volkszaehler id=1-0:2.8.0*255)
[Jun 19 19:03:52]       Configure channel.
[Jun 19 19:03:52][chn2] New channel initialized (uuid=...704a2a api=volkszaehler id=1-0:16.7.0*255)
[Jun 19 19:03:52][mtr1] Creating new meter with protocol sml.
[Jun 19 19:03:52][sml]  pullseq len:0 found
[Jun 19 19:03:52][mtr1] Meter configured, enabled.
[Jun 19 19:03:52]       New meter initialized (protocol=sml)
[Jun 19 19:03:52]       Configure channel.
[Jun 19 19:03:52][chn3] New channel initialized (uuid=...1fd458 api=volkszaehler id=1-0:2.8.0*255)
[Jun 19 19:03:52]       Configure channel.
[Jun 19 19:03:52][chn4] New channel initialized (uuid=...73cf03 api=volkszaehler id=1-0:16.7.0*255)
[Jun 19 19:03:52]       Have 2 meters.
[Jun 19 19:03:52][main] log level is 15
[Jun 19 19:03:52][main] daemon=0, local=1
[Jun 19 19:03:52]       Process not  daemonized...
[Jun 19 19:03:52]       Opened logfile /var/log/vzlogger.log
[Jun 19 19:03:52][push] No pushDataServer defined.
[Jun 19 19:03:52][]     ===> Start meters
[Jun 19 19:03:52][mtr0] Meter connection established
[Jun 19 19:03:52][mtr0] Meter thread started
[Jun 19 19:03:52][mtr0] Meter is opened. Starting channels.
[Jun 19 19:03:52][mtr0] Number of readers: 32
[Jun 19 19:03:52][mtr0] Config.daemon: 0
[Jun 19 19:03:52][chn0] Logging thread started
[Jun 19 19:03:52][mtr0] Config.local: 1
[Jun 19 19:03:52][chn1] Logging thread started
[Jun 19 19:03:52][chn0] Start logging thread for volkszaehler-api. Running as daemon: no
[Jun 19 19:03:52][chn0] Using default volkszaehler api.
[Jun 19 19:03:52][chn1] Start logging thread for volkszaehler-api. Running as daemon: no
[Jun 19 19:03:52][chn2] Logging thread started
[Jun 19 19:03:52][chn1] Using default volkszaehler api.
[Jun 19 19:03:52][chn2] Start logging thread for volkszaehler-api. Running as daemon: no
[Jun 19 19:03:52][chn2] Using default volkszaehler api.
[Jun 19 19:03:52][mtr1] Meter connection established
[Jun 19 19:03:52][mtr1] Meter thread started
[Jun 19 19:03:52][mtr1] Number of readers: 32
[Jun 19 19:03:52][mtr1] Config.daemon: 0
[Jun 19 19:03:52][mtr1] Meter is opened. Starting channels.
[Jun 19 19:03:52][mtr1] Config.local: 1
[Jun 19 19:03:52][chn3] Logging thread started
[Jun 19 19:03:52][chn3] Start logging thread for volkszaehler-api. Running as daemon: no
[Jun 19 19:03:52][chn4] Logging thread started
[Jun 19 19:03:52][http] Starting local interface HTTPd on port 8080
[Jun 19 19:03:52][chn3] Using default volkszaehler api.
[Jun 19 19:03:52][chn4] Start logging thread for volkszaehler-api. Running as daemon: no
[Jun 19 19:03:52][]     Startup done.
[Jun 19 19:03:52][chn4] Using default volkszaehler api.
[Jun 19 19:03:54][mtr1] Got 4 new readings from meter:
[Jun 19 19:03:54][mtr1] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=47202956.20 ts=1529427834233
[Jun 19 19:03:54][mtr1] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=47201956.20 ts=1529427834233
[Jun 19 19:03:54][mtr1] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=1000.00 ts=1529427834233
[Jun 19 19:03:54][mtr1] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=-474.00 ts=1529427834233
[Jun 19 19:03:54][chn3] Adding reading to queue (value=47202956.20 ts=1529427834233)
[Jun 19 19:03:54][chn4] Adding reading to queue (value=-474.00 ts=1529427834233)
[Jun 19 19:03:54][MAX]  47202956.200000 @ 1529427834233
[Jun 19 19:03:54][MAX]  RESULT 47202956.200000 @ 1529427834233
[Jun 19 19:03:54][chn3] ==> number of tuples: 1
[Jun 19 19:03:54][chn3] compare: 0 1529427834233
[Jun 19 19:03:54][chn3] copied 1/1 values for middleware transmission
[Jun 19 19:03:54][chn3] JSON request body: [ [ 1529427834233, 47202956.200000003 ] ]
[Jun 19 19:03:54][chn4] ==> number of tuples: 1
[Jun 19 19:03:54][chn4] compare: 0 1529427834233
[Jun 19 19:03:54][chn4] copied 1/1 values for middleware transmission
[Jun 19 19:03:54][chn3] CURL:   Trying ::1...
[Jun 19 19:03:54][chn3] CURL: TCP_NODELAY set
[Jun 19 19:03:54][chn3] CURL: Connected to localhost (::1) port 80 (#0)
[Jun 19 19:03:54][chn3] CURL: Sent 41 bytes..
[Jun 19 19:03:54][chn3] CURL: Sent '[ [ 1529427834233, 47202956.200000003 ] ]' bytes
[Jun 19 19:03:54][chn3] CURL: upload completely sent off: 41 out of 41 bytes
[Jun 19 19:03:54][mtr0] Got 7 new readings from meter:
[Jun 19 19:03:54][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=21016589.10 ts=1529427834352
[Jun 19 19:03:54][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=21015589.10 ts=1529427834352
[Jun 19 19:03:54][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=1000.00 ts=1529427834352
[Jun 19 19:03:54][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=32314548.50 ts=1529427834352
[Jun 19 19:03:54][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=32313548.50 ts=1529427834352
[Jun 19 19:03:54][mtr0] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=1000.00 ts=1529427834352
[Jun 19 19:03:54][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=45.00 ts=1529427834352
[Jun 19 19:03:54][chn0] Adding reading to queue (value=21016589.10 ts=1529427834352)
[Jun 19 19:03:54][chn1] Adding reading to queue (value=32314548.50 ts=1529427834352)
[Jun 19 19:03:54][chn2] Adding reading to queue (value=45.00 ts=1529427834352)
[Jun 19 19:03:54][MAX]  21016589.100000 @ 1529427834352
[Jun 19 19:03:54][MAX]  RESULT 21016589.100000 @ 1529427834352
[Jun 19 19:03:54][MAX]  32314548.500000 @ 1529427834352
[Jun 19 19:03:54][chn0] ==> number of tuples: 1
-------------- next part --------------
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

# Part of DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI deamon'.

echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device

# Register I2C RTC bei grosser neuer Erweiterung
# echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device

# GPIOs exportieren und Datenrichtung einstellen, 'Schaltausgang_new'
echo 24 > /sys/class/gpio/export
echo 25 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio24/direction
echo out > /sys/class/gpio/gpio25/direction

# hwclock -s

exit 0
-------------- next part --------------
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fehler Raspi.jpg
Type: image/jpeg
Size: 168340 bytes
Desc: not available
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20180620/471c3caf/attachment-0001.jpg>


More information about the volkszaehler-users mailing list