CN107402711A - Volume adjusting method, device and computer-readable recording medium - Google Patents
Volume adjusting method, device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107402711A CN107402711A CN201710592646.7A CN201710592646A CN107402711A CN 107402711 A CN107402711 A CN 107402711A CN 201710592646 A CN201710592646 A CN 201710592646A CN 107402711 A CN107402711 A CN 107402711A
- Authority
- CN
- China
- Prior art keywords
- touching signals
- type
- touch
- volume
- signals
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/167—Audio in a user interface, e.g. using voice commands for navigating, audio feedback
Abstract
The disclosure is directed to a kind of volume adjusting method, device and computer-readable recording medium.The volume adjusting method includes:Touching signals are obtained by first sensor, detect the position of touch of touching signals whether in the target area of touch-screen;Type of action signal corresponding to touching signals is obtained by second sensor, detects whether type of action corresponding to touching signals is to click on type;The position of touch of touching signals is determined in the target area of touch-screen, and type of action corresponding to touching signals is that it is volume adjustment signals to determine touching signals when clicking on type;The volume of terminal is adjusted according to volume adjustment signals.The disclosure is by increasing the detecting step of false-touch prevention, the situation of user misoperation can be excluded, the degree of accuracy of volume adjusting is improved, entity volume key can be substituted by touch control operation again, solve the problems, such as the obstruction that entity volume key turns into ultra-thin Terminal Design.
Description
Technical field
This disclosure relates to touch-control field, more particularly to a kind of volume adjusting method, device and computer-readable recording medium.
Background technology
In correlation technique, two entity volume keys of terminal side are the modes of most common volume adjusting in terminal, its
In entity volume key be used for the volume that increases terminal, another entity volume key is used for the volume for reducing terminal.However, by
It is the trend of present mobile phone industrial design in ultra thin handset, entity volume key turns into one of obstruction of ultra thin handset.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of volume adjusting method, device and computer can
Read storage medium.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of volume adjusting method, applied to the end with touch-screen
End, the volume adjusting method include:
Touching signals are obtained by first sensor, whether detect the position of touch of the touching signals in the touch-screen
Target area in;
Type of action signal corresponding to the touching signals is obtained by second sensor, it is corresponding to detect the touching signals
Type of action whether be click on type;
The position of touch of the touching signals is determined in the target area of the touch-screen, and the touching signals are corresponding
Type of action for it is described click type when, it is volume adjustment signals to determine the touching signals;
The volume of the terminal is adjusted according to the volume adjustment signals.
Alternatively, before the determination touching signals are volume adjustment signals, in addition to:
Record obtains the first moment of touching signals by the first sensor;
Record the second moment that the second sensor obtains type of action signal;
When determining that the time difference at first moment and second moment is less than the first given threshold, the second sensing is determined
Type of action signal corresponding to the touching signals that the type of action signal that device obtains obtains for first sensor.
Alternatively, it is described to determine that the touching signals are volume adjustment signals, including:
Record determines threeth moment of the position of touch of the touching signals in the target area of the touch-screen;
Record determines fourth moment of the type of action corresponding to the touching signals for the click type;
When determining that the time difference at the 3rd moment and the 4th moment is less than the second given threshold, the touch-control is determined
Signal is volume adjustment signals.
Alternatively, it is described that type of action signal corresponding to the touching signals is obtained by second sensor, including:Pass through
Acceleration transducer obtains acceleration signal corresponding to the touching signals;
It is described to determine type of action corresponding to the touching signals to click on type, including:Determine the acceleration signal
When corresponding acceleration signature acceleration signature corresponding with click action matches, action class corresponding to the touching signals is determined
Type is click type.
Alternatively, it is described to determine that the acceleration corresponding with click action of acceleration signature corresponding to the acceleration signal is special
Sign matching, including:
Determine that the wave character of the acceleration signal meets preparatory condition, the wave character comprise at least crest value,
Valley value, starting point change to both in the transformation period and crest to the time of trough of crest value.
Alternatively, the target area includes first object region and the second target area, is believed according to the volume adjusting
Number the volume of the terminal is adjusted including:
When the position of touch is in the first object region, increase the terminal volume;
When the position of touch is in second target area, the terminal volume is reduced.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of volume adjustment device, applied to the end with touch-screen
End, the volume adjustment device include:
First detection module, it is configured as obtaining touching signals by first sensor, detects touching for the touching signals
Position is controlled whether in the target area of the touch-screen;
Second detection module, it is configured as obtaining type of action letter corresponding to the touching signals by second sensor
Number, detect whether type of action corresponding to the touching signals is to click on type;
First determining module, it is configured to determine that the position of touch of the touching signals in the target area of the touch-screen
It is interior, and type of action corresponding to the touching signals for it is described click type when, determine the touching signals for volume adjusting letter
Number;
Adjustment module, it is configured as that the volume of the terminal is adjusted according to the volume adjustment signals.
Alternatively, in addition to:
First logging modle, it is configured as the first moment that record obtains touching signals by the first sensor;
Second logging modle, it is configured as recording the second moment that the second sensor obtains type of action signal;
Second determining module, it is configured to determine that the time difference at first moment and second moment sets less than first
When determining threshold value, determine to act corresponding to the touching signals that the type of action signal that second sensor obtains obtains for first sensor
Type signal.
Alternatively, first determining module includes:
First record sub module, it is configured as mesh of the position of touch in the touch-screen that record determines the touching signals
Mark the 3rd moment in region;
Second record sub module, it is configured as record and determines that type of action corresponding to the touching signals is the click class
4th moment of type;
Determination sub-module, it is configured to determine that the time difference at the 3rd moment and the 4th moment is less than the second setting
During threshold value, it is volume adjustment signals to determine the touching signals.
Alternatively, second detection module is configured as obtaining corresponding to the touching signals by acceleration transducer
Acceleration signal;First determining module is configured to determine that acceleration signature corresponding to the acceleration signal is dynamic with clicking on
When acceleration signature corresponding to work matches, type of action corresponding to the touching signals is determined to click on type.
Alternatively, first determining module is configured to determine that the wave character of the acceleration signal meets default bar
Part, the wave character comprises at least crest value, valley value, starting point change to crest value transformation period and crest to ripple
Both in the time of paddy.
Alternatively, the target area includes first object region and the second target area;The adjustment module includes:
First regulation submodule, when being configured as the position of touch in the first object region, described in increase
Terminal volume;
Second regulation submodule, when being configured as the position of touch in second target area, described in reduction
Terminal volume.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of volume adjustment device, including:
Processor;
For storing the memory of processor-executable instruction;
Touch-screen;
Wherein, the processor is configured as:
Touching signals are obtained by first sensor, whether detect the position of touch of the touching signals in the touch-screen
Target area in;
Type of action signal corresponding to the touching signals is obtained by second sensor, it is corresponding to detect the touching signals
Type of action whether be click on type;
The position of touch of the touching signals is determined in the target area of the touch-screen, and the touching signals are corresponding
Type of action for it is described click type when, it is volume adjustment signals to determine the touching signals;
The volume of the terminal is adjusted according to the volume adjustment signals.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored thereon with calculating
Machine programmed instruction, the programmed instruction realize the step for the volume adjusting method that disclosure first aspect is provided when being executed by processor
Suddenly.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Target area is set on terminal touch screen, in order to the volume of terminal be adjusted, it is necessary to pass through detection
Whether the position of touch of touching signals is in the target area, and whether touch control operation corresponding to the touching signals is a little
Operation is hit, so, the situation of user misoperation can be excluded, improve the degree of accuracy of volume adjusting, and to target area
Clicking operation is analogous to click entity volume key in correlation technique, i.e., instead of entity volume key by touch control operation, solve
Entity volume key turns into the problem of obstruction of ultra-thin Terminal Design.
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 disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of volume adjusting method according to an exemplary embodiment.
Fig. 2 is a surface chart of the terminal according to an exemplary embodiment.
Fig. 3 is a kind of another flow chart of volume adjusting method according to an exemplary embodiment.
Fig. 4 is a kind of another flow chart of volume adjusting method according to an exemplary embodiment.
The x-axis data for the acceleration transducer output that Fig. 5 is terminal according to an exemplary embodiment when static
Figure.
Fig. 6 is the x-axis number of acceleration transducer output of the terminal when being clicked according to an exemplary embodiment
According to figure.
Fig. 7 is a kind of block diagram of volume adjustment device according to an exemplary embodiment.
Fig. 8 is a kind of another block diagram of volume adjustment device according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the first determining module of volume adjustment device according to an exemplary embodiment.
Figure 10 is a kind of block diagram of the adjustment module of volume adjustment device according to an exemplary embodiment.
Figure 11 is a kind of block diagram of volume adjustment device 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 all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of volume adjusting method according to an exemplary embodiment, as shown in figure 1, volume
Adjusting method is applied in the terminal with touch-screen, comprises the following steps.
In step s 11, by first sensor obtain touching signals, detect the touching signals position of touch whether
In the target area of the touch-screen.
In step s 12, type of action signal corresponding to the touching signals is obtained by second sensor, described in detection
Whether type of action corresponding to touching signals is to click on type.
In step s 13, the position of touch of the touching signals is determined in the target area of the touch-screen, and it is described
When type of action corresponding to touching signals is the click type, it is volume adjustment signals to determine the touching signals.
In step S14, the volume of the terminal is adjusted according to the volume adjustment signals.
Terminal in the disclosure is probably smart mobile phone, intelligent watch, Intelligent bracelet, tablet personal computer etc..The terminal bag
Touch-screen is included, in step s 11, touching signals are obtained by first sensor, detecting the position of touch of the touching signals is
It is no in the target area of the touch-screen.Wherein, the first sensor can be capacitance sensor;When user uses finger
When touching screen, the capacitance variations value of screen is obtained by the capacitance sensor, and then caused touching signals can be obtained.
The first sensor can be pressure sensor;When user touches screen using finger, obtained by the capacitance sensor
The change value of pressure of screen is taken, and then caused touching signals can be obtained.
After the touching signals are obtained, detect the touching signals position of touch whether the touch-screen target
In region.By taking capacitive touch screen as an example, when finger touch when on screen, due to human body electric field, user and touch screen surface
Formed with a coupled capacitor, for high frequency electric, electric capacity is direct conductor, and then finger siphons away one very from contact point
Small electric current, this electric current flow out from the electrode on the corner of touch-screen respectively, and flow through the electric currents of this four electrodes with
The distance of finger to corner is directly proportional, by the accurate calculating to this four current ratios, draws the position of touch of touch point, i.e.,
(x, y) coordinate, so according to (x, the y) coordinate position of touch whether in the target area.
As shown in figure 1, step S12 and step S11 do not have the execution sequence of priority, and after touching signals are obtained, step S11
It can be carried out simultaneously with step S12.When performing step S12, it is corresponding that the touching signals can be detected by second sensor
Type of action signal, such as, when user clicks on terminal using finger, displacement, speed, acceleration or the touch-screen of terminal by
To pressure can change, corresponding second sensor (such as displacement transducer, velocity sensor, acceleration can be passed through
Sensor or pressure sensor) detection obtain.Because during using touch-screen, user makes to go smoothly due to maloperation
The partial skin of finger or human body is in the target area of terminal, then may think that it is volume adjustment signals, for example finger exists
Target area is slipped into when being slided on touch-screen, therefore, the disclosure detects type of action corresponding to the touching signals by increasing
Whether it is the step S12 for clicking on type, the situation of user misoperation can be excluded, improve the degree of accuracy of volume adjusting.
As shown in figure 1, when step S11 testing result be the position of touch in the target area, and the step
Rapid S12 testing result be type of action corresponding to the touching signals for the click type when, perform step S13, it is determined that
The touching signals are volume adjustment signals.
It is determined that the touching signals be volume adjustment signals after, perform step S14, according to the volume adjustment signals pair
The volume of the terminal is adjusted.When detecting the position of touch not in the target area, or described touch
When control operation is not the clicking operation, then it may not operate.
Alternatively, the target area can include first object region and the second target area, then described in the basis
The volume of the terminal is adjusted volume adjustment signals, can include:When the position of touch is in first mesh
When marking in region, increase the terminal volume;When the position of touch is in second target area, the terminal is reduced
Volume.I.e. when the position of touch is in the first object region, the touching signals are volume in the increase terminal
Volume adjustment signals;When the position of touch is in second target area, the touching signals are the reduction end
The volume adjustment signals of volume in end.
For example, as shown in Fig. 2 the touch-screen 21 of terminal 20 is provided with the target area of first object region 211 and second
Domain 212, first object region 211 represent volume and add position, and the second target area 212 represents volume down position.If terminal 20
The resolution ratio of display screen is 1440*2560, and the top coordinate position in first object region 211 is (1439,220), and bottom is sat
Mark is set to (1439,370), then can be 1439 by x coordinate, and click type of the y-coordinate scope between 220 to 370
Touch control operation is all identified as increasing the volume adjustment signals of volume.Similarly, it is assumed that the top coordinate position of the second target area 212
For (1439,480), and bottom coordinate position is (1439,630), then can be 1439 by x coordinate, and y-coordinate scope is 480
The touch control operation of click type between to 630 is all identified as reducing the volume adjustment signals of volume.
Alternatively, the volume adjustment signals to the regulating degree of the terminal volume and the number of clicks of clicking operation into
Direct ratio.For example point touching screen is once, the volume of terminal can tune up a lattice;Three times, the volume of terminal will be adjusted point touching screen
Big three lattice.
The disclosure sets target area on terminal touch screen, in order to the volume of terminal be adjusted, it is necessary to logical
The position of touch of detection touching signals is crossed whether in the target area, and type of action corresponding to the touching signals is
No is to click on type, so, can exclude the situation of user misoperation, improve the degree of accuracy of volume adjusting, and to mesh
Mark region clicking operation is analogous to click entity volume key in correlation technique, i.e., instead of entity volume key by touch control operation,
Solves the problems, such as the obstruction that entity volume key turns into ultra-thin Terminal Design.
Fig. 3 is a kind of another flow chart of volume adjusting method according to an exemplary embodiment.As shown in figure 3,
Volume adjusting method is applied in the terminal with touch-screen, may comprise steps of.
In step S31, by first sensor obtain touching signals, detect the touching signals position of touch whether
In the target area of the touch-screen.
In step s 32, type of action signal corresponding to the touching signals is obtained by second sensor, described in detection
Whether type of action corresponding to touching signals is to click on type.
In step S33, record obtains the first moment of touching signals by the first sensor.
In step S34, the second moment that the second sensor obtains type of action signal is recorded.
In step s 35, when determining that the time difference at first moment and second moment is less than the first given threshold,
Determine type of action signal corresponding to the touching signals that the type of action signal that second sensor obtains obtains for first sensor.
In step S36, the position of touch of the touching signals is determined in the target area of the touch-screen, and it is described
When type of action corresponding to touching signals is the click type, it is volume adjustment signals to determine the touching signals.
In step S37, the volume of the terminal is adjusted according to the volume adjustment signals.
Because acquisition and the acquisition of type of action signal of touching signals are performed by two different sensors are corresponding,
In order to avoid two sensor reported events, (wherein first sensor reports the touching signals of acquisition, and second sensor, which reports, to be obtained
The type of action signal taken) the type of action signal that obtains of Time Inconsistency and second sensor obtains with first sensor
Touching signals the problem of not corresponding to, set up a very first time window, the width of the very first time window is first setting
Threshold value, first given threshold can be 10ms or 8ms, on the other hand, the disclosure is not especially limited.
When the first sensor obtains touching signals, it was recorded as the first moment;When the second sensor obtains
During type of action signal, it was recorded as the second moment;If the time difference at first moment and second moment is first
In time window (when i.e. less than first given threshold), it is determined that the type of action signal that second sensor obtains passes for first
Type of action signal corresponding to the touching signals that sensor obtains.Do not exist when the time difference at first moment and second moment
In very first time window (when i.e. more than the first given threshold), then invalid Regulate signal is may be considered, is the behavior of maloperation,
It may not operate.
The first moment of touching signals is obtained by the first sensor by recording, and the second sensor obtains
The second moment of type of action signal is taken, is less than the first given threshold when the time difference for detecting two moment, then can determine
Type of action signal corresponding to the touching signals that the type of action signal that second sensor obtains obtains for first sensor, enters one
Step improves the degree of accuracy of volume adjusting, avoids the volume that user have adjusted terminal because of maloperation.
Fig. 4 is a kind of another flow chart of volume adjusting method according to an exemplary embodiment.As shown in figure 4,
Volume adjusting method is applied in the terminal with touch-screen, may comprise steps of.
In step S41, by first sensor obtain touching signals, detect the touching signals position of touch whether
In the target area of the touch-screen.
In step S42, type of action signal corresponding to the touching signals is obtained by second sensor, described in detection
Whether type of action corresponding to touching signals is to click on type.
In step S43, record determines the position of touch of the touching signals in the target area of the touch-screen
3rd moment.
In step S44, when record determines the 4th that type of action corresponding to the touching signals is the click type
Carve.
In step S45, when determining that the time difference at the 3rd moment and the 4th moment is less than the second given threshold,
It is volume adjustment signals to determine the touching signals.
In step S46, the volume of the terminal is adjusted according to the volume adjustment signals.
Although position of touch whether type of action corresponding to detection in the target area and touching signals whether
To click on the detection of type completed in ccf layer, but the two detections are performed by two different CPU are corresponding,
In order to avoid two CPU reported events, (one of CPU reports position of touch in target area, and another CPU reports touch-control
Type of action corresponding to signal for click on type) Time Inconsistency the problem of, set up second time window, second time window
Width be second given threshold, second given threshold can be 20ms or 15ms, on the other hand, this public affairs
Open and be not especially limited.
When one of CPU detects that the position of touch is in the target area, it was recorded as the 3rd moment;When another
When one CPU detects four moment that type of action corresponding to the touching signals is the click type, the 4th is recorded as
Moment;If the time difference at the 3rd moment and the 4th moment is (i.e. less than the second setting threshold in the second time window
During value), then the touching signals are volume adjustment signals, and then the terminal is given great volume according to the volume adjustment signals
It is small to be adjusted.(set when the time difference at the 3rd moment and the 4th moment not in the second time window more than second
When determining threshold value), then invalid Regulate signal is may be considered, is the behavior of maloperation, may not operate.
Threeth moment of the position of touch of touching signals in the target area of touch-screen, and touch-control are determined by recording
Type of action corresponding to signal is clicks on the 4th moment of type, when detecting that the time difference is less than the second given threshold, root
The volume of terminal is adjusted according to volume adjustment signals, the degree of accuracy of volume adjusting is further increased, avoids use
Family have adjusted the volume of terminal because of maloperation.
Due to the target area of user's point touching screen and the target area of user misoperation contact touch-screen, produce terminal
Raw acceleration has a significant difference, for example the target area of touch-screen is slipped into when sliding on the touchscreen, produces the terminal
Raw acceleration is substantially less than acceleration caused by point touching screen, therefore, can be by the acceleration of detection terminal come really
Recognize whether the touch control operation is the clicking operation.
Alternatively, the terminal is provided with acceleration transducer, described to obtain the touching signals pair by second sensor
The type of action signal answered, including:Acceleration signal corresponding to the touching signals is obtained by acceleration transducer;It is described true
Type of action corresponding to the fixed touching signals is click type, including:Determine that acceleration corresponding to the acceleration signal is special
When sign acceleration signature corresponding with click action matches, type of action corresponding to the touching signals is determined to click on type.
It should be noted that because type of action corresponding to acceleration signal is needed according to the wave character of signal come really
Determine, therefore the 4th moment in Fig. 4 steps S44 may be later than the 3rd moment in step S43.
Wherein, it is described to determine acceleration signature acceleration signature corresponding with click action corresponding to the acceleration signal
Matching, including:Determine that the wave character of the acceleration signal meets preparatory condition, the wave character comprises at least crest
Value, valley value, starting point change to both in the transformation period and crest to the time of trough of crest value.The default bar
Part can be crest value, valley value, starting point change to crest value transformation period and crest into the time of trough at least
Both in corresponding values, such as, the crest value of the acceleration signal is more than the first preset value, the acceleration
The valley value of signal is more than the second preset value, and the starting point of the acceleration signal changes to the transformation period of crest value less than the 3rd
Preset value, the time of crest to the trough of the acceleration signal are less than the 4th preset value.
The acceleration transducer can detect the acceleration signal of three different directions of x-axis, y-axis and z-axis, the disclosure
A direction of the terminal in three different directions of x-axis, y-axis and z-axis can be detected by the acceleration transducer
The acceleration signature whether corresponding with click action of acceleration signature corresponding to acceleration signal matching, when passing through the acceleration
Sensor detects the terminal, and acceleration signature corresponding to the acceleration signal in a direction is corresponding with click action wherein
Acceleration signature matching when, type of action corresponding to the touching signals for click on type.
Alternatively, when detecting that acceleration signal of the terminal in x-axis direction is corresponding by the acceleration transducer
The matching of acceleration signature corresponding with click action acceleration signature when, type of action corresponding to the touching signals is clicks on
Type.It refer to Fig. 5 and Fig. 6, the acceleration transducer that Fig. 5 is terminal according to an exemplary embodiment when static is defeated
The x-axis datagram gone out, Fig. 6 are that acceleration transducer of the terminal when being clicked according to an exemplary embodiment exports
X-axis datagram.In fig. 5 and fig., abscissa is the time, unit ms;Ordinate is the displacement in x-axis direction, and unit is mm.
As shown in figure 5, when terminal remains stationary, the x-axis data of acceleration transducer are essentially 0.Fig. 6 is user's double-click
During touch-screen, the x-axis data of acceleration transducer output.As shown in Figure 6, it can be seen that one click can correspond to one it is regular
Waveform, the crest of two waveforms in Fig. 6 is near 2mm, and trough is near -3mm.Clicking on terminal makes caused by terminal
There is larger difference when acceleration signal and the static terminal, therefore, the terminal can be detected by acceleration transducer
Acceleration signal corresponding to the matching of acceleration signature acceleration signature whether corresponding with click action, to confirm the touch-control
Type of action corresponding to signal is click type.
For example whether 1.5mm, the acceleration can be more than by the crest value for the acceleration signal for detecting x-axis direction
Whether the valley value of signal changes to transformation period (the i.e. x-axis to ripple of crest value more than 2mm, the starting point of the acceleration signal
The time at peak) whether time of crest to trough for whether being less than 5ms and the acceleration signal be less than in 3ms at least
Both come confirm type of action corresponding to the touching signals for click on type.Assuming that the crest of the acceleration signal in x-axis direction
The transformation period (i.e. the time of x-axis to crest) that value changes to crest value more than 1.5mm, valley value more than 2mm, starting point is less than
The time of 5ms and crest to trough is less than 3ms, then can confirm that type of action corresponding to the touching signals to click on class
Type.
It is special by the acceleration whether corresponding with click action of acceleration signature corresponding to the acceleration signal of detection terminal
Sign matching, and then confirm whether type of action corresponding to the touching signals is to click on type, can be by the feelings of user misoperation
Condition excludes, and improves the degree of accuracy of volume adjusting;When position of touch in target area and terminal acceleration signal it is corresponding
The matching of acceleration signature corresponding with click action acceleration signature when, then terminal is given great volume according to volume adjustment signals
It is small to be adjusted, and then substitute volume adjusting of the entity volume key to terminal.
Fig. 7 is a kind of block diagram of volume adjustment device according to an exemplary embodiment.Reference picture 7, the volume
Adjusting means 700 is applied to the terminal with touch-screen, and the volume adjustment device 700 includes first detection module 710, and second
Detection module 720, the first determining module 730 and adjustment module 740.
The first detection module 710 is configured to obtain touching signals by first sensor, detects the touching signals
Position of touch whether in the target area of the touch-screen.
Second detection module 720 is configured as obtaining by second sensor acts class corresponding to the touching signals
Type signal, detect whether type of action corresponding to the touching signals is to click on type.
First determining module 730 is configured to determine that mesh of the position of touch in the touch-screen of the touching signals
Mark region in, and type of action corresponding to the touching signals for it is described click type when, it is volume to determine the touching signals
Regulate signal.
Adjustment module 740 is configured as that the volume of the terminal is adjusted according to the volume adjustment signals.
Alternatively, as shown in figure 8, the volume adjustment device 700 can also include:
First logging modle 750, it is configured as the first moment that record obtains touching signals by the first sensor;
Second logging modle 760, it is configured as recording the second moment that the second sensor obtains type of action signal;
Second determining module 770, it is configured to determine that the time difference at first moment and second moment is less than the
During one given threshold, determine corresponding to the touching signals that the type of action signal that second sensor obtains obtains for first sensor
Type of action signal.
Alternatively, as shown in figure 9, first determining module 730 can include:
First record sub module 731, it is configured as record and determines the position of touch of the touching signals in the touch-screen
Target area in the 3rd moment;
Second record sub module 732, it is configured as record and determines that type of action corresponding to the touching signals is the point
Hit the 4th moment of type;
Determination sub-module 733, it is configured to determine that the time difference at the 3rd moment and the 4th moment is less than second
During given threshold, it is volume adjustment signals to determine the touching signals.
Alternatively, second detection module 720 is configured as obtaining the touching signals pair by acceleration transducer
The acceleration signal answered;First determining module 730 is configured to determine that acceleration signature corresponding to the acceleration signal
During acceleration signature matching corresponding with click action, type of action corresponding to the touching signals is determined to click on type.
Alternatively, it is pre- to be configured to determine that the wave character of the acceleration signal meets for first determining module 730
If condition, the wave character comprises at least the transformation period and crest that crest value, valley value, starting point change to crest value
Both into the time of trough.
Alternatively, as shown in Figure 10, the target area includes first object region and the second target area, the regulation
Module 740 includes:
First regulation submodule 741, when being configured as the position of touch in the first object region, increases institute
State terminal volume;
Second regulation submodule 742, when being configured as the position of touch in second target area, reduces institute
State terminal volume.
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.
The disclosure also provides a kind of computer-readable recording medium, is stored thereon with computer program instructions, and the program refers to
The step of volume adjusting method that the disclosure provides, is realized in order when being executed by processor.
Figure 11 is a kind of block diagram for volume adjustment device 800 according to an exemplary embodiment.For example, device
800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Reference picture 11, device 800 can include following one or more assemblies:Processing component 802, memory 804, electric power
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Processing component 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned volume adjusting method.In addition, processing component 802 can include one or more
Individual module, the interaction being easy between processing component 802 and other assemblies.For example, processing component 802 can include multimedia mould
Block, to facilitate the interaction between multimedia groupware 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application program or method for being operated on device 800, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 804 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.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 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 808 includes a front camera and/or rear camera.When device 800 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 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 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 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 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 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of device 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 814 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 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 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 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 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 800 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, for performing above-mentioned volume adjusting method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed by the processor 820 of device 800 to complete above-mentioned volume adjusting side
Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic
Band, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and putting into practice the disclosure
Case.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or adaptability
Change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure or usual skill
Art means.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following claim
Point out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is 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 disclosure is only limited by appended claim.
Claims (14)
- A kind of 1. volume adjusting method, applied to the terminal with touch-screen, it is characterised in that the volume adjusting method bag Include:By first sensor obtain touching signals, detect the touching signals position of touch whether the touch-screen mesh Mark in region;Type of action signal corresponding to the touching signals is obtained by second sensor, detects and is moved corresponding to the touching signals Make whether type is to click on type;The position of touch of the touching signals is determined in the target area of the touch-screen, and is moved corresponding to the touching signals Make type for it is described click type when, it is volume adjustment signals to determine the touching signals;The volume of the terminal is adjusted according to the volume adjustment signals.
- 2. according to the method for claim 1, it is characterised in that it is described determine the touching signals for volume adjustment signals it Before, in addition to:Record obtains the first moment of touching signals by the first sensor;Record the second moment that the second sensor obtains type of action signal;When determining that the time difference at first moment and second moment is less than the first given threshold, determine that second sensor obtains The type of action signal taken is type of action signal corresponding to the touching signals of first sensor acquisition.
- 3. according to the method for claim 1, it is characterised in that it is described to determine that the touching signals are volume adjustment signals, Including:Record determines threeth moment of the position of touch of the touching signals in the target area of the touch-screen;Record determines fourth moment of the type of action corresponding to the touching signals for the click type;When determining that the time difference at the 3rd moment and the 4th moment is less than the second given threshold, the touching signals are determined For volume adjustment signals.
- 4. according to the method for claim 1, it is characterised in that described that the touching signals pair are obtained by second sensor The type of action signal answered, including:Acceleration signal corresponding to the touching signals is obtained by acceleration transducer;It is described to determine type of action corresponding to the touching signals to click on type, including:Determine that the acceleration signal is corresponding The matching of acceleration signature corresponding with click action acceleration signature when, determine that type of action corresponding to the touching signals is Click on type.
- 5. according to the method for claim 4, it is characterised in that described to determine that acceleration is special corresponding to the acceleration signal Sign acceleration signature matching corresponding with click action, including:Determine that the wave character of the acceleration signal meets preparatory condition, the wave character comprises at least crest value, trough Value, starting point change to both in the transformation period and crest to the time of trough of crest value.
- 6. according to any described method in claim 1-5, it is characterised in that the target area includes first object region With the second target area, the volume of the terminal is adjusted according to the volume adjustment signals including:When the position of touch is in the first object region, increase the terminal volume;When the position of touch is in second target area, the terminal volume is reduced.
- A kind of 7. volume adjustment device, applied to the terminal with touch-screen, it is characterised in that the volume adjustment device bag Include:First detection module, it is configured as obtaining touching signals by first sensor, detects the touch-control position of the touching signals Put whether in the target area of the touch-screen;Second detection module, it is configured as obtaining type of action signal corresponding to the touching signals by second sensor, examines Survey whether type of action corresponding to the touching signals is to click on type;First determining module, the position of touch of the touching signals is configured to determine that in the target area of the touch-screen, And type of action corresponding to the touching signals for it is described click type when, it is volume adjustment signals to determine the touching signals;Adjustment module, it is configured as that the volume of the terminal is adjusted according to the volume adjustment signals.
- 8. device according to claim 7, it is characterised in that also include:First logging modle, it is configured as the first moment that record obtains touching signals by the first sensor;Second logging modle, it is configured as recording the second moment that the second sensor obtains type of action signal;Second determining module, it is configured to determine that the time difference at first moment and second moment is less than the first setting threshold During value, type of action corresponding to the touching signals that the type of action signal that second sensor obtains obtains for first sensor is determined Signal.
- 9. device according to claim 7, it is characterised in that first determining module includes:First record sub module, it is configured as record and determines the position of touch of the touching signals in the target area of the touch-screen The 3rd moment in domain;Second record sub module, it is configured as record and determines type of action corresponding to the touching signals for the click type 4th moment;Determination sub-module, it is configured to determine that the 3rd moment and the time difference at the 4th moment are less than the second given threshold When, it is volume adjustment signals to determine the touching signals.
- 10. device according to claim 7, it is characterised in that second detection module is configured as passing through acceleration Sensor obtains acceleration signal corresponding to the touching signals;First determining module is configured to determine that the acceleration When the acceleration signature corresponding with click action of acceleration signature corresponding to signal matches, determine to move corresponding to the touching signals Make type to click on type.
- 11. device according to claim 10, it is characterised in that first determining module is configured to determine that described add The wave character of rate signal meets preparatory condition, and the wave character comprises at least crest value, valley value, starting point and changes to ripple Both in the transformation period and crest of peak value to the time of trough.
- 12. according to any described device in claim 7-11, it is characterised in that the target area includes first object area Domain and the second target area;The adjustment module includes:First regulation submodule, when being configured as the position of touch in the first object region, increases the terminal Volume;Second regulation submodule, when being configured as the position of touch in second target area, reduces the terminal Volume.
- A kind of 13. volume adjustment device, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Touch-screen;Wherein, the processor is configured as:By first sensor obtain touching signals, detect the touching signals position of touch whether the touch-screen mesh Mark in region;Type of action signal corresponding to the touching signals is obtained by second sensor, detects and is moved corresponding to the touching signals Make whether type is to click on type;The position of touch of the touching signals is determined in the target area of the touch-screen, and is moved corresponding to the touching signals Make type for it is described click type when, it is volume adjustment signals to determine the touching signals;The volume of the terminal is adjusted according to the volume adjustment signals.
- 14. a kind of computer-readable recording medium, is stored thereon with computer program instructions, it is characterised in that the programmed instruction The step of volume adjusting method according to any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710592646.7A CN107402711B (en) | 2017-07-19 | 2017-07-19 | Volume adjusting method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710592646.7A CN107402711B (en) | 2017-07-19 | 2017-07-19 | Volume adjusting method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107402711A true CN107402711A (en) | 2017-11-28 |
CN107402711B CN107402711B (en) | 2020-03-03 |
Family
ID=60401004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710592646.7A Active CN107402711B (en) | 2017-07-19 | 2017-07-19 | Volume adjusting method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107402711B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107958273A (en) * | 2017-12-15 | 2018-04-24 | 北京小米移动软件有限公司 | volume adjusting method, device and storage medium |
CN108683812A (en) * | 2018-05-14 | 2018-10-19 | Oppo(重庆)智能科技有限公司 | volume adjusting method, device and mobile terminal |
CN108762715A (en) * | 2018-06-21 | 2018-11-06 | Oppo广东移动通信有限公司 | Electronic equipment audio control method, device and equipment |
CN111459447A (en) * | 2020-03-31 | 2020-07-28 | 维沃移动通信有限公司 | Volume adjustment display method and electronic equipment |
CN113126835A (en) * | 2021-04-30 | 2021-07-16 | 北京钛方科技有限责任公司 | Detection method, touch device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281376A (en) * | 2013-07-04 | 2015-01-14 | 福建省辉锐材料科技有限公司 | Control method and system of mobile terminal |
CN105739895A (en) * | 2015-03-26 | 2016-07-06 | 努比亚技术有限公司 | Mobile terminal and touch operation method therefor |
CN105843474A (en) * | 2016-03-23 | 2016-08-10 | 努比亚技术有限公司 | Volume adjustment system and method |
CN105867766A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Sound volume adjustment method and terminal |
CN106775329A (en) * | 2016-12-30 | 2017-05-31 | 北京小米移动软件有限公司 | Trigger method and device, the electronic equipment of click event |
-
2017
- 2017-07-19 CN CN201710592646.7A patent/CN107402711B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281376A (en) * | 2013-07-04 | 2015-01-14 | 福建省辉锐材料科技有限公司 | Control method and system of mobile terminal |
CN105739895A (en) * | 2015-03-26 | 2016-07-06 | 努比亚技术有限公司 | Mobile terminal and touch operation method therefor |
CN105843474A (en) * | 2016-03-23 | 2016-08-10 | 努比亚技术有限公司 | Volume adjustment system and method |
CN105867766A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Sound volume adjustment method and terminal |
CN106775329A (en) * | 2016-12-30 | 2017-05-31 | 北京小米移动软件有限公司 | Trigger method and device, the electronic equipment of click event |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107958273A (en) * | 2017-12-15 | 2018-04-24 | 北京小米移动软件有限公司 | volume adjusting method, device and storage medium |
CN107958273B (en) * | 2017-12-15 | 2021-08-03 | 北京小米移动软件有限公司 | Volume adjusting method and device and storage medium |
CN108683812A (en) * | 2018-05-14 | 2018-10-19 | Oppo(重庆)智能科技有限公司 | volume adjusting method, device and mobile terminal |
CN108762715A (en) * | 2018-06-21 | 2018-11-06 | Oppo广东移动通信有限公司 | Electronic equipment audio control method, device and equipment |
CN108762715B (en) * | 2018-06-21 | 2021-04-02 | Oppo广东移动通信有限公司 | Electronic equipment sound control method, device and equipment |
CN111459447A (en) * | 2020-03-31 | 2020-07-28 | 维沃移动通信有限公司 | Volume adjustment display method and electronic equipment |
CN113126835A (en) * | 2021-04-30 | 2021-07-16 | 北京钛方科技有限责任公司 | Detection method, touch device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107402711B (en) | 2020-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105657173B (en) | Volume adjusting method, device and mobile terminal | |
CN107402711A (en) | Volume adjusting method, device and computer-readable recording medium | |
EP3232299A2 (en) | Physical key component, terminal, and touch response method and device | |
CN103885632B (en) | Input method and device | |
CN104238912B (en) | application control method and device | |
CN107025419A (en) | Fingerprint template input method and device | |
CN106815546A (en) | fingerprint identification method and device | |
CN103995666A (en) | Method and device for setting work mode | |
CN107102772A (en) | Touch control method and device | |
CN106802808A (en) | Suspension button control method and device | |
CN106873834A (en) | Method and device and mobile terminal that key range is triggered | |
CN107992257A (en) | Split screen method and device | |
CN106909256A (en) | Screen control method and device | |
CN106843592A (en) | Touch control method and device and mobile terminal | |
CN107729880A (en) | Method for detecting human face and device | |
CN106814958A (en) | The touch control method and device of function key | |
CN106775210A (en) | The method and apparatus that wallpaper is changed | |
CN106095313A (en) | The method and device that touch panel device event triggers | |
CN107025041A (en) | Fingerprint input method and terminal | |
CN106814901A (en) | Touching signals response method and device | |
CN106650569B (en) | Fingerprint input method and device | |
CN106126050B (en) | Menu display method and device | |
CN104951228B (en) | Laying method, device and the terminal device of icon | |
CN106980409A (en) | Input control method and device | |
CN106843588A (en) | Screen control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |