Project to test power saving features of Espressif and Quectel chips
# About
This firmware is developed for an environmental monitoring project measuring particulate matter, temperature and humidity using Plantower and DHT sensors.
# Description
The firmware is built and tested for a board running on **ESP32-S3 N16R8** microcontroller and a **Quectel EC200U-CN GSM** module.
PCB with ES32-S3 and Quectel modem
## Features
- SD card logging.
- RTC update via network carrier local time.
- Automatic network band selection.
- JSON and CSV payload generation.
- Power saving mechanisms through sleep modes and extended sampling cycles.
# Development
PlatformIO IDE was used to develop this firmware. For users familiar with Visual Studio Code, install the PlatformIO extension.
## File image upload
Files that need uploading to the flash file system section of the module are stored in the `data` folder of the project's root directory.
To upload the files, use PlatformIO to build and flash the file system image to the correct device port.
**P.S.** Before building the flash image, always run `git pull --recurse-submodules` followed by `git submodule update --init --remote data` to get the latest files from the webserver UI `build` branch.
## SSL/TLS support - CA bundle update
PlatformIO will download the latest CA bundle from Mozilla and generate a header file `src/utils.mozilla_ca_bundle.h` with the file name and contents of the CA bundle. This file will be updated to the Quectel's EC200U file system; `UFS` is default storage. This file is not tracked and the template is a guide and a fallback if there is no internet access.
## Firmware upload
Open the project using PlatformIO and wait for PlatformIO to configure the environment, and install the necessary libraries. Select the port the device is connected to and then upload the firmware. Both the JTAG and UART inferfaces can be used to program the device.
## API integration
Open serial monitor to capture the device id which bears the format ` - ` e.g. `ESP32-19271G2328BE`. Navigate t …