I have to control a modbus device with a serial interface. I\'ve got not experience with modbus. But my short research revealed several modbus libraries
I just discovered uModbus, and for deployment in something like a Raspberry PI (or other small SBC), it's a dream. It's a simple single capable package that doesn't bring in 10+ dependencies like pymodbus does.