C++ Design Patterns: Observer – Building a Publish-Subscribe Weather Forecast System

C++ Design Patterns: Observer - Building a Publish-Subscribe Weather Forecast System

C++ Design Patterns: Observer – Building a Publish-Subscribe Weather Forecast System Decouple your notification mechanism to keep objects “automatically” in sync Introduction: Isolated Information Updates Hello, C++ developers. Imagine you are building a weather monitoring system. The central weather station (<span>WeatherStation</span>) is responsible for collecting the latest meteorological data (temperature, humidity, pressure). At the same … Read more

Python GUI Programming (Tkinter and Python Programming)

Python GUI Programming (Tkinter and Python Programming)

Python GUI Programming (Tkinter and Python Programming) This section will first introduce general GUI programming, and then focus on how to create Python GUI applications using Tkinter and its components. Tkinter Module: Adding Tk to Your Application So what do you need to do to make Tkinter a part of your application? First, an existing … Read more

Poll Method in Linux Device Drivers

Poll Method in Linux Device Drivers

The main purpose of designing the <span>poll</span> method in Linux device drivers is to support non-blocking I/O and multiplexing, allowing applications to efficiently monitor the readiness state of multiple devices. Here is a detailed analysis: Design Objectives Support Non-Blocking I/O Allows user programs to monitor the status of multiple file descriptors (such as readable, writable, … Read more

An Open Source HTTP Library Designed for Embedded Systems

An Open Source HTTP Library Designed for Embedded Systems

In the era of IoT and edge computing, embedded devices require lightweight and efficient HTTP service capabilities. Traditional HTTP servers like Nginx and Apache, while powerful, consume too many resources and are difficult to meet the demands of embedded scenarios. Today, we introduce an open source HTTP library designed specifically for embedded systems—libevhtp. Project address: … Read more

QP/C: A Tailored, Compact, and Customizable Real-Time Operating System (RTOS) for Resource-Constrained MCUs

QP/C: A Tailored, Compact, and Customizable Real-Time Operating System (RTOS) for Resource-Constrained MCUs

Does embedded development often make you feel like you’re flying solo? With various interrupts, task scheduling, state machines… it can be overwhelming in a moment. Don’t worry, today I want to recommend a powerful tool—QP/C (Real-Time Event Framework), which will help your projects understand event-driven programming instantly, boosting efficiency. What is QP/C?QP/C, short for QP/C … Read more

Ten Discussions on High-Performance Network Programming in Linux | 9 Open Source C++ Network Frameworks

Ten Discussions on High-Performance Network Programming in Linux | 9 Open Source C++ Network Frameworks

Continuing from the previous article “Ten Discussions on High-Performance Network Programming in Linux | C++11 Implementation of 22 High-Concurrency Models”, many are interested in various Server implementations in C++. Therefore, I have compiled a list of high-performance open-source network frameworks I have encountered over the years, based on 9 <span>C++</span> network frameworks to implement an … Read more

MultiButton: A Simple and Powerful Key Driver Module

MultiButton: A Simple and Powerful Key Driver Module

MultiButton is a simple and powerful key driver module that is based on an event-driven mechanism and adopts an object-oriented design concept. It helps you easily manage multiple keys and handle key events asynchronously, simplifying your code structure and making key logic clearer and more flexible! 1. Core Advantages of MultiButton • Unlimited Key Expansion: … Read more

Neuromorphic Event-Driven Vision Sensors for Motion Recognition

Neuromorphic Event-Driven Vision Sensors for Motion Recognition

Click the blue words to follow us Research Background The traditional frame-based image sensors transmit absolute light intensity at a fixed frame rate, regardless of whether features change, leading to a large amount of redundant visual data with limited information. Inspired by biological retinas, event-driven vision sensors respond only to relevant changes in the scene. … Read more

Embedded Development: State Machine + Event-Driven Framework

Embedded Development: State Machine + Event-Driven Framework

Concept of Event-Driven There are many examples of event-driven in life, like sneaking a nap during self-study while the teacher is not watching. We all went through high school, which was tough. High school students feel that sleeping is the most luxurious thing in the world; sometimes, you can even fall asleep while standing! The … Read more

Choosing the Best Software Architecture for Microcontroller Development

Choosing the Best Software Architecture for Microcontroller Development

The software architecture of embedded systems is crucial for building reliable embedded applications. This article will explore three commonly used software architectures in microcontroller development: layered architecture, event-driven architecture, and service-oriented architecture. We will delve into the characteristics, applicable scenarios, and accompanying example code for each architecture to better understand their differences and advantages. Layered … Read more