CN114371960A - Parameter management method and system of embedded equipment - Google Patents

Parameter management method and system of embedded equipment Download PDF

Info

Publication number
CN114371960A
CN114371960A CN202111646524.4A CN202111646524A CN114371960A CN 114371960 A CN114371960 A CN 114371960A CN 202111646524 A CN202111646524 A CN 202111646524A CN 114371960 A CN114371960 A CN 114371960A
Authority
CN
China
Prior art keywords
parameters
flash
backsram
embedded device
ram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111646524.4A
Other languages
Chinese (zh)
Inventor
王晓龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Resvent Medical Technology Co Ltd
Original Assignee
Resvent Medical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Resvent Medical Technology Co Ltd filed Critical Resvent Medical Technology Co Ltd
Priority to CN202111646524.4A priority Critical patent/CN114371960A/en
Publication of CN114371960A publication Critical patent/CN114371960A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1456Hardware arrangements for backup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application provides a parameter management method of embedded equipment, which comprises the following steps: the method comprises the steps of obtaining updating parameters of all functional modules in the embedded equipment in real time, wherein the embedded equipment comprises an RAM, a BackSRAM and a Flash, and the RAM, the BackSRAM and the Flash are configured with storage areas corresponding to all the functional modules one by one; writing the updated parameters into an area corresponding to the function module to which the updated parameters belong in the RAM; copying the updated parameters from the RAM to an area corresponding to a functional module to which the updated parameters belong in a BackSRAM, recording a first timestamp, and starting a buffer timer, wherein the first timestamp belongs to the parameters of the functional module; and when the time of the buffer timer reaches a preset value, writing the updated parameters into a corresponding area of the function module to which the updated parameters belong in Flash, and recording a second timestamp, wherein the second timestamp belongs to the parameters of the function module. The application also provides a parameter management system of the embedded device, a computer readable storage medium and the embedded device.

Description

Parameter management method and system of embedded equipment
Technical Field
The present application relates to the field of medical devices, and in particular, to a parameter management method for an embedded device, a parameter management system for an embedded device, a computer-readable storage medium, and an embedded device.
Background
A ventilator is a complex system, consisting of a number of different functional modules. Such as a user interaction module, a file management module, a ventilation control module, a network communication module, a bluetooth communication module, and so forth. Each module has its corresponding input parameters for directing the operation of the module's functions. The parameter management module is connected with the storage module downwards, and the parameters cannot be lost when power is lost, so that the parameters are reliably stored in the nonvolatile memory and cannot be lost even if the equipment is powered off. The nonvolatile memory frequently used by the equipment is a memory such as a Flash memory or an EEPROM (electrically erasable programmable read-only memory) and the like, the memory can store data for a long time without losing after power failure, but the read-write speed is too slow, and particularly, the data needs to be erased before the data is written into the Flash equipment, and the erase speed is slow. Because the power of the equipment is possibly lost at any time in the using process, the RAM and other memories of the equipment cannot store data after the power is lost, and the Flash, EEPROM and other equipment cannot be operated any more. If the data in the RAM is not written into the Flash or the EEPROM during power failure, or power failure occurs during the writing process, data loss is caused.
In order to manage the parameters required by the whole breathing machine system, a parameter management module is required to be designed. The parameters of all functional modules are copied and backed up in the parameter management module, and an interface (function interfaces such as parameter reading, parameter writing, parameter clearing, default recovery and the like) for accessing the parameter copy is given to the outside. The respective functional modules can access the required parameters via these interfaces. Besides the independent parameters of each functional module, the breathing machine system also has system parameters which are parameters common to each module, the parameters are also kept in a copy in the parameter management module, and an access interface is also given to the parameters, so that each module can access the parameters.
Therefore, how to ensure that the parameters can be reliably stored in the device under the condition of power failure is an urgent problem to be solved.
Disclosure of Invention
The application provides a parameter management method of an embedded device, a parameter management system of the embedded device, a computer readable storage medium and the embedded device.
In a first aspect, an embodiment of the present application provides a method for managing parameters of an embedded device, where the method for managing parameters of the embedded device includes:
the method comprises the steps of obtaining updating parameters of all functional modules in the embedded equipment in real time, wherein the embedded equipment comprises an RAM, a BackSRAM and a Flash, and the RAM, the BackSRAM and the Flash are configured with storage areas corresponding to all the functional modules one by one; writing the updated parameters into an area corresponding to the function module to which the updated parameters belong in the RAM;
copying the updated parameters from the RAM to an area corresponding to a functional module to which the updated parameters belong in a BackSRAM, recording a first timestamp, and starting a buffer timer, wherein the first timestamp belongs to the parameters of the functional module;
and when the time of the buffer timer reaches a preset value, writing the updated parameters into a corresponding area of the function module to which the updated parameters belong in Flash, and recording a second timestamp, wherein the second timestamp belongs to the parameters of the function module.
In a second aspect, an embodiment of the present application provides a parameter management system for an embedded device, where the parameter management system for the embedded device includes:
a parameter acquisition module: the embedded device comprises an RAM, a BackSRAM and a Flash, wherein the RAM, the BackSRAM and the Flash are configured with storage areas corresponding to the functional modules one by one; writing the updated parameters into an area corresponding to the function module to which the updated parameters belong in the RAM;
a first parameter writing module: the buffer timer is used for copying the updated parameters from the RAM to an area corresponding to the function module to which the updated parameters belong in the BackSRAM, recording a first timestamp, and starting the buffer timer, wherein the first timestamp belongs to the parameters of the function module;
a second parameter writing module: and when the time of the buffer timer reaches a preset value, writing the updated parameters into a corresponding area of the function module to which the updated parameters belong in Flash, and recording a second timestamp, wherein the second timestamp belongs to the parameters of the function module.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which program instructions of a parameter management method of an embedded device are stored, which can be loaded and executed by a processor.
In a fourth aspect, an embodiment of the present application provides an embedded device, where the embedded device includes:
a memory for storing program instructions; and
and the processor is used for executing the program instructions to enable the embedded device to realize the parameter management method of the embedded device.
The parameter management method of the embedded device adopts a double backup system: one parameter is backed up in the BackSRAM, and the other parameter is backed up in the Flash. The double backup system effectively improves the reliability of parameter storage, and the reliability of data storage can be improved by mutual verification of the double backup system and the parameter storage. The access speed of the BackSRAM is equivalent to that of a CPU, the BackSRAM can be stored in real time, and nonvolatile memories such as Flash or EEPROM can store data for a long time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is to be understood that the drawings in the following description are merely exemplary of the application and that other drawings may be derived from the structure shown in the drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a flowchart of a parameter management method for an embedded device according to a first embodiment of the present application.
Fig. 2 is a sub-flowchart of a parameter management method for an embedded device according to a second embodiment of the present application.
Fig. 3 is a sub-flowchart of a parameter management method for an embedded device according to a third embodiment of the present application.
Fig. 4 is a schematic structural diagram of a parameter management system of an embedded device according to a first embodiment of the present application.
Fig. 5 is a schematic diagram of an internal structure of an embedded device according to a first embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Please refer to fig. 1, which is a flowchart illustrating a parameter management method for an embedded device according to a first embodiment of the present application. The method for managing parameters of an embedded device provided in the first embodiment of the present application specifically includes the following steps.
And S101, acquiring the updating parameters of each functional module in the embedded equipment in real time, wherein the embedded equipment comprises a RAM, a BackSRAM and a Flash, and the RAM, the BackSRAM and the Flash are configured with storage areas corresponding to the functional modules one by one. And writing the updated parameters into an area corresponding to the function module to which the updated parameters belong in the RAM. In this embodiment, the parameter management method provides an operation interface for each module parameter upwards, and performs data storage of the BackSRAM and the Flash downwards. In the BackSRAM and the Flash, all parameters required by the system are continuously stored according to functional classification. And the parameters of each module are divided into different arrays in the RAM for mirror image storage, and the numerical values of the arrays are the same as those of BackSram and Flash. And then the interface function which independently accesses the RAM parameter mirror image of each module is given to each module, so that each module can only access own parameters through the interfaces without accidentally modifying other module parameters. The RAM image of the parameters common to the system also gives independent access interfaces, but these interfaces are open to all functional modules.
The nonvolatile memory is a category of data memory, and refers to a memory in which power failure data is not lost, and Flash, EEPROM and the like are common. Flash memory, a non-volatile memory, is a common memory type for embedded devices, and not only has the performance of Electrically Erasable and Programmable (EEPROM), but also can quickly read data (the advantage of NVRAM), so that data is not lost due to power failure. However, the structure characteristics of the flash memory determine that the flash memory needs to be erased before data is written, and the read-write speed is much slower than that of the CPU. The BackSRAM is a backup SRAM and is a RAM, most microcontrollers nowadays have integrated modules, a CPU can access the BackSRAM like an ordinary RAM after initialization is completed, and the access speed is consistent with the CPU main frequency. However, the SRAM has a feature that the SRAM can be independently powered by an external battery, that is, even if the main power of the processor is powered down, as long as the battery in the backup domain still supplies the data in the BackSRAM, the data in the BackSRAM can not be lost, and the main power of the processor can still access the data before the power down of the processor in the BackSRAM when the processor is powered up again.
And step S102, copying the updated parameters from the RAM to an area corresponding to the function module to which the updated parameters belong in the BackSRAM, recording a first time stamp, and starting a buffer timer, wherein the first time stamp belongs to the parameters of the function module.
In some possible embodiments, the time count of the buffer counter is ongoing, and the time of the buffer counter is reset when there is a parameter update. Further, the buffer counter counts time in a countdown manner.
And step S103, when the time of the buffer timer reaches a preset value, writing the updated parameters into a corresponding area of the function module to which the updated parameters belong in Flash, and recording a second time stamp which belongs to the parameters of the function module. Specifically, after the power-on initialization is completed, all the parameters of the functional module have a mirror image in the RAM. Each functional module reads, writes, clears and the like the parameter mirror image in the RAM through an operation interface given by the parameter management module. And when the RAM mirror image parameters are modified by module triggering, the parameter management module synchronizes the modification to the BackSRAM in real time, records the timestamp of the modification and triggers the operation buffer timer to work. If the operational buffer timer is not counting down, the operational buffer timer is started to start counting down from the initial value, and if the operational buffer timer has started counting down, the reset timer time restarts counting down. And after the operation buffer countdown time is up, parameter synchronization is triggered, and the data in the BackSRAM is synchronously stored in Flash. The reason for setting up the operation buffer countdown is that the Flash device needs to be erased and then written before being written in each time, while the erasing times of the Flash chip are limited, and the Flash service life can be quickly consumed by frequent erasing. The erasing and writing speed of Flash is slower than that of a CPU, and the parameters are not suitable to be synchronized into Flash immediately every time the parameters are modified. In most cases, the user may continuously modify the parameters, and if the user synchronously writes the parameters into the Flash once the user modifies the parameters, the CPU will frequently perform operations such as reading, erasing, writing and the like of the Flash, the system will not be slowed down, and the erasing life of the Flash is also shortened. Therefore, the purpose of setting up the operation buffer timer is to start the timer from the time when the operation modification parameter exists, and the operation with the modification parameter continuously resets the timer, but the parameter modification is synchronized into the BackSRAM in real time, and the data in the BackSRAM is not started to be synchronized into the Flash until the countdown of the timer is zero. Therefore, all modifications are written into the Flash at one time, so that the erasing and writing times of the Flash are greatly reduced, and the service life of the Flash is prolonged.
In some possible embodiments, when all parameters in Flash and all parameters in BackSRAM are incomplete, the default parameters are copied to RAM.
In the above embodiment, the multifunctional module can only directly access the RAM image of the independent parameter of each module through the independent access interface, and the modules do not interfere with each other. The reliability of data storage is improved by parameter double backup, and all module parameters are uniformly stored and managed by the parameter management module, so that uniform organization of all parameters is facilitated. By using a storage scheme of BackSRAM and Flash and by using the rapidity and the real-time property of the BackSRAM, the parameter modification can be stored in real time. Parameters can be stored for a long time by using the storage reliability of Flash without losing due to power failure. The Flash has large storage capacity and low price, and reduces the equipment cost. And a delay buffer storage design is introduced, so that the erasing frequency of the Flash is reduced, and the service time of the Flash is prolonged.
Please refer to fig. 2 in combination, which is a method for managing parameters of an embedded device according to a second embodiment of the present application. The difference between the parameter management method of the embedded device provided by the second embodiment and the parameter management method of the embedded device provided by the first embodiment is that the parameter management method of the embedded device provided by the second embodiment further includes the following steps.
Step S201, when the embedded device is powered on again, all parameters in the Flash of the embedded device are read. Specifically, the power-up initialization logic: after starting up, the Flash is preferably checked whether data exists in the Flash and the integrity and accuracy of the data are checked, and then the data in the BackSRAM is read and the integrity and accuracy of the data are checked. This has several conditions: and if the data in the Flash is newer than that in the BackSRAM, the data in the BackSRAM is copied into the Flash.
Step S202, judging whether all parameters in Flash are complete.
And step S203, when all the parameters in the Flash are complete, reading all the parameters in the BackSRAM.
And step S204, judging whether all parameters in the BackSRAM are complete.
And step S205, when all the parameters in the BackSRAM are complete, judging the time sequence of the first time stamp and the second time stamp.
In step S206, all the latest parameters are copied to the RAM.
In some possible embodiments, if all parameters in Flash are incomplete and all parameters in the BackSRAM are complete, all parameters in the BackSRAM are copied to Flash. And copying all parameters in the Flash to the BackSRAM when all parameters in the BackSRAM are complete. And if all the parameters in the Flash and the BackSRAM are incomplete, all the parameters in the Flash and the Backsram are restored to the default parameters of the program.
The embodiment effectively ensures that the parameters of each module of the system are not interfered with each other and are used independently. And a double backup mechanism is introduced, so that the parameter loss is effectively prevented. The system also introduces a delay buffer storage mechanism, thereby not only ensuring the timely storage of the device parameters and effectively avoiding the loss of data due to power failure, but also greatly prolonging the service life of nonvolatile memories such as Flash and the like. The parameter management system greatly improves the stability and reliability of the equipment, prolongs the service life of equipment devices and reduces the maintenance cost of the equipment.
Please refer to fig. 3 in combination, which is a method for managing parameters of an embedded device according to a third embodiment of the present application. The difference between the parameter management method of the embedded device provided by the third embodiment and the parameter management method of the embedded device provided by the first embodiment is that the parameter management method of the embedded device provided by the third embodiment further includes the following steps.
Step S601, copying the updated parameters from the RAM to an area corresponding to a function module of the BackSRAM to which the updated parameters belong, recording a first time stamp, and generating a first check code according to the updated parameters, wherein whether all the parameters in the BackSRAM are complete is judged according to the first check code.
Step S602, writing the updated parameters into the corresponding area of the function module to which the updated parameters belong in Flash, recording a second timestamp, and generating a second check code according to the updated parameters, wherein whether all the parameters in Flash are complete is judged according to the second check code.
In the above embodiment, all the functional modules can only indirectly access the independent parameter images of the modules in the RAM through the operation interfaces provided by the parameter management module. The design effectively prevents other modules from accessing errors and accidentally modifying any parameter modification except the module, and the parameter management module uniformly synchronizes the parameter modification to the BackSRAM, so that the reliability and the real-time performance of data transmission are improved, and the modified parameter can be immediately backed up to the BackSRAM after a user modifies the parameter. As long as the parameter data reaches the BackSRAM, under the condition that the battery of the backup domain is electrified, the power is cut off even if the device does not store the data in Flash yet, and the data can be ensured not to be lost. The data can still be stored in Flash after the next time the device is powered on. Data is stored in a nonvolatile memory such as Flash for a long time, but the device has a slow read/write speed and limited erase/write life. Therefore, a delay storage mechanism is designed, parameter modification is immediately and synchronously stored in the BackSram, but delay is carried out by operating a buffer timer, and all modification within a certain time is stored in the Flash once. Therefore, the parameters can be immediately backed up after being modified at any time, the data of the equipment cannot be lost when the equipment is powered off at any time, and the data of the equipment can be stored for a long time.
Referring to fig. 4, the present application further provides a parameter management system 700 of an embedded device, where the parameter management system 700 of the embedded device includes: a parameter obtaining module 701, a first parameter writing module 702, and a second parameter writing module 703.
The parameter acquisition module 701: the method is used for acquiring the updating parameters of each functional module in the embedded device in real time, wherein the embedded device comprises a RAM, a BackSRAM and a Flash, and each of the RAM, the BackSRAM and the Flash is configured with a storage area corresponding to each functional module one by one. And writing the updated parameters into an area corresponding to the function module to which the updated parameters belong in the RAM.
The first parameter writing module 702: and the buffer timer is used for copying the updated parameters from the RAM to an area corresponding to the function module to which the updated parameters belong in the BackSRAM, recording a first timestamp, and starting the buffer timer, wherein the first timestamp belongs to the parameters of the function module.
The second parameter writing module 703: and when the time of the buffer timer reaches a preset value, writing the updated parameters into a corresponding area of the function module to which the updated parameters belong in Flash, and recording a second timestamp, wherein the second timestamp belongs to the parameters of the function module.
In the above embodiment, a dual backup system is adopted: one parameter is backed up in the BackSRAM, and the other parameter is backed up in the Flash. The double backup system effectively improves the reliability of parameter storage, and the reliability of data storage can be improved by mutual verification of the double backup system and the parameter storage. The access speed of the BackSRAM is equivalent to that of a CPU, the BackSRAM can be stored in real time, and nonvolatile memories such as Flash or EEPROM can store data for a long time.
The present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon program instructions of the parameter management method of the embedded device described above, which can be loaded and executed by a processor. Since the computer-readable storage medium adopts all the technical solutions of all the above embodiments, at least all the advantages brought by the technical solutions of the above embodiments are achieved, and no further description is given here.
The present application also provides a computer device 900, the computer device 900 comprising at least a memory 901 and a processor 902. The memory 901 is used to store program instructions of a parameter management method of an embedded device. A processor 902 for executing program instructions to make the computer device implement the above-mentioned parameter management method of the embedded device. Please refer to fig. 5, which is a schematic diagram illustrating an internal structure of a computer apparatus 900 according to a first embodiment of the present application. Further, the embedded device is a ventilator.
The memory 901 includes at least one type of computer-readable storage medium, which includes flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 901 may in some embodiments be an internal storage unit of the computer device 900, such as a hard disk of the computer device 900. The memory 901 may also be an external storage device of the computer device 900 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), etc., provided on the computer device 900. Further, the memory 901 may also include both internal storage units and external storage devices of the computer device 900. The memory 901 may be used not only to store application software installed in the computer device 900 and various types of data, such as program instructions of a parameter management method of an embedded device, etc., but also to temporarily store data that has been output or is to be output, such as data generated by execution of a parameter management method of an embedded device, etc.
Processor 902 may be, in some embodiments, a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip that executes program instructions or processes data stored in memory 901. In particular, the processor 902 executes program instructions of a parameter management method of an embedded device to control the computer device 900 to implement the parameter management method of the embedded device.
Further, the computer device 900 may further include a bus 903 which may be a Peripheral Component Interconnect (PCI) standard bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Further, computer device 900 may also include a display component 904. The display component 904 may be an LED (Light Emitting Diode) display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light Emitting Diode) touch panel, or the like. The display component 904 may also be referred to as a display device or display unit, as appropriate, for displaying information processed in the computer device 900 and for displaying a visual user interface, among other things.
Further, the computer device 900 may also include a communication component 905, and the communication component 905 may optionally include a wired communication component and/or a wireless communication component (e.g., a WI-FI communication component, a bluetooth communication component, etc.), typically used for establishing a communication connection between the computer device 900 and other computer devices.
While fig. 5 illustrates only a computer device 900 having components 901 and 905 and program instructions implementing a parameter management method for an embedded device, those skilled in the art will appreciate that the architecture illustrated in fig. 5 is not limiting of the computer device 900 and may include fewer or more components than those illustrated, or may combine certain components, or a different arrangement of components. Since the computer device 900 adopts all technical solutions of all the embodiments described above, at least all the advantages brought by the technical solutions of the embodiments described above are achieved, and are not described herein again.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The parameter management method of the embedded device comprises one or more program instructions. When loaded and executed on a device, cause the flow or functions according to embodiments of the application, in whole or in part. The apparatus may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The program instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the program instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above described systems, apparatuses and units may refer to the corresponding processes in the above described method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described embodiment of the parameter management method for an embedded device is merely illustrative, for example, the division of the unit is only a logical function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a computer-readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned computer-readable storage media comprise: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program instructions.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, to the extent that such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, it is intended that the present application also encompass such modifications and variations.
The above-mentioned embodiments are only examples of the present invention, and the scope of the claims of the present invention should not be limited by these examples, so that the claims of the present invention should be construed as equivalent and still fall within the scope of the present invention.

Claims (10)

1. A parameter management method of an embedded device is characterized in that the parameter management method of the embedded device comprises the following steps:
the method comprises the steps of obtaining updating parameters of all functional modules in the embedded equipment in real time, wherein the embedded equipment comprises an RAM, a BackSRAM and a Flash, and the RAM, the BackSRAM and the Flash are configured with storage areas corresponding to all the functional modules one by one; writing the updated parameters into an area corresponding to a functional module to which the updated parameters belong in a RAM;
copying the updated parameters from the RAM to an area corresponding to a functional module to which the updated parameters belong in a BackSRAM, recording a first timestamp, and starting a buffer timer, wherein the first timestamp belongs to the parameters of the functional module;
and when the time of the buffer timer reaches a preset value, writing the updated parameters into a corresponding area of a functional module to which the updated parameters belong in Flash, and recording a second timestamp, wherein the second timestamp belongs to the parameters of the functional module.
2. The parameter management method of an embedded device according to claim 1, further comprising:
when the embedded equipment is powered on again, reading all parameters in the Flash of the embedded equipment;
judging whether all parameters in the Flash are complete or not;
when all parameters in the Flash are complete, reading all parameters in the BackSRAM;
judging whether all parameters in the BackSRAM are complete or not;
when all the parameters in the BackSRAM are complete, judging the time sequence of the first timestamp and the second timestamp; and
copying all parameters that are time-most recent into RAM.
3. The parameter management method of an embedded device according to claim 1, wherein the time of the buffer counter is reset when there is a parameter update while the time count of the buffer counter is in progress.
4. The parameter management method of an embedded device according to claim 3, wherein the buffer counter is clocked in a countdown manner.
5. The parameter management method of an embedded device according to claim 2, wherein when all the parameters in the Flash and all the parameters in the BackSRAM are incomplete, the default parameters are copied to the RAM.
6. The parameter management method of an embedded device according to claim 2, further comprising:
copying the updated parameters from the RAM to an area corresponding to a functional module of a BackSRAM to which the updated parameters belong, recording a first time stamp, and generating a first check code according to the updated parameters, wherein whether all the parameters in the BackSRAM are complete is judged according to the first check code;
writing the updated parameters into a corresponding area of a functional module in Flash to which the updated parameters belong, recording a second timestamp, and generating a second check code according to the updated parameters, wherein whether all the parameters in Flash are complete is judged according to the second check code.
7. A parameter management system of an embedded device, the parameter management system of the embedded device comprising:
a parameter acquisition module: the embedded device comprises an RAM, a BackSRAM and a Flash, wherein the RAM, the BackSRAM and the Flash are configured with storage areas corresponding to the functional modules one by one; writing the updated parameters into an area corresponding to a functional module to which the updated parameters belong in a RAM;
a first parameter writing module: the buffer timer is used for copying the updated parameters from the RAM to an area corresponding to a functional module to which the updated parameters belong in a BackSRAM, recording a first timestamp, and starting the buffer timer, wherein the first timestamp belongs to the parameters of the functional module;
a second parameter writing module: and when the time of the buffer timer reaches a preset value, the buffer timer is used for writing the updated parameters into a corresponding area of a functional module to which the updated parameters belong in Flash and recording a second timestamp, wherein the second timestamp belongs to the parameters of the functional module.
8. A computer-readable storage medium, wherein program instructions of the parameter management method of the embedded device according to any one of claims 1 to 6 are stored on the computer-readable storage medium and can be loaded and executed by a processor.
9. An embedded device, comprising:
a memory for storing program instructions; and
a processor for executing the program instructions to enable the embedded device to implement the parameter management method of the embedded device according to any one of claims 1 to 6.
10. The embedded device of claim 9, wherein the embedded device is a ventilator.
CN202111646524.4A 2021-12-29 2021-12-29 Parameter management method and system of embedded equipment Pending CN114371960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111646524.4A CN114371960A (en) 2021-12-29 2021-12-29 Parameter management method and system of embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111646524.4A CN114371960A (en) 2021-12-29 2021-12-29 Parameter management method and system of embedded equipment

Publications (1)

Publication Number Publication Date
CN114371960A true CN114371960A (en) 2022-04-19

Family

ID=81142861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111646524.4A Pending CN114371960A (en) 2021-12-29 2021-12-29 Parameter management method and system of embedded equipment

Country Status (1)

Country Link
CN (1) CN114371960A (en)

Similar Documents

Publication Publication Date Title
US10452283B2 (en) Information processing apparatus, method for controlling information processing apparatus, non-transitory recording medium storing control tool, host device, non-transitory recording medium storing performance evaluation tool, and performance evaluation method for external memory device
US8230160B2 (en) Flash memory storage system and flash memory controller and data processing method thereof
JP4215746B2 (en) Information processing apparatus and life monitoring method
US10222982B2 (en) Lifetime management device and lifetime management method
US8909883B2 (en) Storage system and storage control method
US8402204B2 (en) Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage system using the same
CN103842968B (en) A kind of moving method of internal storage data, computing machine and device
US9448889B2 (en) BIOS failover update with service processor
US9448808B2 (en) BIOS update with service processor without serial peripheral interface (SPI) access
US8370587B2 (en) Memory system storing updated status information and updated address translation information and managing method therefor
US20120089805A1 (en) Memory storage device, memory controller thereof, and method for automatically creating fill-file thereof
US20170308722A1 (en) Storage apparatus having nonvolatile memory device, and nonvolatile memory device
CN103827834A (en) Migration method of in-memory data, computer and device
JP2013222435A (en) Semiconductor storage device and method of controlling the same
CN109582332B (en) System upgrading method and device for Internet camera
US8819387B2 (en) Memory storage device, memory controller, and method for identifying valid data
CN1924821A (en) Firmware renewing system and method
CN108132811B (en) FPGA program data loading method and device
JP2017142776A (en) Life management device and life management method
US8966161B2 (en) Memory storage device and restoring method thereof
CN105279094A (en) NAND Flash operation processing method, NAND Flash operation processing device and logic device
CN114371960A (en) Parameter management method and system of embedded equipment
US10705827B2 (en) Method for updating system information of a computer device
CN102109965A (en) Flash memory storage system, flash memory controller, computer system and simulation method
US7743277B2 (en) System and method for detecting and reducing data corruption in a storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination