Serial port communication method for controller boot interface based on STM32MCU

A technology of boot interface and serial port communication, which is applied in the direction of program control devices, etc., can solve the problems of high cost and error, and achieve the effect of standard operation

Active Publication Date: 2016-02-10
SMARTGEN TECH
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The most commonly used one based on software design is the Modbus serial port communication protocol, but because the generator set communication industry has its common and special places, the common monitoring data can use the Modbus serial port communication protocol, and the generator set startup interface has its own s

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0018] The technical solutions of the present invention will be described in further detail below through specific embodiments.

[0019] A serial port communication method based on STM32MCU controller startup interface, the method comprises the following steps:

[0020] Step 1: Establish a boot interface data model

[0021] The boot interface data model is a two-dimensional byte array with rows and columns, which is generated by scanning BMP bitmaps driven by dot-matrix liquid crystals;

[0022] Step 2: Establish the operation model of Flash

[0023] This operation model includes unlocking the Flash, page erasing the Flash, writing boot interface data, and locking the Flash. First, unlock the Flash, then erase the memory space of the Flash that needs to be used, then write the boot interface data, and finally lock the Flash;

[0024] Step 3: establish a communication data packet, the communication data packet includes operating Flash, writing boot interface data;

[0025] L...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a serial port communication method for a controller boot interface based on STM32MCU. The method comprises: step 1: generating a boot interface data model in a manner that a dot-matrix liquid-crystal drive scans a bitmap (BMP); step 2: establishing an operation model for a Flash, which comprises operations of Flash unlocking, Flash page erasing, boot interface data writing, and Flash locking, i.e., firstly, unlocking the Flash, erasing a memory space needed by the Flash, then writing boot interface data and finally locking the Flash; step 3: establishing a communication data packet, which comprises operating the Flash and writing the boot interface data, wherein operating the Flash comprises transmission and reception, and writhing the boot interface data comprises transmission and reception; and step 4: presetting a buffer area for saving a boot interface in the Flash of the controller, enabling a monitor of an upper computer to communicate with the controller, acquiring the communication data packet of the step 3 from the controller, and operating the step 2.

Description

technical field [0001] The invention relates to a method for generating serial port communication, in particular to a method for serial port communication based on an STM32MCU-based controller startup interface. Background technique [0002] Serial communication based on hardware circuit design commonly used three kinds of RS232, RS485, RS422, according to different needs to choose different serial communication methods. The most commonly used one based on software design is the Modbus serial port communication protocol, but because the generator set communication industry has its common and special places, the common monitoring data can use the Modbus serial port communication protocol, and the generator set startup interface has its own special features. In places where there is a lot of data, different customer customizations, and different liquid crystal displays, in the process of communication, using a common communication method will inevitably take a lot of time and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 李朝晖杨新征马雷高昌盛宋耀军
Owner SMARTGEN TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products