Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Smartmeter optische Schnittstelle

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Smartmeter optische Schnittstelle

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tilly @Homoran last edited by

      @Homoran said in Smartmeter optische Schnittstelle:

      @tilly sagte in Smartmeter optische Schnittstelle:

      ich habe mir von Volkszähler den IR-Schreibe-Lesekopf ... zusammengebastelt

      Und du bist sicher, dass er funktioniert.
      Es ist ja jetzt wirklich schon fast alles geprüft worden.

      Nein bin mir nicht sicher, aber wie bekommt man das raus?
      Wenn ich mit einer TV-Fernbedienung davor sende, kommt ja was an, also denke ich schon, dass der IR-Schreibe-Lesekopf funktioniert.

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @tilly last edited by

        @tilly
        Das hast du aber über die konsole gesehen.

        Konsole und Adapter geht nicht.
        Bitte in der konsole das Gerät wieder freigeben.

        Dann instanz auf depug stellen und instanz neustarten.

        Was Steht Dann im log

        T 1 Reply Last reply Reply Quote 0
        • T
          tilly @Homoran last edited by tilly

          @Homoran said in Smartmeter optische Schnittstelle:

          @tilly
          Das hast du aber über die konsole gesehen.

          ja mit minicom

          Konsole und Adapter geht nicht.
          Bitte in der konsole das Gerät wieder freigeben.

          wenn ich minicom beende, sollte das Gerät doch wieder freigegeben sein, oder?

          Dann instanz auf depug stellen und instanz neustarten.

          Was Steht Dann im log

          hier das log

          
          smartmeter.0	2019-03-27 22:17:20.720	debug	SET MESSAGE TIMEOUT TIMER: 120000
          smartmeter.0	2019-03-27 22:17:20.712	debug	SERIALPORT OPEN
          smartmeter.0	2019-03-27 22:17:20.703	debug	CREATE SERIALPORT: 9600 7 1 even
          smartmeter.0	2019-03-27 22:17:06.979	debug	system.adapter.admin.0: logging true
          smartmeter.0	2019-03-27 22:16:20.683	debug	SCHEDULE NEXT RUN IN 60s
          smartmeter.0	2019-03-27 22:16:20.680	debug	SERIALPORT CLOSE
          smartmeter.0	2019-03-27 22:16:20.671	debug	Transport Reset!! Restart = true
          smartmeter.0	2019-03-27 22:16:20.670	debug	Error: No or too long answer from Serial Device after last request.
          smartmeter.0	2019-03-27 22:16:20.669	warn	No or too long answer from Serial Device after last request.
          smartmeter.0	2019-03-27 22:16:20.662	debug	Error: No or too long answer from Serial Device after last request.
          smartmeter.0	2019-03-27 22:16:20.659	debug	MESSAGE TIMEOUT TRIGGERED
          smartmeter.0	2019-03-27 22:16:12.937	debug	system.adapter.admin.0: logging false
          smartmeter.0	2019-03-27 22:15:13.680	debug	system.adapter.admin.0: logging true
          smartmeter.0	2019-03-27 22:15:05.119	debug	system.adapter.admin.0: logging false
          smartmeter.0	2019-03-27 22:14:20.656	debug	SET MESSAGE TIMEOUT TIMER: 120000
          smartmeter.0	2019-03-27 22:14:20.600	debug	SERIALPORT OPEN
          smartmeter.0	2019-03-27 22:14:20.561	debug	CREATE SERIALPORT: 9600 7 1 even
          smartmeter.0	2019-03-27 22:14:20.550	debug	SmartmeterObis options: {"debug":2,"protocol":"D0Protocol","transport":"SerialResponseTransport","requestInterval":"60","anotherQueryDelay":"1000","transportSerialPort":"/dev/ttyUSB0","transportSeria
          smartmeter.0	2019-03-27 22:14:20.481	info	starting. Version 1.2.2 in /opt/iobroker/node_modules/iobroker.smartmeter, node: v8.15.1
          smartmeter.0	2019-03-27 22:14:20.378	debug	statesDB connected
          smartmeter.0	2019-03-27 22:14:20.279	debug	objectDB connected
          

          Ich habe smartmeter nochmal deinstalliert, raspberry neu gestartet und neu installiert. Dabei kamen diese Meldungen:

          $ ./iobroker add smartmeter  --host raspberrypi
          NPM version: 6.4.1
          npm install iobroker.smartmeter@1.2.2 --production --save --prefix "/opt/iobroker" (System call)
          host.raspberrypi install adapter smartmeter
          npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.smartmeter"
          prebuild-install WARN install No prebuilt binaries found (target=8.15.1 runtime=node arch=arm platform=linux)
          ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:../src/serialport.cpp:95:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(2, argv);
                                        ^
          In file included from ../src/./serialport.h:6:0,
                           from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:../src/serialport.cpp:150:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(1, argv);
                                        ^
          In file included from ../src/./serialport.h:6:0,
                           from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:../src/serialport.cpp:188:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(1, argv);
                                        ^
          In file included from ../src/./serialport.h:6:0,
                           from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:../src/serialport.cpp:231:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(1, argv);
                                        ^
          In file included from ../src/./serialport.h:6:0,
                           from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:../src/serialport.cpp:285:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(1, argv);
                                        ^
          In file included from ../src/./serialport.h:6:0,
                           from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:../src/serialport.cpp:336:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(2, argv);
                                        ^
          In file included from ../src/./serialport.h:6:0,
                           from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’:../src/serialport.cpp:383:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(2, argv);
                                        ^
          
          In file included from ../src/./serialport.h:6:0,                 from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:../src/serialport.cpp:424:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             data->callback.Call(1, argv);
                                        ^
          
          In file included from ../src/./serialport.h:6:0,                 from ../src/serialport.cpp:1:
          ../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          ../src/poller.cpp: In static member function ‘static void Poller::onData(uv_poll_t*, int, int)’:../src/poller.cpp:69:29: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
             obj->callback.Call(2, argv);
                                       ^
          
          In file included from ../src/poller.cpp:1:0:../../nan/nan.h:1674:3: note: declared here
             Call(int argc, v8::Local<v8::Value> argv[]) const {
             ^~~~
          
          npm
           notice created a lockfile as package-lock.json. You should commit this file.
          got /opt/iobroker/node_modules/iobroker.smartmeter/admin
          upload [5] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/words.js words.js application/javascript
          upload [4] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/tooltip.css tooltip.css text/css
          upload [3] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/smartmeter.png smartmeter.png image/png
          upload [2] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/smartmeter.jpg smartmeter.jpg image/jpeg
          upload [1] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/questionmark.png questionmark.png image/png
          upload [0] smartmeter.admin /opt/iobroker/node_modules/iobroker.smartmeter/admin/index.html index.html text/html
          host.raspberrypi object system.adapter.smartmeter created
          host.raspberrypi create instance smartmeter
          host.raspberrypi object system.adapter.smartmeter.0.outputCount created
          host.raspberrypi object system.adapter.smartmeter.0.inputCount created
          host.raspberrypi object system.adapter.smartmeter.0.uptime created
          host.raspberrypi object system.adapter.smartmeter.0.memRss created
          host.raspberrypi object system.adapter.smartmeter.0.memHeapTotal created
          host.raspberrypi object system.adapter.smartmeter.0.memHeapUsed created
          host.raspberrypi object system.adapter.smartmeter.0.cputime created
          host.raspberrypi object system.adapter.smartmeter.0.cpu created
          host.raspberrypi object system.adapter.smartmeter.0.connected created
          host.raspberrypi object system.adapter.smartmeter.0.alive created
          host.raspberrypi object system.adapter.smartmeter.0 created
          process exited with code 0
          
          Homoran Röstkartoffel 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @tilly last edited by Homoran

            @tilly
            Die unteren logs sind ok!

            Kann also fast nur an den Einstellungen liegen, wenn der kopf ok ist.

            Bitte allecEinstellungen erstveinmal lassen wie sie sind, als gerät /dev/ttyusb0 eingeben und als protokoll d0 und nur lesen

            1 Reply Last reply Reply Quote 0
            • Matzebhv
              Matzebhv last edited by

              Genau der Zähler läuft hier so:

              broker.PNG

              1 Reply Last reply Reply Quote 0
              • Röstkartoffel
                Röstkartoffel @tilly last edited by

                @tilly sagte in Smartmeter optische Schnittstelle:

                @Homoran said in Smartmeter optische Schnittstelle:

                @tilly
                Das hast du aber über die konsole gesehen.

                ja mit minicom

                Konsole und Adapter geht nicht.
                Bitte in der konsole das Gerät wieder freigeben.

                wenn ich minicom beende, sollte das Gerät doch wieder freigegeben sein, oder?

                Wenn du sowieso schon minicom hast, kannst du auch erstmal darüber testweise den Stromzähler auslesen. Dazu in der configration von Minicom die Schnittstellenparameter eintragen und mit "save setup as dfl" speichern. Wenn du jetzt minicom wieder aufrufst, sollte mit minicom -s deine Werte dort stehen.
                Im ioBroker den Smartmeter-Adapter stoppen und dann mal in der Konsole "cat /dev/ttyUSB0"

                eingeben. Was kommt dann dabei raus?

                1 Reply Last reply Reply Quote 0
                • T
                  tilly last edited by

                  Es will einfach nicht. Hat jemand vielleicht einen USB-IR-Schreibe-Lesekopf oder eine Bezugsquelle?

                  E 1 Reply Last reply Reply Quote 0
                  • wendy2702
                    wendy2702 last edited by

                    Bezugsquelle:

                    https://www.amazon.de/Weidmann-Elektronik-Stromzähler-Infrarot-Lesekopf/dp/B01B8N0ASY/ref=sr_1_1?adgrpid=57136358801&hvadid=259141558721&hvdev=t&hvlocphy=9044827&hvnetw=g&hvpos=1t1&hvqmt=b&hvrand=5640625677557539417&hvtargid=kwd-436401470338&keywords=ir-schreib-lesekopf&qid=1553790251&s=gateway&sr=8-1

                    bahnuhr 1 Reply Last reply Reply Quote 0
                    • E
                      easybeat @tilly last edited by

                      @tilly Hast Du den Reader zum Laufen gebracht. Eine solche Lösung würde mich auch interessieren.

                      Danke und Gruss
                      Beat

                      1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active @wendy2702 last edited by

                        @wendy2702 sagte in Smartmeter optische Schnittstelle:

                        Bezugsquelle:

                        https://www.amazon.de/Weidmann-Elektronik-Stromzähler-Infrarot-Lesekopf/dp/B01B8N0ASY/ref=sr_1_1?adgrpid=57136358801&hvadid=259141558721&hvdev=t&hvlocphy=9044827&hvnetw=g&hvpos=1t1&hvqmt=b&hvrand=5640625677557539417&hvtargid=kwd-436401470338&keywords=ir-schreib-lesekopf&qid=1553790251&s=gateway&sr=8-1

                        Ich habe den gleichen, auch von Weidmann.

                        Klappt einwandfrei.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate
                        FAQ Cloud / IOT
                        HowTo: Node.js-Update
                        HowTo: Backup/Restore
                        Downloads
                        BLOG

                        464
                        Online

                        31.9k
                        Users

                        80.1k
                        Topics

                        1.3m
                        Posts

                        d0-schnittstelle optische schnittstelle serielle schnittstelle smartmeter
                        10
                        42
                        5494
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo