The Correct Approach to Communication Serialization in Embedded Devices!

The Correct Approach to Communication Serialization in Embedded Devices!

Follow our official account to keep the embedded knowledge flowing! In resource-constrained IoT/embedded projects, if: You don’t want to customize protocols and need to handle byte order, alignment, version compatibility, etc.; You also don’t want to use heavy JSON, as a simple sensor data packet might consume hundreds of bytes; You want to use the … Read more

nanopb: The Tool for Embedded Systems to Master Protocol Buffers

nanopb: The Tool for Embedded Systems to Master Protocol Buffers

What is nanopb?nanopb is a Protocol Buffers implementation specifically designed for resource-constrained devices (such as microcontrollers and IoT chips). It is written entirely in ANSI C, with a code size of just a few KB, consuming almost no memory, and boasts excellent compiler compatibility. Want to efficiently transfer structured data between an MCU and a … Read more

nanopb: Bringing Protocol Buffers to Your Embedded Microcontrollers

nanopb: Bringing Protocol Buffers to Your Embedded Microcontrollers

Why nanopb is an Embedded MarvelRecently, while working on STM32/ESP32 microcontroller projects, I found that using the traditional Protocol Buffers library can almost deplete flash memory and RAM. Yet, there is a desire to use .proto to define messages, which is efficient and cross-language. nanopb is like a savior, with a code size of just … Read more

nanopb: An Efficient and Lightweight Protocol Buffer Library Designed for Embedded Systems

nanopb: An Efficient and Lightweight Protocol Buffer Library Designed for Embedded Systems

In today’s highly competitive embedded development landscape, devices have increasingly high demands for memory and storage resources. How can efficient data communication and exchange be achieved within limited ROM and RAM? The answer lies in nanopb. This article will provide a detailed overview of this protocol buffer library designed for 32-bit microcontrollers, exploring its powerful … Read more