Optimizing OTA Updates with Silicon Labs' Delta DFU Technology

11/15/2024 | Priyanka Sukumar | 3 Min Read

In the fast-evolving world of IoT and embedded systems, ensuring devices run the latest firmware is crucial for security, functionality, and performance. However, traditional over-the-air (OTA) updates can be inefficient, particularly in bandwidth-constrained environments like mesh networks where transmitting full firmware images can lead to significant delays and increased network load. Silicon Labs' Delta DFU (device firmware update) technology addresses this challenge by transmitting only the differences between the current and the new firmware, resulting in a much smaller update file and faster transfer times. This reduction in data not only expedites the update process but also minimizes energy consumption on the target nodes, further enhancing the efficiency of firmware updates. In this blog, we explore the benefits of Delta DFU, its impact on firmware update efficiency, and the tangible results achieved in real-world scenarios.


Understanding Delta DFU (Device Firmware Update)

At its core, Delta DFU works by comparing the current firmware image on a device with the new firmware that needs to be applied. It then creates a delta patch file containing only the changes between the two versions. This delta file is significantly smaller than the full firmware image, making it faster to transmit over the air. The Delta DFU process is integrated with the Simplicity Commander tool and the Gecko Bootloader, ensuring broad compatibility across various devices and wireless protocols.

The primary advantage of Delta DFU is its ability to minimize the amount of data that needs to be transmitted during an update. This is especially beneficial in environments where bandwidth is limited or where numerous devices need to be updated simultaneously.


Security and Design Considerations During Firmware Updates

 

Security is a critical aspect of the firmware update process. While the Delta diff process occurs locally on a PC, minimizing security risks, the Delta patch process involves receiving the Delta file over a wireless protocol, which could be susceptible to tampering. To address this, the Gecko Bootloader validates the Delta file before applying it, ensuring that the update is legitimate and has not been altered. Additionally, firmware updates can be encrypted and cryptographically signed , further enhancing security by preventing unauthorized modifications.

The design of Delta DFU also emphasizes reusability and ease of integration. It is designed to work seamlessly with Simplicity Commander and the Gecko Bootloader, leveraging the strengths of both tools to optimize the update process. The system is also highly adaptable, allowing it to be used across different platforms and with various wireless protocols.


Results When Utilizing Deta DFU

The tests conducted on 153 Bluetooth mesh nodes revealed some exciting improvements in update efficiency, particularly when utilizing Delta updates. One of the most impressive findings was how Delta updates significantly reduced both file size and update time, making it an ideal solution for large-scale device networks.

153 nodes:

Original File Size LZMA compressed firmware update file Time Taken LZMA compressed delta firmware update file Time Taken
410,128 bytes 256,844 bytes 17,654 se (4.9 hours) 19,708 bytes 2,139 sec (36 min)

For instance, while a full image update using the LZMA compressed file took nearly 5 hours to complet e, the LZMA compressed delta update file slashed this time down to just 36 minutes - a remarkable reduction of more than 80%. For this analysis, we focused on the results from the GCC compiler, but the delta update mechanism is compiler-agnostic, so it will work effectively with any compiler.

It's important to note that these tests were conducted in a non-controlled environment, where external factors such as interference can impact performance. This kind of environment is representative of many real-life use cases. However, it also suggests that further improvements in speed can be achieved through fine-tuning the network setup and optimizing parameters tailored to specific network topologies. As a result, the update times presented here are for reference, but still strongly highlight the time-saving potential of delta updates, especially in large Bluetooth LE mesh networks.

In summary, these results underscore the value of delta updates in minimizing downtime and enhancing operational efficiency across large-scale device fleets, showing how they can drastically improve the firmware update process even under suboptimal conditions.


Conclusion: Delta DFU Advances IoT OTA Updates

Silicon Labs' Delta DFU technology represents a significant advancement in the field of OTA updates, offering a highly efficient method for maintaining and updating IoT devices. By focusing on transmitting only the differences between firmware versions, Delta DFU drastically reduces the size of update files, leading to faster updates and reduced network load. Although the test results in this report were performed using Bluetooth mesh, the delta DFU technology is protocol agnostic and can be seamlessly integrated with any of our wireless protocols, making it a versatile and powerful solution for modern embedded systems.

As IoT ecosystems continue to expand, the ability to efficiently manage firmware updates across numerous devices will become increasingly important. Delta DFU provides a scalable, secure, and efficient approach to this challenge, ensuring that devices can be kept up to date with minimal disruption and maximum efficiency. Whether in bandwidth-constrained environments or large-scale deployments, Delta DFU is poised to play a crucial role in the future of firmware management.

CATEGORIES:
Priyanka Sukumar
Priyanka Sukumar
Product Manager
Close
Loading Results
Close