RS485 Pi issues with modbus.
The RS485 Pi is an RS485 interface for the Raspberry Pi
22/06/2017
Posted by:
edis
22/06/2017
Posted by:
edis
22/06/2017
Posted by:
andrew
RS485 uses a differential signal for communication so the receiver should measure the difference between the two wires to determine if the signal is high or low. According to the standard, the difference has to be at least ±200mV but that can be anywhere in the voltage range of –7V to 12V so a low signal of 0V and a high of 2.2V would be within the standard as the difference is more than 200mV. Similarly, your RS485-USB dongle is also within the standard as -2V to +2V is more than a 200mV difference. If the Modbus device conforms to the RS485 standards then it should recognise signals from the RS485 Pi or the USB dongle.
Does your Modbus device have a terminator resistor fitted? If not then reflections on the wire could stop it from working.
22/06/2017
Posted by:
edis
22/06/2017
Posted by:
edis
22/06/2017
Posted by:
andrew
I am glad you managed to get it working. RS485 seems to be a very flexible specification with different companies interpreting it in different ways.
The line termination resistors are needed mainly for high speeds or if you have long cable runs between the devices as it gives more space for reflections to build up. On short cables, you can often go without the terminators.
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.