CN108037942B - Adaptive data recovery and update method and device for embedded equipment - Google Patents
Adaptive data recovery and update method and device for embedded equipment Download PDFInfo
- Publication number
- CN108037942B CN108037942B CN201711276837.9A CN201711276837A CN108037942B CN 108037942 B CN108037942 B CN 108037942B CN 201711276837 A CN201711276837 A CN 201711276837A CN 108037942 B CN108037942 B CN 108037942B
- Authority
- CN
- China
- Prior art keywords
- unit
- data
- signal
- storage unit
- arbitration
- 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.)
- Active
Links
Images
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/1446—Point-in-time backing up or restoration of persistent data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a self-adaptive data recovery and update method and a self-adaptive data recovery and update device for an embedded device, which solve the problems that the field data recovery and update mode in the existing self-data recovery and update method for the embedded device is not flexible and simple enough due to manual update and manual disassembly and assembly of the device, and the problems that in backup data recovery and update, the resource utilization is low due to long-term non-use of a backup storage unit, the abnormal probability of the data of the storage unit is improved, and the data recovery and update reliability of the device is reduced.
Description
Technical Field
The invention relates to a self-adaptive data recovery and update method of equipment, in particular to a self-adaptive data recovery and update method of embedded equipment; the invention also relates to a self-adaptive data recovery and updating device of the embedded equipment.
Background
At present, embedded equipment is widely applied to platforms such as satellite-borne, airborne, ship-borne and vehicle-borne platforms and extreme environments, and when a storage unit (such as NAND FLASH, NOR FLASH or NVRAM and the like) in the embedded equipment stores data (such as an embedded system, application software and the like), data recovery is required due to data abnormality caused by inevitable factors; data update is required for reasons such as function expansion or performance improvement. The existing embedded device data recovery and update methods mainly have two types: firstly, recovering and updating field data; second, backup data recovery and update. The method for recovering and updating the field data is that an engineer carries a maintenance tool to update and recover the data, and although the data recovery and update mode is reliable, the embedded equipment needs to be disassembled and assembled on the field, which consumes manpower and material resources and is inconvenient; the backup data recovery and update method is that different partitions or different storage units of a storage unit are used for data backup, when data in the execution storage unit is abnormal, a backup partition or a backup storage unit is activated through a hardware switching means, then the backup partition or the backup storage unit is used as a new execution storage unit or backup data in the backup partition or the backup storage unit is copied to an original execution storage unit, and as the backup partition or the backup storage unit is not frequently accessed, the resource utilization rate is low, and the probability of data abnormality is high.
Disclosure of Invention
The method aims to solve the problems that the existing embedded equipment data recovery and update method needs to carry out disassembly and assembly processing on the embedded equipment on site, consumes manpower and material resources and is inconvenient; the invention provides a self-adaptive data recovery and update method of embedded equipment, and solves the problems that a backup partition or a backup storage unit is not frequently accessed, so that the resource utilization rate is low, and the probability of data abnormity is high. The invention discloses a self-adaptive data recovery and update method of embedded equipment, which is characterized by comprising the following steps:
after the equipment is started, the processing unit generates a storage unit reading signal to the arbitration unit;
after the arbitration unit detects the reading signal generated by the processing unit, the arbitration unit generates a storage data state reading signal to the state response unit;
after the state response unit detects the storage data state reading signal, state information flow is generated to the arbitration unit, and state response is carried out at the same time;
the arbitration unit arbitrates after detecting the state information flow, selects one of the storage unit 1 and the storage unit 2 as an execution storage unit, performs bus switching, establishes channel connection between the processing unit and the storage unit, and sends a reading signal to the execution storage unit;
after the storage unit detects the read signal, a data loading signal is generated;
after the processing unit detects the data loading signal, the data is loaded from the execution storage unit and is processed, and a data execution signal is generated to the arbitration unit in the data processing process;
after detecting the data execution signal, the arbitration unit judges whether the data in the currently executed storage unit is normal according to an arbitration rule, generates an arbitration signal to the state response unit, and simultaneously determines whether to generate a reset signal to the processing unit and selectively switches the bus to another storage unit according to an arbitration result;
the state response unit stores the arbitration result and performs state response after detecting the arbitration signal;
after the processing unit detects the reset signal, the equipment is reset, and then the processing unit loads data in another storage unit;
in the operation process of the equipment, if the communication unit detects an update data stream through the external communication interface, a data update signal is generated and sent to the processing unit;
the processing unit receives the update receipt after detecting the data update signal and generates a write signal of the storage unit to the arbitration unit;
the arbitration unit detects the write signal of the storage unit and then generates an arbitration signal to the state response unit, simultaneously switches the bus to establish the connection between the processing unit and the non-execution storage unit, and generates a write signal to the non-execution storage unit;
the storage unit generates a data writing signal to the processing unit after detecting the writing signal;
the processing unit writes the remote updating data received in the communication unit into the non-execution storage unit after detecting the data writing signal;
the arbitration signal decides which storage unit is used as an execution storage unit, the save value of the arbitration signal is the value in the arbitration signal generated by the arbitration unit in the last equipment operation, the arbitration signal is stored in the state response unit, and after the equipment is started, the processing unit decides a storage unit as an execution storage unit and loads data from the execution storage unit according to the save value;
the invention also provides a rapid self-destruction device for encrypted storage data, which is characterized by comprising the following components: the device comprises a storage unit 1, a storage unit 2, an arbitration unit, a state response unit, a processing unit, a communication unit and an external communication interface;
the storage unit 1 and the storage unit 2 are used for storing various data, and the processing unit establishes connection with one of the units according to the arbitration signal and takes the connection as an execution storage unit;
the arbitration unit is a core unit of the device and is used for arbitrating the storage units and deciding which storage unit is taken as an execution unit, the arbitration unit loads the state information of the storage units in the state response unit and establishes channel connection between the processing unit and the storage units according to arbitration rules;
the state response unit is used for responding to the current state of the whole device and recording the latest state information of the two storage units, before data in the storage units are executed, the arbitration unit loads the state information and decides one storage unit as the current execution storage unit according to a certain rule, and the state response unit is connected with the arbitration unit, receives and records the state information of the two storage units and responds to the state information;
the processing unit is used for processing various data and signals, is connected with the communication unit and the arbitration unit in the device, can determine which storage unit to load the data according to the arbitration signal in a data loading stage, can detect remote data in the communication unit in the software running process, and writes the data into the non-execution storage unit.
The communication unit is mainly used for receiving and processing remote data, is connected with the processing unit and the external communication interface, and can perform processing such as verification, packaging, caching and the like on the data after receiving the remote data and generate a data updating signal to the processing unit.
The external communication interface is usually a remote data communication interface, which is a channel for the communication unit to receive remote update data.
The self-adaptive data recovery and update method and device of the embedded equipment have the advantages that in the aspect of flexibility, due to the introduction of a remote data update mechanism, software data recovery and update of the embedded equipment are separated from manual data recovery and update under most conditions, and the intervention of an arbitration unit enables storage units to be used alternately, so that the utilization rate of resources is greatly improved, the average read-write life of the storage equipment is prolonged, and the problem of data abnormity of the storage units due to long-term non-access is effectively avoided; in the aspect of intelligence, a remote data updating mechanism and an arbitration mechanism of an arbitration unit are matched with each other, so that the equipment can load the latest and most effective data according to the self requirement, and various real-time states are accurately reflected through a state response unit, so that the data of the equipment is restored and updated to achieve the self-adaptive purpose; in the aspect of reliability, the mechanism of the double storage units matched with the arbitration unit can effectively and reliably ensure stable storage and self-recovery of local data, the reliability of local data recovery and updating is greatly improved, in the aspect of remote data updating, the communication unit can check and process the data, and can ensure reliable transmission of the data to a certain extent.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a method and an apparatus for adaptive data recovery and update of an embedded device according to the present invention.
Detailed Description
Fig. 1 is an embodiment of a method and an apparatus for adaptive data recovery and update of an embedded device according to the present invention, including: memory unit 1, memory unit 2, arbitration unit, status response unit, processing unit, communication unit, external communication interface.
The storage unit 1 and the storage unit 2 are used for storing various data, the various data may be a system boot program running in the embedded device, or an embedded system or other application programs, and data header information is stored in a special location and used for recording latest state information of the storage unit, and in the starting process of the whole device, the processing unit and the arbitration unit load the state information and determine a storage unit as the current execution storage unit according to a certain rule. The memory cell is preferably an operable memory chip such as NOR FLASH or NVRAM, and may also be a stable memory chip such as NAND FLASH or EEPROM.
The arbitration unit is a core unit of the device and is used for arbitrating the storage unit and deciding which storage unit is taken as an execution unit, and the arbitration unit loads the state information of the storage unit in the state response unit and establishes channel connection between the processing unit and the storage unit according to an arbitration rule. The arbitration unit can be realized by FPGA or CPLD.
The state response unit is used for responding to the current state of the whole device and recording the latest state information of the two storage units, before data in the storage units are executed, the arbitration unit loads the state information and decides one storage unit as the current execution storage unit according to a certain rule, and the state response unit is connected with the arbitration unit, receives and records the state information of the two storage units and responds to the state information. The state corresponding unit can be realized by the mutual matching of the MCU, the NVRAM, the EEPROM, the LED, the buzzer, the display screen and other devices.
The processing unit is used for processing various data and signals, is connected with the communication unit and the arbitration unit in the device, can determine which storage unit to load the data according to the arbitration signal in a data loading stage, can detect remote data in the communication unit in the software running process, and writes the data into the non-execution storage unit. The processing unit can be realized by one or more of processing chips such as MCU, ARM, PowerPC, FPGA, CPLD and the like which are mutually matched with other external equipment.
The communication unit is used for receiving data transmitted by the external communication interface, carrying out processing such as verification, confirmation, unpacking and the like, generating a data updating signal and transmitting the data updating signal to the processing unit. The communication unit can be implemented by adopting other communication modules such as an ethernet communication module, a GPRS communication module, a CDMA communication module, and an LTE communication module.
The external communication interface is used for detecting and receiving remote data and sending the data to the communication unit. The external communication interface may be implemented by a wireless communication antenna or an ethernet port based on various protocols.
The invention discloses a self-adaptive data recovery and update method of embedded equipment, which is characterized by comprising the following steps:
after the equipment is started, the processing unit generates a storage unit reading signal to the arbitration unit;
the arbitration unit generates a storage data state reading signal to the state response unit after detecting the reading signal generated by the processing unit;
after the state response unit detects the storage data state reading signal, state information flow is generated to the arbitration unit, and state response is carried out at the same time;
the arbitration unit arbitrates after detecting the state information flow, determines an execution storage unit in the storage unit 1 and the storage unit 2, performs bus switching, establishes connection between the processing unit and the storage unit, and sends a read signal to the execution storage unit;
after the storage unit detects the read signal, a data loading signal is generated;
after the processing unit detects the data loading signal, the data is loaded from the execution storage unit and is processed, and a data execution signal is generated to the arbitration unit in the data processing process;
after detecting the data execution signal, the arbitration unit judges whether the data in the currently executed storage unit is normal according to an arbitration rule, generates an arbitration signal to the state response unit, and simultaneously determines whether to generate a reset signal to the processing unit and selectively switches the bus to another storage unit according to an arbitration result;
the state response unit stores the arbitration result and performs state response after detecting the arbitration signal;
after the processing unit detects the reset signal, the equipment is reset, and then the processing unit loads data in another storage unit;
in the operation process of the equipment, if the communication unit detects an update data stream through the external communication interface, a data update signal is generated and sent to the processing unit;
the processing unit receives the update receipt after detecting the data update signal and generates a write signal of the storage unit to the arbitration unit;
the arbitration unit detects the write signal of the storage unit and then generates an arbitration signal to the state response unit, switches the connection between the general establishment processing unit and the non-execution storage unit and generates a write signal to the non-execution storage unit;
the storage unit generates a data writing signal to the processing unit after detecting the writing signal;
the processing unit writes the remote update data received in the communication unit into the non-execution storage unit after detecting the data write signal.
Claims (7)
1. An adaptive data recovery and update apparatus for an embedded device, comprising: the device comprises a storage unit 1, a storage unit 2, an arbitration unit, a state response unit, a processing unit, a communication unit and an external communication interface;
the storage unit 1 and the storage unit 2 are used for storing various data;
the processing unit is used for generating a storage unit reading signal to the arbitration unit;
the arbitration unit is used for detecting the read signal generated by the processing unit and generating a stored data state read signal to the state response unit;
the state response unit is used for detecting the stored data state reading signal, generating a state information stream to the arbitration unit and simultaneously carrying out state response; the performing a status response includes: the state response unit records the latest state information of the two storage units;
the arbitration unit arbitrates after detecting the state information flow, determines an execution storage unit in the storage unit 1 and the storage unit 2, performs bus switching, establishes connection between the processing unit and the storage unit, and sends a read signal to the execution storage unit;
after the storage unit detects the read signal, a data loading signal is generated;
after the processing unit detects the data loading signal, the data is loaded from the execution storage unit and is processed, and a data execution signal is generated to the arbitration unit in the data processing process;
after detecting the data execution signal, the arbitration unit judges whether the data in the currently executed storage unit is normal according to an arbitration rule, generates an arbitration signal to the state response unit, and simultaneously determines whether to generate a reset signal to the processing unit and selectively switches the bus to another storage unit according to an arbitration result;
the state response unit stores the arbitration result and performs state response after detecting the arbitration signal;
after the processing unit detects the reset signal, the equipment is reset, and then the processing unit loads data in another storage unit;
in the operation process of the equipment, if the communication unit detects an update data stream through the external communication interface, a data update signal is generated and sent to the processing unit;
the processing unit receives the updated data after detecting the data updating signal and generates a storage unit write signal to the arbitration unit;
the arbitration unit detects the write signal of the storage unit and then generates an arbitration signal to the state response unit, simultaneously switches the bus to establish the connection between the processing unit and the non-execution storage unit, and generates a write signal to the non-execution storage unit;
the non-execution storage unit generates a data writing signal to the processing unit after detecting the writing signal;
the processing unit writes the remote update data received in the communication unit into the non-execution storage unit after detecting the data write signal.
2. The apparatus of claim 1, wherein: the state response unit is realized by the cooperation of the MCU and the NVRAM, the EEPROM, the LED, the buzzer or the display screen.
3. The apparatus of claim 1, wherein: the memory unit comprises NOR FLASH or NVRAM or NAND FLASH or EEPROM.
4. The apparatus of claim 1, wherein: the arbitration unit comprises an FPGA or a CPLD.
5. The apparatus of claim 1, wherein: the processing unit is connected with other external equipment by adopting one or more of MCU, ARM, PowerPC, FPGA and CPLD.
6. The device of claim 1, wherein the communication unit is an Ethernet communication module, a GPRS communication module, a CDMA communication module, or an LTE communication module.
7. A self-adaptive data recovery and update method of an embedded device is characterized by comprising the following steps:
after the equipment is started, the processing unit generates a storage unit reading signal to the arbitration unit;
after the arbitration unit detects the reading signal generated by the processing unit, the arbitration unit generates a storage data state reading signal to the state response unit;
after the state response unit detects the storage data state reading signal, state information flow is generated to the arbitration unit, and state response is carried out at the same time; the performing a status response includes: the state response unit records the latest state information of the two storage units;
the arbitration unit arbitrates after detecting the state information flow, determines an execution storage unit in the storage unit 1 and the storage unit 2, performs bus switching, establishes connection between the processing unit and the storage unit, and sends a read signal to the execution storage unit;
after the storage unit detects the read signal, a data loading signal is generated;
after the processing unit detects the data loading signal, the data is loaded from the execution storage unit and is processed, and a data execution signal is generated to the arbitration unit in the data processing process;
after detecting the data execution signal, the arbitration unit judges whether the data in the currently executed storage unit is normal according to an arbitration rule, generates an arbitration signal to the state response unit, and simultaneously determines whether to generate a reset signal to the processing unit and selectively switches the bus to another storage unit according to an arbitration result;
the state response unit stores the arbitration result and performs state response after detecting the arbitration signal;
after the processing unit detects the reset signal, the equipment is reset, and then the processing unit loads data in another storage unit;
in the operation process of the equipment, if the communication unit detects an update data stream through the external communication interface, a data update signal is generated and sent to the processing unit;
the processing unit receives the updated data after detecting the data updating signal and generates a storage unit write signal to the arbitration unit;
the arbitration unit detects the write signal of the storage unit and then generates an arbitration signal to the state response unit, simultaneously switches the bus to establish the connection between the processing unit and the non-execution storage unit, and generates a write signal to the non-execution storage unit;
the non-execution storage unit generates a data writing signal to the processing unit after detecting the writing signal;
the processing unit writes the remote update data received in the communication unit into the non-execution storage unit after detecting the data write signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711276837.9A CN108037942B (en) | 2017-12-06 | 2017-12-06 | Adaptive data recovery and update method and device for embedded equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711276837.9A CN108037942B (en) | 2017-12-06 | 2017-12-06 | Adaptive data recovery and update method and device for embedded equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108037942A CN108037942A (en) | 2018-05-15 |
CN108037942B true CN108037942B (en) | 2021-04-09 |
Family
ID=62095516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711276837.9A Active CN108037942B (en) | 2017-12-06 | 2017-12-06 | Adaptive data recovery and update method and device for embedded equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108037942B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110031054A (en) * | 2019-03-27 | 2019-07-19 | 上海飞奥燃气设备有限公司 | Gas meter, flow meter intelligent controller and its firmware upgrade start method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1831770A (en) * | 2005-03-08 | 2006-09-13 | 杭州华为三康技术有限公司 | Method and system for on-line updating of network |
US7228538B1 (en) * | 2000-05-02 | 2007-06-05 | International Business Machines Corporation | Method, system, and program for updating firmware to a storage system comprised of multiple controllers |
CN102567135A (en) * | 2010-12-13 | 2012-07-11 | 联想(北京)有限公司 | Refreshing/recovering method and electronic equipment |
CN105426275A (en) * | 2015-10-30 | 2016-03-23 | 成都华为技术有限公司 | Disaster recovery method and apparatus in dual-activation cluster system |
CN105824666A (en) * | 2016-03-14 | 2016-08-03 | 美的集团股份有限公司 | Data recovery device and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9703619B2 (en) * | 2014-05-28 | 2017-07-11 | International Business Machines Corporation | Determining an availability score based on available resources of different resource types in a storage system to determine whether to perform a failure operation for the storage system |
-
2017
- 2017-12-06 CN CN201711276837.9A patent/CN108037942B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7228538B1 (en) * | 2000-05-02 | 2007-06-05 | International Business Machines Corporation | Method, system, and program for updating firmware to a storage system comprised of multiple controllers |
CN1831770A (en) * | 2005-03-08 | 2006-09-13 | 杭州华为三康技术有限公司 | Method and system for on-line updating of network |
CN102567135A (en) * | 2010-12-13 | 2012-07-11 | 联想(北京)有限公司 | Refreshing/recovering method and electronic equipment |
CN105426275A (en) * | 2015-10-30 | 2016-03-23 | 成都华为技术有限公司 | Disaster recovery method and apparatus in dual-activation cluster system |
CN105824666A (en) * | 2016-03-14 | 2016-08-03 | 美的集团股份有限公司 | Data recovery device and method |
Also Published As
Publication number | Publication date |
---|---|
CN108037942A (en) | 2018-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8468389B2 (en) | Firmware recovery system and method of baseboard management controller of computing device | |
CN111258493B (en) | Controller, memory device, and method of operating controller | |
US9442793B2 (en) | Robust hardware/software error recovery system | |
CN110704228B (en) | Solid state disk exception handling method and system | |
WO2022213641A1 (en) | Method and apparatus for process succession, electronic device and storage medium | |
US10274919B2 (en) | Method, device and computer program product for programming a plurality of control units | |
CN112825011A (en) | Power-on and power-off control method and system of PCIe device | |
CN110457149B (en) | SRAM type FPGA reliable loading and error-proofing design method based on PowerPC control | |
JP2006259869A (en) | Multiprocessor system | |
CN108037942B (en) | Adaptive data recovery and update method and device for embedded equipment | |
US7062677B1 (en) | Method for capturing core dump of a service module | |
CN113259273B (en) | Switch control method, switch, computer device, and storage medium | |
CN110825547B (en) | PCIE card exception recovery device and method based on SMBUS | |
CN210721440U (en) | PCIE card abnormity recovery device, PCIE card and PCIE expansion system | |
CN104484260A (en) | Simulation monitoring circuit based on GJB289 bus interface SoC (system on a chip) | |
CN116300780B (en) | Component configuration method, device, electronic equipment and storage medium | |
CN113535441A (en) | Embedded system fault diagnosis device and method | |
CN112445508B (en) | ARM application program online upgrading method based on CAN bus | |
CN115422099A (en) | Communication information sending method and device, electronic equipment and storage medium | |
CN100357905C (en) | Detection method for failure of address bus | |
CN114398107B (en) | Design method for loading DSP program in cross-domain multi-mode and general platform | |
CN114978891B (en) | Processing method, device and storage medium for BIOS configuration of network device | |
CN113330411B (en) | Storage controller and data relocation monitoring method | |
CN115437889B (en) | Emergency processing method, system and computing equipment | |
US20240095125A1 (en) | Handling Data Storage Device Failure Using Remote System |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 610000 No.1, Ziheng street, waixi Chadian, Jinniu District, Chengdu, Sichuan Province Applicant after: CETC Rongwei Electronic Technology Co.,Ltd. Address before: 610000 No.1, Ziheng street, waixi Chadian, Jinniu District, Chengdu, Sichuan Province Applicant before: CHENGDU RONGWEI ELECTRONIC TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |