![Infineon XENSIV CSK PAS CO2 Скачать руководство пользователя страница 21](http://html1.mh-extra.com/html/infineon/xensiv-csk-pas-co2/xensiv-csk-pas-co2_user-manual_2055409021.webp)
21 of 54
2022-25-04
User Guide for XENSIV™ KIT PAS CO2
Build your own application
4
Build your own application
The XENSIV
™
PAS CO
2
wing is supported by the
and
libraries. Use
ModusToolbox™ to build your own application to connect to your own cloud solution. ModusToolbox™
provides code examples to make this process easier.
4.1.1
XENSIV™ PAS CO
2
sensor library
This library provides functions for interfacing with the
XENSIV™ PAS CO2
sensor that enables the user to read
the CO
2
concentration. This library can be set up to use the ModusToolbox
™
HAL interface, or user-provided
communication functions. Refer to the README.md file for more details.
https://github.com/Infineon/sensor-xensiv-pasco2
4.1.2
XENSIV™ DPS3xx pressure sensor library
This library provides functions for interfacing with the XENSIV
™
DPS-310/368 barometric pressure sensors. This
library can be set up to use the ModusToolbox
™
HAL interface, or user-provided communication functions.
Refer to the README.md file for more details.
https://github.com/Infineon/sensor-xensiv-dps3xx
Note: The
XENSIV™
DPS368 uses the alternate address (0x76) in the
XENSIV™ PAS CO2
wing.
4.2
Code examples
The code example demonstrates the use of the Infineon
XENSIV™ PAS CO2
sensor to measure the CO
2
level. The
CO
2
concentration value acquired by the sensor is dependent on the external atmospheric pressure. To
compensate for this effect, the code example uses the XENSIV
™
DPS368 on the wing board to read the value of
the atmospheric pressure. Refer to the README.md file for more details.
https://github.com/Infineon/mtb-example-sensors-pasco2
This code example demonstrates implementing an MQTT client using the
for XENSIV™
sensor with Infineon connectivity devices. The library uses the following:
•
AWS IoT device SDK MQTT client library that includes an MQTT 3.1.1 client
•
sensor-xensiv-pasco2 library that is configured to detect the CO2 concentration
https://github.com/Infineon/mtb-example-sensors-pasco2-anycloud-mqtt-client
Additional code examples can be downloaded directly from the Infineon® Rapid IoT connect cloud platform
and imported to ModusToolbox™ Simply build the code example and program the kit. The sensor values will be
visible on the Rapid IoT connect cloud platform.
Known issue: ModusToolbox
™
sensor-xensiv-pasco2 library asset is not fully compatible with PSoC 6 HAL
library v2.X. User should not make use of the xensiv_pasco2_mtb_interrupt_init() functionality in a project
using PSoC 6 HAL library v2.X.
4.2.1
Getting started with ModusToolbox™
1.
ModusToolbox™ software is a free development ecosystem that includes the ModusToolbox™ IDE. Using
ModusToolbox™ IDE, you can enable and configure device resources, middleware libraries, and program
and debug the device. You can download the software from the
. See the
ModusToolbox™ user guide for additional information
.