CN107506254B - Electronic equipment control method and electronic equipment - Google Patents

Electronic equipment control method and electronic equipment Download PDF

Info

Publication number
CN107506254B
CN107506254B CN201710742265.2A CN201710742265A CN107506254B CN 107506254 B CN107506254 B CN 107506254B CN 201710742265 A CN201710742265 A CN 201710742265A CN 107506254 B CN107506254 B CN 107506254B
Authority
CN
China
Prior art keywords
electronic equipment
state information
cover
electronic device
value
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.)
Active
Application number
CN201710742265.2A
Other languages
Chinese (zh)
Other versions
CN107506254A (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

Images

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 an electronic equipment control method and electronic equipment, wherein the method obtains current state information of the electronic equipment when a use prohibition instruction aiming at an interaction device of the electronic equipment is obtained; and if the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available. Therefore, by applying the scheme of the application, the preset condition required to be met by the current state information of the electronic equipment can be reasonably set, so that when the current state information of the electronic equipment meets the condition that a system of the electronic equipment returns to a normal working state from a standby state and the electronic equipment changes from a cover closing state to a cover opening state, an instruction for forbidding use of the interaction device is not responded, the interaction device is enabled to be usable, and the problem that the interaction device cannot be used within a certain time delay when the cover of the electronic equipment is opened to enable the electronic equipment to return to the normal working state from the standby state can be solved.

Description

Electronic equipment control method and electronic equipment
Technical Field
The invention belongs to the technical field of information detection and control of electronic equipment, and particularly relates to an electronic equipment control method and electronic equipment.
Background
In an electronic device supporting Standby (MS), such as a notebook computer supporting Standby, when a user opens the electronic device from a closed state (i.e. a cover where a display/touch screen is located), an operating system of the device returns to a normal operating state from the Standby state.
Since the system returns from the standby state to the normal operating state very fast, there is uncertainty in the user's uncapping speed, for example, the user may uncap slowly, take a long time, and the like. Therefore, when the mode control software on the system judges the included angle between the cover body and the equipment base by reading the data of the angle sensor (generally reading the data at preset time intervals), the mode control software reads the data of smaller angles of 0-10 degrees and the like with probability. Once the smaller angle data is read, the mode control software may erroneously send an instruction for prohibiting the use of the keyboard and the touch screen to an Embedded Controller (EC) of the electronic device, thereby erroneously disabling the keyboard and the touch screen of the electronic device.
The mode control software generally needs 2-5 s of time to read and update the angle data again, so that for a user, when the user performs a cover opening operation to return the electronic equipment to a normal working state from a standby state, 2-5 s of time delay may exist to enable the keyboard and the touch screen not to be used, and user experience is affected.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an electronic device control method and an electronic device, which aim to solve the problem that when a cover of the electronic device is opened to return the electronic device from a standby state to a normal operating state, a keyboard and a touch screen may not be used within a certain time delay.
Therefore, the invention discloses the following technical scheme:
an electronic device control method, the electronic device comprising an interaction means, the method comprising:
when a usage prohibition instruction for the interaction device is obtained, obtaining current state information of the electronic equipment;
and if the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available.
In the above method, preferably, the electronic device further includes a cover and a base, and the interaction device is disposed on the cover and/or the base;
the obtaining current state information of the electronic device includes:
reading a first value of the first zone bit and a second value of the second zone bit from a preset storage position;
and determining the system state information of the electronic equipment corresponding to the first value of the first zone bit, and determining the opening and closing state information of the electronic equipment corresponding to the second value of the second zone bit.
The method preferably further comprises: the system state information indicates that a system of the electronic equipment returns to a normal working state from a standby state, and the cover opening and closing state information indicates that the electronic equipment changes from a cover closing state to a cover opening state;
if the current state information of the electronic device meets the predetermined condition, not responding to the usage prohibition instruction includes:
and if the current state information of the electronic equipment indicates that the system of the electronic equipment returns to the normal working state from the standby state and the electronic equipment changes from the cover closing state to the cover opening state, shielding the use forbidding instruction.
The above method, preferably, further comprises:
and clearing the first value of the first zone bit and the second value of the second zone bit after the use forbidding instruction is shielded.
The above method, preferably, further comprises:
and responding to the use forbidding instruction if the current state information of the electronic equipment does not meet the preset condition.
An electronic device, comprising:
an interaction device;
the controller is used for obtaining the current state information of the electronic equipment when the use prohibition instruction aiming at the interaction device is obtained; and when the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available.
Preferably, the electronic device further includes a cover and a base, and the interaction device is disposed on the cover and/or the base;
the controller obtains current state information of the electronic device, and specifically includes:
reading a first value of the first zone bit and a second value of the second zone bit from a preset storage position; and determining the system state information of the electronic equipment corresponding to the first value of the first zone bit, and determining the opening and closing state information of the electronic equipment corresponding to the second value of the second zone bit.
In the electronic device, preferably, the predetermined condition includes: the system state information indicates that a system of the electronic equipment returns to a normal working state from a standby state, and the cover opening and closing state information indicates that the electronic equipment changes from a cover closing state to a cover opening state;
the controller does not respond to the usage prohibition instruction when the current state information of the electronic device satisfies a predetermined condition, and specifically includes:
and shielding the use forbidding instruction when the current state information of the electronic equipment indicates that the system of the electronic equipment returns to the normal working state from the standby state and the electronic equipment changes from the cover closing state to the cover opening state.
In the electronic device, preferably, the controller is further configured to:
and clearing the first value of the first zone bit and the second value of the second zone bit after the use forbidding instruction is shielded.
Preferably, the electronic device further includes: and responding to the use forbidding instruction when the current state information of the electronic equipment does not meet the preset condition.
According to the scheme, the electronic equipment control method and the electronic equipment provided by the application obtain the current state information of the electronic equipment when the use prohibition instruction aiming at the interaction device of the electronic equipment is obtained; and if the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available. Therefore, by applying the scheme of the application, the preset condition required to be met by the current state information of the electronic equipment can be reasonably set, so that when the current state information of the electronic equipment meets the condition that a system of the electronic equipment returns to a normal working state from a standby state and the electronic equipment changes from a cover closing state to a cover opening state, an instruction for forbidding using the interaction device is not responded, the interaction device is enabled to be usable, and the problem that the interaction devices such as a keyboard and a touch screen cannot be used within a certain time delay when the cover of the electronic equipment is opened to enable the electronic equipment to return to the normal working state from the standby state can be solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a first embodiment of a method for controlling an electronic device according to the present application;
fig. 2 is a flowchart of a second embodiment of an electronic device control method provided in the present application;
fig. 3 is a flowchart of a third embodiment of a method for controlling an electronic device according to the present application;
fig. 4 is a flowchart of a fourth embodiment of a method for controlling an electronic device according to the present application;
fig. 5-6 are schematic structural diagrams of a fifth embodiment of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for controlling an electronic device, which may be applied to an electronic device having an interactive device such as a keyboard, a display screen, a touch screen, or the like, for example, a notebook computer, and the like, and referring to a flowchart of a first embodiment of the method for controlling an electronic device shown in fig. 1, the method may include the following processing steps:
and 101, obtaining the current state information of the electronic equipment when the use prohibition instruction aiming at the interaction device is obtained.
The electronic device applicable to the method of the present application is specifically a device supporting standby, and further having a cover and a base in addition to an interactive device, where the interactive device is disposed on the cover and/or the base. Taking a notebook computer as an example, the interaction device may be a device with a specific interaction function, such as a keyboard and a display screen/touch screen of the notebook computer, the cover may be a cover where the display screen/touch screen of the notebook computer is located, and the base may be a base where the keyboard, a motherboard, and the like of the notebook computer are located.
When the user opens the electronic device from the cover closing state, the operating system of the electronic device returns to the normal working state from the standby state. Generally, the speed of returning an operating system of an electronic device from a standby state to a normal operating state is very fast, and the speed of opening a cover by a user is uncertain, wherein if the speed of opening the cover by the user is slow, mode control software on the system reads smaller angle data such as 0 to 10 ° at a certain probability when judging an included angle between a cover and a device base by reading data of an angle sensor (generally, reading data at predetermined time intervals), and once such smaller angle data is read, the mode control software erroneously sends an instruction for prohibiting using an interactive device such as a keyboard and a touch screen to an embedded controller of the electronic device, so that the interactive device of the electronic device is erroneously disabled.
In order to solve the problem that when the electronic equipment returns to the normal working state from the standby state, the interactive device of the electronic equipment is disabled by mistake, so that the user cannot use the interactive device within a certain time delay, in the application, when the use prohibition instruction for the interactive device is obtained, the instruction is not responded unconditionally, but the current state information of the electronic equipment is obtained firstly, so that the problem is solved by executing corresponding processing based on the current state information of the electronic equipment.
The current state information of the electronic device may include system state information and cover opening and closing state information of the electronic device.
And 102, if the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available.
Wherein, aiming at solving the above technical problem, the preset condition may be set to specifically include: the system state information indicates that a system of the electronic equipment returns to a normal working state from a standby state, and the cover opening and closing state information indicates that the electronic equipment changes from a cover closing state to a cover opening state.
Therefore, when the current state information of the electronic equipment meets the preset condition, namely the current state information of the electronic equipment indicates that the system of the electronic equipment returns to the normal working state from the standby state, and the electronic equipment changes from the cover closing state to the cover opening state, the instruction for forbidding the use of the interaction device is not responded, so that the availability of the interaction device can be kept (the interaction device is available by default when the operating system returns to the normal working state from the standby state), and the problem that the interaction device such as a keyboard and a touch screen cannot be used within a certain time delay when the electronic equipment such as a notebook computer is opened is solved.
According to the scheme, the electronic equipment control method provided by the embodiment of the application obtains the current state information of the electronic equipment when the use prohibition instruction aiming at the interaction device of the electronic equipment is obtained; and if the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available. Therefore, by applying the scheme of the application, the preset condition required to be met by the current state information of the electronic equipment can be reasonably set, so that when the current state information of the electronic equipment meets the condition that a system of the electronic equipment returns to a normal working state from a standby state and the electronic equipment changes from a cover closing state to a cover opening state, an instruction for forbidding using the interaction device is not responded, the interaction device is enabled to be usable, and the problem that the interaction devices such as a keyboard and a touch screen cannot be used within a certain time delay when the cover of the electronic equipment is opened to enable the electronic equipment to return to the normal working state from the standby state can be solved.
In the second embodiment of the present application, referring to a flowchart of the second embodiment of the method for controlling an electronic device in the present application shown in fig. 2, the method may be implemented by the following processing procedures:
step 201, when a usage prohibition instruction for the interactive device is obtained, reading a first value of a first flag bit and a second value of a second flag bit from a predetermined storage location.
In this embodiment, status information of the electronic device is recorded by setting a flag bit at a predetermined storage location, wherein for two types of status information, namely a system status and a cover opening and closing status of the electronic device, two flag bits may be specifically set at the predetermined storage location: the first zone bit and the second zone bit are used for respectively recording the system state information and the cover opening and closing state information of the electronic equipment.
The specific state information of the operating system of the electronic device can be obtained by detecting the state of the operating system of the electronic device, and the state information of the cover opening and closing of the electronic device can be obtained by detecting the included angle between the cover body and the seat body of the electronic device, specifically, for example, the included angle between the cover body and the seat body of the electronic device can be detected by using related detecting devices such as an angle sensor.
The predetermined storage location may be, but is not limited to, a storage location provided by a register in an embedded controller of the electronic device, so that two flag bits, namely a first flag bit and a second flag bit, may be set in the register of the embedded controller.
And corresponding system state information and cover opening and closing state information of the electronic equipment can be represented by correspondingly assigning values to the first zone bit and the second zone bit. For example, the system state of the electronic device may be characterized as "returning from the standby state to the normal operating state" by assigning a certain specific value, for example, assigning "1", to the first flag bit, and the system state of the electronic device may be characterized as "returning from the standby state to the normal operating state" by assigning another specific value, for example, assigning "0", or not assigning a value to the first flag bit; similarly, the state of the open/close cover of the electronic device can be represented as "changing from the closed state to the open state" by assigning a certain specific numerical value, such as "1", to the second flag bit, and the state of the open/close cover of the electronic device can be represented as "changing from the closed state to the open state" by assigning another specific numerical value, such as "0", or without assigning a value to the second flag bit.
Therefore, in this step, when the usage prohibition instruction for the interactive device is obtained, the first value of the first flag bit and the second value of the second flag bit may be read from the predetermined storage location, so as to provide a basis for determining the current state information of the electronic device.
In the actual implementation, the embedded controller of the electronic device may be specifically used as an execution main body to implement each processing step of the method of the present application, so that in this step, the embedded controller may obtain a disable instruction for the interactive device, for example, the embedded controller may obtain the disable instruction from the mode control software of the electronic device, and read the first value of the first flag bit and the second value of the second flag bit from the register of the embedded controller on the basis of obtaining the disable instruction.
Step 202, determining the system state information of the electronic device corresponding to the first value of the first flag bit, and determining the cover opening and closing state information of the electronic device corresponding to the second value of the second flag bit.
After the first value of the first zone bit and the second value of the second zone bit are obtained, electronic equipment system state information corresponding to the first value of the first zone bit and electronic equipment cover opening and closing state information corresponding to the second value of the second zone bit can be determined based on a corresponding relation between the predefined zone bit value and the electronic equipment state.
And step 203, if the current state information of the electronic equipment indicates that the system of the electronic equipment returns to the normal working state from the standby state and the electronic equipment changes from the cover closing state to the cover opening state, shielding the use prohibition instruction.
If it is determined that the current state information of the electronic device indicates that the system of the electronic device returns to a normal working state from a standby state based on the first value of the first flag bit and the second value of the second flag bit, and the electronic device changes from a cover closing state to a cover opening state, the prohibition instruction can be shielded, so that the execution of the prohibition instruction is avoided, the keyboard, the display screen, the touch screen and other interaction devices of the electronic device can be still kept available, and the use experience of the user on the electronic device is effectively improved.
In the third embodiment of the present application, referring to the flowchart of the third embodiment of the electronic device control method of the present application shown in fig. 3, the method may further include the following steps:
and 204, clearing the first value of the first zone bit and the second value of the second zone bit after the use prohibition instruction is shielded.
After the usage prohibition instruction is masked off so that the electronic device does not erroneously prohibit the use of the electronic device interaction apparatus, the first value of the first flag bit and the second value of the second flag bit in the predetermined storage location (e.g., a register of the embedded controller) may be cleared, so that the first flag bit and the second flag bit may be re-assigned in the predetermined storage location for subsequent use, and convenience is provided for recording system state information and cover opening and closing state information of the electronic device.
In the fourth embodiment of the present application, referring to the flowchart of the fourth embodiment of the method for controlling an electronic device in the present application shown in fig. 4, the method may further include the following steps:
and 103, responding to the use prohibition instruction if the current state information of the electronic equipment does not meet the preset condition.
That is, if the current state information of the electronic device cannot represent that "the system of the electronic device returns to the normal operating state from the standby state, and the electronic device changes from the cover closing state to the cover opening state", the usage prohibition instruction needs to be normally responded, for example, when the user closes the cover of the electronic device, so that the operating system switches from the normal operating state to the standby state, the usage prohibition instruction needs to be normally responded, so as to prohibit the use of the interactive devices such as the keyboard, the display screen, the touch screen, and the like of the electronic device.
An embodiment of the present application provides an electronic device, and with reference to a schematic structural diagram of an electronic device in the present application shown in fig. 5, the electronic device may include:
an interaction device 1;
the electronic device may be a device such as a notebook computer, and the interactive device may be a device having an interactive function such as a keyboard, a display screen, or a touch screen of the notebook computer.
The controller 2 is used for obtaining the current state information of the electronic equipment when the use prohibition instruction aiming at the interaction device is obtained; and when the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available.
The controller may particularly, but not exclusively, be an embedded controller of an electronic device.
Referring to fig. 6, the electronic device may further include a cover 3 and a base 4, wherein the interaction device is disposed on the cover and/or the base. Still taking a notebook as an example, the cover body may be a cover where a display screen/touch screen of the notebook is located, and the base body may be a base where a keyboard, a motherboard, and the like of the notebook are located.
In the application, the electronic device supports standby, and when a user opens the electronic device from a cover closing state, an operating system of the electronic device returns to a normal working state from a standby state. Generally, the speed of returning an operating system of an electronic device from a standby state to a normal operating state is very fast, and the speed of opening a cover by a user is uncertain, wherein if the speed of opening the cover by the user is slow, mode control software on the system reads smaller angle data such as 0 to 10 ° at a certain probability when judging an included angle between a cover and a device base by reading data of an angle sensor (generally, reading data at predetermined time intervals), and once such smaller angle data is read, the mode control software erroneously sends an instruction for prohibiting using an interactive device such as a keyboard and a touch screen to an embedded controller of the electronic device, so that the interactive device of the electronic device is erroneously disabled.
In order to solve the problem that when the electronic device returns to the normal operating state from the standby state, the interactive device of the electronic device is disabled by mistake, so that the user cannot use the interactive device within a certain time delay, in this embodiment, when the controller obtains the instruction for disabling the interactive device, the controller does not respond to the instruction unconditionally, but first obtains the current state information of the electronic device, so as to overcome the problem by performing corresponding processing based on the current state information of the electronic device.
The current state information of the electronic device may include system state information and cover opening and closing state information of the electronic device.
In order to solve the above technical problem, the preset condition may be set to include: the system state information indicates that a system of the electronic equipment returns to a normal working state from a standby state, and the cover opening and closing state information indicates that the electronic equipment changes from a cover closing state to a cover opening state.
Therefore, when the current state information of the electronic device meets the preset condition, that is, the current state information of the electronic device indicates that the system of the electronic device returns to the normal working state from the standby state, and the electronic device changes from the cover closing state to the cover opening state, the controller does not respond to the instruction for forbidding use of the interaction device, so that the interaction device can be kept available (when the operating system returns to the normal working state from the standby state, the interaction device is available by default), and the problem that the interaction device such as a keyboard and a touch screen cannot be used within a certain time delay when the electronic device such as a notebook computer is opened is solved.
According to the scheme, the electronic equipment provided by the embodiment of the application obtains the current state information of the electronic equipment when the use prohibition instruction aiming at the interaction device of the electronic equipment is obtained; and if the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction so as to enable the interactive device to be available. Therefore, by applying the scheme of the application, the preset condition required to be met by the current state information of the electronic equipment can be reasonably set, so that when the current state information of the electronic equipment meets the condition that a system of the electronic equipment returns to a normal working state from a standby state and the electronic equipment changes from a cover closing state to a cover opening state, an instruction for forbidding using the interaction device is not responded, the interaction device is enabled to be usable, and the problem that the interaction devices such as a keyboard and a touch screen cannot be used within a certain time delay when the cover of the electronic equipment is opened to enable the electronic equipment to return to the normal working state from the standby state can be solved.
In a sixth embodiment of the present application, the obtaining, by the controller, current state information of the electronic device specifically includes:
reading a first value of the first zone bit and a second value of the second zone bit from a preset storage position; and determining the system state information of the electronic equipment corresponding to the first value of the first zone bit, and determining the opening and closing state information of the electronic equipment corresponding to the second value of the second zone bit.
In this embodiment, status information of the electronic device is recorded by setting a flag bit at a predetermined storage location, and for two types of status information, namely a system status and a cover opening and closing status of the electronic device, two flag bits may be specifically set at the predetermined storage location: the first zone bit and the second zone bit are used for respectively recording the system state information and the cover opening and closing state information of the electronic equipment.
The specific state information of the operating system of the electronic device can be obtained by detecting the state of the operating system of the electronic device, and the state information of the cover opening and closing of the electronic device can be obtained by detecting the included angle between the cover body and the seat body of the electronic device, specifically, for example, the included angle between the cover body and the seat body of the electronic device can be detected by using related detecting devices such as an angle sensor.
In this embodiment, the controller may specifically be an embedded controller of an electronic device, and the predetermined storage location may be, but is not limited to, a storage location provided by a register in the embedded controller, that is, two flag bits, namely, a first flag bit and a second flag bit, may be specifically set in the register of the embedded controller.
And corresponding system state information and cover opening and closing state information of the electronic equipment can be represented by correspondingly assigning values to the first zone bit and the second zone bit. For example, the system state of the electronic device may be characterized as "returning from the standby state to the normal operating state" by assigning a certain specific value, for example, assigning "1", to the first flag bit, and the system state of the electronic device may be characterized as "returning from the standby state to the normal operating state" by assigning another specific value, for example, assigning "0", or not assigning a value to the first flag bit; similarly, the state of the open/close cover of the electronic device can be represented as "changing from the closed state to the open state" by assigning a certain specific numerical value, such as "1", to the second flag bit, and the state of the open/close cover of the electronic device can be represented as "changing from the closed state to the open state" by assigning another specific numerical value, such as "0", or without assigning a value to the second flag bit.
In specific implementation, the embedded controller may obtain a disable instruction from mode control software of the electronic device, and read a first value of the first flag bit and a second value of the second flag bit from a register of the embedded controller on the basis of obtaining the disable instruction, so as to provide a basis for determining current state information of the electronic device.
After the first value of the first zone bit and the second value of the second zone bit are obtained, the electronic equipment system state information corresponding to the first value of the first zone bit and the electronic equipment opening and closing state information corresponding to the second value of the second zone bit can be determined continuously based on the corresponding relation between the predefined zone bit value and the electronic equipment state.
Correspondingly, when the current state information of the electronic device meets a predetermined condition, the controller does not respond to the usage prohibition instruction, and specifically includes:
and shielding the use forbidding instruction when the current state information of the electronic equipment indicates that the system of the electronic equipment returns to the normal working state from the standby state and the electronic equipment changes from the cover closing state to the cover opening state.
If it is determined that the current state information of the electronic device indicates that the system of the electronic device returns to a normal working state from a standby state based on the first value of the first flag bit and the value of the second flag bit, and the electronic device changes from a cover closing state to a cover opening state, the prohibition instruction can be shielded, so that the execution of the prohibition instruction is avoided, the interaction devices such as a keyboard, a display screen/a touch screen of the electronic device can be still kept available, and the use experience of the electronic device by the user is effectively improved in order to avoid mistakenly disabling the interaction devices of the electronic device and further avoid the problem that the user cannot use the interaction devices within a certain time delay when the cover body of the electronic device is opened and the electronic device returns from the standby state.
In an embodiment seven of the present application, the controller may be further configured to:
and clearing the first value of the first zone bit and the second value of the second zone bit after the use forbidding instruction is shielded.
Specifically, after the usage prohibition instruction is masked off so that the electronic device does not erroneously prohibit the use of the electronic device interaction apparatus, the first value of the first flag bit and the second value of the second flag bit in the predetermined storage location (e.g., a register of the embedded controller) may be cleared, so that the first flag bit and the second flag bit may be re-assigned in the predetermined storage location for subsequent evaluation, and convenience is provided for recording system state information and cover opening and closing state information of the electronic device.
In an eighth embodiment of the present application, the controller may be further configured to:
and responding to the use forbidding instruction if the current state information of the electronic equipment does not meet the preset condition.
That is, if the current state information of the electronic device cannot represent that "the system of the electronic device returns to the normal operating state from the standby state, and the electronic device changes from the cover closing state to the cover opening state", the usage prohibition instruction needs to be normally responded, for example, when the user closes the cover of the electronic device, so that the operating system switches from the normal operating state to the standby state, the usage prohibition instruction needs to be normally responded, so as to prohibit the use of the interactive devices such as the keyboard, the display screen, the touch screen, and the like of the electronic device.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. The electronic equipment control method is characterized in that the electronic equipment comprises an interaction device, a cover body and a base body; the electronic equipment obtains an included angle between the cover body and the seat body in the opening process from the cover closing state, and triggers a use forbidding instruction aiming at the interaction device in response to the result that the included angle meets the condition that the included angle is smaller;
the method comprises the following steps:
when a usage prohibition instruction for the interaction device is obtained, obtaining current state information of the electronic equipment;
and if the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction, so that the interaction device can still be used under the condition that the included angle meets the condition of representing smaller included angle.
2. The method of claim 1, wherein the interaction device is disposed on the cover and/or base;
the obtaining current state information of the electronic device includes:
reading a first value of the first zone bit and a second value of the second zone bit from a preset storage position;
and determining the system state information of the electronic equipment corresponding to the first value of the first zone bit, and determining the opening and closing state information of the electronic equipment corresponding to the second value of the second zone bit.
3. The method of claim 2, wherein the predetermined condition comprises: the system state information indicates that a system of the electronic equipment returns to a normal working state from a standby state, and the cover opening and closing state information indicates that the electronic equipment changes from a cover closing state to a cover opening state;
if the current state information of the electronic device meets the predetermined condition, not responding to the usage prohibition instruction includes:
and if the current state information of the electronic equipment indicates that the system of the electronic equipment returns to the normal working state from the standby state and the electronic equipment changes from the cover closing state to the cover opening state, shielding the use forbidding instruction.
4. The method of claim 3, further comprising:
and clearing the first value of the first zone bit and the second value of the second zone bit after the use forbidding instruction is shielded.
5. The method according to any one of claims 1-4, further comprising:
and responding to the use forbidding instruction if the current state information of the electronic equipment does not meet the preset condition.
6. An electronic device, comprising:
an interaction device;
a cover body and a seat body; the electronic equipment obtains an included angle between the cover body and the seat body in the opening process from the cover closing state, and triggers a use forbidding instruction aiming at the interaction device in response to the result that the included angle meets the condition that the included angle is smaller;
the controller is used for obtaining the current state information of the electronic equipment when the use prohibition instruction aiming at the interaction device is obtained; and when the current state information of the electronic equipment meets a preset condition, not responding to the use forbidding instruction, so that the interaction device can still be used under the condition that the included angle meets the condition of representing smaller included angle.
7. The electronic device according to claim 6, wherein the interaction means is disposed on the cover and/or the base;
the controller obtains current state information of the electronic device, and specifically includes:
reading a first value of the first zone bit and a second value of the second zone bit from a preset storage position; and determining the system state information of the electronic equipment corresponding to the first value of the first zone bit, and determining the opening and closing state information of the electronic equipment corresponding to the second value of the second zone bit.
8. The electronic device of claim 7, wherein the predetermined condition comprises: the system state information indicates that a system of the electronic equipment returns to a normal working state from a standby state, and the cover opening and closing state information indicates that the electronic equipment changes from a cover closing state to a cover opening state;
the controller does not respond to the usage prohibition instruction when the current state information of the electronic device satisfies a predetermined condition, and specifically includes:
and shielding the use forbidding instruction when the current state information of the electronic equipment indicates that the system of the electronic equipment returns to the normal working state from the standby state and the electronic equipment changes from the cover closing state to the cover opening state.
9. The electronic device of claim 8, wherein the controller is further configured to:
and clearing the first value of the first zone bit and the second value of the second zone bit after the use forbidding instruction is shielded.
10. The electronic device of any of claims 6-9, wherein the controller is further configured to: and responding to the use forbidding instruction when the current state information of the electronic equipment does not meet the preset condition.
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 CN107506254A (en) 2017-12-22
CN107506254B true 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
CN107506254A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
US10810532B2 (en) Systems and methods for access control based on machine-learning
CN105912260B (en) The startup method and mobile terminal of a kind of application program
US20170331848A1 (en) System and method of comparative evaluation for phishing mitigation
CN104364794B (en) Location-based access for portable electron device controls
US10528892B2 (en) Intelligent ranking of notifications on a user device
CN105518699A (en) Data protection based on user and gesture recognition
US20130347099A1 (en) Keyboard as biometric authentication device
CN105320542B (en) A kind of method and apparatus that mobile terminal exits abnormal interface
CN105335099A (en) Memory cleaning method and terminal
CN105049607B (en) A kind of short message display method and mobile terminal
CN105631367A (en) Terminal operation area management method and terminal
CN109144392B (en) Method and device for processing gesture conflict and electronic equipment
CN104809402A (en) Fuzzy display method for information and terminal
CN107179859A (en) The display methods and mobile terminal of a kind of detail information
CN103473013A (en) Application interface adjusting method and mobile terminal
CN104769601A (en) Method for recognition of user identity and electronic equipment
KR20190048004A (en) Method for detecting an anomalous behavior based on machine-learning and Apparatus thereof
CN105824487B (en) The display methods and device of prompt information
CN107967108A (en) The error touch control method and device of anti-gesture operation
CN104915088B (en) A kind of information processing method and electronic equipment
CN105843057A (en) Control method and electronic device
CN112654957B (en) Suspended window control method and related products
CN107506254B (en) Electronic equipment control method and electronic equipment
CN105574380A (en) Application authority management method and device for terminal
CN109710111B (en) False touch prevention 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