Key structure, key structure control method, device and electronic equipment
By using a piezoelectric inductor device in the pressure-sensitive button structure to convert pressure into an electrical energy-enabled button module, the problem of high power consumption in the non-operating state in the prior art is solved, and the power consumption in the standby state is realized Battery power consumption is reduced.
Patent Information
- Application Number
- CN202011238073.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-09
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-11-09
AI Technical Summary
The existing pressure-sensitive button structure still consumes a lot of power when no operation is required, resulting in an increase in battery power consumption of electronic devices in non-operating states.
The piezoelectric inductor device and the processor are connected to the button module through the or gate element, and the piezoelectric inductor device is used to convert the pressure into the power-enabled button module in the non-operating state, saving battery power consumption.
When the electronic device is in a non-operating state, the key module is enabled by the piezoelectric induction device, which reduces unnecessary battery consumption and improves the battery life of the device in standby state.
Smart Images

Figure CN112290928B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a key structure, a key structure control method, a device and an electronic device. Background Art
[0002] In the field of electronic products, button technology has a very wide range of applications. As controllable devices, such as mobile phones, digital cameras, e-readers, etc., these devices have more or less button devices. Based on the needs of aesthetics, waterproofness, dustproofness and improved user experience, pressure-sensitive buttons are used more and more. The principle of pressure-sensitive buttons is to set a pressure sensor on the button panel. The pressure sensor can inform the force condition of the button panel and generate a corresponding analog signal. The analog signal is sent to the pressure-sensitive MCU for amplification, analog-to-digital conversion and algorithm processing, and finally the microcontroller outputs the corresponding button information; because the pressure-sensitive buttons require the pressure-sensitive MCU to perform detection and processing, the pressure-sensitive buttons require additional power consumption, especially when the pressure-sensitive buttons do not need to be operated. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a key structure, a control method and device for the key structure, and an electronic device, which can solve the problem of high power consumption of the existing key structure.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a key structure, the key structure comprising:
[0006] Button module;
[0007] An OR gate element, wherein the output end of the OR gate element is connected to the key module;
[0008] A piezoelectric sensing device, the piezoelectric sensing device is connected to the first input terminal of the OR gate element;
[0009] a processor, the processor being connected to the second input terminal of the OR gate element;
[0010] Wherein, the OR gate element enables the key module according to the first enable signal input by the piezoelectric sensing device or the second enable signal input by the processor.
[0011] In a second aspect, an embodiment of the present application provides a control method for a key structure, which is applied to the above-mentioned key structure, including:
[0012] Get the working status of electronic equipment;
[0013] When the electronic device is in working state, sending a second enable signal to the OR gate element;
[0014] When the duration of the electronic device being in the non-working state reaches a preset duration, the sending of the second enable signal is stopped.
[0015] In a third aspect, an embodiment of the present application provides a control device of a key structure, comprising:
[0016] An acquisition module, used to acquire the working status of the electronic device;
[0017] A first sending module, used for sending a second enabling signal to the OR gate element when the electronic device is in a working state;
[0018] When the duration of the electronic device being in the non-working state reaches a preset duration, the sending of the second enable signal is stopped.
[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the second aspect.
[0020] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
[0021] In a sixth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the second aspect.
[0022] In the embodiment of the present application, a piezoelectric sensing device and a processor are connected to a key module through an OR gate element, and the OR gate element enables the key module according to a first enable signal input by the piezoelectric sensing device or a second enable signal input by the processor. In this way, when the electronic device is in a non-working state, the processor can cancel the enablement of the key module, and the user can operate the piezoelectric sensing device to convert pressure into electrical energy to enable the key module, thereby saving power consumption of the key module of the electronic device when it is in a non-working state. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is one of the structural schematic diagrams of the key structure of an embodiment of the present application;
[0024] Figure 2 This is the second structural diagram of the key structure of the embodiment of the present application;
[0025] Figure 3This is the third structural diagram of the key structure of the embodiment of the present application;
[0026] Figure 4 is a schematic diagram of a control method of a key structure of an embodiment of the present application;
[0027] Figure 5 is a structural schematic diagram of a control device of a key structure of an embodiment of the present application;
[0028] Figure 6 One of the structural schematic diagrams of the electronic device according to the embodiment of the present application is shown;
[0029] Figure 7 The second structural schematic diagram of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] The term "first" or "second" in the specification and claims of the present application may include one or more of the features explicitly or implicitly. In the description of the present invention, unless otherwise specified, "plurality" means two or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the objects connected before and after are in an "or" relationship.
[0032] In the description of the present invention, it is necessary to understand that the orientation or positional relationship indicated by the terms is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0033] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0034] The key structure according to the embodiment of the present invention is described below with reference to the accompanying drawings.
[0035] like Figure 1 As shown, the key structure of the embodiment of the present invention includes:
[0036] A key module 1; an OR gate element 2, wherein the output end of the OR gate element 2 is connected to the key module 1; a piezoelectric sensing device 3, wherein the piezoelectric sensing device 3 is connected to the first input end of the OR gate element 2;
[0037] A processor 4, wherein the processor 4 is connected to the second input terminal of the OR gate element 2;
[0038] The OR gate element 2 enables the key module 1 according to the first enable signal input by the piezoelectric sensing device 3 or the second enable signal input by the processor 4 .
[0039] In this embodiment, the key module 1 can be a pressure-sensitive key module, which is arranged on an electronic device and can be operated by a user, such as a power on / off key module. The processor 4 can be a central processing unit (CPU). The output end of the OR gate element 2 is connected to the key module 1, and is used to output an enable signal to the key module 1, so that the key module 1 is powered on and works. The input end of the OR gate element 2 is connected to the piezoelectric sensing device 3 and the processor 4, and the piezoelectric sensing device 3 can input a first enable signal to the OR gate element 2, and the processor 4 can input a second enable signal to the OR gate element 2.
[0040] The piezoelectric sensing device 3 is a sensing device that can convert mechanical energy into electrical energy, such as piezoelectric ceramics. The user can operate the piezoelectric sensing device 3, and the piezoelectric sensing device 3 converts pressure into electrical energy to enable the key module 1, so that the key module 1 is powered on and works. The processor 4 can enable the key module 1 through the OR gate element 2, so that the key module 1 is powered on and works.
[0041] In the embodiment of the present application, there are two ways to enable the key module 1: the first way is enabled by the processor 4, and the second way is enabled by the piezoelectric sensing device 3; the OR gate element 2 enables the key module 1 according to the second enable signal of the processor 4 or the first enable signal of the piezoelectric sensing device 3. Taking the key module as the power on / off key module of the electronic device as an example, when the electronic device is in working state, the central processor 4 can output the second enable signal, and the OR gate element 2 receives the enable signal and outputs a high level to enable the key module 1, and constantly detects the key information of the user on the power on / off key in the key module 1, so as to realize operations such as lighting up the screen and turning the machine on and off.
[0042] When the electronic device is in a non-working state, the processor 4 can cancel the output of the second enable signal, and the key module 1 stops working. In the non-working state (for example, the power-off state, the screen-off time exceeds a time threshold), when the user needs to power on the key module 1, the piezoelectric sensing device 3 can be operated. The piezoelectric sensing device 3 converts the pressure applied by the user into electrical energy, outputs the first enable signal to the OR gate element 2, and enables the key module 1 through the OR gate element 2 to power it on, thereby detecting the user's key information on the power button in the key module 1.
[0043] In the embodiment of the present application, a piezoelectric sensing device and a processor are connected to a key module through an OR gate element, and the OR gate element enables the key module according to a first enable signal input by the piezoelectric sensing device or a second enable signal input by the processor. In this way, when the electronic device is in a non-working state, the processor can cancel the enablement of the key module, and the user can operate the piezoelectric sensing device to convert pressure into electrical energy to enable the key module, thereby saving power consumption of the key module of the electronic device when it is in a non-working state.
[0044] Alternatively, if Figure 2 As shown, the button module 1 includes: a pressure-sensitive button 11, a microcontroller unit 12 (MCU) connected to the pressure-sensitive button 11, and a linear regulator 13 (Low Dropout Regulator, LDO) connected to the microcontroller unit 12; the output end of the OR gate element 2 is connected to the enable pin of the linear regulator 13.
[0045] like Figure 3 As shown, the working principle of the pressure-sensitive key 11 is to set a pressure sensor 31 on the key panel. The pressure sensor 31 can generate a corresponding analog signal according to the force of the key panel, and send the analog signal to the microcontroller unit 12 for amplification, analog-to-digital conversion and algorithm processing. Finally, the microcontroller MCU outputs the corresponding key information to the system on chip 32 (System on Chip, SOC); when the user operates the pressure-sensitive key, the deformation of the key panel is large, resulting in a large change in the analog signal. When the user does not operate the pressure-sensitive key, the deformation of the key panel is small, resulting in a small change in the analog signal, so that it can be identified whether the pressure-sensitive key 11 is pressed. The pressure-sensitive key 11 requires the microcontroller unit 12 to perform detection and processing, so the pressure-sensitive key 11 needs to increase additional power consumption.
[0046] When the electronic device is in a non-working state (such as being turned off or the screen being off for more than a time threshold), in order to ensure that the microcontroller unit 12 can be powered on and detect the signal of the pressure-sensitive button 11 when the user needs the electronic device to work, it is necessary to ensure that the linear regulator 13 can supply power to the microcontroller unit 12 when there is a power-on demand. Therefore, the piezoelectric sensing device 3 is provided, and the user can operate the piezoelectric sensing device 3. The piezoelectric sensing device 3 can convert the user's pressure into electrical energy, enabling the linear regulator 13, and the linear regulator 13 supplies power to the microcontroller unit 12.
[0047] For example: when the electronic device is in a normal working state, the processor 4 enables the linear regulator 13, the linear regulator 13 supplies power to the micro control unit 12, and the micro control unit 12 detects the pressure information applied to the pressure-sensitive key 11; when the electronic device is turned off for more than a preset time, the processor 4 is controlled to cancel the enabling of the linear regulator 13, and the linear regulator 13 stops outputting voltage, that is, stops supplying power to the micro control unit 12, and the micro control unit 12 stops working, saving power consumption when the electronic device is not working; when the user wants to turn on the device, the piezoelectric sensing device 3 can be operated, and the piezoelectric sensing device 3 converts the pressure applied by the user into electrical energy, enables the linear regulator 13, and enables the linear regulator 13 to supply power to the micro control unit 12, and the micro control unit 12 is powered on and starts to detect the power button (that is, the pressure-sensitive key 11); the user operates the power button, and the micro control unit 12 detects the key information of the power button and completes the power-on work.
[0048] After the electronic device is turned on and started successfully, the electronic device is in working state, the processor 4 relays to enable the linear regulator 13, the linear regulator 13 keeps supplying power to the micro control unit 12, ensures the power button (i.e. the pressure-sensitive button 11) works, and detects external key signals at any time. When the processor 4 detects a long standby time (configurable time), the linear regulator 13 can be disabled, the linear regulator 13 stops outputting voltage, and the micro control unit 12 stops working, achieving the function of shutting down or standby power saving.
[0049] It should be noted that the pressure-sensitive button 11 in this embodiment can be a power button or other buttons, which is not limited here.
[0050] The first end of the piezoelectric sensing device 3 is exposed on the surface of the electronic device, and the second end of the piezoelectric sensing device 3 is connected to the first input end of the OR gate element 2. The piezoelectric sensing device 3 and the pressure-sensitive button 11 can be arranged on the same surface of the electronic device. The piezoelectric sensing device 3 can be a device of the same type as the pressure-sensitive button 11, such as piezoelectric ceramics. The position of the piezoelectric sensing device 3 can be set according to the user's usage habits, such as being set around the pressure-sensitive button 11. Furthermore, it can be set at a position adjacent to the pressure-sensitive button 11 to facilitate user operation.
[0051] The processor 4 is also connected to the microcontroller unit 12, and is used to receive the key information detected by the microcontroller unit 12. The processor 4 includes a detection unit for detecting the working state of the electronic device, which is used to detect the working state of the electronic device, for example: when the duration of the electronic device turning off the screen or shutting down reaches a preset duration, the electronic device is considered to be in a non-working state, and the processor 4 cancels the enabling of the linear regulator 13, and the user operates the piezoelectric sensing device 3 to enable the linear regulator 13; when the electronic device is in a screen-on state, turns off the screen or shuts down for a duration that does not reach a preset duration, the electronic device is considered to be in a working state, and the processor 4 enables the linear regulator 13. Among them, the processor 4 is connected to the second input end of the OR gate element 2 through a general purpose I / O port (GPIO). That is, the processor 4 outputs an enable signal through the GPIO port.
[0052] In the embodiment of the present application, a piezoelectric sensing device and a processor are connected to a key module through an OR gate element, and the OR gate element enables the key module according to a first enable signal input by the piezoelectric sensing device or a second enable signal input by the processor. In this way, when the electronic device is in a non-working state, the processor can cancel the enablement of the key module, and the user can operate the piezoelectric sensing device to convert pressure into electrical energy to enable the key module, thereby saving power consumption of the key module of the electronic device when it is in a non-working state.
[0053] The control method of the key structure provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0054] like Figure 4 As shown, an embodiment of the present application provides a control method of a key structure, which is applied to the above-mentioned key structure, including:
[0055] Step 401: Obtain the working status of the electronic device.
[0056] Step 402: When the electronic device is in working state, send a second enable signal to the OR gate element;
[0057] Step 403: When the duration of the electronic device being in the non-working state reaches a preset duration, stop sending the second enable signal.
[0058] The processor is used to obtain the working state of the electronic device, for example: when the electronic device is in the screen-on state, or the screen-off or shutdown time of the electronic device does not reach the preset time, the electronic device is considered to be in the working state, and the processor outputs the second enable signal to enable the linear regulator, so that the linear regulator powers the microcontroller. When the screen-off or shutdown time of the electronic device reaches the preset time, the electronic device is considered to be in the non-working state, and the non-working state time reaches the preset time, then the processor stops sending the second enable signal, that is, cancels the enabling of the linear regulator, the linear regulator stops powering the microcontroller, and the microcontroller stops working. At this time, if the user wants to operate the pressure-sensitive button (such as power on and off), it is necessary to operate the piezoelectric sensing device first, and the piezoelectric sensing device converts the pressure applied by the user into electrical energy to enable the linear regulator, then the linear regulator powers the microcontroller, the microcontroller is powered on, and the microcontroller starts to detect the pressure-sensitive button. The user presses the pressure-sensitive button, and the microcontroller detects the button information (such as the power on and off button information) and completes the corresponding button work.
[0059] It should be noted that there is no order between step 402 and step 403, and the processor determines the execution step according to the current working state of the electronic device.
[0060] The method may also include: when the duration of the electronic device being in a non-working state does not reach a preset duration, sending the second enable signal to the OR gate element. When the duration of the electronic device being in a non-working state does not reach a preset duration, for example, the duration of the electronic device being off the screen or shutting down does not reach the preset duration, the processor still enables the linear regulator, for example: the preset time is set to 5 minutes, and the current screen-off duration of the electronic device is 1 minute. At this time, the processor still outputs the second enable signal, and the linear regulator supplies power to the microcontroller unit, and the microcontroller unit always detects the key information of the pressure-sensitive key; when the current screen-off duration of the electronic device exceeds 5 minutes, the processor stops outputting the second enable signal, that is, cancels the enabling of the linear regulator, and the linear regulator stops supplying power to the microcontroller unit, and the microcontroller unit stops working, thereby saving standby power consumption; at this time, the user can operate the piezoelectric sensing device, and the piezoelectric sensing device converts pressure into electrical energy to enable the linear regulator, and the linear regulator supplies power to the microcontroller unit.
[0061] In an embodiment of the present application, a processor detects the working state of an electronic device. When the electronic device is in a working state, the processor sends a second enable signal to the OR gate element to enable a pressure-sensitive key module. When the electronic device is in a non-working state, the processor stops sending the second enable signal, i.e., cancels the enabling of the key module. At this time, the user can operate the piezoelectric sensing device to convert pressure into electrical energy to enable the key module, thereby saving power consumption of the key module when the electronic device is in a non-working state.
[0062] It should be noted that the control method of the key structure provided in the embodiment of the present application can be executed by a control device of the key structure, or a control module in the control device of the key structure for executing the control method of the key structure. In the embodiment of the present application, the control device of the key structure executing the control method of the key structure is taken as an example to illustrate the control device of the key structure provided in the embodiment of the present application.
[0063] like Figure 5 As shown, the embodiment of the present application also provides a control device 500 with a key structure, including:
[0064] An acquisition module 510 is used to acquire the working status of the electronic device;
[0065] A first sending module 520, configured to send a second enabling signal to the OR gate element when the electronic device is in a working state;
[0066] When the duration of the electronic device being in the non-working state reaches a preset duration, the sending of the second enable signal is stopped.
[0067] In an embodiment of the present application, a processor detects the working state of an electronic device. When the electronic device is in a working state, the processor sends a second enable signal to the OR gate element to enable a key module. When the electronic device is in a non-working state, the processor stops sending the second enable signal, i.e., cancels the enabling of the key module. At this time, the user can operate the piezoelectric sensing device to convert pressure into electrical energy to enable the key module, thereby saving power consumption of the key module when the electronic device is in a non-working state.
[0068] The control device of the key structure in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0069] The control device of the key structure in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0070] The control device of the key structure provided in the embodiment of the present application can achieve Figure 4 To avoid repetition, the various processes implemented by the control device of the key structure in the method embodiment will not be described here.
[0071] Optional, such as Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the control method embodiment of the above-mentioned key structure is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0072] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0073] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0074] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
[0075] Those skilled in the art will appreciate that the electronic device 700 may also include a linear regulated power supply (such as a battery) for supplying power to various components. The linear regulated power supply may be logically connected to the processor 710 through a linear regulated power supply management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the linear regulated power supply management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0076] The radio frequency unit 701 is used to obtain the working state of the electronic device; when the electronic device is in the working state, send a second enable signal to the OR gate element;
[0077] When the duration of the electronic device being in the non-working state reaches a preset duration, the sending of the second enable signal is stopped.
[0078] In an embodiment of the present application, when the electronic device is in a working state, the processor sends a second enable signal to the OR gate element to enable the key module; when the electronic device is in a non-working state, the processor stops sending the second enable signal, that is, cancels the enablement of the key module. At this time, the user can operate the piezoelectric sensing device to convert pressure into electrical energy to enable the key module, thereby saving power consumption of the key module when the electronic device is in a non-working state.
[0079] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.
[0080] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned key structure control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0081] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0082] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned key structure control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0083] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0084] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0086] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A key structure, characterized in that: include: Button module (1); An OR gate element (2), wherein an output end of the OR gate element (2) is connected to the key module (1); A piezoelectric sensing device (3), the piezoelectric sensing device (3) being connected to the first input end of the OR gate element (2); A processor (4), the processor (4) being connected to the second input terminal of the OR gate element (2); The OR gate element (2) enables the key module (1) according to a first enable signal input by the piezoelectric sensing device (3) or a second enable signal input by the processor (4), wherein the first enable signal is obtained by converting the pressure exerted by the piezoelectric sensing device (3) on the user when the electronic device is in a non-working state, and the second enable signal is output by the processor (4) when the electronic device is in a working state.
2. The key structure according to claim 1, characterized in that: The key module (1) comprises: a pressure-sensitive key (11), a microcontroller unit (12) connected to the pressure-sensitive key (11), and a linear regulator (13) connected to the microcontroller unit (12); The output end of the OR gate element (2) is connected to the enable pin of the linear regulator (13).
3. The key structure according to claim 1, characterized in that: The first end of the piezoelectric sensing device (3) is exposed on the surface of the electronic device, and the second end of the piezoelectric sensing device (3) is connected to the first input end of the OR gate element (2).
4. The key structure according to claim 2, characterized in that: The piezoelectric sensing device (3) and the pressure-sensitive button (11) are arranged on the same surface of the electronic device.
5. The key structure according to claim 2, characterized in that: The processor (4) is also connected to the micro control unit (12).
6. The key structure according to claim 1, characterized in that: The processor (4) is connected to the second input end of the OR gate element (2) via a general purpose input and output port GPIO.
7. The key structure according to claim 1, characterized in that: The processor (4) comprises a detection unit for detecting the working state of the electronic device.
8. A method for controlling a key structure, applied to the key structure according to any one of claims 1 to 7, characterized in that: include: Get the working status of electronic equipment; When the electronic device is in working state, sending a second enabling signal to the OR gate element; When the duration of the electronic device being in the non-working state reaches a preset duration, the sending of the second enable signal is stopped.
9. A control device with a key structure, characterized in that: include: An acquisition module, used to acquire the working status of the electronic device; A first sending module, used for sending a second enabling signal to the OR gate element when the electronic device is in a working state; When the duration of the electronic device being in the non-working state reaches a preset duration, the sending of the second enable signal is stopped.
10. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the control method of the key structure as described in claim 8.