STM32: serial port polling mode, interrupt mode, DMA mode and receiving variable length data

1. The underlying mechanism of serial port polling mode: There are two registers inside each serial port of STM32: transmit data register (TDR)/transmit shift register. When we call HAL_UART_Transmit to send the data, the CPU will send the data to the data register in sequence, and the shift register The data in the register will […]

[Embedded Project Application]__A simple and easy-to-use embedded software program framework “time slice polling framework”

Table of Contents Preface 1. The importance of program framework 2. Program examples 3. Time slice polling framework 1. “*.h”Header file 2. “*.c” files 4. The underlying intrusive doubly linked list 1. “*.h”Header file 2. “*.c” files (* ̄︶ ̄)Creation is not easy! Looking forward to your likes, collections and comments. Foreword Hello everyone, today I will […]

Front end (23) – polling and long polling

Blogger: The kitten is here The core of the article: Technical means to achieve real-time communication between client and server Article directory Preface polling technology The concept of polling The implementation principle of polling Advantages and Disadvantages of Polling Polling usage scenarios long polling technology The concept of long polling The implementation principle of long […]

Front-end (24) – Polling and WebSocket battle

Blogger: The kitten is here The core of the article: Polling and WebSocket battle Article directory Preface The principle and implementation of polling The principle and implementation of WebSocket Polling vs. WebSocket Polling application scenarios WebSocket application scenarios Comparison and selection of usage scenarios Security considerations for WebSocket WebSocket versus server-side push technology Foreword In […]

Completely decoupled time slice polling framework structure

Follow and star public accounts to get direct access to exciting content Today I will share an article on the microcontroller program framework. 1. The importance of program framework Many people, especially beginners, tend to think about writing bit by bit when writing code. They don’t have an overall plan at the beginning, which leads […]

[Embedded open source library] The use of timeslice, a completely decoupled time slice polling framework structure

Completely decoupled time slice polling framework structure Introduction Project code timeslice.h timeslice.c list.h list.c Create project Porting code experiment Function description timeslice_task_init timeslice_task_add timeslice_tak_del timeslice_get_task_num end Introduction Timeslice is a time slice polling framework. It is a completely decoupled time slice polling framework. It is very convenient to use. There are four files in the […]

RocketMQ long polling (Long Polling) implementation analysis

Table of Contents Preface long polling 1. Implementation steps 1.1 Client polling to send requests 1.2 Server-side data processing 1.3 Client receives data 2. Implementation examples RocketMQ long polling 1.PullMessage service 2.PullMessageProcessor service 3.PullCallback callback Summarize Foreword Message queues generally provide push and pull modes on the consumer side. RocketMQ also implements these two modes, […]

Play with Nginx Part 1 [Polling Strategy and Weighted Polling]

1: Download Nginx Download it from the Nginx official website. I downloaded the Windoiws environment package nginx-1.23.3 Two: Backend service preparation I chose the Java back-end service. Of course, if you are a front-end programmer or a full-stack developer, you can choose nodejs to build the service. This is only for testing. Controller interface import […]