public QcdmManager(string port, int baudrate, int timeout) { _doEventReport = false; var realPort = GetSerialPort(port, baudrate); _port = new HdlcSerial(realPort, baudrate, timeout); Gsm = new QcdmGsmManager(this); CallManager = new QcdmCallManager(this); Efs = new QcdmEfsManager(this); Nv = new QcdmNvManager(this); DiagServ = new QcdmDiagServManager(this); }
public QcdmManager(string port, int baudrate, int timeout, bool sendControlChar, bool ignoreUnsupportedCommands, Logger logger) { _doEventReport = false; _logger = logger; _ignoreUnsupportedCommands = ignoreUnsupportedCommands; var realPort = GetSerialPort(port, baudrate, sendControlChar, ignoreUnsupportedCommands, logger); _port = new HdlcSerial(realPort, baudrate, timeout, sendControlChar); Gsm = new QcdmGsmManager(this); CallManager = new QcdmCallManager(this); Efs = new QcdmEfsManager(this); Nv = new QcdmNvManager(this); DiagServ = new QcdmDiagServManager(this); }
public QcdmManager(string port, int baudrate, int timeout, bool remote = false) { _doEventReport = false; if (remote) { _port = new HdlcSerialRemote(port, timeout); } else { var realPort = GetSerialPort(port); _port = new HdlcSerialLocal(realPort, baudrate, timeout); } Gsm = new QcdmGsmManager(this); CallManager = new QcdmCallManager(this); Efs = new QcdmEfsManager(this); Nv = new QcdmNvManager(this); DiagServ = new QcdmDiagServManager(this); }