NEWS
PH-Messung
-
@coyote was idealerweise noch fehlt ist die Verbindung zwischen dem „binFlag1“ Inhalt und dem Display oder so herzustellen. Bisher kennen wir nur die Bedeutung der zwei Bits von binFlag2.
Aber denke da muss man echt mal mehr anschauen wenn sich da mal Dinge ändern.
@coyote bei dir hatte sind bei dem einen Test mit Wasser letztens 3 Bits in dem binFlag1 geändert über die Zeit. Meine Vermutung ist das das Display anzeigen sind. Also beobachtet bitte mal in die Richtung ob es da Zusammenhänge gibt. Dann hätten wir noch mehr Infos.
Als Nächstes würde ich noch discovery einbauen um die Geräte im Netzwerk zu finden. Und dann kann man da nen adapter zusammenklöppeln.
Achja: testet bitte auch mal den Auto reconnect. Also schaltet gerät aus während lib verbunden ist und wieder an und schaut das danach wieder Daten kommen.
Bitte vor dem Test nochmal die aktuellste Version installieren (das npm install nochmal machen)Danke
@apollon77 das binFlag2 könnte was mit den Relais Ausgängen zu tun haben oder?
Oben bei skinni ist es 0, wenn bei Ausgänge "false" und 10 wenn RedoxSwitch "true"
Auf dem Display sind noch 2 Pfeile (wobei eigentlich 4) die blinken, wenn die Ausgänge geschaltet sind, es gibt für beide Werte jeweils einen pfeil nach oben und nach unten.
-
Reconnect hatte vorhin nicht geklappt, das hatte ich als erstes versucht. Dachte soweit sind wir noch nicht.
Update geht leider nicht:
npm install Apollon77/node-ph803w npm ERR! code ENOSELF npm ERR! Refusing to install package with name "node-ph803w" under a package npm ERR! also called "node-ph803w". Did you name your project the same npm ERR! as the dependency you're installing? npm ERR! npm ERR! For more information, see: npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm> npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2021-05-28T07_30_16_009Z-debug.log -
@soerenkaiser99 hast du ne Ahnung welche Sonde der Herr genau verwendet?
@uncleb ist drunter Kommentiert, diese https://amzn.to/3ft8qOj
-
@soerenkaiser99 ich denke nur eine Sonde ist einfacher als zwei weil die challenges bei zwei Sonden sind größer wegen galvanischer Trennung und Dingen das sich die Sonden nicht gegenseitig beeinflussen. Aber ja.
Ich persönlich bastele lieber mit Software als mit Hardware (hab gelernt das ich bei Zweiterem für mich ein besseres Aufwand-nutzen-Frust Verhältnis habe) ;-)) ich hab bei mir auch in Summe drei arduinos im Haus verbaut für Dinge und hoffe das geht nie wieder kaputt weil ich fadt nicht mehr weiß wie das alles war und worauf ich achten muss

@apollon77 Hast ja recht, war auch eher mit nem Augenzwinkern gemeint
sorry für den Offtopic -
@skinni Du musst den Schritt wieder im gleichen Folder wie beim ersten mal ausführen und nicht im Folder des Packages, sonst würde er eine Abhängigkeit zu sich selbst herstellen.
Im Folder des Packages sollte
npm updatetun, aber noch nie selbst probiert.sorry mein Fehler, bin aus dem Verzeichnis raus, dann hats geklappt.
Reconnect geht aber immer noch nicht:
ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} +2s Data: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +2s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8sAb da kommt nix mehr
-
sorry mein Fehler, bin aus dem Verzeichnis raus, dann hats geklappt.
Reconnect geht aber immer noch nicht:
ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} +2s Data: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +2s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8sAb da kommt nix mehr
-
@apollon77 das binFlag2 könnte was mit den Relais Ausgängen zu tun haben oder?
Oben bei skinni ist es 0, wenn bei Ausgänge "false" und 10 wenn RedoxSwitch "true"
Auf dem Display sind noch 2 Pfeile (wobei eigentlich 4) die blinken, wenn die Ausgänge geschaltet sind, es gibt für beide Werte jeweils einen pfeil nach oben und nach unten.
@coyote also ja die beiden Relais hab ich ja in binFlag2 gefunden. Da holt er die True/false auch her. Frage ist jetzt ob noch andere Dinge vom Display (Annahme vor allem in binFlag1) eine Korrelation haben. Mal mindestens drei der Bits haben sich bisher generell mal geändert.
-
@coyote also ja die beiden Relais hab ich ja in binFlag2 gefunden. Da holt er die True/false auch her. Frage ist jetzt ob noch andere Dinge vom Display (Annahme vor allem in binFlag1) eine Korrelation haben. Mal mindestens drei der Bits haben sich bisher generell mal geändert.
@apollon77 wo find ich denn binFlag1/2 in Wireshark?
-
"binFlags2":"11" wenn PH an und ORP an
"binFlags2":"10" wenn PH aus und ORP an
"binFlags2":"0" wenn PH aus und ORP aus
"binFlags2":"1" wenn PH an und ORP aus -
@apollon77 wo find ich denn binFlag1/2 in Wireshark?
-
@skinni Im Wireshark und zb auch bei deinem einen Post https://forum.iobroker.net/post/635416 hat sich was geändert ... schau mal am anfang ... binFlag1. Die Werte die wir schon gesehen haben stehen auf meiner GitHub seite ... aber die Bedeutung ist noch unklar.
-
@skinni Im Wireshark und zb auch bei deinem einen Post https://forum.iobroker.net/post/635416 hat sich was geändert ... schau mal am anfang ... binFlag1. Die Werte die wir schon gesehen haben stehen auf meiner GitHub seite ... aber die Bedeutung ist noch unklar.
@apollon77 Hatte mir das nicht so genau angeschaut, bin noch am arbeiten. Das erste Paket hat immer die 11 im binFlag1, danach ist es immer 100 und ändert sich auch nie.
Es ändern sich bei mir nur die Schaltzustände im binFlag2 und die Werte für PH/Redox. -
@apollon77 Hatte mir das nicht so genau angeschaut, bin noch am arbeiten. Das erste Paket hat immer die 11 im binFlag1, danach ist es immer 100 und ändert sich auch nie.
Es ändern sich bei mir nur die Schaltzustände im binFlag2 und die Werte für PH/Redox. -
sorry mein Fehler, bin aus dem Verzeichnis raus, dann hats geklappt.
Reconnect geht aber immer noch nicht:
ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} +2s Data: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.7,"redox":-151,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +2s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8sAb da kommt nix mehr
-
root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# DEBUG=ph803w* node data.js 192.168.66.56 ph803w:device Connected to TCP 192.168.66.56:12416 +0ms ph803w:device Write and register for response type 7: 0000000303000006 +3ms ph803w:device Passcode received: IIXODDIHLL +14ms ph803w:device Resolve for message type 7: IIXODDIHLL +0ms ph803w:device Write and register for response type 9: 000000030f000008000a4949 584f444449484c4c +2ms ph803w:device login success +7ms ph803w:device Resolve for message type 9: true +0ms ph803w:device Write and register for response type 145: 000000030400009002 +1m s ph803w:device Retrieved data: {"binFlags1":"11","binFlags2":"10","ph":7.49,"re dox":-31,"phSwitch":false,"redoxSwitch":true} +44ms Data: {"binFlags1":"11","binFlags2":"10","ph":7.49,"redox":-31,"phSwitch":false, "redoxSwitch":true} ph803w:device Resolve for message type 145: [object Object] +3ms ph803w:device Send ping +4s ph803w:device received pong +9ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-29,"phSwitch":false,"redoxSwitch":true} +40ms Data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-29,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-29,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.5,"redox":-28,"phSwitch":false,"redoxSwitch":true} +2s Data: {"binFlags1":"100","binFlags2":"10","ph":7.5,"redox":-28,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.5,"redox":-28,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +2s ph803w:device received pong +11ms ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-25,"phSwitch":false,"redoxSwitch":true} +15ms Data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-25,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-25,"phSwitch":false,"redoxSwitch":true} +1ms ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8s ph803w:device Destroy socket +0ms ph803w:device Connected to TCP 192.168.66.56:12416 +17s ph803w:device Socket end, Reconnect: true +10s (node:29697) UnhandledPromiseRejectionWarning: Error: Already connected to device at /home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:53:24 at new Promise (<anonymous>) at PH803WDevice.connect (/home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:50:16) at Timeout._onTimeout (/home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:91:34) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) (node:29697) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:29697) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# -
root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# DEBUG=ph803w* node data.js 192.168.66.56 ph803w:device Connected to TCP 192.168.66.56:12416 +0ms ph803w:device Write and register for response type 7: 0000000303000006 +3ms ph803w:device Passcode received: IIXODDIHLL +14ms ph803w:device Resolve for message type 7: IIXODDIHLL +0ms ph803w:device Write and register for response type 9: 000000030f000008000a4949 584f444449484c4c +2ms ph803w:device login success +7ms ph803w:device Resolve for message type 9: true +0ms ph803w:device Write and register for response type 145: 000000030400009002 +1m s ph803w:device Retrieved data: {"binFlags1":"11","binFlags2":"10","ph":7.49,"re dox":-31,"phSwitch":false,"redoxSwitch":true} +44ms Data: {"binFlags1":"11","binFlags2":"10","ph":7.49,"redox":-31,"phSwitch":false, "redoxSwitch":true} ph803w:device Resolve for message type 145: [object Object] +3ms ph803w:device Send ping +4s ph803w:device received pong +9ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-29,"phSwitch":false,"redoxSwitch":true} +40ms Data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-29,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-29,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.5,"redox":-28,"phSwitch":false,"redoxSwitch":true} +2s Data: {"binFlags1":"100","binFlags2":"10","ph":7.5,"redox":-28,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.5,"redox":-28,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +2s ph803w:device received pong +11ms ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-25,"phSwitch":false,"redoxSwitch":true} +15ms Data: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-25,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.49,"redox":-25,"phSwitch":false,"redoxSwitch":true} +1ms ph803w:device Send ping +4s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8s ph803w:device Destroy socket +0ms ph803w:device Connected to TCP 192.168.66.56:12416 +17s ph803w:device Socket end, Reconnect: true +10s (node:29697) UnhandledPromiseRejectionWarning: Error: Already connected to device at /home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:53:24 at new Promise (<anonymous>) at PH803WDevice.connect (/home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:50:16) at Timeout._onTimeout (/home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:91:34) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) (node:29697) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:29697) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# -
@coyote sagte in PH-Messung:
Please try again
(update auf GitHub) ...Also, das hier kommt wenn ich das Gerät etwas länger aus lasse, keine Ahnung 30s oder so
root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# DEBUG=ph803w* node data.js 192.168.66.56 ph803w:device Connected to TCP 192.168.66.56:12416 +0ms ph803w:device Write and register for response type 7: 0000000303000006 +3ms ph803w:device Passcode received: IIXODDIHLL +10ms ph803w:device Resolve for message type 7: IIXODDIHLL +0ms ph803w:device Write and register for response type 9: 000000030f000008000a4949584f444449484c4c +1ms ph803w:device login success +13ms ph803w:device Resolve for message type 9: true +0ms ph803w:device Write and register for response type 145: 000000030400009002 +1ms ph803w:device Retrieved data: {"binFlags1":"11","binFlags2":"10","ph":7.33,"redox":-113,"phSwitch":false,"redoxSwitch":true} +45ms Data: {"binFlags1":"11","binFlags2":"10","ph":7.33,"redox":-113,"phSwitch":false,"redoxSwitch":true} ph803w:device Resolve for message type 145: [object Object] +2ms ph803w:device Send ping +4s ph803w:device received pong +12ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-112,"phSwitch":false,"redoxSwitch":true} +1s Data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-112,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-112,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +3s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device received pong +5ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-111,"phSwitch":false,"redoxSwitch":true} +2s Data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-111,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-111,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +2s ph803w:device received pong +5ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8s ph803w:device Destroy socket +1ms ph803w:device Socket error: Error: connect EHOSTUNREACH 192.168.66.56:12416 +29s Error: Error: connect EHOSTUNREACH 192.168.66.56:12416 (node:32240) UnhandledPromiseRejectionWarning: Error at Socket.<anonymous> (/home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:78:28) at Socket.emit (events.js:314:20) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) (node:32240) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:32240) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example#Stecke ich es aus und nach paar Sek. wieder ein, siehts so aus
root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# DEBUG=ph803w* node data.js 192.168.66.56 ph803w:device Connected to TCP 192.168.66.56:12416 +0ms ph803w:device Write and register for response type 7: 0000000303000006 +4ms ph803w:device Passcode received: IIXODDIHLL +5ms ph803w:device Resolve for message type 7: IIXODDIHLL +1ms ph803w:device Write and register for response type 9: 000000030f000008000a4949584f444449484c4c +0ms ph803w:device login success +16ms ph803w:device Resolve for message type 9: true +0ms ph803w:device Write and register for response type 145: 000000030400009002 +1ms ph803w:device Retrieved data: {"binFlags1":"11","binFlags2":"10","ph":7.38,"redox":-87,"phSwitch":false,"redoxSwitch":true} +53ms Data: {"binFlags1":"11","binFlags2":"10","ph":7.38,"redox":-87,"phSwitch":false,"redoxSwitch":true} ph803w:device Resolve for message type 145: [object Object] +1ms ph803w:device Send ping +4s ph803w:device received pong +4ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-84,"phSwitch":false,"redoxSwitch":true} +849ms Data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-84,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-84,"phSwitch":false,"redoxSwitch":true} +1ms ph803w:device Send ping +3s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-83,"phSwitch":false,"redoxSwitch":true} +3s Data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-83,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-83,"phSwitch":false,"redoxSwitch":true} +7ms ph803w:device Send ping +1s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8s ph803w:device Destroy socket +0ms ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10sMehr tut sich da leider nicht mehr
-
Also, das hier kommt wenn ich das Gerät etwas länger aus lasse, keine Ahnung 30s oder so
root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# DEBUG=ph803w* node data.js 192.168.66.56 ph803w:device Connected to TCP 192.168.66.56:12416 +0ms ph803w:device Write and register for response type 7: 0000000303000006 +3ms ph803w:device Passcode received: IIXODDIHLL +10ms ph803w:device Resolve for message type 7: IIXODDIHLL +0ms ph803w:device Write and register for response type 9: 000000030f000008000a4949584f444449484c4c +1ms ph803w:device login success +13ms ph803w:device Resolve for message type 9: true +0ms ph803w:device Write and register for response type 145: 000000030400009002 +1ms ph803w:device Retrieved data: {"binFlags1":"11","binFlags2":"10","ph":7.33,"redox":-113,"phSwitch":false,"redoxSwitch":true} +45ms Data: {"binFlags1":"11","binFlags2":"10","ph":7.33,"redox":-113,"phSwitch":false,"redoxSwitch":true} ph803w:device Resolve for message type 145: [object Object] +2ms ph803w:device Send ping +4s ph803w:device received pong +12ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-112,"phSwitch":false,"redoxSwitch":true} +1s Data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-112,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-112,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +3s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device received pong +5ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-111,"phSwitch":false,"redoxSwitch":true} +2s Data: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-111,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.33,"redox":-111,"phSwitch":false,"redoxSwitch":true} +0ms ph803w:device Send ping +2s ph803w:device received pong +5ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8s ph803w:device Destroy socket +1ms ph803w:device Socket error: Error: connect EHOSTUNREACH 192.168.66.56:12416 +29s Error: Error: connect EHOSTUNREACH 192.168.66.56:12416 (node:32240) UnhandledPromiseRejectionWarning: Error at Socket.<anonymous> (/home/coyote/ph803w/node_modules/node-ph803w/lib/device.js:78:28) at Socket.emit (events.js:314:20) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) (node:32240) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:32240) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example#Stecke ich es aus und nach paar Sek. wieder ein, siehts so aus
root@debian:/home/coyote/ph803w/node_modules/node-ph803w/example# DEBUG=ph803w* node data.js 192.168.66.56 ph803w:device Connected to TCP 192.168.66.56:12416 +0ms ph803w:device Write and register for response type 7: 0000000303000006 +4ms ph803w:device Passcode received: IIXODDIHLL +5ms ph803w:device Resolve for message type 7: IIXODDIHLL +1ms ph803w:device Write and register for response type 9: 000000030f000008000a4949584f444449484c4c +0ms ph803w:device login success +16ms ph803w:device Resolve for message type 9: true +0ms ph803w:device Write and register for response type 145: 000000030400009002 +1ms ph803w:device Retrieved data: {"binFlags1":"11","binFlags2":"10","ph":7.38,"redox":-87,"phSwitch":false,"redoxSwitch":true} +53ms Data: {"binFlags1":"11","binFlags2":"10","ph":7.38,"redox":-87,"phSwitch":false,"redoxSwitch":true} ph803w:device Resolve for message type 145: [object Object] +1ms ph803w:device Send ping +4s ph803w:device received pong +4ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-84,"phSwitch":false,"redoxSwitch":true} +849ms Data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-84,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-84,"phSwitch":false,"redoxSwitch":true} +1ms ph803w:device Send ping +3s ph803w:device received pong +3ms ph803w:device Retrieved data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-83,"phSwitch":false,"redoxSwitch":true} +3s Data: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-83,"phSwitch":false,"redoxSwitch":true} ph803w:device Ignore resolve for message type 145 because no promise stored: {"binFlags1":"100","binFlags2":"10","ph":7.35,"redox":-83,"phSwitch":false,"redoxSwitch":true} +7ms ph803w:device Send ping +1s ph803w:device received pong +3ms ph803w:device Send ping +4s ph803w:device Ping response overdue, reconnect +8s ph803w:device Destroy socket +0ms ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10s ph803w:device Connected to TCP 192.168.66.56:12416 +10s ph803w:device Socket end, Reconnect: true +10sMehr tut sich da leider nicht mehr