Skip to main content

Base Driver for Communicating With Sensirion SHDLC Devices

Project description

This package contains the base driver for Sensirion SHDLC devices. It allows to transmit and receive SHDLC frames over the serial port and provides some generic commands (e.g. reading the serial number of a device).

Note

Normally you shouldn’t use this driver directly - instead you should use the device-specific driver for your actual device as it provides additional commands. But this driver is still useful if you want to transceive raw SHDLC frames, or if there is no specific driver available yet for your device.

Installation and Usage

The user manual is available at https://sensirion.github.io/python-shdlc-driver/.

CHANGELOG

0.1.5

  • Move parts of ShdlcDevice into new base class ShdlcDeviceBase

0.1.4

  • Make signature and version offset configurable for ShdlcFirmwareImage

0.1.3

  • Add property is_open to ShdlcPort, ShdlcSerialPort and ShdlcTcpPort

  • Improve/extend documentation

0.1.2

  • Add ShdlcTcpPort class to communicate with SHDLC devices through TCP/IP

  • Add property start_received to ShdlcSerialMisoFrameBuilder

  • Add methods open() and close() to the ShdlcPort interface

  • Add parameter do_open to constructor of ShdlcSerialPort to allow creating ShdlcSerialPort instances without opening the port yet

  • Add property additional_response_time to ShdlcSerialPort

  • Improve timeout calculation of ShdlcSerialPort to fix possible response timeout errors

  • Make FirmwareUpdate failing early if the bitrate cannot be changed

0.1.1

  • Add optional dependency intelhex for performing firmware updates

  • Add bootloader commands: ShdlcCmdBootloaderBase, ShdlcCmdEnterBootloader, ShdlcCmdFirmwareUpdateStart, ShdlcCmdFirmwareUpdateData, ShdlcCmdFirmwareUpdateStop

  • Add exceptions for the firmware updater: ShdlcFirmwareImageSignatureError, ShdlcFirmwareImageIncompatibilityError

  • Add classes to perform firmware updates over SHDLC: ShdlcFirmwareImage, ShdlcFirmwareUpdate

  • Add property lock to the ShdlcPort interface to allow locking the port from outside the class

0.1.0

  • Initial release

Project details


Download files

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

Source Distribution

sensirion-shdlc-driver-0.1.5.tar.gz (21.2 kB view details)

Uploaded Source

Built Distributions

sensirion_shdlc_driver-0.1.5-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

sensirion_shdlc_driver-0.1.5-py2-none-any.whl (33.2 kB view details)

Uploaded Python 2

File details

Details for the file sensirion-shdlc-driver-0.1.5.tar.gz.

File metadata

  • Download URL: sensirion-shdlc-driver-0.1.5.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.17

File hashes

Hashes for sensirion-shdlc-driver-0.1.5.tar.gz
Algorithm Hash digest
SHA256 91ff6e5430a639f1dc4c03949e1df6f38b6d3249848fa095701c8ba1f016e5f8
MD5 af217c424bff93d943668bba5e0c4f29
BLAKE2b-256 1dc7a46bef53eeb82ed239fcaba649e91b7d308fa8de4338781433a425c01374

See more details on using hashes here.

File details

Details for the file sensirion_shdlc_driver-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: sensirion_shdlc_driver-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.17

File hashes

Hashes for sensirion_shdlc_driver-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1a94514944fad215dd65db6812b55c92d4e578a17b7614bf9553f7c672d0660c
MD5 c62cce7ff22fdf89af8099fe28edb923
BLAKE2b-256 06cf42b3039a9c264328d49b89379326259c605955e95cdb66ad8f9a528fdcb2

See more details on using hashes here.

File details

Details for the file sensirion_shdlc_driver-0.1.5-py2-none-any.whl.

File metadata

  • Download URL: sensirion_shdlc_driver-0.1.5-py2-none-any.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.17

File hashes

Hashes for sensirion_shdlc_driver-0.1.5-py2-none-any.whl
Algorithm Hash digest
SHA256 4b444ca38102ceed5e0b57f933858ab6ddd8b9f116a9ed19306b9f836c6c1b18
MD5 1e8aa9f9dec4be6804ae7402b346a9cd
BLAKE2b-256 59e1dfeeb4a173e688203f76a2d386d9a8e391a5a2c1f8e954a53bbb9656c21b

See more details on using hashes here.

Supported by

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