CN114237379A - Control method, device and equipment of electronic equipment and storage medium - Google Patents
Control method, device and equipment of electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114237379A CN114237379A CN202010941565.5A CN202010941565A CN114237379A CN 114237379 A CN114237379 A CN 114237379A CN 202010941565 A CN202010941565 A CN 202010941565A CN 114237379 A CN114237379 A CN 114237379A
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- less
- execute
- distance range
- target distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000009471 action Effects 0.000 claims abstract description 30
- 230000007958 sleep Effects 0.000 claims abstract description 24
- 238000005259 measurement Methods 0.000 claims description 54
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006266 hibernation Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 8
- 238000013461 design Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 239000000835 fiber Substances 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000004438 eyesight Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3215—Monitoring of peripheral devices
- G06F1/3218—Monitoring of peripheral devices of display devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3296—Power saving characterised by the action undertaken by lowering the supply or operating voltage
Abstract
The application discloses a control method, a control device, control equipment and a storage medium of electronic equipment. The method comprises the following steps: acquiring a distance value detected by a distance measuring module in real time; determining the measuring duration corresponding to all the distance values continuously positioned in the same target distance range; controlling the electronic equipment to execute corresponding operation according to the measuring duration and the target distance range; the operations include at least: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
Description
Technical Field
The present invention relates to the field of electronic devices, and more particularly, to a method for controlling an electronic device, a control apparatus for an electronic device, and a computer-readable storage medium.
Background
At present, as shown in fig. 1, a conventional notebook computer is provided with a microphone sound hole a, a camera indicator light B, a camera C, a permanent magnet D, a power key E, and a hall chip F. The power key E is used to implement the functions of power-on, power-off, restart, wakeup, and sleep/sleep. The permanent magnet D is matched with the Hall chip F to realize the lid function, so that the notebook computer is determined to be in an open lid state or a close lid state, and the notebook computer is further controlled to execute any one of sleeping, sleeping and awakening without any operation.
Wherein, the lid function represents that: the high and low levels are triggered by the mutual approaching or leaving of the Hall chip and the permanent magnet so as to determine whether the notebook computer is in a cover closing state or a cover opening state.
However, since the notebook computer needs to be provided with the microphone sound hole a, the camera indicator light B, the camera C, the permanent magnet D, the power key E, and the hall chip F, on one hand, the hardware cost of the notebook computer is high, and on the other hand, the design difficulty of the notebook computer is increased due to the need to reserve a space on the notebook computer to provide corresponding components.
Disclosure of Invention
It is an object of the present application to provide a new control scheme for an electronic device.
According to a first aspect of the present application, a method for controlling an electronic device is provided, where a distance measurement module is disposed on one side of a display screen of the electronic device, and the method includes:
acquiring a distance value detected by the distance measuring module in real time;
determining the measuring duration corresponding to all the distance values continuously positioned in the same target distance range;
controlling the electronic equipment to execute corresponding operation according to the measuring duration and the target distance range; the operations include at least: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
Optionally, the controlling the electronic device to execute corresponding operations according to the measurement duration and the target distance range includes:
determining that the electronic equipment is in an uncapped state under the condition that the target distance range is greater than or equal to 0cm and less than 0.5cm and the measurement time is greater than 10 s;
when the electronic equipment is in a state of opening a cover and closing the cover, the target distance range is more than 0cm and less than 0.3cm, and the measurement time is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a starting operation;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 10cm, and the measurement duration is greater than 10ms and less than 50ms, the electronic equipment is controlled to execute a shutdown operation under the condition that preset times continuously occur;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 0.2cm, and the measurement time is greater than 3s, controlling the electronic equipment to execute an operation matched with cover closing; the operation of closing and matching the electronic equipment cover comprises the following steps: any one of hibernation, sleep, power off, no action taken;
controlling the electronic equipment to execute awakening operation under the conditions that the electronic equipment is in a dormant or sleeping state and the electronic equipment is determined to be in an uncapped state;
and under the conditions that the electronic equipment is in a starting state, the target distance range is more than 0cm and less than 0.3cm, and the measurement duration is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a restarting operation.
Optionally, the method further includes:
providing an input interface;
and determining the operation matched with the electronic equipment for closing the cover according to the identification input through the input interface.
Optionally, the method further includes:
and controlling the electronic equipment to execute protection operation under the condition that the electronic equipment is in a starting state, the target distance range is greater than or equal to 0.2cm and less than 40cm, and the measurement time is greater than 3 s.
Optionally, the protection operation is any one of the following operations: and outputting prompt information, black screen and screen turning.
Optionally, the distance measuring module is a TOF laser distance measuring sensor, and the electronic device is a notebook computer.
According to a second aspect of the present application, there is provided a control apparatus for an electronic device, a distance measurement module is provided on one side of a display screen of the electronic device, the apparatus includes:
the acquisition module is used for acquiring the distance value detected by the distance measurement module in real time;
the determining module is used for determining the measuring time lengths corresponding to all the distance values continuously positioned in the same target distance range;
the control module is used for controlling the electronic equipment to execute corresponding operation according to the measuring duration and the target distance range; the operations include at least: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
Optionally, the control module is specifically configured to:
determining that the electronic equipment is in an uncapped state under the condition that the target distance range is greater than or equal to 0cm and less than 0.5cm and the measurement time is greater than 10 s;
when the electronic equipment is in a state of opening a cover and closing the cover, the target distance range is more than 0cm and less than 0.3cm, and the measurement time is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a starting operation;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 10cm, and the measurement duration is greater than 10ms and less than 50ms, the electronic equipment is controlled to execute a shutdown operation under the condition that preset times continuously occur;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 0.2cm, and the measurement time is greater than 3s, controlling the electronic equipment to execute an operation matched with cover closing; the operation of closing and matching the electronic equipment cover comprises the following steps: any one of hibernation, sleep, power off, no action taken;
controlling the electronic equipment to execute awakening operation under the conditions that the electronic equipment is in a dormant or sleeping state and the electronic equipment is determined to be in an uncapped state;
and under the conditions that the electronic equipment is in a starting state, the target distance range is more than 0cm and less than 0.3cm, and the measurement duration is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a restarting operation.
According to a third aspect of the present application, there is provided an electronic device, a display screen side of which is provided with a ranging module, the electronic device comprising the apparatus according to the second aspect; alternatively, the first and second electrodes may be,
comprising a memory for storing computer instructions and a processor for invoking the computer instructions from the memory for performing the method according to any of the first aspects.
According to a third aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of the first aspects.
In the embodiment of the application, a distance measuring module is arranged on one side of a display screen of the electronic equipment. And the user executes the induction action to control the distance value detected by the distance measuring module in real time and the measuring time length. On the basis, the distance value detected by the distance measuring module in real time is obtained, then the measuring time length corresponding to all the distance values continuously located in the same target distance range is determined, and finally the electronic equipment is controlled to execute corresponding operation according to the measuring time length and the target distance range. Wherein the operations at least comprise: sleep, hibernate, restart, do not take any action, power on, power off, wake up. That is, the user performs different sensing actions, so that the electronic device can perform any one of sleep, hibernation, restart, no operation, power on, power off, and wake up. Therefore, by arranging the distance measuring module, the electronic equipment is not required to be provided with the power key, the permanent magnet and the Hall chip, and the number of parts required to be arranged by the electronic equipment is reduced. Therefore, the hardware cost of the electronic equipment can be reduced, and the design difficulty of the electronic equipment is reduced.
Further features of the present application and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which is to be read in connection with the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic structural diagram of a conventional electronic apparatus;
fig. 2 is a block diagram of a hardware configuration of an electronic device according to a control method of the electronic device provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a machine position provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of a control device of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device provided in an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration embodiment >
Fig. 2 is a block diagram of a hardware configuration of an electronic device according to a control method of the electronic device provided in an embodiment of the present application.
The electronic device 2000 may be an electronic device such as a notebook computer, a personal digital assistant, or the like.
The electronic device 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, an input device 2600, a speaker 2700, a microphone 2800, a ranging module 2900, and so forth. The processor 2100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 2200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 2300 includes, for example, a USB interface, a headphone interface, and the like. Communication device 2400 is capable of wired or wireless communication, for example. The display device 2500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 2600 may include, for example, a touch screen, a keyboard, and the like. A user can input/output voice information through the speaker 2700 and the microphone 2800.
Although a plurality of devices are shown in fig. 1 for each of the electronic devices 2000, the present application may refer to only some of the devices, for example, the electronic device 2000 refers only to the memory 2200 and the processor 2100.
In an embodiment of the present application, the ranging module 2900 is configured to detect a distance, and the memory 2200 of the electronic device 2000 is configured to store instructions for controlling the processor 2100 to execute the method for controlling the electronic device according to the embodiment of the present application.
In the above description, the skilled person can design the instructions according to the solution disclosed in the present application. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< method examples >
The embodiment of the application provides a control method of an electronic device, and an execution subject of the method can be the electronic device 2000 shown in fig. 2. The electronic equipment can be a notebook computer, and a distance measuring module is arranged on one side of a display screen of the electronic equipment.
In one example, the ranging module may be located side-by-side with a camera on the electronic device.
As shown in fig. 3, the method for controlling an electronic device according to the embodiment of the present application includes the following steps S3100 to S3300:
s3100, obtaining a distance value detected by the distance measuring module in real time.
In one example, the ranging module may be a TOF (Time of flight) laser ranging sensor. Of course, the distance measuring module can also be a distance measuring module in other forms, such as an ultrasonic distance measuring sensor, an infrared distance measuring sensor and the like.
S3200, determining the measuring duration corresponding to all the distance values continuously positioned in the same target range.
In an embodiment of the present application, the specific implementation of S3200 may be: determining the period of the distance detection module for detecting the distance; counting the number of all distance values continuously positioned in the same target distance range; and determining the product of the period and the number as the measuring time length corresponding to all the distance values continuously positioned in the same target distance range.
In the embodiment of the application, the user can execute the sensing action to control the distance value detected by the distance measuring module in real time and the measuring time length.
In one example, the user may place the hand about 5cm from the ranging module and stay for about 20 ms. In this case, the user may control the ranging module to detect a distance value of about 5cm in real time, and control the electronic device to determine a measurement duration of about 20 ms.
And S3300, controlling the electronic equipment to execute corresponding operation according to the measuring time length and the target distance range. Wherein the operations at least comprise: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
In one embodiment, the electronic device divides a plurality of distance ranges in advance, and sets a duration range corresponding to each distance range. Meanwhile, an operation to be executed by the electronic device is set for a distance range and a corresponding duration range. The operations include at least: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
On the basis of the above contents, after the electronic device acquires the distance value detected by the distance measurement module, the distance range corresponding to the distance value is selected from a plurality of previously divided distance ranges to serve as the target distance range. Meanwhile, determining the measuring time length corresponding to all the distance values continuously positioned in the same target distance range, and determining the time length range in which the measuring time length is positioned. And taking the operation matched with the target distance range and the duration range in which the measurement duration is positioned as the operation required to be executed by the electronic equipment. And then controlling the electronic equipment to execute the operation required to be executed by the electronic equipment.
In one embodiment, the number of consecutive occurrences may also be set for the one distance range and the corresponding duration range. And setting the operation required to be executed by different electronic equipment for different continuous occurrence times. Wherein, continuously defines that the time interval between two adjacent times is within the preset time period.
In an example, the current state of the electronic device may be further set for the one distance range and the corresponding duration range, and for different current states, operations that need to be performed by different electronic devices may be set. The current state may illustratively be any one of a power-on state, a power-off state, a cover-closing state, an uncovering state, a sleeping state, and a sleeping state.
In the embodiment of the application, a distance measuring module is arranged on one side of a display screen of the electronic equipment. And the user executes the induction action to control the distance value detected by the distance measuring module in real time and the measuring time length. On the basis, the distance value detected by the distance measuring module in real time is obtained, then the measuring time length corresponding to all the distance values continuously located in the same target distance range is determined, and finally the electronic equipment is controlled to execute corresponding operation according to the measuring time length and the target distance range. Wherein the operations at least comprise: sleep, hibernate, restart, do not take any action, power on, power off, wake up. That is, the user performs different sensing actions, so that the electronic device can perform any one of sleep, hibernation, restart, no operation, power on, power off, and wake up. Therefore, by arranging the distance measuring module, the electronic equipment is not required to be provided with the power key, the permanent magnet and the Hall chip, and the number of parts required to be arranged by the electronic equipment is reduced. Therefore, the hardware cost of the electronic equipment can be reduced, and the design difficulty of the electronic equipment is reduced.
In addition, the distance measuring module can be arranged at the position of the permanent magnet of the traditional electronic equipment, so that the design of the traditional electronic equipment can be used for reference, and the design difficulty of the electronic equipment is further reduced.
Based on the above, after the control method of the electronic device provided in the embodiment of the present application is used, the structure of the electronic device may be exemplarily shown in fig. 4. Compared with the figure 1, the electronic equipment is only provided with one ranging module G, and a power supply key, a permanent magnet and a Hall chip are not required to be arranged.
In one embodiment, the above S3300 may be implemented specifically by the following steps:
s3310, determining that the electronic equipment is in an uncapping state under the conditions that the target distance range is greater than or equal to 0cm and less than 0.5cm and the measurement time is greater than 10S.
In one embodiment of the present application, a user manually opens the upper cover of the electronic device, places a hand in the ranging direction of the ranging module, and continues the action for more than 10s, where the distance value is greater than or equal to 0cm and less than 0.5cm from the ranging module.
On the basis, the electronic equipment determines that the target distance range is greater than or equal to 0cm and less than 0.5cm, the measuring time is greater than 10s, and at the moment, the electronic equipment determines that the electronic equipment is in an uncovering state.
S3320, controlling the electronic equipment to execute the startup operation under the conditions that the electronic equipment is in a state of opening a cover and closing the cover, the target distance range is more than 0cm and less than 0.3cm, and the measurement time is more than 30ms and less than 1.5S.
In the embodiment of the application, when the electronic device is opened and is turned off, the user can place the hand in the distance measuring direction of the distance measuring module, the distance value from the distance measuring module is greater than or equal to 0cm and less than 0.3cm, and the duration of the action is greater than 30ms and less than 1.5 s.
On the basis, the electronic device determines that the target distance range is greater than 0cm and less than 0.3cm, the measurement time is greater than 30ms and less than 1.5s, at this time, the electronic device determines that the starting operation needs to be executed, and further, the electronic device controls the electronic device to execute the starting operation.
S3330, when the electronic device is in a power-on state, the target distance range is greater than or equal to 0cm and less than 10cm, and the measurement duration is greater than 10ms and less than 50ms, the electronic device is controlled to execute a power-off operation when the preset times continuously occur.
In the embodiment of the present application, the preset times may be set empirically. In one example, the preset number of times may be 3 times.
In the present embodiment, the above-described S3330 is described with the number of predicted times being 3: when the electronic equipment is in a starting state, a user can place a hand in the distance measuring direction of the distance measuring module, the distance value of the distance measuring module is larger than or equal to 0cm and smaller than 10cm, and the duration of the action is longer than 10ms and shorter than 50 ms. And then taking the hand away from the distance measuring direction of the distance measuring module, placing the hand in the distance measuring direction of the distance measuring module again within a time interval of less than 1s, wherein the distance value of the distance measuring module is greater than or equal to 0cm and less than 10cm, and the duration of the action is greater than 10ms and less than 50 ms. And continuously, taking the hand away from the distance measuring direction of the distance measuring module again, placing the hand in the distance measuring direction of the distance measuring module again within the time interval of less than 1s, wherein the distance value of the distance measuring module is greater than or equal to 0cm and less than 10cm, and the duration of the action is greater than 10ms and less than 50 ms.
On the basis of the above, the electronic device determines that the target distance range is greater than or equal to 0cm and less than 10cm, and the measurement duration is greater than 10ms and less than 50ms and occurs 3 times continuously. At this time, the electronic device determines that a shutdown operation needs to be performed, and further, the electronic device controls itself to perform the shutdown operation.
S3340, controlling the electronic equipment to execute the operation matched with cover closing under the conditions that the electronic equipment is in a starting state, the target distance range is more than or equal to 0cm and less than 0.2cm, and the measurement time is more than 3S.
Wherein, the operation of closing the lid with electronic equipment matches includes: sleep, shut down, take no action.
In an embodiment of the application, when the electronic device is in the power-on state, a user may directly close the upper cover of the electronic device, at this time, a distance between the upper cover of the electronic device and the main body of the electronic device is in a range greater than or equal to 0cm and less than 0.2cm, and the measurement duration is greater than 3 s.
In another embodiment of the application, when the electronic device is in the power-on state, the user may place a hand in the distance measuring direction of the distance measuring module, the distance measuring module maintains a distance value greater than or equal to 0cm and less than 0.2cm, and the duration of the action is greater than 3 s. Then, the user manually closes the upper cover of the electronic device.
On the basis of the above, the electronic device determines that the target distance range is greater than or equal to 0cm and less than 0.2cm, and the measurement time is greater than 3 s. At this time, the electronic device determines that the electronic device is closed. Further, the electronic equipment controls the electronic equipment to perform the operation matched with the electronic equipment in a cover closing mode.
On the basis of the foregoing S3340, the method for controlling an electronic device according to the embodiment of the present application further includes the following steps of S3341 and S3342:
and S3341, providing an input interface.
In the embodiment of the application, the input interface is used for inputting an operation identifier of an operation matched with the electronic device cover closing, and may be, for example, an identifier of any one of hibernation, sleep, power off and no operation.
S3342, determining the operation matched with the cover closing of the electronic equipment according to the identification input through the input interface.
In the embodiment of the application, the electronic device determines the operation corresponding to the identifier input through the input interface as the operation matched with the electronic device for closing the cover.
In the embodiment of the application, the operation matched with the cover closing can be set by a user through the input interface in advance.
S3350, controlling the electronic equipment to execute a wake-up operation when the electronic equipment is in a sleep or dormant state and the electronic equipment is determined to be in an uncapped state.
In the embodiment of the application, when the electronic device is in a sleep or dormant state, a user manually opens the upper cover of the electronic device. Meanwhile, in combination with the above step S3310, the hand is placed in the distance measurement direction of the distance measurement module, and the distance measurement module maintains a distance value greater than or equal to 0cm and less than 0.5cm, and continues the movement for more than 10 seconds.
Based on the above, the electronic device determines that the electronic device is in a sleep or dormant state and the upper cover is opened again. Further, the electronic device controls itself to perform the wake-up operation.
S3360, controlling the electronic equipment to execute a restarting operation under the conditions that the target distance range is more than 0cm and less than 0.3cm and the measurement time length is more than 30ms and less than 1.5S when the electronic equipment is in a starting state.
In this embodiment, when the electronic device is in the power-on state, the user may place the hand in the distance measuring direction of the distance measuring module, and the distance measuring module maintains a distance value greater than 0cm and less than 0.3cm, and the duration of the action is greater than 30ms and less than 1.5 s.
On the basis of the above content, the electronic device determines that the target distance range is greater than 0cm and less than 0.3cm, the measurement duration is greater than 30ms and less than 1.5s, at this time, the electronic device determines that the restart operation needs to be executed, and further, the electronic device controls itself to execute the restart operation.
On the basis of the previous embodiment, the method for controlling an electronic device according to the embodiment of the present application further includes the following step S3370:
s3370, controlling the electronic equipment to execute protection operation when the electronic equipment is in a starting state, the target distance range is more than or equal to 0.2cm and less than 40cm, and the measurement time is more than 3S.
In the embodiment of the application, when the electronic device is in the power-on state, if the user sits in the distance measuring direction of the distance measuring module of the electronic device, and the distance measuring module is greater than or equal to a distance value of 0.2cm and less than 40cm, and the duration of the action is greater than 3 s. At this time, the electronic device considers that the user is too close to the display screen of the electronic device, and the electronic device controls itself to execute the protection operation.
In one example, the protection operation may be any one of the following: and outputting prompt information, black screen and screen turning.
In one example, the prompt message may be a prompt box in which "you are too close to the screen" or the like is written.
In the embodiment of the application, the protection operation can be executed under the condition that the distance between the user and the display screen of the electronic equipment is too close, so that the eyesight and the sitting posture of the user can be protected.
Correspondingly, when the user readjusts the position, as shown in fig. 5, for example, the distance measuring module is larger than 40cm, and the duration of the action is longer than 3 s. At this time, the electronic device displays normally, that is, the prompt message is not displayed any more, or the normal display is switched from the message screen or the black screen.
In light of the above teachings of S3310-S3370, those skilled in the art can divide other distance ranges and measuring duration ranges to control the electronic device to perform automatic screen-turning operations when the user leaves the electronic device.
It should be noted that the division of the distance range and the measurement duration range may be performed according to experience of a person skilled in the art, and the division of the distance range and the measurement duration range in S3310 to S3370 is not limited to the present application.
< apparatus embodiment >
The embodiment of the present application provides a control device 60 of an electronic device, wherein a distance measuring module is arranged on one side of a display screen of the electronic device, as shown in fig. 6, the device 60 includes: an acquisition module 61, a determination module 62, and a control module 63. Wherein:
and the acquisition module 61 is used for acquiring the distance value detected by the distance measurement module in real time.
And the determining module 62 is used for determining the measuring time lengths corresponding to all the distance values continuously located in the same target distance range.
The control module 63 is configured to control the electronic device to execute a corresponding operation according to the measurement duration and the target distance range; the operations include at least: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
In one example, the control module 63 is specifically configured to:
determining that the electronic equipment is in an uncapped state under the condition that the target distance range is greater than or equal to 0cm and less than 0.5cm and the measurement time is greater than 10 s;
when the electronic equipment is in a state of opening a cover and closing the cover, the target distance range is more than 0cm and less than 0.3cm, and the measurement time is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a starting operation;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 10cm, and the measurement duration is greater than 10ms and less than 50ms, the electronic equipment is controlled to execute a shutdown operation under the condition that preset times continuously occur;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 0.2cm, and the measurement time is greater than 3s, controlling the electronic equipment to execute an operation matched with cover closing; the operation of closing and matching the electronic equipment cover comprises the following steps: any one of hibernation, sleep, power off, no action taken;
controlling the electronic equipment to execute awakening operation under the conditions that the electronic equipment is in a dormant or sleeping state and the electronic equipment is determined to be in an uncapped state;
and under the conditions that the electronic equipment is in a starting state, the target distance range is more than 0cm and less than 0.3cm, and the measurement duration is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a restarting operation.
In one embodiment, the determination module 62 is further configured to:
providing an input interface;
and determining the operation matched with the electronic equipment for closing the cover according to the identification input through the input interface.
In one embodiment, the control module 63 is further configured to:
and controlling the electronic equipment to execute protection operation under the condition that the electronic equipment is in a starting state, the target distance range is greater than or equal to 0.2cm and less than 40cm, and the measurement time is greater than 3 s.
In one embodiment, the protection operation is any one of: and outputting prompt information, black screen and screen turning.
In one embodiment, the distance measuring module is a TOF laser distance measuring sensor, and the electronic device is a laptop.
< apparatus embodiment >
The embodiment of the present application provides an electronic device 70, a distance measuring module is disposed on one side of a display screen of the electronic device 70, and the electronic device 70 includes a control apparatus of the electronic device as shown in fig. 6; alternatively, the first and second electrodes may be,
comprises a memory 71 and a processor 72, wherein the memory 71 is used for storing computer instructions, and the processor 72 is used for calling the computer instructions from the memory 71 to execute the control method of any electronic equipment provided in the above method embodiment.
< storage Medium embodiment >
The embodiment of the application provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program realizes the control method of the electronic equipment according to any one of the method embodiments provided in the above when being executed by a processor.
The present application may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present application.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present application may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry can execute computer-readable program instructions to implement aspects of the present application by utilizing state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the application is defined by the appended claims.
Claims (10)
1. A control method of electronic equipment is characterized in that a distance measuring module is arranged on one side of a display screen of the electronic equipment, and the method comprises the following steps:
acquiring a distance value detected by the distance measuring module in real time;
determining the measuring duration corresponding to all the distance values continuously positioned in the same target distance range;
controlling the electronic equipment to execute corresponding operation according to the measuring duration and the target distance range; the operations include at least: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
2. The method according to claim 1, wherein the controlling the electronic device to perform corresponding operations according to the measured duration and the target distance range comprises:
determining that the electronic equipment is in an uncapped state under the condition that the target distance range is greater than or equal to 0cm and less than 0.5cm and the measurement time is greater than 10 s;
when the electronic equipment is in a state of opening a cover and closing the cover, the target distance range is more than 0cm and less than 0.3cm, and the measurement time is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a starting operation;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 10cm, and the measurement duration is greater than 10ms and less than 50ms, the electronic equipment is controlled to execute a shutdown operation under the condition that preset times continuously occur;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 0.2cm, and the measurement time is greater than 3s, controlling the electronic equipment to execute an operation matched with cover closing; the operation of closing and matching the electronic equipment cover comprises the following steps: any one of hibernation, sleep, power off, no action taken;
controlling the electronic equipment to execute awakening operation under the conditions that the electronic equipment is in a dormant or sleeping state and the electronic equipment is determined to be in an uncapped state;
and under the conditions that the electronic equipment is in a starting state, the target distance range is more than 0cm and less than 0.3cm, and the measurement duration is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a restarting operation.
3. The method of claim 2, further comprising:
providing an input interface;
and determining the operation matched with the electronic equipment for closing the cover according to the identification input through the input interface.
4. The method of claim 2, further comprising:
and controlling the electronic equipment to execute protection operation under the condition that the electronic equipment is in a starting state, the target distance range is greater than or equal to 0.2cm and less than 40cm, and the measurement time is greater than 3 s.
5. The method of claim 4, wherein the protection operation is any one of: and outputting prompt information, black screen and screen turning.
6. The method of claim 1, wherein the ranging module is a TOF laser ranging sensor and the electronic device is a laptop computer.
7. The utility model provides a controlling means of electronic equipment which characterized in that, electronic equipment's display screen one side is provided with range finding module, the device includes:
the acquisition module is used for acquiring the distance value detected by the distance measurement module in real time;
the determining module is used for determining the measuring time lengths corresponding to all the distance values continuously positioned in the same target distance range;
the control module is used for controlling the electronic equipment to execute corresponding operation according to the measuring duration and the target distance range; the operations include at least: sleep, hibernate, restart, do not take any action, power on, power off, wake up.
8. The apparatus of claim 7, wherein the control module is specifically configured to:
determining that the electronic equipment is in an uncapped state under the condition that the target distance range is greater than or equal to 0cm and less than 0.5cm and the measurement time is greater than 10 s;
when the electronic equipment is in a state of opening a cover and closing the cover, the target distance range is more than 0cm and less than 0.3cm, and the measurement time is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a starting operation;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 10cm, and the measurement duration is greater than 10ms and less than 50ms, the electronic equipment is controlled to execute a shutdown operation under the condition that preset times continuously occur;
when the electronic equipment is in a starting state, the target distance range is greater than or equal to 0cm and less than 0.2cm, and the measurement time is greater than 3s, controlling the electronic equipment to execute an operation matched with cover closing; the operation of closing and matching the electronic equipment cover comprises the following steps: any one of hibernation, sleep, power off, no action taken;
controlling the electronic equipment to execute awakening operation under the conditions that the electronic equipment is in a dormant or sleeping state and the electronic equipment is determined to be in an uncapped state;
and under the conditions that the electronic equipment is in a starting state, the target distance range is more than 0cm and less than 0.3cm, and the measurement duration is more than 30ms and less than 1.5s, controlling the electronic equipment to execute a restarting operation.
9. An electronic device, characterized in that a distance measuring module is arranged on one side of a display screen of the electronic device, and the electronic device comprises the device of claim 7 or 8; alternatively, the first and second electrodes may be,
comprising a memory for storing computer instructions and a processor for invoking the computer instructions from the memory to perform the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010941565.5A CN114237379A (en) | 2020-09-09 | 2020-09-09 | Control method, device and equipment of electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010941565.5A CN114237379A (en) | 2020-09-09 | 2020-09-09 | Control method, device and equipment of electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114237379A true CN114237379A (en) | 2022-03-25 |
Family
ID=80742691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010941565.5A Pending CN114237379A (en) | 2020-09-09 | 2020-09-09 | Control method, device and equipment of electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114237379A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008114601A1 (en) * | 2007-03-20 | 2008-09-25 | Konami Digital Entertainment Co., Ltd. | Game device, progress control method, information recording medium, and program |
CN105282832A (en) * | 2014-07-09 | 2016-01-27 | 中兴通讯股份有限公司 | Terminal power saving method and apparatus |
CN108509226A (en) * | 2018-03-28 | 2018-09-07 | 无锡睿勤科技有限公司 | The state switching method and electronic equipment of electronic equipment |
US20190057247A1 (en) * | 2016-02-23 | 2019-02-21 | Yutou Technology (Hangzhou) Co., Ltd. | Method for awakening intelligent robot, and intelligent robot |
CN110399043A (en) * | 2019-07-29 | 2019-11-01 | 联想(北京)有限公司 | Data processing method, device and system |
CN110706953A (en) * | 2019-10-10 | 2020-01-17 | 珠海格力电器股份有限公司 | Panel switch awakening method, awakening device, storage medium and panel switch |
-
2020
- 2020-09-09 CN CN202010941565.5A patent/CN114237379A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008114601A1 (en) * | 2007-03-20 | 2008-09-25 | Konami Digital Entertainment Co., Ltd. | Game device, progress control method, information recording medium, and program |
CN105282832A (en) * | 2014-07-09 | 2016-01-27 | 中兴通讯股份有限公司 | Terminal power saving method and apparatus |
US20190057247A1 (en) * | 2016-02-23 | 2019-02-21 | Yutou Technology (Hangzhou) Co., Ltd. | Method for awakening intelligent robot, and intelligent robot |
CN108509226A (en) * | 2018-03-28 | 2018-09-07 | 无锡睿勤科技有限公司 | The state switching method and electronic equipment of electronic equipment |
CN110399043A (en) * | 2019-07-29 | 2019-11-01 | 联想(北京)有限公司 | Data processing method, device and system |
CN110706953A (en) * | 2019-10-10 | 2020-01-17 | 珠海格力电器股份有限公司 | Panel switch awakening method, awakening device, storage medium and panel switch |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10652828B2 (en) | Electronic device for providing mode switching and a method thereof | |
US10146356B2 (en) | Method for controlling state of touch screen, touch screen, and portable touch terminal | |
WO2018043998A1 (en) | Electronic device and control method therefor | |
US8436804B2 (en) | Digital photo frame with power saving function and related power saving method | |
RU2636137C2 (en) | Method and device for installing working condition of intelligent home device | |
US20160283022A1 (en) | Method and Device for Awakening an Element | |
US20150100813A1 (en) | Method and device for processing images to save power | |
WO2018214885A1 (en) | Radio frequency interference processing method and electronic device | |
CN107917755A (en) | Environment light detection method, device, storage medium and electronic equipment | |
CN109240415B (en) | Electronic device control method, electronic device control device, storage medium and electronic device | |
US10025275B2 (en) | Apparatus and method for displaying information | |
US9285839B1 (en) | Smart cover for an electronic device | |
CN106897134B (en) | Positioning function management method and device | |
CN110291525A (en) | The operation of camera is controlled based on power state transition | |
CN107077310A (en) | For controlling the casting of electronic device of display and method for controlling display | |
CN107613139B (en) | Schedule reminding method and mobile terminal | |
US20120300375A1 (en) | Clamshell electronic device, switching module and switching method | |
KR20180121254A (en) | Electronic device for ouputting graphical indication | |
CN114237379A (en) | Control method, device and equipment of electronic equipment and storage medium | |
US10168777B2 (en) | Display control method and terminal device | |
CN106020416B (en) | Screen display method, device and smart machine | |
WO2017119777A1 (en) | Device for providing user interface by using pressure sensor and screen image configuration method therefor | |
WO2019061123A1 (en) | Information display method, terminal device, and computer readable storage medium | |
CN108983950B (en) | Display screen control method, storage medium and electronic device | |
CN109116971B (en) | Free window control method and system and android mobile terminal |
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 |