CN107341069A - Processing method, electronic equipment, electronic installation and computer-readable recording medium - Google Patents

Processing method, electronic equipment, electronic installation and computer-readable recording medium Download PDF

Info

Publication number
CN107341069A
CN107341069A CN201710522604.6A CN201710522604A CN107341069A CN 107341069 A CN107341069 A CN 107341069A CN 201710522604 A CN201710522604 A CN 201710522604A CN 107341069 A CN107341069 A CN 107341069A
Authority
CN
China
Prior art keywords
assembly
mode
reset
electronic equipment
working condition
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
CN201710522604.6A
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.)
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 CN201710522604.6A priority Critical patent/CN107341069A/en
Publication of CN107341069A publication Critical patent/CN107341069A/en
Pending legal-status Critical Current

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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present disclosure provides a kind of processing method, including:The working condition of the first assembly of electronic equipment is detected, the first assembly is the nextport hardware component NextPort by the processing unit control of the electronic equipment, and in the case where the processing unit powers off still in power supply state;If detect that the working condition of the first assembly meets predetermined condition, the electronic equipment is switched into second mode from first mode, wherein, the first assembly of the electronic equipment is in power supply state under the first mode, and the first assembly of the electronic equipment is in off-position under the second mode;And the electronic equipment is returned into the first mode from the second mode, so that the working condition of the first assembly is reset.The embodiment of the present disclosure additionally provides a kind of electronic installation and computer-readable recording medium.

Description

Processing method, electronic equipment, electronic installation and computer-readable recording medium
Technical field
This disclosure relates to a kind of processing method, a kind of electronic equipment, a kind of electronic installation and a kind of computer-readable deposit Storage media.
Background technology
The component for being used for realizing various functions, such as hand also be present in addition to its core component in electronic equipment of today Included sensor, motor etc. in machine equipment.These components are controlled by core component such as processor, and can be in processor Still in the state of power supply (such as battery powered) in the case of power-off.These components generally need when there is exception or failure Reset (such as power down) reparation.But for its battery it is non-dismountable or even without provide power on/off function some electricity For sub- equipment, carry out such repair and be typically only capable to carry out after the after-sales service point dismounting battery of equipment.This causes electricity The fault recovery of sub- equipment is very troublesome and time-consuming.
Therefore, it is necessary to a kind of efficiently convenient processing scheme so that user can conveniently and efficiently repair electronic equipment The failure that component occurs, without for example dismantling battery to maintenance of equipment point.
The content of the invention
One aspect of the present invention provides a kind of processing method.This method includes the first assembly of detection electronic equipment Working condition, the first assembly are the nextport hardware component NextPorts by the processing unit control of the electronic equipment, and single in the processing Still in power supply state in the case of member power-off., will if detecting that the working condition of the first assembly meets predetermined condition The electronic equipment switches to second mode from first mode, wherein, described the of the electronic equipment under the first mode One component is in power supply state, and the first assembly of the electronic equipment is in off-position under the second mode.The party Method also includes the electronic equipment returning to the first mode from the second mode, so that the work of the first assembly State is reset.
Alternatively, detecting the working condition of the first assembly of the electronic equipment may include:Monitor the first assembly Running parameter.In the case, if detecting that the working condition of the first assembly meets that predetermined condition may include:Based on institute Whether state running parameter judges the first assembly in the state for needing to reset.
Alternatively, the electronic equipment switches to second mode may include from first mode:Interactive interface, the friendship is presented Mutual interface is used to the one or more options relevant with the electronic equipment is switched into the second mode be presented.Using friendship In the case of mutual interface, this method, which may also include to receive, to be used to select the input of one in one or more of options, And selected option is performed based on the input, the electronic equipment is switched into second mode from first mode.
Alternatively, second mode is switched to may include from first mode the electronic equipment:When detecting described first When component is in the state for needing to reset, judging whether can be described to reset by sending reset indication to the first assembly First assembly, and if can not be by sending reset indication to the first assembly to reset the first assembly, by institute State electronic equipment and switch to second mode from first mode.
Alternatively, judge whether can by the first assembly send reset indication come reset the first assembly can Including:The reset indication is sent to the first assembly.If described first group of the implementing result instruction of the reset indication The replacement of part is unsuccessful, then judge can not be by sending reset indication to reset the first assembly to the first assembly.
Another aspect of the present invention provides a kind of electronic installation.The electronic installation includes state detection unit and pattern Switch unit.State detection unit is used for the working condition for detecting the first assembly of electronic equipment, and the first assembly is by institute The nextport hardware component NextPort of the processing unit control of electronic equipment is stated, and in the case where the processing unit powers off still in power supply shape State.Mode switch element is used for when the working condition for detecting the first assembly meets predetermined condition, and the electronics is set It is standby to switch to second mode from first mode, wherein, the first assembly of the electronic equipment is under the first mode Power supply state, the first assembly of the electronic equipment is in off-position under the second mode.Mode switch element is also For the electronic equipment to be returned into the first mode from the second mode, so that the working condition of the first assembly Reset.
Alternatively, the state detection unit can be additionally used in the running parameter for monitoring the first assembly.In the case, The electronic installation may also include judging unit, for judging whether the first assembly is in needs based on the running parameter The state of replacement.
Alternatively, electronic installation may also include interface display unit and input block.Interface display unit can be used for presenting Interactive interface, the interactive interface be used to presenting with by the electronic equipment to switch to the second mode relevant one or more Individual option.Input block, which can be used for receiving, to be used to select the input of one in one or more of options.In this situation Under, the mode switch element can be additionally used in:Selected option is performed based on the input, by the electronic equipment from first Pattern switching is to second mode.
Alternatively, the mode switch element can be additionally used in:The shape that resets is needed when detecting that the first assembly is in During state, judge whether can be by sending reset indication to reset the first assembly to the first assembly;And if not The first assembly can be reset by sending reset indication to the first assembly, by the electronic equipment from first mode Switch to second mode.
Alternatively, the mode switch element can be additionally used in:The reset indication is sent to the first assembly;And such as The implementing result of reset indication described in fruit indicates that the replacement of the first assembly is unsuccessful, then judging can not be by described the One component sends reset indication to reset the first assembly.
Another aspect of the present invention provides a kind of electronic equipment.The electronic equipment include first assembly, processor with And memory.Memory storage has machine-executable instruction, and the instruction is when being executed by processor so that in computing device State either method.
Another aspect of the present invention provides a kind of computer-readable recording medium.Deposited on computer-readable recording medium Executable instruction is contained, the executable instruction makes any of the above-described method of computing device when being executed by processor.
Another aspect of the present disclosure provides a kind of computer program, and the computer program includes the executable finger of computer Order, the instruction are used to realize method as described above when executed.
Brief description of the drawings
For a more complete understanding of the present invention and its advantage, referring now to the following description with reference to accompanying drawing, wherein:
Fig. 1 diagrammatically illustrates a kind of flow chart of processing method according to the embodiment of the present disclosure;
Fig. 2 diagrammatically illustrates the brief of the electronic installation for being used to realize method shown in Fig. 1 according to the embodiment of the present disclosure Block diagram;
Fig. 3 diagrammatically illustrates the schematic flow of a specific implementation of the processing method according to the embodiment of the present disclosure Figure;And
Fig. 4 diagrammatically illustrates the another of the electronic installation for being used to realize method shown in Fig. 1 in accordance with an embodiment of the present disclosure One brief block diagram.
Embodiment
Hereinafter, it will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are simply exemplary , and it is not intended to limit the scope of the present disclosure.In addition, in the following description, the description to known features and technology is eliminated, with Avoid unnecessarily obscuring the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.Used here as Word " one ", " one (kind) " and "the" etc. should also include " multiple ", the meaning of " a variety of ", unless context clearly refers in addition Go out.In addition, term " comprising " as used herein, "comprising" etc. indicate the presence of the feature, step, operation and/or part, But it is not excluded that in the presence of or other one or more features of addition, step, operation or parts.
All terms (including technology and scientific terminology) as used herein have what those skilled in the art were generally understood Implication, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Implication, without should by idealization or it is excessively mechanical in a manner of explain.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart Frame or its combination can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer, The processor of special-purpose computer or other programmable data processing units, so as to which these instructions can be with when by the computing device Create the device for realizing function/operation illustrated in these block diagrams and/or flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately Outside, the technology of the disclosure can take the form of the computer program product on the computer-readable medium for being stored with instruction, should Computer program product is available for instruction execution system use or combined command execution system to use.In the context of the disclosure In, computer-readable medium can be the arbitrary medium that can include, store, transmit, propagate or transmit instruction.For example, calculate Machine computer-readable recording medium can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium. The specific example of computer-readable medium includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Fig. 1 diagrammatically illustrates a kind of flow chart of processing method according to the embodiment of the present disclosure.
As shown in figure 1, the processing method includes operation S110, the working condition of the first assembly of electronic equipment is detected, the One component is the nextport hardware component NextPort by the processing unit control of electronic equipment, and in the case where processing unit powers off still in power supply State.
It is above-mentioned to be referred in the case where processing unit powers off still in power supply state:First assembly is transported in the electronic device OK, when electronic equipment can not make the when causing the connection of its processing unit and power supply to disconnect due to the reason such as shutting down/restarting One component power-off/reset/replacement.
In the disclosed embodiments, electronic equipment can be any kind of electronic equipment, such as mobile phone, calculate Machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment or individual digital Assistant etc..Process described herein unit can also be the device with disposal ability used in any kind of electronic equipment Part or device, for example, it is central processing unit (CPU), general processor, digital signal processor, application specific processor, reconfigurable Processor or micro controller unit (MCU) etc..First assembly as described herein can be subject to processing the control of unit.For example, in electronics Equipment is mobile phone and processing unit is in MCU some embodiments, and first assembly can be the sensor used in cell phone apparatus Or motor (such as camera motor).It should be noted that the embodiment of the present disclosure is not by electronic equipment, processing unit and first assembly Specific manifestation form limitation.
In some instances, the work that the working condition of the first assembly of electronic equipment may include to monitor first assembly is detected Parameter.In the case, whether the working condition for detecting first assembly meets that predetermined condition may include to sentence based on the running parameter Whether disconnected first assembly is in the state for needing to reset.For example, can be by the running parameter of the first assembly monitored and normal ginseng Number/parameter area is compared, and according to comparative result (for example, whether there is key parameter exception, with the presence or absence of multiple parameters Abnormal, some whether existing period of abnormal parameters etc.) judge whether first assembly needs to reset.Certainly, also may be used To detect the working condition of the first assembly of electronic equipment using other any available technological means, such as can be periodically to One component sends signal, if being not received by the response of first assembly or continuous several times do not receive the sound from first assembly Should be it is believed that first assembly is in the state for needing to reset.The embodiment of the present disclosure is not limited by specific detection mode.
At one in the specific implementation, in processing unit and first assembly by bus (for example, can lead to when being connected with MCU Cross I2C buses, or when the master cpu with electronic equipment is connected can by system bus, or by by first assembly with processing Any other bus that unit is connected) communication in the case of, such as can monitor the bus and from the bus obtain first assembly Running parameter (such as abnormal alarm or other may indicate that the parameter of first assembly operation irregularity), and determined based on the parameter First assembly is in the state for needing to reset.
In operation s 120, if detecting that the working condition of first assembly meets predetermined condition, by electronic equipment from One pattern switching is second mode, wherein, the first assembly of electronic equipment is in power supply state under first mode, under second mode The first assembly of electronic equipment is in off-position.
Switching of the first mode to second mode can be realized by any available means.For example, in one example, By electronic equipment from first mode switch to second mode when, can be automatically into the debugging mode to electronic equipment, and call The instruction disconnected of pressure first assembly and power supply under die trial formula carries out switching of the first mode to second mode.When So, it is noted that, this is only an example for realizing above-mentioned switching, can also use this area available in other examples The mode of other any power supply connections for disconnecting component.
In some instances, second mode is switched to may include from first mode electronic equipment:When detecting first group When part is in the state for needing to reset, judge whether can be by sending reset indication to reset first assembly to first assembly; And if electronic equipment can not be cut from first mode by sending reset indication to first assembly to reset first assembly It is changed to second mode.
In some instances, judge whether to wrap to reset first assembly by sending reset indication to first assembly Include:Reset indication is sent to first assembly, and if the replacement of the implementing result instruction first assembly of reset indication is unsuccessful, then Judge can not be by sending reset indication to reset first assembly to first assembly.
For example, after reset indication is being sent to first assembly, it is unsuccessful to receive replacement execution from first assembly Response and/or still receive abnormal alarm from first assembly or other may indicate that the parameter of first assembly operation irregularity, then can sentence Break can not be by sending reset indication to reset the first assembly to first assembly.Certainly, those skilled in the art generally make With or other determination methods for being readily apparent that be also possible.
With electronic equipment directly is sent into reset indication to reset from compared with first mode switches to second mode, first passing through First assembly can first assembly reset can successfully in the case of quickening failure recovery.Typically, the power-off of component To be taken more time with upper replacement of the electricity than instruction mode, thus first by reset indication come reset first assembly can be Faster fault recovery is realized under certain situation.
In some instances, the switching of first mode to second mode can be realized using interactive interface.For example, electronics is set Standby to switch to second mode to may include interactive interface is presented from first mode, the interactive interface is used to present with electronic equipment is cut The relevant one or more options of second mode are changed to, are received for selecting an option in one or more options Input, and selected option is performed based on the input, electronic equipment is switched into second mode from first mode.
Interactive interface can be presented using any interface presentation.For example, when determination can not be by first assembly When sending reset indication to reset first assembly (or in some instances, if without using reset indication, when in operation sl 10 When detecting that the working condition of first assembly meets predetermined condition), can generate on an interface and present with first assembly Notified in the relevant event of the state for needing to reset, and selectable (processing) option of presentation user on another interface.This two Individual interface can successively show, user to event notice after confirming, in response to the confirmation to user's display processing option Interface.The two interfaces can also simultaneously show or show in a manner of any other so that this area is generally adoptable.At other In example, an interface can only be presented, not only show that event notifies on the surface, display that at user option option, make Obtain user just can obtain required all information on an interface, and quickly carry out fault recovery.Option for example may include Ignoring event notice, execution pattern switching, later prompting, the switching of delay execution pattern or those skilled in the art may perform Any other option, the embodiment of the present disclosure do not limited by the particular content of option.In some instances, if weight can be used Instruction is put to reset first assembly, can also be presented whether use the option of reset indication to user, such as can be in the previously mentioned Any interface in present or presented in single interface, the embodiment of the present disclosure is not limited by specific presentation mode.
After operation S120 is completed, operation S130 is performed, electronic equipment is returned into first mode from second mode, with Reset the working condition of first assembly.
After S130 is operated, first assembly reverts to power supply state from off-position, causes first assembly to be forced weight Put and recover its normal operating conditions.Pass through the method shown in Fig. 1 so that can be manual without being carried out to the hardware of electronic equipment The electronic failure that efficient quick is realized in the case of operation (such as dismantling battery) is recovered.
Fig. 2 shows the brief block diagram for being used to realize the electronic installation of method shown in Fig. 1 according to the embodiment of the present disclosure.
As shown in Fig. 2 the electronic installation includes state detection unit 210 and mode switch element 220.
Specifically, state detection unit 210 is used for the working condition for detecting the first assembly of electronic equipment, and first assembly is The nextport hardware component NextPort controlled by the processing unit of electronic equipment, and in the case where processing unit powers off still in power supply state.
It is above-mentioned to be referred in the case where processing unit powers off still in power supply state:First assembly is transported in the electronic device OK, when electronic equipment can not make the when causing the connection of its processing unit and power supply to disconnect due to the reason such as shutting down/restarting One component power-off/reset/replacement.
Mode switch element 220 is used to detect that the working condition of first assembly meets to make a reservation in state detection unit 210 During condition, electronic equipment is switched into second mode from first mode, wherein, under first mode at the first assembly of electronic equipment The first assembly of electronic equipment is in off-position under power supply state, second mode.
Mode switch element 220 is additionally operable to electronic equipment returning to first mode from second mode, so that first assembly Working condition reset.
In the disclosed embodiments, electronic equipment can be any kind of electronic equipment, such as mobile phone, calculate Machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment or individual digital Assistant etc..Process described herein unit can also be the device with disposal ability used in any kind of electronic equipment Part or device, for example, it is central processing unit (CPU), general processor, digital signal processor, application specific processor, reconfigurable Processor or micro controller unit (MCU) etc..First assembly as described herein can be subject to processing the control of unit.For example, in electronics Equipment is mobile phone and processing unit is in MCU some embodiments, and first assembly can be the sensor used in cell phone apparatus Or motor (such as camera motor).It should be noted that the embodiment of the present disclosure is not by electronic equipment, processing unit and first assembly Specific manifestation form limitation.
In some instances, state detection unit 210 can be additionally used in the running parameter for monitoring first assembly.In this situation Under, the electronic installation shown in Fig. 2 may also include judging unit 230, for judging whether first assembly is in based on running parameter Need the state reset.For example, judging unit 230 can be by the running parameter of the first assembly monitored and normal parameter/parameter Scope is compared, and according to comparative result (for example, abnormal, abnormal with the presence or absence of multiple parameters, the ginseng with the presence or absence of key parameter Some abnormal whether existing period of number etc.) judge whether first assembly needs to reset.It is of course also possible to use its His any available technological means detects the working condition of the first assembly of electronic equipment, such as state detection unit 210 can Signal periodically is sent to first assembly, if being not received by the response of first assembly or continuous several times are not received from first Then judging unit 230 is it is believed that first assembly is in the state for needing to reset for the response of component.The embodiment of the present disclosure is not had The limitation of body detection mode.
At one in the specific implementation, in processing unit and first assembly by bus (for example, can lead to when being connected with MCU Cross I2C buses, or when the master cpu with electronic equipment is connected can by system bus, or by by first assembly with processing Any other bus that unit is connected) in the case of communication, state detection unit 210 can for example monitor the bus and total from this Line obtains the running parameter (such as abnormal alarm or other may indicate that the parameter of first assembly operation irregularity) of first assembly, and sentences Disconnected unit 230 determines that first assembly is in the state for needing to reset based on the parameter.
Switching of the first mode to second mode can be realized by any available means.For example, in one example, mould Formula switch unit 220, can be automatically into the tune to electronic equipment when electronic equipment is switched into second mode from first mode Die trial formula, and the instruction disconnected of pressure first assembly under debugging mode and power supply is called to carry out first mode to The switching of two modes.Certainly, it is noted that, this is only an example for realizing above-mentioned switching, in other examples can also The mode connected using other available any power supplys for disconnecting component of this area.
In some instances, mode switch element 220 can be additionally used in:The shape that resets is needed when detecting that first assembly is in During state, judge whether can be by sending reset indication to reset first assembly to first assembly.If can not be by One component sends reset indication to reset first assembly, and mode switch element 220 is used to switch electronic equipment from first mode For second mode.
In some instances, mode switch element 220 can also be used to send reset indication to first assembly.If replacement refers to The replacement of the implementing result instruction first assembly of order is unsuccessful, then the judgement of mode switch element 220 can not be by first group Part sends reset indication to reset first assembly.
For example, after reset indication is being sent to first assembly, if mode switch element 220 receives from first assembly Unsuccessful response is performed to replacement and/or state detection unit 210 still receives abnormal alarm from first assembly or other can The parameter of first assembly operation irregularity is indicated, then mode switch element 220 can determine whether to reset by sending to first assembly Instruct to reset the first assembly.Certainly, those skilled in the art are usually used or other judgement schemes for being readily apparent that It is possible.
With electronic equipment directly is sent into reset indication to reset from compared with first mode switches to second mode, first passing through First assembly can first assembly reset can successfully in the case of quickening failure recovery.Typically, the power-off of component To be taken more time with upper replacement of the electricity than instruction mode, thus first by reset indication come reset first assembly can be Faster fault recovery is realized under certain situation.
In some instances, the device shown in Fig. 2 may also include interface display unit 240 and input block 250.Interface is in Existing unit 240 can be used for interactive interface is presented, and interactive interface is used to present switches to second mode relevant with by electronic equipment One or more options.Input block 250, which can be used for receiving, to be used to select the input of one in one or more options. In the case, mode switch element 220 can also be used to perform selected option based on the input, by electronic equipment from first Pattern switching is to second mode.
Interactive interface can be presented using any interface presentation.For example, when the determination of mode switch element 220 can not During by sending reset indication to first assembly to reset first assembly (or in some instances, if without using reset indication, When state detection unit 210 detects that the working condition of first assembly meets predetermined condition), interface display unit 240 can be Generate and present on one interface and be in the event for needing the state reset relevant notice with first assembly, and on another interface Selectable (processing) option of presentation user.The two interfaces can successively show, user after confirming to event notice, In response to the confirmation to user's display processing options interface.The two interfaces can also simultaneously be shown or can generally be adopted with this area Any other mode is shown.In other examples, an interface can only be presented, not only show that event is led on the surface Knowing, display that at user option option so that user just can obtain required all information on an interface, and quickly Carry out fault recovery.Option for example may include to ignore event notice, execution pattern switching, remind later, postpone execution pattern and cut Change or any other option that those skilled in the art may perform, the embodiment of the present disclosure is not limited by the particular content of option System.In some instances, if reset indication can be used to reset first assembly, whether can also be presented to user using replacement Present or presented in single interface, the embodiment of the present disclosure in the option of instruction, such as any interface that can be in the previously mentioned Do not limited by specific presentation mode.
Input block 250 described herein can be any input block known in the art, include but is not limited to Mouse, keyboard or touch-sensitive input devices etc..For example, in the case of using touch-sensitive input devices, can be by input block 250 and boundary The interactive interface that face display unit 240 is presented is used together, for example, for by touch-screen in the friendship shown by the touch-screen The option to be performed is selected on mutual interface.
Below with reference to Fig. 3, a specific implementation of the processing method according to the embodiment of the present disclosure is described in detail.Need to note Meaning, shown in Fig. 3 is only the specific specific implementation of the processing method of the embodiment of the present disclosure, is not meant to its concrete operations Or details be all put into practice it is essential to the invention.
Fig. 3 shows the indicative flowchart of a specific implementation of the processing method according to the embodiment of the present disclosure.
As shown in figure 3, in operation s 310, obtain the working condition of first assembly.
For example, the working condition of first assembly can be obtained by monitoring the running parameter of first assembly.In an example In, can be by monitoring I of the processing unit (such as MCU) between first assembly2C buses and from I2C buses obtain the work of first assembly Make parameter (such as abnormal alarm or other may indicate that the parameter of first assembly operation irregularity).As described above, in other examples, Other kinds of bus is also possible.Certainly, other commonly used in the art also may be used for the method for securing component working condition For herein.
In operation S320, judge whether the working condition of first assembly meets the first predetermined condition, for example whether normally.
Such as in monitoring I2C buses, can be based on acquired work to obtain in the example of the running parameter of first assembly Parameter needs the state that resets to determine that first assembly is in.
If the working condition of first assembly is unsatisfactory for predetermined condition, for instance in the state that need not be reset, terminate Fig. 3 Shown flow.
If component is in the state for needing to reset, in operation s 330, can determine whether can be by reset indication come weight Put first assembly.If first assembly can be reset by reset indication, the flow shown in Fig. 3 terminates, if can not pass through weight Instruction is put to reset first assembly, flow is carried out to operation S340.
In S340 is operated, it can generate and be in the event for needing the state reset relevant notice with first assembly.The event Notice can be for example presented on interactive interface, or is presented by other any modes.
In S350 is operated, selectable (processing) option of presentation user, such as ignore event notice, execution pattern cuts Change, remind later, postpone any other option that execution pattern switches or those skilled in the art may perform.If grasping Make at S350 option of the selection without the replacement of first assembly, such as event notice, the flow knot shown in Fig. 3 are ignored in selection Beam.If selection is reset, flow is carried out to operation S360.
At operation S360, first assembly is switched to second mode, so that the working condition of first assembly is reset, its In, first assembly is in off-position under the second mode.
At operation S370, first assembly is switched to first mode from second mode, causes first assembly to be forced weight Put and recover its normal operating conditions, wherein, first assembly is in power supply state in the flrst mode.
Can be without being operated manually (such as dismantling battery) to the hardware of electronic equipment by the above method In the case of realize efficient quick electronic failure recover.It is noted, however, that the method shown in Fig. 3 is only basis One of embodiment of the present disclosure specific implementation, be not meant to its concrete operations or details be all put into practice it is essential to the invention. For example, in some instances, one or more in operation S330, S340 and S350 in method that can not be shown in operation diagram 3 , and in other examples, also it can add additional step in the method shown in Fig. 3.In addition, order shown in Fig. 3 is also simultaneously Do not mean that and implement the order that the embodiment of the present disclosure necessarily follows, such as in some instances, the operation of generation event notice S340 can also be performed before the operation S330 for judging whether to be reset by reset indication, and can be in user alternatively Now whether use the option of reset indication.
Fig. 4 diagrammatically illustrates the block diagram of equipment in accordance with an embodiment of the present disclosure, and it corresponds to the equipment shown in Fig. 2. Equipment shown in Fig. 4 is only an example, should not bring any restrictions to the function and use range of the embodiment of the present disclosure.
As shown in figure 4, include CPU (CPU) 401 according to the equipment 400 of the embodiment, it can be according to depositing Store up the program in read-only storage (ROM) 402 or be loaded into from storage part 408 in random access storage device (RAM) 403 Program and perform various appropriate actions and processing.In RAM 403, also it is stored with equipment 400 and operates required various journeys Sequence and data.CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405 It is also connected to bus 404.
Equipment 400 can also include be connected to I/O interfaces 405 with one or more in lower component:Including keyboard or The importation 406 of mouse etc.;Including cathode-ray tube (CRT) or liquid crystal display (LCD) etc. and loudspeaker etc. Output par, c 407;Storage part 408 including hard disk etc.;And include the network interface of LAN card or modem etc. The communications portion 409 of card.Communications portion 409 performs communication process via the network of such as internet.Driver 410 is also according to need It is connected to I/O interfaces 405.Detachable media 411, such as disk, CD, magneto-optic disk or semiconductor memory etc., according to Need to be arranged on driver 410, in order to which the computer program read from it is mounted into storage part as needed 408。
Especially, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality To apply in example, the computer program can be downloaded and installed by communications portion 409 from network, and/or from detachable media 411 are mounted.When the computer program is performed by CPU (CPU) 401, in the equipment for performing the embodiment of the present disclosure The above-mentioned function of limiting.
It should be noted that the computer-readable medium shown in the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.Calculate The more specifically example of machine readable storage medium storing program for executing can include but is not limited to:Electrically connecting, be portable with one or more wires Formula computer disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device or Above-mentioned any appropriate combination.In the disclosure, computer-readable recording medium can be any includes or storage program Tangible medium, the program can be commanded the either device use or in connection of execution system, device.And in the disclosure In, computer-readable signal media can be included in a base band or as a part of data-signal propagated of carrier wave, wherein Carry computer-readable program code.The data-signal of this propagation can take various forms, and include but is not limited to electricity Magnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium beyond storage media, the computer-readable medium can be sent, propagated or transmitted for by referring to Make execution system, device either device use or program in connection.The program included on computer-readable medium Code can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, optical cable or RF etc., or above-mentioned times The suitable combination of meaning.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the disclosure, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, a part for above-mentioned module, program segment or code include one or more use In the executable instruction of logic function as defined in realization.It should also be noted that marked at some as in the realization replaced in square frame The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also to note Anticipate, the combination of each square frame and block diagram in block diagram or flow chart or the square frame in flow chart, can use and perform regulation Function or the special hardware based system of operation realize, or the combination of specialized hardware and computer instruction can be used To realize.
Such as field programmable gate can also be used according to the method, apparatus of each embodiment of the disclosure, unit and/or module Array (FPGA), programmable logic array (PLA), on-chip system, the system on substrate, the system in encapsulation, special integrated electricity Road (ASIC) can be come in fact for carrying out the hardware such as any other rational method that is integrated or encapsulating or firmware to circuit It is existing, or realized with software, the appropriately combined of three kinds of implementations of hardware and firmware.The system can include storage device, To realize storage as described above.When realizing in such ways, used software, hardware and/or firmware be programmed or It is designed as performing the corresponding above method, step and/or function according to embodiments of the present invention.Those skilled in the art can basis It is actually needed and comes suitably by one or more of these systems and module, or a part therein or some is not using With above-mentioned implementation realize.These implementations each fall within protection scope of the present invention.
As on the other hand, the disclosure additionally provides a kind of computer-readable medium, and the computer-readable medium can be Included in equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the equipment, makes Obtain the equipment and perform method shown in Fig. 1.
As the skilled person will appreciate, for any and all purpose, such as written theory is being provided The aspect of bright book, all scopes disclosed herein are also covered by any and all possible subrange and its son The combination of scope.Any listed scope, which can be readily identified into, sufficiently to be described and enables same scope At least it is broken down into equal two parts, three parts, four parts, five parts, ten parts, etc..As nonrestrictive example, Each scope discussed herein can be easily decomposed into down 1/3rd, in 1/3rd and upper three/ One etc..Such as those skilled in the art it will also be understood that, all languages of " until ", " at least ", " being more than ", " being less than " etc. Yan Jun includes stated quantity and is the scope for referring to be broken down into subrange as discussed above therewith.Finally, As the skilled person will appreciate, scope includes each single composition.So for example, group with 1-3 unit Refer to the group with 1,2 or 3 unit.Similarly, the group with 1-5 unit refers to 1,2,3,4 or 5 unit Group, etc..
Although the present invention, art technology has shown and described in the certain exemplary embodiments with reference to the disclosure Personnel it should be understood that without departing substantially from appended claims and its equivalent restriction the spirit and scope of the present invention in the case of, A variety of changes in form and details can be carried out to the embodiment of the present disclosure.Therefore, the scope of the present invention should not necessarily be limited by above-mentioned Embodiment, but not only should be determined by appended claims, also limited by the equivalent of appended claims It is fixed.

Claims (10)

1. a kind of processing method, including:
The working condition of the first assembly of electronic equipment is detected, the first assembly is the processing unit control by the electronic equipment The nextport hardware component NextPort of system, and in the case where the processing unit powers off still in power supply state;
If detecting that the working condition of the first assembly meets predetermined condition, the electronic equipment is switched from first mode For second mode, wherein, the first assembly of the electronic equipment is in power supply state under the first mode, and described second The first assembly of the electronic equipment is in off-position under pattern;And
The electronic equipment is returned into the first mode from the second mode, so that the working condition of the first assembly Reset.
2. according to the method for claim 1, wherein, detecting the working condition of the first assembly of the electronic equipment includes: Monitor the running parameter of the first assembly;And
If detect that the working condition of the first assembly meets that predetermined condition includes:Based on described in running parameter judgement Whether first assembly is in the state for needing to reset.
3. according to the method for claim 1, wherein, the electronic equipment is switched into second mode bag from first mode Include:
When detecting that the first assembly is in the state for needing to reset, judge whether can be by sending out to the first assembly Reset indication is sent to reset the first assembly;And
If can not be by sending reset indication to the first assembly to reset the first assembly, by the electronic equipment Second mode is switched to from first mode.
4. according to the method for claim 3, wherein, judge whether can be by sending reset indication to the first assembly Include to reset the first assembly:
The reset indication is sent to the first assembly;And
If the implementing result of the reset indication indicates that the replacement of the first assembly is unsuccessful, judgement can not pass through to The first assembly sends reset indication to reset the first assembly.
5. a kind of electronic installation, including:
State detection unit, the working condition of the first assembly for detecting electronic equipment, the first assembly are by the electricity The nextport hardware component NextPort of the processing unit control of sub- equipment, and in the case where the processing unit powers off still in power supply state;With And
Mode switch element, it is used for
When the working condition for detecting the first assembly meets predetermined condition, the electronic equipment is switched from first mode For second mode, wherein, the first assembly of the electronic equipment is in power supply state under the first mode, and described second The first assembly of the electronic equipment is in off-position under pattern;And
The electronic equipment is returned into the first mode from the second mode, so that the working condition of the first assembly Reset.
6. electronic installation according to claim 5, wherein, the state detection unit is additionally operable to monitor the first assembly Running parameter,
The electronic installation also includes judging unit, is needed for judging whether the first assembly is in based on the running parameter The state to be reset.
7. electronic installation according to claim 5, wherein, the mode switch element is additionally operable to:
When detecting that the first assembly is in the state for needing to reset, judge whether can be by sending out to the first assembly Reset indication is sent to reset the first assembly;And
If can not be by sending reset indication to the first assembly to reset the first assembly, by the electronic equipment Second mode is switched to from first mode.
8. electronic installation according to claim 7, wherein, the mode switch element is additionally operable to:
The reset indication is sent to the first assembly;And
If the implementing result of the reset indication indicates that the replacement of the first assembly is unsuccessful, judgement can not pass through to The first assembly sends reset indication to reset the first assembly.
9. a kind of electronic equipment, including:
First assembly;
Processor;And
Memory, machine-executable instruction is stored with, the instruction is when being executed by processor so that computing device is according to power Profit requires the method any one of 1 to 4.
10. a kind of computer-readable recording medium, is stored thereon with executable instruction, the executable instruction is held by processor Make computing device method according to any one of claim 1 to 4 during row.
CN201710522604.6A 2017-06-30 2017-06-30 Processing method, electronic equipment, electronic installation and computer-readable recording medium Pending CN107341069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710522604.6A CN107341069A (en) 2017-06-30 2017-06-30 Processing method, electronic equipment, electronic installation and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710522604.6A CN107341069A (en) 2017-06-30 2017-06-30 Processing method, electronic equipment, electronic installation and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107341069A true CN107341069A (en) 2017-11-10

Family

ID=60219464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710522604.6A Pending CN107341069A (en) 2017-06-30 2017-06-30 Processing method, electronic equipment, electronic installation and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107341069A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687636A (en) * 2021-08-23 2021-11-23 明度智云(浙江)科技有限公司 Equipment management method, system and storage medium for industrial production

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169452A (en) * 2011-04-19 2011-08-31 惠州Tcl移动通信有限公司 Method for solving touch screen deadlock problem of mobile terminal
CN103207659A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Switching method and electronic equipment
CN104679630A (en) * 2015-02-13 2015-06-03 广东欧珀移动通信有限公司 Adjustment method and device for working mode of intelligent terminal
CN105302263A (en) * 2015-10-22 2016-02-03 成都卫士通信息产业股份有限公司 Circuit with automatic power-off restarting function in equipment failure
US20160196194A1 (en) * 2014-12-17 2016-07-07 Quanta Computer Inc. Automatic hardware recovery system
CN106201463A (en) * 2016-06-27 2016-12-07 联想(北京)有限公司 A kind of startup method of electronic equipment and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169452A (en) * 2011-04-19 2011-08-31 惠州Tcl移动通信有限公司 Method for solving touch screen deadlock problem of mobile terminal
CN103207659A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Switching method and electronic equipment
US20160196194A1 (en) * 2014-12-17 2016-07-07 Quanta Computer Inc. Automatic hardware recovery system
CN104679630A (en) * 2015-02-13 2015-06-03 广东欧珀移动通信有限公司 Adjustment method and device for working mode of intelligent terminal
CN105302263A (en) * 2015-10-22 2016-02-03 成都卫士通信息产业股份有限公司 Circuit with automatic power-off restarting function in equipment failure
CN106201463A (en) * 2016-06-27 2016-12-07 联想(北京)有限公司 A kind of startup method of electronic equipment and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687636A (en) * 2021-08-23 2021-11-23 明度智云(浙江)科技有限公司 Equipment management method, system and storage medium for industrial production
CN113687636B (en) * 2021-08-23 2022-11-08 明度智云(浙江)科技有限公司 Equipment management method, system and storage medium for industrial production

Similar Documents

Publication Publication Date Title
US7831860B2 (en) System and method for testing redundancy and hot-swapping capability of a redundant power supply
CN104637555B (en) Based on nuclear power station unit station intelligent control method and system
CN104916088B (en) A kind of fault alarm method, device and line control machine
CN103375873B (en) The control method of conditioner and device and conditioner
US20150229130A1 (en) Energy management apparatus, energy management system, and method of controlling energy management system
US9916331B2 (en) Method and device for automatically processing static test data of rail transit vehicle
CN106201521A (en) A kind of message treatment method, device and terminal unit
CN102087511A (en) Method for executing remote monitoring of electronic system by utilizing power supply
CN107291621A (en) Processing method, processing unit, medium and the electronic equipment of test case
CN109117298A (en) A kind of hardware fault restorative procedure, device and equipment
JP5313715B2 (en) Building management system
CN103282847A (en) Method and system for monitoring an industrial system involving an eye tracking system
CN104216790A (en) Part anomaly monitoring method and electronic equipment
CN107341069A (en) Processing method, electronic equipment, electronic installation and computer-readable recording medium
US11281555B2 (en) Management device, management method, and management computer program product with area screen and apparatus screen control
JP2010273457A (en) Broadband distributed power system monitor control system
CN115139850B (en) Vehicle power conversion method and device, electronic equipment and storage medium
CN108427044B (en) Method, device, equipment and storage medium for testing fault protection function
CN111407157B (en) Control method for control panel of cooking appliance and cooking appliance
CN101819823B (en) Electronic hang tag system of nuclear power plant
JP2012174019A (en) Production line progress information display system and program
CN104333744B (en) A kind of head-up display monitoring system
CN106898036A (en) Image processing method and mobile terminal
JP2012211438A (en) System and method for concrete shipping management
JP2010204924A (en) Monitoring control system and monitoring method for maintenance apparatus

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