RS-485 issue on RevPi Connect 5
Posted: 23 Mar 2025, 16:14
Hello All,
I have problem to estabilish RS-485 communication on newly purchased RevPi Connect 5. I am trying to connect to the external Modbus RTU device from Node-RED insalled on RevPi.
Problem is followning:
When I connect directly RS-485 connector to my RS-485 (modbus rtu) slave, there is not possible to communicate with device (slave). BUT when I connect paralell to the RS-485 line another device (RS-485->USB), it starts to communicate between the originally connected devices. After long debugging I have discovered the problem is electrical. It seems the RevPi does not have the pull-up/pull-down resistors activated on the RS-485 data lines.
When no third device is connected, there is 0.8V between GROUND and D+ and the same voltage between GROUND and D-
If third device is connected, there is 2.3V between GROUND and D+ and 2.2V between GROUND and D-
The questions are:
- how to activate this pull-up/pull-down resitors, to RevPi will act as master?? Is there some command for it?
- how to activate the termination resistor? In the manual, there is only command for activation of CAN Interface termination resistror, but there is not command for enabling the RS-485 termination resistor.
+5V
|
+--[680Ω]--+--> A (D+) Pull UP resistor
| |
GND [120Ω] termination resistor
| |
+--[680Ω]--+--> B (D–) Pull DOWN resistor
|
GND
Thank you for your help!!!
Vlad.
I have problem to estabilish RS-485 communication on newly purchased RevPi Connect 5. I am trying to connect to the external Modbus RTU device from Node-RED insalled on RevPi.
Problem is followning:
When I connect directly RS-485 connector to my RS-485 (modbus rtu) slave, there is not possible to communicate with device (slave). BUT when I connect paralell to the RS-485 line another device (RS-485->USB), it starts to communicate between the originally connected devices. After long debugging I have discovered the problem is electrical. It seems the RevPi does not have the pull-up/pull-down resistors activated on the RS-485 data lines.
When no third device is connected, there is 0.8V between GROUND and D+ and the same voltage between GROUND and D-
If third device is connected, there is 2.3V between GROUND and D+ and 2.2V between GROUND and D-
The questions are:
- how to activate this pull-up/pull-down resitors, to RevPi will act as master?? Is there some command for it?
- how to activate the termination resistor? In the manual, there is only command for activation of CAN Interface termination resistror, but there is not command for enabling the RS-485 termination resistor.
+5V
|
+--[680Ω]--+--> A (D+) Pull UP resistor
| |
GND [120Ω] termination resistor
| |
+--[680Ω]--+--> B (D–) Pull DOWN resistor
|
GND
Thank you for your help!!!
Vlad.