CN1940887A - Method and apparatus for master-controlled applied programm of self-repairing built-in equipment - Google Patents

Method and apparatus for master-controlled applied programm of self-repairing built-in equipment Download PDF

Info

Publication number
CN1940887A
CN1940887A CN 200510113343 CN200510113343A CN1940887A CN 1940887 A CN1940887 A CN 1940887A CN 200510113343 CN200510113343 CN 200510113343 CN 200510113343 A CN200510113343 A CN 200510113343A CN 1940887 A CN1940887 A CN 1940887A
Authority
CN
China
Prior art keywords
application program
controlling application
equipment
user
repair procedure
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
CN 200510113343
Other languages
Chinese (zh)
Other versions
CN100410893C (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB200510113343XA priority Critical patent/CN100410893C/en
Publication of CN1940887A publication Critical patent/CN1940887A/en
Application granted granted Critical
Publication of CN100410893C publication Critical patent/CN100410893C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A method for repairing master control application program of embedded device by itself includes judging whether specific hardware input from user is existed or not and starting up repairing course if it is, fetching code back up of master control application program in special storage region not being able to call by repairing course and copying it into storage region of master control application program as well as shielding damaged storage portion in storage region of master control application program after said repairing course is started up.

Description

The method and apparatus of the controlling application program of self-repairing built-in equipment
Technical field
The present invention relates to a kind of method and apparatus of controlling application program of self-repairing built-in equipment, the application program that can utilize the prosthetic device of the controlling application program storage area that is totally independent of embedded device to repair the controlling application program storage area.
Background technology
Present EMBEDDED AVIONICS covering scope is extensive, comprises consumer-elcetronics devices, industrial electrical equipment, network and communication facilities or the like.This kind equipment substantially all adopts independently embedded computer system scheme at present, and the software of being write by the deviser carries out independent control.In embedded system, software is often combined closely with hardware, can be described as firmware.At present embedded system is used for program code stored memory device and adopts the non-volatile memory chip more, for example FLASH chip (flash memory).Certainly, also program code partly or entirely can be stored on the medium of other types, for example hard disk or CD.
In this equipment, if abnormal failure causes the partial code in the firmware to be mistakenly rewritten as the program run fault; Perhaps storage chip generation hardware fault, then system will be absorbed in collapse, can't continue operation and uses.Be used as at present the FLASH chip of storage chip in a large number, have big probability block to occur and damage,, will cause system's operation to be broken down if this damage occurs in the controlling application program memory block.Storage medium such as hard disk, CD similar fault may occur equally.
In the consumer-elcetronics devices product, the method that addresses this is that at present provides the reparation software based on PC, comes the firmware of prosthetic appliance by USB interface.This method uses the comparison inconvenience, and needs the user to know quite well the operation of repairing software.
At consumer-elcetronics devices, in mobile phone, digital entertainment product, the user may use product in various environment.If because the reason system of software or hardware breaks down, can't operate as normal, the user can't in time be connected on the PC probably, and carries out system's reparation by specific purpose tool software.
Therefore, need provide a kind of method and apparatus of controlling application program of self-repairing built-in equipment to solve above-mentioned defective.
Summary of the invention
The method and apparatus that the purpose of this invention is to provide a kind of controlling application program of self-repairing built-in equipment, can store repair procedure by the dedicated memory of user's inaccessible, whole operations of this repair procedure are totally independent of the controlling application program of embedded device, and when controlling application program software and part hardware break down, can utilize this repair procedure appropriate section of repair system (for example, controlling application program) quickly and easily.In addition, based on the solution of the present invention, the user can be at any time by special method of operating (as the combination of the special key on the embedded device), perhaps when detecting the sign that loads the primary control program failure, start repair procedure and recover automatically, more convenient quick.
According to the present invention, a kind of method of controlling application program of self-repairing built-in equipment has been proposed, may further comprise the steps: judge whether to exist specific hardware input, and whether detect the controlling application program loading successful from the user; There is under the situation of specific hardware input or when described embedded device can't the normal load application program startup repair procedure; After starting described repair procedure, described repair procedure reads the controlling application program backup code in the dedicated memory of user's inaccessible and overrides the memory block of controlling application program, and the storage area that is damaged in the shielding controlling application program memory block.
Preferably, under the situation that does not have the specific hardware input, the controlling application program in the startup controlling application program memory block is with the operation embedded device.
Preferably, described specific hardware input is any button or the button combination on the embedded device.
Preferably, the controlling application program backup code in the dedicated memory of user's inaccessible changes the execution renewal according to hardware and zone bit.
According to the present invention, a kind of equipment of controlling application program of self-repairing built-in equipment has also been proposed, comprising: the controlling application program memory storage is used to store the controlling application program of the operation that is used to carry out embedded device; Start calling device, judge whether to exist specific hardware input, and whether detect the controlling application program loading successful from the user; Exist under the situation of specific hardware input, perhaps when described embedded device can't the normal load application program, the repair procedure of being stored in the startup prosthetic device; Otherwise, start the controlling application program of being stored in the controlling application program memory storage; And prosthetic device, be used to store controlling application program backup code and repair procedure, and when described startup calling device starts the repair procedure of being stored in the described prosthetic device, described repair procedure reads the controlling application program backup code in the dedicated memory of user's inaccessible and overrides on the controlling application program memory storage, and the storage area that is damaged in the shielding controlling application program memory block.
Description of drawings
Below in conjunction with the detailed description of preferred embodiment of accompanying drawing to being adopted, above-mentioned purpose of the present invention, advantage and feature will become apparent by reference, wherein:
Fig. 1 shows the functional-block diagram according to the equipment of the controlling application program of the self-repairing built-in equipment of the embodiment of the invention;
Fig. 2 shows the process flow diagram according to the repair function activation of the method for the controlling application program of the self-repairing built-in equipment of the embodiment of the invention; And
Fig. 3 shows the process flow diagram according to the repair process of the method for the controlling application program of the self-repairing built-in equipment of the embodiment of the invention.
Embodiment
Fig. 1 shows the functional-block diagram according to the equipment of the controlling application program of the self-repairing built-in equipment of the embodiment of the invention.
As shown in Figure 1, the equipment according to the controlling application program of the self-repairing built-in equipment of the embodiment of the invention comprises: controlling application program memory storage 10, start dispatching device 20 and prosthetic device 30.
Starting dispatching device 20 is the ROM and the microprocessor (central processing unit of program storage, not shown in the drawings) power on and reset inlet, comprise following two kinds of functions: read the input information of specific hardware and detect primary control program loading failure flags position, for example the digital level value of specific pin (0 or 1); And judge that according to the value that reads entering controlling application program memory storage 10 still enters prosthetic device 30.
Controlling application program memory storage 10 storage is used to realize the controlling application program code of whole application functions of embedded device.It should be noted that controlling application program is all application programs of the feature operation of control embedded device.Under normal circumstances, when entering this controlling application program memory storage 10 under the guiding that is starting dispatching device 20, microprocessor is carried out the controlling application program code that this controlling application program memory storage 10 is stored, to realize required function.
Prosthetic device 30 has been stored controlling application program backup file and repair procedure, when breaking down, under the specific hardware input, starts dispatching device 20 and is directed into this prosthetic device 30.At this moment, the repair procedure of prosthetic device 30 writes controlling application program memory storage 10 with the controlling application program backup file of being stored, cover the storage area that controlling application program memory storage 10 original controlling application programs and shielding are damaged, to realize reparation voluntarily to embedded device.
Apparent to those skilled in the art, above-described controlling application program memory storage 10, startup dispatching device 20, prosthetic device 30 can be realized with the form of software, hardware or its combination.
Below in conjunction with Fig. 2 and Fig. 3 the method according to the controlling application program of the self-repairing built-in equipment of the embodiment of the invention is described.
Fig. 2 shows the process flow diagram according to the repair function activation of the method for the controlling application program of the self-repairing built-in equipment of the embodiment of the invention.
The microprocessor of the embedded system that is useful on all has a fixing entry address.Whenever powering on or receive, processor will begin the executive routine code from this address by the reset interrupt signal.
In the present invention, as shown in Figure 2, the initial order that starts dispatching device 20 just leaves the place, entry address in, according to this entry address, and this startup dispatching device 20 be activated (step 201).Then, in step 203, start dispatching device 20 and read the level and the specified sign position of specifying pin.For example, under the pin level is high state, jumps to prosthetic device 30 and carry out according to repair process of the present invention (step 207).And under the pin level is low state, jump to controlling application program memory storage 10 to start controlling application program (step 205).
The high-low level that it should be noted that the pin level is represented respectively and is existed specific hardware input and embedded device to be in default conditions.Usually, embedded device is in default conditions and represents that embedded device operating is normal, and embedded device break down and unusual situation under, then can import specific key combination (hardware input) and activate prosthetic device 30 by the user.
Certainly, the present invention is not limited thereto.For example, also can under the embedded device normal operation, activate prosthetic device 30, so that controlling application program enters reset mode by user's hardware input.Can also activate prosthetic device 30 by detecting corresponding marker bit, register etc.
Fig. 3 shows the process flow diagram according to the repair process of the method for the controlling application program of the self-repairing built-in equipment of the embodiment of the invention.
As shown in Figure 3, in step 301, enter repair process.In step 303, the controlling application program backup code that prosthetic device 30 reads wherein to be stored.In step 305, the controlling application program backup code is override on the controlling application program memory storage 10, and shield the storage area that is damaged.In step 307, above-mentioned override finish with masking operation after, be directed to the initial reset state by starting dispatching device 20.
In practice, the controlling application program code is code zone the most complicated, that operation is the most frequent, and the controlling application program memory storage then is the zone that read-write operation is the most frequent, storage space is maximum.So the possibility that this part breaks down is also maximum, in case break down, just can detect zone bit with hardware input operation or oneself, enter repair procedure with the reparation controlling application program by scheduler program.
In addition, under normal conditions, may in controlling application program, add function.At this moment, can upgrade the controlling application program backup code in the prosthetic device 30, cause prosthetic device 30 no longer available thereby avoid this part to break down.Controlling application program backup code in user's inaccessible dedicated memory, and according to hardware and zone bit variation execution renewal.
Although below show the present invention in conjunction with the preferred embodiments of the present invention, one skilled in the art will appreciate that under the situation that does not break away from the spirit and scope of the present invention, can carry out various modifications, replacement and change to the present invention.Therefore, the present invention should not limited by the foregoing description, and should be limited by claims and equivalent thereof.

Claims (7)

1, a kind of method of controlling application program of self-repairing built-in equipment may further comprise the steps:
Judge whether to exist specific hardware input, and whether detect the controlling application program loading successful from the user;
There is under the situation of specific hardware input or when described embedded device can't the normal load application program startup repair procedure;
After starting described repair procedure, described repair procedure reads the controlling application program backup code in the dedicated memory of user's inaccessible and overrides the memory block of controlling application program, and the storage area that is damaged in the shielding controlling application program memory block.
2, method according to claim 1 is characterized in that under the situation that does not have the specific hardware input, and the controlling application program in the startup controlling application program memory block is with the operation embedded device.
3, method according to claim 1 is characterized in that described specific hardware input is any button or the button combination on the embedded device.
4, method according to claim 1, it is characterized in that controlling application program backup code in the dedicated memory of user's inaccessible changes to carry out according to hardware and zone bit upgrades.
5, a kind of equipment of controlling application program of self-repairing built-in equipment comprises:
The controlling application program memory storage is used to store the controlling application program of the operation that is used to carry out embedded device;
Start calling device, judge whether to exist specific hardware input, and whether detect the controlling application program loading successful from the user; Exist under the situation of specific hardware input, perhaps when described embedded device can't the normal load application program, the repair procedure of being stored in the startup prosthetic device; Otherwise, start the controlling application program of being stored in the controlling application program memory storage; And
Prosthetic device, be used to store controlling application program backup code and repair procedure, and when described startup calling device starts the repair procedure of being stored in the described prosthetic device, described repair procedure reads the controlling application program backup code in the dedicated memory of user's inaccessible and overrides on the controlling application program memory storage, and the storage area that is damaged in the shielding controlling application program memory block.
6, equipment according to claim 5 is characterized in that described specific hardware input is any button or the button combination on the embedded device.
7, equipment according to claim 5, it is characterized in that controlling application program backup code in the dedicated memory of described user's inaccessible changes to carry out according to hardware and zone bit upgrades.
CNB200510113343XA 2005-09-28 2005-09-28 Method and apparatus for master-controlled applied programm of self-repairing built-in equipment Expired - Fee Related CN100410893C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510113343XA CN100410893C (en) 2005-09-28 2005-09-28 Method and apparatus for master-controlled applied programm of self-repairing built-in equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510113343XA CN100410893C (en) 2005-09-28 2005-09-28 Method and apparatus for master-controlled applied programm of self-repairing built-in equipment

Publications (2)

Publication Number Publication Date
CN1940887A true CN1940887A (en) 2007-04-04
CN100410893C CN100410893C (en) 2008-08-13

Family

ID=37959093

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510113343XA Expired - Fee Related CN100410893C (en) 2005-09-28 2005-09-28 Method and apparatus for master-controlled applied programm of self-repairing built-in equipment

Country Status (1)

Country Link
CN (1) CN100410893C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214130A (en) * 2010-04-08 2011-10-12 纬创资通股份有限公司 Test device and test method
CN110060726A (en) * 2019-01-30 2019-07-26 北京品驰医疗设备有限公司 The program detecting method and implantable medical device of flash memory
CN110059005A (en) * 2019-01-30 2019-07-26 北京品驰医疗设备有限公司 The program detecting method and implantable medical device of flash memory
CN110083393A (en) * 2019-01-30 2019-08-02 北京品驰医疗设备有限公司 Flash memory and implantable medical device
CN110858148A (en) * 2018-12-18 2020-03-03 哈尔滨安天科技集团股份有限公司 Updating method and device of storage medium preset application program and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6711699B1 (en) * 2000-05-04 2004-03-23 International Business Machines Corporation Real time backup system for information based on a user's actions and gestures for computer users
EP1410191A2 (en) * 2001-07-26 2004-04-21 Kyocera Wireless Corporation System and method for the management of wireless communications device system software downloads in the field
CN1207666C (en) * 2002-08-19 2005-06-22 乐金电子(天津)电器有限公司 Microcomputer operation program backing-up device in electronic product

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214130A (en) * 2010-04-08 2011-10-12 纬创资通股份有限公司 Test device and test method
CN110858148A (en) * 2018-12-18 2020-03-03 哈尔滨安天科技集团股份有限公司 Updating method and device of storage medium preset application program and electronic equipment
CN110858148B (en) * 2018-12-18 2023-02-17 安天科技集团股份有限公司 Updating method and device of storage medium preset application program and electronic equipment
CN110060726A (en) * 2019-01-30 2019-07-26 北京品驰医疗设备有限公司 The program detecting method and implantable medical device of flash memory
CN110059005A (en) * 2019-01-30 2019-07-26 北京品驰医疗设备有限公司 The program detecting method and implantable medical device of flash memory
CN110083393A (en) * 2019-01-30 2019-08-02 北京品驰医疗设备有限公司 Flash memory and implantable medical device

Also Published As

Publication number Publication date
CN100410893C (en) 2008-08-13

Similar Documents

Publication Publication Date Title
CN101281469B (en) Embedded type system and start-up load application method
TWI382346B (en) Computer system with dual bios protection mechanism and control method of the same
US20010039612A1 (en) Apparatus and method for fast booting
US20070174689A1 (en) Computer platform embedded operating system backup switching handling method and system
TWI498822B (en) Electronic device for bios updatable and bios updating method thereof
JP2004005466A (en) Device and method for attaining interruption, resuming function and idle mode for protective mode microprocessor and hard disk
JP2006215905A (en) Computer stop condition monitoring method, information processor, and program
US20050289382A1 (en) System and method for recovering a device state
CN100410893C (en) Method and apparatus for master-controlled applied programm of self-repairing built-in equipment
TWI450090B (en) Method and system of changing a startup list of programs to determine whether computer system performance increases
CN100395713C (en) Method of automatic repairing basic input output system element and module
CN1185579C (en) Debugging method by using serial port when system is in shutdown time and inactive state
CN102043662A (en) Data modification method for multiple operation systems
JP4409681B2 (en) Information processing apparatus and memory control method for information processing apparatus
CN1904794A (en) Method for implementing USB port screening control
CN111078469A (en) Data processing method and data processing equipment
CN101201746A (en) Method for setting ROM-BIOS
CN104102505A (en) Computer power-on method
JP2007122772A (en) Information processor and method and program for storing data
CN2563637Y (en) Starting up operation system device of computer host
CN1288563C (en) Boot program method for detecting and updating basic input and output system
KR100299119B1 (en) PC possessing apparatus for controlling flash ROM
US20050289537A1 (en) System and method for installing software on a computing device
CN1818824A (en) High-reliable personal computer and operating system thereof
CN1261876C (en) Device with function of updating and detecting BIOS

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080813

Termination date: 20200928

CF01 Termination of patent right due to non-payment of annual fee