| Trees | Indices | Help |
|---|
|
|
module ckbot.port2port
This module provides point-to-point connectivity tools for the rest of the ckbot classes. In particular, it encapsulates the differences between serial ports in Linux, OS X and other common operating environments, as well as offering a UDP transport and an xbee wrapper for serial links.
All connections provided by this module are subclasses of Connection class.
|
|||
|
Connection Abstract superclass of all Connection objects |
|||
|
SerialConnection Concrete Connection subclass representing a serial port |
|||
| UDPConnection | |||
|
|||
|
|||
|
|||
winreg = Nonehash(x) |
|||
|
|||
Factory method for creating a Connection from a string or dictionary
Formats:
udp={dst="host", dport=<port>, sport=<sport>} -- set up a UDP
connection.
tty={glob=<glob>, baudrate=<baud>, stopbits = <n>, parity = 'N'|'E'|'O', timeout=0.5 } -- set up a tty connection
In dictionary format, the Connection type is given by the TYPE key, e.g.
dict( TYPE='tty', baudrate=9600 )
other: assumed to be a Serial device glob pattern
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jan 4 16:46:17 2018 | http://epydoc.sourceforge.net |