CN113064518A - Control method, device and equipment based on pressure sensor and storage medium - Google Patents

Control method, device and equipment based on pressure sensor and storage medium Download PDF

Info

Publication number
CN113064518A
CN113064518A CN202110344468.2A CN202110344468A CN113064518A CN 113064518 A CN113064518 A CN 113064518A CN 202110344468 A CN202110344468 A CN 202110344468A CN 113064518 A CN113064518 A CN 113064518A
Authority
CN
China
Prior art keywords
pressure
control
mobile terminal
pressure sensor
pressure value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110344468.2A
Other languages
Chinese (zh)
Inventor
王小平
曹万
熊波
陈耀源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Finemems Inc
Original Assignee
Wuhan Finemems Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Finemems Inc filed Critical Wuhan Finemems Inc
Priority to CN202110344468.2A priority Critical patent/CN113064518A/en
Publication of CN113064518A publication Critical patent/CN113064518A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a control method, a control device, control equipment and a storage medium based on a pressure sensor, and belongs to the technical field of sensors. The method comprises the steps of obtaining the current working mode of the mobile terminal; when the current working mode is in a pressure control mode, acquiring front pressure data acquired by a front pressure sensor; extracting a pressure value input by a user and a pressing duration corresponding to the pressure value from the front pressure data; generating corresponding control parameters according to the pressure value and the pressing duration; and correspondingly controlling the mobile terminal according to the control parameters, and controlling the mobile terminal through the pressure value input by the user and the pressing duration, so that the mobile terminal is more flexibly controlled.

Description

Control method, device and equipment based on pressure sensor and storage medium
Technical Field
The invention relates to the technical field of sensors, in particular to a control method, a control device, control equipment and a storage medium based on a pressure sensor.
Background
With the continuous improvement of hardware level and performance, the screens of various mobile terminals are also changed from the initial small-size touch screens to the current large-size screens, and the screens become indispensable devices for people to go on the internet and communicate in daily life. However, the existing control of an application in a mobile terminal such as a mobile phone is often implemented through a control in an application interface, when a user operates with one hand and the screen of the mobile phone is large, the user often has difficulty in touching the control in the application interface, the user must place the mobile phone on a desktop for operation, and the touch screen cannot accept any touch event when the touch screen is turned off, so that when the user needs to operate an application running on the mobile terminal, the touch screen must be turned on, the operation is complex, and the control of the mobile terminal is not flexible enough.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a control method, a control device, control equipment and a storage medium based on a pressure sensor, and aims to solve the technical problem that a mobile terminal in the prior art is inflexible to control.
In order to achieve the above object, the present invention provides a control method based on a pressure sensor, comprising the steps of:
acquiring a current working mode of the mobile terminal;
when the current working mode is in a pressure control mode, acquiring front pressure data acquired by a front pressure sensor;
extracting a pressure value input by a user and a pressing duration corresponding to the pressure value from the front pressure data;
generating corresponding control parameters according to the pressure value and the pressing duration;
and correspondingly controlling the mobile terminal according to the control parameters.
Optionally, before the obtaining of the current operating mode of the mobile terminal, the method further includes:
acquiring acceleration information of the mobile terminal acquired by an acceleration sensor and acquiring angular velocity information of the mobile terminal acquired by a gyroscope;
determining the current motion state of the mobile terminal according to the acceleration information and the angular velocity information;
when the current motion state is in a static state, side pressure data acquired by a side pressure sensor is acquired;
and adjusting the current working mode of the mobile terminal according to the side pressure data.
Optionally, the adjusting the current working mode of the mobile terminal according to the side pressure data includes:
extracting a first side pressure value and a second side pressure value of the mobile terminal, and a first pressure duration corresponding to the first side pressure value and a second pressure duration corresponding to the second side pressure value from the side pressure data;
and adjusting the current working mode of the mobile terminal according to the first side pressure value, the first pressure duration, the second side pressure value and the second pressure duration.
Optionally, the generating a corresponding control parameter according to the pressure value and the pressing duration includes:
acquiring the number of pressure values corresponding to the pressure values;
determining a corresponding control type according to the pressure value quantity and the pressing duration;
determining a corresponding parameter value according to the pressure value;
and generating corresponding control parameters according to the control types and the parameter values.
Optionally, the determining a corresponding control type according to the number of pressure values and the pressing duration includes:
if the number of the pressure values is a first preset number and the pressing time length is greater than or equal to a preset time length, determining that the corresponding control type is application control;
if the number of the pressure values is a first preset number and the pressing time length is less than the preset time length, determining that the corresponding control type is brightness control;
and if the number of the pressure values is a second preset number and the pressing time length corresponding to each pressure value is smaller than the preset time length, determining that the corresponding control type is unlocking control.
Optionally, the performing, according to the control parameter, corresponding control on the mobile terminal includes:
determining a control type according to the control parameter;
when the control type is application control, generating a virtual click frame at a preset position on a screen of the mobile terminal;
moving the virtual click frame from the preset position to a target position according to the pressing duration and a preset interval;
and starting the application program at the target position through the virtual click box.
Optionally, the performing, according to the control parameter, corresponding control on the mobile terminal includes:
determining a control type according to the control parameters, and extracting corresponding parameter values from the control parameters;
when the control type is brightness control, determining a target brightness value and a target adjusting direction according to the parameter value;
and adjusting the screen brightness of the mobile terminal according to the target brightness value and the target adjusting direction.
In order to achieve the above object, the present invention also provides a pressure sensor-based control device, including:
the acquisition module is used for acquiring the current working mode of the mobile terminal;
the acquisition module is used for acquiring front pressure data acquired by the front pressure sensor when the current working mode is in a pressure control mode;
the extraction module is used for extracting a pressure value input by a user and the pressing duration corresponding to the pressure value from the front pressure data;
the generating module is used for generating corresponding control parameters according to the pressure value and the pressing duration;
and the control module is used for correspondingly controlling the mobile terminal according to the control parameters.
Furthermore, in order to achieve the above object, the present invention also proposes a pressure sensor-based control apparatus including: a memory, a processor, and a pressure sensor based control program stored on the memory and executable on the processor, the pressure sensor based control program configured to implement the steps of the pressure sensor based control method as described above.
Furthermore, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a pressure sensor-based control program that, when executed by a processor, implements the steps of the pressure sensor-based control method as described above.
The method comprises the steps of obtaining the current working mode of the mobile terminal; when the current working mode is in a pressure control mode, acquiring front pressure data acquired by a front pressure sensor; extracting a pressure value input by a user and a pressing duration corresponding to the pressure value from the front pressure data; generating corresponding control parameters according to the pressure value and the pressing duration; and correspondingly controlling the mobile terminal according to the control parameters, and controlling the mobile terminal through the pressure value input by the user and the pressing duration, so that the mobile terminal is more flexibly controlled.
Drawings
FIG. 1 is a schematic diagram of a pressure sensor-based control device for a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a control method based on a pressure sensor according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the control method based on the pressure sensor according to the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of a control method based on a pressure sensor according to the present invention;
fig. 5 is a block diagram showing a first embodiment of the control device based on a pressure sensor according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a pressure sensor-based control device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the pressure sensor-based control apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The memory 1005 may be a Random Access Memory (RAM) memory, or may be a Non-volatile memory (NVM), such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of a pressure sensor-based control device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a pressure sensor-based control program.
In the pressure sensor-based control device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the pressure sensor-based control apparatus of the present invention may be provided in the pressure sensor-based control apparatus, which calls the pressure sensor-based control program stored in the memory 1005 through the processor 1001 and executes the pressure sensor-based control method provided by the embodiment of the present invention.
An embodiment of the present invention provides a control method based on a pressure sensor, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the control method based on the pressure sensor.
In this embodiment, the control method based on the pressure sensor includes the following steps:
step S10: and acquiring the current working mode of the mobile terminal.
In this embodiment, the execution main body of this embodiment may be a processor, and may also be other devices having the same or similar functions. The mobile terminal in this embodiment refers to a computer device that can be used in moving, and includes terminal devices such as a mobile phone, a notebook, a tablet computer, a POS machine, and a vehicle-mounted computer.
It should be noted that, in this embodiment, the processor may be disposed inside the mobile terminal, and may be configured to obtain the operation data of the mobile terminal, monitor the operating state and the operating mode of the mobile terminal through the operation data, and further send a control instruction to the mobile terminal, so as to implement control over the mobile terminal, such as closing and unlocking a screen of the mobile terminal, starting an application program in the mobile terminal, and adjusting the screen brightness of the mobile terminal.
In specific implementation, the current working mode of the mobile terminal may be obtained through the read operation data of the mobile terminal, where the current working mode refers to a working mode of the mobile terminal corresponding to the current time, such as a flight mode, a key control mode, and a pressure control mode. Further, the current mode of the mobile terminal may adopt a preset mode, and when the mobile terminal is started, the working mode is automatically adjusted to the preset mode, where the preset mode includes, but is not limited to, the above working mode, and may also be set correspondingly according to an actual situation, and the working mode of the mobile terminal may also be manually set by a user, and may also be automatically triggered by monitoring an action of the user.
It is easily understood that the present embodiment may automatically adjust the operation mode of the mobile terminal through the pressure data, and therefore, before acquiring the current mode of the mobile terminal, the pressure data needs to be detected, specifically, before the step S10, the method further includes: acquiring acceleration information of the mobile terminal acquired by an acceleration sensor and acquiring angular velocity information of the mobile terminal acquired by a gyroscope; determining the current motion state of the mobile terminal according to the acceleration information and the angular velocity information; when the current motion state is in a static state, side pressure data acquired by a side pressure sensor is acquired; and adjusting the current working mode of the mobile terminal according to the side pressure data.
It should be noted that, the mobile terminal is also internally provided with an acceleration sensor and a gyroscope, and the mobile terminal is a device capable of moving, so that the acceleration sensor can acquire acceleration information of the mobile terminal, the gyroscope can acquire angular velocity information of the mobile terminal, and the motion state of the mobile terminal can be determined according to the acceleration information and the angular velocity information, for example, the acceleration of the mobile terminal is extracted from the acceleration information and is 0m/s2And extracting the angular velocity of the mobile terminal from the angular velocity information to be 0m/s, wherein the current motion state of the mobile terminal can be obtained to be in a static state. When the mobile terminal is in a static state, the mobile terminal can be placed on a desk or a sofa or the like in a static state, and the mobile terminal is controlled by the hand of a user, so that the mobile terminal can be used when the mobile terminal is in the static stateThe user holds the mobile terminal stationary in his hand. The mobile terminal in this embodiment is further provided with a side pressure sensor inside, the side pressure sensor is disposed on two sides of a screen of the mobile terminal, it is easy to understand that, when a user holds the mobile terminal in hand, two sides of the mobile terminal can be subjected to pressure applied by the hand of the user, in this embodiment, it can be judged through pressure data acquired by the acquired side sensor whether the mobile terminal is placed on a table or held in hand by the user, and when pressure data acquired at two sides of the mobile terminal is greater than a preset pressure threshold value, it can be judged that the mobile terminal is held in hand by the user at this time. When a user controls the mobile terminal with one hand, the operation of the user is inconvenient due to the large screen, and when the mobile terminal is judged to be held in the hand of the user, the user needs to control the mobile terminal at the moment.
In a specific implementation, the process of adjusting the current working mode of the mobile terminal according to the side pressure data specifically includes: extracting a first side pressure value and a second side pressure value of the mobile terminal, and a first pressure duration corresponding to the first side pressure value and a second pressure duration corresponding to the second side pressure value from the side pressure data; and adjusting the current working mode of the mobile terminal according to the first side pressure value, the first pressure duration, the second side pressure value and the second pressure duration.
It should be noted that, the first side pressure value is a pressure value received by the left side of the mobile terminal screen, the second pressure value is a pressure value received by the right side of the mobile terminal, the first pressure duration is a duration time of the pressure value received by the left side of the mobile terminal screen, the second pressure duration is a duration time of the pressure value received by the right side of the mobile terminal screen, and then whether the user holds the mobile terminal still in the hand can be determined according to the first side pressure value, the first pressure duration, the second side pressure value and the second pressure duration, because the first pressure value and the second pressure value and the respective corresponding pressure durations may be collected even when the mobile terminal is in a short moving process or placed in a pocket of the user, and the like, in order to improve the detection accuracy, the first pressure value and the second pressure value are respectively compared with a preset pressure threshold, and comparing the first pressure duration and the second pressure duration with preset durations respectively, and finally adjusting the current working mode of the mobile terminal according to a comparison result, for example, when the first pressure value and the second pressure value are simultaneously greater than or equal to a preset threshold value, and the first pressure duration and the second pressure duration are simultaneously greater than or equal to the preset duration, adjusting the current working module of the mobile terminal to a pressure control mode. In addition, it should be emphasized that, in this embodiment, the first side pressure value may also be a pressure value received by the right side of the screen of the mobile terminal, and the second side pressure value may also be a pressure value received by the left side of the screen of the mobile terminal, and the adjustment of the current operating mode of the mobile terminal is described as an example, and the specific adjustment mode may also be changed according to the actual situation, which is not limited in this embodiment.
Step S20: and when the current working mode is in a pressure control mode, acquiring front pressure data acquired by a front pressure sensor.
It should be noted that, in the pressure control processing mode of the mobile terminal, the user may control the mobile terminal in a pressing manner, in this embodiment, a front pressure sensor is further disposed inside the mobile terminal, the front pressure sensor is a pressure sensor disposed right below the screen, and the user may perform corresponding control on the mobile terminal by pressing the screen of the mobile terminal.
Step S30: and extracting a pressure value input by a user and the pressing duration corresponding to the pressure value from the front pressure data.
In a specific implementation, after the front pressure data is obtained, the pressure value and the pressing duration input by the user may be extracted from the front pressure data according to different data identifiers, for example, the data identifier of the pressure value is S, the time identifier is T, and the pressure value and the corresponding pressing duration may be extracted from the front pressure data according to the identifiers S and T, respectively.
Step S40: and generating corresponding control parameters according to the pressure value and the pressing duration.
It should be noted that, in this embodiment, the user may control the mobile terminal by pressing the screen of the mobile terminal, so that different pressure values and pressing durations may generate different control parameters to implement different control functions, for example, a pressure value is N1The pressing duration is T1The generated brightness control parameter has a pressure value N2The pressing duration is T2The generated application program start control parameter is not limited in this embodiment, and may be set accordingly according to the actual situation.
Step S50: and correspondingly controlling the mobile terminal according to the control parameters.
In specific implementation, after the control parameter is determined, the mobile terminal may be correspondingly controlled according to the control parameter, in this embodiment, an application program in the mobile terminal may be started or closed according to the control parameter, the mobile terminal may be unlocked according to the control parameter, and the screen brightness of the mobile terminal may also be adjusted according to the control parameter.
The embodiment obtains the current working mode of the mobile terminal; when the current working mode is in a pressure control mode, acquiring front pressure data acquired by a front pressure sensor; extracting a pressure value input by a user and a pressing duration corresponding to the pressure value from the front pressure data; generating corresponding control parameters according to the pressure value and the pressing duration; and correspondingly controlling the mobile terminal according to the control parameters, and controlling the mobile terminal through the pressure value input by the user and the pressing duration, so that the mobile terminal is more flexibly controlled.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a control method based on a pressure sensor according to the present invention.
Based on the first embodiment, the step S40 in the control method based on the pressure sensor in this embodiment specifically includes:
step S401: and acquiring the number of pressure values corresponding to the pressure values.
It should be noted that, a user may input a plurality of pressure values at a time through a plurality of fingers, or may input a pressure value multiple times through a single finger, and therefore, before determining the control parameter, the number of pressure values corresponding to the pressure value needs to be obtained.
Step S402: and determining a corresponding control type according to the pressure value quantity and the pressing time length.
In a specific implementation, when a user presses with multiple fingers or continuously presses a screen of a mobile terminal multiple times with the same finger, control types corresponding to different pressing durations and pressure values are also different, for example, when the user clicks the screen of the mobile terminal with multiple fingers, the corresponding control type is unlocking of the mobile terminal, when the user clicks the screen of the mobile terminal with a single finger, the corresponding control type is brightness adjustment of the mobile terminal, and if the user presses the screen of the mobile terminal with a single finger for a long time, the corresponding control type is application control of the mobile terminal, specific settings of the control types may be changed accordingly according to actual conditions, which is not limited in this embodiment.
In a specific implementation, the step S402 specifically includes: if the number of the pressure values is a first preset number and the pressing time length is greater than or equal to a preset time length, determining that the corresponding control type is application control; if the number of the pressure values is a first preset number and the pressing time length is less than the preset time length, determining that the corresponding control type is brightness control; and if the number of the pressure values is a second preset number and the pressing time length corresponding to each pressure value is smaller than the preset time length, determining that the corresponding control type is unlocking control.
It should be noted that, in this embodiment, the first preset number may be set to 1, and the preset duration may be set to 1s, for example, when the number of the pressure values is the first preset number, it indicates that the user has input only one pressure value at a time of pressing, and may infer that the user is performing press control on the mobile terminal screen by using a single finger, and meanwhile, if the press duration is less than the preset duration 1s, it indicates that the user is performing click on the mobile terminal screen, and finally, the control type may be determined to be brightness control according to an operation of clicking the mobile terminal screen by using a single finger of the user. In addition, it should be emphasized that, in the embodiment, the first preset number and the preset duration may be set according to an actual control requirement, which is not limited in the embodiment.
Step S403: and determining corresponding parameter values according to the pressure values.
In a specific implementation, a specific parameter value of the control parameter is determined by a magnitude of the pressure value, for example, when the control type is brightness control, the screen brightness of the mobile terminal may be adjusted according to a brightness value corresponding to the pressure value.
Step S404: and generating corresponding control parameters according to the control types and the parameter values.
In specific implementation, the combination of the control type and the parameter value is the control parameter, for example, if the control type is brightness adjustment and the parameter value is 300 nit, the corresponding control parameter can be obtained as screen brightness adjustment to 300 nit.
In this embodiment, the number of pressure values corresponding to the pressure value is obtained; determining a corresponding control type according to the pressure value quantity and the pressing duration; determining a corresponding parameter value according to the pressure value; and generating corresponding control parameters according to the control types and the parameter values, and generating the control parameters through the quantity of the pressure values, the pressing time length and the pressure values, so that the control accuracy of the mobile terminal is improved, and meanwhile, the control mode of the mobile terminal is richer and more flexible.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of a control method based on a pressure sensor according to the present invention.
A third embodiment of a pressure sensor based control method of the present invention is proposed based on the first embodiment or the second embodiment described above.
Taking the first embodiment as an example for explanation, in this embodiment, the step S50 specifically includes:
step S501: and determining the control type according to the control parameters.
Step S502: and when the control type is application control, generating a virtual click box at a preset position on a screen of the mobile terminal.
In specific implementation, the control type may be determined based on the control parameter, and when the control type is application control, in order to facilitate control of the mobile terminal by a user, in this embodiment, an application program in the mobile terminal is started by generating a virtual click frame instead of a finger of the user, where the preset position may be set at an upper left corner of a screen or at a center of the screen, and the specific position may be set correspondingly according to an actual situation.
Step S503: and moving the virtual click frame from the preset position to a target position according to the pressing time length and a preset interval.
Step S504: and starting the application program at the target position through the virtual click box.
It should be noted that, in this embodiment, the virtual click frame is moved by continuous pressing of the user, and as the time pressed by the user is longer, the distance that the virtual click frame moves from the preset position is further longer, and the specific moving position of the virtual click frame can be determined based on the preset interval and the pressing duration corresponding to each application program, for example, the pressing duration of the user is 2.5s, A, B and the preset interval corresponding to three consecutively arranged application programs, namely, C, are all 1s, it can be obtained according to the pressing duration that the user moves the virtual click frame from the application program a (the preset position) to the application program C (the target position), and when the user releases a finger, the application program in the virtual click frame starts itself.
Further, in this embodiment, when the control type is the unlocking control, the mobile terminal can be unlocked according to the pressing time length, for example, when the pressing time length reaches 3s, the mobile terminal unlocks the screen, so that the user can perform subsequent operations. In addition, when the control type is brightness control, a corresponding brightness value needs to be determined according to the parameter value, in this embodiment, the parameter value can determine the brightness value and also can determine the adjustment direction of the screen brightness, for example, if the parameter value is 100 nit, the current screen brightness is increased by 100 nit, and if the parameter value is-100 nit, the current screen brightness is decreased by 100 nit. After the specific brightness value and the brightness adjusting direction are determined, the brightness adjustment of the screen terminal can be realized.
The embodiment determines the control type according to the control parameter; when the control type is application control, generating a virtual click frame at a preset position on a screen of the mobile terminal; moving the virtual click frame from the preset position to a target position according to the pressing duration and a preset interval; through the virtual click frame starts the application program of target position department can replace the user finger through the removal of virtual click frame according to pressing duration control virtual click frame for mobile terminal's control is more nimble, and in addition, this embodiment can also carry out luminance control and unblock control, has improved the variety and the richness of mobile terminal control.
Furthermore, an embodiment of the present invention further provides a storage medium, on which a pressure sensor-based control program is stored, and the pressure sensor-based control program, when executed by a processor, implements the steps of the pressure sensor-based control method as described above.
Referring to fig. 5, fig. 5 is a block diagram illustrating a first embodiment of a control apparatus based on a pressure sensor according to the present invention.
As shown in fig. 5, a control device based on a pressure sensor according to an embodiment of the present invention includes:
an obtaining module 10, configured to obtain a current working mode of the mobile terminal;
the acquisition module 20 is configured to acquire front pressure data acquired by the front pressure sensor when the current working mode is in the pressure control mode;
an extracting module 30, configured to extract a pressure value input by a user and a pressing duration corresponding to the pressure value from the front pressure data;
the generating module 40 is configured to generate a corresponding control parameter according to the pressure value and the pressing duration;
and the control module 50 is configured to perform corresponding control on the mobile terminal according to the control parameter.
The embodiment obtains the current working mode of the mobile terminal; when the current working mode is in a pressure control mode, acquiring front pressure data acquired by a front pressure sensor; extracting a pressure value input by a user and a pressing duration corresponding to the pressure value from the front pressure data; generating corresponding control parameters according to the pressure value and the pressing duration; and correspondingly controlling the mobile terminal according to the control parameters, and controlling the mobile terminal through the pressure value input by the user and the pressing duration, so that the mobile terminal is more flexibly controlled.
In one embodiment, the pressure sensor-based control device further comprises: an adjustment module;
the adjusting module is used for acquiring acceleration information of the mobile terminal acquired by the acceleration sensor and acquiring angular velocity information of the mobile terminal acquired by the gyroscope; determining the current motion state of the mobile terminal according to the acceleration information and the angular velocity information; when the current motion state is in a static state, side pressure data acquired by a side pressure sensor is acquired; and adjusting the current working mode of the mobile terminal according to the side pressure data.
In an embodiment, the adjusting module is further configured to extract a first side pressure value and a second side pressure value of the mobile terminal from the side pressure data, and a first pressure duration corresponding to the first side pressure value and a second pressure duration corresponding to the second side pressure value; and adjusting the current working mode of the mobile terminal according to the first side pressure value, the first pressure duration, the second side pressure value and the second pressure duration.
In an embodiment, the generating module 40 is further configured to obtain a number of pressure values corresponding to the pressure value; determining a corresponding control type according to the pressure value quantity and the pressing duration; determining a corresponding parameter value according to the pressure value; and generating corresponding control parameters according to the control types and the parameter values.
In an embodiment, the generating module 40 is further configured to determine that the corresponding control type is application control if the number of the pressure values is a first preset number and the pressing duration is greater than or equal to a preset duration; if the number of the pressure values is a first preset number and the pressing time length is less than the preset time length, determining that the corresponding control type is brightness control; and if the number of the pressure values is a second preset number and the pressing time length corresponding to each pressure value is smaller than the preset time length, determining that the corresponding control type is unlocking control.
In an embodiment, the control module 50 is further configured to determine a control type according to the control parameter; when the control type is application control, generating a virtual click frame at a preset position on a screen of the mobile terminal; moving the virtual click frame from the preset position to a target position according to the pressing duration and a preset interval; and starting the application program at the target position through the virtual click box.
In an embodiment, the control module 50 is further configured to determine a control type according to the control parameter, and extract a corresponding parameter value from the control parameter; when the control type is brightness control, determining a target brightness value and a target adjusting direction according to the parameter value; and adjusting the screen brightness of the mobile terminal according to the target brightness value and the target adjusting direction.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not elaborated in this embodiment may refer to the control method based on the pressure sensor provided in any embodiment of the present invention, and are not described herein again.
Further, it is to 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 system 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 system. 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 system 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 solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A pressure sensor based control method, characterized in that the pressure sensor based control method comprises:
acquiring a current working mode of the mobile terminal;
when the current working mode is in a pressure control mode, acquiring front pressure data acquired by a front pressure sensor;
extracting a pressure value input by a user and a pressing duration corresponding to the pressure value from the front pressure data;
generating corresponding control parameters according to the pressure value and the pressing duration;
and correspondingly controlling the mobile terminal according to the control parameters.
2. The pressure sensor-based control method according to claim 1, wherein before acquiring the current operation mode of the mobile terminal, the method further comprises:
acquiring acceleration information of the mobile terminal acquired by an acceleration sensor and acquiring angular velocity information of the mobile terminal acquired by a gyroscope;
determining the current motion state of the mobile terminal according to the acceleration information and the angular velocity information;
when the current motion state is in a static state, side pressure data acquired by a side pressure sensor is acquired;
and adjusting the current working mode of the mobile terminal according to the side pressure data.
3. The pressure sensor-based control method according to claim 2, wherein the adjusting the current operation mode of the mobile terminal according to the lateral pressure data comprises:
extracting a first side pressure value and a second side pressure value of the mobile terminal, and a first pressure duration corresponding to the first side pressure value and a second pressure duration corresponding to the second side pressure value from the side pressure data;
and adjusting the current working mode of the mobile terminal according to the first side pressure value, the first pressure duration, the second side pressure value and the second pressure duration.
4. The pressure sensor-based control method of claim 1, wherein the generating of the corresponding control parameter from the pressure value and the compression duration comprises:
acquiring the number of pressure values corresponding to the pressure values;
determining a corresponding control type according to the pressure value quantity and the pressing duration;
determining a corresponding parameter value according to the pressure value;
and generating corresponding control parameters according to the control types and the parameter values.
5. The pressure sensor-based control method of claim 4, wherein the determining the corresponding control type according to the number of pressure values and the pressing time period comprises:
if the number of the pressure values is a first preset number and the pressing time length is greater than or equal to a preset time length, determining that the corresponding control type is application control;
if the number of the pressure values is a first preset number and the pressing time length is less than the preset time length, determining that the corresponding control type is brightness control;
and if the number of the pressure values is a second preset number and the pressing time length corresponding to each pressure value is smaller than the preset time length, determining that the corresponding control type is unlocking control.
6. The pressure sensor-based control method according to any one of claims 1 to 5, wherein the performing the corresponding control on the mobile terminal according to the control parameter comprises:
determining a control type according to the control parameter;
when the control type is application control, generating a virtual click frame at a preset position on a screen of the mobile terminal;
moving the virtual click frame from the preset position to a target position according to the pressing duration and a preset interval;
and starting the application program at the target position through the virtual click box.
7. The pressure sensor-based control method according to any one of claims 1 to 5, wherein the performing the corresponding control on the mobile terminal according to the control parameter comprises:
determining a control type according to the control parameters, and extracting corresponding parameter values from the control parameters;
when the control type is brightness control, determining a target brightness value and a target adjusting direction according to the parameter value;
and adjusting the screen brightness of the mobile terminal according to the target brightness value and the target adjusting direction.
8. A pressure sensor based control apparatus, characterized in that the pressure sensor based control apparatus comprises:
the acquisition module is used for acquiring the current working mode of the mobile terminal;
the acquisition module is used for acquiring front pressure data acquired by the front pressure sensor when the current working mode is in a pressure control mode;
the extraction module is used for extracting a pressure value input by a user and the pressing duration corresponding to the pressure value from the front pressure data;
the generating module is used for generating corresponding control parameters according to the pressure value and the pressing duration;
and the control module is used for correspondingly controlling the mobile terminal according to the control parameters.
9. A pressure sensor based control apparatus, characterized in that the pressure sensor based control apparatus comprises: a memory, a processor, and a pressure sensor based control program stored on the memory and executable on the processor, the pressure sensor based control program configured to implement the steps of the pressure sensor based control method of any one of claims 1 to 7.
10. A storage medium having stored thereon a pressure sensor based control program, which when executed by a processor implements the steps of the pressure sensor based control method according to any one of claims 1 to 7.
CN202110344468.2A 2021-03-30 2021-03-30 Control method, device and equipment based on pressure sensor and storage medium Pending CN113064518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110344468.2A CN113064518A (en) 2021-03-30 2021-03-30 Control method, device and equipment based on pressure sensor and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110344468.2A CN113064518A (en) 2021-03-30 2021-03-30 Control method, device and equipment based on pressure sensor and storage medium

Publications (1)

Publication Number Publication Date
CN113064518A true CN113064518A (en) 2021-07-02

Family

ID=76565005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110344468.2A Pending CN113064518A (en) 2021-03-30 2021-03-30 Control method, device and equipment based on pressure sensor and storage medium

Country Status (1)

Country Link
CN (1) CN113064518A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114414142A (en) * 2022-01-25 2022-04-29 苏州汇川控制技术有限公司 Calibration method and device for tension sensor, calibration equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150242017A1 (en) * 2014-02-24 2015-08-27 Pixart Imaging Inc. Capacitive finger navigation module and manufacturing method thereof
CN104952424A (en) * 2015-06-15 2015-09-30 努比亚技术有限公司 Screen brightness adjustment method and terminal
CN106371724A (en) * 2016-08-26 2017-02-01 广东欧珀移动通信有限公司 Control method and apparatus of mobile terminal and mobile terminal
CN106896976A (en) * 2015-12-18 2017-06-27 中兴通讯股份有限公司 The changing method of the object that cursor is chosen, device and terminal
CN108153453A (en) * 2016-12-05 2018-06-12 中兴通讯股份有限公司 A kind of method, device and mobile terminal of control terminal
CN108563357A (en) * 2018-04-04 2018-09-21 Oppo广东移动通信有限公司 Processing method, device, storage medium and the electronic equipment of touch information
CN110018779A (en) * 2019-02-26 2019-07-16 努比亚技术有限公司 Browsing control method, terminal and computer readable storage medium
CN111198647A (en) * 2019-12-30 2020-05-26 上海闻泰电子科技有限公司 Touch control type virtual key starting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150242017A1 (en) * 2014-02-24 2015-08-27 Pixart Imaging Inc. Capacitive finger navigation module and manufacturing method thereof
CN104952424A (en) * 2015-06-15 2015-09-30 努比亚技术有限公司 Screen brightness adjustment method and terminal
CN106896976A (en) * 2015-12-18 2017-06-27 中兴通讯股份有限公司 The changing method of the object that cursor is chosen, device and terminal
CN106371724A (en) * 2016-08-26 2017-02-01 广东欧珀移动通信有限公司 Control method and apparatus of mobile terminal and mobile terminal
CN108153453A (en) * 2016-12-05 2018-06-12 中兴通讯股份有限公司 A kind of method, device and mobile terminal of control terminal
CN108563357A (en) * 2018-04-04 2018-09-21 Oppo广东移动通信有限公司 Processing method, device, storage medium and the electronic equipment of touch information
CN110018779A (en) * 2019-02-26 2019-07-16 努比亚技术有限公司 Browsing control method, terminal and computer readable storage medium
CN111198647A (en) * 2019-12-30 2020-05-26 上海闻泰电子科技有限公司 Touch control type virtual key starting method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114414142A (en) * 2022-01-25 2022-04-29 苏州汇川控制技术有限公司 Calibration method and device for tension sensor, calibration equipment and medium

Similar Documents

Publication Publication Date Title
CN105204745B (en) Screen capturing method and device for mobile terminal
CN107608615B (en) Fingerprint identification function starting method and device, terminal and storage medium
EP3089433B1 (en) Apparatus and method for controlling operation of mobile terminal
US20200201536A1 (en) Black screen gesture detection method and device, storage medium, and mobile terminal
EP3907635A1 (en) Method and device for starting application based on fingerprint recognition
CN108920202B (en) Application preloading management method and device, storage medium and intelligent terminal
CN106951174B (en) A kind of method of adjustment and mobile terminal of dummy keyboard
CN110572575A (en) camera shooting control method and device
CN112639714A (en) Method, device and system for executing gesture instruction and storage medium
CN106648427A (en) Setting device and method for single hand mode of terminal
CN106415471A (en) Processing method for user interface of terminal, user interface and terminal
US10013595B2 (en) Correlating fingerprints to pointing input device actions
CN104898880B (en) A kind of control method and electronic equipment
CN107037971A (en) Application management device, mobile terminal and method
CN106126101A (en) The operational approach of a kind of mobile terminal and mobile terminal
CN106873891B (en) Touch operation method and mobile terminal
CN113821154A (en) Screen switching control method, foldable device and storage medium
CN108845752A (en) touch operation method, device, storage medium and electronic equipment
CN113064518A (en) Control method, device and equipment based on pressure sensor and storage medium
CN105446629A (en) Content pane switching method, device and terminal
EP3757831B1 (en) Fingerprint event processing method, apparatus, and terminal
CN105511673B (en) A kind of touch screen response method, device and game control method, device
CN105739761A (en) Figure input method and device
US9710080B2 (en) Portable electronic device including contact sensors, and method for controlling same
CN107340881A (en) A kind of input method and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210702