C# State Machine: A Tool for Parsing Binary Protocols

C# State Machine: A Tool for Parsing Binary Protocols

C# State Machine: A Tool for Parsing Binary Protocols Hello everyone! Today I want to share a very useful technique – using a state machine to parse binary protocols. In our work, we often need to handle various communication protocols, such as serial communication and network protocols. Using a state machine to tackle these problems … Read more

Microcontroller Programming Techniques – State Machine Programming

Microcontroller Programming Techniques - State Machine Programming

Follow and star the official account to reach exciting content directly. Source: Play with Embedded Systems Author: Alicedodo Abstract: I wonder if everyone has this feeling, that you can play with microcontrollers and drive various functional modules, but when asked to write a complete set of code, there is no logic or framework, you just … 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

Embedded Software Architecture Design – Event-Driven State Machine

Embedded Software Architecture Design - Event-Driven State Machine

Click the blue text above to learn more practical skills in embedded programming. If you find this article helpful, feel free to like and follow. Introduction Previously, we introduced finite state machines (FSM) and hierarchical state machines (HSM). This article mainly introduces the Event-Driven State Machine (ESM). A widely used design method in embedded systems … Read more

Embedded Software Architecture Design – State Machine

Embedded Software Architecture Design - State Machine

Click on the blue text above to learn more practical skills in embedded programming. If you find this article helpful, feel free to like + follow Introduction As the function business code increases, upon reviewing the code, it becomes evident that the use of if-else if-else statements is becoming more prevalent due to the need … Read more