State switching method for electronic device, and electronic device
A technology for electronic equipment and state switching, applied in program control design, electrical digital data processing, instruments, etc., can solve the problems of increasing the cost of physical buttons and small circuit boards, occupying the design space of notebook computers, and reducing the experience of using notebook computers. To achieve the effect of simple appearance, good user experience and cost saving
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] see figure 1 , the invention discloses a state switching method of an electronic device, comprising:
[0029] 101. Obtain the current state of the electronic device;
[0030] 102. When the distance sensor installed in the electronic device detects that an external object is close to the distance sensor, according to the signal sent by the distance sensor in real time, determine whether the operation of the external object approaching the distance sensor meets the preset conditions for state switching in the current state;
[0031] 103. When the operation of the external object approaching the distance sensor meets the preset condition for state switching, generate a state switching signal to switch the current state of the electronic device.
[0032] In this embodiment, as long as it is detected that the external object is close to the distance sensor, the state switching signal is generated; as a preferred technical solution, the preset condition required for generati...
Embodiment 2
[0047] see Figure 1 to Figure 4 , this embodiment discloses an electronic device, comprising:
[0048] The distance sensor is used to detect whether an external object is close to the distance sensor and send a signal to the processor in real time;
[0049] processor;
[0050] memory; and
[0051] A computer program stored in the memory and operable on the processor, when the processor executes the computer program, implements the state switching method of the electronic device in Embodiment 1.
[0052] As a preferred technical solution, the distance sensor is a capacitive distance sensor. When an external object approaches, the distance sensor outputs a control signal to the processor in real time according to the detected capacitance value change, and the processor pulls the power-on high level to Low level, the duration of low level indicates the time when an external object stays near the distance sensor. It should be noted that the distance sensor is not limited to a...
Embodiment 3
[0060] This embodiment discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the state switching method of the electronic device described in the first embodiment is realized.
[0061] Compared with the prior art, the present invention judges whether the operation of the hand or other external objects close to the distance sensor meets the preset conditions for state switching in the current state, and when the operation of the external object close to the distance sensor meets the preset conditions for state switching When conditions are met, a state switching signal is generated to switch the current state of the electronic device; thus, only through simple hand movements, etc., operations such as power on, power off, screen on and / or off the screen can be easily and conveniently realized, which is very Good user experience; and it can greatly reduce the frequency of use of physical buttons, ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com