Pressure detection method, equipment control method, device and storage medium
By obtaining and monitoring pressure detection information in the pressure detection device, determining the detection pressure and generating a pressure trigger signal when it changes, the problem of high power consumption of the pressure detection device during long-term operation is solved, and effective power consumption reduction and Improved battery life.
Patent Information
- Application Number
- CN202411440850.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-10-16
AI Technical Summary
In IoT, wearable devices and remote monitoring applications, the power consumption problem of pressure detection devices is becoming increasingly prominent, especially in scenarios where long-term operation and battery power is required. How to reduce the power consumption of pressure sensors becomes an improvement in the battery life of the device in a long time situation. and the key factors of user experience.
By obtaining pressure detection information, determining the detection pressure, and generating a pressure trigger signal when the detection pressure value passes through the preset pressure value, monitoring the real-time situation of the detection pressure, accurately identifying the pressure trigger scene, thereby reducing power consumption and improving battery life.
This method can effectively reduce power consumption, improve the battery life of the equipment, and monitor and identify pressure trigger scenarios to ensure that the pressure detection signal is triggered when necessary, avoiding unnecessary energy consumption.
Smart Images

Figure CN118963591B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of pressure detection technology, and more specifically, to a pressure detection method, equipment control method, device and storage medium. Background Art
[0002] In applications such as the Internet of Things, wearable devices, and remote monitoring, pressure detection devices are key components, and their power consumption issues are becoming increasingly prominent. Especially in scenarios where long-term operation is required and battery power is required, reducing the power consumption of pressure sensors has become a key factor in improving device endurance and user experience. Summary of the invention
[0003] In view of the above problems, the present invention proposes a pressure detection method, device and storage medium.
[0004] In a first aspect, an embodiment of the present application provides a pressure detection method, the method comprising: obtaining pressure detection information; using the pressure detection information to determine a detection pressure; and generating a pressure trigger signal when it is determined according to the pressure detection information that the detection pressure passes through a preset pressure value during a change process.
[0005] In a second aspect, an embodiment of the present application further provides a device control method, the method comprising: obtaining a pressure trigger signal obtained by the pressure detection method described in the first aspect above; and determining a control measure corresponding to the pressure trigger signal based on the pressure trigger signal.
[0006] In a third aspect, an embodiment of the present application also provides a pressure detection device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the pressure detection method as described in the first aspect above.
[0007] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a program code is stored, wherein the above-mentioned pressure detection method is executed when the program code is executed by a processor.
[0008] The technical solution provided by the present invention, the pressure detection method includes: obtaining pressure detection information; the pressure detection information is used to determine the detection pressure; when it is determined according to the pressure detection information that the detection pressure passes through a preset pressure value during the change process, a pressure trigger signal is generated, thereby monitoring the real-time situation of the detection pressure, and accurately identifying the pressure triggering scene by detecting that the pressure passes through the preset pressure value during the change process. When the pressure triggering scene occurs, the pressure triggering signal is triggered to reduce power consumption and effectively improve battery life. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments and drawings obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0010] Figure 1 A flow chart of a pressure detection method provided in an embodiment of the present application is shown.
[0011] Figure 2 A schematic structural diagram of a pressure detection device provided in an embodiment of the present application is shown.
[0012] Figure 3 A schematic diagram of an LS98102 chip disclosed in an embodiment of the present application is shown.
[0013] Figure 4 A flow chart of a device control method disclosed in an embodiment of the present application is shown.
[0014] Figure 5 A schematic structural diagram of another pressure detection device provided in an embodiment of the present application is shown.
[0015] Figure 6 A schematic structural diagram of another pressure detection device provided in an embodiment of the present application is shown.
[0016] Figure 7 A schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0018] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0019] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0020] In applications such as the Internet of Things, wearable devices, and remote monitoring, pressure detection devices are key components, and their power consumption issues are becoming increasingly prominent. Especially in scenarios where long-term operation is required and battery power is required, reducing the power consumption of pressure sensors has become a key factor in improving device endurance and user experience.
[0021] In the related art, the pressure detection device usually generates an interrupt signal through a controller (such as MCU (Microcontroller Unit)) at a regular interval, and the interrupt signal triggers the detection of the detection pressure (for example, triggering the ADC (Analog-to-Digital Converter) to detect the pressure value). However, the detection pressure collected through the timed interrupt cannot reflect the real-time situation of the detection pressure, and the timed wake-up will also consume a lot of energy.
[0022] In order to improve the above-mentioned problems, the inventors proposed the pressure detection method, equipment control method, device and storage medium provided in the present application. The pressure detection method includes: obtaining pressure detection information; the pressure detection information is used to determine the detection pressure; when it is determined according to the pressure detection information that the detection pressure passes through a preset pressure value during the change process, a pressure trigger signal is generated, thereby monitoring the real-time situation of the detection pressure, and accurately identifying the pressure triggering scenario by detecting that the pressure passes through the preset pressure value during the change process. When the pressure triggering scenario occurs, the pressure triggering signal is generated, which can effectively reduce power consumption and effectively improve battery life.
[0023] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0024] See also Figure 1 , the present application embodiment provides a pressure detection method, such as Figure 1 As shown, the method includes: step 110 to step 120.
[0025] Step 110: Obtain pressure detection information; the pressure detection information is used to determine the detection pressure.
[0026] In an embodiment of the present application, the pressure detection method may be used in a pressure detection device, and the pressure detection device may be used to detect a pressure triggering situation.
[0027] In some embodiments, the pressure detection device includes a pressure detection module, and the pressure detection module is used to obtain pressure detection information.
[0028] In some embodiments, the pressure detection module includes a varistor, and the resistance value of the varistor can change with the change of pressure. For example, when the pressure increases, the resistance value of the varistor decreases, and the detection pressure can be determined by detecting the change of the resistance value of the varistor. Therefore, the pressure detection information can be the resistance value of the varistor, and the resistance value of the varistor is determined by detecting the current and voltage of the varistor, and then the corresponding pressure at this time is determined.
[0029] In some embodiments, the pressure detection module may also include a voltage-dividing resistor, which is connected in series with a varistor. When the resistance of the varistor changes, it will also affect the voltage and current values of the voltage-dividing resistor. For example, when the pressure increases, the resistance value of the varistor decreases, and the voltage and current values of the voltage-dividing resistor increase. The detection pressure can be determined by detecting the voltage or current changes of the voltage-dividing resistor. Therefore, the pressure detection information can also be the voltage value or current value of the voltage-dividing resistor. By detecting the voltage or current of the voltage-dividing resistor, the corresponding pressure at this time can be determined.
[0030] Step 120: When it is determined according to the pressure detection information that the detection pressure passes through a preset pressure value during a change process, a pressure trigger signal is generated.
[0031] In the embodiment of the present application, the change of the detection pressure can be determined through the pressure detection information.
[0032] When the detected pressure value is zero, that is, when there is no pressure at all, the voltage value of the varistor is very large.
[0033] When the detection pressure value gradually increases from zero, the voltage value of the varistor gradually decreases. To prevent false triggering, the system will only respond when the detection pressure value is greater than the preset pressure value.
[0034] When the value of the detected pressure gradually decreases, the voltage value of the varistor gradually increases.
[0035] In the embodiment of the present application, when the detection pressure value gradually increases from zero to the preset pressure value, it is a case of pressure triggering, and a corresponding pressure triggering signal is generated to perform subsequent operations (such as turning on and off the light, adjusting the progress bar, etc.). When the detection pressure gradually decreases from greater than the preset pressure value to the preset pressure value, it is a case of no pressure triggering (such as the user stops applying the detection pressure), and a corresponding pressure triggering signal is generated to perform subsequent operations (such as stopping the display, etc.).
[0036] In an embodiment of the present application, the real-time situation of the detection pressure can be monitored by detecting the pressure detection information, and the pressure triggering scenario (applying detection pressure or stopping applying detection pressure) can be accurately identified by detecting the change process of the detection pressure. When the pressure triggering scenario is identified, the generation of the pressure triggering signal is triggered, which can effectively reduce power consumption and improve battery life.
[0037] In some embodiments, the pressure trigger signal includes a first pressure trigger signal or a second pressure trigger signal.
[0038] The step of generating a pressure trigger signal when determining according to the pressure detection information that the detection pressure passes through a preset pressure value during a change process comprises:
[0039] When it is determined according to the pressure detection information that the change trend of the detection pressure is an upward trend, the initial value of the detection pressure is less than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value, a first pressure trigger signal is generated.
[0040] Alternatively, when it is determined according to the pressure detection information that the change trend of the detection pressure is a downward trend, and the initial value of the detection pressure is greater than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value, a second pressure trigger signal is generated.
[0041] In an embodiment of the present application, when the user applies detection pressure, the detection pressure starts from no pressure, that is, the initial value of the detection pressure is less than the preset pressure value, and the detection pressure increases, that is, the change trend is an upward trend. When the detection pressure is greater than the preset pressure value, a first pressure trigger signal is triggered.
[0042] In an embodiment of the present application, when the user stops applying the detection pressure, the detection pressure begins to decrease from being greater than the preset pressure value, and the detection pressure decreases, that is, the change trend is a downward trend. When the detection pressure is less than the preset pressure value, a second pressure trigger signal is triggered.
[0043] The first pressure trigger signal and the second pressure trigger signal represent different pressure trigger scenarios. For example, the first pressure trigger signal can represent that the user applies detection pressure, and the second pressure trigger signal can represent that the user stops applying detection pressure. By distinguishing different signals, subsequent different key operations can be triggered without continuously generating pressure trigger signals, which can effectively reduce power consumption.
[0044] In some implementations, the pressure detection method provided in the embodiments of the present application is applied to a pressure detection device, which includes a pressure detection module and a signal trigger module, wherein the pressure detection module is used to obtain pressure detection information, and the signal trigger module is connected to the pressure detection module.
[0045] In some embodiments, the step of generating a first pressure trigger signal comprises: a signal trigger module generates a first pressure trigger signal when it is determined according to the pressure detection information that the change trend of the detection pressure is an upward trend, and the initial value of the detection pressure is less than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value, and outputs the first pressure trigger signal through the first output pin of the signal trigger module.
[0046] Alternatively, the step of generating a second pressure trigger signal comprises: a signal trigger module generating a second pressure trigger signal when it is determined according to the pressure detection information that the change trend of the detection pressure is a downward trend, and the initial value of the detection pressure is greater than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value, and outputting the second pressure trigger signal through a second output pin of the signal trigger module.
[0047] In an embodiment of the present application, the pin resources of the signal trigger module are fully utilized to distinguish the first pressure trigger signal and the second pressure trigger signal through different output pins. In subsequent operations, the signals obtained through different output pins distinguish different trigger signals, which is conducive to simplifying software design.
[0048] In some embodiments, the pressure detection method provided in the embodiment of the present application also includes the steps of: the signal trigger module receiving pressure detection information through an input pin; and the signal trigger module entering a sleep state after generating a pressure trigger signal.
[0049] In an embodiment of the present application, the signal trigger module enters a sleep state after generating a pressure trigger signal. The signal trigger module will be awakened to generate a pressure trigger signal only in a pressure trigger scenario, which can effectively reduce the power consumption of the system.
[0050] In some implementations, the pressure detection method provided in the embodiments of the present application also includes the following steps.
[0051] (1) Generate a communication signal based on the pressure trigger signal.
[0052] (2) Send the communication signal to the target device.
[0053] In some embodiments, the pressure detection device generates a communication signal according to the pressure trigger signal and sends the communication signal to the target device, so that the target device can determine the current pressure trigger scene according to the communication signal and perform corresponding operations. For example, when a user triggers the pressure detection device on a light switch, the target device controls the corresponding light to turn on or off.
[0054] In some embodiments, the pressure detection device further includes a communication module; and the communication signal includes a first communication signal or a second communication signal.
[0055] The step of generating a communication signal according to a pressure trigger signal includes: a communication module generating a first communication signal according to a first pressure trigger signal; or, a communication module generating a second communication signal according to a second pressure trigger signal.
[0056] In an embodiment of the present application, the communication module generates a communication signal only when it receives a pressure trigger signal, which can reduce power consumption and improve battery life.
[0057] In some implementations, the communication module may communicate with the target device via wired or wireless means.
[0058] When the communication module communicates with the target device wirelessly, it can be through wireless communication methods such as Bluetooth, Zigbee, Wifi, etc., which are not limited here.
[0059] In some embodiments, the communication module may include a Bluetooth chip.
[0060] In some embodiments, the step of the communication module generating the first communication signal according to the first pressure trigger signal includes: a first communication pin of the communication module receives the first pressure trigger signal; and the communication module generates the first communication signal according to the first pressure trigger signal.
[0061] Or the communication module generates the second communication signal according to the second pressure trigger signal, including: the second communication pin of the communication module receives the second pressure trigger signal; the communication module generates the second communication signal according to the second pressure trigger signal.
[0062] In an embodiment of the present application, the pin resources of the communication module are fully utilized, and different pins are used to receive different pressure trigger signals. Thus, the communication module can directly perform subsequent operations based on the signals received by different pins without distinguishing the signals, which is conducive to simplifying software design.
[0063] In some embodiments, the pressure detection method provided in the embodiment of the present application also includes the step of: the communication module enters a sleep state after sending the communication signal.
[0064] In an embodiment of the present application, the communication module enters a sleep state after generating a pressure trigger signal. The communication module will be awakened to transmit the communication signal only in a pressure trigger scenario, which can effectively reduce the power consumption of the system.
[0065] The pressure detection method provided in the embodiment of the present application will be described in detail below in conjunction with a specific embodiment.
[0066] See also Figure 2 The present application also discloses a schematic diagram of a pressure detection device. Figure 2 As shown, in an embodiment of the present application, the pressure detection device 200 includes a pressure detection module 210, a signal trigger module 220 and a communication module 230. Among them, the input pin 221 of the signal trigger module 220 is connected to the pressure detection module 210 for receiving pressure detection information. The first output pin 222 of the signal trigger module 220 is connected to the first communication pin 231 of the communication module 230 for transmitting the first pressure trigger signal to the communication module 230; the second output pin 223 of the signal trigger module 220 is connected to the second communication pin 232 of the communication module 230 for transmitting the second pressure trigger signal to the communication module 230.
[0067] Among them, the pressure detection module 210 includes a varistor 211 and a voltage-dividing resistor 212, and the varistor 211 and the voltage-dividing resistor 212 are arranged in series; the pressure change is converted into a voltage change by setting the voltage-dividing resistor 212. In this embodiment, the resistance value of the voltage-dividing resistor 212 is 430KΩ. It can be understood that in other implementations, the resistance value of the voltage-dividing resistor 212 can be selected according to actual needs, and the present application does not limit this.
[0068] Exemplarily, the signal trigger module 220 uses a comparator chip, for example, a chip of model LS98102. Figure 3 As shown, the signal input pin 221 of the signal trigger module 220 is the GPIO4 pin of the LS98102 chip, the first output pin 222 of the signal trigger module 220 is the GPIO9 pin of the LS98102 chip, and the second output pin of the signal trigger module is the GPIO7 pin of the LS98102 chip. It is understandable that the chip model LS98102 may also include other pins, such as a VDD pin, a GPI1 pin, GPIO1 to GPIO3 pins, a GPIO5 pin, a GPIO6 pin, a GPIO8 pin, GPIO10 to GPIO12 pins, and a GND pin.
[0069] It should be understood that the above is an exemplary description of the signal trigger module 220 and does not limit the model of the signal trigger module.
[0070] In the embodiment of the present application, the communication module 220 includes a Bluetooth chip.
[0071] In the embodiment of the present application, the varistor 211 divides the voltage through the series voltage-dividing resistor 212 and then provides the voltage to the signal input terminal 221 of the signal trigger module 220. As the pressure on the varistor 211 increases, the voltage value on the varistor 211 decreases accordingly.
[0072] The pressure starts to increase from no pressure. When the voltage of the varistor 211 gradually decreases from being greater than the preset voltage threshold to being less than the preset voltage threshold, the signal trigger module 220 will output the first pressure trigger signal to the communication module 220 through the first signal output pin 222, and the communication module 220 determines that there is currently a pressure trigger.
[0073] The pressure gradually decreases. When the voltage of the varistor 211 gradually increases from less than the preset voltage threshold to greater than the preset voltage threshold, the signal trigger module 220 outputs a second pressure trigger signal to the communication module 220 through the second signal output pin 223. The communication module 220 determines that there is no pressure trigger at present.
[0074] For example, when the voltage is less than the preset voltage threshold, the signal trigger module 220 outputs a 100ms negative pulse signal to the communication module 230 through the first signal output pin 222, and the communication module 230 chip determines that there is pressure triggering. When the voltage is greater than the preset voltage threshold, the signal trigger module 220 outputs a 100ms negative pulse signal through the second signal output pin 223, and the communication module 230 determines that there is no pressure.
[0075] The comparator chip and the Bluetooth chip usually remain in a deep sleep state and will only wake up when pressure triggers or no-pressure triggers occur. After waking up, the Bluetooth chip broadcasts the pressure / no-pressure data via Bluetooth, and then the entire circuit returns to sleep. After receiving the Bluetooth broadcast, the gateway triggers the linkage function and pushes the message to the user. Therefore, the pressure detection method provided in this application has a relatively small power consumption current, consumes very low battery power, and the button battery life can reach 5 years.
[0076] See also Figure 4 , the present application embodiment also provides a device control method, such as Figure 4 As shown, the method includes: step 310 to step 320.
[0077] Step 310: Acquire the pressure trigger signal obtained by the above pressure detection method.
[0078] Step 320: Determine a control measure corresponding to the pressure trigger signal according to the pressure trigger signal.
[0079] Pressure detection can be applied to a variety of application scenarios such as production, experiments, and life. For example, on smart wearable devices, it can be used to detect the user's vital signs, such as blood pressure, heart rate, etc. Corresponding control measures can be set for different pressure trigger signals according to usage needs. For example, when the pressure trigger signal reaches the detection threshold, the corresponding control measures are determined, such as sounding an alarm or sending a call for assistance.
[0080] In some embodiments, the control measures correspond to the real-time pressure, and the control of the device can be triggered by precise real-time pressure to meet the control requirements of different application scenarios. For example, the control measures can include control measures for the surrounding environment and reminder-related control measures. For example, temperature and humidity control, light control, through smart home devices such as dehumidifiers, humidifiers, air conditioners, fans, lights, etc.
[0081] In some embodiments, the electronic device includes a lighting module, and step 320 includes the following steps.
[0082] (1) Determine the control lighting effect of the lighting module based on the pressure trigger signal.
[0083] (2) Control the lighting module to display and control the lighting effects.
[0084] In the embodiments of the present application, the lighting effect of the lighting module can be adjusted according to the real-time temperature, so that the current pressure situation can be intuitively judged.
[0085] In some embodiments, the lighting effect of the lighting module includes brightness, hue, etc. For the same real-time pressure, the lighting effect can be static or dynamic and can be adjusted according to actual needs.
[0086] In some embodiments, when the real-time pressure is within a preset pressure range, the light module is controlled to display a first light effect; when the real-time pressure is outside the preset pressure range, the light module is controlled to display a second light effect. The preset pressure range is the normal working range of the electronic device, so that it can be intuitively judged whether the electronic device is working normally.
[0087] In some embodiments, when the real-time pressure is within a preset pressure range, the lighting effect corresponding to the lighting module is controlled to increase in brightness as the real-time pressure increases, thereby being able to intuitively determine the current pressure condition of the electronic device.
[0088] In some embodiments, when the real-time pressure is within a preset pressure range, the lighting effect corresponding to the lighting module is controlled to display different tones according to the real-time pressure, for example, light tones are displayed in low-pressure areas and dark tones are displayed in high-pressure areas.
[0089] It is understandable that the present application is not limited thereto, and the specific control lighting effect can be set according to actual needs.
[0090] See also Figure 5 , an embodiment of the present application provides another pressure detection device 400 , which includes: a pressure acquisition module 410 and a signal triggering module 420 .
[0091] The pressure acquisition module 410 is used to acquire pressure detection information; the pressure detection information is used to determine the detection pressure.
[0092] The signal trigger module 420 is used to generate a pressure trigger signal when it is determined according to the pressure detection information that the detection pressure passes through a preset pressure value during the change process.
[0093] It should be noted that, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be described one by one in the device embodiment.
[0094] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0095] See also Figure 6 Based on the above-mentioned pressure detection method, an embodiment of the present application also provides another pressure detection device 500 that can execute the above-mentioned pressure detection method.
[0096] In an embodiment of the present application, the pressure detection device 500 includes one or more processors 510, a memory 520, and one or more applications. The one or more applications are stored in the memory 520, wherein the memory 520 stores a program that can execute the content of the aforementioned embodiment, and the processor 510 can execute the program stored in the memory.
[0097] Among them, the processor 510 may include one or more cores for processing data and a message matrix unit. The processor 510 uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor 510 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 510 can integrate one or more combinations of central processing unit 510 (Central Processing Unit, CPU), image processor (Graphics Processing Unit, GPU) and modem. Among them, the CPU mainly processes the operating system, user interface and application program; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 510, but implemented separately through a communication chip.
[0098] The memory 520 may include a random access memory (RAM) or a read-only memory (ROM). The memory 520 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the terminal during use, etc.
[0099] Please refer to Figure 7 , which shows a structural block diagram of a computer-readable storage medium 600 provided in an embodiment of the present application. The computer-readable storage medium 600 stores a program code 610, which can be called by a processor to execute the battery temperature adjustment method described in the above method embodiment.
[0100] The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 600 has storage space for program codes for executing any method steps in the above-mentioned pressure detection method. These program codes 610 can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0101] In summary, the embodiments of the present application provide a pressure detection method, an equipment control method, an apparatus and a storage medium, and the pressure detection method includes: obtaining pressure detection information; the pressure detection information is used to determine the detection pressure; when it is determined according to the pressure detection information that the detection pressure passes through a preset pressure value during the change process, a pressure trigger signal is generated, thereby monitoring the real-time situation of the detection pressure, and accurately identifying the pressure triggering scenario by detecting that the pressure passes through the preset pressure value during the change process. When the pressure triggering scenario occurs, the pressure triggering signal is generated, which can effectively reduce power consumption and effectively improve battery life.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A pressure detection method, characterized in that: The method is applied to a pressure detection device, which includes a pressure detection module and a signal trigger module; The pressure detection module is connected to the signal trigger module; the method comprises: The pressure detection module acquires pressure detection information; the pressure detection information is used to determine the detection pressure; The signal trigger module wakes up from the dormant state when it is determined according to the pressure detection information that the detected pressure passes through a preset pressure value during the change process, and generates a pressure trigger signal, thereby eliminating the need to generate a pressure trigger signal all the time; Wherein, the pressure trigger signal includes a first pressure trigger signal or a second pressure trigger signal; the first pressure trigger signal and the second pressure trigger signal represent different pressure trigger scenarios; The signal trigger module wakes up from a dormant state when determining, according to the pressure detection information, that the detection pressure passes through a preset pressure value during a change process, and generates a pressure trigger signal, including: The signal trigger module wakes up from the dormant state and generates a first pressure trigger signal when it is determined according to the pressure detection information that the change trend of the detection pressure is an upward trend, the initial value of the detection pressure is less than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value; Alternatively, the signal trigger module wakes up from a sleep state and generates a second pressure trigger signal when it is determined, based on the pressure detection information, that the change trend of the detection pressure is a downward trend, and the initial value of the detection pressure is greater than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value.
2. The pressure detection method according to claim 1, characterized in that; The signal trigger module wakes up from a dormant state and generates a first pressure trigger signal when it is determined according to the pressure detection information that the change trend of the detection pressure is an upward trend, the initial value of the detection pressure is less than a preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value; including: The signal trigger module wakes up from a dormant state when it is determined according to the pressure detection information that the change trend of the detection pressure is an upward trend, and the initial value of the detection pressure is less than a preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value, generates a first pressure trigger signal, and outputs the first pressure trigger signal through a first output pin of the signal trigger module; Alternatively, the signal trigger module wakes up from a dormant state and generates a second pressure trigger signal when it is determined according to the pressure detection information that the change trend of the detection pressure is a downward trend, the initial value of the detection pressure is greater than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value, including: The signal trigger module wakes up from a sleep state when it is determined according to the pressure detection information that the change trend of the detection pressure is a downward trend, the initial value of the detection pressure is greater than the preset pressure value, and the real-time value of the detection pressure is equal to the preset pressure value, generates a second pressure trigger signal, and outputs the second pressure trigger signal through the second output pin of the signal trigger module.
3. The pressure detection method according to claim 2, characterized in that: The pressure detection method further comprises: The signal trigger module receives the pressure detection information through an input pin; The signal trigger module enters a dormant state after generating the pressure trigger signal.
4. The pressure detection method according to claim 2 or 3, characterized in that: The method further comprises: generating a communication signal according to the pressure trigger signal; The communication signal is sent to a target device.
5. The pressure detection method according to claim 4, characterized in that: The pressure detection device further includes a communication module; the communication signal includes a first communication signal or a second communication signal; Generating a communication signal according to the pressure trigger signal comprises: The communication module generates the first communication signal according to the first pressure trigger signal; Alternatively, the communication module generates the second communication signal according to the second pressure trigger signal.
6. The pressure detection method according to claim 5, characterized in that: The communication module generates the first communication signal according to the first pressure trigger signal, including: The first communication pin of the communication module receives the first pressure trigger signal; The communication module generates the first communication signal according to the first pressure trigger signal; Or the communication module generating the second communication signal according to the second pressure trigger signal includes: The second communication pin of the communication module receives the second pressure trigger signal; The communication module generates the second communication signal according to the second pressure trigger signal.
7. The pressure detection method according to claim 5, characterized in that: The pressure detection method further comprises: After sending the communication signal, the communication module enters a dormant state.
8. A device control method, characterized in that: Applied to electronic equipment, the method comprises: Obtaining a pressure trigger signal obtained by the pressure detection method according to any one of claims 1 to 7; A control measure corresponding to the pressure trigger signal is determined according to the pressure trigger signal.
9. The device control method according to claim 8, characterized in that: The electronic device includes a lighting module, and the determining a control measure corresponding to the pressure trigger signal according to the pressure trigger signal includes: Determining a control lighting effect of the lighting module according to the pressure trigger signal; Control the lighting module to display the control lighting effect.
10. A pressure detection device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the pressure detection method as described in any one of claims 1-7.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, and the program code can be called by a processor to execute the pressure detection method as described in any one of claims 1 to 7, or the device control method as described in claim 8 or 9.
Citation Information
Patent Citations
Touch-screen photographing method, device for mobile terminal and mobile terminal
CN105912158A
Touch operation method and device
CN114237485A
Pressure touch key key combination
CN207611369U