pyusbiss
A Python API module for interfacing with USB-ISS multifunction USB Communication Module.
From the USB-ISS’s webpage:
The USB-ISS Multifunction USB Communications Module provides a complete interface between your PC and the I2C bus, SPI bus, a Serial port and general purpose Analogue Input or Digital I/O. The module is powered from the USB. Operating voltage is selectable between 3.3v and 5v and can supply up to 80mA at 5v for external circuitry from a standard 100mA USB port.
Python 3 (2 TODO)
Requires pyserial
Free software: MIT license
Documentation: https://pyusbiss.readthedocs.io.
Features
Planned features
Configure USB-ISS to different operating modes; I2C, SPI, I/O and serial
For each mode, the API will mimic the popular APIs such as py-spidev for SPI by having same method and properties names. These names will be used in duck typing. This will ensure miminal adaption of applications wishing to use USB-ISS for prototyping and testing.
Query status of USB-ISS
Send bytes to and read from components via USB-ISS
Current features
Functional USBISS driver
Functional SPI driver
Other modes are not implemented.
Installation
pip install pyusbiss
Usage
USBISS only
Connect to your USB-ISS and get information about your USB-ISS.
from usbiss.usbiss import USBISS port = 'COM4' # Windows port = '/dev/ttyACM0' # Linux cxn = USBISS(port) print(repr(cxn)))
SPI mode
Initiate USB-ISS with SPI mode and open a port.
from usbiss.spi import SPI spi = SPI(port) spi.mode = 1 spi.max_speed_hz = 500000 print(repr(spi._usbiss)) # SPI transaction response = spi.xfer([0x00, 0x00])
I2C mode
TODO
I/O mode
TODO
Serial mode
TODO
More Information
Applications
Alphasense OPC via dhhagan’s py-opc module using the SPI protocol.
Credits
The project was developed during a NERC’s placement at University of Leeds.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Inspired by Waggle’s alphasense.py, where most of USB-ISS functions were copied over.
History
0.1.0 (2016-09-02)
Initialised project
0.1.1 (2018-03-08)
functional usbiss control and spi control.
0.1.2 (2018-03-08)
Changed SPI mode scheme to official SPI scheme rather than USB-ISS scheme.
Clarifies project mission in README.rst
0.2.0 (2018-03-10)
Refactored the codebase so that each protocol can be controlled by its own class. This means a breaking change in the interface.
SPI and USBISS support only in this release with updated usage.
Added SPI tests.
Updated README.rst with new interface.
0.2.1 (2018-05-05)
Refactored USB-ISS driver using property decorator
Updated SPI driver to use updated USBISS driver
Fully documented SPI driver
Some fixes
0.2.2 (2018-05-05)
Tidied up README.md
Metadata
Release files for pyusbiss 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyusbiss-0.2.2.tar.gz | 14.6 kB | Without provenance | Details for pyusbiss-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyusbiss-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pyusbiss-0.2.2-py2.py3-none-any.whl |
Total release size: 24.0 kB
Release files / pyusbiss-0.2.2.tar.gz
| Download URL | pyusbiss-0.2.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
123b5d751b8272ecb32bd717592933dc81bfd28259e0b768570a3412ae16e5c1
|
|
BLAKE2b-256 checksum How to use checksums |
177f58374ee218746bbc06b4163b9f9746f0bd5b343278722ac7a316a6fbe00b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyusbiss-0.2.2-py2.py3-none-any.whl
| Download URL | pyusbiss-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
82bec6e3eb511ae9ec7639963c53caa1e9803571b503f948bf50967099788431
|
|
BLAKE2b-256 checksum How to use checksums |
4ee37145c8326bf0ce475ad872d390067234f17c396d102b1843eea20f4b3be6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyusbiss 0.2.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.