CN107506254A - A kind of electronic equipment control method and electronic equipment - Google Patents

A kind of electronic equipment control method and electronic equipment Download PDF

Info

Publication number
CN107506254A
CN107506254A CN201710742265.2A CN201710742265A CN107506254A CN 107506254 A CN107506254 A CN 107506254A CN 201710742265 A CN201710742265 A CN 201710742265A CN 107506254 A CN107506254 A CN 107506254A
Authority
CN
China
Prior art keywords
electronic equipment
instruction
flag bit
value
current state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710742265.2A
Other languages
Chinese (zh)
Other versions
CN107506254B (en
Inventor
刘鹏程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710742265.2A priority Critical patent/CN107506254B/en
Publication of CN107506254A publication Critical patent/CN107506254A/en
Application granted granted Critical
Publication of CN107506254B publication Critical patent/CN107506254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/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
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a kind of electronic equipment control method and electronic equipment, and methods described is obtaining when the prohibitting the use of instruction of interactive device for electronic equipment, obtaining the current state information of electronic equipment;If the current state information of the electronic equipment meets predetermined condition, be not responding to it is described prohibit the use of instruction, to enable the interactive device to be used.So as to, using application scheme, the predetermined condition that be able to need to be met by the current state information to electronic equipment is rationally set, so that the current state information in electronic equipment meets that the system of electronic equipment is back to normal operating conditions from holding state, and during condition of the electronic equipment from closing lid state change to uncapped state, it is not responding to prohibit the use of the instruction of the interactive device, to enable the interactive device to be used, so as to solve when the lid for opening electronic equipment make it that electronic equipment returns to normal operating conditions from holding state, the problem of interactive device can not be used in a fixed response time that may be present.

Description

A kind of electronic equipment control method and electronic equipment
Technical field
The invention belongs to the infomation detection of electronic equipment and control technology field, more particularly to a kind of electronic equipment controlling party Method and electronic equipment.
Background technology
In the electronic equipment for supporting standby (MS, Modern Standby), such as support in standby notebook computer, when User by electronic equipment from closing lid (lid i.e. where display screen/touch-screen) state open when, the operating system of equipment can be from Holding state is back to normal operating conditions.
It is back to from holding state that the speed of normal operating conditions is very fast, and speed is then present and user uncaps due to system Uncertainty, such as user may uncap relatively slowly, take longer etc..So as to which the Schema control software in system is passing through reading When the data of (typically reading data with predetermined time interval) angular transducer are to judge the angle of lid and plant bottom case, have general Rate reads the less angle-data such as 0~10 °.And once read the less angle-data, then it can cause pattern control Software processed sends to the embedded controller (EC, Eembedded Controller) of electronic equipment and prohibits the use of keyboard with touching by mistake The instruction of screen is touched, and then causes the keyboard and touch-screen for mistakenly disabling electronic equipment.
And Schema control software re-reads and updated the time that angle-data generally requires 2~5s, hence for user For, when its execution uncaps operation so that electronic equipment is back to normal operating conditions from holding state, may in the presence of 2~ 5s time delay can not use keyboard and touch-screen, have impact on Consumer's Experience.
The content of the invention
In view of this, it is an object of the invention to provide a kind of electronic equipment control method and electronic equipment, it is intended to solves When open electronic equipment lid cause electronic equipment from holding state return normal operating conditions when, it is understood that there may be one timing The problem of can not using keyboard and touch-screen in prolonging.
Therefore, the present invention is disclosed directly below technical scheme:
A kind of electronic equipment control method, the electronic equipment include interactive device, and methods described includes:
When prohibitting the use of instruction of the interactive device is directed to obtaining, obtains the current state information of electronic equipment;
If the current state information of the electronic equipment meets predetermined condition, be not responding to it is described prohibit the use of instruction, with Enable the interactive device is used.
The above method, it is preferred that the electronic equipment also includes lid and pedestal, and the interactive device is arranged on the lid On body and/or pedestal;
The then current state information for obtaining electronic equipment, including:
The first value of the first flag bit and the second value of the second flag bit are read from predetermined storage location;
Electronic apparatus system status information corresponding to the first value of first flag bit is determined, and determines described second Electronic equipment folding lid status information corresponding to second value of flag bit.
The above method, it is preferred that the predetermined condition includes:The system status information represent the system of electronic equipment from Holding state is back to normal operating conditions, and the folding lid status information represents electronic equipment from closing lid state change to opening Lid state;
If then the current state information of the electronic equipment meets predetermined condition, it is not responding to described prohibit the use of finger Order, including:
If the current state information of the electronic equipment represents that the system of electronic equipment is back to normal work from holding state Make state, and electronic equipment then prohibits the use of instruction from closing lid state change to uncapped state described in shielding.
The above method, it is preferred that also include:
After instruction is prohibitted the use of described in shielding, the first value of first flag bit and second mark are removed Second value of position.
The above method, it is preferred that also include:
If the current state information of the electronic equipment is unsatisfactory for the predetermined condition, finger is prohibitted the use of described in response Order.
A kind of electronic equipment, including:
Interactive device;
Controller, for being directed to when prohibitting the use of instruction of the interactive device in acquisition, obtain the current of electronic equipment Status information;When the current state information of the electronic equipment meets predetermined condition, be not responding to it is described prohibit the use of instruction, with Enable the interactive device is used.
Above-mentioned electronic equipment, it is preferred that the electronic equipment also includes lid and pedestal, and the interactive device is arranged on institute State on lid and/or pedestal;
The then controller, the current state information of electronic equipment is obtained, is specifically included:
The first value of the first flag bit and the second value of the second flag bit are read from predetermined storage location;It is it is determined that described Electronic apparatus system status information corresponding to first value of the first flag bit, and determine the second value of second flag bit Corresponding electronic equipment folding lid status information.
Above-mentioned electronic equipment, it is preferred that the predetermined condition includes:What the system status information represented electronic equipment is System is back to normal operating conditions from holding state, and the folding lid status information represents electronic equipment from closing lid state change To uncapped state;
Then the controller is not responding to described forbid when the current state information of the electronic equipment meets predetermined condition Using instruction, specifically include:
Represent that the system of electronic equipment is back to normal work from holding state in the current state information of the electronic equipment Make state, and when electronic equipment is from closing lid state change to uncapped state, instruction is prohibitted the use of described in shielding.
Above-mentioned electronic equipment, it is preferred that the controller is additionally operable to:
After instruction is prohibitted the use of described in shielding, the first value of first flag bit and second mark are removed Second value of position.
Above-mentioned electronic equipment, it is preferred that the controller, be additionally operable to:The electronic equipment current state information not Instruction is prohibitted the use of when meeting the predetermined condition, described in response.
The control method of electronic device and electronic equipment provided from above scheme, the application, electronics is directed to obtaining When prohibitting the use of instruction of the interactive device of equipment, obtain the current state information of electronic equipment;If the electronic equipment is worked as Preceding status information meets predetermined condition, then be not responding to it is described prohibit the use of instruction, to enable the interactive device to be used.So as to, Using application scheme, the predetermined condition that be able to need to be met by the current state information to electronic equipment is rationally set, made The current state information obtained in electronic equipment meets that the system of electronic equipment is back to normal operating conditions, and electricity from holding state Sub- equipment during this condition, is not responding to prohibit the use of the instruction of the interactive device from closing lid state change to uncapped state, with Enable the interactive device is used, so as to solve when the lid for opening electronic equipment causes electronic equipment to be returned from holding state During normal operating conditions, it is understood that there may be a fixed response time in the problem of can not using the interactive device such as keyboard and touch-screen.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the flow chart for a kind of electronic equipment control method embodiment one that the application provides;
Fig. 2 is the flow chart for a kind of electronic equipment control method embodiment two that the application provides;
Fig. 3 is the flow chart for a kind of electronic equipment control method embodiment three that the application provides;
Fig. 4 is the flow chart for a kind of electronic equipment control method example IV that the application provides;
Fig. 5-Fig. 6 is the structural representation for a kind of electronic equipment embodiment five that the application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiment of the present application one provide a kind of electronic equipment control method, this method can be applied to keyboard, display screen/ The electronic equipment of the interactive devices such as touch-screen, is such as particularly applicable to notebook computer, and the application with reference to shown in figure 1 is a kind of The flow chart of control method of electronic device embodiment one, this method can include following processing step:
Step 101, obtain be directed to when prohibitting the use of instruction of the interactive device, obtain the current state of electronic equipment Information.
The electronic equipment that the application method is applicable, specially support it is standby, and except including interactive device, also there is lid The equipment of body and pedestal, the interactive device are arranged on the lid and/or pedestal.By taking notebook computer as an example, the friendship Mutual device can be the device of the specific interactive function such as keyboard and display screen/touch-screen of the notebook computer, the lid Body can be the lid where display screen/touch-screen of the notebook computer, and the pedestal can be then the notebook electricity Base where the keyboard of brain, mainboard etc..
When user opens electronic equipment from closing lid state, the operating system of electronic equipment can be back to from holding state Normal operating conditions.In general, the speed that the operating system of electronic equipment is back to normal operating conditions from holding state is It is very fast, and user uncaps speed then in the presence of uncertainty, wherein, if the speed of uncapping of user is slower, in system Schema control software is judging lid by reading and (typically reading data with predetermined time interval) data of angular transducer During with the angle of plant bottom case, there is probability to read the less angle-data such as 0~10 °, once read such less angle Degrees of data, Schema control software, which can miss to send to the embedded controller of electronic equipment, prohibits the use of keyboard and touch-screen etc. to interact The instruction of device, so that mistakenly disabling the interactive device of electronic equipment.
In order to solve under the above situation, electronic equipment from holding state return normal operating conditions when, due to mistakenly prohibiting With the interactive device of electronic equipment, and the problem of cause that interactive device can not be used in the fixed response time of user one, in the application, when obtaining When prohibitting the use of instruction of the interactive device must be directed to, not unconditionally responds the instruction, but obtains electronics first and sets Standby current state information, to perform respective handling by the current state information based on electronic equipment, to overcome above mentioned problem.
Wherein, the current state information of the electronic equipment, can include the electronic equipment system status information with And folding lid status information.
If step 102, the current state information of the electronic equipment meet predetermined condition, described prohibit the use of is not responding to Instruction, to enable the interactive device to be used.
Wherein, for solving above-mentioned technical problem, the preparatory condition can be arranged to specifically include:The system mode Information represents that the system of electronic equipment is back to normal operating conditions from holding state, and the folding lid status information represents electricity Sub- equipment is from closing lid state change to uncapped state.
So as to, when the current state information of the electronic equipment meets the preparatory condition, i.e., described electronic equipment Current state information represents that the system of electronic equipment is back to normal operating conditions from holding state, and electronic equipment is from closing lid shape When state is changed to uncapped state, then the instruction for prohibitting the use of interactive device is not responding to, so as to keep the interaction dress Put it is available (operating system from holding state be back to normal operating conditions when, interactive device acquiescence is available), pen is overcome with this When remembering that the electronic equipments such as this computer are uncapped, it is understood that there may be a fixed response time in can not use the interactive device such as keyboard and touch-screen Problem.
The control method of electronic device provided from above scheme, the embodiment of the present application, electronic equipment is directed to obtaining When prohibitting the use of instruction of interactive device, obtain the current state information of electronic equipment;If the current shape of the electronic equipment State information meets predetermined condition, then be not responding to it is described prohibit the use of instruction, to enable the interactive device to be used.So as to application Application scheme, the predetermined condition that be able to need to be met by the current state information to electronic equipment are rationally set so that The current state information of electronic equipment meets that the system of electronic equipment is back to normal operating conditions from holding state, and electronics is set It is standby during this condition, to be not responding to prohibit the use of the instruction of the interactive device, to cause from closing lid state change to uncapped state The interactive device can use, so as to solve when the lid for opening electronic equipment causes electronic equipment to be returned normally from holding state During working condition, it is understood that there may be a fixed response time in the problem of can not using the interactive device such as keyboard and touch-screen.
In the embodiment of the present application two, the application a kind of electronic equipment control method embodiment two with reference to shown in figure 2 Flow chart, methods described can be realized by following processing procedure:
Step 201, obtain be directed to when prohibitting the use of instruction of the interactive device, from predetermined storage location reading first First value of flag bit and the second value of the second flag bit.
In the present embodiment, by setting flag bit in predetermined storage location come the status information of recorded electronic equipment, wherein, System mode and folding lid state this two classes status information for electronic equipment, can specifically be set in the predetermined storage location Two flag bits:First flag bit and the second flag bit, for the system status information of recorded electronic equipment and folding respectively Lid status information.
Wherein, can be by carrying out state-detection to the operating system of electronic equipment, to know electronic device system Particular state information, and detected by the angle between the lid and pedestal to electronic equipment, to know electronic equipment Folding lid status information, specifically, such as, electronic equipment lid can be detected using related detection devices such as angular transducers And the angle between pedestal.
The predetermined storage location, the register that can be, but not limited to, in the embedded controller of electronic equipment are carried The storage location of confession, so as to set in the register of the embedded controller the first flag bit and the second flag bit this two Individual flag bit.
And can be by carrying out corresponding assignment to the first flag bit, the second flag bit, to distinguish the corresponding of characterization of electronic equipment System status information and folding lid status information.Such as specifically can be by the first a certain special value of flag bit assignment, such as assigning It is worth " 1 ", the system mode for carrying out characterization of electronic equipment is " being back to normal operating conditions from holding state ", is assigned to the first flag bit It is worth other special values, such as assignment " 0 ", or not assignment, the system mode for carrying out characterization of electronic equipment is " to be back to from holding state Other states outside normal operating conditions " etc.;Similarly, can be by the second a certain special value of flag bit assignment, such as assignment " 1 ", come characterization of electronic equipment folding lid state be " from closing lid state change to uncapped state ", to the second flag bit assignment its His special value, such as assignment " 0 ", or not assignment, carry out the folding lid state of characterization of electronic equipment for " from closing lid state change to opening Other states outside lid state " etc..
So as to, in this step, when prohibitting the use of instruction of the interactive device is directed to when obtaining, can be from the predetermined storage The first value of the first flag bit and the second value of the second flag bit are read in position, to believe for electronic equipment current state The determination of breath provides foundation.
Wherein, when actually implementing, specifically using the embedded controller of electronic equipment as executive agent, to this Shen Please the various processes of method realized, so as in this step, be obtained by embedded controller and be filled for the interaction That puts prohibits the use of instruction, such as, specifically as described in embedded controller obtains the Schema control software from electronic equipment Instruction etc. is prohibitted the use of, and on the basis of instruction is prohibitted the use of described in acquisition, first mark is read from its register First value of position and the second value of the second flag bit.
Step 202, electronic apparatus system status information corresponding to the first value of first flag bit is determined, and determined Electronic equipment folding lid status information corresponding to second value of second flag bit.
After the first value and the second value of the second flag bit for obtaining first flag bit, it can be based on making an appointment Flag bit value and state of electronic equipment between corresponding relation, determine that electronics corresponding to the first value of the first flag bit is set Standby system status information, and electronic equipment folding lid status information corresponding to the second value of the second flag bit.
If the current state information of step 203, the electronic equipment represents that the system of electronic equipment returns from holding state To normal operating conditions, and electronic equipment then prohibits the use of instruction from closing lid state change to uncapped state described in shielding.
Wherein, if the second value of the first value, the second flag bit based on first flag bit, determines that electronics is set Standby current state information represents that the system of electronic equipment is back to normal operating conditions from holding state, and electronic equipment is from conjunction Lid state is changed to uncapped state, then in order to avoid mistakenly disabling the interactive device of electronic equipment, and then causes user beating Open electronic equipment lid make its from holding state return when, it is understood that there may be a fixed response time in interactive device can not be used to ask Topic, it is maskable fall it is described prohibit the use of instruction, so as to prohibit the use of the execution of instruction described in avoiding so that can still keep institute State the interactive devices such as keyboard, the display screen/touch-screen of electronic equipment can use, effectively improve user and body is used to electronic equipment Test.
In the embodiment of the present application three, the application a kind of electronic equipment control method embodiment three with reference to shown in figure 3 Flow chart, methods described can also comprise the following steps:
Step 204, after instruction is prohibitted the use of described in shielding, remove the first value of first flag bit and described Second value of the second flag bit.
Described instruction is prohibitted the use of masking so that electronic equipment does not forbid making for electronic equipment interactive device mistakenly With rear, the first value of the first flag bit in the predetermined storage location (such as the register of the embedded controller) can be removed And second flag bit the second value, with cause for subsequently in the predetermined storage location to first flag bit and second Flag bit carries out assignment again, and facility is provided with the system status information of recorded electronic equipment and folding lid status information.
In the embodiment of the present application four, the application a kind of electronic equipment control method example IV with reference to shown in figure 4 Flow chart, methods described can also comprise the following steps:
If step 103, the current state information of the electronic equipment are unsatisfactory for the predetermined condition, forbid described in response Use instruction.
That is, if the current state information of described electronic equipment can not characterize, " system of electronic equipment is returned from holding state Normal operating conditions is back to, and electronic equipment is from closing lid state change to uncapped state ", then need to forbid making described in normal response With instruction, such as, user closes the lid of electronic equipment so that operating system switches to holding state from normal operating conditions When, need to prohibit the use of instruction described in normal response, to forbid to interactive devices such as the keyboard of electronic equipment and display screen/touch-screens Use.
The embodiment of the present application five provides a kind of electronic equipment, the structure of the application a kind of electronic equipment with reference to shown in figure 5 Schematic diagram, the electronic equipment can include:
Interactive device 1;
Wherein, the electronic equipment can be specifically the equipment such as notebook computer, and the interactive device can be then notes The keyboard of this computer, display screen/touch-screen etc. have the device of interactive function.
Controller 2, for being directed to when prohibitting the use of instruction of the interactive device in acquisition, obtain the current of electronic equipment Status information;When the current state information of the electronic equipment meets predetermined condition, be not responding to it is described prohibit the use of instruction, with Enable the interactive device is used.
The control implement body can be but not limited to the embedded controller of electronic equipment.
With reference to figure 6, the electronic equipment can also include lid 3 and pedestal 4, wherein, the interactive device is arranged on institute State on lid and/or pedestal.Still by taking notebook as an example, the lid can be display screen/touch-screen of the notebook computer The lid at place, the pedestal can be then the bases where keyboard, mainboard of the notebook computer etc..
In the application, the electronic equipment support is standby, and when user opens electronic equipment from closing lid state, electronics is set Standby operating system can be back to normal operating conditions from holding state.In general, the operating system of electronic equipment is from standby The speed that state is back to normal operating conditions is very fast, and user uncaps speed then in the presence of uncertainty, wherein, if The speed of uncapping of user is slower, then the Schema control software in system (is typically reading number by reading with predetermined time interval According to) data of angular transducer to judge the angle of lid and plant bottom case when, there is probability to read the less angle such as 0~10 ° Degrees of data, once reading such less angle-data, Schema control software can miss the embedded controller to electronic equipment The instruction for prohibitting the use of the interactive device such as keyboard and touch-screen is sent, so that mistakenly disabling the interaction dress of electronic equipment Put.
In order to solve under the above situation, electronic equipment from holding state return normal operating conditions when, due to mistakenly prohibiting With the interactive device of electronic equipment, and the problem of cause that interactive device can not be used in the fixed response time of user one, in the present embodiment, when Controller obtains and is directed to when prohibitting the use of instruction of the interactive device, not unconditionally responds the instruction, but obtain first The current state information of electronic equipment is obtained, to perform respective handling by the current state information based on electronic equipment, to overcome Above mentioned problem.
Wherein, the current state information of the electronic equipment, can include the electronic equipment system status information and Folding lid status information.
For solving above-mentioned technical problem, the preparatory condition can be arranged to include:The system status information represents The system of electronic equipment is back to normal operating conditions from holding state, and the folding lid status information represent electronic equipment from Closing lid state change is to uncapped state.
So as to, when the current state information of the electronic equipment meets the preparatory condition, i.e., described electronic equipment Current state information represents that the system of electronic equipment is back to normal operating conditions from holding state, and electronic equipment is from closing lid shape When state is changed to uncapped state, then controller is not responding to the instruction for prohibitting the use of interactive device, so as to keep described Interactive device it is available (operating system from holding state be back to normal operating conditions when, interactive device acquiescence is available), with this gram When having taken the electronic equipments such as notebook computer and having uncapped, it is understood that there may be a fixed response time in can not use the interaction such as keyboard and touch-screen The problem of device.
The electronic equipment provided from above scheme, the embodiment of the present application, obtaining the interaction dress for electronic equipment Put when prohibitting the use of instruction, obtain the current state information of electronic equipment;If the current state information of the electronic equipment is expired Sufficient predetermined condition, then be not responding to it is described prohibit the use of instruction, to enable the interactive device to be used.So as to using the application side Case, the predetermined condition that be able to need to be met by the current state information to electronic equipment are rationally set so that in electronic equipment Current state information meet that the system of electronic equipment is back to normal operating conditions from holding state, and electronic equipment is from closing lid During state change to this condition of uncapped state, it is not responding to prohibit the use of the instruction of the interactive device, to cause the interaction Device can use, so as to solve when the lid for opening electronic equipment causes electronic equipment to return to normal operating conditions from holding state When, it is understood that there may be a fixed response time in the problem of can not using the interactive device such as keyboard and touch-screen.
In the embodiment of the present application six, the controller, the current state information of electronic equipment is obtained, is specifically included:
The first value of the first flag bit and the second value of the second flag bit are read from predetermined storage location;It is it is determined that described Electronic apparatus system status information corresponding to first value of the first flag bit, and determine the second value of second flag bit Corresponding electronic equipment folding lid status information.
In the present embodiment, by setting flag bit in predetermined storage location come the status information of recorded electronic equipment, for This two classes status information of the system mode and folding lid state of electronic equipment, specifically it can set two in the predetermined storage location Flag bit:First flag bit and the second flag bit, for the system status information and folding lid of recorded electronic equipment respectively State information.
Wherein, can be by carrying out state-detection to the operating system of electronic equipment, to know electronic device system Particular state information, and detected by the angle between the lid and pedestal to electronic equipment, to know electronic equipment Folding lid status information, specifically, such as, electronic equipment lid can be detected using related detection devices such as angular transducers And the angle between pedestal.
It is described to control the embedded controller that implement body be electronic equipment, the predetermined storage position in the present embodiment Put, the storage location that the register that can be, but not limited to, in embedded controller is provided, i.e., specifically can be in the insertion First flag bit and the second flag bit the two flag bits are set in the register of formula controller.
And can be by carrying out corresponding assignment to the first flag bit, the second flag bit, to distinguish the corresponding of characterization of electronic equipment System status information and folding lid status information.Such as specifically can be by the first a certain special value of flag bit assignment, such as assigning It is worth " 1 ", the system mode for carrying out characterization of electronic equipment is " being back to normal operating conditions from holding state ", is assigned to the first flag bit It is worth other special values, such as assignment " 0 ", or not assignment, the system mode for carrying out characterization of electronic equipment is " to be back to from holding state Other states outside normal operating conditions " etc.;Similarly, can be by the second a certain special value of flag bit assignment, such as assignment " 1 ", come characterization of electronic equipment folding lid state be " from closing lid state change to uncapped state ", to the second flag bit assignment its His special value, such as assignment " 0 ", or not assignment, carry out the folding lid state of characterization of electronic equipment for " from closing lid state change to opening Other states outside lid state " etc..
In the specific implementation, it can be obtained from electronic equipment Schema control software by embedded controller and forbidden making With instruction, and on the basis of instruction is prohibitted the use of described in acquisition, the first of first flag bit is read from its register Second value of value and the second flag bit, to cause the determination for electronic equipment current state information to provide foundation.
After the first value and the second value of the second flag bit for obtaining first flag bit, it can continue based on advance Corresponding relation between the flag bit value and state of electronic equipment of agreement, determine electric corresponding to the first value of the first flag bit Sub- device systems status information, and electronic equipment folding lid status information corresponding to the second value of the second flag bit.
Accordingly, the controller is not responding to when the current state information of the electronic equipment meets predetermined condition It is described to prohibit the use of instruction, specifically include:
Represent that the system of electronic equipment is back to normal work from holding state in the current state information of the electronic equipment Make state, and when electronic equipment is from closing lid state change to uncapped state, instruction is prohibitted the use of described in shielding.
Wherein, if the value of the first value, the second flag bit based on first flag bit, determines electronic equipment Current state information represents that the system of electronic equipment is back to normal operating conditions from holding state, and electronic equipment is from closing lid shape State is changed to uncapped state, then in order to avoid mistakenly disabling the interactive device of electronic equipment, and then causes user opening electricity Sub- equipment lid make its from holding state return when, it is understood that there may be a fixed response time in the problem of can not using interactive device, can Instruction is prohibitted the use of described in masking, so as to avoid the execution for prohibitting the use of instruction so that can still keep the electricity The interactive devices such as the keyboard of sub- equipment, display screen/touch-screen can use, and effectively improve usage experience of the user to electronic equipment.
In the embodiment of the present application seven, the controller can be also used for:
After instruction is prohibitted the use of described in shielding, the first value of first flag bit and second mark are removed Second value of position.
Specifically, described instruction is prohibitted the use of masking so that electronic equipment does not mistakenly forbid electronic equipment to interact After the use of device, it can remove in the predetermined storage location (such as the register of the embedded controller) the first flag bit Second value of the first value and the second flag bit, subsequently indicated with causing in the predetermined storage location to described first Position and the second flag bit carry out assignment again, are provided just with the system status information of recorded electronic equipment and folding lid status information Profit.
In the embodiment of the present application eight, the controller can be also used for:
If the current state information of the electronic equipment is unsatisfactory for the predetermined condition, finger is prohibitted the use of described in response Order.
That is, if the current state information of described electronic equipment can not characterize, " system of electronic equipment is returned from holding state Normal operating conditions is back to, and electronic equipment is from closing lid state change to uncapped state ", then need to forbid making described in normal response With instruction, such as, user closes the lid of electronic equipment so that operating system switches to holding state from normal operating conditions When, need to prohibit the use of instruction described in normal response, to forbid to interactive devices such as the keyboard of electronic equipment and display screen/touch-screens Use.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For convenience of description, describe to be divided into various modules when system above or device with function or unit describes respectively. Certainly, the function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical scheme essence of the application On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment (can be personal computer, server, either network equipment etc.) performs some of each embodiment of the application or embodiment Method described in part.
Finally, it is to be noted that, herein, the relational terms of such as first, second, third and fourth or the like It is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily requires or imply these Any this actual relation or order be present between entity or operation.Moreover, term " comprising ", "comprising" or its is any Other variants are intended to including for nonexcludability, so that process, method, article or equipment including a series of elements Not only include those key elements, but also the other element including being not expressly set out, or also include for this process, side Method, article or the intrinsic key element of equipment.In the absence of more restrictions, limited by sentence "including a ..." Key element, it is not excluded that other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. a kind of electronic equipment control method, it is characterised in that the electronic equipment includes interactive device, and methods described includes:
When prohibitting the use of instruction of the interactive device is directed to obtaining, obtains the current state information of electronic equipment;
If the current state information of the electronic equipment meets predetermined condition, be not responding to it is described prohibit the use of instruction, to cause The interactive device can use.
2. according to the method for claim 1, it is characterised in that the electronic equipment also includes lid and pedestal, the friendship Mutual device is arranged on the lid and/or pedestal;
The then current state information for obtaining electronic equipment, including:
The first value of the first flag bit and the second value of the second flag bit are read from predetermined storage location;
Electronic apparatus system status information corresponding to the first value of first flag bit is determined, and determines second mark Electronic equipment folding lid status information corresponding to second value of position.
3. according to the method for claim 2, it is characterised in that the predetermined condition includes:The system status information table Show that the system of electronic equipment is back to normal operating conditions from holding state, and the folding lid status information represents electronic equipment From closing lid state change to uncapped state;
If then the current state information of the electronic equipment meets predetermined condition, be not responding to it is described prohibit the use of instruction, Including:
If the current state information of the electronic equipment represents that the system of electronic equipment is back to normal work shape from holding state State, and electronic equipment then prohibits the use of instruction from closing lid state change to uncapped state described in shielding.
4. according to the method for claim 3, it is characterised in that also include:
After instruction is prohibitted the use of described in shielding, the first value of first flag bit and second flag bit are removed Second value.
5. according to the method described in claim any one of 1-4, it is characterised in that also include:
If the current state information of the electronic equipment is unsatisfactory for the predetermined condition, instruction is prohibitted the use of described in response.
6. a kind of electronic equipment, it is characterised in that including:
Interactive device;
Controller, for being directed to when prohibitting the use of instruction of the interactive device in acquisition, obtain the current state of electronic equipment Information;When the current state information of the electronic equipment meets predetermined condition, be not responding to it is described prohibit the use of instruction, to cause The interactive device can use.
7. electronic equipment according to claim 6, it is characterised in that the electronic equipment also includes lid and pedestal, institute Interactive device is stated to be arranged on the lid and/or pedestal;
The then controller, the current state information of electronic equipment is obtained, is specifically included:
The first value of the first flag bit and the second value of the second flag bit are read from predetermined storage location;Determine described first Electronic apparatus system status information corresponding to first value of flag bit, and determine that the second value of second flag bit is corresponding Electronic equipment folding lid status information.
8. electronic equipment according to claim 7, it is characterised in that the predetermined condition includes:The system mode letter Breath represents that the system of electronic equipment is back to normal operating conditions from holding state, and the folding lid status information represents electronics Equipment is from closing lid state change to uncapped state;
Then the controller is not responding to described prohibit the use of when the current state information of the electronic equipment meets predetermined condition Instruction, is specifically included:
Represent that the system of electronic equipment is back to normal work shape from holding state in the current state information of the electronic equipment State, and when electronic equipment is from closing lid state change to uncapped state, instruction is prohibitted the use of described in shielding.
9. electronic equipment according to claim 8, it is characterised in that the controller is additionally operable to:
After instruction is prohibitted the use of described in shielding, the first value of first flag bit and second flag bit are removed Second value.
10. according to the electronic equipment described in claim any one of 6-9, it is characterised in that the controller, be additionally operable to:Institute When stating the current state information of electronic equipment and being unsatisfactory for the predetermined condition, instruction is prohibitted the use of described in response.
CN201710742265.2A 2017-08-25 2017-08-25 Electronic equipment control method and electronic equipment Active CN107506254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710742265.2A CN107506254B (en) 2017-08-25 2017-08-25 Electronic equipment control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710742265.2A CN107506254B (en) 2017-08-25 2017-08-25 Electronic equipment control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107506254A true CN107506254A (en) 2017-12-22
CN107506254B CN107506254B (en) 2021-07-16

Family

ID=60693615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710742265.2A Active CN107506254B (en) 2017-08-25 2017-08-25 Electronic equipment control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107506254B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1707399A (en) * 2004-06-11 2005-12-14 国际商业机器公司 Portable electronic apparatus having an openable lid, program product and method of controlling portable electronic apparatus
CN104049744A (en) * 2013-03-14 2014-09-17 三星电子株式会社 Method and apparatus for operating electronic device with cover
CN105159458A (en) * 2015-09-01 2015-12-16 上海斐讯数据通信技术有限公司 Automatic start-stop control method for gesture function of mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1707399A (en) * 2004-06-11 2005-12-14 国际商业机器公司 Portable electronic apparatus having an openable lid, program product and method of controlling portable electronic apparatus
CN104049744A (en) * 2013-03-14 2014-09-17 三星电子株式会社 Method and apparatus for operating electronic device with cover
CN105159458A (en) * 2015-09-01 2015-12-16 上海斐讯数据通信技术有限公司 Automatic start-stop control method for gesture function of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN107506254B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN104067289B (en) Hide accelerometer signal
JP6002226B2 (en) Formula input for limited display devices
CN103713829B (en) System switching method, device and electronic equipment
CN104111870B (en) Interrupt processing device and method
CN106940652A (en) Method for controlling application program and mobile terminal
CN210119760U (en) Electronic device and electronic system
CN103034448A (en) Unlocking method and terminal
CN104769601A (en) Method for recognition of user identity and electronic equipment
CN107292168A (en) Detect method and device, the server of program code
CN105224216B (en) A kind of user terminal control method and user terminal
CN104407793B (en) Touch signal processing method and equipment
CN107491300A (en) The reminding method and its terminal of a kind of intelligent function
CN106650383A (en) Terminal control method and terminal control device
CN105991415A (en) Message pushing method and mobile terminal
CN109241302A (en) A kind of comment authorization method, device and the terminal device of online course
CN104750575B (en) The restoring method and device of a kind of mobile terminal operating system
CN103941976B (en) A kind of information processing method and electronic equipment
CN108009073A (en) By method, terminal and the computer-readable recording medium of daily record reproduction touch trajectory
CN103970255B (en) A kind of information processing method and electronic equipment
CN104680089B (en) A kind of electronic equipment and system switching method
CN107506254A (en) A kind of electronic equipment control method and electronic equipment
CN106550364A (en) A kind of method and terminal of control WIFI access rights
CN106201551A (en) A kind of application program exits method and device
CN104699535B (en) A kind of information processing method and electronic equipment
CN103870113B (en) Information processing method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant