Method of bitwise representation of logical states for data size reduction in iot systems

Keywords: bitwise encoding, logical states, IoT, data transmission optimization, embedded systems, energy efficiency

Abstract

The article presents an approach to efficient encoding of logical (boolean) states in Internet of Things (IoT) systems by using bitwise representation of an integer value. The proposed method is based on the idea of combining multiple independent boolean values into a single integer variable of type ulong, which allows storing up to 64 logical states within one integer. This encoding method significantly reduces the volume of transmitted and stored data, which is critically important for devices with limited computational resources, constrained communication bandwidth, and increased requirements for energy efficiency. The paper provides a software implementation of packing and unpacking algorithms in C#, demonstrating the use of bitwise operations, as well as describing the principles of reconstructing the original boolean arrays. An analytical comparison between bitwise encoding and standard byte-based representation—where each logical value is stored as a separate byte—is conducted, along with a comparison to other common approaches to representing boolean data, such as lists of string values. The results indicate that bitwise encoding enables reducing data volume by 87–88%, which positively affects the autonomy of battery-powered devices and accelerates data transmission in low-bandwidth networks. The proposed method is recommended for use in embedded IoT systems, particularly in security and monitoring applications. Special attention is given to its applicability in “smart safe” solutions and other projects where compact transmission of lock states, sensor readings, and alarm signals is required while maintaining minimal network load.

References

1. Меккі К., Баджич Е., Шаксел Ф., Мейєр Ф. Порівняльне дослідження технологій LPWAN для масштабних розгортань IoT. ICT Express (Вираження ІКТ). 2019. Т. 5, № 1. С. 1–7. URL
2. Перейра Ф., Родрігес Ж., Пінто А., Соліч П. Проблеми енергоефективності та комунікацій у ресурсно-обмежених IoT-пристроях: ключові фактори успішного впровадження. Sensors (Датчики). 2020. Т. 20, № 22. С. 6420. URL
3. Занаї Е., Дака А., Бербері П., Кулла Е., Ю С. Огляд енергоефективності короткодіапазонних і широкодіапазонних технологій IoT. Technologies (Технології). 2021. Т. 9, № 1. С. 22. URL
4. Алмудейні З., Аль-Весабі Ф. Н., Алькатірі А., Альшамрані А., Альзахрані А. Д. Енергонеефективність мереж IoT: причини, наслідки та стратегічна модель сталого вдосконалення. Electronics (Електроніка). 2025. Т. 14, № 1. С. 159. URL
Published
2025-12-05
How to Cite
Bortnyk , K., Kardashuk , V., & Chepil , M. (2025). Method of bitwise representation of logical states for data size reduction in iot systems. COMPUTER-INTEGRATED TECHNOLOGIES: EDUCATION, SCIENCE, PRODUCTION, (61), 64-68. https://doi.org/10.36910/6775-2524-0560-2025-61-09
Section
Computer science and computer engineering