Esempio n. 1
0
 protected override CommBase.CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings s = new CommLine.CommLineSettings();
     s.SetStandard(m_strPort, m_iBaudRate, CommBase.Handshake.none);
     s.rxTerminator    = (CommBase.ASCII) 0x3e;
     s.rxFilter        = new ASCII[] { ASCII.LF, ASCII.SP, (ASCII)0x3e };
     s.txTerminator    = new ASCII[] { ASCII.CR };
     s.transactTimeout = 15000;
     base.Setup(s);
     return(s);
 }
Esempio n. 2
0
 protected override CommBase.CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings s = new CommLine.CommLineSettings();
     s.SetStandard(m_strPort, m_iBaudRate, CommBase.Handshake.none);
     s.rxTerminator = (CommBase.ASCII)0x3e;
     s.rxFilter = new ASCII[] { ASCII.LF, ASCII.SP, (ASCII)0x3e };
     s.txTerminator = new ASCII[] { ASCII.CR };
     s.transactTimeout = 15000;
     base.Setup(s);
     return s;
 }
Esempio n. 3
0
 protected override CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings settings = new CommLine.CommLineSettings();
     settings.SetStandard(m_Port, m_BaudRate, Handshake.None);
     settings.RxTerminator    = m_asciiRxTerm;
     settings.RxFilter        = new ASCII[] { ASCII.LF, ASCII.SP, ASCII.GT, ASCII.NULL };
     settings.TxTerminator    = new ASCII[] { ASCII.CR };
     settings.TransactTimeout = m_Timeout;
     base.Setup(settings);
     return(settings);
 }