Module commport :: Class CommConnection
[show private | hide private]
[frames | no frames]

Class CommConnection


Method Summary
  __init__(self, logtarget, port, baud, timeout, hardwareflow, softwareflow, autolistfunc, autolistargs, configparameters)
  clearcounters(self)
  close(self)
  getcleanline(self, peek)
  IsAuto(self)
  log(self, str)
  logdata(self, str, data, data_type)
  NextAutoPort(self)
  peekline(self)
  read(self, numchars, log)
  read_thread(self, numchars, log)
  readatresponse(self, ignoreerror, log)
Read until OK, ERROR or a timeout
  readline(self)
  readsome(self, log, numchars)
  readuntil(self, char, log, logsuccess, numfailures)
  reset(self)
  sendatcommand(self, atcommand, ignoreerror, retry)
Boolean setbaudrate(self, rate)
Change to the specified baud rate
Boolean setdtr(self, dtr)
Set or Clear DTR
Boolean setrts(self, rts)
Set or Clear RTS
  write(self, data, log)
  write_thread(self, data, log)
  writethenreaduntil(self, data, logwrite, char, logreaduntil, logreaduntilsuccess, numfailures)

Class Variable Summary
int usbwhine = 0                                                                     

Method Details

readatresponse(self, ignoreerror, log=True)

Read until OK, ERROR or a timeout

setbaudrate(self, rate)

Change to the specified baud rate
Returns:
True on success, False on failure
           (type=Boolean)

setdtr(self, dtr)

Set or Clear DTR
Returns:
True on success, False on failure
           (type=Boolean)

setrts(self, rts)

Set or Clear RTS
Returns:
True on success, False on failure
           (type=Boolean)

Class Variable Details

usbwhine

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Fri Aug 15 18:58:24 2008 http://epydoc.sf.net