[vz-users] IR-USB-Lesekopf

Frank Richter frank.richter83 at gmail.com
Tue Jan 3 18:28:22 CET 2017


Mit

libsml: warning: could not read the whole file

kann ich leider nichts anfangen. Was für ein Zähler ist das?
Mit daemon auf true hast du mal getestet?
Aus der Config kannst du noch interval, pullseq und foreground entfernen.

Gruß
Frank
Am 03.01.2017 17:57 schrieb "jan Goe" <jan.andrea7 at googlemail.com>:

> super nun bekomme ich werte, aber ein fehler siehe hier:
>
> [Jan 03 16:56:00][main] vzlogger v0.6.0 based on
> heads/master-0-g462c3077bd from Sun, 30 Oct 2016 15:07:12 +0100 started.
>
> [Jan 03 16:56:00][mtr0] Creating new meter with protocol sml.
>
> [Jan 03 16:56:00][sml]  pullseq len:0 found
>
> [Jan 03 16:56:00][mtr0] Meter configured, enabled.
>
> [Jan 03 16:56:00]       New meter initialized (protocol=sml)
>
> [Jan 03 16:56:00]       Configure channel.
>
> [Jan 03 16:56:00][chn0] New channel initialized (uuid=...90db21
> api=volkszaehler id=1-0:1.8.0)
>
> [Jan 03 16:56:00]       Configure channel.
>
> [Jan 03 16:56:00][chn1] New channel initialized (uuid=...b0ef7f
> api=volkszaehler id=1-0:2.8.0)
>
> [Jan 03 16:56:00]       Ignoring invalid field or type: foreground=true
> (boolean)
>
> [Jan 03 16:56:00]       Have 1 meters.
>
> [Jan 03 16:56:00][main] log level is 15
>
> [Jan 03 16:56:00][main] daemon=0, local=0
>
> [Jan 03 16:56:00]       Process not  daemonized...
>
> [Jan 03 16:56:00][push] No pushDataServer defined.
>
> [Jan 03 16:56:00][]     ===> Start meters
>
> [Jan 03 16:56:00][mtr0] Meter connection established
>
> [Jan 03 16:56:00][mtr0] Meter thread started
>
> [Jan 03 16:56:00][mtr0] Meter is opened. Starting channels.
>
> [Jan 03 16:56:00][chn0] Logging thread not started
>
> [Jan 03 16:56:00][chn1] Logging thread not started
>
> [Jan 03 16:56:00][mtr0] Number of readers: 32
>
> [Jan 03 16:56:00][]     Startup done.
>
> [Jan 03 16:56:00][mtr0] Config.daemon: 0
>
> [Jan 03 16:56:00][mtr0] Config.local: 0
>
> [Jan 03 16:56:16][mtr0] Got 10 new readings from meter:
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255
> value=1058010.20 ts=1483462576859
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255
> value=1058010.20 ts=1483462576859
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255
> value=0.00 ts=1483462576859
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255
> value=4663878.50 ts=1483462576859
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255
> value=4663878.50 ts=1483462576860
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255
> value=0.00 ts=1483462576860
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255
> value=261.00 ts=1483462576860
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255
> value=103.00 ts=1483462576860
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255
> value=59.00 ts=1483462576860
>
> [Jan 03 16:56:16][mtr0] Reading: id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255
> value=98.00 ts=1483462576860
>
> [Jan 03 16:56:16][chn0] Adding reading to queue (value=1058010.20
> ts=1483462576859)
>
> [Jan 03 16:56:16][chn1] Adding reading to queue (value=4663878.50
> ts=1483462576859)
>
> libsml: warning: could not read the whole file
>
> [Jan 03 16:56:21][mtr0] Got 0 new readings from meter:
>
> libsml: warning: could not read the whole file
>
> [Jan 03 16:56:36][mtr0] Got 0 new readings from meter:
>
> Am 3. Januar 2017 um 17:23 schrieb Frank Richter <
> frank.richter83 at gmail.com>:
>
>> Und zur Middleware geloggt wird nur bei "daemon": true
>> Am 03.01.2017 17:21 schrieb "Frank Richter" <frank.richter83 at gmail.com>:
>>
>>> Hallo Jan,
>>>
>>> die Zeile mit "host" muss raus aus der Config.
>>>
>>> Gruß
>>> Frank
>>> Am 03.01.2017 17:19 schrieb "jan Goe" <jan.andrea7 at googlemail.com>:
>>>
>>>> Prima, das funktioniert nun
>>>>
>>>> allerdings habe ich nun probleme mit meiner vzlogger config datei
>>>>
>>>> [Jan 03 16:14:53][main] vzlogger v0.6.0 based on
>>>> heads/master-0-g462c3077bd from Sun, 30 Oct 2016 15:07:12 +0100 started.
>>>>
>>>> [Jan 03 16:14:53][mtr0] Creating new meter with protocol sml.
>>>>
>>>> [Jan 03 16:14:53][sml]  pullseq len:0 found
>>>>
>>>> [Jan 03 16:14:53][mtr0] Meter configured, enabled.
>>>>
>>>> [Jan 03 16:14:53]       New meter initialized (protocol=sml)
>>>>
>>>> [Jan 03 16:14:53]       Configure channel.
>>>>
>>>> [Jan 03 16:14:53][chn0] New channel initialized (uuid=...90db21
>>>> api=volkszaehler id=1-0:1.8.0)
>>>>
>>>> [Jan 03 16:14:53]       Ignoring invalid field or type: foreground=true
>>>> (boolean)
>>>>
>>>> [Jan 03 16:14:53]       Have 1 meters.
>>>>
>>>> [Jan 03 16:14:53][main] log level is 15
>>>>
>>>> [Jan 03 16:14:53][main] daemon=0, local=0
>>>>
>>>> [Jan 03 16:14:53]       Process not  daemonized...
>>>>
>>>> [Jan 03 16:14:53]       Opened logfile /var/www/vzlogger.log
>>>>
>>>> [Jan 03 16:14:53][push] No pushDataServer defined.
>>>>
>>>> [Jan 03 16:14:53][]     ===> Start meters
>>>>
>>>> [Jan 03 16:14:53][mtr0] Meter connection established
>>>>
>>>> [Jan 03 16:14:53][mtr0] Meter thread started
>>>>
>>>> [Jan 03 16:14:53][mtr0] Meter is opened. Starting channels.
>>>>
>>>> [Jan 03 16:14:53][chn0] Logging thread not started
>>>>
>>>> [Jan 03 16:14:53][]     Startup done.
>>>>
>>>> [Jan 03 16:14:53][mtr0] Number of readers: 32
>>>>
>>>> [Jan 03 16:14:53][mtr0] Config.daemon: 0
>>>>
>>>> [Jan 03 16:14:53][mtr0] Config.local: 0
>>>>
>>>>
>>>> flogends, passiert aber er liest keine werte der ich würde gerne den
>>>> Zähler stand loggen + die menge die ich einspeise, ist aber hier in der
>>>> config noch nicht eingebaut
>>>>
>>>>
>>>>
>>>> hier meine config dabei
>>>>
>>>>
>>>> {
>>>>
>>>>   "retry": 30,
>>>>
>>>>   "daemon": false,
>>>>
>>>>   "verbosity": 15,
>>>>
>>>>   "log": "/var/www/vzlogger.log",
>>>>
>>>>   "local": {
>>>>
>>>>     "enabled": false,
>>>>
>>>>     "port": 80,
>>>>
>>>>     "index": true,
>>>>
>>>>     "timeout": 30,
>>>>
>>>>     "buffer": 600
>>>>
>>>>   },
>>>>
>>>>   "meters": [
>>>>
>>>>     {
>>>>
>>>>       "enabled": true,
>>>>
>>>>       "allowskip": false,
>>>>
>>>>       "interval": -1,
>>>>
>>>>       "aggtime": 300,
>>>>
>>>>       "aggfixedinterval": false,
>>>>
>>>>       "channels": [
>>>>
>>>>         {
>>>>
>>>>           "uuid": "97164560-d1ce-11e6-a517-51556d90db21",
>>>>
>>>>           "identifier": "1-0:1.8.0",
>>>>
>>>>           "api": "volkszaehler",
>>>>
>>>>           "middleware": "http://127.0.0.1/middleware.php",
>>>>
>>>>           "secretKey": "",
>>>>
>>>>           "type": "device",
>>>>
>>>>           "scaler": 1,
>>>>
>>>>           "aggmode": "none",
>>>>
>>>>           "duplicates": 0
>>>>
>>>>         }
>>>>
>>>>       ],
>>>>
>>>>       "protocol": "sml",
>>>>
>>>>       "host": "",
>>>>
>>>>       "device": "/dev/usb-ir-lesekopf0",
>>>>
>>>>       "pullseq": "",
>>>>
>>>>       "baudrate": 9600,
>>>>
>>>>       "parity": "8n1"
>>>>
>>>>     }
>>>>
>>>>   ],
>>>>
>>>>   "foreground": true
>>>>
>>>> }
>>>>
>>>>
>>>>
>>>> hoffe ihr könnt helfen
>>>>
>>>>
>>>> mfg
>>>>
>>>> Jan Gödecke
>>>>
>>>> Am 3. Januar 2017 um 16:54 schrieb Heine.thomas at online.de <
>>>> Heine.thomas at online.de>:
>>>>
>>>>> Hallo,
>>>>>
>>>>> versuche es mal damit, ob du Werte bekommst:
>>>>>
>>>>> http://wiki.volkszaehler.org/hardware/controllers/ir-schreib
>>>>> -lesekopf-usb-ausgang
>>>>>
>>>>>
>>>>> Gruß
>>>>>
>>>>> Thomas
>>>>>
>>>>>
>>>>> Am 03.01.2017 um 16:49 schrieb Andrea Goe:
>>>>>
>>>>> Hallo,
>>>>>
>>>>> Wollte die tag bei meinem papa einen weitern IR-USB-Lesekopf inbetrieb
>>>>> nehmen, allerdings habe ich einige probleme und hoffe ihr könnt mir helfen
>>>>>
>>>>> bin nicht folgender Anleitung vorgegangen
>>>>> http://wiki.volkszaehler.org/howto/emh_pv-anlage
>>>>>
>>>>> allerdings, liefert der Befehl
>>>>>
>>>>> ls -la /dev/usb*
>>>>>
>>>>> kein Ergebnis, auch mit einem sudo davor nicht
>>>>>
>>>>> mit
>>>>>
>>>>> ls -la /dev/ttyUSB0
>>>>>
>>>>>
>>>>> bekomme ich folgendes angezeigt
>>>>>
>>>>> crw-rw---- 1 root dialout 188, 0 Dec 28 16:17 /dev/ttyUSB0
>>>>>
>>>>> wenn ich nun versuche werte zu empfangen mit : xxd </dev/ttyUSB0
>>>>>
>>>>> bekomme ich leider auch keine ausgabe und ich habe leider auch keine
>>>>> Ahnung wo es hängt, evtl hat ja von euch jemand eine Idee ?
>>>>>
>>>>> Mit freundlichen Grüßen
>>>>> Jan Gödecke
>>>>>
>>>>>
>>>>>
>>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170103/7e9a53a6/attachment-0001.html>


More information about the volkszaehler-users mailing list