Method of controlling operation thereof, equipment and the intelligent terminal of TrackpadTechnical field
The invention relates to intelligent identification technology fields, specifically, being related to a kind of operation controlling party of TrackpadMethod, equipment and intelligent terminal.
Background technique
Trackpad is a kind of electronic device that button operation acquisition is realized using pressing touch manner.Trackpad can be appliedIn the small intelligents terminals such as wireless headset, intelligent wearable device, to acquire the touch control operation of user, corresponding touch-control control is realizedSystem.Touch control operation may include different action types, for example, may include the action types such as short-press, long-pressing, double-click, sliding.Multiple touch sensings can be configured in Trackpad, to realize the acquisition of different touch control operations.
In the prior art, in order to obtain the touch control operation that user executes on the touch pad, usually Trackpad configures touch-controlManaging chip.When user executes touch control operation on the touch pad, touch-control managing chip can acquire the sense of multiple touch sensingsInduction signal, and the corresponding touch control operation of the inductive signal is identified using the touch control operation recognizer of configuration, it obtains user and executesAction type when touch control operation, and the action type information is sent to the main control MCU of intelligent terminal(Microcontroller Unit, micro-control unit) is based on the action type by main control MCU, realizes corresponding control behaviourMake.
As seen from the above description, as Trackpad wants normal use, need to provide touch-control managing chip for Trackpad, identification is usedThe touch control operation type at family.The main control MCU of intelligent terminal is only to obtain the touch control operation type of touch-control managing chip identificationRecognition result.Increase touch-control managing chip in intelligent terminal, not only increases manufacturing cost, while not making full use of master controlThe function of MCU, also creates the wasting of resources.
Summary of the invention
In view of this, this application provides a kind of method of controlling operation thereof of Trackpad, equipment and intelligent terminals, for solvingIt certainly needs to configure corresponding touch-control managing chip for Trackpad in the prior art, not only increase manufacturing cost, but also filled due to uselessDivide the problem of resulting in waste of resources using the function of master control MUC.
In order to solve the above-mentioned technical problem, this application provides a kind of method of controlling operation thereof of Trackpad, comprising:
The touch control operation for detecting Trackpad, obtains at least one position of touch;
Using each position of touch and each described position of touch corresponding touch-control time, determine that user executes instituteState touch trajectory when touch control operation;
Determine the corresponding action type of the touch trajectory;
Based on the action type, corresponding control operation is executed.
Optionally, described to utilize each position of touch and each described position of touch corresponding touch-control time, reallyDetermining touch trajectory when user executes the touch control operation includes:
It is horizontal axis and using position of touch as the longitudinal axis using the touch-control time, establishes statistics coordinate system;
According to each position of touch and its corresponding touch-control time, determine each position of touch in the statistics coordinate systemMiddle location point;
At least one location point in the statistics coordinate system is carried out curve fitting using curve fitting algorithm, is intendedClose curve;
Determine that the matched curve is touch trajectory.
Optionally, described that at least one location point in the statistics coordinate system is subjected to curve using curve fitting algorithmFitting, obtaining matched curve includes:
Based on Slope Parameters and intercept parameter, fit equation is constructed;
Determine the location mean value and the time average of at least one touch-control time of at least one position of touch;
Position difference and each position based on the corresponding position of touch of each location point and the location mean valueThe time difference of point corresponding touch-control time and the time average, determine the Slope Parameters value of the fit equation;
Using the position of touch of any one location point and touch-control time as known results, together with the Slope Parameters valueThe fit equation is inputted, it is reverse to calculate the intercept parameter value for obtaining the fit equation;
Determine that fit equation corresponding with the Slope Parameters value and intercept parameter value is matched curve.
Optionally, the corresponding action type of the determination touch trajectory includes:
At least one touch-control time is ranked up, earliest touch-control time and the latest touch-control time are obtained;
Determine in the touch trajectory first position corresponding with earliest touch-control time and with the touch-control the latestThe time corresponding second position;
If the position difference between the first position and the second position is greater than default first position difference, institute is determinedStating action type is slide;
If the position difference between the first position and the second position is less than default second position difference, institute is determinedStating action type is clicking operation.
Optionally, if the position difference between the first position and the second position is greater than default first positionDifference, determine the action type be slide after, the method also includes:
If the Slope Parameters value is positive value, determine that the glide direction of the slide is first direction;
If the Slope Parameters value is negative value, determine that the glide direction of the slide is second direction.
Optionally, the corresponding action type of the determination touch trajectory includes:
If the absolute value of the Slope Parameters value is greater than slope threshold value, determine that the action type is slide;
If the absolute value of the Slope Parameters value is less than slope threshold value, determine that the action type is clicking operation.
Optionally, the touch control operation of the detection Trackpad, obtaining at least one position of touch includes:
The touch control operation of the Trackpad is detected by multiple sensors of the Trackpad, and to the multiple sensorSignal sampling at least once is carried out respectively;
For multiple detection signals that signal sampling each time obtains, reference position based on the multiple sensor andThe signal strength of the multiple detection signal, calculates the corresponding detection position of the multiple sensor;
Using multiple detection positions calculate obtain position of touch, with obtain at least once signal sampling it is corresponding at least onePosition of touch.
Optionally, the multiple detection position includes: base position and impact position;
The multiple detection signals obtained for signal sampling each time, the reference position based on the multiple sensorAnd the signal strength of the multiple detection signal, calculating the corresponding detection position of the multiple sensor includes:
It determines in the multiple detection signal and most detects signal by force;
Determine that the reference position for most detecting the corresponding first sensor of signal by force is the base position;
The ratio and sensor of the maximum inducing strength of signal strength and sensor based on the multiple detection signalAverage touch-control range, obtain impact position of each corresponding sensor of detection signal;
It is described to include: using multiple detection positions calculating acquisition position of touch
Positional relationship based on the multiple sensor Yu the first sensor, determines in the multiple impact positionActive influence position, negatively influencing position and corresponding zero impact position of the first sensor;
After calculating the sum of the base position and the active influence position, the difference of calculating and the negatively influencing position is obtainedPosition of touch.
The present invention also provides a kind of operational control units of Trackpad, comprising: processor, what is be connected to the processor depositsReservoir;
The memory is for storing one or more computer instruction;Wherein, one or more computer instructionIt calls and executes for the processor;
The processor is to execute method of controlling operation thereof described in any of the above embodiments.
The present invention also provides a kind of intelligent terminals, comprising: Trackpad, processing component are deposited with what the processing component was connectStore up component;
The storage assembly is for storing one or more computer instruction;Wherein, one or more computer refers toIt enables calling for the processing component and execute;
The Trackpad is used to incude the operation control of user;
The processing component is for adjusting to execute method of controlling operation thereof described in any of the above embodiments.
At least one in the embodiment of the present invention, when the available user of the main control MCU of intelligent terminal executes touch control operationPosition of touch, and each position of touch and its corresponding touch-control time are utilized, determine touch-control when user executes touch control operationTrack, and it is based on the corresponding action type of the touch trajectory, execute control operation corresponding with the action type.Pass through intelligenceEnergy terminal draws touch trajectory when user executes touch control operation, can obtain the final action type of user, to realize controlOperation, by touch-control managing chip identify action type by way of switch to by intelligent terminal main control MCU identify, avoid usingTouch-control management piece identification can reduce cost, improve the utilization rate of main control MCU.It is operated simultaneously as being determined using touch trajectoryThe mode of type can that accurately and quickly identify that user executes the corresponding action type of touch control operation, improve recognition speed withAnd accuracy of identification.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this ShenIllustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow chart of one embodiment of the method for controlling operation thereof of Trackpad provided in an embodiment of the present invention;
Fig. 2 is that a kind of structure of one embodiment of multiple sensor shapes of Trackpad provided in an embodiment of the present invention is shownIt is intended to;
Fig. 3 is a kind of structure of another embodiment of multiple sensor shapes of Trackpad provided in an embodiment of the present inventionSchematic diagram;
Fig. 4 is a kind of process of another embodiment of the method for controlling operation thereof of Trackpad provided in an embodiment of the present inventionFigure;
Fig. 5 is a kind of structural representation of the position of touch provided in an embodiment of the present invention in statistics one matched curve of coordinate systemFigure;
Fig. 6 is a kind of process of another embodiment of the method for controlling operation thereof of Trackpad provided in an embodiment of the present inventionFigure;
Fig. 7 is a kind of flow chart of one embodiment of the operational control unit of Trackpad provided in an embodiment of the present invention;
Fig. 8 is a kind of flow chart of one embodiment of intelligent terminal provided in an embodiment of the present invention.
Specific embodiment
Presently filed embodiment is described in detail below in conjunction with accompanying drawings and embodiments, how the application is applied wherebyTechnological means solves technical problem and reaches the realization process of technical effect to fully understand and implement.
The embodiment of the present invention is mainly used in the main control MCU of intelligent terminal, is directly examined using the main control MCU of intelligent terminalThe touch control operation of user is surveyed, and then executes corresponding target control operation, does not use the touching of touch-control managing chip identification userControl operation, can reduce the manufacturing cost of intelligent terminal, improve utilization rate of equipment and installations.
In the prior art, intelligent terminal, such as bluetooth headset, Intelligent bracelet, virtual reality glasses etc. can be applied to touchingPlate is controlled to realize corresponding operation control.Multiple touch sensings can be configured in Trackpad, by sensing to multiple touch-controlsDevice obtains inductive signal when user executes touch control operation, determines the touch control operation that user executes.The touching of multiple touch sensingsControl inductive signal acquisition and to contents such as the identifications of inductive signal of acquisition completed by touch-control managing chip.Touch-controlManaging chip can use the corresponding action type of touch control operation recognizer identification inductive signal of internal configuration, and then intelligenceTerminal can directly acquire the action type of touch-control managing chip identification, and execute corresponding control operation.However, it is desirable to for touchingControl plate provides additional touch-control managing chip, causes the manufacturing cost of intelligent terminal to increase, while the built-in master control of intelligent terminalMCU is not fully used, and causes the wasting of resources.In order to solve the above-mentioned technical problem, inventors herein propose the application'sTechnical solution.
In the embodiment of the present invention, intelligent terminal can detecte at least one corresponding touch-control position of touch control operation of TrackpadIt sets, and utilizes each position of touch and its corresponding touch-control time, determine touch-control when user executes the touch control operationTrack.It, can be with the specific touch-control behavior of identity user, therefore, according to touch trajectory determination and user due to the touch trajectoryThe corresponding action type of touch control operation, and then execute corresponding control operation.By the touch-control behavior of intelligent terminal identification user, benefitWith the mode of the track characteristic of touch trajectory, judgment mode is more succinct and accurate, can quickly and accurately operate control.Simultaneously as not using touch-control managing chip, the cost of intelligent terminal is reduced, improves the utilization rate of intelligent terminal.
The embodiment of the present invention is described in detail below in conjunction with attached drawing.
As shown in Figure 1, being a kind of one embodiment of the method for controlling operation thereof of Trackpad provided in an embodiment of the present inventionFlow chart, the method may include following steps:
101: detecting the touch control operation of Trackpad, obtain at least one position of touch.
102: utilizing each position of touch and each described position of touch corresponding touch-control time, determine that user holdsTouch trajectory when the row touch control operation.
103: determining the corresponding action type of the touch trajectory.
104: being based on the action type, execute corresponding control operation.
The embodiment of the present invention is mainly used in the main control MCU of intelligent terminal, and the intelligent terminal may include Intellgent EarThe electronic equipments such as machine, Intelligent bracelet, smartwatch.Usual Trackpad may be mounted on intelligent terminal, and user passes through in touch-controlExecuted on plate sliding, click, etc. types operation, to realize corresponding function control.Main control MCU and the Trackpad, which are established, to be connectedIt connects, can detecte the touch control operation of Trackpad, and obtain at least one position of touch.
In general, multiple mechanical keys can be arranged on intelligent terminal in order to realize different functions, to realize respectively notSame function.But the small volume of the intelligent terminals such as earphone, bracelet, different types of touch-control is realized using a TrackpadThe control of operation, it is possible to reduce the area of touch controlled key improves integrated rate.It may include multiple touch sensings in Trackpad,Each touch sensing can be made of induction metal component, and user is in touch-control Trackpad, available touch-control sensingThe inductive signal of device, and then realize different touch control operations.Wherein, the behaviour for the touch control operation that may be implemented by a TrackpadAs type may include: click, double-click, left cunning, right cunning, long-pressing etc..At least one touching obtained for touch control operation each timePosition is controlled, obtains corresponding touch trajectory, and analyze touch trajectory, obtains the corresponding action type of touch control operation.
As a kind of possible implementation, Trackpad can be made of multiple sensors, wherein the multiple sensorIt is identical, and it is arranged in parallel on the touch pad.Trackpad in the application is single by multiple sensors and arranged in parallel constitutes.ForTouch control operation each time can obtain at least one position of touch, and then determine corresponding operation type.
Optionally, the touch control operation for detecting Trackpad, obtaining at least one position of touch may include detection to TrackpadMultiple sensors touch control operation, obtain at least one position of touch.The touch control operation of sensor can be referred to sensorCarry out the operation of the types such as key, sliding.When executing touch control operation on the touch pad, the sensor on Trackpad can incudeTo inductive signal, intelligent terminal can sample the inductive signal of sensor, only obtain sample each time it is correspondingPosition of touch obtains multiple position of touch.
As a kind of possible implementation, the sensor of Trackpad can be capacitance sensor, and user is in the touch-controlWhen executing touch control operation on plate, capacitance sensor can form corresponding electric signal, electric signal is in reality under user's touch actionCan be in the application of border voltage signal perhaps current signal in general, electric signal and user's touch control operation dynamics or area atDirect ratio.When the contact area of user and Trackpad is bigger, dynamics is bigger, and the electric signal of touch sensing induction is bigger, works as userSmaller with the contact area of Trackpad, dynamics is smaller, and the electric signal of touch sensing induction is smaller.Multiple biographies of the TrackpadThe practical inductive signal of sensor is electric signal, if intelligent terminal will the inductive signal to multiple sensors carry out quantization judgement,It needs the inductive signal of the multiple sensor carrying out ADC sampling.The main control MCU of intelligent terminal can use ADC sampling and calculateMethod obtains the corresponding detection signal of inductive signal of multiple sensors of Trackpad.
Optionally, the touch control operation of the detection Trackpad, obtaining at least one position of touch may include by touchingControl plate multiple sensors execute at least once signal sampling with detect be directed to the Trackpad touch control operation;For each timeThe multiple detection signals for multiple sensors that signal sampling obtains, determine a position of touch, obtain at least one position of touch.
Optionally, the touch control operation for detecting Trackpad, obtaining at least one position of touch may include: that acquisition is the multipleThe corresponding detection signal of sensor detects the multiple of Trackpad if multiple detection signals are all larger than preset signals threshold valueThe touch control operation of sensor obtains at least one position of touch.
As a kind of possible implementation, the method also includes: detection Trackpad does not execute any control not by touch-controlSystem operation.Detection Trackpad not may include detecting multiple sensors of Trackpad not by touch-control by touch-control.
In practical applications, multiple touch sensings in Trackpad can be different shape, the touch-control sensing in Fig. 2The shape of device 201 is V-type, and the shape of touch sensing 301 shown in Fig. 3 is circle, can accurately acquire each sensingThe signal of device.Multiple touch sensings can establish signal transmission pathway with the main control MCU of intelligent terminal respectively, and main control MCU canBe acquired to the inductive signal of multiple touch sensings by each transmission channel with multiple touch sensings, will adoptThe inductive signal of collection is converted to detection signal, to facilitate calculating or processing.
It also may include non-tactile behavior that user, which may include touch behavior to the touch control operation of Trackpad, for example, to touchingWhen controlling plate and carrying out double click operation, click twice between there is non-tactile behavior, and in slide, then always exist touchBehavior.The position of touch of the application, practical is touch location of the user when Trackpad touches.In the embodiment of the present application because withAt least one position of touch of family touch control operation and determination, practical is that multiple sensors of user and Trackpad actually occur touchWhen in action process, corresponding at least one touch location got.
During the touch control operation of Trackpad, at least one position of touch can be obtained, wherein one touch-control of every acquisitionPosition can recorde the primary touch-control time.Position of touch and touch-control time one-to-one relationship.
When each position of touch and its corresponding touch-control that touch trajectory generates when being according to user's touch-control TrackpadBetween and generate.It optionally, can be to sampling each time when intelligent terminal samples multiple touch sensings of TrackpadSampling time recorded, the sampling time can be for the touch-control time.
Touch trajectory can represent the touch-control behavior of user, can be determined by the track characteristic of touch trajectory correspondingAction type.The track characteristic of touch trajectory may include trajectory shape, track rule, trail change etc..Pass through touch trajectoryThe corresponding action type of track characteristic may include by the trajectory shape of touch trajectory, trail change size, track ruleDeng the action type for judging user.
Touch trajectory is the track that touch point when user executes touch control operation on the touch pad is formed, and can be used for identifyingThe touch-control behavior of user, and then by analysis touch trajectory, obtain the corresponding action type of touch control operation.
Each Trackpad can have corresponding touch-control range.That is, when user executes touch control operation on the touch pad,It touch-control no longer to get corresponding touch-control if exceeding the touch-control range of Trackpad within the scope of the touch-control of Trackpad and graspMake corresponding position of touch.When Trackpad is made of multiple sensors, each sensor can be corresponding with corresponding touch-controlRange.In practical applications, the touch-control range of Trackpad can be determined using length unit as benchmark unit.
In the embodiment of the present invention, it can be based on the corresponding action type of the touch trajectory, determination is corresponding with touch trajectoryAction type, and then execute corresponding target control operation.By the touch-control behavior of intelligent terminal identification user, touch-control rail is utilizedThe mode of the track characteristic of mark determines corresponding operation type, judgment mode compared in the way of touch-control recognizerIt is more succinct, corresponding control operation can be fast implemented.Meanwhile reducing the use of touch-control managing chip, it reduces costs,The utilization rate of intelligent terminal is improved simultaneously.
As shown in figure 4, being a kind of another embodiment of the method for controlling operation thereof of Trackpad provided in an embodiment of the present inventionFlow chart, this method and embodiment shown in FIG. 1 the difference is that, the step 102 can specifically include:
401: being horizontal axis and using position of touch as the longitudinal axis using the touch-control time, establish statistics coordinate system.
402: according to each position of touch and its corresponding touch-control time, determining that each position of touch is sat in the statisticsLocation point in mark system.
403: at least one location point in the statistics coordinate system being carried out curve fitting using curve fitting algorithm, is obtainedObtain matched curve.
404: determining that the matched curve is touch trajectory.
Touch-control time and position of touch are one-to-one relationships.It counts in coordinate system, using position of touch as the longitudinal axis, namelyUsing the touch-control range of Trackpad as the longitudinal axis, it can be used for identifying the size of position of touch.It counts in coordinate system, when with touch-controlBetween be horizontal axis, namely the increasing in generation time with the generation of touch control operation.Touch trajectory is plotted in statistics coordinate system, canTo indicate, with the development of time, for Trackpad touch control operation and the variation of position of touch that generates.Therefore, based on touchingThe variation of the position of touch occurred on control track with the touch-control time, can correspond to corresponding operation type.As shown in figure 5,Using position of touch as the longitudinal axis 501, the touch-control time is horizontal axis 502, after at least one location point 503 for including carries out curve fitting,The matched curve 504 of acquisition.
Optionally, the corresponding action type of the determining touch trajectory may include: in the touch trajectory with touchingControl time and the variation of position of touch occurred are analyzed, and the corresponding action type of touch trajectory is obtained.
It is described corresponding using each position of touch and each position of touch as a kind of possible implementationThe touch-control time, determine touch trajectory when user executes the touch control operation can also include: by each position of touch andPosition coordinates point of its corresponding touch-control time in statistics coordinate system, identifies and draws the line of any two position coordinates pointSection, to obtain touch trajectory.
Although obtaining touch trajectory by connection any two position coordinates point, it is true by drawing line segment modeFixed touch trajectory is not coherent enough, it has not been convenient to carry out quantum chemical method, cause the operation class for analyzing touch control operation by touch trajectoryThe efficiency of type is lower, error is higher.It is therefore possible to use curve fitting algorithm, obtains more smooth matched curve, makes it mostThe error of the action type of the touch control operation using touch trajectory identification is reduced in the track slided close to touch-control, meanwhile, Ke YitongAction type can be determined by crossing easy calculate, and improve the recognition speed of the action type of touch control operation.
Optionally, the curve fitting algorithm may include least square fitting algorithm, Bi_arc fitting algorithm, three times sampleCurve fitting algorithm etc., this is no longer going to repeat them.
In the embodiment of the present invention, coordinate system is counted by establishing, utilizes position of touch and the corresponding touch-control of position of touchTime draws location point of each position of touch in statistics coordinate system, passes through fitting of the location point in statistics coordinate systemCurve is determined as corresponding touch trajectory, can further realize accurate touch-control by the determination of touch trajectory and control, improveThe accuracy rate of touch-control.
As one embodiment, it is described using curve fitting algorithm by it is described statistics coordinate system at least one location pointIt carries out curve fitting, obtaining matched curve includes:
Based on Slope Parameters and intercept parameter, fit equation is constructed;
Determine the location mean value and the time average of at least one touch-control time of at least one position of touch;
Position difference and each position based on the corresponding position of touch of each location point and the location mean valueThe time difference of point corresponding touch-control time and the time average, determine the Slope Parameters value of the fit equation;
Using the position of touch of any one location point and touch-control time as known results, together with the Slope Parameters valueThe fit equation is inputted, it is reverse to calculate the intercept parameter value for obtaining the fit equation;
Determine that fit equation corresponding with the Slope Parameters value and intercept parameter value is matched curve.
It, can be primary using building binary in order to obtain touch trajectory with more succinct curve fitting algorithm matched curveAt least one location point is carried out straight line fitting, to reduce the computation complexity in fit procedure, by one-dimensional by the mode of equationThe calculation of computation complexity quickly accurately determines matched curve, obtains touch trajectory.
Slope Parameters can indicate that intercept parameter can be indicated with b with k, and fit equation can indicate are as follows: x=k*t+b;Wherein, t is the touch-control time, and x is position of touch.
The location mean value of at least one position of touch of determination can include determining that at least one position of touchPosition number, calculate at least one position of touch position and, calculate the position and the ratio with position number, asThe location mean value of at least one position of touch.It is assumed that at least one position of touch uses x1, x2, x3 respectively ... ... xnIndicate, n is position number, the position of at least one position of touch and are as follows: x1+x2+x3+.......+xn, then location mean valueIt can indicate are as follows:
The time average of at least one touch-control time of the determination can include determining that at least one the touch-control timeTime number, calculate at least one the touch-control time time and, calculate the time and the ratio with the time number,The time average of at least one the as described touch-control time.It is assumed that at least one touch-control time uses t1, t2 respectively,T3 ... ..tn indicates that n is time number, since touch-control time and position of touch correspond, because of this time number nIt is identical as position of touch number n, the time of at least one touch-control time and are as follows: t1+t2+t3+......+tn, then location mean valueIt can indicate are as follows:
The position difference based on the corresponding position of touch of each location point and the location mean value and eachThe time difference of location point corresponding touch-control time and the time average determine that the Slope Parameters value of the fit equation can be withInclude: the position difference for calculating each location point and location mean value, calculates each location point corresponding touch-control time and instituteState the time difference of time average;Calculate the position difference of any one location point and the product of time difference, and by all productsIt is added and obtains the first parameter;It calculates the mean-square value of the time difference of any one location point, and all mean-square values is added and obtain theTwo parameters;Calculate the ratio of first parameter Yu second parameter, the Slope Parameters value of the as described fit equation.
The Slope Parameters value can indicate are as follows:
After determining Slope Parameters value, it can use Slope Parameters value and calculate intercept parameter value.It is alternatively possible to by anyPosition of touch and touch-control time and Slope Parameters value substitute into the fit equation, due to only being deposited in fit equation at this timeIn one unknown parameter of intercept parameter value, intercept parameter value can be obtained by inversely calculating.For example, by (x1, t1) and k0Substitute into fit equation, x1=k0*t1+b, then b=x1-k0*t1.
In the embodiment of the present invention, by fit equation, at least one location point is carried out curve fitting, wherein pass through positionMean value and time average are set, determines the order relationship of different time mean value, obtains accurate matched curve, and then can obtainAccurately touch trajectory is obtained, and then accurate control result can be obtained.
As one embodiment, the corresponding action type of the determination touch trajectory includes:
At least one touch-control time is ranked up, earliest touch-control time and the latest touch-control time are obtained;
Determine in the touch trajectory first position corresponding with earliest touch-control time and with the touch-control the latestThe time corresponding second position;
If the position difference between the first position and the second position is greater than default first position difference, institute is determinedStating action type is slide;
If the position difference between the first position and the second position is less than default second position difference, institute is determinedStating action type is clicking operation.
Touch trajectory can be used for judging the touch control operation that user executes.The earliest touch-control time is that user starts to execute touchingWhen control operation, it is initially detected the touch-control touch-control behavior corresponding time of user's execution.The touch-control time is that user stops touching the latestIt controls between operation, the last one the touch-control behavior corresponding time detected.
Optionally, when action type is clicking operation, the position difference between first position and the second position is less than defaultSecond position difference.Clicking operation may determine that as single-click operation and double click operation.The action type is determined to click behaviourAfter work, earliest touch-control time and the latest time difference of touch-control time can be determined, preset if the time difference is greater thanTime difference judges the action type for single-click operation, if the time difference is less than preset time difference and judges the behaviourMaking type is double click operation.
In the embodiment of the present invention, pass through the first position and the second position on motion profile, it can be determined that touch control operationPosition difference the accurate behavior of touch-control is determined by the touch control operation of motion profile head and the tail diversity judgement user, and then can be withAcquisition is accurately controlled result.
As one embodiment, preset if the position difference between the first position and the second position is greater thanFirst position difference, determine the action type be slide after, the method also includes:
If the Slope Parameters value is positive value, determine that the glide direction of the slide is first direction;
The Slope Parameters value of becoming a shareholder is negative value, determines that the glide direction of the slide is second direction.
Optionally, glide direction can be determined according to the usage behavior of user.The first direction can be left direction,The second direction can be right direction.Certainly, the direction content of the first direction and second direction can be interchanged.
In the embodiment of the present invention, by the glide direction of the positive and negative slide that can determine user of Slope Parameters value,Then subsequent touch-control control can be realized based on glide direction, simultaneously as the positive and negative of slope can be directly oblique by judgementThe positive and negative of rate parameter value directly obtains, quick and accurate, is advantageously implemented accurate and accurate touch-control identification operation.
As one embodiment, the corresponding action type of the determination touch trajectory includes:
If the absolute value of the Slope Parameters value is greater than slope threshold value, determine that the action type is slide;
If the absolute value of the Slope Parameters value is less than slope threshold value, determine that the action type is clicking operation.
In the embodiment of the present invention, the action type of touch trajectory is judged by Slope Parameters value, and then can quickly judgeThe corresponding action type of touch trajectory.
As shown in fig. 6, being a kind of process of one embodiment of the control method of Trackpad provided in an embodiment of the present inventionFigure, embodiment and embodiment shown in FIG. 1 shown in this method the difference is that, the step 101 may include:
601: the touch control operation of Trackpad is detected by multiple sensors of the Trackpad, and to the multiple sensorSignal sampling at least once is carried out respectively.
602: the multiple detection signals obtained for signal sampling each time, the reference position based on the multiple sensorAnd the signal strength of the multiple detection signal, calculate the corresponding detection position of the multiple sensor.
603: it is calculated using multiple detection positions and obtains position of touch, it is corresponding at least to obtain signal sampling at least onceOne position of touch.
To multiple sensor samples of Trackpad, the touch control operation of detection Trackpad is realized.To the multiple sensor pointSignal sampling at least once is not carried out, and signal sampling can determine multiple detection signals each time.Passing through the TrackpadMultiple sensors detection Trackpad touch control operation before, the method also includes: judge whether Trackpad is performed touch-controlOperation, if so, detecting the touch control operation of Trackpad by multiple sensors of Trackpad.
As a kind of possible implementation, judge whether Trackpad is performed touch control operation specifically and can be judgement touch-controlWhether multiple sensors of plate are performed touch control operation.Multiple sensors of Trackpad are performed touch control operation specifically and can be pairMultiple sensors carry out sampling monitoring, for multiple monitoring signals that sampling monitoring each time obtains, if multiple monitoring signalsAny of monitoring signal be greater than preset signals threshold value, determine that Trackpad is performed touch control operation.If in multiple monitoring signalsAny one monitoring signal is respectively less than preset signals threshold value, determines that Trackpad is not performed touch control operation.Signal threshold value is according to touchingControl the induction sensitivity of multiple sensors of plate, induction range is previously set.
There are corresponding induction ranges for Trackpad, if using the marginal point of Trackpad as origin, the center touch-control of TrackpadLine is that reference axis establishes a touch-control coordinate system, is fastened in this touch-control coordinate, each sensor can be corresponding with accordinglyReference position.The center of each sensor is located in the center touch-control line of Trackpad, and the central point of each sensor is touchingPosition coordinates on control coordinate system are the reference position of each sensor.
As a kind of possible implementation, sensor is evenly distributed on Trackpad, the center of each sensorPoint is located at the center touch-control line of Trackpad, it is assumed that the quantity of sensor is M, the touch-control range namely center touch-control line of TrackpadLength be [0~100], for the touch-control range as unit of length, 100 be only a constant, does not represent the reality of TrackpadBorder touch-control range can be replaced by arbitrary constant, and the induction range of each sensor is 100/M, any one sensor iReference position can use formula:Wherein, i is the arrangement order of sensor on the touch pad,Xi is the reference position of sensor.
The reference position of multiple sensors is location information of the sensor relative to Trackpad.Multiple detection signals are primaryThe corresponding signal of each sensor that signal sampling obtains, for a signal sampling, multiple sensors can obtain multipleDetect signal.
Sensor detection signal signal strength can with identity user on the sensor pressing dynamics or press surfaceProduct illustrates user in this signal sampling, corresponding sensor obtains user's pressing if the detection signal of sensor is most strongDynamics or pressing area are maximum, and then the point of application of user is corresponding with the strongest sensor of detection signal, so that touch-controlPlate targetedly detects the pressing behavior of user, and obtaining accurately can be used for measuring user specifically to press behavior oppositeThe signal strength for each sensor answered, and then can determine that multiple sensors respectively correspond according to the signal strength of detection signalDetection position, then obtain position of touch.
If do not considered influence of the detection signal of other sensors to detection position, the strongest inspection of signal strength can be determinedThe reference position for surveying signal respective sensor is effective detection position, and the corresponding check bit of other sensors detection signal is set to nothingEffect detection position can include determining that effective inspection in multiple detection positions based on multiple detection positions calculating acquisition position of touchLocation is set to position of touch, namely determines that most the reference position of the corresponding sensor of detection signal is position of touch by force.If examinedConsider influence of the detection signal of other sensors to detection position, it can reference position based on multiple sensors and multiple inspectionsThe signal strength of signal is surveyed, obtains influence coefficient of the signal strength of multiple detection signals relative to detection position, and according to shadowIt rings coefficient and reference position determines the detection position of multiple sensors.
In the embodiment of the present invention, is sampled by the digital-to-analogue at least once to multiple touch sensings, obtain at least one and adoptSample as a result, and determine the corresponding position of touch of each sampled result respectively, obtain at least one position of touch, pass through the numberMould sampling, it can be ensured that completely obtain sampled result.
As one embodiment, the multiple detection position includes base position and impact position;
The signal strength of the reference position based on the multiple sensor and the multiple detection signal, calculates instituteStating the corresponding detection position of multiple sensors includes:
It determines in the multiple detection signal and most detects signal by force;
Determine that the reference position for most detecting the corresponding first sensor of signal by force is the base position;
Maximum inducing strength based on signal strength and sensor except the multiple detection signal for most detecting signal by forceRatio and sensor average touch-control range, obtain each corresponding sensor impact position of detection signal;
It is described to include: using multiple detection positions calculating acquisition position of touch
Positional relationship based on the multiple sensor Yu the first sensor, determines in the multiple impact positionActive influence position and negatively influencing position;
After calculating the sum of the base position and the active influence position, the difference of calculating and the negatively influencing position is obtainedPosition of touch.
Most detection signal is the strongest detection signal of signal strength in multiple detection signals by force.The multiple inspection of determinationThe signal that most detects by force surveyed in signal may include: by the multiple detection signal according to signal strength, descending to be arrangedSequence, acquisition first detection signal are the strongest detection signal of signal strength, determine the corresponding first sensor of first detection signal.
Most the reference position of the corresponding first sensor of detection signal is C by force, and C is benchmark position.The average touching of sensorControl may range from 100/M, if the signal strength of each detection signal is hi, the maximum inducing strength of each sensorImpact position for H, each corresponding sensor of detection signal can pass through the signal strength hi and sensor of detection signalMaximum inducing strength H ratio hi/H, product namely impact position ei with the average touch-control range 100/M of sensor canTo indicate are as follows: ei=(hi/H) * (100/M).
Based on base position and impact position, position of touch can be obtained.It can be by the corresponding sensing of multiple sensorsDevice is divided, the position based on first sensor, the sensor that reference position is greater than base position can be positioned as main storySensor, the sensor that will be located at reference position less than base position positions the sensor that is negative, and then can determine positive sensor pairThe impact position answered is positive impact position, and the corresponding impact position of negative sensor is negative impact position.Utilize detection position and baseLevel is set determining position of touch and can be calculated with following formula:
Wherein, fi is the positive and negative mark of the corresponding impact position of each sensor.ItsIn, if the reference position of first sensor is g in the coordinate of the touch-control coordinate system of Trackpad, if i > g, fi=1;IfI < g, then fi=-1;If i=g, fi=0.
In the embodiment of the present invention, the touch control operation of Trackpad is detected by multiple sensors of Trackpad, in detection processSignal sampling at least once is carried out respectively to multiple sensors, the inspection obtained with any sampling obtained for multiple sensorsSignal, and then the signal strength based on detection signal are surveyed, the corresponding detection position of multiple sensors is calculated.If eachThe corresponding detection position of sensor determines, it can obtains corresponding position of touch by calculating, and then obtains at least one touchingControl position.It may determine that user is applied to the pressure of sensor to actual position of touch by the detection signal to sensorIt influences, and then the accuracy of touch-control can be improved with the position of touch of accurate judgement user.
As shown in fig. 7, being a kind of operational control unit of Trackpad provided in an embodiment of the present invention, the equipment includes:Processor 701, the memory 702 being connect with the processor 701;
The memory 702 is for storing one or more computer instruction;Wherein, one or more computer refers toIt enables calling for the processor 701 and execute;
The processor 701 can be used for:
The touch control operation for detecting Trackpad, obtains at least one position of touch;Utilize each position of touch and describedEach position of touch corresponding touch-control time, determine touch trajectory when user executes the touch control operation;Determine the touchingControl the corresponding action type in track;Based on the action type, corresponding control operation is executed.
The operational control unit of the embodiment of the present invention may include the main control MCU of intelligent terminal, and the intelligent terminal can be withIncluding electronic equipments such as intelligent earphone, Intelligent bracelet, smartwatch.Usual Trackpad may be mounted on intelligent terminal, userBy execute on the touch pad sliding, click, etc. types operation, to realize corresponding function control.Main control MCU and the touchingControl plate establishes connection, can detecte the touch control operation of Trackpad, and obtain at least one position of touch.
As a kind of possible implementation, Trackpad can be made of multiple sensors, wherein the multiple sensorIt is identical, and it is arranged in parallel on the touch pad.Trackpad in the application is single by multiple sensors and arranged in parallel constitutes.ForTouch control operation each time can obtain at least one position of touch, and then determine corresponding operation type.
Optionally, the touch control operation of the detection Trackpad, obtaining at least one position of touch may include by touchingControl plate multiple sensors execute at least once signal sampling with detect be directed to the Trackpad touch control operation;For each timeThe multiple detection signals for multiple sensors that signal sampling obtains, determine a position of touch, obtain at least one position of touch.
Optionally, the touch control operation for detecting Trackpad, obtaining at least one position of touch may include: that acquisition is the multipleThe corresponding detection signal of sensor detects the multiple of Trackpad if multiple detection signals are all larger than preset signals threshold valueThe touch control operation of sensor obtains at least one position of touch.
As a kind of possible implementation, the method also includes: detection Trackpad does not execute any control not by touch-controlSystem operation.Detection Trackpad not may include detecting multiple sensors of Trackpad not by touch-control by touch-control.
It also may include non-tactile behavior that user, which may include touch behavior to the touch control operation of Trackpad, for example, to touchingWhen controlling plate and carrying out double click operation, click twice between there is non-tactile behavior, and in slide, then always exist touchBehavior.The position of touch of the application, practical is touch location of the user when Trackpad touches.In the embodiment of the present application because withAt least one position of touch of family touch control operation and determination, practical is that multiple sensors of user and Trackpad actually occur touchWhen in action process, corresponding at least one touch location got.
During the touch control operation of Trackpad, at least one position of touch can be obtained, wherein one touch-control of every acquisitionPosition can recorde the primary touch-control time.Position of touch and touch-control time one-to-one relationship.
When each position of touch and its corresponding touch-control that touch trajectory generates when being according to user's touch-control TrackpadBetween and generate.It optionally, can be to sampling each time when intelligent terminal samples multiple touch sensings of TrackpadSampling time recorded, the sampling time can be for the touch-control time.
In the embodiment of the present invention, it can be based on the corresponding action type of the touch trajectory, determination is corresponding with touch trajectoryAction type, and then execute corresponding target control operation.By the touch-control behavior of intelligent terminal identification user, touch-control rail is utilizedThe mode of the track characteristic of mark determines corresponding operation type, judgment mode compared in the way of touch-control recognizerIt is more succinct, corresponding control operation can be fast implemented.Meanwhile reducing the use of touch-control managing chip, it reduces costs,The utilization rate of intelligent terminal is improved simultaneously.
As one embodiment, the processor is corresponding using each position of touch and each described position of touchThe touch-control time, determine that touch trajectory when user executes the touch control operation is specifically:
It is horizontal axis and using position of touch as the longitudinal axis using the touch-control time, establishes statistics coordinate system;According to each position of touchAnd its corresponding touch-control time, determine each position of touch location point in the statistics coordinate system;It is calculated using curve matchingMethod carries out curve fitting at least one location point in the statistics coordinate system, obtains matched curve;Determine that the fitting is bentLine is touch trajectory.
Optionally, the corresponding action type of the determining touch trajectory may include: in the touch trajectory with touchingControl time and the variation of position of touch occurred are analyzed, and the corresponding action type of touch trajectory is obtained.
It is described corresponding using each position of touch and each position of touch as a kind of possible implementationThe touch-control time, determine touch trajectory when user executes the touch control operation can also include: by each position of touch andPosition coordinates point of its corresponding touch-control time in statistics coordinate system, identifies and draws the line of any two position coordinates pointSection, to obtain touch trajectory.
Although obtaining touch trajectory by connection any two position coordinates point, it is true by drawing line segment modeFixed touch trajectory is not coherent enough, it has not been convenient to carry out quantum chemical method, cause the operation class for analyzing touch control operation by touch trajectoryThe efficiency of type is lower, error is higher.It is therefore possible to use curve fitting algorithm, obtains more smooth matched curve, makes it mostThe error of the action type of the touch control operation using touch trajectory identification is reduced in the track slided close to touch-control, meanwhile, Ke YitongAction type can be determined by crossing easy calculate, and improve the recognition speed of the action type of touch control operation.
Optionally, the curve fitting algorithm may include least square fitting algorithm, Bi_arc fitting algorithm, three times sampleCurve fitting algorithm etc., this is no longer going to repeat them.
In the embodiment of the present invention, coordinate system is counted by establishing, utilizes position of touch and the corresponding touch-control of position of touchTime draws location point of each position of touch in statistics coordinate system, passes through fitting of the location point in statistics coordinate systemCurve is determined as corresponding touch trajectory, can further realize accurate touch-control by the determination of touch trajectory and control, improveThe accuracy rate of touch-control.
As one embodiment, the processor utilizes curve fitting algorithm by least one of described statistics coordinate systemLocation point carries out curve fitting, and obtains matched curve and is specifically:
Based on Slope Parameters and intercept parameter, fit equation is constructed;Determine the location mean value of at least one position of touchAnd the time average of at least one touch-control time;Based on the corresponding position of touch of each location point and the location mean valueThe time difference of position difference and each location point corresponding touch-control time and the time average, determine the fittingThe Slope Parameters value of equation;Using the position of touch of any one location point and touch-control time as known results, with the slopeParameter value inputs the fit equation together, reverse to calculate the intercept parameter value for obtaining the fit equation;It is determining and described obliqueRate parameter value and the corresponding fit equation of intercept parameter value are matched curve.
It, can be primary using building binary in order to obtain touch trajectory with more succinct curve fitting algorithm matched curveAt least one location point is carried out straight line fitting, to reduce the computation complexity in fit procedure, by one-dimensional by the mode of equationThe calculation of computation complexity quickly accurately determines matched curve, obtains touch trajectory.
Slope Parameters can indicate that intercept parameter can be indicated with b with k, and fit equation can indicate are as follows: x=k*t+b;Wherein, t is the touch-control time, and x is position of touch.
The location mean value of at least one position of touch of determination can include determining that at least one position of touchPosition number, calculate at least one position of touch position and, calculate the position and the ratio with position number, asThe location mean value of at least one position of touch.It is assumed that at least one position of touch uses x1, x2, x3 respectively ... ... xnIndicate, n is position number, the position of at least one position of touch and are as follows: x1+x2+x3+.......+xn, then location mean valueIt can indicate are as follows:
The time average of at least one touch-control time of the determination can include determining that at least one the touch-control timeTime number, calculate at least one the touch-control time time and, calculate the time and the ratio with the time number,The time average of at least one the as described touch-control time.It is assumed that at least one touch-control time uses t1, t2 respectively,T3 ... ..tn indicates that n is time number, since touch-control time and position of touch correspond, because of this time number nIt is identical as position of touch number n, the time of at least one touch-control time and are as follows: t1+t2+t3+......+tn, then location mean valueIt can indicate are as follows:
The position difference based on the corresponding position of touch of each location point and the location mean value and eachThe time difference of location point corresponding touch-control time and the time average determine that the Slope Parameters value of the fit equation can be withInclude: the position difference for calculating each location point and location mean value, calculates each location point corresponding touch-control time and instituteState the time difference of time average;Calculate the position difference of any one location point and the product of time difference, and by all productsIt is added and obtains the first parameter;It calculates the mean-square value of the time difference of any one location point, and all mean-square values is added and obtain theTwo parameters;Calculate the ratio of first parameter Yu second parameter, the Slope Parameters value of the as described fit equation.
The Slope Parameters value can indicate are as follows:
After determining Slope Parameters value, it can use Slope Parameters value and calculate intercept parameter value.It is alternatively possible to by anyPosition of touch and touch-control time and Slope Parameters value substitute into the fit equation, due to only being deposited in fit equation at this timeIn one unknown parameter of intercept parameter value, intercept parameter value can be obtained by inversely calculating.For example, by (x1, t1) and k0Substitute into fit equation, x1=k0*t1+b, then b=x1-k0*t1.
In the embodiment of the present invention, by fit equation, at least one location point is carried out curve fitting, wherein pass through positionMean value and time average are set, determines the order relationship of different time mean value, obtains accurate matched curve, and then can obtainAccurately touch trajectory is obtained, and then accurate control result can be obtained.
As one embodiment, the processor determines that the corresponding action type of the touch trajectory is specifically:
At least one touch-control time is ranked up, earliest touch-control time and the latest touch-control time are obtained;
Determine in the touch trajectory first position corresponding with earliest touch-control time and with the touch-control the latestThe time corresponding second position;
If the position difference between the first position and the second position is greater than default first position difference, institute is determinedStating action type is slide;
If the position difference between the first position and the second position is less than default second position difference, institute is determinedStating action type is clicking operation.
Touch trajectory can be used for judging the touch control operation that user executes.The earliest touch-control time is that user starts to execute touchingWhen control operation, it is initially detected the touch-control touch-control behavior corresponding time of user's execution.The touch-control time is that user stops touching the latestIt controls between operation, the last one the touch-control behavior corresponding time detected.
Optionally, when action type is clicking operation, the position difference between first position and the second position is less than defaultSecond position difference.Clicking operation may determine that as single-click operation and double click operation.The action type is determined to click behaviourAfter work, earliest touch-control time and the latest time difference of touch-control time can be determined, preset if the time difference is greater thanTime difference judges the action type for single-click operation, if the time difference is less than preset time difference and judges the behaviourMaking type is double click operation.
In the embodiment of the present invention, pass through the first position and the second position on motion profile, it can be determined that touch control operationPosition difference the accurate behavior of touch-control is determined by the touch control operation of motion profile head and the tail diversity judgement user, and then can be withAcquisition is accurately controlled result.
As one embodiment, the processor is also used to:
If the Slope Parameters value is positive value, determine that the glide direction of the slide is first direction;
The Slope Parameters value of becoming a shareholder is negative value, determines that the glide direction of the slide is second direction.
Optionally, glide direction can be determined according to the usage behavior of user.The first direction can be left direction,The second direction can be right direction.Certainly, the direction content of the first direction and second direction can be interchanged.
In the embodiment of the present invention, by the glide direction of the positive and negative slide that can determine user of Slope Parameters value,Then subsequent touch-control control can be realized based on glide direction, simultaneously as the positive and negative of slope can be directly oblique by judgementThe positive and negative of rate parameter value directly obtains, quick and accurate, is advantageously implemented accurate and accurate touch-control identification operation.
As one embodiment, the processor determines that the corresponding action type of the touch trajectory is specifically:
If the absolute value of the Slope Parameters value is greater than slope threshold value, determine that the action type is slide;
If the absolute value of the Slope Parameters value is less than slope threshold value, determine that the action type is clicking operation.
In the embodiment of the present invention, the action type of touch trajectory is judged by Slope Parameters value, and then can quickly judgeThe corresponding action type of touch trajectory.
As another embodiment, the touch control operation of the processor detection Trackpad obtains at least one position of touchSpecifically:
The touch control operation of Trackpad is detected by multiple sensors of the Trackpad, and the multiple sensor is distinguishedCarry out signal sampling at least once.For multiple detection signals that signal sampling each time obtains, it is based on the multiple sensorReference position and it is the multiple detection signal signal strength, calculate the corresponding check bit of the multiple sensorIt sets.It is calculated using multiple detection positions and obtains position of touch, to obtain at least one corresponding touch-control of signal sampling at least oncePosition.
To multiple sensor samples of Trackpad, the touch control operation of detection Trackpad is realized.To the multiple sensor pointSignal sampling at least once is not carried out, and signal sampling can determine multiple detection signals each time.Passing through the TrackpadMultiple sensors detection Trackpad touch control operation before, the method also includes: judge whether Trackpad is performed touch-controlOperation, if so, detecting the touch control operation of Trackpad by multiple sensors of Trackpad.
As a kind of possible implementation, judge whether Trackpad is performed touch control operation specifically and can be judgement touch-controlWhether multiple sensors of plate are performed touch control operation.Multiple sensors of Trackpad are performed touch control operation specifically and can be pairMultiple sensors carry out sampling monitoring, for multiple monitoring signals that sampling monitoring each time obtains, if multiple monitoring signalsAny of monitoring signal be greater than preset signals threshold value, determine that Trackpad is performed touch control operation.If in multiple monitoring signalsAny one monitoring signal is respectively less than preset signals threshold value, determines that Trackpad is not performed touch control operation.Signal threshold value is according to touchingControl the induction sensitivity of multiple sensors of plate, induction range is previously set.
As a kind of possible implementation, sensor is evenly distributed on Trackpad, the center of each sensorPoint is located at the center touch-control line of Trackpad, it is assumed that the quantity of sensor is M, the touch-control range namely center touch-control line of TrackpadLength be [0~100], for the touch-control range as unit of length, 100 be only a constant, does not represent the reality of TrackpadBorder touch-control range can be replaced by arbitrary constant, and the induction range of each sensor is 100/M, any one sensor iReference position can use formula:Wherein, i is the arrangement order of sensor on the touch pad,Xi is the reference position of sensor.
The reference position of multiple sensors is location information of the sensor relative to Trackpad.Multiple detection signals are primaryThe corresponding signal of each sensor that signal sampling obtains, for a signal sampling, multiple sensors can obtain multipleDetect signal.
Sensor detection signal signal strength can with identity user on the sensor pressing dynamics or press surfaceProduct illustrates user in this signal sampling, corresponding sensor obtains user's pressing if the detection signal of sensor is most strongDynamics or pressing area are maximum, and then the point of application of user is corresponding with the strongest sensor of detection signal, so that touch-controlPlate targetedly detects the pressing behavior of user, and obtaining accurately can be used for measuring user specifically to press behavior oppositeThe signal strength for each sensor answered, and then can determine that multiple sensors respectively correspond according to the signal strength of detection signalDetection position, then obtain position of touch.
If do not considered influence of the detection signal of other sensors to detection position, the strongest inspection of signal strength can be determinedThe reference position for surveying signal respective sensor is effective detection position, and the corresponding check bit of other sensors detection signal is set to nothingEffect detection position can include determining that effective inspection in multiple detection positions based on multiple detection positions calculating acquisition position of touchLocation is set to position of touch, namely determines that most the reference position of the corresponding sensor of detection signal is position of touch by force.If examinedConsider influence of the detection signal of other sensors to detection position, it can reference position based on multiple sensors and multiple inspectionsThe signal strength of signal is surveyed, obtains influence coefficient of the signal strength of multiple detection signals relative to detection position, and according to shadowIt rings coefficient and reference position determines the detection position of multiple sensors.
In the embodiment of the present invention, is sampled by the digital-to-analogue at least once to multiple touch sensings, obtain at least one and adoptSample as a result, and determine the corresponding position of touch of each sampled result respectively, obtain at least one position of touch, pass through the numberMould sampling, it can be ensured that completely obtain sampled result.
As one embodiment, the multiple detection position includes base position and impact position;
The signal strength of reference position and the multiple detection signal of the processor based on the multiple sensor,Calculating the corresponding detection position of the multiple sensor is specifically:
It determines in the multiple detection signal and most detects signal by force;Determine that the signal corresponding first that most detects by force passesThe reference position of sensor is the base position;Based on except most by force detection signal the multiple detection signal signal strength withIt is corresponding to obtain each detection signal for the ratio of the maximum inducing strength of sensor and the average touch-control range of sensorSensor impact position.
The processor calculates acquisition position of touch using multiple detection positions:
Positional relationship based on the multiple sensor Yu the first sensor, determines in the multiple impact positionActive influence position and negatively influencing position;After calculating the sum of the base position and the active influence position, calculates and born with describedThe difference of impact position obtains position of touch.
Most the reference position of the corresponding first sensor of detection signal is C by force, and C is benchmark position.The average touching of sensorControl may range from 100/M, if the signal strength of each detection signal is hi, the maximum inducing strength of each sensorImpact position for H, each corresponding sensor of detection signal can pass through the signal strength hi and sensor of detection signalMaximum inducing strength H ratio hi/H, product namely impact position ei with the average touch-control range 100/M of sensor canTo indicate are as follows: ei=(hi/H) * (100/M).
Based on base position and impact position, position of touch can be obtained.It can be by the corresponding sensing of multiple sensorsDevice is divided, the position based on first sensor, the sensor that reference position is greater than base position can be positioned as main storySensor, the sensor that will be located at reference position less than base position positions the sensor that is negative, and then can determine positive sensor pairThe impact position answered is positive impact position, and the corresponding impact position of negative sensor is negative impact position.Utilize detection position and baseLevel is set determining position of touch and can be calculated with following formula:
Wherein, fi is the positive and negative mark of the corresponding impact position of each sensor.ItsIn, if the reference position of first sensor is g in the coordinate of the touch-control coordinate system of Trackpad, if i > g, fi=1;IfI < g, then fi=-1;If i=g, fi=0.
In the embodiment of the present invention, the touch control operation of Trackpad is detected by multiple sensors of Trackpad, in detection processSignal sampling at least once is carried out respectively to multiple sensors, the inspection obtained with any sampling obtained for multiple sensorsSignal, and then the signal strength based on detection signal are surveyed, the corresponding detection position of multiple sensors is calculated.If eachThe corresponding detection position of sensor determines, it can obtains corresponding position of touch by calculating, and then obtains at least one touchingControl position.It may determine that user is applied to the pressure of sensor to actual position of touch by the detection signal to sensorIt influences, and then the accuracy of touch-control can be improved with the position of touch of accurate judgement user.
As shown in figure 8, the intelligent terminal may include: Trackpad 801 the present invention also provides a kind of intelligent terminal, placeManage component 802, the storage assembly 803 connecting with the processing component 802;
The storage assembly 803 is for storing one or more computer instruction;Wherein, one or more computerInstruction is called for the processing component 802 and is executed;
The processing component 802 is for adjusting to execute method of controlling operation thereof described in any of the above-described a embodiment.
The intelligent terminal may include the small intelligents products such as wireless headset, intelligent wearable device.
In the embodiment of the present invention, it can be based on the corresponding action type of the touch trajectory, determination is corresponding with touch trajectoryAction type, and then execute corresponding target control operation.By the touch-control behavior of intelligent terminal identification user, touch-control rail is utilizedThe mode of the track characteristic of mark determines corresponding operation type, judgment mode compared in the way of touch-control recognizerIt is more succinct, corresponding control operation can be fast implemented.Meanwhile reducing the use of touch-control managing chip, it reduces costs,The utilization rate of intelligent terminal is improved simultaneously.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has computerProgram;
The computer program makes computer execute the method for controlling operation thereof for realizing that any of the above-described embodiment is directed to Trackpad.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, netNetwork interface and memory.
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answerIt is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with nameThe difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logicalThe "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limitIn "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described inTechnical problem basically reaches the technical effect.Specification subsequent descriptions are to implement the better embodiment of the application, so describedDescription is being not intended to limit the scope of the present application for the purpose of the rule for illustrating the application.The protection scope of the applicationAs defined by the appended claims.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludabilityInclude, so that commodity or system including a series of elements not only include those elements, but also including not clearThe other element listed, or further include for this commodity or the intrinsic element of system.In the feelings not limited moreUnder condition, the element that is limited by sentence " including one ... ", it is not excluded that in the commodity or system for including the elementThere is also other identical elements.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the applicationBe not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations,Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through in application contemplated scope described hereinIt is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this ShenIt please be in the protection scope of appended claims.