CN117435397A - Restarting method, restarting system, equipment and medium of embedded equipment - Google Patents
Restarting method, restarting system, equipment and medium of embedded equipment Download PDFInfo
- Publication number
- CN117435397A CN117435397A CN202311459284.6A CN202311459284A CN117435397A CN 117435397 A CN117435397 A CN 117435397A CN 202311459284 A CN202311459284 A CN 202311459284A CN 117435397 A CN117435397 A CN 117435397A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- state value
- target
- restarting
- file
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012216 screening Methods 0.000 claims abstract description 11
- 238000012795 verification Methods 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012423 maintenance Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000008187 granular material Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a restarting method, restarting system, equipment and medium of embedded equipment. The restarting method of the embedded device comprises the following steps: acquiring a configuration file and a historical state value of a register; the configuration file is used for backing up the system of the embedded equipment, and the historical state value corresponds to the configuration file; determining a current state value corresponding to the configuration file according to the starting condition and the historical state value of the configuration file; screening a target configuration file from the configuration files according to the current state value; restarting the system of the embedded device according to the target configuration file. The invention determines the corresponding current state value according to the starting condition of the configuration file, screens the most stable target configuration file according to the current state value, restarts the embedded equipment through the target configuration file, and the system which the restarted embedded equipment enters is stable without arranging professional staff, thereby being convenient for maintenance of the embedded equipment.
Description
Technical Field
The invention relates to the field of control systems, in particular to a restarting method, restarting system, equipment and medium of embedded equipment.
Background
Industrial embedded devices (e.g., controllers and I/O devices) typically operate in a 7 x 24 hour mode. Power-down reboot is a risky operation for electronic devices, as is embedded devices. When the embedded device is restarted, the bootstrap program guides the operating system in the nonvolatile storage to start, and then the application program is started. Currently, FLASH granules are used as storage media for storage such as SSD and eMMC commonly used in embedded devices. After the FLASH storage is frequently operated on line for a long time, the risk of bad blocks exists. Once a bad block appears, it is difficult to realize data recovery through a general error correction algorithm, and when the equipment is powered off and restarted, the conditions of incapability of starting, repeated restarting, incomplete functions and the like appear. In such a case, the general end user does not have a processing means, needs to arrange a professional for disposal, and has high maintenance cost and poor experience for the user. In practical application, certain deployment positions are limited in space, administrative approval is needed when the embedded equipment is opened, the maintenance and update flow is complicated, the maintenance cost is higher, and the most suitable configuration file cannot be found to restart the embedded equipment.
Disclosure of Invention
The invention aims to overcome the defects that in the prior art, professional staff is required to be arranged for maintenance and updating of embedded equipment, the flow is complicated, the maintenance cost is high, and the embedded equipment cannot be restarted by finding the most suitable configuration file.
The invention solves the technical problems by the following technical scheme:
as a first aspect of the present invention, the present invention provides a restarting method of an embedded device, including:
acquiring a configuration file and a historical state value of a register; the configuration file is used for backing up the system of the embedded equipment, and the historical state value corresponds to the configuration file;
determining a current state value corresponding to the configuration file according to the starting condition of the configuration file and the historical state value;
screening a target configuration file from the configuration files according to the current state value;
restarting the system of the embedded equipment according to the target configuration file.
Optionally, the step of determining the current state value corresponding to the configuration file according to the starting condition of the configuration file and the historical state value specifically includes:
when the configuration file fails to restart the system of the embedded equipment, subtracting a first numerical value from a historical state value corresponding to the configuration file;
and/or when the system of the embedded equipment is restarted accidentally, subtracting a second numerical value from the historical state value of the configuration file of the system started to be restarted accidentally;
and/or when the configuration file is not checked, determining the number of checked errors in the configuration file, and subtracting a third value from a historical state value corresponding to the configuration file according to each checked error;
and/or when the configuration file is not checked, updating the configuration file through updating the configuration file, and adding a fourth numerical value to the historical state value corresponding to the updated configuration file;
and/or when the system restart of the configuration file to the embedded equipment is successful, adding a fifth numerical value to the historical state value corresponding to the configuration file.
Optionally, after the step of restarting the system of the embedded device according to the target configuration file, the method includes:
when any configuration file is updated, other configuration files are updated at the same time;
and/or, acquiring a target verification file of the target configuration file, and verifying the target configuration file according to the target verification file;
and when the verification of the target configuration file fails, updating the target configuration file and the target verification file.
Optionally, the restarting method further includes:
when each configuration file cannot successfully restart the embedded equipment, or each configuration file cannot successfully start a target application in the embedded equipment, or the current state values corresponding to all the configuration files are smaller than a preset state value, acquiring the minimum system configuration file of the embedded equipment; the minimum system configuration file is used for backing up a minimum system of the embedded equipment;
restarting the minimum system according to the minimum system configuration file.
As a second aspect of the present invention, the present invention provides a restarting system of an embedded device, including an obtaining module, a current state value determining module, a target configuration file screening module, and a restarting module;
the acquisition module is used for acquiring the historical state value of the configuration file and the register;
the configuration file is used for backing up the system of the embedded equipment, and the historical state value corresponds to the configuration file;
the current state value determining module is used for determining a current state value corresponding to the configuration file according to the starting condition of the configuration file and the historical state value;
the target configuration file screening module is used for screening target configuration files from the configuration files according to the current state value;
and the restarting module is used for restarting the system of the embedded equipment according to the target configuration file.
Optionally, the current state value determining module is specifically configured to:
when the configuration file fails to restart the system of the embedded equipment, subtracting a first numerical value from a historical state value corresponding to the configuration file;
and/or when the system of the embedded equipment is restarted accidentally, subtracting a second numerical value from the historical state value of the configuration file of the system started to be restarted accidentally;
and/or when the configuration file is not checked, determining the number of checked errors in the configuration file, and subtracting a third value from a historical state value corresponding to the configuration file according to each checked error;
and/or when the configuration file is not checked, updating the configuration file through updating the configuration file, and adding a fourth numerical value to the historical state value corresponding to the updated configuration file;
and/or when the system restart of the configuration file to the embedded equipment is successful, adding a fifth numerical value to the historical state value corresponding to the configuration file.
Optionally, the restarting system further comprises a configuration file updating module;
the configuration file updating module is used for updating other configuration files simultaneously when any configuration file is updated;
and/or, the restarting system further comprises a file checking module and a configuration file updating module;
the file verification module is used for obtaining a target verification file of the target configuration file and verifying the target configuration file according to the target verification file;
and the configuration file updating module is used for updating the target configuration file and the target verification file when the target configuration file fails to be verified.
Optionally, the restarting system further comprises a minimum system starting module;
the minimum system starting module is used for acquiring a minimum system configuration file of the embedded equipment when all the configuration files cannot be successfully restarted or when all the configuration files cannot be successfully started for target application in the embedded equipment or when current state values corresponding to all the configuration files are smaller than preset state values, and restarting the minimum system according to the minimum system configuration file;
and the minimum system configuration file is used for backing up the minimum system of the embedded equipment.
As a third aspect of the present invention, the present invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method for restarting an embedded device as in the first aspect of the present invention when executing the computer program.
As a fourth aspect of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a reboot method of an embedded device as in the first aspect of the present invention.
The invention determines the corresponding current state value according to the starting condition of the configuration file, screens out the most stable target configuration file according to the current state value, and restarts the embedded device through the target configuration file. The system which the embedded equipment enters after restarting is stable, no professional is required to be arranged, and the maintenance of the embedded equipment is very convenient.
Drawings
Fig. 1 is a first flowchart illustrating a reboot method of an embedded device in embodiment 1.
Fig. 2 is a second flowchart of a restarting method of the embedded device in embodiment 1.
Fig. 3 is a schematic structural diagram of a restart system of an embedded device in embodiment 2.
Fig. 4 is a schematic structural diagram of the electronic device in embodiment 3.
Detailed Description
The invention is further illustrated by way of examples which are not intended to limit the scope of the invention.
Example 1
Referring to fig. 1, the present embodiment provides a method for restarting an embedded device, including:
s1, acquiring a configuration file and a historical state value of a register;
the configuration file is used for backing up the system of the embedded equipment, and the historical state value corresponds to the configuration file;
s2, determining a current state value corresponding to the configuration file according to the starting condition of the configuration file and the historical state value;
s3, screening out a target configuration file from the configuration files according to the current state value;
s4, restarting the system of the embedded equipment according to the target configuration file.
In this embodiment, the embedded device may include a controller and an I/O device. The configuration file may be stored in the embedded device or external to the embedded device (e.g., in a storage medium such as a flash disk). Each configuration file corresponds to one system of the backup embedded device. For example, configuration file a backs up for system a, configuration file B backs up for system B, and so on. The embedded device may access the configuration file according to its address.
In this embodiment, the present invention determines the corresponding current status value according to the starting condition of the configuration file, screens the most stable target configuration file according to the current status value, and restarts the embedded device through the target configuration file. The system which the embedded equipment enters after restarting is stable, no professional is required to be arranged, and the maintenance of the embedded equipment is very convenient.
Referring to fig. 2, in this embodiment, the restart process of the embedded device may include starting the system of the embedded device according to the target configuration file, and when the operating system is started successfully, starting the application of the embedded device and updating the historical state value of the configuration file to the current state value.
When the embedded equipment is restarted successfully, the operation stage is entered, in the operation stage, whether any configuration file needs to be updated can be detected, when any configuration file needs to be updated, the configuration file can be updated first, the embedded equipment is restarted or not restarted, and all the configuration files are updated after the restarting.
In this embodiment, the configuration files may include a sensor configuration file and an external device configuration file, where the sensor configuration file is used to configure a sensor (for example, a sensor such as a temperature sensor and a humidity sensor) connected to the embedded device, and control the sensor to obtain parameters (for example, parameters such as temperature and humidity). The external device configuration file is used for controlling external devices (such as a valve and other devices) connected with the embedded device to execute operations (for example, the valve is opened at a temperature greater than a preset temperature) according to the parameters.
In this embodiment, if the embedded device fails to start the system and the start program fails, the watchdog software may be used to reset the embedded device and update the status value of the configuration file at the same time.
In the above embodiment, the history state value is opposite to the current state value, and the current state value at the current time becomes the history state value at the next time.
In an alternative embodiment, step S2 specifically includes:
when the configuration file fails to restart the system of the embedded equipment, subtracting a first numerical value from a historical state value corresponding to the configuration file;
and/or when the system of the embedded device is restarted accidentally, subtracting a second numerical value from the historical state value of the configuration file of the system for starting the accidental restart;
and/or when the configuration file is not checked, determining the number of checked errors in the configuration file, and subtracting a third value from the historical state value corresponding to the configuration file according to the checked errors at each position. That is, in this embodiment, the configuration file is corrupted once, the third value is subtracted, the corruption is twice, the third value is subtracted twice, and so on.
And/or when the configuration file is not checked, updating the configuration file through updating the configuration file, and adding a fourth numerical value to the historical state value corresponding to the updated configuration file;
and/or when the system restart of the configuration file to the embedded equipment is successful, adding a fifth numerical value to the historical state value corresponding to the configuration file.
In this embodiment, the first value > the second value > the third value, and the fourth value < the fifth value. For example, the first value is 20, the second value is 10, the third value is 2, the fourth value is 1, and the fifth value is 2.
In the above embodiment, the most stable configuration file may be determined by subtracting or adding different status values to the status values of the configuration file in different cases, so as to start the system of the embedded device.
In an alternative embodiment, after step S4, comprising:
when any configuration file is updated, other configuration files are updated simultaneously.
In this embodiment, when any configuration file is updated, updating other configuration files simultaneously ensures that the configuration file is updated, and ensures the instantaneity of the configuration file.
In an alternative embodiment, after step S4, comprising: acquiring a target verification file of the target configuration file, and verifying the target configuration file according to the target verification file;
and when the verification of the target configuration file fails, updating the target configuration file and the target verification file.
In this embodiment, the target configuration file and the target verification file may be updated by performing a renaming operation on the configuration file and the target verification file which are checked for errors, and copying the configuration file and the target verification file from other configuration files.
In this embodiment, the real-time performance of the target configuration file and the target verification file is ensured by updating the target configuration file and the target verification file.
In an alternative embodiment, the restarting method further comprises:
when all the configuration files cannot successfully restart the embedded equipment, or when all the configuration files cannot successfully start target application in the embedded equipment, or when the current state values corresponding to all the configuration files are smaller than the preset state values, acquiring the minimum system configuration file of the embedded equipment; the minimum system configuration file is used for backing up the minimum system of the embedded equipment;
and restarting the minimum system according to the minimum system configuration file.
In this embodiment, the minimum system is restarted according to the minimum system configuration file, so that normal operation of the embedded device is ensured.
In this embodiment, the preset state value may be the initial state value minus the first value, and when the initial state value is 100 and the first value is 20, the preset state value is 80. Only profiles greater than or equal to the preset value may be selected as the target profile.
According to the restarting method of the embedded equipment, the corresponding current state value is determined according to the starting condition of the configuration file, the most stable target configuration file is screened out according to the current state value, the embedded equipment is restarted through the target configuration file, the system which the restarted embedded equipment enters is stable, no professional is required to arrange, and the maintenance of the embedded equipment is very convenient.
Example 2
Referring to fig. 3, embodiment 2 provides a restart system of an embedded device, which includes an obtaining module 201, a current state value determining module 202, a target profile filtering module 203, and a restart module 204;
the obtaining module 201 is configured to obtain a configuration file and a historical state value of a register;
the configuration file is used for backing up the system of the embedded equipment, and the historical state value corresponds to the configuration file;
the current state value determining module 202 is configured to determine a current state value corresponding to the configuration file according to the starting condition of the configuration file and the historical state value;
the target configuration file screening module 203 is configured to screen a target configuration file from configuration files according to the current state value;
the restarting module 204 is configured to restart the system of the embedded device according to the target configuration file.
In this embodiment, the current state value corresponding to the configuration file is determined according to the starting condition of the configuration file and the historical state value, the target configuration file is determined according to the current state value, the most suitable target configuration file is determined, and the system is restarted according to the target configuration file, so that no professional is required, the flow is simple, and the maintenance cost is low.
In an alternative embodiment, the current state value determining module 202 is specifically configured to:
when the configuration file fails to restart the system of the embedded equipment, subtracting a first numerical value from a historical state value corresponding to the configuration file;
and/or when the system of the embedded device is restarted accidentally, subtracting the second value from the historical state value of the configuration file of the system started to be restarted accidentally;
and/or when the configuration file is not checked, determining the number of checked errors in the configuration file, and subtracting a third numerical value from the historical state value corresponding to the configuration file according to each checked error;
and/or when the configuration file is not checked, updating the configuration file through updating the configuration file, and adding a fourth numerical value to the historical state value corresponding to the updated configuration file;
and/or when the system restart of the configuration file to the embedded equipment is successful, adding a fifth numerical value to the historical state value corresponding to the configuration file.
In the above embodiment, the most stable configuration file may be determined by subtracting or adding different status values to the status values of the configuration file in different cases, so as to start the system of the embedded device.
In an alternative embodiment, the restarting system further comprises a profile updating module;
the configuration file updating module is used for updating other configuration files simultaneously when any configuration file is updated.
In this embodiment, when any configuration file is updated, updating other configuration files simultaneously ensures that the configuration file is updated, and ensures the instantaneity of the configuration file.
In an alternative embodiment, the restarting system further comprises a file checking module and a configuration file updating module;
the file verification module is used for obtaining a target verification file of the target configuration file and verifying the target configuration file according to the target verification file;
the configuration file updating module is used for updating the target configuration file and the target verification file when the target configuration file fails to be verified.
In this embodiment, the real-time performance of the target configuration file and the target verification file is ensured by updating the target configuration file and the target verification file.
In an alternative embodiment, the restarting system further includes a minimum system startup module;
the minimum system starting module is used for acquiring a minimum system configuration file of the embedded equipment when all the configuration files cannot successfully restart the embedded equipment or when all the configuration files cannot successfully start target application in the embedded equipment or when the current state values corresponding to all the configuration files are smaller than a preset state value, and restarting the minimum system according to the minimum system configuration file;
the minimum system configuration file is used for backing up the minimum system of the embedded device.
In this embodiment, the minimum system is restarted according to the minimum system configuration file, so that normal operation of the embedded device is ensured.
The restarting system of the embedded device in this embodiment determines the corresponding current state value according to the starting condition of the configuration file, screens the most stable target configuration file according to the current state value, restarts the embedded device through the target configuration file, and the system into which the restarted embedded device enters is stable, and does not need to arrange professionals, so that the maintenance of the embedded device is very convenient.
Example 3
Fig. 4 is a schematic structural diagram of an electronic device according to the present embodiment. The electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for restarting the embedded device of embodiment 1 when the program is executed by the processor. The electronic device 30 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, the electronic device 30 may be embodied in the form of a general purpose computing device, which may be a server device, for example. Components of electronic device 30 may include, but are not limited to: the at least one processor 31, the at least one memory 32, a bus 33 connecting the different system components, including the memory 32 and the processor 31.
The bus 33 includes a data bus, an address bus, and a control bus.
Memory 32 may include volatile memory such as Random Access Memory (RAM) 321 and/or cache memory 322, and may further include Read Only Memory (ROM) 323.
Memory 32 may also include a program/utility 325 having a set (at least one) of program modules 324, such program modules 324 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The processor 31 executes various functional applications and data processing, such as the steps of the restarting method of the embedded device of embodiment 1 of the present invention, by running a computer program stored in the memory 32.
The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). Such communication may be through an input/output (I/O) interface 35. Also, model-generating device 30 may also communicate with one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet, via network adapter 36. As shown, network adapter 36 communicates with the other modules of model-generating device 30 via bus 33. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in connection with the model-generating device 30, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, data backup storage systems, and the like.
It should be noted that although several units/modules or sub-units/modules of an electronic device are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more units/modules described above may be embodied in one unit/module in accordance with embodiments of the present invention. Conversely, the features and functions of one unit/module described above may be further divided into ones that are embodied by a plurality of units/modules.
Example 4
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the restart method of the embedded device of embodiment 1.
More specifically, among others, readable storage media may be employed including, but not limited to: portable disk, hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible embodiment, the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps of implementing the method for restarting an embedded device of embodiment 1, when the program product is run on the terminal device.
Wherein the program code for carrying out the invention may be written in any combination of one or more programming languages, and the program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device, partly on the remote device or entirely on the remote device
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the principles and spirit of the invention, but such changes and modifications fall within the scope of the invention.
Claims (10)
1. A method for restarting an embedded device, the method comprising:
acquiring a configuration file and a historical state value of a register;
the configuration file is used for backing up the system of the embedded equipment, and the historical state value corresponds to the configuration file;
determining a current state value corresponding to the configuration file according to the starting condition of the configuration file and the historical state value;
screening a target configuration file from the configuration files according to the current state value;
restarting the system of the embedded equipment according to the target configuration file.
2. The method for restarting the embedded device of claim 1 wherein the step of determining the current state value corresponding to the configuration file according to the start-up condition of the configuration file and the historical state value specifically includes:
when the configuration file fails to restart the system of the embedded equipment, subtracting a first numerical value from a historical state value corresponding to the configuration file;
and/or when the system of the embedded equipment is restarted accidentally, subtracting a second numerical value from the historical state value of the configuration file of the system started to be restarted accidentally;
and/or when the configuration file is not checked, determining the number of checked errors in the configuration file, and subtracting a third value from a historical state value corresponding to the configuration file according to each checked error;
and/or when the configuration file is not checked, updating the configuration file through updating the configuration file, and adding a fourth numerical value to the historical state value corresponding to the updated configuration file;
and/or when the system restart of the configuration file to the embedded equipment is successful, adding a fifth numerical value to the historical state value corresponding to the configuration file.
3. The method for restarting the embedded device of claim 1, wherein after the step of restarting the system of the embedded device according to the target configuration file, the method comprises:
when any configuration file is updated, other configuration files are updated at the same time;
and/or, acquiring a target verification file of the target configuration file, and verifying the target configuration file according to the target verification file;
and when the verification of the target configuration file fails, updating the target configuration file and the target verification file.
4. The method for restarting the embedded device of claim 1 wherein the method for restarting further comprises:
when each configuration file cannot successfully restart the embedded equipment, or each configuration file cannot successfully start a target application in the embedded equipment, or the current state values corresponding to all the configuration files are smaller than a preset state value, acquiring the minimum system configuration file of the embedded equipment; the minimum system configuration file is used for backing up a minimum system of the embedded equipment;
restarting the minimum system according to the minimum system configuration file.
5. A restart system for an embedded device, the restart system comprising: the device comprises an acquisition module, a current state value determination module, a target configuration file screening module and a restarting module;
the acquisition module is used for acquiring the historical state value of the configuration file and the register;
the configuration file is used for backing up the system of the embedded equipment, and the historical state value corresponds to the configuration file;
the current state value determining module is used for determining a current state value corresponding to the configuration file according to the starting condition of the configuration file and the historical state value;
the target configuration file screening module is used for screening target configuration files from the configuration files according to the current state value;
and the restarting module is used for restarting the system of the embedded equipment according to the target configuration file.
6. The restart system of an embedded device of claim 5, wherein the current state value determination module is specifically configured to:
when the configuration file fails to restart the system of the embedded equipment, subtracting a first numerical value from a historical state value corresponding to the configuration file;
and/or when the system of the embedded equipment is restarted accidentally, subtracting a second numerical value from the historical state value of the configuration file of the system started to be restarted accidentally;
and/or when the configuration file is not checked, determining the number of checked errors in the configuration file, and subtracting a third value from a historical state value corresponding to the configuration file according to each checked error;
and/or when the configuration file is not checked, updating the configuration file through updating the configuration file, and adding a fourth numerical value to the historical state value corresponding to the updated configuration file;
and/or when the system restart of the configuration file to the embedded equipment is successful, adding a fifth numerical value to the historical state value corresponding to the configuration file.
7. The restart system of an embedded device of claim 5, wherein the restart system further comprises a profile update module;
the configuration file updating module is used for updating other configuration files simultaneously when any configuration file is updated;
and/or, the restarting system further comprises a file checking module and a configuration file updating module;
the file verification module is used for obtaining a target verification file of the target configuration file and verifying the target configuration file according to the target verification file;
and the configuration file updating module is used for updating the target configuration file and the target verification file when the target configuration file fails to be verified.
8. The method for restarting the embedded device of claim 5 wherein the restarting system further includes a minimum system startup module;
the minimum system starting module is used for acquiring a minimum system configuration file of the embedded equipment when all the configuration files cannot be successfully restarted or when all the configuration files cannot be successfully started for target application in the embedded equipment or when current state values corresponding to all the configuration files are smaller than preset state values, and restarting the minimum system according to the minimum system configuration file;
and the minimum system configuration file is used for backing up the minimum system of the embedded equipment.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a method of restarting an embedded device according to any one of claims 1 to 4 when executing the computer program.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a method of restarting an embedded device according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311459284.6A CN117435397A (en) | 2023-11-03 | 2023-11-03 | Restarting method, restarting system, equipment and medium of embedded equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311459284.6A CN117435397A (en) | 2023-11-03 | 2023-11-03 | Restarting method, restarting system, equipment and medium of embedded equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117435397A true CN117435397A (en) | 2024-01-23 |
Family
ID=89556505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311459284.6A Pending CN117435397A (en) | 2023-11-03 | 2023-11-03 | Restarting method, restarting system, equipment and medium of embedded equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117435397A (en) |
-
2023
- 2023-11-03 CN CN202311459284.6A patent/CN117435397A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7340638B2 (en) | Operating system update and boot failure recovery | |
US7197613B2 (en) | Nonvolatile memory | |
US20170046152A1 (en) | Firmware update | |
US8918778B2 (en) | Method of fail safe flashing management device and application of the same | |
JP5183542B2 (en) | Computer system and setting management method | |
TW201235840A (en) | Error management across hardware and software layers | |
KR100952585B1 (en) | Method and system for automatic recovery of an embedded operating system | |
US20120084508A1 (en) | Disk array apparatus and firmware update method therefor | |
US8117434B2 (en) | Component configuration mechanism for rebooting | |
US20080072030A1 (en) | Computer System and Method for Updating Program Code | |
CN106294065A (en) | Hard disk failure monitoring method, Apparatus and system | |
US10824517B2 (en) | Backup and recovery of configuration files in management device | |
CN104424068A (en) | System and method for pressure testing of firmware update | |
CN111552592A (en) | Double-backup starting method and system | |
CN112015447B (en) | System updating method and device of electronic equipment, electronic equipment and storage medium | |
CN108737153B (en) | Block chain disaster recovery system, method, server and computer-readable storage medium | |
JP2023064689A (en) | Board management controller of computer system and start method | |
CN107894894B (en) | System and method for updating device software | |
CN112035171A (en) | Factory setting restoration method and system based on UEFI firmware | |
CN117435397A (en) | Restarting method, restarting system, equipment and medium of embedded equipment | |
CN111382009B (en) | Automatic system maintenance method and computer equipment with automatic maintenance function | |
EP2490123A2 (en) | An embedded appliance | |
WO2022050938A1 (en) | Firmware event recovery | |
KR20030062793A (en) | Apparatus and Method for operating recovery and backup of linux operting system | |
CN104216797A (en) | Embedded system set value setting system and method and electronic 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 |