CN108037942A - A kind of self-adapting data of embedded device recovers and update method and device - Google Patents

A kind of self-adapting data of embedded device recovers and update method and device Download PDF

Info

Publication number
CN108037942A
CN108037942A CN201711276837.9A CN201711276837A CN108037942A CN 108037942 A CN108037942 A CN 108037942A CN 201711276837 A CN201711276837 A CN 201711276837A CN 108037942 A CN108037942 A CN 108037942A
Authority
CN
China
Prior art keywords
unit
data
storage unit
arbitration
signal
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.)
Granted
Application number
CN201711276837.9A
Other languages
Chinese (zh)
Other versions
CN108037942B (en
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.)
Chengdu Rong Wei Electronic Technology Co Ltd
Original Assignee
Chengdu Rong Wei Electronic 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 Chengdu Rong Wei Electronic Technology Co Ltd filed Critical Chengdu Rong Wei Electronic Technology Co Ltd
Priority to CN201711276837.9A priority Critical patent/CN108037942B/en
Publication of CN108037942A publication Critical patent/CN108037942A/en
Application granted granted Critical
Publication of CN108037942B publication Critical patent/CN108037942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

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

A kind of self-adapting data the invention discloses embedded device recovers and update method and device, solve the problems, such as that the underaction that self data recovery of existing embedded device and field data present in update method are recovered to bring by artificial renewal and artificial disassemblerassembler with update mode is easy, and backup formula data recovery with renewal because redundant memory cell is not used for a long time and caused by the utilization of resources is low and raising memory cell data exception probability reduction device data recovery and the problem of update reliability.

Description

A kind of self-adapting data of embedded device recovers and update method and device
Technical field
A kind of self-adapting data the present invention relates to equipment recovers and update method, more particularly to a kind of embedded device Self-adapting data recovers and update method;A kind of self-adapting data the invention further relates to embedded device recovers and more new clothes Put.
Background technology
Embedded device extensive use in the platform such as spaceborne, airborne, carrier-borne, vehicle-mounted and extreme environment at present, it is embedded (such as embedded system, answer storage unit (such as NAND FLASH, NOR FLASH or NVRAM) storage data in formula equipment With software when) when, because inevitable factor causes data exception to need data recovery;Because of Function Extension or performance boost etc. Reason needs data update.Existing embedded device data recovery mainly has two classes with update method:First, field data is extensive Multiple and renewal;Second, backup formula data recovery and renewal.It is that engineer carries maintenance workers that field data, which is recovered with the method for renewal, Tool carries out the renewal and recovery of data, although this data recovery is reliable with update mode, needs to set to embedded at the scene It is standby to carry out dismounting processing, spend human and material resources and inconvenient;Backup formula data recovery and the method for renewal are to utilize storage unit Different subregions or different storage units carry out data backup, when performing the data exception in storage unit, by hard Part switch means activate backup subregion or redundant memory cell, then using backup subregion or redundant memory cell as new execution Storage unit copies the Backup Data in backup subregion or redundant memory cell in former execution storage unit to, due to standby Part subregion or redundant memory cell are seldom accessed so that resource utilization is low, and it is big that abnormal probability occur in data.
The content of the invention
In order to solve to be needed at the scene to embedded present in the data recovery of existing embedded device and update method Equipment carries out dismounting processing, spends human and material resources and inconvenient;Backup subregion or redundant memory cell are seldom accessed so that money Source utilization rate is low, and the problem of abnormal probability is big occur in data, and the present invention provides a kind of self-adapting data of embedded device Recovery and update method.A kind of self-adapting data of embedded device of the present invention recovers and update method, it is characterised in that bag Include following steps:
After equipment starts, the storage unit that processing unit produces reads signal to arbitration unit;
After arbitration unit detects the reading signal produced by processing unit, produce storing data state and read signal to shape State response unit;
After condition responsive unit detects that storing data state reads signal, status information stream is produced to arbitration unit, and It is carried out at the same time condition responsive;
Arbitration unit is arbitrated after detecting status information stream, one work of selection in storage unit 1 and storage unit 2 To perform storage unit, row bus of going forward side by side switching, establishes the passage connection between processing unit and storage unit, and sends read signal Give execution storage unit;
After storage unit detects read signal, data load signal is produced;
After processing unit detects data load signal, load data from execution storage unit and carry out data processing, Data are produced during data processing and perform signal to arbitration unit;
After arbitration unit detects that data perform signal, the current data performed in storage unit are judged according to arbitration rules It is whether normal, and produce arbitrating signals and give condition responsive unit, at the same according to arbitration result decide whether to produce reset signal to Processing unit and bus selection is switched to another storage unit;
Condition responsive unit detects that arbitration result can be carried out storage after arbitrating signals is carried out at the same time condition responsive;
After processing unit detects reset signal, equipment can reset, and then processing unit can load another storage unit In data;
In equipment running process, if communication unit detects update data stream by external communication interface, number can be produced According to more new signal to processing unit;
Processing unit can receive renewal receipt after detecting data update signal, and produce storage unit write signal to arbitration Unit;
Arbitration unit detects that arbitrating signals can be produced after storage unit write signal gives condition responsive unit, while switches total Line establishes the connection of processing unit and non-executing storage unit, and produces write signal and give non-executing storage unit;
Storage unit produces data write signal to processing unit after detecting write signal;
Processing unit detects long-range updates the data write-in non-executing after data write signal by what is received in communication unit Storage unit;
The arbitrating signals determine to set for the last time using which storage unit as storage unit, its value of saving is performed Value in the arbitrating signals that arbitration unit produces in received shipment row, is stored in condition responsive unit, and after equipment startup, processing is single Member can first determine a storage unit as execution storage unit according to this value of saving and therefrom load data;
Present invention also offers a kind of quick self-destruction device of encrypted stored data, it is characterised in that including:Storage unit 1st, storage unit 2, arbitration unit, condition responsive unit, processing unit, communication unit, external communication interface;
The storage unit 1 and storage unit 2 are used for the storage of various data, processing unit can according to arbitrating signals with One of unit establishes connection, and as execution storage unit;
The arbitration unit is the core cell of the present apparatus, for arbitrating storage unit and determining which storage is single Member is used as execution unit, and arbitration unit understands the state of memory cells information in stress state response unit, and according to arbitration rules Establish the passage connection between processing unit and storage unit;
The condition responsive unit is used to respond the current state of whole device and to have recorded two storage units newest Status information, before data are performed in the memory unit, arbitration unit can load these status informations, and according to certain rule come Determine execution storage unit of the storage unit as this, condition responsive unit is connected with arbitration unit, receives and record The status information of the two units simultaneously responds thereto;
The processing unit be used for handle various data and signal, in the present apparatus with communication unit and arbitration unit phase Connection, in data loading phase, processing unit can determine to load the data in which storage unit according to arbitrating signals, soft In part operational process, the teledata in communication unit can be detected, and writes data into non-executing storage unit.
The communication unit is mainly used for receiving with handling teledata, with processing unit and external communication interface phase Even, after teledata is received, data can be verified, the processing such as package and caching, while data update can be produced Signal is to processing unit.
The external communication interface is typically a kind of remote data communication interface, is that communication unit receives long-range renewal number According to passage.
A kind of self-adapting data of embedded device of the present invention recovers to have with update method and device following beneficial to effect Fruit, in terms of flexibility, due to introducing remote data update mechanism so that the software data data recovery of embedded device with Renewal recovers departing from artificial data and updates, the intervention of arbitration unit in most cases so that storage unit can be with Use is alternateed, substantially increases the utilization rate of resource so that the average read-write service life of storage device improves, and effectively keeps away Exempt from storage unit and the problem of data exception occur because not accessed for a long time;In intelligent aspect, remote data update mechanism Cooperate with arbitration unit arbitration mechanism so that equipment can load newest most effective data according to their needs, and lead to Cross condition responsive unit accurately to reflect various real-time status, the data recovery of equipment and renewal is reached adaptive Purpose;In terms of reliability, the mechanism that double memory cell coordinates arbitration unit effectively and reliably can ensure that local data is steady Fixed storage and self-recovery, substantially increase local data data recovery and the reliability of renewal, remote data update aspect, leads to Believe that unit can carry out checking treatment to data in itself, can ensure the reliable transmission of data to a certain extent, more be worth mentioning , occur error in data during remote transmission, it is abnormal data to cause the data in a storage unit, still The valid data in another storage unit can be performed, with ensure equipment still can normal operation, in the process of running, processing Unit can receive newest data deposit storage unit again according to arbitrating signals, carry out according to this, until data transmission is correct.
Brief description of the drawings
Fig. 1 is that a kind of self-adapting data of embedded device of the present invention recovers to illustrate with the implementation of update method and device It is intended to.
Embodiment
Fig. 1 is self-adapting data recovery and update method and the embodiment of device, the bag of a kind of embedded device of the present invention Include:Storage unit 1, storage unit 2, arbitration unit, condition responsive unit, processing unit, communication unit, external communication interface.
The storage unit 1 and storage unit 2 are used for the storage of various data, and various data can be embedded device The system bootstrap routine or embedded system or other application program of middle operation, and store number in specific position According to header, for the newest status information of record storage unit, in the start-up course of whole equipment, processing unit and arbitration Unit can load these status informations, and determine that a storage unit stores list as this execution according to certain rule Member.The storage unit is preferably the storage chip that NOR FLASH or NVRAM etc. can be run, or NAND The stable storage chip such as FLASH or EEPROM.
The arbitration unit is the core cell of the present apparatus, for arbitrating storage unit and determining which storage is single Member is used as execution unit, and arbitration unit understands the state of memory cells information in stress state response unit, and according to arbitration rules Establish the passage connection between processing unit and storage unit.The arbitration unit can be realized by FPGA or CPLD.
The condition responsive unit is used to respond the current state of whole device and to have recorded two storage units newest Status information, before data are performed in the memory unit, arbitration unit can load these status informations, and according to certain rule come Determine execution storage unit of the storage unit as this, condition responsive unit is connected with arbitration unit, receives and record The status information of the two units simultaneously responds thereto.The state corresponding units can by MCU and NVRAM, The mutual cooperation of the devices such as EEPROM and LED, buzzer or display screen is realized.
The processing unit be used for handle various data and signal, in the present apparatus with communication unit and arbitration unit phase Connection, in data loading phase, processing unit can determine to load the data in which storage unit according to arbitrating signals, soft In part operational process, the teledata in communication unit can be detected, and writes data into non-executing storage unit.The place Manage unit can use inside the process chip such as MCU, ARM, PowerPC, FPGA, CPLD it is one or several kinds of with it is other external Equipment cooperates to realize.
The communication unit is used to receive the data that external communication interface transmits, and carries out verification confirmation and tear open The processing such as bag, then produces data update signal and is sent to processing unit.The communication unit can use ethernet communication Other communication modules such as module, GPRS communication modules, cdma communication module and LTE communication module are realized.
External communication interface is used to detect and receive teledata, and sends the data to communication unit.The outside Communication interface can be realized by the radio antenna based on various agreements or Ethernet interface etc..
A kind of self-adapting data of embedded device of the present invention recovers and update method, it is characterised in that including as follows Step:
After equipment starts, the storage unit that processing unit produces reads signal to arbitration unit;
After arbitration unit detects the reading signal by processing unit production, produce storing data state and read signal to shape State response unit;
After condition responsive unit detects that storing data state reads signal, status information stream is produced to arbitration unit, and It is carried out at the same time condition responsive;
Arbitration unit is arbitrated after detecting status information stream, in storage unit 1 with determining that one is held in storage unit 2 Line storage unit, row bus of going forward side by side switching, establishes the connection between processing unit and storage unit, and send read signal and deposited to execution Storage unit;
After storage unit detects read signal, data load signal is produced;
After processing unit detects data load signal, load data from execution storage unit and carry out data processing, Data are produced during data processing and perform signal to arbitration unit;
After arbitration unit detects that data perform signal, the current data performed in storage unit are judged according to arbitration rules It is whether normal, and produce arbitrating signals and give condition responsive unit, while generation reset signal is decided whether to according to arbitration result Another storage unit is switched to processing unit and by bus selection;
Condition responsive unit detects that arbitration result can be carried out storage after arbitrating signals is carried out at the same time condition responsive;
After processing unit detects reset signal, equipment can reset, and then processing unit can load another storage unit In data;
In equipment running process, if communication unit detects update data stream by external communication interface, number can be produced According to more new signal to processing unit;
Processing unit can receive renewal receipt after detecting data update signal, and produce storage unit write signal to arbitration Unit;
Arbitration unit detects that arbitrating signals can be produced after storage unit write signal gives condition responsive unit, while switches total The connection of processing unit and non-executing storage unit is established, and produces write signal and gives non-executing storage unit;
Storage unit produces data write signal to processing unit after detecting write signal;
Processing unit detects long-range updates the data write-in non-executing after data write signal by what is received in communication unit Storage unit.

Claims (7)

1. a kind of self-adapting data of embedded device recovers and updating device, it is characterised in that including:Storage unit 1, storage Unit 2, arbitration unit, condition responsive unit, processing unit, communication unit, external communication interface;
The storage unit 1 and storage unit 2 are used for the storage of various data, processing unit can according to arbitrating signals with wherein One unit establishes connection, and as execution storage unit;
The arbitration unit is used to arbitrate storage unit and determines one of storage unit is single as execution unit, arbitration State of memory cells information in member meeting stress state response unit, and establish processing unit and storage unit according to arbitration rules Between passage connection;
The condition responsive unit is used to respond the current state of whole device and have recorded two newest states of storage unit Information, before data are performed in the memory unit, arbitration unit can load these status informations, and be determined according to certain rule One storage unit is connected as this execution storage unit, condition responsive unit with arbitration unit, receive and record this two The status information of a unit simultaneously responds thereto;
The processing unit is used to handle various data and signal, is connected in the present apparatus with communication unit and arbitration unit Connect, in data loading phase, processing unit can determine to load the data in which storage unit according to arbitrating signals, in software In operational process, the teledata in communication unit can be detected, and writes data into non-executing storage unit.
The communication unit is used to receiving and handling teledata, is connected with processing unit and external communication interface, works as reception To after teledata, data can be verified, the processing such as package and caching, while data update signal can be produced to processing Unit.
The external communication interface is typically a kind of remote data communication interface, is that communication unit reception remotely updates the data Passage.
2. device according to claim 1, it is characterised in that:The state corresponding units can by MCU with The mutual cooperation of the device such as NVRAM, EEPROM and LED, buzzer or display screen is realized.
3. device according to claim 1, it is characterised in that:The storage unit includes NOR FLASH or NVRAM Etc. the storage chip that can be run, or the stable storage chip such as NAND FLASH or EEPROM.
4. device according to claim 1, it is characterised in that:The arbitration unit includes passing through FPGA or CPLD.
5. device according to claim 1, it is characterised in that:The processing unit can use MCU, ARM, It is one or several kinds of mutual with other external equipments inside the process chips such as PowerPC, FPGA, CPLD.
6. device according to claim 1, it is characterised in that:The communication unit can use ethernet communication mould Other communication modules such as block, GPRS communication modules, cdma communication module and LTE communication module are realized.
7. a kind of self-adapting data of embedded device recovers and update method, it is characterised in that includes the following steps:
After equipment starts, the storage unit that processing unit produces reads signal to arbitration unit;
After arbitration unit detects the reading signal by processing unit production, produce storing data state reading signal and rung to state Answer unit;
After condition responsive unit detects that storing data state reads signal, status information stream is produced to arbitration unit, and at the same time Carry out condition responsive;
Arbitration unit is arbitrated after detecting status information stream, in storage unit 1 with determining that an execution is deposited in storage unit 2 Storage unit, row bus of going forward side by side switching, establishes the connection between processing unit and storage unit, and it is single to storage is performed to send read signal Member;
After storage unit detects read signal, data load signal is produced;
After processing unit detects data load signal, from performing loading data in storage unit and carrying out data processing, in number Data are produced during according to processing and perform signal to arbitration unit;
After arbitration unit detects that data perform signal, whether the current data performed in storage unit are judged according to arbitration rules Normally, and arbitrating signals are produced give condition responsive unit, while decide whether to produce reset signal to place according to arbitration result Manage unit and bus selection is switched to another storage unit;
Condition responsive unit detects that arbitration result can be carried out storage after arbitrating signals is carried out at the same time condition responsive;
After processing unit detects reset signal, equipment can reset, and then processing unit can be loaded in another storage unit Data;
In equipment running process, if communication unit detects update data stream by external communication interface, data can be produced more New signal is to processing unit;
Processing unit can receive renewal receipt after detecting data update signal, and it is single to arbitration to produce storage unit write signal Member;
Arbitration unit detects that arbitrating signals can be produced after storage unit write signal gives condition responsive unit, while switches total establish Processing unit and the connection of non-executing storage unit, and produce write signal and give non-executing storage unit;
Storage unit produces data write signal to processing unit after detecting write signal;
Processing unit stores the long-range write-in non-executing that updates the data received in communication unit after detecting data write signal Unit.
CN201711276837.9A 2017-12-06 2017-12-06 Adaptive data recovery and update method and device for embedded equipment Active CN108037942B (en)

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 true CN108037942A (en) 2018-05-15
CN108037942B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
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 (6)

* Cited by examiner, † Cited by third party
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
US20150347252A1 (en) * 2014-05-28 2015-12-03 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
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
US20150347252A1 (en) * 2014-05-28 2015-12-03 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
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

Cited By (2)

* Cited by examiner, † Cited by third party
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
WO2020192669A1 (en) * 2019-03-27 2020-10-01 上海飞奥燃气设备有限公司 Gas meter intelligent controller and firmware upgrade start-up method therefor

Also Published As

Publication number Publication date
CN108037942B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN103201724B (en) Providing application high availability in highly-available virtual machine environments
CN109408328A (en) A kind of monitoring method, device and the equipment of hard disk health status
CN106547574A (en) The outside download system and method for a kind of DSP programs and FPGA programs
JP2006259869A (en) Multiprocessor system
CN101976217A (en) Anomaly detection method and system for network processing unit
CN100583782C (en) Software upgrade method and device
CN101876910A (en) Double-controller disk memory array, firmware upgrading method and controller thereof
KR101770949B1 (en) Robust hardware/software error recovery system
CN102236569A (en) Embedded system and starting method thereof
CN109358893A (en) A kind of the online upgrading method, apparatus and system of FPGA program
CN110704228B (en) Solid state disk exception handling method and system
CN109144789A (en) A kind of method, apparatus and system for restarting OSD
CN110738755A (en) Vehicle-mounted terminal data transmission method, system, mobile terminal and storage medium
CN103809502A (en) Controller and program
CN108037942A (en) A kind of self-adapting data of embedded device recovers and update method and device
US7062677B1 (en) Method for capturing core dump of a service module
CN210721440U (en) PCIE card abnormity recovery device, PCIE card and PCIE expansion system
CN110825547B (en) PCIE card exception recovery device and method based on SMBUS
CN110532124A (en) Memory partition method and device
CN107885626A (en) The system of on-chip system programming device starts the device and method of Autonomous test
CN104158843A (en) Storage unit invalidation detecting method and device for distributed file storage system
CN109684133A (en) A kind of computer corruption state is restarted automatically method
CN109634796A (en) A kind of method for diagnosing faults of computer, apparatus and system
CN101369238A (en) Exception monitoring and reset processing method for USB equipment
CN1963768A (en) Processing method for interruption and apparatus thereof

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant