Skip to main content

Denkovi Relay Board Controller v1.5.2

Copyright (c) Peter Bingham (petersbingham@hotmail.co.uk)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Known Limitations and Assumptions


  1. Written and Tested in Python 2.7 and 3.5.
  2. 4 and 8 relay boards do not handle connection to multiple devices. Connects to first found Denkovi.
  3. Not thread safe.
  4. Possible race conditions with device plugging.
  5. Uses a VCP delay of 50ms. Documentation specifies 5ms but was still seeing corruption at 20ms. Could be improved for the gets by doing an initial sync and then keeping track of the states in the class.

Help


  • Install using "python setup.py install" in this directory at thecommand line.
  • Both installions require serial module. The Linux version requires pylibftdi. For Windows FTD2XX.dll will need to be in your path; you can get this by allowing windows to download and install the drivers for the board.
  • Usage is pretty simple. Have a look at the examples and test code in the "Example & Test" folder. Look at the dae_RelayBoard file to see the interface functions.
  • To run "Example & Test\example16.py", for example, set the com port in the file and then open a cmd and cd into "Example & Test" folder and type "python example16.py".
  • For the case of multiple FTDI devices (4 & 8 relay boards) add a #num to the end of the, otherwise optional, deviceID (eg type4#3). num is zero indexed. See following example:
import dae_RelayBoard
dr = dae_RelayBoard.DAE_RelayBoard("type4")
dr.initialise("DAE#1") # initialise second board

Change Log


  • 1.5.2 - Fix FT_handle type to match FTD2XX DLL library.
  • 1.5.1 - Correctly shuts down FTDI on Linux.
  • 1.5.0 - Adds ability to select from multiple FTDI devices.
  • 1.4.0 - Adds Python 3 support.
  • 1.3.2 - Uses case insensitive for the serial number comparison.
  • 1.3.1 - Fixes premature return when trying to discover first device.
  • 1.3 - setup.py package installer added.
  • 1.2 - Linux support added.
  • 1.1 - Fixed serial not being flagged as close on disconnect and failure to ensure disconnection on a reconnect.

Metadata

Release files for dae-RelayBoard 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dae-RelayBoard 1.5.2
File Size Uploaded Provenance Actions
dae_relayboard-1.5.2.tar.gz 9.8 kB Without provenance Details for dae_relayboard-1.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dae-RelayBoard 1.5.2
File Interpreter ABI Platform Actions
dae_RelayBoard-1.5.2-py3-none-any.whl Python 3 none any Details for dae_RelayBoard-1.5.2-py3-none-any.whl

Total release size: 23.8 kB

Release files / dae_relayboard-1.5.2.tar.gz

Download URL dae_relayboard-1.5.2.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d0722c26253e78c64b367881ba6329042cccf2faaa5ce22ad092d23008c7e635
BLAKE2b-256 checksum
How to use checksums
4249d0451e3fb5f8509705b63f82363c7c44fd7c179a3099ca67b4178f66e846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / dae_RelayBoard-1.5.2-py3-none-any.whl

Download URL dae_RelayBoard-1.5.2-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c80a640d138a4c1792a7bd8a1cc6978c90f792caf8fdd182219daa0c9f56e0a3
BLAKE2b-256 checksum
How to use checksums
2bd62f48df66385a042053a2d620dbe9f73d4a6e75d8e8f56a2291b8a66878e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for dae-RelayBoard 1.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page