A common Modbus application is to connect to a remote RTU device over TCP. Problem is that Modbus RTU and Modbus TCP are different protocols, implemented by the ModbusFramer class in pymodbus. This change adds a framer parameter to the Meter constructor that gives the user the option to use a non-default framer. It also adds a command line parameter to the example-tcp-udp.py script to pass the framer option to the SDM120 meter.
A common Modbus application is to connect to a remote RTU device over TCP. Problem is that Modbus RTU and Modbus TCP are different protocols, implemented by the
ModbusFramer
class inpymodbus
. This change adds aframer
parameter to theMeter
constructor that gives the user the option to use a non-default framer. It also adds a command line parameter to theexample-tcp-udp.py
script to pass the framer option to theSDM120
meter.