Eased handling of serial port communication.
Closes the serial port and stops all event processing.
Returns a list with all available serial ports.
Returns the currently used baud rate as an integer.
Returns the currently used serial port mode setting as string.
See Open() for a complete description of the mode string.
Opens the serial port. After the port is opened, you have to call Start() to start the actual event processing of this class.
| Arguments : |
|
|---|
Reads data from the serial port.
Resumes the receive event processing that was disabled before by SuspendReadEvents()
Base class for SerialThread related exceptions.
Sets the baud rate to an integer value.
Sets DTR state.
Sets the serial port mode setting from a string.
See Open() for a complete description of the mode string.
Sets a callback function for receive event processing. Should be called before Start(). The callback should have the form:
def HandleReceive(serialThread):
...
where serialThread will be the instance of this SerialThread class, so you can easily call Read() and Write() on this object.
Sets RTS state.
Starts the event processing of this class.
Stops the event processing of this class.
Temporarily disables the receive event processing of this class. Call ResumeReadEvents() to resume processing.
Writes a string to the port.