Skip to main content

SHDLC Driver for Sensirion SPS30

Project description

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)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shdlc-sps30-0.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file shdlc-sps30-0.1.tar.gz.

File metadata

  • Download URL: shdlc-sps30-0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for shdlc-sps30-0.1.tar.gz
Algorithm Hash digest
SHA256 9a4ee6d038e487f8393ed0226a474e13cc0d337bab33fbfc0e40183c78a7f06f
MD5 98489172c12964f63fd0cf38ceeb1271
BLAKE2b-256 d387c1b4027de3d30d32c018472b8289da0a3b67babae517aff64bf5d6652d3e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page