Modbus timing and timeouts
Posted: 10 Oct 2018, 10:40
In my endeavour to make a simple Modbus-logger I am having problems reading modbus from the sensor.
I looks like it is a problem on layer 1 or 2 when connecting RS485 sensor to the physical RS485-port on the RevPi Connect.
This is the sensor: https://micronicsflowmeters.com/product ... low-meter/
It is a simple 1-1 sensor-to-Pi connection of 2m.
If I do not connect cables - or ; if I insert a 120Ohm resistor between + and - -> i Get this in the daemon-log :
Oct 10 10:38:13 RevPi9693 piModbusMaster[1390]: modbus rtu action device: /dev/ttyUSB0, slave address: 24 function: 0x03, address: 1 failed -1/110/-112345568
If I have the cables connected correctly but no resistors or anything :
Oct 10 10:38:02 RevPi9693 piModbusMaster[1390]: modbus rtu action device: /dev/ttyUSB0, slave address: 26 function: 0x03, address: 1 failed -1/112345690/12
Two questions concerning this :
1) Can you help me decipher the logmessages above ?
2) The manufacturer of the sensor says I should try and set the timout for the poll to 5 seconds - where can I do that ?
Thanks in advance
Alf M
I looks like it is a problem on layer 1 or 2 when connecting RS485 sensor to the physical RS485-port on the RevPi Connect.
This is the sensor: https://micronicsflowmeters.com/product ... low-meter/
It is a simple 1-1 sensor-to-Pi connection of 2m.
If I do not connect cables - or ; if I insert a 120Ohm resistor between + and - -> i Get this in the daemon-log :
Oct 10 10:38:13 RevPi9693 piModbusMaster[1390]: modbus rtu action device: /dev/ttyUSB0, slave address: 24 function: 0x03, address: 1 failed -1/110/-112345568
If I have the cables connected correctly but no resistors or anything :
Oct 10 10:38:02 RevPi9693 piModbusMaster[1390]: modbus rtu action device: /dev/ttyUSB0, slave address: 26 function: 0x03, address: 1 failed -1/112345690/12
Two questions concerning this :
1) Can you help me decipher the logmessages above ?
2) The manufacturer of the sensor says I should try and set the timout for the poll to 5 seconds - where can I do that ?
Thanks in advance
Alf M