Binn: A Powerful C++ Library

Binn: A Powerful C++ Library

Binn: A Lightweight, High-Performance Data Serialization Library Binn is an efficient data serialization library developed by the LiteServer team, suitable for C and C++ languages. It aims to provide a simple, fast, and memory-efficient way to store and transmit data structures such as dictionaries, lists, integers, floating-point numbers, strings, etc., serving as a lightweight alternative … Read more

Protocol Compatibility Issues During Upgrades in Embedded Systems

Protocol Compatibility Issues During Upgrades in Embedded Systems

Hello everyone, I am the Mixed Content Guy. More and more hardware products are not just integrated on a single board, but consist of multiple control boards working together. At this point, communication between multiple boards (wired/wireless communication) comes into play, which involves communication protocols. Often, we define some custom protocols. Previously, we shared a … Read more

Example of Communication Between Qt C++ and Python Using Shared Memory

Example of Communication Between Qt C++ and Python Using Shared Memory

Below is a complete example of implementing communication between Qt C++ and Python using shared memory. This example consists of two parts: a Qt C++ application as the writer and a Python script as the reader. Qt C++ Writer (SharedMemoryWriter) // main.cpp#include <QCoreApplication>#include <QSharedMemory>#include <QBuffer>#include <QDataStream>#include <QDebug>#include <QThread> int main(int argc, char *argv[]){ QCoreApplication a(argc, … Read more

The Essential Process of Ctrl+C and Ctrl+V – A C++ Description

The Essential Process of Ctrl+C and Ctrl+V - A C++ Description

Who doesn’t know how to copy and paste? Ctrl+C and Ctrl+V can achieve this. These two important operations are used by many people multiple times a day, but the process is often not understood; as long as it works, that’s enough. In a basic computer applications course, the teacher will certainly tell you:The copy and … Read more

How to Choose Serialization Protocols in MQTT Messaging: Text Serialization vs. Binary Serialization

How to Choose Serialization Protocols in MQTT Messaging: Text Serialization vs. Binary Serialization

Serialization of String Messages In the previous article, we used the <span>MQTTnet</span> framework to implement an MQTT server, an MQTT publisher process, and an MQTT subscriber process. During the messaging process, we directly passed the string from the console. Since MQTT is an application layer protocol, it is based on TCP for data transmission. We … Read more

PyYAML: Simplifying Configuration Management in Python!

PyYAML: Simplifying Configuration Management in Python!

Hello everyone! I am your old friend from Python. Today, we are going to talk about a very practical skill that is often overlooked in real projects: handling YAML files. You may have seen files ending with .yaml or .yml in various configuration files; they are more concise and readable than JSON, making them ideal … Read more