CN110266876B - Pressure threshold determination method and device and computer readable storage medium - Google Patents
Pressure threshold determination method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN110266876B CN110266876B CN201910357394.9A CN201910357394A CN110266876B CN 110266876 B CN110266876 B CN 110266876B CN 201910357394 A CN201910357394 A CN 201910357394A CN 110266876 B CN110266876 B CN 110266876B
- Authority
- CN
- China
- Prior art keywords
- pressure threshold
- value
- pressure
- threshold value
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The application relates to a pressure threshold value determining method, a pressure threshold value determining device and a computer-readable storage medium, wherein the pressure threshold value determining method is used for a terminal device, at least one pressure sensor is arranged on the terminal device, and the pressure threshold value determining method comprises the following steps: acquiring a pressure value detected by a pressure sensor and an initial pressure threshold value; when the pressure value is larger than a preset pressure threshold value, recording the change trend of the pressure value in a first preset time period; and determining a target pressure threshold according to the change trend, and updating the initial pressure threshold to the target pressure threshold. According to the method provided by the embodiment of the application, whether the current pressing operation is the false touch operation or not is judged by recording the variation trend of the pressure value, and then the variation trend of the pressure value is adjusted to adjust the pressure threshold value, so that an intelligent and accurate pressure value correction scheme is finally realized.
Description
Technical Field
The present application relates to the field of mobile terminals, and in particular, to a method and an apparatus for determining a pressure threshold, and a computer-readable storage medium.
Background
With the development of technologies, smart phones have more and more functions at present. At present, a pressure key is installed on a frame of a mobile phone, and then a series of characteristic functions are generated by using the pressure key, so that the satisfaction degree of a user is improved. However, the pressure keys are mounted on the frame and are easily interfered by false touch. If the problem of false touch cannot be solved, the function enables the product to be suitable for the contrary.
Therefore, a complete pressure threshold correction method is needed to ensure that the pressure button can work normally in any occasion.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, the present application provides a pressure threshold determination method, apparatus and computer-readable storage medium.
In a first aspect, the present application provides a method for determining a pressure threshold, where the method is used for a terminal device, where the terminal device is provided with at least one pressure sensor, and the method for determining a pressure threshold includes:
acquiring a pressure value detected by the pressure sensor and an initial pressure threshold value;
when the pressure value is larger than a preset pressure threshold value, recording the change trend of the pressure value within a first preset time period;
and determining a target pressure threshold according to the change trend, and updating the initial pressure threshold to the target pressure threshold.
Wherein, the determining the target pressure threshold according to the variation trend specifically includes:
when the pressure value is continuously greater than a preset pressure threshold value within the first preset time period, obtaining a target pressure threshold value by increasing the initial pressure threshold value,
and when the minimum value of the pressure value is smaller than the initial pressure threshold value within the first preset time length, restoring the initial pressure threshold value through a restoring mechanism to obtain a target pressure threshold value.
Optionally, the step of determining the target pressure threshold according to the variation trend specifically includes:
when the pressure value is continuously greater than a preset pressure threshold value within the first preset time period, taking the sum of the pressure value and a preset pressure adjustment value as the target pressure threshold value;
wherein the preset pressure threshold is greater than the initial pressure threshold.
Optionally, the step of determining the target pressure threshold according to the variation trend further includes:
and within the first preset time length, when the minimum value of the pressure value is smaller than the initial pressure threshold value, acquiring at least one historical pressure threshold value, and determining the target pressure threshold value according to the historical pressure threshold value.
Optionally, the step of determining the target pressure threshold according to the historical pressure threshold specifically includes:
obtaining the use frequency corresponding to the historical pressure threshold;
taking a historical pressure threshold value corresponding to the use frequency greater than the frequency threshold value as an alternative historical pressure threshold value;
and comparing and determining one alternative historical pressure threshold with the minimum value in the alternative historical pressure thresholds, and determining the alternative historical pressure threshold as the target pressure threshold.
Optionally, the terminal device is provided with a camera and a gyroscope, and before the step of taking the sum of the initial pressure threshold and a preset pressure adjustment value as the target pressure threshold, the pressure threshold determining method includes:
acquiring image information shot by the camera and attitude information detected by the gyroscope;
determining whether the terminal equipment is in a holding state or not according to the image information and the posture information;
and when the terminal equipment is in the holding state, executing the step of taking the sum of the initial pressure threshold value and a preset pressure adjusting value as the target pressure threshold value.
Optionally, the step of determining whether the terminal device is in a holding state according to the image information and the gesture information specifically includes:
and determining that the terminal equipment is in the holding state based on the fact that the image information comprises a human body image and the posture information is a non-horizontal posture.
Optionally, before the step of updating the initial pressure threshold to the target pressure threshold, the pressure threshold determining method further includes:
judging whether the terminal equipment is in a locking state or not;
and when the terminal equipment is in an unlocked state, the step of updating the initial pressure threshold value to the target pressure threshold value is executed.
Optionally, the pressure threshold determination method further includes:
acquiring current system time;
and when the system time is in a preset sleep time period and the pressure value is continuously smaller than the initial pressure threshold value within a second preset time period, controlling the terminal equipment to enter a power saving mode to stop acquiring the pressure value.
In a second aspect, the present application provides a pressure threshold determination apparatus, comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implements the steps of the method according to the first aspect.
In a third aspect, the present application provides a computer readable storage medium having stored thereon a pressure threshold determination program which when executed by a processor implements the steps of the method according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the method provided by the embodiment of the application, when the pressure value acting on the pressure sensor is detected and the pressure value is larger than the initial pressure threshold value, whether the current pressing operation is mistaken touch operation or not is judged by recording the change trend of the pressure value. Specifically, within a first preset time period, the pressure value is continuously greater than the preset pressure threshold value, that is, the pressure value is kept in a relatively stable pressure state (the recorded pressure value curve is in a wavy line shape), and if it can be determined that the pressure value is a false touch operation at present, a process of adjusting the pressure threshold value is triggered, so as to generate a latest target pressure threshold value, so as to avoid the false touch. Meanwhile, after the pressure threshold is improved due to mistaken touch prevention, a recovery mechanism is set, and the condition that the pressure threshold is infinitely increased and finally the pressure key is out of order is avoided. Specifically, within a first preset time period, the minimum value of the pressure value is smaller than the initial pressure threshold value, that is, the pressure value data change trajectory is similar to a sine wave shape, it indicates that the user may have a press failure, and a process of pulling down the reset pressure key threshold value again needs to be triggered, at this time, a more common threshold value (the use frequency is greater than the frequency threshold value) is selected from a plurality of historical pressure threshold values, and the smaller value of the common threshold values is selected as a new target pressure threshold value. Finally, an intelligent and accurate pressure value correction scheme is realized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a mobile terminal according to various embodiments of the present application;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
FIG. 3 is a schematic front view of a mobile phone according to various embodiments of the present application;
FIG. 4 is a schematic rear view of a handset according to various embodiments of the present application;
FIG. 5 is a flow chart of a pressure threshold determination method of various embodiments of the present application;
fig. 6 is a block diagram of a pressure threshold determination device according to various embodiments of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal device may be implemented in various forms. For example, the terminal devices described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and fixed terminal devices such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal device in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein. FIG. 3 is a schematic front view of a mobile phone according to various embodiments of the present application; fig. 4 is a schematic rear view of a mobile phone according to various embodiments of the present application.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal device, which is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
The first embodiment:
as shown in fig. 5, in this embodiment, a pressure threshold determining method is provided, which is used for a terminal device, where at least one pressure sensor is disposed on the terminal device, and is characterized in that the pressure threshold determining method includes:
s502, acquiring a pressure value detected by the pressure sensor and an initial pressure threshold value;
s504, when the pressure value is larger than a preset pressure threshold value, recording the change trend of the pressure value in a first preset time period;
s506, determining a target pressure threshold according to the change trend, and updating the initial pressure threshold to the target pressure threshold.
In practical application, the terminal device may be a smart phone, a smart wearable device, or the like, and the pressure sensor arranged on the terminal device is arranged on a press key, a pressable frame, or a screen with a press sensing function. In daily use, the terminal equipment receives a pressing instruction of a user through a pressing key, a pressable frame or a screen with a pressing induction function, and then corresponding intelligent control is achieved. In the using process, the triggered reference pressure threshold of the pressure key may have different conditions under certain conditions, for example, when a protective sleeve is provided, two sides of the mobile phone are in a certain pressure pressing state for a long time, so that the initial pressure threshold needs to be correspondingly adjusted. And under the condition that the terminal equipment is placed in a pocket of a user, the pressure value can be sensed due to extrusion, namely, false touch occurs, so that the change trend of the pressure value is recorded in the first preset time period, whether the current pressing operation is the false touch or the pressing instruction is judged according to the change trend of the pressure value, and the pressure threshold is correspondingly adjusted according to the judgment and the adjustment, so that the intelligent pressure threshold correction is realized.
Optionally, in a first preset time period, when the pressure value is continuously greater than the preset pressure threshold, taking the sum of the pressure value and the preset pressure adjustment value as a target pressure threshold;
wherein the preset pressure threshold is greater than the initial pressure threshold.
In practical application, if the pressure value within the first preset time period is continuously greater than the preset pressure threshold value and the pressure curve is in a curve shape with a relatively stable pressure state, it is determined that a false touch is generated at present, and at this time, the sum of the pressure value and the preset pressure adjustment value is used as the target pressure threshold value to update the pressure threshold value. The pressure adjustment value can be freely set according to actual conditions.
Optionally, within the first preset time period, when the minimum value of the pressure value is smaller than the initial pressure threshold, at least one historical pressure threshold is obtained, and the target pressure threshold is determined according to the historical pressure threshold.
In practical application, if the minimum value of the pressure value within the first preset time period is smaller than the initial pressure threshold value, it indicates that the user may press the pressure sensor repeatedly, and a situation of press failure may occur, and it is necessary to trigger a process of pulling down the reset pressure key threshold value again. When the pressure key threshold is pulled down again, new threshold data is preferably generated according to the use condition of the user history data.
Optionally, obtaining a use frequency corresponding to the historical pressure threshold;
taking a historical pressure threshold value corresponding to the use frequency greater than the frequency threshold value as an alternative historical pressure threshold value;
and comparing and determining one alternative historical pressure threshold with the minimum value in the alternative historical pressure thresholds, and determining the alternative historical pressure threshold as the target pressure threshold.
In practical application, in the process of analyzing historical pressure threshold data, common thresholds and uncommon thresholds are distinguished, the historical data with the use frequency exceeding a frequency threshold is used as the common thresholds, and a relatively smaller threshold in the common thresholds is selected as a target pressure threshold.
Optionally, the terminal device is provided with a camera and a gyroscope, and before the step of taking the sum of the initial pressure threshold and a preset pressure adjustment value as the target pressure threshold, the pressure threshold determining method includes:
acquiring image information shot by the camera and attitude information detected by the gyroscope;
determining whether the terminal equipment is in a holding state or not according to the image information and the posture information;
and when the terminal equipment is in the holding state, executing the step of taking the sum of the initial pressure threshold value and a preset pressure adjusting value as the target pressure threshold value.
In practical application, the terminal equipment is a smart phone or smart wearable equipment, a front camera and a gyroscope are arranged on the terminal equipment, image information is obtained through the front camera to judge whether a user exists near the terminal equipment, and meanwhile attitude information of the terminal equipment is obtained through the gyroscope to judge whether the terminal equipment is held by the user. And if and only if the terminal equipment is held by a user, executing the step of adjusting the threshold value, and ensuring that the recovery mechanism can be triggered only in a handheld state.
Optionally, it is determined that the terminal device is in the holding state based on that the image information includes a human body image and the posture information is a non-horizontal posture.
In practical application, when the front camera acquires the human body image of the user and the posture information is in a non-horizontal state, the terminal equipment is determined to be in a holding state. The absence of a human body image in the image acquired by the front camera indicates that the terminal device is not in the vicinity of the user or in a user bag/pocket. When the attitude information acquired by the gyroscope is a horizontal attitude, the terminal device is placed on a desktop or other positions, and the threshold value does not need to be adjusted.
Optionally, judging whether the terminal device is in a locked state;
and when the terminal equipment is in an unlocked state, the step of updating the initial pressure threshold value to the target pressure threshold value is executed.
In practice, the pressure threshold is only adjusted when the device is in the unlocked state. Taking a terminal device as an example of a smart phone, when the smart phone is in a bright screen state, it indicates that the smart phone is not locked and is used by a user, and at this time, the step of updating the initial pressure threshold to the target pressure threshold is triggered to be executed, so as to prevent false touch. When the smart phone is in a black screen state, the step of updating the initial pressure threshold to the target pressure threshold is not punished, and the problems that the threshold is wirelessly increased and the pressing operation is invalid due to the fact that the smart phone in the black screen state is in a mistaken holding pressure state are prevented.
Optionally, the pressure threshold determination method further includes:
acquiring current system time;
and when the system time is in a preset sleep time period and the pressure value is continuously smaller than the initial pressure threshold value within a second preset time period, controlling the terminal equipment to enter a power saving mode to stop acquiring the pressure value.
In practical application, the power saving mode of the chip can be set according to the time period and the data information, specifically, when the system time is in a preset sleep time period, such as between 0 and 5 in the morning, the user is in the sleep time at this time, and the pressure value obtained by the pressure sensor is continuously smaller than the initial pressure threshold value, which indicates that the need of pressure operation on the terminal device is not needed at this time, the terminal device is controlled to enter the power saving mode at this time, the pressure value is not obtained any more, so that energy saving is realized, and the endurance of the device is improved.
Optionally, the above embodiment includes a false touch prevention process and a post-error recovery mechanism process.
The false touch prevention process specifically comprises the following steps:
firstly, acquiring original data;
secondly, analyzing data;
thirdly, generating a result to generate a latest threshold value which can be adopted;
fourthly, comparing the pressure value with the currently used pressure threshold value;
and fifthly, updating the correction threshold.
The recovery mechanism after the error specifically comprises the following processes:
firstly, acquiring original data;
secondly, analyzing data;
thirdly, generating a result, and judging whether continuous regular pressing conditions exist or not;
fourthly, acquiring handheld state data;
fifthly, resetting the threshold value of the pressure key.
Optionally, the above-mentioned obtaining of data and the analysis and comparison of data are all completed by using an algorithm, so as to ensure the accuracy of data.
Wherein, the algorithm analysis of the original data comprises:
firstly, acquiring original data;
analyzing the size and the change track of the data pressure value;
thirdly, analyzing the data according to the size and the change track of the data and speculating future data so as to master possible operations of the user;
if the pressure value is kept in a relatively stable pressure state (wave line shape) within a long time, generating a latest pressure threshold value, and triggering a threshold value adjusting process;
fifthly, if the data change track is similar to a positive sine wave shape, the situation that the user is likely to press failure is indicated, and a process of pulling down the reset pressure key threshold again needs to be triggered;
sixthly, when the pressure key threshold is pulled down again, new threshold data are generated according to the use condition of the historical data of the user;
generating a common threshold and an uncommon threshold in historical data analysis, and selecting a smaller threshold from the common thresholds when the reset pressure key threshold is pulled down again;
and eighthly, in data analysis, setting the power saving mode of the chip according to the time period and the data information.
Second embodiment:
as shown in fig. 6, in the present embodiment, there is provided a pressure threshold value determination apparatus 600 including:
a memory 602, a processor 604, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implements the steps of the method according to the first aspect.
The third embodiment:
in this embodiment, a computer readable storage medium is provided, having stored thereon a pressure threshold determination program, which when executed by a processor, implements the steps of the method according to the first aspect.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A pressure threshold value determining method is used for a terminal device, at least one pressure sensor is arranged on the terminal device, and the pressure threshold value determining method is characterized by comprising the following steps:
acquiring a pressure value detected by the pressure sensor and an initial pressure threshold value;
when the pressure value is larger than a preset pressure threshold value, recording the change trend of the pressure value within a first preset time period;
determining a target pressure threshold according to the change trend, and updating the initial pressure threshold to the target pressure threshold;
wherein, the determining the target pressure threshold according to the variation trend specifically includes:
when the pressure value is continuously greater than a preset pressure threshold value within the first preset time period, obtaining a target pressure threshold value by increasing the initial pressure threshold value,
and when the minimum value of the pressure value is smaller than the initial pressure threshold value within the first preset time length, restoring the initial pressure threshold value through a restoring mechanism to obtain a target pressure threshold value.
2. The method for determining a pressure threshold according to claim 1, wherein the step of obtaining a target pressure threshold by raising the initial pressure threshold when the pressure value is continuously greater than a preset pressure threshold within the first preset time period specifically includes:
when the pressure value is continuously greater than a preset pressure threshold value within the first preset time period, taking the sum of the pressure value and a preset pressure adjustment value as the target pressure threshold value;
wherein the preset pressure threshold is greater than the initial pressure threshold.
3. The method according to claim 2, wherein the step of recovering the initial pressure threshold value by a recovery mechanism to obtain the target pressure threshold value when the minimum value of the pressure values is smaller than the initial pressure threshold value within the first preset time period further comprises:
and within the first preset time length, when the minimum value of the pressure value is smaller than the initial pressure threshold value, acquiring at least one historical pressure threshold value, and determining the target pressure threshold value according to the historical pressure threshold value.
4. The method according to claim 3, wherein the step of determining the target pressure threshold value according to the historical pressure threshold value specifically comprises:
obtaining the use frequency corresponding to the historical pressure threshold;
taking a historical pressure threshold value corresponding to the use frequency greater than the frequency threshold value as an alternative historical pressure threshold value;
and comparing and determining one alternative historical pressure threshold with the minimum value in the alternative historical pressure thresholds, and determining the alternative historical pressure threshold as the target pressure threshold.
5. The pressure threshold determination method according to claim 3, wherein the terminal device is provided with a camera and a gyroscope, and before the step of taking the sum of the initial pressure threshold and a preset pressure adjustment value as the target pressure threshold, the pressure threshold determination method comprises:
acquiring image information shot by the camera and attitude information detected by the gyroscope;
determining whether the terminal equipment is in a holding state or not according to the image information and the posture information;
and when the terminal equipment is in the holding state, executing the step of taking the sum of the initial pressure threshold value and a preset pressure adjusting value as the target pressure threshold value.
6. The method for determining a pressure threshold according to claim 5, wherein the step of determining whether the terminal device is in a held state according to the image information and the posture information specifically includes:
and determining that the terminal equipment is in the holding state based on the fact that the image information comprises a human body image and the posture information is a non-horizontal posture.
7. The pressure threshold determination method of claim 1, wherein prior to the step of updating the initial pressure threshold to the target pressure threshold, the pressure threshold determination method further comprises:
judging whether the terminal equipment is in a locking state or not;
and when the terminal equipment is in an unlocked state, the step of updating the initial pressure threshold value to the target pressure threshold value is executed.
8. The pressure threshold determination method of any of claims 1-7, further comprising:
acquiring current system time;
and when the system time is in a preset sleep time period and the pressure value is continuously smaller than the initial pressure threshold value within a second preset time period, controlling the terminal equipment to enter a power saving mode to stop acquiring the pressure value.
9. A pressure threshold determination device, characterized in that the pressure threshold determination device comprises:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program, when executed by the processor, implementing the steps of the method of any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that a pressure threshold determination program is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the pressure threshold determination method according to any one of claims 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910357394.9A CN110266876B (en) | 2019-04-29 | 2019-04-29 | Pressure threshold determination method and device and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910357394.9A CN110266876B (en) | 2019-04-29 | 2019-04-29 | Pressure threshold determination method and device and computer readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110266876A CN110266876A (en) | 2019-09-20 |
| CN110266876B true CN110266876B (en) | 2020-12-29 |
Family
ID=67913954
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910357394.9A Active CN110266876B (en) | 2019-04-29 | 2019-04-29 | Pressure threshold determination method and device and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110266876B (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113311956A (en) * | 2020-02-27 | 2021-08-27 | 北京小米移动软件有限公司 | Method and device for determining type of trigger operation event and electronic equipment |
| CN111796678A (en) * | 2020-06-16 | 2020-10-20 | 瑞声科技(新加坡)有限公司 | Interaction method, device and equipment based on tactile feedback and readable medium |
| CN112099661B (en) * | 2020-08-17 | 2024-05-03 | 深圳市优必选科技股份有限公司 | Pressure detection method and device and electronic equipment |
| CN112162478B (en) * | 2020-10-06 | 2023-06-02 | 嘉兴美茵钛传动科技有限公司 | Control method and control system for intelligent switching control right |
| WO2022165733A1 (en) * | 2021-02-05 | 2022-08-11 | 深圳市汇顶科技股份有限公司 | Method and apparatus for determining pressure reference value, and chip and electronic device |
| CN113031775B (en) * | 2021-03-24 | 2023-02-03 | Oppo广东移动通信有限公司 | Gesture data acquisition method, device, terminal and storage medium |
| CN113076029B (en) * | 2021-03-31 | 2023-01-24 | 安徽华米信息科技有限公司 | Wearable device and control method thereof |
| JP2022163424A (en) * | 2021-04-14 | 2022-10-26 | アルプスアルパイン株式会社 | Input determination device and input determination method |
| CN113419640B (en) * | 2021-06-07 | 2023-01-10 | 维沃移动通信有限公司 | Pressure sensing channel opening method, device and electronic equipment |
| CN115629937A (en) * | 2022-10-17 | 2023-01-20 | 北京广通优云科技股份有限公司 | IT system operation index dynamic threshold upper limit analysis method |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103135810A (en) * | 2011-11-24 | 2013-06-05 | 比亚迪股份有限公司 | Pressure sensitivity adjustment method of touch screen and pressure sensitivity adjustment system of touch screen |
| CN105739776A (en) * | 2016-01-29 | 2016-07-06 | 广东欧珀移动通信有限公司 | Pressure value calibration method and apparatus, and mobile terminal |
| CN106681553A (en) * | 2016-12-13 | 2017-05-17 | 深圳市金立通信设备有限公司 | Method for adjusting touch pressure threshold and terminal |
| CN106681638A (en) * | 2016-12-16 | 2017-05-17 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for controlling touch screen |
| CN106843568A (en) * | 2016-12-30 | 2017-06-13 | 珠海市魅族科技有限公司 | A kind of terminal installation of false-touch prevention method and false-touch prevention |
| CN107450778A (en) * | 2017-09-14 | 2017-12-08 | 维沃移动通信有限公司 | A kind of false touch recognition methods and mobile terminal |
| CN107678594A (en) * | 2017-09-30 | 2018-02-09 | 努比亚技术有限公司 | Calibration method, device, terminal device and the storage medium of touch screen |
| CN108111689A (en) * | 2017-12-26 | 2018-06-01 | 深圳市万普拉斯科技有限公司 | Dynamic regulating method, device and the mobile terminal of pressure touch |
| CN108255346A (en) * | 2018-01-25 | 2018-07-06 | 深圳市万普拉斯科技有限公司 | The dynamic regulating method and device of pressure touch threshold value |
| CN108646948A (en) * | 2018-05-17 | 2018-10-12 | Oppo广东移动通信有限公司 | Method and device for adjusting sensitivity of touch key, storage medium and electronic equipment |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105045454B (en) * | 2015-08-27 | 2017-10-17 | 广东欧珀移动通信有限公司 | A terminal false touch prevention method and terminal |
| CN108469921A (en) * | 2018-03-12 | 2018-08-31 | 联想(北京)有限公司 | A kind of detection method and electronic equipment of pressure |
-
2019
- 2019-04-29 CN CN201910357394.9A patent/CN110266876B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103135810A (en) * | 2011-11-24 | 2013-06-05 | 比亚迪股份有限公司 | Pressure sensitivity adjustment method of touch screen and pressure sensitivity adjustment system of touch screen |
| CN105739776A (en) * | 2016-01-29 | 2016-07-06 | 广东欧珀移动通信有限公司 | Pressure value calibration method and apparatus, and mobile terminal |
| CN106681553A (en) * | 2016-12-13 | 2017-05-17 | 深圳市金立通信设备有限公司 | Method for adjusting touch pressure threshold and terminal |
| CN106681638A (en) * | 2016-12-16 | 2017-05-17 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for controlling touch screen |
| CN106843568A (en) * | 2016-12-30 | 2017-06-13 | 珠海市魅族科技有限公司 | A kind of terminal installation of false-touch prevention method and false-touch prevention |
| CN107450778A (en) * | 2017-09-14 | 2017-12-08 | 维沃移动通信有限公司 | A kind of false touch recognition methods and mobile terminal |
| CN107678594A (en) * | 2017-09-30 | 2018-02-09 | 努比亚技术有限公司 | Calibration method, device, terminal device and the storage medium of touch screen |
| CN108111689A (en) * | 2017-12-26 | 2018-06-01 | 深圳市万普拉斯科技有限公司 | Dynamic regulating method, device and the mobile terminal of pressure touch |
| CN108255346A (en) * | 2018-01-25 | 2018-07-06 | 深圳市万普拉斯科技有限公司 | The dynamic regulating method and device of pressure touch threshold value |
| CN108646948A (en) * | 2018-05-17 | 2018-10-12 | Oppo广东移动通信有限公司 | Method and device for adjusting sensitivity of touch key, storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110266876A (en) | 2019-09-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110266876B (en) | Pressure threshold determination method and device and computer readable storage medium | |
| CN109067995B (en) | Brightness adjusting method, mobile terminal and computer readable storage medium | |
| CN110035176B (en) | Brightness adjusting method of mobile terminal, mobile terminal and storage medium | |
| CN108566479B (en) | Screen state control method, mobile terminal and computer readable storage medium | |
| CN109348067B (en) | Method for adjusting screen display brightness, mobile terminal and computer readable storage medium | |
| CN108184023B (en) | Screen state control method, mobile terminal and computer readable storage medium | |
| CN107027114A (en) | A kind of SIM card switching method, equipment and computer-readable recording medium | |
| CN109195213B (en) | Mobile terminal screen control method, mobile terminal and computer readable storage medium | |
| CN110007816B (en) | Display area determining method, terminal and computer readable storage medium | |
| CN107635070B (en) | Message reminding method, terminal and storage medium | |
| CN109144441B (en) | Screen adjusting method, terminal and computer readable storage medium | |
| CN109862278B (en) | Light supplementing method and device for face recognition and computer readable storage medium | |
| CN110198379B (en) | Mobile terminal control method, mobile terminal, and computer-readable storage medium | |
| CN109067969A (en) | The method, apparatus and computer readable storage medium of mobile device and its shatter-resistant | |
| CN108062162B (en) | Flexible screen terminal, placement form control method thereof and computer-readable storage medium | |
| CN109144705B (en) | Application management method, mobile terminal and computer readable storage medium | |
| CN108563388B (en) | Screen operation method, mobile terminal and computer-readable storage medium | |
| CN107832032B (en) | Screen locking display method and mobile terminal | |
| CN108847860B (en) | Wearable device, wearable device control method and computer-readable storage medium | |
| CN108334266B (en) | Control method of flexible terminal, flexible terminal and computer readable storage medium | |
| CN107517487B (en) | Call control method and mobile terminal | |
| CN112817491A (en) | Touch key control method and device based on mobile terminal and terminal equipment | |
| CN109491577B (en) | Holding interaction method and device and computer readable storage medium | |
| CN109561221B (en) | Call control method, device and computer readable storage medium | |
| CN108287627B (en) | Interface operation method based on flexible screen, terminal and computer readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |