Provides the full AD2USB class and factory.
Bases: object
Factory for creation of AD2USB devices as well as provide4s attach/detach events.”
Called when an AD2USB device has been detected.
Called when an AD2USB device has been removed.
Returns all AD2USB devices located on the system.
Returns: | list of devices found |
---|---|
Raises : | util.CommError |
Returns a cached list of AD2USB devices located on the system.
Returns: | cached list of devices found. |
---|
Factory method that returns the requested AD2USB device, or the first device.
Parameters: | device (tuple) – Tuple describing the USB device to open, as returned by find_all(). |
---|---|
Returns: | AD2USB object utilizing the specified device. |
Raises : | util.NoDeviceError |
Bases: object
High-level wrapper around AD2USB/AD2SERIAL devices.
Called when the panel is armed.
Called when the panel is disarmed.
Called when panel power switches between AC and DC.
Called when the alarm is triggered.
Called when a fire is detected.
Called when a zone is bypassed.
Called when the device finishes bootings.
Called when the device receives its configuration.
Called when the device detects a zone fault.
Called when the device detects that a fault is restored.
Called when the device detects a low battery.
Called when the device detects a panic.
Called when a message has been received from the device.
Called when an LRR message is received.
Called when the device has been opened.
Called when the device has been closed.
Called when a line has been read from the device.
Called when data has been written to the device.
Represents panel function key #1
Represents panel function key #2
Represents panel function key #3
Represents panel function key #4
Timeout before the battery status reverts.
Timeout before the fire status reverts.
Opens the device.
Parameters: |
|
---|
Sets configuration entries on the device.
Faults a zone if we are emulating a zone expander.
Parameters: |
|
---|
Clears a zone if we are emulating a zone expander.
Parameters: | zone (int) – The zone to clear. |
---|
Contains different types of devices belonging to the AD2USB family.
Bases: object
Generic parent device to all AD2USB products.
Called when the device has been opened
Called when the device has been closed
Called when a line has been read from the device
Called when data has been written to the device
Bases: pyad2usb.devices.Device
AD2USB device exposed with PyFTDI’s interface.
Vendor ID used to recognize AD2USB devices.
Product ID used to recognize AD2USB devices.
Default baudrate for AD2USB devices.
Returns all FTDI devices matching our vendor and product IDs.
Returns: | list of devices |
---|---|
Raises : | util.CommError |
Opens the device.
Parameters: |
|
---|---|
Raises : | util.NoDeviceError |
Writes data to the device.
Parameters: | data (str) – Data to write |
---|---|
Raises : | util.CommError |
Bases: pyad2usb.devices.Device
AD2USB or AD2SERIAL device exposed with the pyserial interface.
Default baudrate for Serial devices.
Returns all serial ports present.
Parameters: | pattern (str) – Pattern to search for when retrieving serial ports. |
---|---|
Returns: | list of devices |
Raises : | util.CommError |
Opens the device.
Parameters: |
|
---|---|
Raises : | util.NoDeviceError |
Writes data to the device.
Parameters: | data (str) – The data to write. |
---|---|
Raises : | util.CommError |
Bases: pyad2usb.devices.Device
Device that supports communication with an AD2USB that is exposed via ser2sock or another Serial to IP interface.
Opens the device.
Parameters: |
|
---|---|
Raises : | util.NoDeviceError |
Writes data to the device.
Parameters: | data (str) – The data to write. |
---|---|
Returns: | The number of bytes sent. |
Raises : | util.CommError |
Provides utility classes for the AD2USB devices.
Bases: exceptions.Exception
There was an error communicating with the device.
Bases: exceptions.Exception
There was a timeout while trying to communicate with the device.
Bases: exceptions.Exception
The format of the panel message was invalid.
Provides zone tracking functionality for the AD2USB device family.
Bases: object
Representation of a panel zone.
Status indicating that the zone is cleared.
Status indicating that the zone is faulted.
Status indicating that there is a wiring issue with the zone.
Representations of Panels and their templates.
Message representations received from the panel through the AD2USB.
Bases: object
Represents a message from the alarm panel.
Bases: object
Represents a message from a zone or relay expansion module.