Table of Contents Preface 1. What is a communication protocol? 2. Problems with simple communication protocols 3. Common contents of communication protocols 1. Frame header 2. Device address/type 3. Command/Instruction 4. Command type/function code 5. Data length 6. Data 7.End of frame 8. Check code 4. Communication protocol code implementation 1. Sending message data a. […]
Tag: embedded
[Interrupt mechanism in embedded systems]
In the development of embedded systems, interrupts are a very important knowledge point. In most application products built with microcontrollers, functions are basically implemented in a front-end and background way (large loop plus interrupt), and the application is processed in the main loop. And handle external trigger signals in interrupts, as well as applications that […]
[Embedded project application] __The embedded framework “Zorb Framework” used to build debugging output and establish time systems
Table of Contents 1. What is Zorb? 2. Embedded environment construction 3. Debug output 4. Implement assertions 5. Establish a time system 6. Conclusion (* ̄︶ ̄)Creation is not easy! Looking forward to your likes, collections and comments. 1. What is Zorb? Zorb Framework is a lightweight embedded framework based on object-oriented ideas. The purpose of building […]
Embedded assignment ten (DMA-based serial communication)
Article Directory Table of Contents Article directory 1. Interruption method 1. Establish the project 2. Code writing 3. Operation effect 2. DMA method 1. Establish the project 2. Code writing 3. Operation effect Reference links: 1. Interruption method 1. Create project For new projects, please refer to: Embedded Assignment 8 (Use Cube to implement the […]
springboot embedded ftp server
A recent project requires an ftp server to be embedded in the project. After starting the project, you can use client tools such as Filezila to push files to the server ftp Introduce dependencies <dependency> <groupId>org.apache.ftpserver</groupId> <artifactId>ftpserver-core</artifactId> <version>1.1.1</version> </dependency> InitFtpServer Launcher of ftp service package com.ruoyi.web.controller.tool.ftp; import org.apache.ftpserver.FtpServer; import org.apache.ftpserver.ftplet.FtpException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import […]
Embedded System Application-Expansion 1 Code Hosting
Embedded system application-Expansion 1 code hosting Use gitee and git to host code Introduction to the university version of gitee Gitee project management covers the entire life cycle of R&D management, supports multiple development models such as waterfall, agile (Scrum, Kanban), and seamlessly integrates with code management, CI/CD, test management and other functions, while providing […]
Zhengdian Atom Embedded Linux Driver Development–Linux MISC Driver
misc means mixed and miscellaneous, so the MISC driver is also called a miscellaneous driver. That is, the MISC driver can be used when some peripherals on the board cannot be classified. The MISC driver is actually the simplest character device driver. It is usually nested in the platform bus driver to implement complex drivers. […]
“Embedded” Make your own rootfs root file system
Use busybox to create a rootfs root file system that can run on your own board In the embedded development process, every time we get a new board, the first three things we need to do are to burn the uboot kernel boot program, burn the linux kernel, and burn the rootfs root file system. […]
H5 is embedded in Uniapp (H5 developed by uniapp), and jumps to the specified page of the APP in H5
Native H5 jump app method developed by uniapp: 1. Use web-view to embed the H5 page in the APP and use the web-view component to implement it <template> <view> <web-view src=”//i2.wp.com/uniapp.dcloud.net.cn/component/web-view.html”></web-view> </view> </template> 2. Introduce webview.js into H5 project <!– You need to download uni.webview.1.5.4.js to your own server –> Import the SDK of web-view […]
Design and implementation analysis of C++ classes in embedded systems
C++ code provides enough flexibility that it is difficult for most engineers to grasp. This article introduces 10 best practices that need to be followed to write good C++ code, and at the end provides a tool that can help us analyze the robustness of C++ code. Original text: 10 Best practices to design and […]