Understanding CANopen Communication from Scratch: PDO Explained

Understanding CANopen Communication from Scratch: PDO Explained

“SDO is responsible for telling the drive how to work, while PDO is responsible for keeping the drive working continuously.”—— Essence of understanding from a bald engineer If you have understood SDO, then congratulations, you are just one step away from “making the motor really move” — PDO. PDO is the soul of the entire … Read more

Understanding eBPF Timers in Linux

Understanding eBPF Timers in Linux

eBPF Timers v5.15 Timers allow eBPF programs to schedule the execution of an eBPF function at a later time. Use cases for this functionality include garbage collection of mapping values or performing periodic checks. For example, if the TTL (Time to Live) of a DNS record has expired, we may want to remove those records … Read more

Introduction to C++: Part Twelve

Pair A pair combines two values into a single value, which can have different data types, represented by the two public attributes of the pair: first and second. // Creating a pair – Method 1 pair<int, string> p1(100, "aaa"); pair<int, string> p2(101, "bbb"); // Creating a pair – Method 2 (Recommended) pair<int, string> p3 = … Read more

Selecting Earthquake Data and Creating Distribution Maps with Python

Selecting Earthquake Data and Creating Distribution Maps with Python

Download Anaconda, create a virtual environment. The best option is to have a notebook with Ubuntu, which supports it natively and seems to process much faster and is easier to use. I had one before, but I don’t have it now, mainly due to some twists and turns, so I won’t go into detail. I … Read more

Efficient Operations of C++ STL Associative Containers: set, map, and multiset

Efficient Operations of C++ STL Associative Containers: set, map, and multiset

In the C++ Standard Template Library (STL), associative containers are a very important class of containers that provide a key-value pair storage method. This article will detail three commonly used associative containers: <span>set</span>, <span>map</span>, and <span>multiset</span>, and demonstrate their efficient operations through code examples. 1. set 1.1 Overview <span>set</span> is a collection that only allows … Read more

Detailed Analysis of Common IT Terms (Part Four) | MQTT, PdM, Ping, NetFlow

Detailed Analysis of Common IT Terms (Part Four) | MQTT, PdM, Ping, NetFlow

MQTT (Message Queuing Telemetry Transport) MQTT stands for Message Queuing Telemetry Transport. It is a lightweight messaging protocol suitable for situations where clients require a small code footprint and need to connect to unreliable networks or networks with limited bandwidth resources. It is primarily used for machine-to-machine (M2M) communication or Internet of Things (IoT) type … Read more

Optimization of Dynamic Address Mapping for Multi-I2C in SoC

Optimization of Dynamic Address Mapping for Multi-I2C in SoC

For many years, I have been troubled by a reuse issue in C, such as when we establish an I2C IP register address offset, and there are multiple I2Cs on the SoC, each with irregular offsets. How can we solve the problem of calling this function with different offsets for multiple I2Cs in a single … Read more