Invention content
The purpose of the present invention is to provide a kind of setting methods of pressure rating so that electronic equipment can help user to set
The multiple pressure ratings for meeting user's use habit are set, so as to provide personalized function services to the user.
In order to solve the above technical problems, embodiments of the present invention provide a kind of setting method of pressure rating, including
Following steps:Grade prompting interface to be set is provided;Grade prompting interface to be set includes current grade M to be set;Pass through pressure-sensing
Unit senses current pressure y input by user;Pressure prompting interface is provided;Pressure prompting interface includes current pressure y and presets
Gross pressure z;According to preset grade setting sequence current M pairs of grade to be set is set using current pressure y and default gross pressure z
The pressure range answered;Wherein, it is the maximum pressure that pressure sensing cells can sense to preset gross pressure.
In terms of existing technologies, the setting method of pressure rating provides grade prompt to be set circle to embodiment of the present invention
Face;Grade prompting interface to be set includes current grade M to be set;Current pressure y input by user is sensed by pressure sensing cells;
Pressure prompting interface is provided;Pressure prompting interface includes current pressure y and default gross pressure z;It is arranged according to preset grade suitable
Sequence sets the corresponding pressure ranges of current grade M to be set using current pressure y and default gross pressure z;Wherein, gross pressure is preset
The maximum pressure that can be sensed for pressure sensing cells.In this way, electronic equipment can help user setting to meet use
Multiple pressure ratings of family use habit, so as to provide personalized function services to the user.
In addition, preset grade setting sequence is from small to large.Using current pressure y and default gross pressure z, setting is current
The step of grade M to be set corresponding pressure range, including following sub-step:If judging, currently grade M to be set is preset more
The currently corresponding pressure ranges of grade M to be set then are set as (0, y) by the minimum level in a pressure rating;Otherwise it obtains
If the maximum value x in the corresponding pressure ranges of grade M-1, and the corresponding pressure ranges of current grade M to be set are set as (x,
y).In this way, so that current grade M to be set can obtain more suitable pressure range, operation is more simple
It is single convenient, and feasibility is higher.
In addition, using current pressure y and default gross pressure z, the step of the corresponding pressure ranges of current grade M to be set is set
After rapid, also comprise the steps of:If judging not set grade M+1 as the greatest level in preset multiple pressure ratings,
The corresponding pressure ranges of grade M+1 will not be set to be set as (y, z);Otherwise current grade to be set is updated to M+1.Pass through this side
Formula so that electronic equipment can help user to be continuously configured to the pressure range of next pressure rating, save user
The setting time do not need the operation that user carries out input pressing force again, just can obtain more and when greatest level is arranged
Suitable pressure range, it is more convenient.
In addition, before the step of providing grade prompting interface to be set, also comprise the steps of:Number of levels setting is provided
Interface;Wherein, the number of preset multiple pressure ratings is to set the grade set by user that interface receives by number of levels
Number.In this way so that user can voluntarily set the number of pressure rating according to the actual demand of oneself
It sets, to further provide more personalized function services to the user, improves user experience.
Also include following in addition, while sensing the step of current pressure y input by user by pressure sensing cells
Step:Record the duration of current pressure;According to preset grade setting sequence, current pressure y and default stagnation pressure are utilized
After the step of power z, the current grade M to be set of setting corresponding pressure range, also comprise the steps of:It is set according to duration
The currently corresponding effective input durations of pressure rating M to be set.In this way, so that identification of the electronic equipment to user's touch operation
Accuracy is improved, and effectively reduces the probability of false triggering.
In addition, current pressure and default gross pressure are with ratio graphical representation so that user can more get information about
The numerical relation of current pressure and default gross pressure.
In addition, pressure prompting interface also includes to have set grade in all and respectively set the corresponding pressure range of grade,
So that user more easily views the information set.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to each reality of the present invention
The mode of applying is explained in detail.However, it will be understood by those skilled in the art that in each embodiment of the present invention,
In order to make the reader understand this application better, many technical details are proposed.But even if without these technical details and base
In the various changes and modifications of following embodiment, each claim of the application technical side claimed can also be realized
Case.
The first embodiment of the present invention is related to a kind of setting method of pressure rating, it is applied to include 3D touch functions
Electronic equipment, electronic equipment can be the mobile terminals such as mobile phone, tablet computer, and detailed process is as shown in Figure 1.
Step 101, grade prompting interface to be set is provided.
Specifically, electronic equipment provides grade prompting interface to be set by touch screen, so that user checks.Its
In, grade prompting interface to be set includes current grade M to be set, in order to which user timely recognizes the current desired pressure to be arranged
The information of power grade.Such as, the grade prompting interface to be set that touch screen is shown is the interface with " setting of grade 1 " printed words.Certainly,
In practical operation, grade prompting interface to be set can also include all pressure ratings not set so that user can and
When understanding required for be arranged pressure rating number, working as shown in the grade prompting interface to be set that touch screen is shown
Before grade M to be set be identified with different from the labels of other grades so that user more explicitly knows currently to wait setting
Grade, and grade prompting interface to be set also checks list comprising a grade, and which, which checks in list, has " setting of grade 1 "
Bar-shaped frames, users such as " setting of grade 2 " ... " grade N settings " can view all pressure ratings not set.So, only with this
Citing is limited, and herein and does any restriction.
Step 102, current pressure y input by user is sensed by pressure sensing cells.
Specifically, user applies pressing force, the height electricity that electronic equipment passes through touch screen to the touch screen of electronic equipment
The numerical value change of appearance, obtains pressing force input by user, and acquired pressing force is current pressure y.
Step 103, pressure prompting interface is provided.
Specifically, electronic equipment shows that pressure prompting interface, pressure prompting interface include current pressure y by touch screen
With default gross pressure z.Wherein, default gross pressure can be the maximum pressure that pressure sensing cells can sense, and by user or go out
Manufacturer pre-sets and preserves in the electronic device.Such as, electronic equipment by the relationship of current pressure y and default gross pressure z with than
The form of illustration shape is indicated, and enables a user to the number for more getting information about current pressure and default gross pressure
Value relationship, as shown in Fig. 2, the number of pressure rating is 3, respectively grade 1, grade 2 and grade 3.Grade 1 is to have set
Grade, the pressure range of grade 1 be (0, x];Grade 2 is current grade to be set, the pressure range of grade 2 be [x, y);Grade 3 is
Grade is not set.Certainly, in practical operation, electronic equipment can also show the pressure range for having set pressure rating numerical value, when
The numerical value of the numerical value of preceding pressure y and default gross pressure z, so that user checks.So, any restrictions are not done herein.
Preferably, in present embodiment, pressure prompting interface can also include all to have set grade and respectively set grade
Corresponding pressure range enables a user to more easily view the information set, in order to which user is to having set content
Understood.
Step 104, according to preset grade setting sequence, using current pressure y and default gross pressure z, setting currently waits for
If the corresponding pressure ranges of grade M.In present embodiment, preset grade setting sequence is from small to large, that is, electronic equipment from
The pressure rating of pressure range numerical value minimum is configured.
Wherein, step 104 includes sub-step 1041 to sub-step 1043.
Sub-step 1041 judges whether current grade M to be set is minimum level in preset multiple pressure ratings.If
It is to then follow the steps 1042, it is no to then follow the steps 1043.
Such as, electronic equipment needs that 3 pressure ratings, respectively grade 1, grade 2 and grade 3, grade 1 to grade is arranged
3 corresponding pressure ranges are sequentially increased.In present embodiment, preset grade setting sequence is from small to large, i.e., grade sets
It sets sequence and is followed successively by grade 1, grade 2, grade 3.If the grade M to be set of current setting is grade 1, judging result is yes, table
The minimum level being shown as in preset multiple pressure ratings;Otherwise, it is determined that result is no.
Wherein, preset multiple pressure rating numbers can be that the number of levels in electronic equipment default setting (is dispatched from the factory
Quotient pre-sets and preserves in the electronic device);Can also voluntarily it be arranged by user.Such as, before step 101, electronic equipment
Touch screen is also provided, number of levels setting interface is provided, for user's input rank number.Wherein, preset multiple pressure ratings
Number be pass through number of levels set interface receive number of levels set by user.In this way so that Yong Huneng
It is enough that the number of pressure rating is voluntarily arranged according to the actual demand of oneself, to further provide to the user more
Personalized function services, improve user experience.
Sub-step 1042, the corresponding pressure ranges of current grade M to be set are set as (0, y].
Sub-step 1043 obtains and has set maximum value x in the corresponding pressure ranges of grade M-1, and by current grade M to be set
Corresponding pressure range be set as (x, y].
Such as, electronic equipment needs that 3 pressure ratings, respectively grade 1, grade 2 and grade 3 are arranged.If currently waiting setting
Grade M be grade 2, then electronic equipment obtain grade 1 section (0, x] in maximum value x, then the pressure range of grade 2 is set
Be set to (x, y].
Step 105, judge whether not setting grade M+1 as the greatest level in preset multiple pressure ratings.If so, holding
Row step 106, it is no to then follow the steps 107.
Such as, electronic equipment needs that 3 pressure ratings, respectively grade 1, grade 2 and grade 3 are arranged.If currently waiting setting
Grade M is grade 2, then it is grade 3 not set grade M+1, is the greatest level in preset multiple pressure ratings, judges at this time
As a result it is yes;If currently grade M to be set is grade 1, grade M+1 is not set as grade 2, not in preset multiple pressure ratings
Greatest level, judging result is no at this time.
Step 106, will not set the corresponding pressure ranges of grade M+1 be set as (y, z].
Specifically, if not setting grade M+1 as the greatest level in preset multiple pressure ratings, electronic equipment is being set
When setting greatest level, the operation that user carries out input pressing force again is not needed, more suitable pressure range just can be obtained, compared with
It is convenient.
Step 107, current grade to be set is updated to M+1.
Specifically, if not setting grade M+1 not as the greatest level in preset multiple pressure ratings, electronic equipment energy
Enough user is helped continuously to be configured to the pressure range of next pressure rating, has saved the setting time of user.
Second embodiment of the present invention is related to a kind of setting method of pressure rating, and detailed process is as shown in Figure 3.Second
Embodiment is roughly the same with first embodiment, is in place of the main distinction:First embodiment and second embodiment
Grade setting sequence is different, and in the first embodiment, preset grade setting sequence is from small to large.And in the present invention second
In embodiment, preset grade setting sequence is from large to small.
Step 101 in step 201 in present embodiment to step 203 and first embodiment to step 103 substantially
Identical, to avoid repeating, details are not described herein.
Step 204, according to preset grade setting sequence, using current pressure y and default gross pressure z, setting currently waits for
If the corresponding pressure ranges of grade M.
Wherein, step 204 includes sub-step 2041 to sub-step 2043.
Sub-step 2041 judges whether current grade M to be set is greatest level in preset multiple pressure ratings.If
It is to then follow the steps 2043, it is no to then follow the steps 2042.
Specifically, currently grade M to be set is compared by electronic equipment with all pressure ratings not being arranged, is judged
Whether current grade M to be set is greatest level.Such as, electronic equipment needs that 3 pressure ratings, respectively grade 1, grade 2 are arranged
And grade 3, the pressure range corresponding to grade 1 are less than the pressure range corresponding to grade 2, the pressure area corresponding to grade 2
Between be less than pressure range corresponding to grade 3, in present embodiment, preset grade setting sequence is therefore electric for from large to small
Sub- equipment is first started setting up from grade 3.When current setting is when setting grade M as grade 3, then judging result is yes;Otherwise, sentence
It is no to determine result.
Sub-step 2042 obtains and has set minimum value x in the corresponding pressure ranges of grade M+1, and by current grade M to be set
Corresponding pressure range be set as (y, x].
Such as, electronic equipment needs that 3 pressure ratings, respectively grade 1, grade 2 and grade 3 are arranged.If currently waiting setting
Grade M be grade 2, then electronic equipment obtain grade 3 section (x, z] in minimum value x, then the pressure range of grade 2 is set
Be set to (y, x].
Sub-step 2043, the corresponding pressure ranges of current grade M to be set are set as (y, z].
Step 205, judge whether not setting grade M-1 as the minimum level in preset multiple pressure ratings.If so, holding
Row step 206, it is no to then follow the steps 207.
Specifically, whether electronic equipment judges the remaining number of levels that do not set as 1, if so, 206 are thened follow the steps,
It is no to then follow the steps 207.
Step 206, will not set the corresponding pressure ranges of grade M-1 be set as (0, y].
Specifically, if not setting grade M-1 as the minimum level in preset multiple pressure ratings, electronic equipment is being set
When setting minimum level, the operation that user carries out input pressing force again is not needed, more suitable pressure range just can be obtained, compared with
It is convenient.
Step 207, current grade to be set is updated to M-1.
Specifically, if not setting grade M-1 not as the minimum level in preset multiple pressure ratings, electronic equipment energy
Enough user is helped continuously to be configured to the pressure range of next pressure rating, has saved the setting time of user.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection domain of this patent
It is interior;To either adding inessential modification in algorithm in flow or introducing inessential design, but its algorithm is not changed
Core design with flow is all in the protection domain of the patent.
Third embodiment of the invention is related to a kind of setting method of pressure rating, and third embodiment is in the first embodiment party
It is improved on the basis of formula or second embodiment, is mainly theed improvement is that:In third embodiment of the invention, pressure
While sensing unit senses the step of current pressure y input by user, the duration of current pressure is also recorded, according to lasting
Duration sets the corresponding effective input durations of current pressure rating M to be set, so that electronic equipment is to user's touch operation
Identification precision is improved, and effectively reduces the probability of false triggering.
Specifically, in present embodiment, in the step of sensing current pressure y input by user by pressure sensing cells
While, also record the duration of current pressure.Such as when pressure sensing cells sense current pressure y input by user,
Then triggering timing device starts timing, and when user's finger is taken away, pressure sensing cells can not sense current pressure y input by user
When, then triggering timing device stops timing, and present timing duration is sent to the primary processor of electronic equipment by timer, wherein should
Present timing duration is then pressure duration.
Also, according to preset grade setting sequence, using current pressure y and default gross pressure z, setting currently waits setting
After the step of grade M corresponding pressure ranges, also comprise the steps of:Current pressure rating to be set is set according to duration
The corresponding effective input durations of M.Wherein, effectively input duration can be a duration section, so that feasibility is higher.Such as,
Pressure duration is a, is equipped with preset duration b, and b<A then effectively inputs duration section and could be provided as [a-b, a+b], that is,
Pressure duration is modified using preset duration b, to obtain most suitable effective input duration, preset duration can be by
Go out manufacturer to pre-set and preserve in the electronic device.
It is not difficult to find out, in present embodiment, when user's finger accidentally streaks touch screen, detected by electronic equipment
Pressure duration cannot meet effectively input duration, then electronic equipment does not respond at this time.In this way, so that electronic equipment
It is improved to the recognition accuracy of user's touch operation, effectively reduces the probability of false triggering.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.