Gopalakrishnan M
21. Feburary 2024 Categories: Technology,

Environmental and room monitoring products are devices that track various conditions like air quality, temperature, humidity, light, and noises. These products ensure safe, healthy, and comfortable environments by detecting pollutants and optimizing conditions. The history of such products dates to the early 20th century with the development of basic thermometers and hygrometers. Advances in sensor technology and digital integration in the late 20th and early 21st centuries led to sophisticated, multifunctional devices. In this article on environmental monitor testing tools and methods, we will touch up on architecture of an environment sensor and discuss the testing aspects of them.

Environmental Monitoring Applications

These products are used across various industries and domains, including residential, commercial, industrial sectors and clean rooms. They are essential in healthcare facilities, schools, offices, manufacturing plants, and laboratories. These products ensure regulatory compliance, optimize indoor air quality, enhance safety, and improve overall environmental health and comfort.

Few of the Environment Monitor applications are listed below

Application Description
Server Rooms/Data Centers Monitoring temperature and humidity to ensure optimal operating conditions and prevent equipment overheating or failures.
Greenhouses Controlling and monitoring environmental conditions like temperature, humidity, and light to optimize plant growth and yield.
Laboratories Ensuring stable conditions for experiments and sensitive equipment, preventing contamination or degradation of samples.
Warehouses and Storage Units Protecting goods from damage due to environmental fluctuations, ensuring conditions are suitable for stored materials.
Clean Rooms Maintaining controlled environments to prevent contamination in the production of pharmaceuticals, semiconductors, and other sensitive products.

In addition to the above list, critical rooms such as operation theater, chemical warehouse etc. monitored for various factors to avoid loss and damage to environment.

Environmental Monitor Product Architecture

Before we go deep into environmental monitor testing tools and methods, in general, environment monitoring products have a few common elements in their product architecture which testers need to be aware of during testing.

The block diagram provided below highlights elements and technologies involved in an environment monitoring product.

Environment Monitoring Product Architecture

Environment Monitoring Product Architecture


Let us have a brief overview of these elements.

Sensors:Sensor is used to detect the environment conditions. This is the core part that converts the physical value to a digital format. This is interfaced with collector via wired interfaces with standard communication protocols.

Data Collector: Mostly implemented by a processing element (MPU/MCU) the collector is responsible for acquiring the data from sensor, pre-process it, run any algorithms on top of it to derive the accurate value in human understandable format.

Store/forward module:As connectivity could be intermittent or batch transmission are needed, this module is responsible for storing locally and forward when connectivity is up. This is an optional module that is available based on the device configuration and use case.

Communicator module:This is responsible for pushing the data to cloud via Wi-Fi or LTE interface directly or indirectly via technologies such as Bluetooth, LoRa etc.

Cloud:Plays a crucial role in the entire cycle of collecting the data and centralized processing of received data as per business requirements.

Alert Modules: Where the interaction with humans happens mostly. Alerting users in webapp or mobile app to take necessary action at right time. 

Thus, the outcome of these environment monitoring products is not restricted to showing only a human readable numerical value such as temperature, humidity, CO2 values etc. In addition to this numerical value, an alert or warning may also be shown to the user. So, for testers the validation must happen end-to-end rather than just the accuracy part. For example, when testing a thermometer, comparing the reference temperature in thermometer with sensor output alone is not enough. They need to place the product itself in various environments (Hot, Cold, Dusty, Humid etc.) and validate over a period of time and make sure all features work as expected for the complete duration.

Sensor Interface testing

In an embedded sensor edge product, multiple sensors are used to detect the environment status such as thermistor for temperature, humidity sensors for humidity, CO2 sensors for air quality etc. These sensors are interfaced over interfaces such as ADC, I2C, RS232, RS485, SPI etc. Since generally the sensor would be validated by the manufacturer for all relevant environment conditions, testers need to focus more on sensor interface testing. This is especially true when the sensor modules are physically separated for better access to physical conditions. Few interface level boundary test cases are listed below

S.No Interface Test Description
1 ADC Abrupt disconnection or shorting of ADC lines with ground need to be identified by software and proper fault indication to be conveyed to user.
2 I2C/SPI Validate intermittent and noisy communication and ensure only valid data is processed by the system and erroneous data discarded.
3 RS485/RS232 Test with noisy communication channels with bit errors. Also disconnect any one of the lines and make sure that is identified by software and intimated to user.

Sensor data collector testing

The sensor’s data will be collected and stored at edge device persistent memory periodically on request from edge device in proprietary communication protocol. Normally to test any standard product, we can expect a simulator to be available on the market. But here, it will be very hard to find a simulator for all sensors because of the proprietary communication protocol. Either tester needs to simulate the data over sensor specific interface in an expected proprietary packet format or tester can request a simulator from sensor vendor (if its available) and integrate with automated test applications. There are few simulators like TestBot available in market with more flexibility to define the data format and simulate the sensor values with automation especially for environmental monitor testing. Few of the sensor data test cases could be

  • Simulate CO2 data and sent to collector module on request and alarm asynchronously over RS232 interface.
  • Simulate temperature reading over I2C interface on edge device request.
  • Simulate Smoke alarm value on request and alarm asynchronously over RS485 interface.
  • Simulate Humidity values over RS232 interface to edge device.

Store and forward tests

As discussed earlier, normally data will be collected from sensors and stored in store and forward module, processed and pushed the same to cloud as raw data or in readable form. In case of loss of network (LTE or WiFi or Bluetooth), data will be stored locally and pushed to cloud/mobile. These data will be sampled in edge device at periodic intervals and pushed to the cloud. Testers need to make sure that continuity of data, integrity of data is always present. Some of the test cases which tester can adapt here are

  • Verify sensor data logged in edge device during network availability correctly.
  • Verify sensor data logged in edge device during network outage and not deleted until it gets uploaded to cloud.
  • Verify sensor data forwarded to cloud after network restoration and then memory freed.
  • Check sensor data acquired data/time, integrity and continuity in cloud after network restoration.
  • Test sensor data logging behavior in edge device on multiple network outages.
  • Verify sensor data logger performance in edge device under high load.

Alert tests

Once the data in cloud is processed, proper notification will be communicated to the end user or respective person to act on it. Normally notification will be a popup on mobile app, web application, SMS and email. Few of the alert tests which tester need to perform are listed below

  • Verify alert is shown to user device on sensor threshold breach as per business requirements.
  • Verify alert sent to user on data logger/edge device disconnection
  • Validate alert sent to user on data logger/edge device unexpected restarts.
  • Verify alert sent to admin in case of memory issue for data logging in edge device.
  • Verify alert send to admin on minimum storage available or storage limit threshold reached.
  • Verify alert sent to admin on sensor malfunctions.
  • Verify alert suppression during maintenance window.

Simulation Tools

As you can see now testing an environment monitoring product involves multiple elements and technologies such as interface, storage, data integrity and mobile app or web application notification. It will be very hard to find a single tool or simulator to do complete testing, but there are tools available to simulate and test these stages individually. Few of the tools are listed below

Tool SPI I2C ADC UART RS232 RS485 Browser Mobile App Hardware LED's PWM
Raspberry pi X X X X X X
Bus Pirate X X X X X
Appium X
Selenium X
Test Bot X X X X X X X X X X

Conclusion

With this introduction to environmental monitor testing tools and methods, it is clear that simulation tools have revolutionized environmental testing by offering precise, flexible, and cost-effective methods to model the behavior and test the products. They enable thorough testing without real-world constraints, accelerating innovation while reducing costs and resource consumption. By minimizing physical prototypes, these tools also promote sustainable practices and reduce ecological footprints. Embracing these tools is essential for advancing efficient, accurate, and sustainable engineering in response to global challenges.

Reach over to us in case of any specific environmental monitoring development/testing requirements.

Subscribe to our Blog