[vz-users] vzlogger bekommt keine Daten vom IR Lesekopf

Andreas Goetz cpuidle at gmail.com
Sun Aug 11 09:17:01 CEST 2019


Spannend wäre ja mal was für ein Zähler das denn ist- oder wolltest Du die Frage als Rätsel aufziehen ;)

Viele Grüße, Andreas 

> Am 11.08.2019 um 09:09 schrieb Carsten Stock <Carsten_Stock at web.de>:
> 
> Hallo alle,
> 
> ich habe einen neuen Stromzähler bekommen und musste meinen Lesekopf
> umbauen. Mein Raspberry bekommt auch Daten über USB0, allerdings kann
> der vzlogger die Daten irgendwie nicht auswerten. Wenn ich den DUMP
> richtig interpretiere ist es ein sml format.
> 
> Ich habe jetzt alle möglichen Varianten versucht, ohne Erfolg! Ich habe
> jetzt keine Idee mehr. Könnt Ihr mir helfen?
> 
> Der USB Dump (/dev/ttyUSB0) sieht wie folgt aus:
> 
> 0000500 9c f0 1b 1b 1b 1b 01 01 01 01 76 05 00 70 64 00
> 0000520 01 62 00 72 63 01 01 76 01 01 05 00 28 2a 1f 0b
> 0000540 00 01 40 52 4b 00 04 39 03 12 72 62 01 65 00 28
> 0000560 28 c6 62 42 f3 82 00 76 05 00 78 7e 5e 62 00 62
> 0000600 00 72 63 07 01 20 00 00 a1 49 53 4b 00 04 39 03
> 0000620 12 07 01 00 62 0a ff f7 60 08 65 00 28 28 c6 74
> 0000640 77 07 01 00 60 32 01 01 01 01 00 49 53 4b 01 77
> 0000660 07 01 00 60 01 00 ff 01 01 01 01 00 21 49 53 4b
> 0000700 00 04 39 03 12 01 77 07 01 00 01 08 00 09 01 18
> 0000720 81 04 01 62 1e 52 ff 65 00 16 07 db 01 77 07 00
> 0000740 00 07 00 ff 01 01 62 1b 52 00 52 4e 01 01 01 63
> 0000760 4e 00 60 05 00 78 7e 5f 62 00 62 00 72 63 02 01
> 0001000 71 01 63 67 01 00 00 1b 1b 1b 1b 1a 02 70 46 fb
> 0001020 ff fe fe ff fe ff fb fc 3f ff ff f4 fe fc ff df
> 0001040 ff fc ff f8 ff dc fe fc fe f6 ff fd ff f8 fe ff
> 0001060 e2 ff fe fe fe fe ff fc ff e8 ff ff c2 fe f8 fc
> 0001100 ff 1b 1b 1b 1b 01 01 01 56 10 78 7e 60 62 00 62
> 0001120 00 72 63 01 01 76 01 01 01 00 20 2a 20 0b 0a 01
> 0001140 49 53 4b 00 04 39 03 12 72 62 01 05 00 e8 62 01
> 0001160 63 15 d1 00 76 05 00 78 7e 61 62 00 62 00 63 07
> 0001200 01 77 01 0b 0a 01 49 53 4b 00 04 39 03 12 07 00
> 0001220 60 08 ff ff 72 62 01 65 00 28 28 c7 74 77 07 01
> 0001240 00 00 00 01 01 01 01 01 04 49 53 4b 01 77 07 01
> 0001260 00 60 01 00 b9 01 01 01 0b 0a 01 49 53 4b 00 04
> 0001300 39 03 12 01 77 07 00 01 08 00 ff 65 00 1c 81 04
> 0001320 01 62 1e 52 ff 65 00 16 00 32 76 07 01 00 10 07
> 0001340 00 ff 01 01 62 1b 52 00 52 4b 00 00 63 cd 1d 00
> 0001360 76 05 00 78 7e 62 62 00 62 00 72 63 00 60 01 63
> 0001400 d6 59 00 00 00 1b 1b 1b 1b 1a 02 c5 b7 7c ff 94
> 0001420 9e fe ff 9e 9e f8 f9 ff ff ff ce fe ff fe ff fe
> 0001440 f8 fc fc f8 ee fe f2 ff fc ff ff ff fc fc 5f 6e
> 0001460 fa f0 ff fe f0 ff fb ff fc fc ff de e6 ff ff 1b
> 0001500 1b 1b 1b 01 01 01 01 76 05 00 f0 88 89 01 62 00
> 0001520 72 63 01 01 76 01 01 05 00 28 2a 01 00 00 01 49
> 0001540 53 4b 00 04 39 03 12 72 62 01 65 00 28 28 80 00
> 0001560 2c 5c 1c 76 05 00 78 7e 64 62 00 62 00 72 63 07
> 0001600 52 0a 0a 01 49 53 4b 00 04 39 03 12 07 01 00 62
> 0001620 0a 20 60 62 01 65 00 28 28 c8 74 77 07 01 00 60
> 
> 
> Meine vzlogger.conf:
> 
> {
>   "retry": 3,
>   "daemon": true,
>   "verbosity": 15,
>   "log": "/var/log/vzlogger.log",
> 
>   "local": {
>     "enabled": false,
>     "port": 8080,
>     "index": false,
>     "timeout": 0,
>     "buffer": 0,
>     "use_local_time": true,
> 
>   },
> 
>   "meters": [
>     {
>       "enabled": true,
>       "protocol": "sml",
>       "device": "/dev/ttyUSB0",
>       "baudrate": 9600,
>       "parity": "8n1",
>       "allowskip": false,
>       "interval": -1,
>       "aggtime": -1,
>       "aggfixedinterval": true,
>  
>   "channels": [
>         {
>           "api": "volkszaehler",
>           "uuid": "d9b28d20-b41f-11e9-85de-8970c894d413",
>           "identifier": "1-0:16.7.0",
>           "middleware": "http://localhost/middleware.php",
>           "aggmode": "avg",
>           "duplicates": 0
>         },
> 
>         {
>           "api": "volkszaehler",
>           "uuid": "13def240-b458-11e9-adc9-71b50e6de454",
>           "identifier": "1-0:1.8.0",
>           "middleware": "http://localhost/middleware.php",
>           "aggmode": "max",
>           "duplicates": 0
>         }
> 
>       ]
>     }
>   ]
> }
> 
> wenn ich die Konfig einlese bekomme ich folgende Meldung:
> 
> [Aug 11 00:07:11][main] vzlogger v0.7.0 based on
> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.
> [Aug 11 00:07:11]       Ignoring invalid field or type:
> use_local_time=true (boolean)
> [Aug 11 00:07:11][mtr0] Creating new meter with protocol sml.
> [Aug 11 00:07:11][mtr0] Meter configured, enabled.
> [Aug 11 00:07:11]       New meter initialized (protocol=sml)
> [Aug 11 00:07:11]       Configure channel.
> [Aug 11 00:07:11][chn0] New channel initialized (uuid=...94d413
> api=volkszaehler id=1-0:16.7.0)
> [Aug 11 00:07:11]       Configure channel.
> [Aug 11 00:07:11][chn1] New channel initialized (uuid=...6de454
> api=volkszaehler id=1-0:1.8.0)
> [Aug 11 00:07:11]       Have 1 meters.
> [Aug 11 00:07:11][main] log level is 15
> [Aug 11 00:07:11][main] daemon=1, local=0
> [Aug 11 00:07:11]       Daemonize process...
> 
> Im Logfile bekomme ich folgende Meldungen:
> 
> [Aug 11 00:01:37][main] vzlogger v0.7.0 based on
> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.
> [Aug 11 00:01:37]       Ignoring invalid field or type:
> use_local_time=true (boolean)
> [Aug 11 00:01:37][mtr0] Creating new meter with protocol sml.
> [Aug 11 00:01:37][mtr0] Meter configured, enabled.
> [Aug 11 00:01:37]       New meter initialized (protocol=sml)
> [Aug 11 00:01:37]       Configure channel.
> [Aug 11 00:01:37][chn0] New channel initialized (uuid=...94d413
> api=volkszaehler id=1-0:16.7.0)
> [Aug 11 00:01:37]       Configure channel.
> [Aug 11 00:01:37][chn1] New channel initialized (uuid=...6de454
> api=volkszaehler id=1-0:1.8.0)
> [Aug 11 00:01:37]       Have 1 meters.
> [Aug 11 00:01:37][main] log level is 15
> [Aug 11 00:01:37][main] daemon=1, local=0
> [Aug 11 00:01:37]       Daemonize process...
> [Aug 11 00:01:37]       Opened logfile /var/log/vzlogger.log
> [Aug 11 00:01:37][push] No pushDataServer defined.
> [Aug 11 00:01:37][]     ===> Start meters
> [Aug 11 00:01:37][mtr0] Meter connection established
> [Aug 11 00:01:37][mtr0] Meter thread started
> [Aug 11 00:01:37][mtr0] Meter is opened. Starting channels.
> [Aug 11 00:01:37][mtr0] Number of readers: 32
> [Aug 11 00:01:37][chn0] Logging thread started
> [Aug 11 00:01:37][chn0] Start logging thread for volkszaehler-api.
> Running as daemon: yes
> [Aug 11 00:01:37][mtr0] Config.daemon: 1
> [Aug 11 00:01:37][mtr0] Config.local: 0
> [Aug 11 00:01:37][chn1] Start logging thread for volkszaehler-api.
> Running as daemon: yes
> [Aug 11 00:01:37][chn1] Logging thread started
> [Aug 11 00:01:37][chn0] Using default volkszaehler api.
> [Aug 11 00:01:37][]     Startup done.
> [Aug 11 00:01:37][chn1] Using default volkszaehler api.
> [Aug 11 00:02:51][sml]  sml_transport_read returned len=0 after reopen
> [Aug 11 00:02:51][sml]  short message from sml_transport_read len=0
> [Aug 11 00:02:51][mtr0] Got 0 new readings from meter:
> [Aug 11 00:02:51][chn0] ==> number of tuples: 0
> [Aug 11 00:02:51][chn1] ==> number of tuples: 0
> [Aug 11 00:02:51][chn0] JSON request body is null. Nothing to send now.
> [Aug 11 00:02:51][chn1] JSON request body is null. Nothing to send now.
> [Aug 11 00:05:01]       MapContainer::quit terminating on signal 15.
> [Aug 11 00:05:01]       Closing connections to terminate
> [Aug 11 00:05:01][main] MeterMap::cancel entered...
> [Aug 11 00:05:01][main] MeterMap::cancel wait for readingthread
> [Aug 11 00:05:01][main] MeterMap::cancel wait for meter::close
> [Aug 11 00:05:01][main] MeterMap::cancel finished.
> [Aug 11 00:05:01][main] MapContainer::quit finished.
> [Aug 11 00:06:36][main] vzlogger v0.7.0 based on
> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.
> [Aug 11 00:06:36]       Ignoring invalid field or type:
> use_local_time=true (boolean)
> [Aug 11 00:06:36][mtr0] Creating new meter with protocol sml.
> [Aug 11 00:06:36][mtr0] Meter configured, enabled.
> [Aug 11 00:06:36]       New meter initialized (protocol=sml)
> [Aug 11 00:06:36]       Configure channel.
> [Aug 11 00:06:36][chn0] New channel initialized (uuid=...94d413
> api=volkszaehler id=1-0:16.7.0)
> [Aug 11 00:06:36]       Configure channel.
> [Aug 11 00:06:36][chn1] New channel initialized (uuid=...6de454
> api=volkszaehler id=1-0:1.8.0)
> [Aug 11 00:06:36]       Have 1 meters.
> [Aug 11 00:06:36][main] log level is 15
> [Aug 11 00:06:36][main] daemon=1, local=0
> [Aug 11 00:06:36]       Daemonize process...
> [Aug 11 00:06:36]       Opened logfile /var/log/vzlogger.log
> [Aug 11 00:06:36][push] No pushDataServer defined.
> [Aug 11 00:06:36][]     ===> Start meters
> [Aug 11 00:06:36][mtr0] Meter connection established
> [Aug 11 00:06:36][mtr0] Meter thread started
> [Aug 11 00:06:36][mtr0] Meter is opened. Starting channels.
> [Aug 11 00:06:36][mtr0] Number of readers: 32
> [Aug 11 00:06:36][chn0] Logging thread started
> [Aug 11 00:06:36][chn0] Start logging thread for volkszaehler-api.
> Running as daemon: yes
> [Aug 11 00:06:36][mtr0] Config.daemon: 1
> [Aug 11 00:06:36][chn1] Logging thread started
> [Aug 11 00:06:36][mtr0] Config.local: 0
> [Aug 11 00:06:36][]     Startup done.
> [Aug 11 00:06:36][chn1] Start logging thread for volkszaehler-api.
> Running as daemon: yes
> [Aug 11 00:06:36][chn0] Using default volkszaehler api.
> [Aug 11 00:06:36][chn1] Using default volkszaehler api.
> [Aug 11 00:07:11][main] vzlogger v0.7.0 based on
> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.
> [Aug 11 00:07:11]       Ignoring invalid field or type:
> use_local_time=true (boolean)
> [Aug 11 00:07:11][mtr0] Creating new meter with protocol sml.
> [Aug 11 00:07:11][mtr0] Meter configured, enabled.
> [Aug 11 00:07:11]       New meter initialized (protocol=sml)
> [Aug 11 00:07:11]       Configure channel.
> [Aug 11 00:07:11][chn0] New channel initialized (uuid=...94d413
> api=volkszaehler id=1-0:16.7.0)
> [Aug 11 00:07:11]       Configure channel.
> [Aug 11 00:07:11][chn1] New channel initialized (uuid=...6de454
> api=volkszaehler id=1-0:1.8.0)
> [Aug 11 00:07:11]       Have 1 meters.
> [Aug 11 00:07:11][main] log level is 15
> [Aug 11 00:07:11][main] daemon=1, local=0
> [Aug 11 00:07:11]       Daemonize process...
> [Aug 11 00:07:11]       Opened logfile /var/log/vzlogger.log
> [Aug 11 00:07:11][push] No pushDataServer defined.
> [Aug 11 00:07:11][]     ===> Start meters
> [Aug 11 00:07:11][mtr0] Meter connection established
> [Aug 11 00:07:11][mtr0] Meter thread started
> [Aug 11 00:07:11][mtr0] Meter is opened. Starting channels.
> [Aug 11 00:07:11][mtr0] Number of readers: 32
> [Aug 11 00:07:11][mtr0] Config.daemon: 1
> [Aug 11 00:07:11][chn0] Logging thread started
> [Aug 11 00:07:11][mtr0] Config.local: 0
> [Aug 11 00:07:11][chn0] Start logging thread for volkszaehler-api.
> Running as daemon: yes
> [Aug 11 00:07:11][chn1] Logging thread started
> [Aug 11 00:07:11][]     Startup done.
> [Aug 11 00:07:11][chn0] Using default volkszaehler api.
> [Aug 11 00:07:11][chn1] Start logging thread for volkszaehler-api.
> Running as daemon: yes
> [Aug 11 00:07:11][chn1] Using default volkszaehler api.
> [Aug 11 00:09:16][sml]  reopen called. current fd=4
> [Aug 11 00:09:16][sml]  after reopen fd=4
> 
> Vielen Dank für eure Hilfe.
> 
> Gruß,
> 
> Carsten
> 
> 
> <hexdmp.txt>
> <vzlogger.conf>
> <vzlogger.log>


More information about the volkszaehler-users mailing list