def initPort(self):
try:<EOL><INDENT>self.m_ser = serial.Serial(port=self.m_ttyport,<EOL>baudrate=self.m_baudrate,<EOL>timeout=<NUM_LIT:0>,<EOL>parity=serial.PARITY_EVEN,<EOL>stopbits=serial.STOPBITS_ONE,<EOL>bytesize=serial.SEVENBITS,<EOL>rtscts=False)<EOL>ekm_log("<STR_LIT>" + serial.VERSION)<EOL>ekm_log("<STR_LIT>" + self.m_ttyport)<EOL>ekm_log("<STR_LIT>" + str(self.m_baudrate))<EOL>time.sleep(self.m_init_wait)<EOL>return True<EOL><DEDENT>except:<EOL><INDENT>ekm_log(traceback.format_exc(sys.exc_info()))<EOL><DEDENT>return False<EOL>
Required initialization call, wraps pyserial constructor.