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 hashes)

Uploaded Source

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