CN105824730A - Method and device for diagnosing and repairing hardware - Google Patents

Method and device for diagnosing and repairing hardware Download PDF

Info

Publication number
CN105824730A
CN105824730A CN201610149670.9A CN201610149670A CN105824730A CN 105824730 A CN105824730 A CN 105824730A CN 201610149670 A CN201610149670 A CN 201610149670A CN 105824730 A CN105824730 A CN 105824730A
Authority
CN
China
Prior art keywords
hardware
test
measured
functional module
broken down
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610149670.9A
Other languages
Chinese (zh)
Inventor
胡专门
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Everest Mobile Communication Co Ltd
Original Assignee
Beijing Everest Mobile Communication 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 Beijing Everest Mobile Communication Co Ltd filed Critical Beijing Everest Mobile Communication Co Ltd
Priority to CN201610149670.9A priority Critical patent/CN105824730A/en
Publication of CN105824730A publication Critical patent/CN105824730A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for diagnosing and repairing hardware. The method comprises the following steps: carrying out fault testing on all function modules of to-be-tested hardware in a mobile terminal according to a preset testing rule when the situation that a hardware diagnosing and repairing task is triggered is detected; obtaining a fault rate of all the function modules of the to-be-tested hardware; shielding the function modules in fault in the to-be-tested hardware when the fault rate is smaller than a preset rate. According to the method for diagnosing and repairing the hardware, disclosed by the invention, self-diagnosis and self-repairing on hardware fault of the mobile terminal are realized, the fault problem during use of the mobile terminal can be conveniently solved, and the maintaining cost is saved.

Description

A kind of hardware diagnostic restorative procedure and device
Technical field
The invention belongs to technical field of mobile terminals, particularly relate to a kind of hardware diagnostic restorative procedure and device.
Background technology
Development along with computer technology, people are more and more higher to demand and the degree of dependence of mobile terminal, the mobile terminal such as mobile phone, panel computer is increasingly becoming a requisite part in people's work, life, the most in use occur in that fault, it will directly affect normal work and the life of people.But, owing to mobile terminal belongs to high-accuracy machine, failture evacuation and maintenance need higher Professional knowledge, industry does not the most allow the mobile terminal of fault automatically carry out oneself's hardware diagnostic and the way of reparation at present, machine can only be given agent when mobile terminal breaks down and return factory repair by commonly used person, and maintenance cycle is longer and needs to spend certain maintenance cost.
Summary of the invention
The present invention provides a kind of hardware diagnostic restorative procedure and device, aim to solve the problem that mobile terminal cannot carry out oneself's hardware diagnostic and the problem of reparation automatically present in prior art, achieve autognostic and the reparation of mobile terminal hardware fault, mobile terminal failure in service problem can be solved easily, save maintenance cost.
The embodiment of the present invention provides a kind of hardware diagnostic restorative procedure, including: when detecting that hardware diagnostic reparation task is triggered, according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test, carry out fault diagnosis with each functional module to described hardware to be measured;Obtain the fault rate of each functional module of described hardware to be measured;When described fault rate is less than preset ratio, shield the functional module broken down in described hardware to be measured.
Further, described hardware to be measured includes: storage device, then described according to preset test order, each functional module of the hardware to be measured in mobile terminal carried out fault test and include:
The memory space of described storage device is divided into several test cells according to preset size;
According to described test order, respectively each described test cell is carried out fault test, obtain test result;
According to described test result, using not by the test cell of described fault test as the functional module broken down in described storage device.
Further, described hardware to be measured includes: storage device, then described according to preset test order, each functional module of the hardware to be measured in mobile terminal carried out fault test and include:
The memory space of described storage device is divided into several test cells according to preset size;
According to described test order, respectively each described test cell is carried out fault test, obtain test result;
According to described test result, using not by the test cell of described fault test as the functional module broken down in described storage device.
Further, the functional module broken down in the described hardware to be measured of described shielding includes:
Obtain the description information of the functional module broken down in described hardware to be measured, and record in appointment position;
Restart described mobile terminal, detect whether described appointment position has stored described description information;
If storage has described description information, then according to described description information, shield the functional module broken down in described hardware to be measured.
Further, described description information includes the address information of the functional module broken down in described hardware to be measured, described according to described description information, shields the functional module broken down in described hardware to be measured and includes:
According to described address information, the functional module broken down in described hardware to be measured is coloured, according to preset labeling algorithm, the functional module broken down in described hardware to be measured is marked, in order to the functional module broken down in described hardware to be measured is shielded.
Further, described according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test before, including:
Restart described mobile terminal, and after described mobile terminal starts, load the properly functioning necessary underlying hardware of the described mobile terminal of maintenance.
The embodiment of the present invention provides a kind of hardware diagnostic prosthetic device, including: detection module, it is used for detecting hardware diagnostic and repairs whether task is triggered;Diagnostic module, for when described detection module detects that described hardware diagnostic reparation task is triggered, according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test, carry out fault diagnosis with each functional module to described hardware to be measured;Acquisition module, for obtaining the fault rate of each functional module of described hardware to be measured;Judge module, is used for judging that whether described fault rate is less than preset ratio;Repair module, for when described judge module judges described fault rate less than described preset ratio, shielding the functional module broken down in described hardware to be measured.
Further, described hardware to be measured includes: storage device, and the most described diagnostic module includes:
Divide submodule, for the memory space of described storage device is divided into several test cells according to preset size;
Test submodule, for according to described test order, respectively each described test cell is carried out fault test, obtain test result, according to described test result, using not by the test cell of described fault test as the functional module broken down in described storage device.
Further, described test submodule, specifically for successively each described test cell being written and read test, more once in test, the data of write are the most consistent with the data of reading, and judge whether the time of write/read exceedes preset time period, and if once test in write data inconsistent with the data of reading, or, the time of write/read exceedes preset time period, then confirm that the test cell of correspondence is not by described fault test.
Further, described repair module includes:
Record sub module, for obtaining the description information of the functional module broken down in described hardware to be measured, and records in appointment position;
Detection sub-module, is used for restarting described mobile terminal, detects whether described appointment position has stored described description information;
Shielding submodule, if detecting the storage of described appointment position for detection sub-module have described description information, then according to described description information, shields the functional module broken down in described hardware to be measured.
Further, described description information includes the address information of the functional module broken down in described hardware to be measured, the most described shielding submodule, specifically for according to described address information, the functional module broken down in described hardware to be measured is coloured, according to preset labeling algorithm, the functional module broken down in described hardware to be measured is marked, in order to the functional module broken down in described hardware to be measured is shielded.
Further, described device also includes:
Load-on module, is used for restarting described mobile terminal, and loads the properly functioning necessary underlying hardware of the described mobile terminal of maintenance after described mobile terminal starts.
nullKnowable to the invention described above embodiment,By when detecting that hardware diagnostic reparation task is triggered,According to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test,Obtain the fault rate of each functional module of hardware to be measured,When fault rate is less than preset ratio,Shield the functional module broken down in hardware to be measured,Compared to prior art,The present invention by Intelligent Recognition fault rate less than preset ratio can be with the hardware fault of self-regeneration,And automatically perform to repair operation,Mobile terminal failure in service problem can be solved easily,Make some machines can repaired in user's hands without returning again to factory repair,Greatly reduce user and send the loss repairing machine,Save consumer and extra expenses that producer both sides thus bring,Reduce maintenance cost,And decrease the probability that personal information is revealed.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those skilled in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 be first embodiment of the invention provide a kind of hardware diagnostic restorative procedure realize schematic flow sheet;
Fig. 2 be second embodiment of the invention provide a kind of hardware diagnostic restorative procedure realize schematic flow sheet;
Fig. 3 is the structural representation of a kind of hardware diagnostic prosthetic device that third embodiment of the invention provides;
Fig. 4 is the structural representation of a kind of hardware diagnostic prosthetic device that fourth embodiment of the invention provides.
Detailed description of the invention
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, and not all embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
Refer to a kind of hardware diagnostic restorative procedure that Fig. 1, Fig. 1 provide for first embodiment of the invention realizes schematic flow sheet.The hardware diagnostic restorative procedure that the present embodiment provides can be applicable to the mobile terminals such as smart mobile phone, panel computer, Intelligent worn device, as it is shown in figure 1, the method mainly comprises the steps that
S101, when detect hardware diagnostic repair task be triggered time, according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test, carries out fault diagnosis with each functional module to hardware to be measured;
Mobile terminal can be when detecting that operating system cannot normally start, automatically trigger hardware diagnostic and repair task, or, the preset operation of task is repaired according to the hardware diagnostic that triggers that user performs, what such as user was carried out at preset hardware diagnostic reparation interface clicks on the operation of the button for triggering task, press the operation etc. of the preset quick secondary or physical bond for triggering hardware diagnostic reparation task, trigger hardware diagnostic and repair task.
When detecting that hardware diagnostic reparation task is triggered, perform preset test program, according to preset test order, one by one each functional module of hardware to be measured in mobile terminal is carried out fault test, diagnose whether it there occurs fault.Hardware to be measured can be, but not limited to include: the storage device of mobile terminal, radio-frequency module, various sensor etc..Task is repaired when performing hardware diagnostic, the concrete scope of hardware to be measured can pre-set as required, for example, it is possible to according to the starting log of operating system, before performing hardware diagnostic reparation task, the hardware loaded incorrect during os starting is predisposed to hardware to be measured;Or, repair the system journal before task triggers according to hardware diagnostic, the hardware related in system journal be predisposed to hardware to be measured;Or, all of hardware is all predisposed to hardware to be measured.
By performing preset test program, each functional module of hardware to be measured being carried out fault test, the characteristic wherein being had according to different types of hardware or structure, the functional module dividing mode that different types of hardware is corresponding is the most different.As: the functional module that radio-frequency module is corresponding can include signal emission module and signal receiving module, then each functional module to radio-frequency module carries out fault test, the most one by one the sending out of the signal emission module of testing RF module and signal receiving module, to receive function the most normal;The functional module that RAM (random access memory) card etc storage device is corresponding is then each memory element of the memory space entirety constituting this storage device, each of which memory element may be defined as a functional module of this storage device, for example, assume that storing device has the memory space of 1G, according to preset size, the memory space of this 1G is divided into 1024 memory element, then this storage device has 1024 memory function module, each functional module of this storage device is carried out fault test, the read-write capability of 1024 memory element testing this storage device the most respectively is the most normal.
Further, when carrying out hardware diagnostic, in order to reduce unnecessary mistake and carry out fault location more accurately, preferably, before each functional module of the hardware to be measured in mobile terminal being carried out fault test according to preset test order, first restart mobile terminal, a fundamental system simplified very much is only run after startup, a minimally loads and maintains the properly functioning necessary underlying hardware of mobile terminal within the system, then according still further to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test.
S102, obtain the fault rate of each functional module of hardware to be measured;
The fault rate of each functional module of hardware to be measured, the functional module broken down in all functional modules of hardware the most to be measured accounts for the ratio of all functional modules, still as a example by above-mentioned storage device, if there being 4 memory element that read-write fault occurs in 1024 memory element, then the fault rate of each functional module of this storage device is 4/1024*100% ≈ 0.4%.
S103, when fault rate less than preset ratio time, shield the functional module broken down in hardware to be measured.
When fault rate is less than preset ratio, confirm that the fault of corresponding hardware to be measured is less, self-regeneration can be carried out, then the functional module broken down in hardware to be measured is carried out record, and restart mobile terminal, according to above-mentioned record, shield the functional module broken down in hardware to be measured, thus ensure the normal realization of other functions of hardware to be measured, mobile terminal is made to recover properly functioning, avoid because the partial function of hardware to be measured damages, cause mobile terminal system abnormal, impact entirety uses, such as, when there is part bad track in RAM (random access memory) card, by performing above-mentioned hardware diagnostic restorative procedure, owing to this part bad track is shielded after restart, mobile terminal can skip this bad track automatically, thus the system failure avoiding the occurrence of the data because reading in this bad track and causing, affect the normal use of mobile terminal.
Further, can be by the relevant information record of functional module that breaks down in hardware to be measured in the special recording areas specifying position, mobile terminal the most first reads the data in this special recording areas, if there is corresponding record this special recording areas, then read this record, and according to this record, the functional module broken down in hardware to be measured is coloured, and according to preset labeling algorithm, the functional module broken down in hardware to be measured is marked, so that the functional module broken down in hardware to be measured is shielded, finally will not use these functional modules broken down after kernel (kernel) starts, thus reach normally to use the purpose of machine.
nullA kind of hardware diagnostic restorative procedure that the embodiment of the present invention provides,By when detecting that hardware diagnostic reparation task is triggered,According to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test,Obtain the fault rate of each functional module of hardware to be measured,When fault rate is less than preset ratio,Shield the functional module broken down in hardware to be measured,Compared to prior art,The present invention by Intelligent Recognition fault rate less than preset ratio can be with the hardware fault of self-regeneration,And automatically perform to repair operation,Mobile terminal failure in service problem can be solved easily,Make some machines can repaired in user's hands without returning again to factory repair,Greatly reduce user and send the loss repairing machine,Save consumer and extra expenses that producer both sides thus bring,Reduce maintenance cost,And decrease the probability that personal information is revealed.
Refer to a kind of hardware diagnostic restorative procedure that Fig. 2, Fig. 2 provide for second embodiment of the invention realizes schematic flow sheet.The hardware diagnostic restorative procedure that the present embodiment provides can be applicable to the mobile terminals such as smart mobile phone, panel computer, Intelligent worn device.Hardware to be measured in the present embodiment includes storing device, as in figure 2 it is shown, the method mainly comprises the steps that
S201, when detect hardware diagnostic repair task be triggered time, by storage device memory space be divided into several test cells according to preset size;
Mobile terminal can be when detecting that operating system cannot normally start, automatically trigger hardware diagnostic and repair task, or, the preset operation of task is repaired according to the hardware diagnostic that triggers that user performs, what such as user was carried out at preset hardware diagnostic reparation interface clicks on the operation of the button for triggering task, press the operation etc. of the preset quick secondary or physical bond for triggering hardware diagnostic reparation task, trigger hardware diagnostic and repair task.
When detecting that hardware diagnostic reparation task is triggered, the memory space of storage device is divided into several memory element as test cell according to preset size, one storage function of the i.e. correspondence storage device of each of which test cell, can be defined as a functional module of this storage device.
Further, when carrying out hardware diagnostic, in order to reduce unnecessary mistake and carry out fault location more accurately, preferably, before the memory space of storage device is divided into several test cells according to preset size, first restarting mobile terminal, only run a fundamental system simplified very much after startup, a minimally loads and maintains the properly functioning necessary underlying hardware of mobile terminal within the system.
S202, according to preset test order, respectively each test cell is carried out fault test, obtains test result;
According to preset test order, each test cell being written and read test successively, more once in test, the data of write are the most consistent with the data of reading, and judge whether the time of write/read exceedes preset time period;If once in test, the data of write are inconsistent with the data of reading, or, the time of write/read exceedes preset time period, then confirm that the test cell of correspondence does not passes through fault test.
Specifically, first, test cell is performed test data write operation, judge that the time of write is the most overtime, i.e. judge whether to exceed that preset time period is the most unsuccessful writes this test cell by preset test data, if the time time-out of write, then confirm that this test cell does not passes through fault test;If the time of write has not timed out, then this test cell is performed test data read-out operation, it is judged that the time of reading is the most overtime, i.e. judges whether that exceeding preset time period does not successfully read data from this test cell, if the time time-out read, then confirm that this test cell does not passes through fault test;If the time read has not timed out, then judge the data that read whether with the test data consistent of write, if inconsistent, then confirm that this test cell, by fault test, exists failure problems;If consistent, then confirm that this test cell, by fault test, does not exist failure problems.
S203, according to test result, using not by the test cell of fault test as the functional module broken down in storage device;
S204, obtain the fault rate of each functional module of storage device;
According to test result, to the test cell broken down in storage device (i.e., functional module) quantity add up, the quantity of all test cells comprised in the quantity counted and this storage device is compared, obtains the fault rate of each test cell of this storage device.For example, assume that storing device has the memory space of 1G, according to preset size, the memory space of this 1G being divided into 1024 test cells, if wherein there being 4 test cells not by readwrite tests, then the fault rate of each functional module of this storage device is 4/1024*100% ≈ 0.4%.
S205, when fault rate is less than preset ratio, obtain the description information of functional module broken down in storage device, and record and specifying position;
Preset ratio is preferably 1%.In other embodiments, this preset ratio also can be self-defined according to the numerical value of user's input.Description information includes that address herein can be logical address or physical address not by initial address and the information of end address of the test cell of fault test.Describe information by this and may determine that this does not passes through the test cell of fault test particular location in the storage device.Obtain in storage device all not by initial address and the information of end address of the test cell of fault test, and the information obtained is being specified position according to preset form record, such as: the specific region of RAM (random access memory) card, this appointment position is specifically designed to the description information of the functional module broken down that storage gets.
S206, restarting mobile terminal, detection specifies whether position stores the information of being described;
Restart mobile terminal, read the information data specifying position storage, it is judged that whether the form of this information data is preset form, the most then confirm that the storage of this appointment position is described information.
Further, in other embodiments of the invention, for improving the motility that hardware diagnostic is repaired, before restarting mobile terminal, also can show information to user, there is fault with some functional module pointing out user to store device, if confirm the functional module broken down is performed masking operation;Then operating according to the confirmation of user, after restarting mobile terminal, detection specifies whether position stores the information of being described;Or the refusal operation according to user, after restarting mobile terminal, no longer detection specifies whether position stores the information of being described, but according to common Booting sequence, starts the operating system of mobile terminal, and the functional module now broken down will not be shielded.
If S207 storage is described information, then according to the information of description, the functional module broken down in shielding storage device.
If specifying position storage to be described information, then according to initial address and the information of end address of the test cell not passing through fault test in description information, this test cell describing information sensing is coloured, and according to preset labeling algorithm, this test cell describing information sensing is marked, to shield this test cell after Kernel starts, so that this test cell will not be used, thus reach normally to use the purpose of machine.If specifying position not store the information of being described, then continue, according to common Starting mode, to start operating system.
Further, after operating system starts completely, also can provide a user with hardware diagnostic recovery report, in order to user understands the concrete condition of the functional module broken down by shielding in the hardware to be measured and hardware to be measured being repaired by this hardware diagnostic recovery report.
nullA kind of hardware diagnostic restorative procedure that the embodiment of the present invention provides,By when detecting that hardware diagnostic reparation task is triggered,According to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test,Obtain the fault rate of each functional module of hardware to be measured,When fault rate is less than preset ratio,Shield the functional module broken down in hardware to be measured,Compared to prior art,The present invention by Intelligent Recognition fault rate less than preset ratio can be with the hardware fault of self-regeneration,And automatically perform to repair operation,Mobile terminal failure in service problem can be solved easily,Make some machines can repaired in user's hands without returning again to factory repair,Greatly reduce user and send the loss repairing machine,Save consumer and extra expenses that producer both sides thus bring,Reduce maintenance cost,And decrease the probability that personal information is revealed.
Refer to the structural representation that Fig. 3, Fig. 3 are a kind of hardware diagnostic prosthetic devices that third embodiment of the invention provides, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.The hardware diagnostic prosthetic device of Fig. 3 example can be the executive agent of a kind of hardware diagnostic restorative procedure that aforementioned first embodiment provides, and it can be a functional module in mobile terminal or mobile terminal.The hardware diagnostic prosthetic device of Fig. 3 example, specifically includes that detection module 301, diagnostic module 302, acquisition module 303, judge module 304 and repair module 305.Each functional module describes in detail as follows:
Detection module 301, is used for detecting hardware diagnostic and repairs whether task is triggered;
Diagnostic module 302, for when detection module 301 detects that this hardware diagnostic reparation task is triggered, according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test, carry out fault diagnosis with each functional module to this hardware to be measured;
Acquisition module 303, for obtaining the fault rate of each functional module of this hardware to be measured;
Judge module 304, is used for judging that whether this fault rate is less than preset ratio;
Repair module 305, for when judge module 304 judges this fault rate less than this preset ratio, shielding the functional module broken down in this hardware to be measured.
Above-mentioned module realizes the detailed process of respective function and refers to the related content of first embodiment shown in Fig. 1, and here is omitted.
It should be noted that, in the embodiment of the hardware diagnostic prosthetic device of above-mentioned Fig. 3 example, the division of each functional module is merely illustrative of, can be as required in actual application, the configuration requirement of such as corresponding hardware or the convenient consideration of the realization of software, and above-mentioned functions distribution is completed by different functional modules, the internal structure of this device will be divided into different functional modules, to complete all or part of function described above.And, in actual application, corresponding functional module in the present embodiment can be to be realized by corresponding hardware, it is also possible to is performed corresponding software by corresponding hardware and completes (each embodiment that this specification provides all can apply foregoing description principle, below repeats no more).
nullA kind of hardware diagnostic prosthetic device that the embodiment of the present invention provides,By when detecting that hardware diagnostic reparation task is triggered,According to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test,Obtain the fault rate of each functional module of hardware to be measured,When fault rate is less than preset ratio,Shield the functional module broken down in hardware to be measured,Compared to prior art,The present invention by Intelligent Recognition fault rate less than preset ratio can be with the hardware fault of self-regeneration,And automatically perform to repair operation,Mobile terminal failure in service problem can be solved easily,Make some machines can repaired in user's hands without returning again to factory repair,Greatly reduce user and send the loss repairing machine,Save consumer and extra expenses that producer both sides thus bring,Reduce maintenance cost,And decrease the probability that personal information is revealed.
Refer to the structural representation that Fig. 4, Fig. 4 are a kind of hardware diagnostic prosthetic devices that fourth embodiment of the invention provides, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.Unlike a kind of hardware diagnostic prosthetic device provided from third embodiment of the invention shown in Fig. 3, in the present embodiment:
Further, this hardware to be measured includes: storage device, then diagnostic module 302 includes:
Divide submodule 3021, for the memory space of this storage device is divided into several test cells according to preset size;
Test submodule 3022, for according to this test order, carries out fault test respectively, obtains test result respectively this test cell, according to this test result, using not by the test cell of this fault test as the functional module broken down in this storage device.
Further, test submodule 3022, specifically for successively respectively this test cell being written and read test, more once in test, the data of write are the most consistent with the data of reading, and judge whether the time of write/read exceedes preset time period, and if once test in write data inconsistent with the data of reading, or, the time of write/read exceedes preset time period, then confirm that the test cell of correspondence is not by this fault test.
Further, repair module 305 includes:
Record sub module 3051, for obtaining the description information of the functional module broken down in this hardware to be measured, and records in appointment position;
Detection sub-module 3052, is used for restarting this mobile terminal, detects this appointment position and whether has stored this and describe information;
Shielding submodule 3053, has this to describe information if detecting the storage of this appointment position for detection sub-module, then describes information according to this, shield the functional module broken down in this hardware to be measured.
Further, this describes information and includes the address information of the functional module broken down in this hardware to be measured, then shielding submodule 3053, specifically for according to this address information, the functional module broken down in this hardware to be measured is coloured, according to preset labeling algorithm, the functional module broken down in this hardware to be measured is marked, in order to the functional module broken down in this hardware to be measured is shielded.
Further, this device also includes:
Load-on module 401, is used for restarting this mobile terminal, and loads the properly functioning necessary underlying hardware of this mobile terminal of maintenance after this mobile terminal starts.
Above-mentioned module realizes the detailed process of respective function and refers to the related content of the second embodiment shown in first embodiment shown in Fig. 1 and Fig. 2, and here is omitted.
nullA kind of hardware diagnostic prosthetic device that the embodiment of the present invention provides,By when detecting that hardware diagnostic reparation task is triggered,According to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test,Obtain the fault rate of each functional module of hardware to be measured,When fault rate is less than preset ratio,Shield the functional module broken down in hardware to be measured,Compared to prior art,The present invention by Intelligent Recognition fault rate less than preset ratio can be with the hardware fault of self-regeneration,And automatically perform to repair operation,Mobile terminal failure in service problem can be solved easily,Make some machines can repaired in user's hands without returning again to factory repair,Greatly reduce user and send the loss repairing machine,Save consumer and extra expenses that producer both sides thus bring,Reduce maintenance cost,And decrease the probability that personal information is revealed.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can realize by another way.Such as, device embodiment described above is only schematically, such as, the division of described module, be only a kind of logic function to divide, actual can have when realizing other dividing mode, the most multiple modules or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or module or communication connection, can be electrical, machinery or other form.
The described module illustrated as separating component can be or may not be physically separate, and the parts shown as module can be or may not be physical module, i.e. may be located at a place, or can also be distributed on multiple mixed-media network modules mixed-media.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing module, it is also possible to be that modules is individually physically present, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated module both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
If described integrated module is using the form realization of software function module and as independent production marketing or use, can be stored in a computer read/write memory medium.Based on such understanding, completely or partially can embodying with the form of software product of part that prior art is contributed by technical scheme the most in other words or this technical scheme, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
It should be noted that, for aforesaid each method embodiment, in order to simplicity describes, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, some step can use other order or carry out simultaneously.Secondly, those skilled in the art also should know, it might not be all necessary to the present invention that embodiment described in this description belongs to preferred embodiment, involved action and module.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the part described in detail, may refer to the associated description of other embodiments in certain embodiment.
It is more than to a kind of hardware diagnostic restorative procedure provided by the present invention and the description of device, for those skilled in the art, thought according to the embodiment of the present invention, the most all will change, to sum up, this specification content should not be construed as limitation of the present invention.

Claims (12)

1. a hardware diagnostic restorative procedure, it is characterised in that described method includes:
When detecting that hardware diagnostic reparation task is triggered, according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test, carry out fault diagnosis with each functional module to described hardware to be measured;
Obtain the fault rate of each functional module of described hardware to be measured;
When described fault rate is less than preset ratio, shield the functional module broken down in described hardware to be measured.
Method the most according to claim 1, it is characterised in that described hardware to be measured includes: storage device, then described carry out fault test according to preset test order to each functional module of the hardware to be measured in mobile terminal and include:
The memory space of described storage device is divided into several test cells according to preset size;
According to described test order, respectively each described test cell is carried out fault test, obtain test result;
According to described test result, using not by the test cell of described fault test as the functional module broken down in described storage device.
Method the most according to claim 2, it is characterised in that described according to described test order, carries out fault test to each described test cell respectively and includes:
Each described test cell is written and read test successively, and more once in test, the data of write are the most consistent with the data of reading, and judge whether the time of write/read exceedes preset time period;
If once in test, the data of write are inconsistent with the data of reading, or, the time of write/read exceedes preset time period, then confirm that the test cell of correspondence is not by described fault test.
4. according to the method described in claims 1 to 3 any one, it is characterised in that the functional module broken down in the described hardware to be measured of described shielding includes:
Obtain the description information of the functional module broken down in described hardware to be measured, and record in appointment position;
Restart described mobile terminal, detect whether described appointment position has stored described description information;
If storage has described description information, then according to described description information, shield the functional module broken down in described hardware to be measured.
Method the most according to claim 4, it is characterised in that described description information includes the address information of the functional module broken down in described hardware to be measured, described according to described description information, shields the functional module broken down in described hardware to be measured and includes:
According to described address information, the functional module broken down in described hardware to be measured is coloured, according to preset labeling algorithm, the functional module broken down in described hardware to be measured is marked, in order to the functional module broken down in described hardware to be measured is shielded.
Method the most according to claim 1, it is characterised in that described according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test before, including:
Restart described mobile terminal, and after described mobile terminal starts, load the properly functioning necessary underlying hardware of the described mobile terminal of maintenance.
7. a hardware diagnostic prosthetic device, it is characterised in that described device includes:
Detection module, is used for detecting hardware diagnostic and repairs whether task is triggered;
Diagnostic module, for when described detection module detects that described hardware diagnostic reparation task is triggered, according to preset test order, each functional module of the hardware to be measured in mobile terminal is carried out fault test, carry out fault diagnosis with each functional module to described hardware to be measured;
Acquisition module, for obtaining the fault rate of each functional module of described hardware to be measured;
Judge module, is used for judging that whether described fault rate is less than preset ratio;
Repair module, for when described judge module judges described fault rate less than described preset ratio, shielding the functional module broken down in described hardware to be measured.
Device the most according to claim 7, it is characterised in that described hardware to be measured includes: storage device, the most described diagnostic module includes:
Divide submodule, for the memory space of described storage device is divided into several test cells according to preset size;
Test submodule, for according to described test order, respectively each described test cell is carried out fault test, obtain test result, according to described test result, using not by the test cell of described fault test as the functional module broken down in described storage device.
Device the most according to claim 8, it is characterized in that, described test submodule, specifically for each described test cell is written and read test successively, more once in test, the data of write are the most consistent with the data of reading, and judge whether the time of write/read exceedes preset time period, if and the data of write are inconsistent with the data of reading in once testing, or, the time of write/read exceedes preset time period, then confirm that the test cell of correspondence is not by described fault test.
10. according to the device described in claim 7 to 9 any one, it is characterised in that described repair module includes:
Record sub module, for obtaining the description information of the functional module broken down in described hardware to be measured, and records in appointment position;
Detection sub-module, is used for restarting described mobile terminal, detects whether described appointment position has stored described description information;
Shielding submodule, if detecting the storage of described appointment position for detection sub-module have described description information, then according to described description information, shields the functional module broken down in described hardware to be measured.
11. devices according to claim 10, it is characterized in that, described description information includes the address information of the functional module broken down in described hardware to be measured, the most described shielding submodule, specifically for according to described address information, the functional module broken down in described hardware to be measured is coloured, according to preset labeling algorithm, the functional module broken down in described hardware to be measured is marked, in order to the functional module broken down in described hardware to be measured is shielded.
12. devices according to claim 7, it is characterised in that described device also includes:
Load-on module, is used for restarting described mobile terminal, and loads the properly functioning necessary underlying hardware of the described mobile terminal of maintenance after described mobile terminal starts.
CN201610149670.9A 2016-03-16 2016-03-16 Method and device for diagnosing and repairing hardware Pending CN105824730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610149670.9A CN105824730A (en) 2016-03-16 2016-03-16 Method and device for diagnosing and repairing hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610149670.9A CN105824730A (en) 2016-03-16 2016-03-16 Method and device for diagnosing and repairing hardware

Publications (1)

Publication Number Publication Date
CN105824730A true CN105824730A (en) 2016-08-03

Family

ID=56523456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610149670.9A Pending CN105824730A (en) 2016-03-16 2016-03-16 Method and device for diagnosing and repairing hardware

Country Status (1)

Country Link
CN (1) CN105824730A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107580215A (en) * 2017-09-25 2018-01-12 深圳市九洲电器有限公司 Set top box component quality feedback method and system
CN107688127A (en) * 2017-08-10 2018-02-13 薛雪东 A kind of electron recovery equipment repairs authentication method
CN107703523A (en) * 2017-08-09 2018-02-16 成都路行通信息技术有限公司 A kind of Vehicular satellite location equipment Intelligent restarting method and system
CN107870279A (en) * 2016-09-26 2018-04-03 宇龙计算机通信科技(深圳)有限公司 The failure detector and mobile terminal of mobile terminal
CN109918239A (en) * 2017-12-13 2019-06-21 纬创资通股份有限公司 Computer equipment, diagnostic method and non-transitory computer-readable storage media
CN111627490A (en) * 2020-05-22 2020-09-04 浙江大华技术股份有限公司 Synchronous dynamic random access memory testing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006889A1 (en) * 2007-06-27 2009-01-01 International Business Machines Corporation I2C Failure Detection, Correction, and Masking
CN103514068A (en) * 2012-06-28 2014-01-15 北京百度网讯科技有限公司 Method for automatically locating internal storage faults
CN104636223A (en) * 2013-11-14 2015-05-20 鸿富锦精密工业(深圳)有限公司 Test system and method for locating SAS channel
CN104699572A (en) * 2013-12-04 2015-06-10 大连鸿祺科技发展有限公司 Computer hardware diagnosis method based on UNIX operating system
CN104809039A (en) * 2015-04-24 2015-07-29 英业达科技有限公司 Memory detection method based on physical memory allocation mapping

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006889A1 (en) * 2007-06-27 2009-01-01 International Business Machines Corporation I2C Failure Detection, Correction, and Masking
CN103514068A (en) * 2012-06-28 2014-01-15 北京百度网讯科技有限公司 Method for automatically locating internal storage faults
CN104636223A (en) * 2013-11-14 2015-05-20 鸿富锦精密工业(深圳)有限公司 Test system and method for locating SAS channel
CN104699572A (en) * 2013-12-04 2015-06-10 大连鸿祺科技发展有限公司 Computer hardware diagnosis method based on UNIX operating system
CN104809039A (en) * 2015-04-24 2015-07-29 英业达科技有限公司 Memory detection method based on physical memory allocation mapping

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870279A (en) * 2016-09-26 2018-04-03 宇龙计算机通信科技(深圳)有限公司 The failure detector and mobile terminal of mobile terminal
CN107703523A (en) * 2017-08-09 2018-02-16 成都路行通信息技术有限公司 A kind of Vehicular satellite location equipment Intelligent restarting method and system
CN107703523B (en) * 2017-08-09 2019-08-16 成都路行通信息技术有限公司 A kind of Vehicular satellite positioning device Intelligent restarting method and system
CN107688127A (en) * 2017-08-10 2018-02-13 薛雪东 A kind of electron recovery equipment repairs authentication method
CN107580215A (en) * 2017-09-25 2018-01-12 深圳市九洲电器有限公司 Set top box component quality feedback method and system
CN109918239A (en) * 2017-12-13 2019-06-21 纬创资通股份有限公司 Computer equipment, diagnostic method and non-transitory computer-readable storage media
CN109918239B (en) * 2017-12-13 2023-04-14 纬创资通股份有限公司 Computer apparatus, diagnostic method, and non-transitory computer-readable storage medium
CN111627490A (en) * 2020-05-22 2020-09-04 浙江大华技术股份有限公司 Synchronous dynamic random access memory testing method and device

Similar Documents

Publication Publication Date Title
CN105824730A (en) Method and device for diagnosing and repairing hardware
CN109117327A (en) A kind of hard disk detection method and device
CN106547653B (en) Computer system fault state detection method, device and system
CN103034575B (en) Collapse analytical approach and device
CN112542199B (en) Method, circuit, storage medium and terminal for detecting flash memory error
CN103744824A (en) Outgoing testing method and testing system
CN103049373B (en) A kind of localization method of collapse and device
CN113409881B (en) Flash memory erasure interrupt recovery test method and device, electronic equipment and storage medium
CN103247345A (en) Quick-flash memory and detection method for failure memory cell of quick-flash memory
CN102968353A (en) Fail address processing method and fail address processing device
CN112542203A (en) Bad block repairing method and device for nonvolatile memory, storage medium and terminal
CN113832663A (en) Control chip fault recording method and device and control chip fault reading method
WO2024124862A1 (en) Server-based memory processing method and apparatus, processor and an electronic device
CN114283868A (en) Method and device for testing reliability of flash memory chip, electronic equipment and storage medium
CN113885899A (en) Solid state disk firmware burning method, device, equipment and storage medium
CN113409878A (en) Flash memory error information detection method, replacement method, device, equipment and storage medium
CN105653455A (en) Program vulnerability detection method and detection system
CN109444570B (en) Electronic product fault diagnosis module and method based on memory
CN115840707A (en) Flash test method, device and medium
CN109215724A (en) The method and device of memory automatic detection and rehabilitation
CN109374038B (en) Change test method of nuclear security level instrument control product based on application prototype
CN114496053A (en) Data anomaly detection method, device and equipment and computer readable storage medium
CN112486747A (en) Memory abnormity detection method and device, electronic equipment and readable storage medium
CN111209146A (en) RAID card aging test method and system
CN116913349B (en) Erasing interference detection method, repairing method, device, chip and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160803

RJ01 Rejection of invention patent application after publication