habe Probleme meinen modbus serial slave einzubinden. Regular Poll bekommt keine Verbindung was mache ich falsch, lese Adressen stimmen. Arbeite mit einem RPI4 mit einer Station 200 von ESERA.
Fehlerlog
Code: Alles auswählen
2020-01-31 10:38:35.413 [hingStatusInfoChangedEvent] - 'modbus:serial:d7213206' changed from OFFLINE to ONLINE
2020-01-31 10:39:58.459 [hingStatusInfoChangedEvent] - 'modbus:poller:db32cb39' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2020-01-31 10:39:58.483 [hingStatusInfoChangedEvent] - 'modbus:poller:db32cb39' changed from INITIALIZING to ONLINE
==> /var/log/openhab2/openhab.log <==
2020-01-31 10:39:58.516 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 01 03 9d 08 00 10 ea 68
2020-01-31 10:39:58.517 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
2020-01-31 10:39:58.520 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/1 error: I/O exception: IOException CRC Error in received frame: 0 bytes: . Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@81c3fb (unit id 1 & transaction 19). Serial parameters: SerialParameters@3993c4[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2020-01-31 10:39:58.522 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute reached max tries 1, throwing last error: I/O exception: IOException CRC Error in received frame: 0 bytes: . Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@81c3fb (unit id 1 & transaction 19). Serial parameters: SerialParameters@3993c4[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2020-01-31 10:39:58.528 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@4c91d1[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=40200,length=16,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IOException CRC Error in received frame: 0 bytes: [operation ID dfcc4af2-4fe2-4a7d-8c9b-c25da7585c51]
2020-01-31 10:39:59.527 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 01 03 9d 08 00 10 ea 68
2020-01-31 10:39:59.530 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
2020-01-31 10:39:59.535 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/1 error: I/O exception: IOException CRC Error in received frame: 0 bytes: . Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@14df458 (unit id 1 & transaction 20). Serial parameters: SerialParameters@3993c4[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2020-01-31 10:39:59.538 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute reached max tries 1, throwing last error: I/O exception: IOException CRC Error in received frame: 0 bytes: . Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@14df458 (unit id 1 & transaction 20). Serial parameters: SerialParameters@3993c4[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2020-01-31 10:39:59.542 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@4c91d1[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=40200,length=16,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IOException CRC Error in received frame: 0 bytes: [operation ID dfcc4af2-4fe2-4a7d-8c9b-c25da7585c51]
2020-01-31 10:40:00.538 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - Last request: 01 03 9d 08 00 10 ea 68
2020-01-31 10:40:00.543 [ERROR] [t.wimpi.modbus.io.ModbusRTUTransport] - failed to read: CRC Error in received frame: 0 bytes:
2020-01-31 10:40:00.548 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute try 1/1 error: I/O exception: IOException CRC Error in received frame: 0 bytes: . Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@14839f1 (unit id 1 & transaction 21). Serial parameters: SerialParameters@3993c4[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2020-01-31 10:40:00.551 [ERROR] [pi.modbus.io.ModbusSerialTransaction] - execute reached max tries 1, throwing last error: I/O exception: IOException CRC Error in received frame: 0 bytes: . Request: net.wimpi.modbus.msg.ReadMultipleRegistersRequest@14839f1 (unit id 1 & transaction 21). Serial parameters: SerialParameters@3993c4[portName=/dev/ttyUSB0,baudRate=19200,flowControlIn=none,flowControlOut=none,databits=8,stopbits=1,parity=none,encoding=rtu,echo=false,receiveTimeoutMillis=1500]
2020-01-31 10:40:00.555 [ERROR] [rt.modbus.internal.ModbusManagerImpl] - Last try 3 failed when executing request (ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@4c91d1[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=40200,length=16,maxTries=3]). Aborting. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IOException CRC Error in received frame: 0 bytes: [operation ID dfcc4af2-4fe2-4a7d-8c9b-c25da7585c51]
==> /var/log/openhab2/events.log <==
2020-01-31 10:40:00.582 [hingStatusInfoChangedEvent] - 'modbus:poller:db32cb39' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Error with read: org.openhab.io.transport.modbus.internal.ModbusSlaveIOExceptionImpl: Modbus IO Error with cause=ModbusIOException, EOF=false, message='I/O exception: IOException CRC Error in received frame: 0 bytes: ', cause2=null
2020-01-31 10:40:00.934 [hingStatusInfoChangedEvent] - 'modbus:poller:db32cb39' changed from OFFLINE (COMMUNICATION_ERROR): Error with read: org.openhab.io.transport.modbus.internal.ModbusSlaveIOExceptionImpl: Modbus IO Error with cause=ModbusIOException, EOF=false, message='I/O exception: IOException CRC Error in received frame: 0 bytes: ', cause2=null to UNINITIALIZED
Code: Alles auswählen
[ 0.383474] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 0.386853] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 0.386888] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.387484] hub 1-0:1.0: USB hub found
[ 0.388081] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 0.388117] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 0.388540] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[ 0.388573] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.389150] hub 2-0:1.0: USB hub found
[ 0.397873] usbhid: USB HID core driver
[ 0.751590] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 0.934206] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 0.934244] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 0.934271] usb 1-1: Product: USB2.0 Hub
[ 0.935819] hub 1-1:1.0: USB hub found
[ 1.261588] usb 1-1.2: new full-speed USB device number 3 using xhci_hcd
[ 1.407837] usb 1-1.2: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00
[ 1.407871] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.407902] usb 1-1.2: Product: FT232R USB UART
[ 5.883437] usbserial: USB Serial support registered for generic
[ 5.894326] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 5.894507] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[ 5.900504] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
Code: Alles auswählen
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:openhabian
tty:x:5:openhab,openhabian
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:openhabian,openhab
fax:x:21:
voice:x:22:
cdrom:x:24:openhabian
floppy:x:25:
tape:x:26:
sudo:x:27:openhabian
audio:x:29:openhabian,openhab
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:openhabian
sasl:x:45:
plugdev:x:46:openhabian
staff:x:50:
games:x:60:openhabian
users:x:100:openhabian
nogroup:x:65534:
systemd-journal:x:101:
systemd-timesync:x:102:
systemd-network:x:103:
systemd-resolve:x:104:
input:x:105:openhabian
kvm:x:106:
render:x:107:
crontab:x:108:
netdev:x:109:openhabian
messagebus:x:110:
ssh:x:111:
bluetooth:x:112:openhab,openhabian
avahi:x:113:
spi:x:999:openhabian
i2c:x:998:openhabian
gpio:x:997:openhabian,openhab
systemd-coredump:x:996:
openhabian:x:1000:
avahi-autoipd:x:114:
openhab:x:115:openhabian
rdma:x:116:
sambashare:x:117:
Debian-ow:x:118:
minicom -b 19200 -o -D /dev/ttyUSB0
Code: Alles auswählen
[10:29:32] openhabian@openhab:~$ minicom -b 19200 -o -D /dev/ttyUSB0
Welcome to minicom 2.7.1
OPTIONS: I18n
Compiled on Aug 13 2017, 15:25:34.
Port /dev/ttyUSB0, 10:40:00
Press CTRL-A Z for help on special keys
64_EVT|11:42:26
64_SYS1_1|0
64_SYS1_2|00000000
64_SYS2_1|0
64_SYS2_2|00000000
64_SYS3|0
64_OWD1|875
64_OWD2_1|0
64_OWD2_2|00000000
64_OWD2_3|0
64_OWD2_4|00000000
Sebastian