Skip to content

Commit

Permalink
Merge pull request #7 from Sensirion/sen66_1.5.0_20250212_0941
Browse files Browse the repository at this point in the history
Generate SEN66 driver from SEN66 model version 1.5.0
  • Loading branch information
LeonieFierz authored Feb 12, 2025
2 parents 1e8e010 + e36413f commit c528241
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 29 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.0] - 2025-2-12

### Changed

- Serial number and product name interpreted as string

## [1.0.1] - 2024-12-1

### Fixed
Expand All @@ -26,7 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add interfaces to start, stop and read measurements.
- Add interfaces to read product name, serial number and version

[Unreleased]: https://github.com/Sensirion/python-i2c-sen66/compare/1.0.1...HEAD
[Unreleased]: https://github.com/Sensirion/python-i2c-sen66/compare/1.1.0...HEAD
[1.1.0]: https://github.com/Sensirion/python-i2c-sen66/compare/1.0.1...1.1.0
[1.0.1]: https://github.com/Sensirion/python-i2c-sen66/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/Sensirion/python-i2c-sen66/compare/0.1.0...1.0.0
[0.1.0]: https://github.com/Sensirion/python-i2c-sen66/releases/tag/0.1.0
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2024, Sensirion AG
Copyright (c) 2025, Sensirion AG
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ editorconfig-checker # Run check

## License

See [LICENSE](LICENSE).
See [LICENSE](LICENSE).
5 changes: 4 additions & 1 deletion docs/execute-measurements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ execute a simple measurement.
pip install sensirion-shdlc-sensorbridge

3. Connect the SEK-SensorBridge to your PC over USB

a. If the SEK-SensorBridge is not detected by your system, follow the `SensorBridge FTDI Driver Installation`_

4. Connect the SEN66 sensor to the SEK-SensorBridge
5. Run the example script from the root of the repository.

Expand All @@ -24,7 +27,7 @@ execute a simple measurement.


.. _Sensirion SEK-SensorBridge: https://developer.sensirion.com/product-support/sek-sensorbridge/

.. _SensorBridge FTDI Driver Installation: https://sensirion.github.io/python-shdlc-sensorbridge/sensor-bridge-installation.html

Example script
~~~~~~~~~~~~~~
Expand Down
6 changes: 3 additions & 3 deletions examples/example_usage_linux_sen66.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2024 Sensirion AG, Switzerland
# (c) Copyright 2025 Sensirion AG, Switzerland
#
# THIS FILE IS AUTOMATICALLY GENERATED!
#
# Generator: sensirion-driver-generator 1.0.1
# Generator: sensirion-driver-generator 1.1.2
# Product: sen66
# Model-Version: 1.3.1
# Model-Version: 1.5.0
#

import argparse
Expand Down
6 changes: 3 additions & 3 deletions examples/example_usage_sensorbridge_sen66.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2024 Sensirion AG, Switzerland
# (c) Copyright 2025 Sensirion AG, Switzerland
#
# THIS FILE IS AUTOMATICALLY GENERATED!
#
# Generator: sensirion-driver-generator 1.0.1
# Generator: sensirion-driver-generator 1.1.2
# Product: sen66
# Model-Version: 1.3.1
# Model-Version: 1.5.0
#

import argparse
Expand Down
6 changes: 3 additions & 3 deletions metadata.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# driver generation metadata
generator_version: 1.0.1
model_version: 1.3.1
generator_version: 1.1.2
model_version: 1.5.0
dg_status: released
is_manually_modified: false
first_generated: '2024-10-30 08:14'
last_generated: '2024-12-03 09:56'
last_generated: '2025-02-12 09:41'
10 changes: 5 additions & 5 deletions sensirion_i2c_sen66/commands.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2024 Sensirion AG, Switzerland
# (c) Copyright 2025 Sensirion AG, Switzerland
#
# THIS FILE IS AUTOMATICALLY GENERATED!
#
# Generator: sensirion-driver-generator 1.0.1
# Generator: sensirion-driver-generator 1.1.2
# Product: sen66
# Model-Version: 1.3.1
# Model-Version: 1.5.0
#
"""
The transfer classes specify the data that is transferred between host and sensor. The generated transfer classes
Expand Down Expand Up @@ -481,7 +481,7 @@ def pack(self):
return self.tx_data.pack([])

tx = TxData(CMD_ID, '>H', device_busy_delay=0.02, slave_address=None, ignore_ack=False)
rx = RxData('>32B')
rx = RxData('>32s')


class GetSerialNumber(Transfer):
Expand All @@ -493,7 +493,7 @@ def pack(self):
return self.tx_data.pack([])

tx = TxData(CMD_ID, '>H', device_busy_delay=0.02, slave_address=None, ignore_ack=False)
rx = RxData('>32B')
rx = RxData('>32s')


class ReadDeviceStatus(Transfer):
Expand Down
6 changes: 3 additions & 3 deletions sensirion_i2c_sen66/device.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2024 Sensirion AG, Switzerland
# (c) Copyright 2025 Sensirion AG, Switzerland
#
# THIS FILE IS AUTOMATICALLY GENERATED!
#
# Generator: sensirion-driver-generator 1.0.1
# Generator: sensirion-driver-generator 1.1.2
# Product: sen66
# Model-Version: 1.3.1
# Model-Version: 1.5.0
#
"""
The class Sen66DeviceBase implements the low level interface of the sensor.
Expand Down
4 changes: 3 additions & 1 deletion sensirion_i2c_sen66/response_provider.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import struct
import sensirion_driver_adapters.mocks.response_provider as rp


class Sen66ResponseProvider(rp.ResponseProvider):

RESPONSE_MAP = {}
RESPONSE_MAP = {0xd014: struct.pack('>32s', rp.random_ascii_string(32)),
0xd033: struct.pack('>32s', rp.random_ascii_string(32))}

def get_id(self) -> str:
return 'Sen66ResponseProvider'
Expand Down
6 changes: 3 additions & 3 deletions sensirion_i2c_sen66/result_types.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2024 Sensirion AG, Switzerland
# (c) Copyright 2025 Sensirion AG, Switzerland
#
# THIS FILE IS AUTOMATICALLY GENERATED!
#
# Generator: sensirion-driver-generator 1.0.1
# Generator: sensirion-driver-generator 1.1.2
# Product: sen66
# Model-Version: 1.3.1
# Model-Version: 1.5.0
#
"""
The signal classes specify transformations of the raw sensor signals into a meaningful units.
Expand Down
2 changes: 1 addition & 1 deletion sensirion_i2c_sen66/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

version = "1.0.1"
version = "1.1.0"
6 changes: 3 additions & 3 deletions tests/test_sen66.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2024 Sensirion AG, Switzerland
# (c) Copyright 2025 Sensirion AG, Switzerland
#
# THIS FILE IS AUTOMATICALLY GENERATED!
#
# Generator: sensirion-driver-generator 1.0.1
# Generator: sensirion-driver-generator 1.1.2
# Product: sen66
# Model-Version: 1.3.1
# Model-Version: 1.5.0
#

import pytest
Expand Down

0 comments on commit c528241

Please sign in to comment.