modbus: added support for multiple serial ports.