IoT, embedded systems need a unique approach to testing

Jason Chandralal of Happiest Minds

Jason Chandralal, general manager – product engineering services at Happiest Minds, says that IoT could be one of the biggest testing opportunities ever, but it needs to evolve and be automated to meet the unprecedented demands on it.

Gartner reckons that by 2020 there will be over 26 billion connected devices, some research houses predict even more. Whatever the number, these vast, networked arrays of smart devices will be enabled by a new-age Internet through the wide adoption of IPv6 and network virtualisation,and smarter and cheaper electronics, which will create many newtest opportunities.

IoT and embedded systems testing has much in common with application testing, but there are key differences. Traditional software testing focuses on black box and graphic user interfaces,and doesn’t necessarily consider the source code.

Embedded testing involves additional hardware elements, so testing focuses on this hardware, simulation, real-time behaviour, down time and grey box because the final results depend on these various aspects.

This means we need a new, more collaborative or integrated way to work with software ahead of deployment. The Internet of Things could restructure software development and releases into an intuitive cycle., which would need a new test strategy that should cover five areas:

  1. Testing IoT devices to capture metrics related to data values from data generated sensors onhome appliances,thermostats, lights, bulbs and door locks.
  2. Automated testing will be crucial to the large-scale adoption of IoT and associated mobile computing devices by enterprises,despite the challenges of automating test from end-to-end. It will provide significant benefits during the development cycle as the variety and number of devices grow.
  3. Simulation testing is essential as connectivity options increase – from Wi-Fi, BLE,3G, 4G, LoRa, Mi-Wi and more.
  4. Security testing is needed at both device level and forthe network as data passes across it. This involves an access mechanism, authentication, encryption techniques and more, all of which need validation.
  5. Interoperability testing is usually associated with hardware and software components, systems and platforms that enable machine-to-machine communication. This phase validates the devices andother elements in overall solution, which should be based on standards whenever possible.
  6. Real-time testing is performed in the environment the IoT devices will operate in. This could include exposing them to weather, site requirements and physical impact. This phase is sometimes referred to as factory acceptance testing, which involves calibration tests and standard-based certification.

Key considerations

From an end-to-end perspective, an IoT platform typically has four key components: sensors, application, network communication and a back-end database. Identifying the testing scope and coverage is the most important factor when formulating a comprehensive test strategy. The key considerations for each of the components of an IoT platform are:

  • sensors and devices which cover hardware, embedded software, sensors’ response times and performance;
  • network connectivity which governs the interaction between devices and the data transmission rate;
  • applications which include functionality, users’ roles and access, multiple request handling and more.
  • the database’s scope which ranges from the validation of data values, to data encryption and decryption, data’s consistency and integrity, performance and so on.

Developing an approach that delivers value

Agile IoT platforms are complex, scalable and high-performance systems that will need most testing strategies and practices to evolve, with embedded and software components closely integrated and grounded in automated testing.

Let’s look at the test approach that will focus on these different embedded test types and target areas, as well as compliment today’s mature application testing.

Different types of embedded testing

Target areas at the IoT embedded device level
  1. Device characteristics represent a device’s data model when presented by various data types, which are saved to and fetched from the cloud, for validation of their integrity. Devices support different data types; the tests validate the data as well as ensuring that all the types are saved properly and retrieved from the cloud.
  2. Device interaction module uses protocols like UART (for universal asynchronous receiver-transmitter, which support the reliable data exchange between the microcontroller and the module)and needs testing to their specifications. The test verifies that data is transmitted in sequence and properly acknowledged.
  3. Output drive tests are normally at the edge and responsible for other high-power entities, achieved via ageneral purpose input/output interface.
  4. Firmware upgrade or downgrade is needed as customers might be using different releases of the firmware, so all upgrade-downgrade paths should be tested. This is normally done over that air – such as between device and cloud – against a pre-defined compatibility matrix, to ensure all the firmware releases that are covered can be updated.
  5. Central processor unit (CPU) and memory usage relates to real-time operating system and operating system tests to monitor the CPU and memory consumptions during different modes of operation.
  6. Power modes’ testing is always carried out on the edge where different types of power mode are available.
  7. Connectivity testing focuses on validating the wireless configuration for protocols like Bluetooth, BLE, Zigbee, 3G, 4G and LoRa, among others. For a Wi-Fi system, the test validates the wireless configuration, its ability to switch between access point and station modes, and its connections to various WLANs with different security settings. These standards change rapidly so it’s important to validate them.

In conclusion

IoT Testing is a critical success factor for deployment. Adopting a multi-layered and end-to-end approach provides great benefits that arise from the early detection of bugs, improved test cycles through automation, increased confidence levels and the required testing efficiency and sufficiency to ensure a smooth implementation. For more information, click here

The author of this blog is Jason Chandralal, general manager – product engineering services at Happiest Minds

Comment on this article below or via Twitter: @IoTNow_OR @jcIoTnow

RECENT ARTICLES

Make the Intelligent Choice: Embed X103 in Smart City Outdoor Devices

Posted on: April 25, 2024

The adage “less is more” is the current state of digital transformation, starting with existing technology that has already proven successful – and then further adapting and streamlining. The “smart city” embraces this end goal by digitalizing community services where we live and work, such as traffic and transportation, water and power, and other crucial

Read more

Industrial IoT adoption fuels growth in private cellular networks

Posted on: April 25, 2024

Mission-critical use cases are driving private IoT connection growth in key industrial markets like manufacturing, logistics and transportation. Industrial IoT (IIoT) customers are eager to digitalise critical use cases with high-powered, dedicated networks, making these industries leaders in private 4G and 5G adoption. According to a new report from global technology intelligence firm ABI Research,

Read more
FEATURED IoT STORIES

What is IoT? A Beginner’s Guide

Posted on: April 5, 2023

What is IoT? IoT, or the Internet of Things, refers to the connection of everyday objects, or “things,” to the internet, allowing them to collect, transmit, and share data. This interconnected network of devices transforms previously “dumb” objects, such as toasters or security cameras, into smart devices that can interact with each other and their

Read more

The IoT Adoption Boom – Everything You Need to Know

Posted on: September 28, 2022

In an age when we seem to go through technology boom after technology boom, it’s hard to imagine one sticking out. However, IoT adoption, or the Internet of Things adoption, is leading the charge to dominate the next decade’s discussion around business IT. Below, we’ll discuss the current boom, what’s driving it, where it’s going,

Read more

9 IoT applications that will change everything

Posted on: September 1, 2021

Whether you are a future-minded CEO, tech-driven CEO or IT leader, you’ve come across the term IoT before. It’s often used alongside superlatives regarding how it will revolutionize the way you work, play, and live. But is it just another buzzword, or is it the as-promised technological holy grail? The truth is that Internet of

Read more

Which IoT Platform 2021? IoT Now Enterprise Buyers’ Guide

Posted on: August 30, 2021

There are several different parts in a complete IoT solution, all of which must work together to get the result needed, write IoT Now Enterprise Buyers’ Guide – Which IoT Platform 2021? authors Robin Duke-Woolley, the CEO and Bill Ingle, a senior analyst, at Beecham Research. Figure 1 shows these parts and, although not all

Read more

CAT-M1 vs NB-IoT – examining the real differences

Posted on: June 21, 2021

As industry players look to provide the next generation of IoT connectivity, two different standards have emerged under release 13 of 3GPP – CAT-M1 and NB-IoT.

Read more

IoT and home automation: What does the future hold?

Posted on: June 10, 2020

Once a dream, home automation using iot is slowly but steadily becoming a part of daily lives around the world. In fact, it is believed that the global market for smart home automation will reach $40 billion by 2020.

Read more

5 challenges still facing the Internet of Things

Posted on: June 3, 2020

The Internet of Things (IoT) has quickly become a huge part of how people live, communicate and do business. All around the world, web-enabled devices are turning our world into a more switched-on place to live.

Read more