Automating arduous Modbus routing setup in gateways