[vz-users] ISKRA MT174 keine Zählerwerte

Frank Richter frank.richter83 at gmail.com
Sat Apr 20 12:17:33 CEST 2019


Hallo Sven,

da klappt wohl die Baudraten-Umschaltung nicht, die bei deinem manuellen
Versuch gar nicht stattfindet.

Probier mal alternativ "ackseq": "auto".

Grüße
Frank

Sven Börner <svenboerner at freenet.de> schrieb am Sa., 20. Apr. 2019, 11:35:

> Hallo zusammen,
> ich habe einen 2-Richtungszähler ISKRA MT174-D1A52-G22-M3K0. Zum Auslesen
> des D0-Protokoll’s nutze ich einen Volkszähler-Lesekopf RS232 mit USB/RS232
> Adapter an einem RPi Model B Rev 2. Den Lesekopf habe ich mit einem PC
> getestet. Das Volkszähler Image habe ich auf dem RPi installiert, die
> vzlogger.conf wie folgt angepasst:
>
> {
>   "retry": 0,
>   "daemon": true,
>   "verbosity": 15,
>   "log": "/var/log/vzlogger.log",
>   "local": {
>     "enabled": false,
>     "port": 8080,
>     "index": true,
>     "timeout": 0,
>     "buffer": 0
>   },
>   "meters": [
>     {
>       "enabled": true,
>       "allowskip": false,
>       "interval": -1,
>       "aggtime": -1,
>       "aggfixedinterval": false,
>       "channels": [
>         {
>           "api": "volkszaehler",
>           "uuid": "fd06aec0-61a2-11e9-9086-b93124937ae5",
>           "identifier": "1-0:1.8.1",
>           "middleware": "http://localhost/middleware.php",
>           "aggmode": "none",
>           "duplicates": 0
>         }
>       ],
>       "protocol": "d0",
>       "device": "/dev/ttyUSB0",
>       "dump_file": "/var/log/d0-dump.txt",
>       "pullseq": "2F3F210D0A",
>       "ackseq": "063035300d0a",
>       "baudrate": 300,
>       "baudrate_read": 9600,
>       "parity": "7e1",
>       "wait_sync": "off",
>       "read_timeout": 10,
>       "baudrate_change_delay": 0
>     }
>   ]
> }
>
>
> *und diesen Kanal angelegt:*
>
> Leider bekomme ich keine Werte angezeigt.
>
> *Die vzlogger.log sieht wie folgt aus:*
>
> [Apr 18 08:39:13][main] vzlogger v0.7.0 based on
> heads/master-0-gc567220a06 from Sun, 14 Apr 2019 10:25:20 +0200 started.
> [Apr 18 08:39:13][mtr0] Creating new meter with protocol d0.
> [Apr 18 08:39:13][d0]   pullseq len:5 found
> [Apr 18 08:39:13][d0]   ackseq len:6 found ^F050
> , 6
> [Apr 18 08:39:13][mtr0] Meter configured, enabled.
> [Apr 18 08:39:13]       New meter initialized (protocol=d0)
> [Apr 18 08:39:13]       Configure channel.
> [Apr 18 08:39:13][chn0] New channel initialized (uuid=...937ae5
> api=volkszaehler id=1-0:1.8.1)
> [Apr 18 08:39:13]       Have 1 meters.
> [Apr 18 08:39:13][main] log level is 15
> [Apr 18 08:39:14][main] daemon=1, local=0
> [Apr 18 08:39:14]       Daemonize process...
> [Apr 18 08:39:14]       Opened logfile /var/log/vzlogger.log
> [Apr 18 08:39:14][push] No pushDataServer defined.
> [Apr 18 08:39:14][]     ===> Start meters
> [Apr 18 08:39:14][mtr0] Meter connection established
> [Apr 18 08:39:14][mtr0] Meter thread started
> [Apr 18 08:39:14][mtr0] Meter is opened. Starting channels.
> [Apr 18 08:39:14][chn0] Start logging thread for volkszaehler-api. Running
> as daemon: yes
> [Apr 18 08:39:14][chn0] Logging thread started
> [Apr 18 08:39:14][]     Startup done.
> [Apr 18 08:39:14][mtr0] Number of readers: 400
> [Apr 18 08:39:14][mtr0] Config.daemon: 1
> [Apr 18 08:39:14][mtr0] Config.local: 0
> [Apr 18 08:39:14][chn0] Using default volkszaehler api.
> [Apr 18 08:39:14][d0]   sending pullsequenz send (len:5 is:5).
> [Apr 18 08:39:15][d0]   Pull answer (vendor=ISk, baudrate=5,
> identification=MT174-0001)
> [Apr 18 08:39:15][d0]   Sending ack sequence send (len:6 is:6,^F050
> ).
> [Apr 18 08:39:15][d0]   DEBUG OBIS_CODE byte ^F hex= 6
> [Apr 18 08:39:15][d0]   DEBUG OBIS_CODE byte 0 hex= 30
> [Apr 18 08:39:15][d0]   DEBUG OBIS_CODE byte 5 hex= 35
> [Apr 18 08:39:15][d0]   DEBUG OBIS_CODE byte 0 hex= 30
> [Apr 18 08:39:15][d0]   DEBUG OBIS_CODE byte
>  hex= A
> [Apr 18 08:39:15][d0]   DEBUG OBIS_CODE byte
>  hex= A
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
> [Apr 18 08:39:17][d0]   DEBUG OBIS_CODE byte ^@ hex= 0
> [Apr 18 08:39:17][d0]   Too much data for obis_code (byte=0x0)
>
> *Die d0-dump.txt zeigt folgende Einträge:*
>
> ##### 53.559669000s (     0 ms) opened
> ##### 53.644028000s (    85 ms) read
> ##### 53.644167000s (     0 ms) TCIOFLUSH and cfsetiospeed
> <<<<< 53.681746000s (    37 ms)
> 2f 3f 21 0d 0a                                    /?!
>
> >>>>> 53.714185000s (    33 ms)
> 2f 3f 21 0a 0a 2f 49 53 6b 35 4d 54 31 37 34 2d   /?!  /ISk5MT174-
> 30 30 30 31 0a 0a                                 0001
>
> <<<<< 54.469668000s (   755 ms)
> 06 30 35 30 0d 0a                                  050
>
> ##### 54.472073000s (     3 ms) tcdrain cfsetispeed
> >>>>> 54.474130000s (     2 ms)
> 06 30 35 30 0a 0a 00 00 00 00 00 00 00 00 00 00    050
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00
>
> ##### 78.796010000s ( 24322 ms) timeout!
> ##### 78.884943000s (    88 ms) read
> ##### 78.885139000s (     1 ms) TCIOFLUSH and cfsetiospeed
> <<<<< 78.889643000s (     4 ms)
> 2f 3f 21 0d 0a                                    /?!
>
> >>>>> 78.923351000s (    34 ms)
> 2f 3f 21 0a 0a 2f 49 53 6b 35 4d 54 31 37 34 2d   /?!  /ISk5MT174-
> 30 30 30 31 0a 0a                                 0001
>
> <<<<< 79.675494000s (   752 ms)
> 06 30 35 30 0d 0a                                  050
>
> ##### 79.678226000s (     3 ms) tcdrain cfsetispeed
> >>>>> 79.679076000s (     1 ms)
> 06 30 35 30 0a 0a 00 00 00 00 00 00 00 00 00 00    050
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00
>
> #####  3.946208000s ( 24267 ms) timeout!
> #####  3.963207000s (    17 ms) read
> #####  3.963415000s (     0 ms) TCIOFLUSH and cfsetiospeed
> <<<<<  3.967309000s (     4 ms)
> 2f 3f 21 0d 0a                                    /?!
>
> >>>>>  3.999970000s (    32 ms)
> 2f 3f 21 0a 0a 2f 49 53 6b 35 4d 54 31 37 34 2d   /?!  /ISk5MT174-
> 30 30 30 31 0a 0a                                 0001
>
> <<<<<  4.753585000s (   754 ms)
> 06 30 35 30 0d 0a                                  050
>
> #####  4.755643000s (     2 ms) tcdrain cfsetispeed
> >>>>>  4.756876000s (     1 ms)
> 06 30 35 30 0a 0a 00 00 00 00 00 00 00 00 00 00    050
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
> *Wenn ich den Zähler direkt über die Konsole abfrage, erhalte ich die
> aktuellen Werte:*
>
> *pi at raspberrypi*:*~ $* stty -F /dev/ttyUSB0
> 1:0:9a7:0:3:1c:7f:15:4:5:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
> stty: /dev/ttyUSB0: unable to perform all requested operations
> *pi at raspberrypi*:*~ $* cat < /dev/ttyUSB0 &
> [1] 1065
> *pi at raspberrypi*:*~ $* echo -n -e '\x2F\x3F\x21\x0D\x0A' > /dev/ttyUSB0
> *pi at raspberrypi*:*~ $* /?!
> /ISk5MT174-0001
> 1-0:0.0.0*255(440703-7281232)
> 1-0:0.0.1*255(00000000)
> 1-0:0.2.0*255(1.01)
> 0-0:C.1.0*255(62292994)
> 0-0:C.1.6*255(724F)
> 1-0:1.8.1*255(0041262.335*kWh)
> 1-0:2.8.1*255(0011209.241*kWh)
> 0-0:F.F.0*255(0000000)
> !
> n
>
> Wer kann mir weiterhelfen? Zählerkopf und Schnittstelle kommunizieren
> augenscheinlich.
>
> Vielen Dank und frohe Ostern.
>
> Sven
> Sven Börner
> svenboerner at freenet.de
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20190420/65d750e0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2019-04-18 um 08.48.10.png
Type: image/png
Size: 34973 bytes
Desc: not available
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20190420/65d750e0/attachment-0001.png>


More information about the volkszaehler-users mailing list