Control zones with RS485 Modbus
Starting with firmware 2.3.3(180), RS485 Modbus devices can also be controlled via the zone control.
e.g.
- Relais
- RS485 ball valves
- additional ON/OFF RS-485 components
The control can be done via a USB – Modbus adapter (only OSPi) or via TCP-Modbus (OSPi + OpenSprinkler 3.x).
For this to work, each device must have a unique ID. OpenSprinkler / OSPi acts as the master and does not require an ID. The respective device documentation explains how to set the IDs.
Configuration
The prerequisite is the use of the OpenSprinklerShop-Firmware!
For OpenSprinkler 3.x there is no further configuration, you enter the IP address and port directly in the zones.
For OSPi There is a file named rs485 in the firmware folder. This should contain the USB device, e.g., \\dev\ttyUSB0 for the first USB port. For more information, run "lsusb -v"
If you are with the OSPi want to use a Modbus-TCP adapter, then enter in the file : a
Parameter
Then configure the zones as follows:
- Device Index: Modbus device ID
- Address: Modbus address
- Register On: Modbus register for “ON.” Use hexadecimal notation
- Register Off: Modbus register for “OFF.” Use hexadecimal notation
- Data On/Off: Data for “ON” or “OFF”

