SHDLC Driver for Sensirion SPS30
This Python module is developed to be used with the SPS30 Evaluation Kit (SEK-SPS30). I am using and testing it with a Raspberry Pi.
Sps30ShdlcDevice is implemented according to Create a Device Class @ Sensirion SHDLC Python Driver.
Please check the source code for documentation.
Install
pip install shdlc-sps30
Usage
from shdlc_sps30 import Sps30ShdlcDevice
with ShdlcSerialPort(port='/dev/ttyUSB0', baudrate=115200) as port:
device = Sps30ShdlcDevice(ShdlcConnection(port))
serial_number = device.device_information_serial_number()
print("serial_number: %s" % serial_number)
Example
See test.py.
$ ./test.py
product_type: 00080000
serial_number: 8CCABCFAE3201F49
fw: 2.2 rev: 7 shdlc: 2.0
604800
(False, False, False)
((1.2945550680160522, 4.506138324737549, 7.045137405395508, 7.552936553955078), (1.6411240100860596, 6.789977550506592, 10.12799072265625, 10.780089378356934, 10.878416061401367), 1.6299999952316284)
Metadata
Release files for shdlc-sps30 0.1
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 |
|---|---|---|---|---|
| shdlc-sps30-0.1.tar.gz | 5.6 kB | Without provenance | Details for shdlc-sps30-0.1.tar.gz |
Release files / shdlc-sps30-0.1.tar.gz
| Download URL | shdlc-sps30-0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a4ee6d038e487f8393ed0226a474e13cc0d337bab33fbfc0e40183c78a7f06f
|
|
BLAKE2b-256 checksum How to use checksums |
d387c1b4027de3d30d32c018472b8289da0a3b67babae517aff64bf5d6652d3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Security for shdlc-sps30 0.1
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.