NEWS
Modbus adapter
-
Hallo,
habe es neu aufgesetzt und jetzt kommt dieser log.
! modbus.0 2017-09-21 18:49:28.136 error Cannot create modbus master!
! modbus.0 2017-09-21 18:49:28.121 error Cannot open port "/dev/ttyUSB0" [57600]: ReferenceError: serialport is not defined
! modbus.0 2017-09-21 18:49:27.015 info starting. Version 0.5.3 in /opt/iobroker/node_modules/iobroker.modbus, node: v4.8.0
! host.FroelingRPi 2017-09-21 18:49:17.550 info instance system.adapter.modbus.0 started with pid 1010
! host.FroelingRPi 2017-09-21 18:49:15.129 info instance system.adapter.modbus.0 terminated with code 0 (OK)
! modbus.0 2017-09-21 18:49:15.074 info terminating
! host.FroelingRPi 2017-09-21 18:49:15.005 info stopInstance system.adapter.modbus.0 killing pid 981
! host.FroelingRPi 2017-09-21 18:49:15.002 info stopInstance system.adapter.modbus.0
! host.FroelingRPi 2017-09-21 18:49:14.999 info object change system.adapter.modbus.0
! modbus.0 2017-09-21 18:49:01.186 info List of port: [{"comName":"/dev/ttyAMA0"},{"comName":"/dev/ttyUSB0","manufacturer":"FTDI","serialNumber":"FTDI_USB_Serial_Converter_FT8VXGSB","pnpId":"usb-FTDI_USB_Serial_Converter_FT8VXGSB-if00-port[/spoiler]danke für Eure hilfe
Tobi
-
Das Installationslog vom Adapter ist interessant!!
-
Woher bekomme ich den?
Gesendet von meinem D5803 mit Tapatalk
-
/opt/iobroker/log/… sind die Logfiles der letzten 7 Tage. Da sollte es drin sein vom Zeitpunkt der Installation
-
/opt/iobroker/log/… sind die Logfiles der letzten 7 Tage. Da sollte es drin sein vom Zeitpunkt der Installation `
Morgen,
hier der log…
! 2017-09-21 18:35:31.459 - [32minfo[39m: host.FroelingRPi InMemoryDB 192.168.178.10:9001 connected
! 2017-09-21 18:35:31.898 - [32minfo[39m: host.FroelingRPi 18 instances found
! 2017-09-21 18:35:31.916 - [33mwarn[39m: host.FroelingRPi does not start any instances on this host
! 2017-09-21 18:36:08.728 - [33mwarn[39m: host.FroelingRPi some hosts are offline
! 2017-09-21 18:36:08.885 - [33mwarn[39m: host.FroelingRPi too delayed answer for IObroker
! 2017-09-21 18:36:10.977 - [32minfo[39m: iobroker _restart
! 2017-09-21 18:36:15.335 - [32minfo[39m: iobroker Starting node restart.js
! 2017-09-21 18:36:15.498 - [32minfo[39m: iobroker exit 0
! 2017-09-21 18:36:17.312 - [32minfo[39m: host.FroelingRPi received SIGTERM
! 2017-09-21 18:36:17.365 - [32minfo[39m: host.FroelingRPi terminated
! 2017-09-21 18:36:28.525 - [32minfo[39m: host.FroelingRPi iobroker.js-controller version 1.1.3 js-controller starting
! 2017-09-21 18:36:28.610 - [32minfo[39m: host.FroelingRPi Copyright 2014-2017 bluefox, hobbyquaker
! 2017-09-21 18:36:28.619 - [32minfo[39m: host.FroelingRPi hostname: FroelingRPi, node: v4.8.0
! 2017-09-21 18:36:28.628 - [32minfo[39m: host.FroelingRPi ip addresses: 192.168.178.20 2003:48:4a3d:b00:93f0:b958:4889:8039 fe80::3708:fc86:21b1:a4c2
! 2017-09-21 18:36:30.498 - [32minfo[39m: host.FroelingRPi InMemoryDB 192.168.178.10:9001 connected
! 2017-09-21 18:36:31.139 - [32minfo[39m: host.FroelingRPi 18 instances found
! 2017-09-21 18:36:31.198 - [33mwarn[39m: host.FroelingRPi does not start any instances on this host
! 2017-09-21 18:37:04.614 - [32minfo[39m: iobroker add modbus
! 2017-09-21 18:37:14.049 - [32minfo[39m: iobroker npm install iobroker.modbus --production --prefix "/opt/iobroker" (System call)
! 2017-09-21 18:39:41.632 - [32minfo[39m: iobroker node-pre-gyp
! 2017-09-21 18:39:41.672 - [32minfo[39m: iobroker ERR! Tried to download(404): https://github.com/EmergingTechnologyAd ... arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@4.8.0 (node-v46 ABI) (falling back to source compile with node-gyp)
! 2017-09-21 18:42:58.137 - [32minfo[39m: iobroker host.FroelingRPi install adapter modbus
! 2017-09-21 18:42:58.242 - [32minfo[39m: iobroker got /opt/iobroker/node_modules/iobroker.modbus/admin
! 2017-09-21 18:42:58.290 - [32minfo[39m: iobroker upload [10] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/modbus.png modbus.png image/png
! 2017-09-21 18:42:58.573 - [32minfo[39m: iobroker upload [9] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/jsgrid.min.js lib/js/jsgrid.min.js application/javascript
! 2017-09-21 18:42:58.783 - [32minfo[39m: iobroker upload [8] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/jsgrid.js lib/js/jsgrid.js application/javascript
! 2017-09-21 18:42:58.958 - [32minfo[39m: iobroker upload [7] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/grid.locale-ru.js lib/js/grid.locale-ru.js application/javascript
! 2017-09-21 18:42:59.049 - [32minfo[39m: iobroker upload [6] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/grid.locale-de.js lib/js/grid.locale-de.js application/javascript
! 2017-09-21 18:42:59.137 - [32minfo[39m: iobroker upload [5] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid.min.css lib/css/jsgrid.min.css text/css
! 2017-09-21 18:42:59.233 - [32minfo[39m: iobroker upload [4] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid.css lib/css/jsgrid.css text/css
! 2017-09-21 18:42:59.329 - [32minfo[39m: iobroker upload [3] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid-theme.min.css lib/css/jsgrid-theme.min.css text/css
! 2017-09-21 18:42:59.499 - [32minfo[39m: iobroker upload [2] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid-theme.css lib/css/jsgrid-theme.css text/css
! 2017-09-21 18:42:59.670 - [32minfo[39m: iobroker upload [1] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/index.html index.html text/html
! 2017-09-21 18:42:59.845 - [32minfo[39m: iobroker upload [0] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/img/plc_back.png img/plc_back.png image/png
! 2017-09-21 18:43:00.490 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus created
! 2017-09-21 18:43:00.593 - [32minfo[39m: iobroker host.FroelingRPi create instance modbus
! 2017-09-21 18:43:00.641 - [32minfo[39m: iobroker host.FroelingRPi object modbus.0.info.connection created
! 2017-09-21 18:43:00.692 - [32minfo[39m: iobroker host.FroelingRPi object modbus.0.info created
! 2017-09-21 18:43:00.750 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.outputCount created
! 2017-09-21 18:43:00.792 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.inputCount created
! 2017-09-21 18:43:00.839 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.uptime created
! 2017-09-21 18:43:00.882 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.memRss created
! 2017-09-21 18:43:00.928 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.memHeapTotal created
! 2017-09-21 18:43:00.974 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.memHeapUsed created
! 2017-09-21 18:43:01.017 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.connected created
! 2017-09-21 18:43:01.062 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0.alive created
! 2017-09-21 18:43:01.142 - [32minfo[39m: iobroker host.FroelingRPi object system.adapter.modbus.0 created
! 2017-09-21 18:43:01.167 - [32minfo[39m: host.FroelingRPi object change system.adapter.modbus.0
! 2017-09-21 18:43:01.278 - [32minfo[39m: host.FroelingRPi instance system.adapter.modbus.0 started with pid 964
! 2017-09-21 18:43:01.380 - [32minfo[39m: iobroker exit 0
! 2017-09-21 18:43:12.126 - [32minfo[39m: modbus.0 starting. Version 0.5.3 in /opt/iobroker/node_modules/iobroker.modbus, node: v4.8.0
! 2017-09-21 18:43:13.835 - [33mwarn[39m: modbus.0 On error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":502}
! 2017-09-21 18:43:15.203 - [32minfo[39m: modbus.0 List of port: [{"comName":"/dev/ttyAMA0"},{"comName":"/dev/ttyUSB0","manufacturer":"FTDI","serialNumber":"FTDI_USB_Serial_Converter_FT8VXGSB","pnpId":"usb-FTDI_USB_Serial_Converter_FT8VXGSB-if00-port0","vendorId":"0x0403","productId":"0x6001"}]
! 2017-09-21 18:44:15.085 - [33mwarn[39m: modbus.0 On error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":502}
! 2017-09-21 18:45:16.108 - [33mwarn[39m: modbus.0 On error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":502}
! 2017-09-21 18:46:17.129 - [33mwarn[39m: modbus.0 On error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":502}
! 2017-09-21 18:47:18.150 - [33mwarn[39m: modbus.0 On error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":502}
! 2017-09-21 18:48:19.171 - [33mwarn[39m: modbus.0 On error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":502}
! 2017-09-21 18:48:30.753 - [32minfo[39m: host.FroelingRPi object change system.adapter.modbus.0
! 2017-09-21 18:48:30.769 - [32minfo[39m: host.FroelingRPi stopInstance system.adapter.modbus.0
! 2017-09-21 18:48:30.773 - [32minfo[39m: host.FroelingRPi stopInstance system.adapter.modbus.0 killing pid 964
! 2017-09-21 18:48:30.848 - [32minfo[39m: modbus.0 terminating
! 2017-09-21 18:48:30.909 - [32minfo[39m: host.FroelingRPi instance system.adapter.modbus.0 terminated with code 0 (OK)
! 2017-09-21 18:48:33.345 - [32minfo[39m: host.FroelingRPi instance system.adapter.modbus.0 started with pid 981
! 2017-09-21 18:48:42.609 - [32minfo[39m: modbus.0 starting. Version 0.5.3 in /opt/iobroker/node_modules/iobroker.modbus, node: v4.8.0
! 2017-09-21 18:48:43.710 - [31merror[39m: modbus.0 Cannot open port "/dev/ttyUSB0" [57600]: ReferenceError: serialport is not defined
! 2017-09-21 18:48:43.724 - [31merror[39m: modbus.0 Cannot create modbus master!
! 2017-09-21 18:49:01.186 - [32minfo[39m: modbus.0 List of port: [{"comName":"/dev/ttyAMA0"},{"comName":"/dev/ttyUSB0","manufacturer":"FTDI","serialNumber":"FTDI_USB_Serial_Converter_FT8VXGSB","pnpId":"usb-FTDI_USB_Serial_Converter_FT8VXGSB-if00-port0","vendorId":"0x0403","productId":"0x6001"}]
! 2017-09-21 18:49:14.999 - [32minfo[39m: host.FroelingRPi object change system.adapter.modbus.0
! 2017-09-21 18:49:15.002 - [32minfo[39m: host.FroelingRPi stopInstance system.adapter.modbus.0
! 2017-09-21 18:49:15.005 - [32minfo[39m: host.FroelingRPi stopInstance system.adapter.modbus.0 killing pid 981
! 2017-09-21 18:49:15.074 - [32minfo[39m: modbus.0 terminating
! 2017-09-21 18:49:15.129 - [32minfo[39m: host.FroelingRPi instance system.adapter.modbus.0 terminated with code 0 (OK)
! 2017-09-21 18:49:17.550 - [32minfo[39m: host.FroelingRPi instance system.adapter.modbus.0 started with pid 1010
! 2017-09-21 18:49:27.015 - [32minfo[39m: modbus.0 starting. Version 0.5.3 in /opt/iobroker/node_modules/iobroker.modbus, node: v4.8.0
! 2017-09-21 18:49:28.121 - [31merror[39m: modbus.0 Cannot open port "/dev/ttyUSB0" [57600]: ReferenceError: serialport is not defined
! 2017-09-21 18:49:28.136 - [31merror[39m: modbus.0 Cannot create modbus master![/spoiler]liegt der Fehler in 18.39.41
danke
tobi
-
Steht zwischen 18:39 und 18:42 echt nichts im Log? Da fehlt das eigentlich interessante
-
sorry, Nein.
Hab am log nichts verändert….
steht genau so in der Datei...
Vielleicht ist es problem mit ARM6 wenn es bei anderen mit node 4.8.0 funktioniert, dann wäre das für mich das einzige...
tobi
-
Geh mal Kommandozeile in /opt/iobroker
Dort mach mal:
sudo npm install iobroker.modbus –production --prefix "/opt/iobroker"
und dann das Log bitte.
-
hier der log…
! root@FroelingRPi:/opt/iobroker# sudo npm install iobroker.modbus –production -- prefix "/opt/iobroker"
! -
! > serialport@4.0.7 install /opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport
! > node-pre-gyp install --fallback-to-build
! node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAd ... arm.tar.gz
! node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@4.8.0 (node-v46 ABI) (falling back to source compile with node-gyp)
! make: Entering directory '/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/build'
! CXX(target) Release/obj.target/serialport/src/serialport.o
! CXX(target) Release/obj.target/serialport/src/serialport_unix.o
! CXX(target) Release/obj.target/serialport/src/serialport_poller.o
! SOLINK_MODULE(target) Release/obj.target/serialport.node
! COPY Release/serialport.node
! make: Leaving directory '/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/build'
! iobroker.modbus@0.5.3 node_modules/iobroker.modbus
! ├── stampit-log@0.3.0
! ├── stampit-state-machine@0.2.1
! ├── stampit-event-bus@0.1.1
! ├── put@0.0.6
! ├── crc@3.4.0
! ├── jsmodbus@1.2.4 (q@1.0.1)
! ├── stampit@2.1.2 (supermixer@1.0.3, lodash@3.10.1)
! └── serialport@4.0.7 (bindings@1.2.1, commander@2.11.0, debug@2.6.8, lie@3.1.1, nan@2.7.0, object.assign@4.0.4)
! root@FroelingRPi:/opt/iobroker#tobi
-
Geh mal Kommandozeile in /opt/iobroker
Dort mach mal:
sudo npm install iobroker.modbus –production --prefix "/opt/iobroker"
und dann das Log bitte. `
was meinst du? anwender fehler oder ein Fall für ein ISSUE auf github?
mfg
-
Ich meine das du den Adapter bitte mal direkt an der Kommandozeile installieren sollst. Das was ich geschrieben habe waren die Befehle dazu
-
Ich meine das du den Adapter bitte mal direkt an der Kommandozeile installieren sollst. Das was ich geschrieben habe waren die Befehle dazu `
hallo,
hier der log…
! root@IObroker:/opt/iobroker# sudo npm install iobroker.modbus –production --prefix "/opt/iobroker"
! iobroker@1.0.0 /opt/iobroker
! └─┬ iobroker.modbus@0.5.3
! └─┬ serialport@4.0.7
! ├── debug@2.6.9
! └─┬ object.assign@4.0.4
! └── function-bind@1.1.1
! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.piface/package.json'
! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/node-gyp/package.json'
! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/node-pifacedigital/package.json'
! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/tualo-commander/package.json'
! root@IObroker:/opt/iobroker#Im Reiter Adapter wird er als installiert in 0.5.3 angezeigt, in Reiter Instanzen taucht er nicht auf…
muss ich etwas aktualisieren?
danke
tobi
-
Dann klick unter "Adapter" in der zeile von dem Adapter auf das "+" auf der rechten Seite, dann wird eine Instanz angelegt
-
Hi,
sagt mal, ist das normal?
Ich habe mein System nochmal neu aufgesetzt, da irgendwas nicht stimmen kann….
Normalerweise lass ich das iobroker installieren und mache derweilen etwas anderes...
jetzt kommen die Fehler des serialport schon beim Installieren vom iobroker...
! root@FroelingRPi:~# sudo mkdir /opt/iobroker
! root@FroelingRPi:~# sudo chmod 777 /opt/iobroker
! root@FroelingRPi:~# cd /opt/iobroker
! root@FroelingRPi:/opt/iobroker# sudo npm install iobroker –unsafe-perm
! /
! > iobroker@1.0.1 install /opt/iobroker/node_modules/iobroker
! > node lib/setup.js
! npm install iobroker.discovery --production --prefix /opt/iobroker
! node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAd ... arm.tar.gz
! node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@4.8.0 (node-v46 ABI) (falling back to source compile with node-gyp)
! npm install iobroker.admin --production --prefix /opt/iobroker
! npm install iobroker.js-controller --production --prefix /opt/iobrokerda stimmt doch was nicht… ist da evtl ein defekter link im system oder sind die Fehlermeldungen normal?
tobi
EDIT:
OK, ich denke, dass ich es selber kapiert habe....
da ich ein altes NODE (4.8.0) verwende, wird der link nichtmehr aktuell sein.
werde dann mit
sudo npm install serialport --unsafe-perm --build-from-source
mal sehen was sich tut.
Danach versuche ich den MODBUS nochmal ans laufen bekommen.
-
Bitte mal modbus vom Github installieren. Tut es dann?
-
Hallo,
ich habe es jetzt nochmal mit einen neueren node versucht… (6.x)
Und auch mit einen Raspi2
aber ich komme auf keinen grünen Zweig....
Wenn ich den serialport wiederholt installiere, dann kommt diese Meldung.
! root@FroelingRPi:~# sudo npm install serialport –unsafe-perm --build-from-source
! > serialport@5.0.0 install /root/node_modules/serialport
! > node-pre-gyp install --fallback-to-build
! make: Entering directory '/root/node_modules/serialport/build'
! CXX(target) Release/obj.target/serialport/src/serialport.o
! CXX(target) Release/obj.target/serialport/src/serialport_unix.o
! CXX(target) Release/obj.target/serialport/src/poller.o
! SOLINK_MODULE(target) Release/obj.target/serialport.node
! COPY Release/serialport.node
! make: Leaving directory '/root/node_modules/serialport/build'
! bindings@1.3.0 node_modules/serialport/node_modules/bindings -> node_modules/bindings
! commander@2.11.0 node_modules/serialport/node_modules/commander -> node_modules/commander
! nan@2.7.0 node_modules/serialport/node_modules/nan -> node_modules/nan
! promirepl@1.0.1 node_modules/serialport/node_modules/promirepl -> node_modules/promirepl
! /root
! └── serialport@5.0.0
! npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
! npm WARN root No description
! npm WARN root No repository field.
! npm WARN root No README data
! npm WARN root No license field.Und egal mit welchen node und ARM6/7 und mit 2 unterschiedlichen usb/serial adapter kommt immer
dieses log…
! 2017-09-27 22:55:12.808 - [32minfo[39m: host.IObroker instance system.adapter.modbus.0 started with pid 4191
! 2017-09-27 22:55:17.902 - [32minfo[39m: modbus.0 starting. Version 0.5.3 in /opt/iobroker/node_modules/iobroker.modbus, node: v6.11.1
! 2017-09-27 22:55:18.521 - [31merror[39m: modbus.0 Cannot open port "/dev/ttyUSB0" [57600]: ReferenceError: serialport is not defined
! 2017-09-27 22:55:18.528 - [31merror[39m: modbus.0 Cannot create modbus master![/spoiler] -
Ich brächte bitte eine Info
Hintergrund:
Ich habe folgenden Hardware Aufbau:
2x Arduino Uno Slaves mit jeweils einer unterschiedlicher Geräte ID/Knotenadresse welche ich über RS485 mit einem Master verkabelt sind.
1x einen Modbus Master (ioBroker) welcher über einen FTDI USB Serial RS485 Konverter mit dem Bus verbunden habe.
Frage:
Ist es mit ioBroker eigentlich möglich, dass mit beiden Slaves über eine Modbus Instanz kommuniziere?
-
1.) serialport@4.0.7 installieren nicht die 5er Version!!
2.) Siehe letzten Post: Bitte modbus Version vom Github installieren
-
1.) serialport@4.0.7 installieren nicht die 5er Version!!
2.) Siehe letzten Post: Bitte modbus Version vom Github installieren ` Hi.
Kannst du mir einen Tipp geben wie ich explizit die 4.0.7er seriaport installiere?
Google weiß es bestimmt aber ich suche wohl nach falschen begriffen…
Danke
Gesendet von meinem D5803 mit Tapatalk
EDIT
Ok, selber rausgefunden...
npm install serialport@4.0.7
-
1.) serialport@4.0.7 installieren nicht die 5er Version!!
2.) Siehe letzten Post: Bitte modbus Version vom Github installieren `
der Tip mit dem expliziten serialport@4.0.7 war Gold wert.
Ich versuche es morgen gleich mal mit dem Rspi1 nochmal, denn auf meine RPi2 gehts schon mal.
DANKE
Tobi