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

Protozero: A Powerful C++ Library

🚀 Design Philosophy and Architecture of Protozero Core Design Principles Protozero is a highly performance-oriented and flexible Protocol Buffer encoder/decoder, designed around two core principles: zero-copy and minimized runtime overhead. Technical Insight: Unlike traditional libraries that require a protobuf compiler, Protozero does not read .proto files but instead requires developers to manually convert proto descriptions … Read more

Protozero: A Powerful C++ Library for Protocol Buffers

protozero is a lightweight, high-performance C++ library specifically designed for encoding and decoding Protocol Buffers (protobuf) data. Unlike the official Google Protobuf library, it does not rely on .proto file code generation, but instead achieves zero-copy parsing by directly manipulating the protobuf encoding format, making it suitable for scenarios with strict performance and memory requirements … 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

gRPC: A High-Performance RPC Framework Based on HTTP/2 for Millisecond-Level Communication Supporting Multiple Languages Including Python

gRPC: A High-Performance RPC Framework Based on HTTP/2 for Millisecond-Level Communication Supporting Multiple Languages Including Python

What is gRPC? gRPC is a modern high-performance RPC framework open-sourced by Google, utilizing HTTP/2 protocol and Protocol Buffers serialization technology, supporting cross-language service calls. It magically enables services written in different languages to communicate directly—whether it’s a C++ microservice calling a Python algorithm or a Java application accessing a Go module, achieving millisecond-level communication! … 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

HTTP Middleware Chain in Go: Application of Protocol Buffers in Microservices Communication Framework

HTTP Middleware Chain in Go: Application of Protocol Buffers in Microservices Communication Framework

Click the above“blue text” to follow us “Yesterday, a young brother messaged me: ‘Brother Feng, our team leader said we need to use Go for microservices communication, what are Protocol Buffers and middleware chains? My head is buzzing!’ Haha, don’t worry, I’m familiar with this. Microservices are like a big kitchen, where each small chef … 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

Why Use RPC When We Have HTTP? Quick Overview of gRPC Framework

Why Use RPC When We Have HTTP? Quick Overview of gRPC Framework

Source: https://www.escapelife.site/posts/395e12c9.html gRPC is a high-performance, general-purpose open-source RPC framework designed based on the HTTP2 protocol standard, using Protocol Buffers as the default data serialization protocol, and supports multiple programming languages. What is gRPC Framework The goal of an RPC framework is to make remote service calls simpler and more transparent, shielding the underlying transmission … Read more