Skip to content

Commit 8526b7e

Browse files
committed
Increased measurement time for Hydros21
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
1 parent 0b582d7 commit 8526b7e

File tree

7 files changed

+27
-8
lines changed

7 files changed

+27
-8
lines changed

ChangeLog.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
***
2222

2323

24+
## [0.33.3]
25+
26+
### Fixed
27+
- Increased measurement time for Hydros21 to work with the latest version of the sensor.
28+
***
29+
30+
2431
## [0.33.2]
2532

2633
### Fixed
@@ -740,7 +747,8 @@ Our first release of the modular sensors library to support easily logging data
740747

741748
***
742749

743-
[Unreleased]: https://github.com/EnviroDIY/ModularSensors/compare/v0.33.2...HEAD
750+
[Unreleased]: https://github.com/EnviroDIY/ModularSensors/compare/v0.33.3...HEAD
751+
[0.33.3]: https://github.com/EnviroDIY/ModularSensors/releases/tag/v0.33.3
744752
[0.33.2]: https://github.com/EnviroDIY/ModularSensors/releases/tag/v0.33.2
745753
[0.33.1]: https://github.com/EnviroDIY/ModularSensors/releases/tag/v0.33.1
746754
[0.33.0]: https://github.com/EnviroDIY/ModularSensors/releases/tag/v0.33.0

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.33.2
1+
0.33.3

docs/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = ModularSensors
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 0.33.2
41+
PROJECT_NUMBER = 0.33.3
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "EnviroDIY_ModularSensors",
3-
"version": "0.33.2",
3+
"version": "0.33.3",
44
"description": "A library that allows access to multiple sensors through a unified interface. This allows the user to simply access many sensors to log the data or send the data to data repositories like the EnviroDIY data portal.",
55
"keywords": "modular, sensor, sensors, datalogger, logger, low power, sleeping, EnviroDIY, ModularSensors, Mayfly, WikiWatershed, Monitor My Watershed, ThingSpeak",
66
"platforms": "atmelavr, atmelsam",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ModularSensors
2-
version=0.33.2
2+
version=0.33.3
33
author=Sara Damiano <sdamiano@stroudcenter.org>, Shannon Hicks <shicks@stroudcenter.org>
44
maintainer=Sara Damiano <sdamiano@stroudcenter.org>
55
sentence=A library that allows access to multiple sensors through a unified interface.

src/ModularSensors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @brief The current library version number
1616
*/
17-
#define MODULAR_SENSORS_VERSION "0.33.2"
17+
#define MODULAR_SENSORS_VERSION "0.33.3"
1818

1919
// To get all of the base classes for ModularSensors, include LoggerBase.
2020
// NOTE: Individual sensor definitions must be included separately.

src/sensors/MeterHydros21.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,19 @@
9292
/// @brief Sensor::_stabilizationTime_ms; the Hydros 21 is stable as soon as it
9393
/// warms up (0ms stabilization).
9494
#define HYDROS21_STABILIZATION_TIME_MS 0
95-
/// @brief Sensor::_measurementTime_ms; maximum measurement duration: 500ms.
96-
#define HYDROS21_MEASUREMENT_TIME_MS 500
95+
/**
96+
* @brief Sensor::_measurementTime_ms; maximum measurement duration: 1000ms.
97+
*
98+
* @note Older versions of the Hydro took less time (~500ms) to take a
99+
* measurement, but the current version, as of 5/2/2022, takes a full second
100+
* (1000ms) to consistently give results in concurrent measurement mode.
101+
* Somewhat strangely, it does give results in ~450ms when operated
102+
* non-concurrently. Depending on how many sensors you have, you may have faster
103+
* results by forcing non-concurrent operation with the newest versions of the
104+
* Hydros21. To do this compile with the [build flag](@ref sdi12_group_flags)
105+
* `-D MS_SDI12_NON_CONCURRENT`.
106+
*/
107+
#define HYDROS21_MEASUREMENT_TIME_MS 1000
97108
/// @brief Extra wake time required for an SDI-12 sensor between the "break"
98109
/// and the time the command is sent. The Hydros 21 requires no extra time.
99110
#define HYDROS21_EXTRA_WAKE_TIME_MS 0

0 commit comments

Comments
 (0)