Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Parameter storage mechanism of embedded system

A dual-storage and memory technology, which is applied in the direction of data error detection, program control design, program control device, etc., can solve the problems of parameter loading errors, unreliable data storage, etc.

Pending Publication Date: 2021-04-02
微网智控(北京)科技有限公司
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) Both of these two storage media are in the busy state of writing. Flash media has a necessary erase operation before writing. The busy time is usually tens of milliseconds or even hundreds of milliseconds, which is very important for real-time performance. Embedded systems with relatively high requirements, such as radio transceivers, are unacceptable, and system freezes exceeding 1ms will cause message reception failures;
[0004] (2) During the process of writing parameters, the system may suddenly be powered off or powered on again. If the system reset or restarted happens during the half of the parameter writing process, the integrity of the data will be compromised. will be destroyed, in which case a data backup mechanism is required;
[0005] (3) During the power-on process of the system, due to power jitter or power-on instability, and at this time the processor has completed the boot and enters the parameter loading stage, it may cause parameter loading errors. At this time, an error is required. Detection mechanisms and means of data recovery;
[0006] (4) When the system leaves the factory or is reset by the customer on site, the configuration parameters will be completely cleared, and the data in the storage medium will also be completely invalid
In mass production of products, it takes a lot of time to manually preset the default parameters of each system, and it is also prone to errors. At this time, a mechanism is also needed to provide a set of default parameters to configure the operation of the system;
[0007] (5) E2PROM and Flash media also have a limit on the life of the write operation. If it exceeds a certain number of times, it will cause erasure and write fatigue and irreversible permanent damage, so that data can no longer be stored reliably
Driven by the state logic, the application program will frequently refresh configuration parameters in some cases, and the values ​​of some member variables are actually unchanged, so a large number of repeated write operations will reduce the service life of the memory. A mechanism to filter out those invalid requests and only perform truly valid operations

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Parameter storage mechanism of embedded system
  • Parameter storage mechanism of embedded system
  • Parameter storage mechanism of embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0093] The parameter storage mechanism consists of the following three parts:

[0094] (1) A data loading function, which is responsible for loading configuration parameters from the storage medium to the memory block during the system power-on initialization phase

[0095] (2) A background worker thread is responsible for writing the data cache of the memory data block to the two storage areas of the storage medium

[0096] (3) Several application program interface API functions corresponding to the member variables in the structured memory data block, responsible for reading and writing the value of the member variables

[0097] These three parts are connected through the structured memory data block as a link, and the working method of the (1) part, that is, the data loading function is as follows:

[0098] (1) The data loading function is executed in the initialization phase of the application program before entering the main loop of the system. It is only executed once, ...

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 invention discloses a parameter storage mechanism of an embedded system. The parameter storage mechanism comprises an abstraction layer interface, read-write integrity, real-time performance, repeated write-in filtering and default parameter automatic generation. According to the parameter storage mechanism in claim 1, the parameter storage mechanism is characterized in that: 1) a group of configuration parameters are placed in a structured memory block with continuous addresses, and an application program directly accesses member variables in the memory block when reading and writing theconfiguration parameters, so that the problem of real-time performance is solved; 2) two storage areas with non-overlapping addresses are specified on the storage medium, and the memory block is mapped to the two storage areas on the storage medium through a control head with a CRC check field; 3) data is loaded from the storage medium to the memory block only when the system is initialized, and only one-way writing from the memory block to the storage medium is executed in a system main cycle, and 4) data writing takes the storage area as a unit, and one storage area is always in a backup state, so that the reliability problem is solved.

Description

technical field [0001] The invention relates to a configuration parameter storage mechanism of an embedded system, which can solve the problems of real-time writing of a small number of configuration parameters and data integrity without resorting to the real-time scheduling function of an operating system, and is mainly used for low-end small single-chip microcomputer systems without an operating system The parameter configuration belongs to the field of embedded software design. Background technique [0002] In 8051, MSP430 and ARM and other single-chip embedded systems, it is often necessary to save some configuration parameters set by the user through the serial port, network or man-machine interface during the running process. The correct writing of the parameters is very important, if there is no writing or the writing information is incomplete, it will have an adverse effect on the operation of the system. The onboard storage media of embedded systems are more common...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F3/06G06F11/10G06F11/14
CPCG06F9/44505G06F3/0616G06F3/0638G06F3/0644G06F3/065G06F3/0652G06F3/0679G06F11/1004G06F11/1458
Inventor 丁元国麻忠芹
Owner 微网智控(北京)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products