Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. Stromzähler auslesen per SML/Volkszähler und so …

    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

    Stromzähler auslesen per SML/Volkszähler und so …

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 last edited by

      Cool, die Library scheint soweit zu passen langsam :-))

      1.)

      START SML-File
      	START SmlMessage
      		Transaction-ID: q�G (0471a747)
      		Group-No: 0
      		Abort On Error: 0
      		Message-Body: 		SmlPublicOpenResponse
      			Codepage: undefined
      			Client-ID: undefined
      			Req-FileId: {7� (017b37c1)
      			Server-ID: 090149534b0003c2a0a0
      						Sml-Version: undefined
      		CRC 16: 14624
      	END SmlMessage
      
      	START SmlMessage
      		Transaction-ID: q�H (0471a748)
      		Group-No: 0
      		Abort On Error: 0
      		Message-Body: 		SmlGetListResponse
      			Client-ID: undefined
      			Server-ID: 	ISK �
      			List-Name: b
      ��
      			Act-Sensor-Time: (Sec-Index): 36410471
      
      			ValList: [
      	Obj-Name: 129-129:c7.82.3*255
      	Status: undefined
      	Val-Time: 
      	Unit: undefined
      	Scaler: undefined
      	Value: ISK / 49534b
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:0.0.9*255
      	Status: undefined
      	Val-Time: 
      	Unit: undefined
      	Scaler: undefined
      	Value: 	ISK � / 090149534b0003c2a0a0
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:1.8.0*255
      	Status: 182
      	Val-Time: 
      	Unit: 30
      	Scaler: -1
      	Value: 91942033
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:1.8.1*255
      	Status: undefined
      	Val-Time: 
      	Unit: 30
      	Scaler: -1
      	Value: 91942033
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:1.8.2*255
      	Status: undefined
      	Val-Time: 
      	Unit: 30
      	Scaler: -1
      	Value: 0
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:10.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 237
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:24.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 79
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:38.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 137
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:4c.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 21
      	Value-Signature: undefined
      , 
      	Obj-Name: 129-129:c7.82.5*255
      	Status: undefined
      	Val-Time: 
      	Unit: undefined
      	Scaler: undefined
      �תk�;�Y / 6340b3539d70e46ac94b3879945918401c8c8bee998cd94c2465c46e12b96e6604842ad3b020820de7d7aa6b973bb959
      	Value-Signature: undefined
      , 
      ]
      			List-Signature: undefined
      			Act-Gateway-Time: 
      		CRC 16: 38601
      	END SmlMessage
      
      	START SmlMessage
      		Transaction-ID: q�I (0471a749)
      		Group-No: 0
      		Abort On Error: 0
      		Message-Body: 		SmlPublicCloseResponse
      			Global Signature: 
      		CRC 16: 63553
      	END SmlMessage
      
      END SML-File
      
      CRC-Check Msg 0: true
      CRC-Check Msg 1: true
      CRC-Check Msg 2: true
      CRC-Check File: true
      
      

      2.)

      START SML-File
      	START SmlMessage
      		Transaction-ID: � (15001cc9)
      		Group-No: 0
      		Abort On Error: 0
      		Message-Body: 		SmlPublicOpenResponse
      			Codepage: undefined
      			Client-ID: undefined
      			Req-FileId: 	� (07000997)
      			Server-ID: 0805353f2d50dffb
      						Sml-Version: undefined
      		CRC 16: 8101
      	END SmlMessage
      
      	START SmlMessage
      		Transaction-ID: � (15001cca)
      		Group-No: 0
      		Abort On Error: 0
      		Message-Body: 		SmlGetListResponse
      			Client-ID: undefined
      			Server-ID:5?-P��
      			List-Name: b
      ��
      			Act-Sensor-Time: (Sec-Index): 136278934
      
      			ValList: [
      	Obj-Name: 129-129:c7.82.3*255
      	Status: undefined
      	Val-Time: 
      	Unit: undefined
      	Scaler: undefined
      	Value: ISK / 49534b
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:0.0.9*255
      	Status: undefined
      	Val-Time: 
      	Unit: undefined
      	Scaler: undefined
      	Value:5?-P�� / 0805353f2d50dffb
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:2.8.0*255
      	Status: 10000
      	Val-Time: 
      	Unit: 30
      	Scaler: -1
      	Value: 170812785
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:2.8.1*255
      	Status: undefined
      	Val-Time: 
      	Unit: 30
      	Scaler: -1
      	Value: 170812785
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:2.8.2*255
      	Status: undefined
      	Val-Time: 
      	Unit: 30
      	Scaler: -1
      	Value: 0
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:10.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 0
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:24.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 0
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:38.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 0
      	Value-Signature: undefined
      , 
      	Obj-Name: 1-0:4c.7.0*255
      	Status: undefined
      	Val-Time: 
      	Unit: 27
      	Scaler: 0
      	Value: 0
      	Value-Signature: undefined
      , 
      	Obj-Name: 129-129:c7.82.5*255
      	Status: undefined
      	Val-Time: 
      	Unit: undefined
      	Scaler: undefined
      	Value: ��.��v�Y~}<����s�Rp-R�M��n�maH���=Us���Z���< / 009be62e9f9a76ee597e7d3c1dc7ebc9cc73c852702d52ff4dc8c86eff6d61489289b73d55739eb3815ad0d1fc013c0f
      	Value-Signature: undefined
      , 
      ]
      			List-Signature: undefined
      			Act-Gateway-Time: 
      		CRC 16: 58167
      	END SmlMessage
      
      	START SmlMessage
      		Transaction-ID: � (15001ccb)
      		Group-No: 0
      		Abort On Error: 0
      		Message-Body: 		SmlPublicCloseResponse
      			Global Signature: 
      		CRC 16: 55876
      	END SmlMessage
      
      END SML-File
      
      CRC-Check Msg 0: true
      CRC-Check Msg 1: true
      CRC-Check Msg 2: true
      CRC-Check File: true
      
      
      1 Reply Last reply Reply Quote 0
      • S
        simpixo last edited by

        Und wie sieht es denn aus mit dem Adapter!? Bist du schon weiter gekommen!?

        Gruß

        Adrian

        Gesendet von iPhone mit Tapatalk Pro

        1 Reply Last reply Reply Quote 0
        • R
          ralalla last edited by

          Ja wäre klasse wenn das klappen würde. Dann würde ich mir auch nen Auslesekopf bestellen.

          Gesendet von iPhone mit Tapatalk

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

            Bin auf dem besten Weg 🙂

            Hab jetzt eine node-Library gebastelt die SML, D0 und das Efr (JSON per HTTP) abfragen kann und dazu ne existierende SML-Library so erweitert das Sie ging und D0 als Protokoll implementiert. Das bin ich gerade am finalen testen.

            Wenn das alles klappt wie gedacht dann danach der Adapter (der ist dann nicht mehr so wild). Also vllt in ner Woche (oder zwei spätestens) sollte der Adapter fertig sein

            1 Reply Last reply Reply Quote 0
            • R
              ralalla last edited by

              So hab auch den Lesekopf bekommen.

              Hab nen Pi zum rumspielen da und dort mal den Volkszähler installiert.

              Wollte auch mit nem "Datenstream" helfen, aber bei mir kommt momentan nix ordentliches bei raus.

              Fängt nichts mit 1b 1b 1b an.

              Morgen noch mal suchen woran das liegen könnte.

              Wenn ich den Fehler finde kann ich auch noch testen und helfen.

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

                @apollon77:

                Hey All,

                ich beschäftlieg mich gerade mit der Idee einen Adapter zu schreiben der z.B. Stromzähler oder andere Devices mit SML-protokoll auslesen kann und die Daten interpretiert in ioBroker zur Verfügung stellt.

                Ich habe dazu eine node-Library die das Format parsen kann gefunden und gepatcht, dass er die Daten die ich per IR-Lesekopf aus meinem Zähler rausbekomme parsen kann.

                Bevor ich daraus jetzt nen Adapetr stricke würde ich die node-Library gern mit noch ein paar mehr Daten testen das auch alles klappt.

                Daher die Frage: Wer hat denn sowas schon im Einsatz (z.B. ber libsml oder vzlogger/volkszähler oder mit perl/python skripten) und kann mir mal den Datenstrom eines Telegrams zum Testen schicken ?!

                Wer mag mitmachen? 🙂

                Ingo F `
                Hallo, ich habe den Datenlogger http://www.emuag.ch/produkte/datenlogge … ls-logger/ im Einsatz, dieser kann scheinbar eine SML Datei zur Verfügung stellen (FTP Upload). Gibt es hier eine Möglichkeit dies auszulesen? Gruß, Frank

                Gesendet von meinem SM-G920F mit Tapatalk

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

                  Also ich habe an der Stelle nach bissl suchen das gefunden:

                  ` > Konvertierung zu SML (Smart Message Language)

                  Der M-Bus Logger konvertiert die M-Bus Daten automatisch ins SML-Format und kann diese SML-Datei auf einen

                  FTP-Server laden. So bietet er die Möglichkeit M-Bus Geräte in ein SML-System einzubinden. `

                  Damit sagen wir es mal so: Bring das Ding dazu ein File auf deinen iobroker-Host zu legen und schick mir das File und ich denke das sollte machbar sein 🙂

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

                    Hallo, habe SML-Dateien exportieren können. Wo soll ich die hinschicken? Danke vorab für die Unterstützung.

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

                      Poste Sie hier in nem "Code"-Block oder schick Sie mit per PN oder ingo@fischer-ka.de

                      Hab die Library die ich baue schon erweitert das Sie auch lokale Files einlesen kann. Damit wird das der Adapter auch können 🙂 Musst es dann nur lokal auf den richtigen Rechner haben (oder per HTTP abfragen können)

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

                        Soooo … für alle IR-Nutzer die beim testen helfen wollen hier bräuchte ich nochmal support. Die Library mit der ich alles auslesen kann ist fertig (die wird die Basis für den Adapter).

                        Bitte auf dem Rechner wo das USB-IR-Ding dran ist folgendes machen:

                        • Verzeichnis anlegen (irgendwo)

                        • npm install smartmeter-obis

                        • Testfile anlegen:

                        var SmartmeterObis = require('smartmeter-obis');
                        
                        var options = {
                            'protocol': "SmlProtocol",
                            'transport': "SerialResponseTransport",
                            'transportSerialPort': "/dev/ir-usb0",
                            'transportSerialBaudrate': 9600,
                            'requestInterval': 10,
                            'obisNameLanguage': 'en'
                        };
                        
                        function displayData(obisResult) {
                            //console.log("Received data: " + Object.keys(obisResult));
                            //console.log(JSON.stringify(obisResult,null,2));
                            for (var obisId in obisResult) {
                                console.log(obisResult[obisId].idToString() + ": " + SmartmeterObis.ObisNames.resolveObisName(obisResult[obisId], options.obisNameLanguage).obisName + ' = ' + obisResult[obisId].valueToString());
                            }
                        }
                        
                        var smTransport = SmartmeterObis.init(options, displayData);
                        
                        smTransport.process();
                        
                        setTimeout(process.exit, 60000);
                        

                        Dann gibts eine Ausgabe ala

                        129-129:199.130.3*255: Manufacturer ID = EMH
                        1-0:0.0.9*255: Device ID = 0901454d48000041f045
                        1-0:1.8.0*255: Time integral 1 Sum active power + (Total) = 15622.63 kWh
                        1-0:1.8.1*255: Time integral 1 Sum active power + (T1) = 15622.63 kWh
                        1-0:1.8.2*255: Time integral 1 Sum active power + (T2) = 0 kWh
                        1-0:16.7.0*255: Instantaneous value Total active power (Total) = 491.8 W
                        
                        

                        Dann bitte mal Feedback geben :-))

                        Ansonsten gehen die Files auch 🙂

                        1 Reply Last reply Reply Quote 0
                        • S
                          simpixo last edited by

                          @apollon77:

                          Soooo … für alle IR-Nutzer die beim testen helfen wollen hier bräuchte ich nochmal support. Die Library mit der ich alles auslesen kann ist fertig (die wird die Basis für den Adapter).

                          Bitte auf dem Rechner wo das USB-IR-Ding dran ist folgendes machen:

                          • Verzeichnis anlegen (irgendwo)

                          • npm install smartmeter-obis

                          • Testfile anlegen:

                          var SmartmeterObis = require('smartmeter-obis');
                          
                          var options = {
                              'protocol': "SmlProtocol",
                              'transport': "SerialResponseTransport",
                              'transportSerialPort': "/dev/ir-usb0",
                              'transportSerialBaudrate': 9600,
                              'requestInterval': 10,
                              'obisNameLanguage': 'en'
                          };
                          
                          function displayData(obisResult) {
                              //console.log("Received data: " + Object.keys(obisResult));
                              //console.log(JSON.stringify(obisResult,null,2));
                              for (var obisId in obisResult) {
                                  console.log(obisResult[obisId].idToString() + ": " + SmartmeterObis.ObisNames.resolveObisName(obisResult[obisId], options.obisNameLanguage).obisName + ' = ' + obisResult[obisId].valueToString());
                              }
                          }
                          
                          var smTransport = SmartmeterObis.init(options, displayData);
                          
                          smTransport.process();
                          
                          setTimeout(process.exit, 60000);
                          

                          Dann gibts eine Ausgabe ala

                          129-129:199.130.3*255: Manufacturer ID = EMH
                          1-0:0.0.9*255: Device ID = 0901454d48000041f045
                          1-0:1.8.0*255: Time integral 1 Sum active power + (Total) = 15622.63 kWh
                          1-0:1.8.1*255: Time integral 1 Sum active power + (T1) = 15622.63 kWh
                          1-0:1.8.2*255: Time integral 1 Sum active power + (T2) = 0 kWh
                          1-0:16.7.0*255: Instantaneous value Total active power (Total) = 491.8 W
                          
                          

                          Dann bitte mal Feedback geben :-))

                          Ansonsten gehen die Files auch 🙂 `

                          Ist das ein Script das ich in den iobroker einfügen muss? Denn bei mir ist es ein separater PI auf dem der Volkszähler momentan läuft, aber ich habe jetzt dort in einen separaten Ordner das NPM Paket Smartmeter-Obis installiert…. aber wo füge ich das Script jetzt ein? 😮

                          Gruß

                          Adrian

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

                            Hi,

                            ist erstmal nur zum testen ob das alles klappt (und nicht nur bei mir). Das kannst Du (sobald der Adapter da ist) alles wieder löschen … aber das IR-Device muss dann an den ioBroker-Rechner oder ein ioBroker-Slave auf den Raspi wo das heute dran hängt.

                            Zur Frage: Wenn du ein verzeichnis angelegt hast (nehmen wir mal an /opt/test-sml) und dort die Lib installiert hast, hast Du dann indem Verzeichnis ein Unterverzeichnis namens node_modules. korrekt? Dann hat das mit der installation geklappt.

                            Das testskript legst du jetzt in dem ersten verzeichnis z.B als "opt/test-sml/test.js" an.

                            Und starten kannst Du es dann in dem verzeichnis per "node test.js".

                            Das Skript läuft aktuell eine Minuten und gibt aus was er gelesen hat. Danach beendet es sich ... ist ja nur test 🙂

                            Kommst Du mit der Anleitung klar?

                            Ich weiss nicht ob Du ggf vzlogger stoppen musst weil der ja auch das Serielle Device offen hat... könnte sich beissen

                            1 Reply Last reply Reply Quote 0
                            • S
                              simpixo last edited by

                              @apollon77:

                              Kommst Du mit der Anleitung klar? `

                              Ei sicher komme ich mit der Anleitung klar….

                              und bekomme auch schon Daten geliefert...

                              raspberrypi:/opt/smartmeter# node test.js 
                              129-129:199.130.3*255: Manufacturer ID = EMH
                              1-0:0.0.9*255: Device ID = xxx
                              1-0:1.8.0*255: Time integral 1 Sum active power + (Total) = 5743.9201 kWh
                              1-0:1.8.1*255: Time integral 1 Sum active power + (T1) = 5743.9201 kWh
                              1-0:1.8.2*255: Time integral 1 Sum active power + (T2) = 0 kWh
                              1-0:16.7.0*255: Instantaneous value Total active power (Total) = 969.5 W
                              129-129:199.130.5*255: Forename/Public Key = xxx
                              

                              Sieht schon mal sehr gut aus… ist sogar mein momentaner Verbrauch :lol:

                              Gruß

                              Adrian

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

                                Na super :-))

                                Kannst auch in dem "options" die Sprache auf "de" stellen, dann müsste es deutsch rauskommen was die Namen angeht 🙂

                                Plan ist das der Adapter die "obis-ID" (mit "_" anstelle der Punkte) als States anlegt den textuellen Namen als Namen nimmt und den Wert halt mit der Einheit als Einheit.

                                Dann kann man selbst bestimmen ob man alles lesen will oder nur alle x Sekunden (dann halt ggf Datensätze ignoriert) …

                                1 Reply Last reply Reply Quote 0
                                • S
                                  simpixo last edited by

                                  Ja Sprache habe ich dann auch mal umgestellt und siehe da er kann auch deutsch 😄

                                  node test.js 
                                  129-129:199.130.3*255: Manufacturer ID = EMH
                                  1-0:0.0.9*255: Device ID = xxx
                                  1-0:1.8.0*255: Zählerstand 1 Summe Wirkarbeit Bezug + (Total) = 5744.208100000001 kWh
                                  1-0:1.8.1*255: Zählerstand 1 Summe Wirkarbeit Bezug + (T1) = 5744.208100000001 kWh
                                  1-0:1.8.2*255: Zählerstand 1 Summe Wirkarbeit Bezug + (T2) = 0 kWh
                                  1-0:16.7.0*255: Momentanwert Gesamtwirkleistung (Total) = 879.4000000000001 W
                                  129-129:199.130.5*255: Forename/Public Key = 
                                  

                                  Gruß

                                  Adrian

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

                                    Teilweise zumindestens 🙂

                                    Ob ich das vor Release noch geradebiege weiss ich noch nicht. Diese "Fachbegriffe" zu übersetzen ist ein echter sch**** .. vllt ist ja jemand hier aus dem Fach und kann da helfen 😉 Ansonsten bliebts wohl erstmal bei nem Mischmasch

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      simpixo last edited by

                                      Ich erwarte sehnsüchtig den Adapter! Dann kann ich wieder einen Pi für andere Sachen nutzen [emoji6]

                                      Und ich hätte die Daten direkt ohne Umwege in ioBroker das wäre ein Traum [emoji7]

                                      Gesendet von iPhone mit Tapatalk Pro

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        simpixo last edited by

                                        @apollon77:

                                        Diese "Fachbegriffe" zu übersetzen ist ein echter sch**** .. vllt ist ja jemand hier aus dem Fach und kann da helfen 😉 Ansonsten bliebts wohl erstmal bei nem Mischmasch `

                                        Was willst du genau übersetzt haben!? Vielleicht kann ich dir behilflich sein!?

                                        Gruß

                                        Adrian

                                        Gesendet von iPhone mit Tapatalk Pro

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

                                          Das ist alles hier drin:

                                          https://github.com/Apollon77/smartmeter … isNames.js

                                          Ich hab gefühlt die letzten 2 Tage nur diese Texte aus verschiedenen Quellen dort gesammelt und einiges in Deutsch und einiges in englisch. Deswegen hab ich das jetzt für mich erstmal unter "offenes Todo" abgehakt ;-)) Grad keinen Bock mehr auf Texte 😄

                                          Will jetzt noch Basisdoku und noch fehlendes Fehlerhandling für die Library und dann den Adapter bauen ...

                                          "Man" 😉 müsste jetzt pro Unterstruktur (siehst dann was ich meine) immer die Nummern abgleichen nicht das in einer Sprache welche Fehlen die bei der anderen da sind. Und da wo keine Übersetzung ist oder falsche Sprache ist halt übersetzen 😉

                                          Jede Hilfe wird dankend angenommen!!

                                          Änderungen mir gerne als Pull-Request oder E-Mail oder PN schicken

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

                                            Leider kein Erfolg

                                            Installation:

                                            ! ````
                                            root@miniyou:/opt/test-sml# npm install smartmeter-obis
                                            npm WARN engine request@2.79.0: wanted: {"node":">= 4"} (current: {"node":"0.12.6","npm":"2.11.2"})

                                            serialport@4.0.7 install /opt/test-sml/node_modules/smartmeter-obis/node_modules/serialport
                                            node-pre-gyp install --fallback-to-build
                                            ! node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v14-linux-arm.tar.gz
                                            node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@0.12.6 (node-v14 ABI) (falling back to source compile with node-gyp)
                                            make: Entering directory '/opt/test-sml/node_modules/smartmeter-obis/node_modules/serialport/build'
                                            CXX(target) Release/obj.target/serialport/src/serialport.o
                                            In file included from /root/.node-gyp/0.12.6/deps/v8/include/v8stdint.h:13:0,
                                            from /root/.node-gyp/0.12.6/deps/v8/include/v8.h:18,
                                            from /root/.node-gyp/0.12.6/src/node.h:61,
                                            from ../node_modules/nan/nan.h:47,
                                            from ../src/./serialport.h:7,
                                            from ../src/serialport.cpp:1:
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘void node::FatalException(const v8::TryCatch&)’:
                                            /root/.node-gyp/0.12.6/src/node.h:275:61: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:270): Use ParseEncoding(isolate, ...) [-Wdeprecated-declarations]
                                            return FatalException(v8::Isolate::GetCurrent(), try_catch);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:273:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use FatalException(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘v8::Local v8::valuenode::Encode(const void*, size_t, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:287:62: warning: ‘v8::Local v8::valuenode::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:278): Use FatalException(isolate, ...) [-Wdeprecated-declarations]
                                            return Encode(v8::Isolate::GetCurrent(), buf, len, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:282:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use Encode(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘ssize_t node::DecodeBytes(v8::Handlev8::value, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:298:62: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:291): Use Encode(isolate, ...) [-Wdeprecated-declarations]
                                            return DecodeBytes(v8::Isolate::GetCurrent(), val, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:294:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use DecodeBytes(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘ssize_t node::DecodeWrite(char*, size_t, v8::Handlev8::value, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:312:75: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:302): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
                                            return DecodeWrite(v8::Isolate::GetCurrent(), buf, buflen, val, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:307:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use DecodeWrite(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(v8::Handlev8::string, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:58:52: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, v8::Handlev8::string, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:52): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), string, enc);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:55:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(const char*, size_t)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:67:50: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:62): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), data, len);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:65:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(char*, size_t, node::smalloc::FreeCallback, void*)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:80:69: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, char*, size_t, node::smalloc::FreeCallback, void*)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:70): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), data, length, callback, hint);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:75:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::Use(char*, uint32_t)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:90:50: warning: ‘v8::Local v8::objectnode::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:85): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return Use(v8::Isolate::GetCurrent(), data, len);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:88:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use Use(isolate, ...)",
                                            ^
                                            In file included from ../src/./serialport.h:7:0,
                                            from ../src/serialport.cpp:1:
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::NewBuffer(char*, size_t, node::smalloc::FreeCallback, void*)’:
                                            ../node_modules/nan/nan.h:692:34: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, char*, size_t, node::smalloc::FreeCallback, void*)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:70): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            hint);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::CopyBuffer(const char*, uint32_t)’:
                                            ../node_modules/nan/nan.h:707:67: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:62): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::NewBuffer(char*, uint32_t)’:
                                            ../node_modules/nan/nan.h:733:67: warning: ‘v8::Local v8::objectnode::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:85): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘void Nan::FatalException(const Nan::TryCatch&)’:
                                            ../node_modules/nan/nan.h:868:73: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:270): Use ParseEncoding(isolate, ...) [-Wdeprecated-declarations]
                                            node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘v8::Local v8::valueNan::Encode(const void*, size_t, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1786:44: warning: ‘v8::Local v8::valuenode::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:278): Use FatalException(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeBytes(v8::Localv8::value, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1802:44: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:291): Use Encode(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeWrite(char*, size_t, v8::Localv8::value, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1824:44: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:302): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            CXX(target) Release/obj.target/serialport/src/serialport_unix.o
                                            In file included from /root/.node-gyp/0.12.6/deps/v8/include/v8stdint.h:13:0,
                                            from /root/.node-gyp/0.12.6/deps/v8/include/v8.h:18,
                                            from /root/.node-gyp/0.12.6/src/node.h:61,
                                            from ../node_modules/nan/nan.h:47,
                                            from ../src/./serialport.h:7,
                                            from ../src/serialport_unix.cpp:1:
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘void node::FatalException(const v8::TryCatch&)’:
                                            /root/.node-gyp/0.12.6/src/node.h:275:61: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:270): Use ParseEncoding(isolate, ...) [-Wdeprecated-declarations]
                                            return FatalException(v8::Isolate::GetCurrent(), try_catch);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:273:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use FatalException(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘v8::Local v8::valuenode::Encode(const void*, size_t, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:287:62: warning: ‘v8::Local v8::valuenode::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:278): Use FatalException(isolate, ...) [-Wdeprecated-declarations]
                                            return Encode(v8::Isolate::GetCurrent(), buf, len, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:282:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use Encode(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘ssize_t node::DecodeBytes(v8::Handlev8::value, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:298:62: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:291): Use Encode(isolate, ...) [-Wdeprecated-declarations]
                                            return DecodeBytes(v8::Isolate::GetCurrent(), val, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:294:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use DecodeBytes(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘ssize_t node::DecodeWrite(char*, size_t, v8::Handlev8::value, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:312:75: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:302): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
                                            return DecodeWrite(v8::Isolate::GetCurrent(), buf, buflen, val, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:307:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use DecodeWrite(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(v8::Handlev8::string, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:58:52: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, v8::Handlev8::string, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:52): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), string, enc);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:55:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(const char*, size_t)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:67:50: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:62): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), data, len);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:65:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(char*, size_t, node::smalloc::FreeCallback, void*)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:80:69: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, char*, size_t, node::smalloc::FreeCallback, void*)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:70): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), data, length, callback, hint);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:75:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::Use(char*, uint32_t)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:90:50: warning: ‘v8::Local v8::objectnode::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:85): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return Use(v8::Isolate::GetCurrent(), data, len);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:88:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use Use(isolate, ...)",
                                            ^
                                            In file included from ../src/./serialport.h:7:0,
                                            from ../src/serialport_unix.cpp:1:
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::NewBuffer(char*, size_t, node::smalloc::FreeCallback, void*)’:
                                            ../node_modules/nan/nan.h:692:34: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, char*, size_t, node::smalloc::FreeCallback, void*)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:70): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            hint);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::CopyBuffer(const char*, uint32_t)’:
                                            ../node_modules/nan/nan.h:707:67: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:62): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::NewBuffer(char*, uint32_t)’:
                                            ../node_modules/nan/nan.h:733:67: warning: ‘v8::Local v8::objectnode::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:85): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘void Nan::FatalException(const Nan::TryCatch&)’:
                                            ../node_modules/nan/nan.h:868:73: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:270): Use ParseEncoding(isolate, ...) [-Wdeprecated-declarations]
                                            node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘v8::Local v8::valueNan::Encode(const void*, size_t, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1786:44: warning: ‘v8::Local v8::valuenode::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:278): Use FatalException(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeBytes(v8::Localv8::value, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1802:44: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:291): Use Encode(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeWrite(char*, size_t, v8::Localv8::value, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1824:44: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:302): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            CXX(target) Release/obj.target/serialport/src/serialport_poller.o
                                            In file included from /root/.node-gyp/0.12.6/deps/v8/include/v8stdint.h:13:0,
                                            from /root/.node-gyp/0.12.6/deps/v8/include/v8.h:18,
                                            from /root/.node-gyp/0.12.6/src/node.h:61,
                                            from ../node_modules/nan/nan.h:47,
                                            from ../src/serialport_poller.cpp:5:
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘void node::FatalException(const v8::TryCatch&)’:
                                            /root/.node-gyp/0.12.6/src/node.h:275:61: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:270): Use ParseEncoding(isolate, ...) [-Wdeprecated-declarations]
                                            return FatalException(v8::Isolate::GetCurrent(), try_catch);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:273:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use FatalException(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘v8::Local v8::valuenode::Encode(const void*, size_t, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:287:62: warning: ‘v8::Local v8::valuenode::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:278): Use FatalException(isolate, ...) [-Wdeprecated-declarations]
                                            return Encode(v8::Isolate::GetCurrent(), buf, len, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:282:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use Encode(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘ssize_t node::DecodeBytes(v8::Handlev8::value, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:298:62: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:291): Use Encode(isolate, ...) [-Wdeprecated-declarations]
                                            return DecodeBytes(v8::Isolate::GetCurrent(), val, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:294:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use DecodeBytes(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h: In function ‘ssize_t node::DecodeWrite(char*, size_t, v8::Handlev8::value, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node.h:312:75: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:302): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
                                            return DecodeWrite(v8::Isolate::GetCurrent(), buf, buflen, val, encoding);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node.h:307:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use DecodeWrite(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(v8::Handlev8::string, node::encoding)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:58:52: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, v8::Handlev8::string, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:52): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), string, enc);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:55:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(const char*, size_t)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:67:50: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:62): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), data, len);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:65:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::New(char*, size_t, node::smalloc::FreeCallback, void*)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:80:69: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, char*, size_t, node::smalloc::FreeCallback, void*)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:70): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return New(v8::Isolate::GetCurrent(), data, length, callback, hint);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:75:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use New(isolate, ...)",
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h: In function ‘v8::Local v8::objectnode::Buffer::Use(char*, uint32_t)’:
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:90:50: warning: ‘v8::Local v8::objectnode::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:85): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return Use(v8::Isolate::GetCurrent(), data, len);
                                            ^
                                            /root/.node-gyp/0.12.6/deps/v8/include/v8config.h:313:1: note: in definition of macro ‘V8_DEPRECATED’
                                            declarator attribute((deprecated(message)))
                                            ^
                                            /root/.node-gyp/0.12.6/src/node_buffer.h:88:1: note: in expansion of macro ‘NODE_DEPRECATED’
                                            NODE_DEPRECATED("Use Use(isolate, ...)",
                                            ^
                                            In file included from ../src/serialport_poller.cpp:5:0:
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::NewBuffer(char*, size_t, node::smalloc::FreeCallback, void*)’:
                                            ../node_modules/nan/nan.h:692:34: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, char*, size_t, node::smalloc::FreeCallback, void*)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:70): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            hint);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::CopyBuffer(const char*, uint32_t)’:
                                            ../node_modules/nan/nan.h:707:67: warning: ‘v8::Local v8::objectnode::Buffer::New(v8::Isolate*, const char*, size_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:62): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘Nan::MaybeLocal v8::objectNan::NewBuffer(char*, uint32_t)’:
                                            ../node_modules/nan/nan.h:733:67: warning: ‘v8::Local v8::objectnode::Buffer::Use(v8::Isolate*, char*, uint32_t)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node_buffer.h:85): Use New(isolate, ...) [-Wdeprecated-declarations]
                                            return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘void Nan::FatalException(const Nan::TryCatch&)’:
                                            ../node_modules/nan/nan.h:868:73: warning: ‘void node::FatalException(v8::Isolate*, const v8::TryCatch&)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:270): Use ParseEncoding(isolate, ...) [-Wdeprecated-declarations]
                                            node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘v8::Local v8::valueNan::Encode(const void*, size_t, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1786:44: warning: ‘v8::Local v8::valuenode::Encode(v8::Isolate*, const void*, size_t, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:278): Use FatalException(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeBytes(v8::Localv8::value, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1802:44: warning: ‘ssize_t node::DecodeBytes(v8::Isolate*, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:291): Use Encode(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            ../node_modules/nan/nan.h: In function ‘ssize_t Nan::DecodeWrite(char*, size_t, v8::Localv8::value, Nan::Encoding)’:
                                            ../node_modules/nan/nan.h:1824:44: warning: ‘ssize_t node::DecodeWrite(v8::Isolate*, char*, size_t, v8::Handlev8::value, node::encoding)’ is deprecated (declared at /root/.node-gyp/0.12.6/src/node.h:302): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
                                            , static_castnode::encoding(encoding));
                                            ^
                                            SOLINK_MODULE(target) Release/obj.target/serialport.node
                                            COPY Release/serialport.node
                                            make: Leaving directory '/opt/test-sml/node_modules/smartmeter-obis/node_modules/serialport/build'
                                            smartmeter-obis@0.1.7 node_modules/smartmeter-obis
                                            ├── open-sml@0.3.1 (int64-buffer@0.1.9)
                                            ├── request@2.79.0 (is-typedarray@1.0.0, forever-agent@0.6.1, aws-sign2@0.6.0, oauth-sign@0.8.2, tunnel-agent@0.4.3, caseless@0.11.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, aws4@1.5.0, uuid@3.0.1, combined-stream@1.0.5, qs@6.3.0, form-data@2.1.2, mime-types@2.1.14, tough-cookie@2.3.2, har-validator@2.0.6, http-signature@1.1.1, hawk@3.1.3)
                                            └── serialport@4.0.7 (bindings@1.2.1, commander@2.9.0, lie@3.1.0, debug@2.6.0, nan@2.5.1, object.assign@4.0.4)</node::encoding></v8::value></v8::value></node::encoding></v8::value></v8::value></node::encoding></v8::value></v8::value></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::string></v8::object></v8::string></v8::object></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></node::encoding></v8::value></v8::value></node::encoding></v8::value></v8::value></node::encoding></v8::value></v8::value></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::string></v8::object></v8::string></v8::object></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value></node::encoding></v8::value></v8::value></node::encoding></v8::value></v8::value></node::encoding></v8::value></v8::value></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::object></v8::string></v8::object></v8::string></v8::object></v8::value></v8::value></v8::value></v8::value></v8::value></v8::value>

                                            
                                            Apassungen:
                                            
                                            >! ````
                                            var options = {
                                                'protocol': "SmlProtocol",
                                                'transport': "SerialResponseTransport",
                                                'transportSerialPort': "/dev/ttyUSB0",
                                                'transportSerialBaudrate': 9600,
                                                'requestInterval': 10,
                                                'obisNameLanguage': 'en'
                                            };
                                            >! ````
                                            
                                            Aufruf:
                                            
                                            >! ````
                                            root@miniyou:/opt/test-sml# node test-sml.js
                                            /opt/test-sml/node_modules/smartmeter-obis/lib/protocols/SmlProtocol.js:57
                                                            if (smlFile.messages[msg].isValid()) Object.assign(result, thi
                                                                                                        ^
                                            TypeError: undefined is not a function
                                                at SmlProtocol.handleMessage (/opt/test-sml/node_modules/smartmeter-obis/lib/protocols/SmlProtocol.js:57:61)
                                                at SerialPort. <anonymous>(/opt/test-sml/node_modules/smartmeter-obis/lib/transports/SerialResponseTransport.js:29:50)
                                                at SerialPort.emit (events.js:107:17)
                                                at SerialPort.module.exports.raw (/opt/test-sml/node_modules/smartmeter-obis/node_modules/serialport/lib/parsers.js:7:13)
                                                at SerialPort._emitData (/opt/test-sml/node_modules/smartmeter-obis/node_modules/serialport/lib/serialport.js:313:18)
                                                at SerialPort. <anonymous>(/opt/test-sml/node_modules/smartmeter-obis/node_modules/serialport/lib/serialport.js:293:14)
                                                at SerialPort. <anonymous>(/opt/test-sml/node_modules/smartmeter-obis/node_modules/serialport/lib/serialport.js:306:7)
                                                at FSReqWrap.wrapper [as oncomplete] (fs.js:527:17)</anonymous></anonymous></anonymous> 
                                            

                                            und nun? bringt dich das weiter?

                                            Gruß,

                                            a200

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            890
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            71
                                            21587
                                            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