Build Your Own Application; Xensiv™ Pas Co2 Sensor Library; Xensiv™ Dps3Xx Pressure Sensor Library; Code Examples - Infineon XENSIV CSK PAS CO2 User Manual

Table of Contents

Advertisement

User Guide for XENSIV™ KIT PAS CO2

Build your own application

4
Build your own application
The XENSIV™ PAS CO
wing is supported by the
2
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
This library provides functions for interfacing with the XENSIV™ PAS CO2 sensor that enables the user to read
the CO
concentration. This library can be set up to use the ModusToolbox™ HAL interface, or user-provided
2
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
CO
concentration value acquired by the sensor is dependent on the external atmospheric pressure. To
2
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
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™

ModusToolbox™ software is a free development ecosystem that includes the ModusToolbox™ IDE. Using
1.
ModusToolbox™ IDE, you can enable and configure device resources, middleware libraries, and program
and debug the device. You can download the software from the
ModusToolbox™ user guide for additional information.
sensor-xensiv-pasco2
sensor library
2
21 of 54
and
sensor-xensiv-dps3xx
MQTT client library
ModusToolbox™ home
libraries. Use
level. The
2
for XENSIV™
page. See the
2022-25-04

Advertisement

Table of Contents
loading

Table of Contents