CN107422911A - Detection method, device and the computer-readable recording medium of pressure value - Google Patents

Detection method, device and the computer-readable recording medium of pressure value Download PDF

Info

Publication number
CN107422911A
CN107422911A CN201710592294.5A CN201710592294A CN107422911A CN 107422911 A CN107422911 A CN 107422911A CN 201710592294 A CN201710592294 A CN 201710592294A CN 107422911 A CN107422911 A CN 107422911A
Authority
CN
China
Prior art keywords
pressure
detection pattern
threshold value
detection
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.)
Granted
Application number
CN201710592294.5A
Other languages
Chinese (zh)
Other versions
CN107422911B (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710592294.5A priority Critical patent/CN107422911B/en
Publication of CN107422911A publication Critical patent/CN107422911A/en
Application granted granted Critical
Publication of CN107422911B publication Critical patent/CN107422911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Human Computer Interaction (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of detection method of pressure value, device and computer-readable recording medium, it is related to field of terminal technology, methods described includes:During in the first detection pattern, when the pressure value detected is less than first pressure threshold value and the duration of pressure value less than the first pressure threshold value is more than or equal to preset duration, the second detection pattern is switched to from first detection pattern;During in second detection pattern, when the pressure value detected is more than second pressure threshold value, first detection pattern is switched to from second detection pattern, the second pressure threshold value is more than the first pressure threshold value.The disclosure is by change detection pattern, while power consumption is reduced, it is ensured that the accuracy of pressure value detection, improves utilization rate.

Description

Detection method, device and the computer-readable recording medium of pressure value
Technical field
This disclosure relates to field of terminal technology, more particularly to a kind of detection method of pressure value, device and computer-readable Storage medium.
Background technology
With the rapid development of terminal technology, the function of the terminal such as mobile phone, tablet personal computer, intelligent watch is increasingly strong Greatly, it is increasingly becoming instrument indispensable in people's work and life.At present, the application of sensor in the terminal is more and more general Time, especially pressure sensor.Terminal can detect pressure value in real time by pressure sensor, and the pressure value based on acquisition is entered The corresponding operation processing of row.For example, pressure sensor application to fingerprint can be pressed, to carry out in the scene of unlocked by fingerprint, That is, terminal detects pressure value by pressure sensor, when the pressure value detected is more than preset pressure threshold value and the finger detected When line data match with the finger print data of advance typing, unlocked by fingerprint is carried out.
In correlation technique, in order to be accurately detected pressure value, and terminal is facilitated to make corresponding operation processing in time, Pressure value can be detected in real time by the pressure sensor of installation, or pressure value, the first inspection are detected by the first detection pattern Survey pattern refers to that the detection frequency of pressure value is more than the pattern of first frequency threshold value.
The content of the invention
In order to overcome problem present in correlation technique, the disclosure provides a kind of detection method of pressure value, device and meter Calculation machine readable storage medium storing program for executing.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of detection method of pressure value, methods described include:
During in the first detection pattern, when the pressure value detected is less than first pressure threshold value and less than described When the duration of the pressure value of first pressure threshold value is more than or equal to preset duration, switched to from first detection pattern Second detection pattern;
Wherein, first detection pattern refers to that the detection frequency of pressure value is more than the pattern of first frequency threshold value, described Second detection pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and the first frequency threshold value is more than The second frequency threshold value;
During in second detection pattern, when the pressure value detected is more than second pressure threshold value, from Second detection pattern switches to first detection pattern, and the second pressure threshold value is more than the first pressure threshold value.
Alternatively, it is described switch to the second detection pattern from first detection pattern before, in addition to:
It is determined that the software identification belonging to the interface currently shown;
When predetermined software identification list includes the software identification, perform from first detection pattern and switch to The step of two detection patterns.
Alternatively, methods described also includes:
When detecting setting instruction, display function sets interface, and the function setting interface includes multiple software marks Know, each software identification corresponds to a software of installation, and the software is operating system or application program;
Based on the function setting interface, at least one software identification is determined from the multiple software identification;
At least one software identification is stored into blank software identification list, identified with obtaining the predetermined software List.
Alternatively, the second pressure threshold value is less than the 3rd pressure threshold, and the 3rd pressure threshold refers to meet operation The pressure value for the treatment of conditions.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of detection means of pressure value, described device include:
First handover module, for during in the first detection pattern, when the pressure value detected is less than first Pressure threshold and when the duration of pressure value less than the first pressure threshold value is more than or equal to preset duration, from described First detection pattern switches to the second detection pattern;
Wherein, first detection pattern refers to that the detection frequency of pressure value is more than the pattern of first frequency threshold value, described Second detection pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and the first frequency threshold value is more than The second frequency threshold value;
Second handover module, for during in second detection pattern, when the pressure value detected is more than During second pressure threshold value, first detection pattern is switched to from second detection pattern, the second pressure threshold value is more than The first pressure threshold value.
Alternatively, described device also includes:
First determining module, the software identification belonging to interface currently shown for determination;
Trigger module, for when predetermined software identification list includes the software identification, triggering described first to switch Module switches to the second detection pattern from first detection pattern.
Alternatively, described device also includes:
Display module, for when detecting setting instruction, display function to set interface, the function setting interface Zhong Bao Multiple software identifications are included, each software identification corresponds to a software of installation, and the software is for operating system or using journey Sequence;
Second determining module, for based on the function setting interface, at least one to be determined from the multiple software identification Individual software identification;
Memory module, at least one software identification to be stored into blank software identification list, to obtain State predetermined software identification list.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of detection means of pressure value, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the step of processor is configured as performing above-mentioned first aspect methods described.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, it is described computer-readable Instruction is stored with storage medium, it is described to instruct the step of realizing above-mentioned first aspect methods described when being executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the disclosed embodiments, during in the first detection pattern, if the pressure value detected is less than the One pressure threshold, and it is more than preset duration less than the duration of first pressure threshold value, now it is considered that no external force Pressing, and the second detection pattern is switched to from the first detection pattern, because the detection frequency of the first detection pattern is higher than the second inspection The detection frequency of survey pattern, so reducing detection frequency after change detection pattern, it is possible to reduce power consumption, it is unnecessary to avoid Waste.Further, since detection frequency is higher, the pressure value detected is more accurate, so after switching to the second detection pattern, if When the pressure value detected is more than second pressure threshold value, in order to more accurately detect pressure value, it can be cut from the second detection pattern The first detection pattern is shifted to, by the switching of detection pattern, the renewal of pressure value can be detected in real time.In this way, by that will examine The pressure value and pressure threshold measured is made comparisons, and the switching of corresponding detection pattern is performed according to comparative result, reduces power consumption Meanwhile it can ensure to detect the accuracy rate of pressure value again.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of the detection method of pressure value according to an exemplary embodiment.
Fig. 2A is a kind of flow chart of the detection method of pressure value according to another exemplary embodiment.
Fig. 2 B are a kind of schematic diagrames of pressure sensor course of work according to an exemplary embodiment.
Fig. 2 C are a kind of schematic diagrames at function setting interface according to an exemplary embodiment.
Fig. 2 D are to show a kind of schematic diagram of predetermined software list according to an exemplary embodiment.
Fig. 3 A are a kind of block diagrams of the detection means of pressure value according to an exemplary embodiment.
Fig. 3 B are a kind of block diagrams of the detection means of pressure value according to another exemplary embodiment.
Fig. 3 C are a kind of block diagrams of the detection means of pressure value according to another exemplary embodiment.
Fig. 4 is a kind of structural representation of the detection means 400 of pressure value according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
In order to make it easy to understand, before detailed explanation is carried out to the embodiment of the present disclosure, first to the embodiment of the present disclosure Application scenarios be introduced.
In the disclosed embodiments, pressure sensor is generally fitted with terminal, when the pressure installed in pressed by external force terminal During force snesor, corresponding pressure value can be produced, by carrying out corresponding operation processing to the pressure value detected, it is possible to achieve Corresponding function.
For example the pressure value detected can apply to unlocked by fingerprint function, unlocked by fingerprint function refers to use fingerprint number According to carrying out recording checking and untie the function of coded lock, terminal detects pressure value by pressure sensor, when the pressure detected When the finger print data that value is more than preset pressure threshold value and detected matches with the finger print data of advance typing, unlocked by fingerprint is carried out.
Again for example, the pressure value detected can apply in payment function, can be with current most living scene Using terminal is paid, and needs to input payment cipher when paying, and in numerical ciphers or graphical passwords etc. as payment Password is cumbersome in input, and security is not high.So it can be detected by the pressure sensor installed in terminal Pressure value, when the finger print data and the finger print data of advance typing that the pressure value detected is more than preset pressure threshold value and detected During matching, corresponding delivery operation is carried out.
For another example, the pressure value detected can also be applied in contact action, and current most of terminal supports touch screen Operation, the pressure value on screen is detected by the pressure sensor installed in terminal, when the pressure value detected is more than default pressure During force threshold, corresponding selection operation is carried out.
In the related art, in order to be accurately detected pressure value, and terminal is facilitated to make in time at corresponding operation Reason, pressure value can be detected in real time by the pressure sensor of installation, or pressure value is detected by the first detection pattern.So And when terminal does not have pressed by external force, pressure sensor can also be constantly in the first detection pattern, increase power consumption.To understand Certainly this problem, the embodiment of the present disclosure provide a kind of detection method of pressure value.Next the disclosure will be implemented with reference to accompanying drawing The detection method for the pressure value that example provides describes in detail.
Fig. 1 is a kind of flow chart of the detection method of pressure value according to an exemplary embodiment, as shown in figure 1, This method is used in terminal, and the terminal can be mobile phone, tablet personal computer, intelligent watch etc., and this method comprises the following steps.
In a step 101, during in the first detection pattern, when the pressure value detected is less than first pressure threshold When being worth and being more than or equal to preset duration less than the duration of the pressure value of first pressure threshold value, cut from the first detection pattern Shift to the second detection pattern;
Wherein, the first detection pattern refers to that the detection frequency of pressure value is more than the pattern of first frequency threshold value, the second detection Pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and first frequency threshold value is more than second frequency threshold Value.
In a step 102, during in the second detection pattern, when the pressure value detected is more than second pressure threshold During value, the first detection pattern is switched to from the second detection pattern, second pressure threshold value is more than first pressure threshold value.
In the disclosed embodiments, when the pressure sensor installed in terminal is in the first detection pattern, if detection The pressure value arrived is less than first pressure threshold value, and when being more than or equal to default less than the duration of first pressure threshold value It is long, no pressed by external force is now can consider, and the second detection pattern is switched to from the first detection pattern, due to the first detection mould The detection frequency of formula is higher than the detection frequency of the second detection pattern, so can reduce power consumption after change detection pattern, avoids Unnecessary waste, improve the utilization rate of terminal.Further, since detection frequency is higher, the pressure value detected is more accurate, institute With after the pressure sensor installed in terminal switches to the second detection pattern, if the pressure value detected is more than second pressure Threshold value, in order to more accurately detect pressure value, the first detection pattern can be switched to from the second detection pattern, pass through detection pattern Switching, the renewal of pressure value can be detected in real time.In this way, by the way that the pressure value detected and pressure threshold are made comparisons, according to The switching of corresponding detection pattern is performed according to comparative result, while reducing power consumption, can ensure to detect the accurate of pressure value again Rate, the power consumption of terminal and performance is set to reach more preferable matching.
Alternatively, before switching to the second detection pattern from the first detection pattern, in addition to:
It is determined that the software identification belonging to the interface currently shown;
When predetermined software identification list includes the software identification, perform from the first detection pattern and switch to the second detection The step of pattern.
Alternatively, this method also includes:
When detecting that display function sets interface when setting instruction, the function setting interface includes multiple software identifications, Each software identification corresponds to a software of installation, and the software is operating system or application program;
Based on the function setting interface, at least one software identification is determined from multiple software identifications;
At least one software identification is stored into blank software identification list, to obtain predetermined software identification list.
Alternatively, second pressure threshold value is less than the 3rd pressure threshold, and the 3rd pressure threshold refers to meet operation treatment conditions Pressure value.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real Example is applied no longer to repeat this one by one.
Fig. 2A is a kind of flow chart of the detection method of pressure value according to an exemplary embodiment.The disclosure is implemented Example will carry out expansion discussion with reference to accompanying drawing 2A to the embodiment shown in Fig. 1.This method is used in terminal, comprises the following steps.
In step 201, during in the first detection pattern, when the pressure value detected is less than first pressure threshold When being worth and being more than or equal to preset duration less than the duration of the pressure value of first pressure threshold value, cut from the first detection pattern Shift to the second detection pattern.
It should be noted that the first detection pattern refers to that the detection frequency of pressure value is more than the pattern of first frequency threshold value, Second detection pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and first frequency threshold value is more than second Frequency threshold.It that is to say, the detection frequency that pressure value is carried out by the first detection pattern is more than by the progress of the second detection module The detection frequency of pressure value.
It should also be noted that, first pressure threshold value can be the value artificially set, by that will detect in real time Pressure value and first pressure threshold value are compared, and the handover operation of corresponding detection pattern is carried out according to comparative result.Certainly, in order to It is easy to be able to detect that pressure value, pressure passes in terminal when first pressure threshold value can also be more than or equal to no pressed by external force Pressure value on sensor, for example, the pressure value on the pressure sensor installed during no pressed by external force in terminal is set to th1, the One pressure threshold is set to th3, and now th3 can be more than or equal to th1.
During terminal is in the first detection pattern, because the first detection pattern refers to that the detection frequency of pressure value is big In the pattern of first frequency threshold value, if not having pressed by external force in terminal now, and the pressure sensor installed in terminal passes through One detection pattern detects pressure value in real time, can increase power consumption, waste of resource.Again because the second detection pattern refers to the inspection of pressure value Measured frequency is less than the pattern of second frequency threshold value, and first frequency threshold value is more than second frequency threshold value, now can be from the first inspection Pattern switching is surveyed to the second detection pattern, detection frequency can be reduced, power consumption can be reduced with this, increased operation rate.
Referring to Fig. 2 B, MCU (Micro Control Unit, microcontroller), Signal Regulation can be generally included in terminal Module, analog-to-digital conversion module and processor.Wherein, signal-adjusting module can be amplifier, and processor can be CPU (Central Process Unit, central controller).When terminal detects pressure value by pressure sensor, can first pass through Voltage signal on MCU detection pressure sensors, the voltage signal detected is adjusted by signal-adjusting module, will be adjusted Voltage signal after section, which exports, to be changed to the voltage signal of input, obtains to analog-to-digital conversion module, analog-to-digital conversion module The voltage signal of digital form, the voltage signal of digital form is then sent to processor, passed through after the processing of processor IIC (Inter-Integrated Circuit, Integration Bus) sends application program, operating system, driver, accessing wirelessly to Access point etc. is operated accordingly.
In the disclosed embodiments, when terminal is by the detection process of first detection module progress pressure value, working as detection During the voltage signal of the digital form reported to processor, using the voltage signal of the digital form as the pressure value detected, And the pressure value detected compares with first pressure threshold value, if the pressure value detected is less than first pressure threshold value, now First detection module will be continued through and detect pressure value in real time, and in the process that pressure value is detected by the first detection pattern In, can with statistic mixed-state to pressure value be respectively less than the duration of first pressure threshold value, and the duration obtained counting is as small In the duration of the pressure value of first pressure threshold value, and by this, duration and preset duration have been compared, if should Duration is more than or equal to preset duration, then switches to the second detection pattern from the first detection pattern.
For example, terminal is currently at the first detection pattern, and detect that the voltage signal on pressure sensor is XX, voltage Signal XX obtains the voltage signal th5 of digital form, that is to say inspection after signal-adjusting module and analog-to-digital conversion module processing The pressure value measured is th5, it is assumed that first pressure threshold value is th3, and preset duration is 0.5 second, and th5 is compared with th3, it is assumed that Th5 is less than th3, and now duration compares with preset duration, it is assumed that duration be 0.6 second, and continue when It is long to be more than preset duration 0.5 second, it is possible to switch to the second detection pattern from the first detection pattern.
When terminal carries out the switching of detection pattern by the above method, as long as being in the first detection pattern, and detect Pressure value be less than first pressure threshold value and the duration less than the pressure value of first pressure threshold value be more than or equal to it is default During duration, the second detection pattern can be switched to from the first detection pattern.But for the software having, it may be necessary to More accurately pressure value is obtained, and the detection frequency of the second detection pattern is relatively low, the accuracy rate of detection is also corresponding relatively low, therefore, Before switching to the second detection pattern from the first detection pattern, the software identification belonging to the interface that currently shows can also be determined, When predetermined software identification list includes the software identification, the step that the second detection pattern is switched to from the first detection pattern is performed Suddenly.When not including the software identification in predetermined software identification list, do not perform from the first detection pattern and switch to the second detection It the step of module, that is to say, continue through the detection that the first detection pattern carries out pressure value.
Wherein, predetermined software identification list can be set in advance when terminal is dispatched from the factory, and certainly, the demand of different user may Also can be different, therefore, for the demand suitable for different user, predetermined software identification list can also be set by user, tool Body implementation process can be:When detecting setting instruction, display function sets interface, and the function setting interface includes multiple Software identification, each software identification correspond to a software of installation, and the software is operating system or application program, based on this Function setting interface, at least one software identification is determined from the plurality of software identification, and at least one software identification is deposited Storage is into blank software identification list, to obtain predetermined software identification list.
, can be by user in function after terminal shows the function setting interface in a kind of possible implementation Interface is set to select at least one software identification.It that is to say, at least one software identification is determined by user.Certainly, In alternatively possible implementation, terminal can also be determined each soft in the plurality of software identification by third party system Part identifies the frequency for being stored to predetermined software identification list, and at least one software of sequential selection according to frequency from high to low Mark, and recommends user by the software identification of selection, by user come determine whether by least one software identification store to In predetermined software identification list.
Wherein, the setting instructs the software identification for the detection pattern switching that pressure value can be carried out for setting, and this sets Put instruction to be triggered by performing predetermined registration operation by user, the predetermined registration operation can be clicking operation, slide, voice behaviour Make etc..In addition, software identification refers to the mark of one operating system of unique mark or application program, the mark can be text Word mark, Digital ID, shape mark, icon etc..
For example, when terminal detects setting instruction, function setting interface as that shown in fig. 2 c can be shown, the function setting Interface includes 3 software identifications such as operating system 1, application program 1, application program 2.Assuming that user's selection operation system 1 and should Stored with program 1 into blank software matrix, now, obtained predetermined software list is as shown in Figure 2 D.
Terminal by the detection pattern of pressure value after the first detection pattern switches to the second detection pattern, due to second inspection The detection frequency of survey pattern is relatively low, and the situation of first pressure threshold value is less than suitable for pressure value, if pressure value increases, the second detection Pattern may can't detect the real-time change of pressure value, so when pressure value is increased above second pressure threshold value, in order to more Accurately detection pressure value, can also switch to the first detection pattern from the second detection pattern in accordance with the following steps.
In step 202, during in the second detection pattern, when the pressure value detected is more than second pressure threshold During value, the first detection pattern is switched to from the second detection pattern, second pressure threshold value is more than first pressure threshold value.
It should be noted that second pressure threshold value can be the value artificially set, pass through the pressure that will be detected in real time Force value and second pressure threshold value are compared, and the handover operation of corresponding detection pattern is carried out according to comparative result.Certainly, in order to protect The accuracy of the pressure value detected is demonstrate,proved, second pressure threshold value is also less than or equal to the 3rd pressure threshold, the 3rd pressure Threshold value refers to the pressure value for meeting operation treatment conditions.
Wherein, it can differ, that is to say for different operations, the 3rd pressure threshold, when pressure value is applied to When in multiple operation process, now, multiple 3rd pressure thresholds may be determined, according to the plurality of operation in order to more accurate True detection pressure value, second pressure threshold value can be set smaller than or equal to the minimum in the plurality of 3rd pressure threshold 3rd pressure threshold.Such as second pressure threshold value is set to th4, lower 3rd pressure threshold of unlocked by fingerprint operation is set to th2a, paid Lower 3rd pressure threshold of operation is set to th2b, and the 3rd pressure threshold is set to th2c under contact action, and th2c is more than th2b, Th2b is more than th2a, can now set th4 to be less than or equal to th2a.
During terminal is in the second detection pattern, because the second detection pattern refers to that the detection frequency of pressure value is small In the pattern of second frequency threshold value, it that is to say, the detection frequency of the second detection pattern is relatively low, if the pressure value now in terminal increases Greatly, and in terminal the pressure sensor installed detects pressure value in real time by the second detection pattern, might have some pressure values It can't detect, therefore pressure value can not accurately be detected in real time.Again because the first detection pattern refers to the detection frequency of pressure value Rate is more than the pattern of first frequency threshold value, and first frequency threshold value is more than second frequency threshold value, that is to say, the first detection pattern It is higher to detect frequency, now can switch to the first detection pattern from the second detection pattern, to improve detection frequency, and then improves Detect the accuracy of pressure value.
In the disclosed embodiments, when terminal is by the detection process of the second detection module progress pressure value, working as detection During the voltage signal of the digital form reported to processor, using the voltage signal of the digital form as the pressure value detected, And the pressure value detected compares with second pressure threshold value, if the pressure value detected is more than second pressure threshold value, from Second detection pattern switches to the first detection pattern.
For example, terminal is currently at the second detection pattern, and detect that the voltage signal on pressure sensor is XX, voltage Signal XX obtains the voltage signal th6 of digital form, that is to say inspection after signal-adjusting module and analog-to-digital conversion module processing The pressure value measured is th6, it is assumed that second pressure threshold value is th4, and th6 is compared with th4, it is assumed that th6 is more than th4, now The first detection pattern can be switched to from the second detection pattern.
In the disclosed embodiments, when the pressure sensor installed in terminal is in the first detection pattern, if detection The pressure value arrived is less than first pressure threshold value, and when being more than or equal to default less than the duration of first pressure threshold value It is long, no pressed by external force is now can consider, and the second detection pattern is switched to from the first detection pattern, due to the first detection mould The detection frequency of formula is higher than the detection frequency of the second detection pattern, so can reduce power consumption after change detection pattern, avoids Unnecessary waste, improve the utilization rate of terminal.Further, since detection frequency is higher, the pressure value detected is more accurate, institute With after the pressure sensor installed in terminal switches to the second detection pattern, if the pressure value detected is more than second pressure Threshold value, in order to more accurately detect pressure value, the first detection pattern can be switched to from the second detection pattern, pass through detection pattern Switching, the renewal of pressure value can be detected in real time.In this way, by the way that the pressure value detected and pressure threshold are made comparisons, according to The switching of corresponding detection pattern is performed according to comparative result, while reducing power consumption, can ensure to detect the accurate of pressure value again Rate, the power consumption of terminal and performance is set to reach more preferable matching.
Explanation is explained in detail in the method provided by the embodiment shown in above-mentioned Fig. 1 and Fig. 2A the embodiment of the present disclosure Afterwards, the device for next implementing to provide to the disclosure is introduced.
Fig. 3 A are a kind of detection means block diagrams of pressure value according to an exemplary embodiment.Reference picture 3A, the dress Put including the first handover module 101 and the second handover module 102.
First handover module 101, for during in the first detection pattern, when the pressure value detected is less than the One pressure threshold and when the duration of pressure value less than first pressure threshold value is more than or equal to preset duration, is examined from first Pattern switching is surveyed to the second detection pattern;
Wherein, the first detection pattern refers to that the detection frequency of pressure value is more than the pattern of first frequency threshold value, the second detection Pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and first frequency threshold value is more than second frequency threshold Value;
Second handover module 102, for during in the second detection pattern, when the pressure value detected is more than the During two pressure thresholds, the first detection pattern is switched to from the second detection pattern, second pressure threshold value is more than first pressure threshold value.
Alternatively, also include referring to Fig. 3 B, the device:
First determining module 103, the software identification belonging to interface currently shown for determination;
Trigger module 104, for when predetermined software identification list includes the software identification, triggering first to switch mould Block switches to the second detection pattern from the first detection pattern.
Alternatively, also include referring to Fig. 3 C, the device:
Display module 105, for when detecting that display function sets interface, in the function setting interface when setting instruction Including multiple software identifications, each software identification corresponds to a software of installation, and the software is for operating system or using journey Sequence;
Second determining module 106, for based on the function setting interface, being determined from multiple software identifications at least one soft Part identifies;
Memory module 107, it is pre- to obtain at least one software identification to be stored into blank software identification list If software identification list.
In the disclosed embodiments, when the pressure sensor installed in terminal is in the first detection pattern, if detection The pressure value arrived is less than first pressure threshold value, and when being more than or equal to default less than the duration of first pressure threshold value It is long, no pressed by external force is now can consider, and the second detection pattern is switched to from the first detection pattern, due to the first detection mould The detection frequency of formula is higher than the detection frequency of the second detection pattern, so can reduce power consumption after change detection pattern, avoids Unnecessary waste, improve the utilization rate of terminal.Further, since detection frequency is higher, the pressure value detected is more accurate, institute With after the pressure sensor installed in terminal switches to the second detection pattern, if the pressure value detected is more than second pressure Threshold value, in order to more accurately detect pressure value, the first detection pattern can be switched to from the second detection pattern, pass through detection pattern Switching, the renewal of pressure value can be detected in real time.In this way, by the way that the pressure value detected and pressure threshold are made comparisons, according to The switching of corresponding detection pattern is performed according to comparative result, while reducing power consumption, can ensure to detect the accurate of pressure value again Rate, the power consumption of terminal and performance is set to reach more preferable matching.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of detection means 400 for pressure value according to an exemplary embodiment.For example, Device 400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, cure Treat equipment, body-building equipment, personal digital assistant etc..
Reference picture 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application program or method for being operated on device 400, contact data, telephone book data, disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing power supply for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 408 includes a front camera and/or rear camera.When device 400 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication set Part 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor cluster 414 can be with 400 1 components of detection means 400 or device Position change, the existence or non-existence that user contacts with device 400, the orientation of device 400 or acceleration/deceleration and device 400 Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, real shown in above-mentioned Fig. 1 or Fig. 2A for performing The method that example offer is provided.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of device 400.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device performs so that mobile terminal is able to carry out a kind of detection method of pressure value, and methods described includes:
During in the first detection pattern, when the pressure value detected is less than first pressure threshold value and less than described When the duration of the pressure value of first pressure threshold value is more than or equal to preset duration, second is switched to from the first detection pattern Detection pattern;
Wherein, the first detection pattern refers to that the detection frequency of pressure value is more than the pattern of first frequency threshold value, the second detection Pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and the first frequency threshold value is more than the second frequency Threshold value;
During in the second detection pattern, when the pressure value detected is more than second pressure threshold value, from second Detection pattern switches to the first detection pattern, and the second pressure threshold value is more than the first pressure threshold value.
Alternatively, before switching to the second detection pattern from the first detection pattern, in addition to:
It is determined that the software identification belonging to the interface currently shown;
When predetermined software identification list includes the software identification, perform from the first detection pattern and switch to the second detection The step of pattern.
Alternatively, this method also includes:
When detecting that display function sets interface when setting instruction, the function setting interface includes multiple software identifications, Each software identification corresponds to a software of installation, and the software is operating system or application program;
Based on the function setting interface, at least one software identification is determined from multiple software identifications;
At least one software identification is stored into blank software identification list, to obtain predetermined software identification list.
Alternatively, the second pressure threshold value is less than the 3rd pressure threshold, and the 3rd pressure threshold refers to meet that operation is handled The pressure value of condition.
In the disclosed embodiments, when the pressure sensor installed in terminal is in the first detection pattern, if detection The pressure value arrived is less than first pressure threshold value, and when being more than or equal to default less than the duration of first pressure threshold value It is long, no pressed by external force is now can consider, and the second detection pattern is switched to from the first detection pattern, due to the first detection mould The detection frequency of formula is higher than the detection frequency of the second detection pattern, so can reduce power consumption after change detection pattern, avoids Unnecessary waste, improve the utilization rate of terminal.Further, since detection frequency is higher, the pressure value detected is more accurate, institute With after the pressure sensor installed in terminal switches to the second detection pattern, if the pressure value detected is more than second pressure Threshold value, in order to more accurately detect pressure value, the first detection pattern can be switched to from the second detection pattern, pass through detection pattern Switching, the renewal of pressure value can be detected in real time.In this way, by the way that the pressure value detected and pressure threshold are made comparisons, according to The switching of corresponding detection pattern is performed according to comparative result, while reducing power consumption, can ensure to detect the accurate of pressure value again Rate, the power consumption of terminal and performance is set to reach more preferable matching.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of detection method of pressure value, it is characterised in that methods described includes:
During in the first detection pattern, when the pressure value detected is less than first pressure threshold value and less than described first When the duration of the pressure value of pressure threshold is more than or equal to preset duration, second is switched to from first detection pattern Detection pattern;
Wherein, first detection pattern refer to pressure value detection frequency be more than first frequency threshold value pattern, described second Detection pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and the first frequency threshold value is more than described Second frequency threshold value;
During in second detection pattern, when the pressure value detected is more than second pressure threshold value, from described Second detection pattern switches to first detection pattern, and the second pressure threshold value is more than the first pressure threshold value.
2. according to the method for claim 1, it is characterised in that described to switch to the second detection from first detection pattern Before pattern, in addition to:
It is determined that the software identification belonging to the interface currently shown;
When predetermined software identification list includes the software identification, perform from first detection pattern and switch to the second inspection The step of survey pattern.
3. according to the method for claim 2, it is characterised in that methods described also includes:
When detecting that display function sets interface when setting instruction, the function setting interface includes multiple software identifications, often Individual software identification corresponds to a software of installation, and the software is operating system or application program;
Based on the function setting interface, at least one software identification is determined from the multiple software identification;
At least one software identification is stored into blank software identification list, to obtain the predetermined software identity column Table.
4. according to any described methods of claim 1-3, it is characterised in that the second pressure threshold value is less than the 3rd pressure threshold Value, the 3rd pressure threshold refer to the pressure value for meeting operation treatment conditions.
5. a kind of detection means of pressure value, it is characterised in that described device includes:
First handover module, for during in the first detection pattern, when the pressure value detected is less than first pressure Threshold value and when the duration of pressure value less than the first pressure threshold value is more than or equal to preset duration, from described first Detection pattern switches to the second detection pattern;
Wherein, first detection pattern refer to pressure value detection frequency be more than first frequency threshold value pattern, described second Detection pattern refers to that the detection frequency of pressure value is less than the pattern of second frequency threshold value, and the first frequency threshold value is more than described Second frequency threshold value;
Second handover module, for during in second detection pattern, when the pressure value detected is more than second During pressure threshold, first detection pattern is switched to from second detection pattern, the second pressure threshold value is more than described First pressure threshold value.
6. device according to claim 5, it is characterised in that described device also includes:
First determining module, the software identification belonging to interface currently shown for determination;
Trigger module, for when predetermined software identification list includes the software identification, triggering first handover module The second detection pattern is switched to from first detection pattern.
7. device according to claim 6, it is characterised in that described device also includes:
Display module, for when detecting setting instruction, display function to set interface, and the function setting interface includes more Individual software identification, each software identification correspond to a software of installation, and the software is operating system or application program;
Second determining module, for based on the function setting interface, being determined from the multiple software identification at least one soft Part identifies;
Memory module, it is described pre- to obtain at least one software identification to be stored into blank software identification list If software identification list.
8. according to any described devices of claim 5-7, it is characterised in that the second pressure threshold value is less than the 3rd pressure threshold Value, the 3rd pressure threshold refer to the pressure value for meeting operation treatment conditions.
9. a kind of detection means of pressure value, it is characterised in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as the step of perform claim requires any one method described in 1-4.
10. a kind of computer-readable recording medium, instruction is stored with the computer-readable recording medium, it is characterised in that The step of instruction realizes any one method described in claim 1-4 when being executed by processor.
CN201710592294.5A 2017-07-19 2017-07-19 Pressure value detection method and device and computer readable storage medium Active CN107422911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710592294.5A CN107422911B (en) 2017-07-19 2017-07-19 Pressure value detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710592294.5A CN107422911B (en) 2017-07-19 2017-07-19 Pressure value detection method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107422911A true CN107422911A (en) 2017-12-01
CN107422911B CN107422911B (en) 2020-12-18

Family

ID=60430690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710592294.5A Active CN107422911B (en) 2017-07-19 2017-07-19 Pressure value detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107422911B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901769A (en) * 2017-12-07 2019-06-18 京东方科技集团股份有限公司 Feature identifies structure, production method, driving method and relevant apparatus
CN113542478A (en) * 2021-07-16 2021-10-22 南昌黑鲨科技有限公司 Pressure-sensitive control protection system and method and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110155479A1 (en) * 2009-12-25 2011-06-30 Wacom Co., Ltd. Pointing member, position detection apparatus and position detection method
CN102890672A (en) * 2011-07-18 2013-01-23 汉王科技股份有限公司 Method and device for finding application program of mobile terminal
CN104038618A (en) * 2013-03-06 2014-09-10 联想(北京)有限公司 Access control method and electronic equipment
CN105468278A (en) * 2015-11-06 2016-04-06 网易(杭州)网络有限公司 Touch screen operation identification and response method and apparatus based on virtual key, and game manipulation method and apparatus
CN106406496A (en) * 2016-09-05 2017-02-15 芯海科技(深圳)股份有限公司 Low power consumption control method for pressure-sensitive key identification device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110155479A1 (en) * 2009-12-25 2011-06-30 Wacom Co., Ltd. Pointing member, position detection apparatus and position detection method
CN102890672A (en) * 2011-07-18 2013-01-23 汉王科技股份有限公司 Method and device for finding application program of mobile terminal
CN104038618A (en) * 2013-03-06 2014-09-10 联想(北京)有限公司 Access control method and electronic equipment
CN105468278A (en) * 2015-11-06 2016-04-06 网易(杭州)网络有限公司 Touch screen operation identification and response method and apparatus based on virtual key, and game manipulation method and apparatus
CN106406496A (en) * 2016-09-05 2017-02-15 芯海科技(深圳)股份有限公司 Low power consumption control method for pressure-sensitive key identification device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901769A (en) * 2017-12-07 2019-06-18 京东方科技集团股份有限公司 Feature identifies structure, production method, driving method and relevant apparatus
US11353982B2 (en) 2017-12-07 2022-06-07 Boe Technology Group Co., Ltd. Feature recognition structure, fabricating method, driving method and related device
CN113542478A (en) * 2021-07-16 2021-10-22 南昌黑鲨科技有限公司 Pressure-sensitive control protection system and method and computer readable storage medium
CN113542478B (en) * 2021-07-16 2022-10-14 南昌黑鲨科技有限公司 Pressure-sensitive control protection system and method and computer readable storage medium

Also Published As

Publication number Publication date
CN107422911B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN104219388B (en) Sound control method and device
US10102361B2 (en) Method and apparatus for implementing touch key and fingerprint identification, and terminal device
CN104503689B (en) Application interface display methods and device
CN104008635B (en) Apparatus control method and device
CN104991789B (en) Application program open method and device
CN104598076B (en) Touch information screen method and device
CN106201292A (en) Terminal false-touch prevention method and apparatus
CN104598111A (en) Display mode switching method and display mode switching device
CN104571709B (en) The processing method of mobile terminal and virtual key
CN107102772A (en) Touch control method and device
CN106547663A (en) Button management method and device
CN108319832A (en) Unlocking method and device
CN107295190A (en) Working mode switching method, device and protective case
CN107193393A (en) Input method switching method and device
CN106990903A (en) Display and the method and device of hide application program
CN107368233A (en) Switching method, device and the equipment of background picture
CN107330391A (en) Product information reminding method and device
CN107402711A (en) Volume adjusting method, device and computer-readable recording medium
CN106469265A (en) Electronic equipment awakening method, device and electronic equipment
CN107958239A (en) Fingerprint identification method and device
CN107340996A (en) Screen lights method and device
CN107422911A (en) Detection method, device and the computer-readable recording medium of pressure value
CN104035764A (en) Object control method and relevant device
CN107025041A (en) Fingerprint input method and terminal
CN106775240A (en) The triggering method of application program, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant