shdlc-sps30


Nameshdlc-sps30 JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/metebalci/sensirion-shdlc-sps30
SummarySHDLC Driver for Sensirion SPS30
upload_time2023-10-16 17:23:51
maintainer
docs_urlNone
authorMete Balci
requires_python
licenseGPLv3
keywords sensirion shdlc driver sps30
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://sensirion.github.io/python-shdlc-driver/custom_commands.html#creating-a-device-class).

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

```
$ ./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)
```
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/metebalci/sensirion-shdlc-sps30",
    "name": "shdlc-sps30",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "sensirion shdlc driver sps30",
    "author": "Mete Balci",
    "author_email": "metebalci@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d3/87/c1b4027de3d30d32c018472b8289da0a3b67babae517aff64bf5d6652d3e/shdlc-sps30-0.1.tar.gz",
    "platform": null,
    "description": "# SHDLC Driver for Sensirion SPS30\n\nThis Python module is developed to be used with the SPS30 Evaluation Kit (SEK-SPS30). I am using and testing it with a Raspberry Pi.\n\n`Sps30ShdlcDevice` is implemented according to [Create a Device Class @ Sensirion SHDLC Python Driver](https://sensirion.github.io/python-shdlc-driver/custom_commands.html#creating-a-device-class).\n\nPlease check the source code for documentation.\n\n# Install\n\n```\npip install shdlc-sps30\n```\n\n# Usage\n\n```\nfrom shdlc_sps30 import Sps30ShdlcDevice\n\nwith ShdlcSerialPort(port='/dev/ttyUSB0', baudrate=115200) as port:\n\tdevice = Sps30ShdlcDevice(ShdlcConnection(port))\n        serial_number = device.device_information_serial_number()\n        print(\"serial_number: %s\" % serial_number)\n```\n\n# Example\n\nSee [test.py](test.py).\n\n```\n$ ./test.py\nproduct_type: 00080000\nserial_number: 8CCABCFAE3201F49\nfw: 2.2 rev: 7 shdlc: 2.0\n604800\n(False, False, False)\n((1.2945550680160522, 4.506138324737549, 7.045137405395508, 7.552936553955078), (1.6411240100860596, 6.789977550506592, 10.12799072265625, 10.780089378356934, 10.878416061401367), 1.6299999952316284)\n```",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "SHDLC Driver for Sensirion SPS30",
    "version": "0.1",
    "project_urls": {
        "Homepage": "https://github.com/metebalci/sensirion-shdlc-sps30"
    },
    "split_keywords": [
        "sensirion",
        "shdlc",
        "driver",
        "sps30"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d387c1b4027de3d30d32c018472b8289da0a3b67babae517aff64bf5d6652d3e",
                "md5": "98489172c12964f63fd0cf38ceeb1271",
                "sha256": "9a4ee6d038e487f8393ed0226a474e13cc0d337bab33fbfc0e40183c78a7f06f"
            },
            "downloads": -1,
            "filename": "shdlc-sps30-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "98489172c12964f63fd0cf38ceeb1271",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5600,
            "upload_time": "2023-10-16T17:23:51",
            "upload_time_iso_8601": "2023-10-16T17:23:51.856282Z",
            "url": "https://files.pythonhosted.org/packages/d3/87/c1b4027de3d30d32c018472b8289da0a3b67babae517aff64bf5d6652d3e/shdlc-sps30-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-16 17:23:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "metebalci",
    "github_project": "sensirion-shdlc-sps30",
    "github_not_found": true,
    "lcname": "shdlc-sps30"
}
        
Elapsed time: 0.13624s