You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: doc/sensor_module.rst
+70-11Lines changed: 70 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,19 @@ Sensor types
20
20
21
21
The following table lists the sensors and sensor data types supported by the module:
22
22
23
-
+----------------------+-----------------+
24
-
| Sensor data type | External device |
25
-
+======================+=================+
26
-
| Humidity | `BME680`_ |
27
-
+----------------------+-----------------+
28
-
| Temperature | `BME680`_ |
29
-
+----------------------+-----------------+
30
-
| Atmospheric Pressure | `BME680`_ |
31
-
+----------------------+-----------------+
32
-
| Acceleration | `ADXL362`_ |
33
-
+----------------------+-----------------+
23
+
+-------------------------+-----------------+
24
+
| Sensor data type | External device |
25
+
+=========================+=================+
26
+
| Humidity | `BME680`_ |
27
+
+-------------------------+-----------------+
28
+
| Temperature | `BME680`_ |
29
+
+-------------------------+-----------------+
30
+
| Atmospheric Pressure | `BME680`_ |
31
+
+-------------------------+-----------------+
32
+
| Air Quality (BSEC only) | `BME680`_ |
33
+
+-------------------------+-----------------+
34
+
| Acceleration | `ADXL362`_ |
35
+
+-------------------------+-----------------+
34
36
35
37
The module controls and collects data from the sensors by interacting with their :ref:`device drivers <device_model_api>` using :ref:`Zephyr's generic sensor API <sensor_api>`.
36
38
@@ -74,6 +76,28 @@ The sensor module will only send out a :c:enum:`SENSOR_EVT_MOVEMENT_DATA_READY`
74
76
This is beyond the scope of the general asset tracker framework this application provides.
75
77
Therefore, the readings are not transmitted to the cloud and are only used to detect a binary active and inactive state.
The sensor module supports integration with the BSEC signal processing library using the external sensors, internal convenience API.
85
+
If enabled, the BSEC library is used instead of the BME680 Zephyr driver to provide sensor readings from the BME680 for temperature, humidity, and atmospheric pressure.
86
+
In addition, the BSEC driver provides an additional sensor reading, indoor air quality (IAQ), which is a metric given in between 0-500 range, that estimates the air quality of the environment.
87
+
88
+
As the BSEC library requires a separate license, it is not a default part of |NCS|, but can be downloaded externally and imported into the |NCS| source tree.
89
+
90
+
Perform the following steps to enable BSEC:
91
+
92
+
1. Download the BSEC library, using the `Bosch BSEC`_ link.
93
+
#. Extract and store the folder containing the library contents in the path specified by :ref:`CONFIG_EXTERNAL_SENSORS_BME680_BSEC_PATH <CONFIG_EXTERNAL_SENSORS_BME680_BSEC_PATH>` option or update the path configuration to reference the library location.
94
+
#. Disable the Zephyr BME680 driver by setting :kconfig:`CONFIG_BME680` to false.
95
+
#. Enable the external sensors API BSEC integration layer by enabling :ref:`CONFIG_EXTERNAL_SENSORS_BME680_BSEC <CONFIG_EXTERNAL_SENSORS_BME680_BSEC>` option.
96
+
97
+
Air quality readings are provided with the :c:enumerator:`SENSOR_EVT_ENVIRONMENTAL_DATA_READY` event.
98
+
99
+
To check and configure the BSEC configuration options, see :ref:`external_sensor_API_BSEC_configurations` section.
0 commit comments