serial Module

The serial interface.

Execute this module to print all serial ports currently available.


Lists serial port names.

Raises:EnvironmentError – On unsupported or unknown platforms
Returns:A list of the serial ports available on the system

Return a list of all available serial ports.

Return type:list
Returns:a list of serial ports
class AYABInterface.serial.SerialPort(port)[source]

Bases: object

A class abstracting the port behavior.


Create a new serial port instance.

Parameters:port (str) – the port to connect to


The baud rate is specified in Serial Communication


Return this object as string.

Return type:str

list of weak references to the object (if defined)


Return a connection to this port.

Return type:serial.Serial

The name of the port for displaying.

Return type:str