Dass ist ein Auszug der letzten Logeinträge, siehe unten. So wie ich das sehe, sucht openwb die Verbindung zu einem anderen raspbi, an dem der SDM per USB angeschlossen ist, bekommt aber keinen Zugang. oder irre ich?
Code: Alles auswählen
Traceback (most recent call last):
File "runs/mqttpub.py", line 31, in <module>
main()
File "runs/mqttpub.py", line 19, in main
client.connect("localhost")
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 941, in connect
return self.reconnect()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1075, in reconnect
sock = self._create_socket_connection()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3546, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/usr/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Traceback (most recent call last):
File "runs/mqttpub.py", line 31, in <module>
main()
File "runs/mqttpub.py", line 19, in main
client.connect("localhost")
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 941, in connect
return self.reconnect()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1075, in reconnect
sock = self._create_socket_connection()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3546, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/usr/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/var/www/html/openWB/modules/sdm630modbusbezug/readsdm.py", line 19, in <module>
resp = client.read_input_registers(0x06,2, unit=sdmid)
File "/usr/local/lib/python2.7/dist-packages/pymodbus/client/common.py", line 125, in read_input_registers
return self.execute(request)
File "/usr/local/lib/python2.7/dist-packages/pymodbus/client/sync.py", line 107, in execute
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])]
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
Error: Connection refused
Traceback (most recent call last):
File "modules/verbraucher/sdm630remote.py", line 19, in <module>
resp = client.read_input_registers(0x06,2, unit=sdmid)
File "/usr/local/lib/python2.7/dist-packages/pymodbus/client/common.py", line 125, in read_input_registers
return self.execute(request)
File "/usr/local/lib/python2.7/dist-packages/pymodbus/client/sync.py", line 107, in execute
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.63:8899)]
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Traceback (most recent call last):
File "runs/mqttpub.py", line 31, in <module>
main()
File "runs/mqttpub.py", line 19, in main
client.connect("localhost")
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 941, in connect
return self.reconnect()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1075, in reconnect
sock = self._create_socket_connection()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3546, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/usr/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Error: Connection refused
Traceback (most recent call last):
File "runs/mqttpub.py", line 31, in <module>
main()
File "runs/mqttpub.py", line 19, in main
client.connect("localhost")
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 941, in connect
return self.reconnect()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1075, in reconnect
sock = self._create_socket_connection()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3546, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "/usr/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/usr/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused