CN109189220A - motor control method, device, storage medium and electronic equipment - Google Patents

motor control method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN109189220A
CN109189220A CN201810956498.7A CN201810956498A CN109189220A CN 109189220 A CN109189220 A CN 109189220A CN 201810956498 A CN201810956498 A CN 201810956498A CN 109189220 A CN109189220 A CN 109189220A
Authority
CN
China
Prior art keywords
touch
motor
control
electronic equipment
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810956498.7A
Other languages
Chinese (zh)
Other versions
CN109189220B (en
Inventor
贾玉虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810956498.7A priority Critical patent/CN109189220B/en
Publication of CN109189220A publication Critical patent/CN109189220A/en
Application granted granted Critical
Publication of CN109189220B publication Critical patent/CN109189220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Abstract

It includes touch screen and motor that the embodiment of the present application, which provides a kind of motor control method, device, storage medium and electronic equipment, the electronic equipment,;The described method includes: obtaining the touch information that user presses the touch screen, the touch information includes pressure data and pressing position;When the pressing position is located in control area, the corresponding first preset pressure threshold value in the control area is obtained;When the pressure data is less than the first preset pressure threshold value, the electronic equipment realizes the first function, while controlling the motor and vibrating by the first predetermined manner;When the pressure data is greater than the first preset pressure threshold value, the electronic equipment realizes the second function, while controlling the motor and vibrating by the second predetermined manner.It controls motor to vibrate by different predetermined manners, to prompt consumer electronic devices to realize different functions, electronic equipment and user can be made not only to realize visual interactive, can also realize sense of touch interaction.

Description

Motor control method, device, storage medium and electronic equipment
Technical field
This application involves technical field of electronic equipment, in particular to a kind of motor control method, device, storage medium and electricity Sub- equipment.
Background technique
With the continuous development of electronic technology, the function that electronic equipment can be realized is also more and more.The touching of electronic equipment Control screen not only can also identify the operation of user, to respond the operational requirements of user for showing content.Then, it touches The mode of control screen response user's operation demand is single, and interaction effect is bad.
Summary of the invention
The embodiment of the present application provides a kind of motor control method, device, storage medium and electronic equipment, and touch-control can be improved The interaction effect of screen and user.
The embodiment of the present application provides a kind of motor control method, is applied to electronic equipment, and the electronic equipment includes touching Control screen and motor;The described method includes:
The touch information that user presses the touch screen is obtained, the touch information includes pressure data and pressing position;
When the pressing position is located in control area, the corresponding first preset pressure threshold in the control area is obtained Value;
When the pressure data is less than the first preset pressure threshold value, the electronic equipment realizes the first function, same to time control The motor is made to vibrate by the first predetermined manner;
When the pressure data is greater than the first preset pressure threshold value, the electronic equipment realizes the second function, same to time control The motor is made to vibrate by the second predetermined manner.
The embodiment of the present application also provides a kind of controller for motor, is applied to electronic equipment, and the electronic equipment includes Touch screen and motor;Described device includes:
First obtains module, and the touch information of the touch screen is pressed for obtaining user, and the touch information includes pressure Force data and pressing position;
Second obtains module, when the pressing position is located in control area, obtains the control area corresponding the One preset pressure threshold value;
Control module, for controlling the motor by first when the pressure data is less than the first preset pressure threshold value Predetermined manner vibration;It is also used to that it is pre- by second to control the motor when the pressure data is greater than the first preset pressure threshold value If mode is vibrated.
The embodiment of the present application also provides a kind of storage medium, is stored thereon with computer program, when the computer program When running on computers, so that the computer executes method described in any of the above embodiments.
The embodiment of the present application also provides a kind of electronic equipment comprising processor and memory, the memory storage have Computer program, the processor is by calling the computer program, for executing method described above.
Motor control method provided by the embodiments of the present application can press pressure data and the pressing of touch screen according to user Position, control motor are vibrated by different predetermined manners, to prompt consumer electronic devices to realize different functions, can make electronics Equipment and user not only realize visual interactive, can also realize sense of touch interaction.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described.It should be evident that the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is an application scenarios schematic diagram of motor control method provided by the embodiments of the present application.
Fig. 2 is the flow diagram of motor control method provided by the embodiments of the present application.
Fig. 3 is another application scenarios schematic diagram of motor control method provided by the embodiments of the present application.
Fig. 4 is another flow diagram of motor control method provided by the embodiments of the present application.
Fig. 5 is another application scenarios schematic diagram of motor control method provided by the embodiments of the present application.
Fig. 6 is the structural schematic diagram of controller for motor provided by the embodiments of the present application.
Fig. 7 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 8 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, should not be by It is considered as limitation the application other specific embodiments not detailed herein.
Those skilled in the art explicitly and implicitly understand that embodiment described herein can be with other implementations Example combines.
The embodiment of the present application provides a kind of motor control method, and the executing subject of the motor control method can be the application The controller for motor that embodiment provides, or it is integrated with the electronic equipment of the controller for motor, wherein the motor control fills Setting can be realized by the way of hardware or software.Wherein, electronic equipment can be smart phone, tablet computer, palm electricity The equipment such as brain or laptop.
Referring to Fig. 1, Fig. 1 is an application scenarios schematic diagram of motor control method provided by the embodiments of the present application.Electricity Sub- equipment includes touch screen, can acquire the touch information that user presses touch screen by the touch screen, which includes Pressure data and pressing position;When the pressing position that user presses touch screen is located in control area, control area pair is obtained The the first preset pressure threshold value answered;When pressure data is less than the first preset pressure threshold value, for example, user's flicking touch screen, electronics Equipment realizes the first function, for example returns to desktop function, while controlling motor and vibrating by the first predetermined manner, for example short arc is low Frequency vibration;When pressure data is greater than the first preset pressure threshold value, for example user presses touch screen again, and electronic equipment realizes second Function, such as multiple task management function, while controlling motor and being vibrated by the second predetermined manner, such as high amplitude high frequencies vibration.
Referring to Fig. 2, Fig. 2 is the flow diagram of motor control method provided by the embodiments of the present application.The application is implemented The motor control method of example is applied to electronic equipment, which includes touch screen and motor, provided by the embodiments of the present application The detailed process of motor control method can be such that
101, the touch information that user presses touch screen is obtained, touch information includes pressure data and pressing position.
Touch screen has the function of Z axis Data Detection, can be according to the capacitance of touch screen when user hand touches touch screen Variation obtain user touch dynamics.Wherein Z axis can be understood as the axis in vertical touch screen direction.
The touch information for obtaining user's pressing touch screen can use various ways.For example, touch screen can be using solid Touch-control (3d-touch) screen, the mode that touch screen can use capacitance detecting obtain touch information.Specifically, obtaining touch-control first Shield the variation of capacitance, corresponding pressure value is then calculated by calibration.Can in touch screen be equipped with changing sensor, The changing sensor can measure object deformation degree, report pressure value by the pressure that changing sensor is experienced.Press position It sets, can be obtained according to trigger position.
Motor in the embodiment of the present application can be linear motor.Linear motor can directly convert electrical energy into line straightening machine Tool movement, the movement of linear motor are linear motions, which can be z axis motor, or the linear horse of X-axis It reaches.
102, when pressing position is located in control area, obtain the corresponding first preset pressure threshold value in control area.
Control area can be virtual key region.Pressing position is located in control area, then it is to be understood that user presses Press virtual key.Then the corresponding first preset pressure threshold value in virtual key region is obtained.
Control area may be notification bar region, and control area can also be application icon region.
It should be noted that control area is different, corresponding first preset pressure threshold value be can also be different.
First preset pressure threshold value can be fixed value, be set by predetermined manner.First preset pressure threshold value can also Think that dynamic value, the option of operation of acquisition user multiple press pressure data and subsequent user are adjusted, are accorded with Close the threshold value of active user.Wherein, it is that flicking is still pressed again that first pressure threshold value, which can be used to distinguish user,.
In some embodiments, after 102 corresponding steps, can also include the following steps:
When electronic equipment is in screen lock state, and pressing position is located at fingerprint collecting region, start finger print acquisition module;
When finger print acquisition module collects finger print information, motor vibrations are controlled.
Electronic equipment is in screen lock state, can lead to unlocked by fingerprint.When touch screen first gets touch information, behind can Unlocked by fingerprint can be wanted, starts finger print acquisition module at this time.Then when finger print acquisition module collects finger print information, horse is controlled Up to vibration, user is prompted to collect finger print information.Wherein, screen lock state can be touch screen blank screen and screen locking, can also Think the bright screen of touch screen but screen locking.Wherein, fingerprint module is arranged below touch screen, is referred in touch screen by capacitance variations acquisition Line information can also obtain finger print information by infrared light.
In other embodiments, when fingerprint is paid, start finger print acquisition module;When finger print acquisition module collects When finger print information, motor vibrations are controlled.
103, when pressure data is less than the first preset pressure threshold value, electronic equipment realizes the first function, while controlling horse It is vibrated up to by the first predetermined manner.
Pressure data is less than the first preset pressure threshold value, it is understood that is user's flicking touch screen.At this point, electronic equipment It realizes the first function, for example realizes and return to desktop function, while controlling motor and being vibrated by the first predetermined manner, such as in middle amplitude Frequency vibration.
In some embodiments, touch information further includes touch-control area, and 103 corresponding steps can specifically include:
When pressure data is less than the first preset pressure threshold value, the corresponding first touch-control area threshold in control area is obtained;
When touch-control area is greater than the first touch-control area threshold, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When touch-control area is less than the first touch-control area threshold, electronic equipment realizes third function, while controlling motor and pressing The vibration of third predetermined manner.
Touch-control and flicking touch-control are dubbed by the differentiation of touch-control area.When dubbing touch-control, area that user contacts with touch screen Small, when flicking touch-control, the area that user contacts with touch screen is big.When flicking touch-control, electronic equipment realizes the first function, controls horse The vibration of frequency up in by the vibration of the first predetermined manner, such as middle amplitude;When dubbing touch-control, electronic equipment realizes third function, It controls motor to vibrate by third predetermined manner, such as the low-frequency vibration of short arc.As shown in Figure 3, wherein the first function and Three functions can be the function of virtual key, for example, the first function can be to return to desktop function, third function can be return Function.First function and third function may be the customized function of user.May include in control area one virtually by Key also may include 2 or multiple virtual keys.
In some embodiments, touch information further includes touch-control duration, and 103 corresponding steps can specifically include:
When pressure data is less than the first preset pressure threshold value, the corresponding first touch-control duration threshold value in control area is obtained;
When touch-control duration is less than the first touch-control duration threshold value, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When touch-control duration is greater than the first touch-control duration threshold value, electronic equipment realizes the 4th function, while controlling motor and pressing The vibration of 4th predetermined manner.
Optionally, the present embodiment dubs touch-control and flicking touch-control by the differentiation of touch-control duration.When dubbing touch-control, user and touching The period of control screen contact, when flicking touch-control, the time that user contacts with touch screen is long.When flicking touch-control, electronic equipment is realized First function controls motor by the vibration of frequency in the vibration of the first predetermined manner, such as middle amplitude;When dubbing touch-control, electronics is set Standby to realize the 4th function, control motor is vibrated by the 4th predetermined manner, such as the low-frequency vibration of short arc.Wherein, the first function Can and the 4th function can be virtual key function, for example, the first function can be to return to desktop function, the 4th function can be with To return to function.First function and the 4th function may be the customized function of user.It should be noted that the 4th function with Third function can be the same, can also be different.4th predetermined manner can be the same with third predetermined manner, can also be different Sample.
Optionally, the present embodiment can also distinguish short-press touch-control and long-pressing touch-control by touch-control duration, when short-press touch-control, use The period that family is contacted with touch screen, when long-pressing touch-control, the time that user contacts with touch screen is long.When short-press touch-control, electronics is set It is standby to realize the first function, motor is controlled by the vibration of frequency in the vibration of the first predetermined manner, such as middle amplitude;When long-pressing touch-control, Electronic equipment realizes the 4th function, and control motor is vibrated by the 4th predetermined manner, such as the low-frequency vibration of short arc.Wherein, First function and the 4th function can be the function of virtual key, for example, the first function can be return desktop function, the 4th function It can be able to be return function.First function and the 4th function may be the customized function of user.
In some embodiments, touch information further includes touch-control duration and touch-control area, and 103 corresponding steps specifically can be with Include:
When pressure data is less than the first preset pressure threshold value, obtain the corresponding second touch-control duration threshold value in control area and First touch-control area threshold;
When touch-control area is greater than the first touch-control area threshold, and touch-control duration is greater than the second touch-control duration threshold value, electronics Equipment realizes the first function, while controlling motor and vibrating by the first predetermined manner;
When touch-control area less than the first touch-control area threshold or touch-control duration less than the second touch-control duration threshold value when, electronics Equipment realizes five-function, while controlling motor and vibrating by the 5th predetermined manner.
It is distinguished by touch-control area and touch-control duration and dubs touch-control and flicking touch-control.When dubbing touch-control, user and touch-control The area small time for shielding contact is short, and when flicking touch-control, the area that user contacts with the touch screen big time is long.When flicking touch-control, electricity Sub- equipment realizes the first function, controls motor by the vibration of frequency in the vibration of the first predetermined manner, such as middle amplitude;Dub touch-control When, electronic equipment realizes third function, and control motor is vibrated by third predetermined manner, such as the low-frequency vibration of short arc.Its In, the first function and third function can be the function of virtual key, for example, the first function can be return desktop function, the Three functions can be return function.First function and third function may be the customized function of user.First function and Three functions can also be the function of control notification bar, for example, the first function can be drop-down notification bar function, third function can be with For the function of removing notification information.
104, when pressure data is greater than the first preset pressure threshold value, electronic equipment realizes the second function, while controlling horse It is vibrated up to by the second predetermined manner.
Pressure data is greater than the first preset pressure threshold value, it is understood that presses touch screen again for user.At this point, electronic equipment It realizes the second function, for example realizes multitask menu function, while controlling motor and vibrating by the second predetermined manner, such as high amplitude High-frequency vibration.
Different functions is realized according to different pressures data, meanwhile, control motor is vibrated by different predetermined manners, with prompt Consumer electronic devices realize different functions, and electronic equipment and user can be made not only to realize visual interactive, can also realize touching Sense interaction.
It should be noted that pressure data is greater than the first preset pressure less than the first preset pressure threshold value and pressure data Threshold value is it can be appreciated that user dubs touch screen and flicking touch screen.
It should be noted that a variety of predetermined manners of motor vibrations can have different amplitudes, frequency and duration etc..Together When, it can also be different waveforms, the frequency and amplitude of linear motor are separately controlled, and can preferably match the aobvious of electronic equipment Show scene.For example, when virtual key is pressed, linear motor is the vibration perpendicular to touch screen, make its with physical button by Press effect close.
Referring to Fig. 4, Fig. 4 is another flow diagram of motor control method provided by the embodiments of the present application.The application The detailed process for the motor control method that embodiment provides can be such that
201, the touch information that user presses touch screen is obtained, touch information includes pressure data and pressing position.
202, when touch screen shows the display picture of default application, operating space is obtained according to default application and display picture Domain.
As shown in figure 5, default application can be game application, such as shooting game application.Default application is in operating status, The display picture of default application is shown on touch screen, obtains operating area, operating area according to default application and display picture The interior virtual controlling key with the default application of control.For example, changing virtual controllings key such as rifle, shooting etc. in shooting game. Different default applications, corresponding operating area may be different.Same default application, different display pictures, corresponding behaviour Making region may also be different, such as the selection of land figure started, the behaviour for selecting the operating area of figure picture and being shot at into map Making region may be different.
203, when pressing position is located in operating area, obtain the corresponding operational order of touch information.
Pressing position is located in operating area, then can be understood as user and operating, and gathers default application and shows Show picture, obtain corresponding operational order, such as changes the operation such as rifle, shooting in shooting game.Wherein, operational order can root It is obtained according to the pressure data in touch information, for example, dubbing as single shot, flicking is continuous fire, again by for still bomb.Behaviour Making region then can be entire display area, or specific region.It is also possible that touch screen includes virtual attack key, Flicking is shooting, again by for still bomb.Touch screen can also be including other keys, flicking and again by corresponding different function.
204, the audio-frequency information played is obtained according to operational order.
Default application middle part split instruction has corresponding audio-frequency information, for example, changing the operation such as rifle, shooting in shooting game Instruction, can be corresponding with the audio-frequency information for changing rifle, shooting.
205, when in audio-frequency information including the first preset audio, control motor is vibrated by the 6th predetermined manner.
When in audio-frequency information including the first preset audio, for example, operational order refers in shooting game for continuous fire It enables, corresponding audio information includes the sound of continuous fire, controls motor at this time and vibrates by the 6th predetermined manner, as being repeatedly spaced Vibration, and the volume of Oscillation Amplitude and audio matches, and the duration of vibration also matches with the duration of audio.Electricity can be improved The interaction of sub- equipment and user.
206, when in audio-frequency information including the second preset audio, control motor is vibrated by the 7th predetermined manner.
When in audio-frequency information including the first preset audio, for example, operational order is the instruction of still bomb in shooting game, Corresponding audio information includes the sound of bomb blast, controls motor at this time and vibrates by the 7th predetermined manner, is such as vibrated with continuous, And the volume of Oscillation Amplitude and audio matches, and the duration of vibration also matches with the duration of audio.Electronics can be improved to set The standby interaction with user.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of controller for motor provided by the embodiments of the present application.Wherein, the motor Control device 400 is applied to electronic equipment, which includes touch screen and motor.The controller for motor 400 includes the One, which obtains module 410, second, obtains module 420 and control module 430.Wherein:
First obtains module 410, the touch information of touch screen is pressed for obtaining user, touch information includes pressure data And pressing position;
Second obtains module 420, when pressing position is located in control area, obtains control area corresponding first and presets Pressure threshold;
Control module 430, for when pressure data is less than the first preset pressure threshold value, control motor to be by the first default side Formula vibration;It is also used to when pressure data is greater than the first preset pressure threshold value, control motor is vibrated by the second predetermined manner.
Term " module " used in this application can regard the software object to execute in the arithmetic system as.The application institute The disparate modules stated can be regarded as the objective for implementation in the arithmetic system.And device and method described herein can be with soft The mode of part is implemented, and can also be implemented on hardware certainly, within the application protection scope.
In some embodiments, touch information further includes touch-control area;Control module 430 is also used to when pressure data is small When the first preset pressure threshold value, the corresponding first touch-control area threshold in control area is obtained;
When touch-control area is greater than the first touch-control area threshold, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When touch-control area is less than the first touch-control area threshold, electronic equipment realizes third function, while controlling motor and pressing The vibration of third predetermined manner.
In some embodiments, touch information further includes touch-control duration;Control module 430 is also used to when pressure data is small When the first preset pressure threshold value, the corresponding first touch-control duration threshold value in control area is obtained;
When touch-control duration is less than the first touch-control duration threshold value, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When touch-control duration is greater than the first touch-control duration threshold value, electronic equipment realizes the 4th function, while controlling motor and pressing The vibration of 4th predetermined manner.In some embodiments, touch information further includes touch-control duration and touch-control area;Control module 430, It is also used to when pressure data is less than the first preset pressure threshold value, obtains the corresponding second touch-control duration threshold value in control area and the One touch-control area threshold;
When touch-control area is greater than the first touch-control area threshold, and touch-control duration is greater than the second touch-control duration threshold value, electronics Equipment realizes the first function, while controlling motor and vibrating by the first predetermined manner;
When touch-control area less than the first touch-control area threshold or touch-control duration less than the second touch-control duration threshold value when, electronics Equipment realizes five-function, while controlling motor and vibrating by the 5th predetermined manner.
In some embodiments, control module 430 are also used to be in screen lock state, and pressing position position when electronic equipment When fingerprint collecting region, start finger print acquisition module;
When finger print acquisition module collects finger print information, motor vibrations are controlled.
In some embodiments, control module 430 are also used to when touch screen shows the display picture of default application, root Operating area is obtained according to default application and display picture;
When pressing position is located in operating area, the corresponding operational order of touch information is obtained;
Motor vibrations are controlled according to operational order.
In some embodiments, control module 430 are also used to obtain the audio-frequency information played according to operational order;
When in audio-frequency information including the first preset audio, control motor is vibrated by the 6th predetermined manner;
When in audio-frequency information including the second preset audio, control motor is vibrated by the 7th predetermined manner.
The embodiment of the present application also provides a kind of electronic equipment.Referring to Fig. 7, electronic equipment 500 include processor 501 and Memory 502.Wherein, processor 501 and memory 502 are electrically connected.
Processor 500 is the control centre of electronic equipment 500, utilizes various interfaces and the entire electronic equipment of connection Various pieces by the computer program of operation or load store in memory 502, and are called and are stored in memory 502 Interior data execute the various functions of electronic equipment 500 and handle data, to realize to the automatic of electronic equipment material information Change.
Memory 502 can be used for storing software program and module, and processor 501 is stored in memory 502 by operation Computer program and module, thereby executing various function application and data processing.Memory 502 can mainly include storage Program area and storage data area, wherein storing program area can computer program needed for storage program area, at least one function (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for electronic equipment Data etc..In addition, memory 502 may include high-speed random access memory, it can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 may be used also To include Memory Controller, to provide access of the processor 501 to memory 502.
In the embodiment of the present application, the processor 501 in electronic equipment 500 can be according to following step, by one or one The corresponding instruction of the process of a above computer program is loaded into memory 502, and is stored in by the operation of processor 501 Computer program in reservoir 502, thus realize various functions, it is as follows:
The touch information that user presses touch screen is obtained, touch information includes pressure data and pressing position;
When pressing position is located in control area, the corresponding first preset pressure threshold value in control area is obtained;
When pressure data is less than the first preset pressure threshold value, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When pressure data is greater than the first preset pressure threshold value, electronic equipment realizes the second function, while controlling motor and pressing The vibration of second predetermined manner.
In some embodiments, touch information further includes touch-control area;Electronic equipment realizes the first function, while controlling horse When up to by the vibration of the first predetermined manner, processor 501 can specifically execute following steps:
When pressure data is less than the first preset pressure threshold value, the corresponding first touch-control area threshold in control area is obtained;
When touch-control area is greater than the first touch-control area threshold, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When touch-control area is less than the first touch-control area threshold, electronic equipment realizes third function, while controlling motor and pressing The vibration of third predetermined manner.
In some embodiments, touch information further includes touch-control duration;Electronic equipment realizes the first function, while controlling horse When up to by the vibration of the first predetermined manner, processor 501 can specifically execute following steps:
When pressure data is less than the first preset pressure threshold value, the corresponding first touch-control duration threshold value in control area is obtained;
When touch-control duration is less than the first touch-control duration threshold value, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When touch-control duration is greater than the first touch-control duration threshold value, electronic equipment realizes the 4th function, while controlling motor and pressing The vibration of 4th predetermined manner.
In some embodiments, touch information further includes touch-control duration and touch-control area;Electronic equipment realizes the first function, When controlling motor simultaneously and vibrate by the first predetermined manner, processor 501 can specifically execute following steps:
When pressure data is less than the first preset pressure threshold value, obtain the corresponding second touch-control duration threshold value in control area and First touch-control area threshold;
When touch-control area is greater than the first touch-control area threshold, and touch-control duration is greater than the second touch-control duration threshold value, electronics Equipment realizes the first function, while controlling motor and vibrating by the first predetermined manner;
When touch-control area less than the first touch-control area threshold or touch-control duration less than the second touch-control duration threshold value when, electronics Equipment realizes five-function, while controlling motor and vibrating by the 5th predetermined manner.
In some embodiments, after obtaining the touch information that user presses touch screen, processor 501 can be executed specifically Following steps:
When electronic equipment is in screen lock state, and pressing position is located at fingerprint collecting region, start finger print acquisition module;
When finger print acquisition module collects finger print information, motor vibrations are controlled.
In some embodiments, after obtaining the touch information that user presses touch screen, processor 501 can be executed specifically Following steps:
When touch screen shows the display picture of default application, operating area is obtained according to default application and display picture;
When pressing position is located in operating area, the corresponding operational order of touch information is obtained;
Motor vibrations are controlled according to operational order.
In some embodiments, when controlling motor vibrations according to operational order, processor 501 can specifically execute following step It is rapid:
The audio-frequency information played is obtained according to operational order;
When in audio-frequency information including the first preset audio, control motor is vibrated by the 6th predetermined manner;
When in audio-frequency information including the second preset audio, control motor is vibrated by the 7th predetermined manner.
Also referring to Fig. 8, in some embodiments, electronic equipment 500 can also include: display 503, radio circuit 504, voicefrequency circuit 505 and power supply 506.Wherein, wherein display 503, radio circuit 504, voicefrequency circuit 505 and electricity Source 506 is electrically connected with processor 501 respectively.
Display 503 is displayed for information input by user or is supplied to the information and various figures use of user Family interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display 503 May include display panel, in some embodiments, can using liquid crystal display (Liquid Crystal Display, LCD) or the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) configure display surface Plate.
Radio circuit 504 can be used for transceiving radio frequency signal, to set by wireless communication with the network equipment or other electronics It is standby to establish wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
Voicefrequency circuit 505 can be used for providing the audio interface between user and electronic equipment by loudspeaker, microphone.
Power supply 506 is used to all parts power supply of electronic equipment 500.In some embodiments, power supply 506 can be with It is logically contiguous by power-supply management system and processor 501, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
Although being not shown in Fig. 8, electronic equipment 500 can also include camera, bluetooth module etc., and details are not described herein.
The embodiment of the present application also provides a kind of storage medium, and storage medium is stored with computer program, works as computer program When running on computers, so that computer executes above-mentioned motor control method in some embodiments, such as: it obtains and uses Family presses the touch information of touch screen, and touch information includes pressure data and pressing position;
When pressing position is located in control area, the corresponding first preset pressure threshold value in control area is obtained;
When pressure data is less than the first preset pressure threshold value, electronic equipment realizes the first function, while controlling motor and pressing The vibration of first predetermined manner;
When pressure data is greater than the first preset pressure threshold value, electronic equipment realizes the second function, while controlling motor and pressing The vibration of second predetermined manner.
In the embodiment of the present application, storage medium can be magnetic disk, CD, read-only memory (Read Only Memory, ) or random access memory (Random Access Memory, RAM) etc. ROM.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It should be noted that for the motor control method of the embodiment of the present application, this field common test personnel can be with Understand all or part of the process for realizing the motor control method of the embodiment of the present application, is that can be controlled by computer program Relevant hardware is completed, and the computer program can be stored in a computer-readable storage medium, be such as stored in electronics It in the memory of equipment, and is executed by least one processor in the electronic equipment, in the process of implementation may include such as motor The process of the embodiment of control method.Wherein, the storage medium can be magnetic disk, CD, read-only memory, arbitrary access note Recall body etc..
For the controller for motor of the embodiment of the present application, each functional module be can integrate in a processing chip In, it is also possible to modules and physically exists alone, can also be integrated in two or more modules in a module.It is above-mentioned Integrated module both can take the form of hardware realization, can also be realized in the form of software function module.It is described integrated If module realized in the form of software function module and when sold or used as an independent product, also can store one In a computer-readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
Above to a kind of motor control method, device, storage medium and electronic equipment provided by the embodiment of the present application into It has gone and has been discussed in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, the above implementation The explanation of example is merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art, according to According to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification It should not be construed as the limitation to the application.

Claims (10)

1. a kind of motor control method is applied to electronic equipment, which is characterized in that the electronic equipment includes touch screen and horse It reaches;The described method includes:
The touch information that user presses the touch screen is obtained, the touch information includes pressure data and pressing position;
When the pressing position is located in control area, the corresponding first preset pressure threshold value in the control area is obtained;
When the pressure data is less than the first preset pressure threshold value, the electronic equipment realizes the first function, while controlling institute Motor is stated to vibrate by the first predetermined manner;
When the pressure data is greater than the first preset pressure threshold value, the electronic equipment realizes the second function, while controlling institute Motor is stated to vibrate by the second predetermined manner.
2. motor control method according to claim 1, which is characterized in that the touch information further includes touch-control area;
When the pressure data is less than the first preset pressure threshold value, the electronic equipment realizes the first function, while controlling institute The step of motor is vibrated by the first predetermined manner is stated, is specifically included:
When the pressure data is less than the first preset pressure threshold value, the corresponding first touch-control area threshold in the control area is obtained Value;
When the touch-control area is greater than the first touch-control area threshold, the electronic equipment realizes the first function, same to time control The motor is made to vibrate by the first predetermined manner;
When the touch-control area is less than the first touch-control area threshold, the electronic equipment realizes third function, same to time control The motor is made to vibrate by third predetermined manner.
3. motor control method according to claim 1, which is characterized in that the touch information further includes touch-control duration;
When the pressure data is less than the first preset pressure threshold value, the electronic equipment realizes the first function, while controlling institute The step of motor is vibrated by the first predetermined manner is stated, is specifically included:
When the pressure data is less than the first preset pressure threshold value, the corresponding first touch-control duration threshold in the control area is obtained Value;
When the touch-control duration is less than the first touch-control duration threshold value, the electronic equipment realizes the first function, same to time control The motor is made to vibrate by the first predetermined manner;
When the touch-control duration is greater than the first touch-control duration threshold value, the electronic equipment realizes the 4th function, same to time control The motor is made to vibrate by the 4th predetermined manner.
4. motor control method according to claim 1, which is characterized in that the touch information further include touch-control duration and Touch-control area;
When the pressure data is less than the first preset pressure threshold value, the electronic equipment realizes the first function, while controlling institute The step of motor is vibrated by the first predetermined manner is stated, is specifically included:
When the pressure data is less than the first preset pressure threshold value, the corresponding second touch-control duration threshold in the control area is obtained Value and the first touch-control area threshold;
When the touch-control area be greater than the first touch-control area threshold, and the touch-control duration be greater than the second touch-control duration When threshold value, the electronic equipment realizes the first function, while controlling the motor and vibrating by the first predetermined manner;
When the touch-control area is less than the first touch-control area threshold or the touch-control duration less than the second touch-control duration When threshold value, the electronic equipment realizes five-function, while controlling the motor and vibrating by the 5th predetermined manner.
5. motor control method according to claim 1, which is characterized in that the acquisition user presses the touch screen After the step of touch information, further includes:
When the electronic equipment is in screen lock state, and the pressing position is located at fingerprint collecting region, start fingerprint collecting Module;
When the finger print acquisition module collects finger print information, the motor vibrations are controlled.
6. motor control method according to claim 1, which is characterized in that the acquisition user presses the touch screen After the step of touch information, further includes:
When touch screen shows the display picture of default application, operating space is obtained according to the default application and the display picture Domain;
When the pressing position is located in operating area, the corresponding operational order of the touch information is obtained;
The motor vibrations are controlled according to the operational order.
7. motor control method according to claim 6, which is characterized in that control the motor according to the operational order The step of vibration, specifically includes:
The audio-frequency information played is obtained according to the operational order;
When in the audio-frequency information including the first preset audio, controls the motor and vibrated by the 6th predetermined manner;
When in the audio-frequency information including the second preset audio, controls the motor and vibrated by the 7th predetermined manner.
8. a kind of controller for motor is applied to electronic equipment, which is characterized in that the electronic equipment includes touch screen and horse It reaches;Described device includes:
First obtains module, the touch information of the touch screen is pressed for obtaining user, the touch information includes number pressure According to and pressing position;
Second obtains module, when the pressing position is located in control area, obtains the control area corresponding first in advance If pressure threshold;
Control module, it is default by first for when the pressure data is less than the first preset pressure threshold value, controlling the motor Mode is vibrated;It is also used to when the pressure data is greater than the first preset pressure threshold value, controls the motor by the second default side Formula vibration.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that when the computer program on computers When operation, so that the computer executes method as described in any one of claim 1 to 7.
10. a kind of electronic equipment, including processor and memory, the memory storage have computer program, which is characterized in that The processor is by calling the computer program, for executing method as described in any one of claim 1 to 7.
CN201810956498.7A 2018-08-21 2018-08-21 Motor control method, motor control device, storage medium and electronic equipment Active CN109189220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810956498.7A CN109189220B (en) 2018-08-21 2018-08-21 Motor control method, motor control device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810956498.7A CN109189220B (en) 2018-08-21 2018-08-21 Motor control method, motor control device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109189220A true CN109189220A (en) 2019-01-11
CN109189220B CN109189220B (en) 2021-08-24

Family

ID=64919451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810956498.7A Active CN109189220B (en) 2018-08-21 2018-08-21 Motor control method, motor control device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109189220B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109821246A (en) * 2019-02-15 2019-05-31 上海艾为电子技术股份有限公司 Motor vibrations method and device, storage medium and electronic equipment
CN109947248A (en) * 2019-03-14 2019-06-28 努比亚技术有限公司 Vibration control method, mobile terminal and computer readable storage medium
CN110623768A (en) * 2019-08-09 2019-12-31 深圳市云顶信息技术有限公司 Method, device, equipment and readable medium for determining control of motor vibration speed change
CN110955354A (en) * 2019-11-11 2020-04-03 芯海科技(深圳)股份有限公司 Key response method, device, terminal and computer readable storage medium
CN111538408A (en) * 2020-04-07 2020-08-14 瑞声科技(新加坡)有限公司 Vibration-based indication method, touch control assembly, terminal and readable storage medium
WO2020191659A1 (en) * 2019-03-27 2020-10-01 深圳市汇顶科技股份有限公司 Fingerprint identification method applied below screen of terminal device, and terminal device
CN113132545A (en) * 2020-01-10 2021-07-16 北京小米移动软件有限公司 Electronic device
CN114488824A (en) * 2021-12-17 2022-05-13 珠海格力电器股份有限公司 Intelligent household appliance touch panel control method and device, storage medium and touch panel
WO2024066865A1 (en) * 2022-09-26 2024-04-04 荣耀终端有限公司 Stylus operation processing method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110042945A (en) * 2009-10-20 2011-04-27 삼성전기주식회사 Haptic feedback device and electronic device
US20130288777A1 (en) * 2012-04-25 2013-10-31 Electronic Entertainment Design And Research Interactive gaming analysis systems and methods
CN106843695A (en) * 2017-02-14 2017-06-13 维沃移动通信有限公司 The control method and mobile terminal of a kind of mobile terminal
CN107390908A (en) * 2016-05-17 2017-11-24 北京小米移动软件有限公司 Terminal, pressure touch feedback method and device
WO2017213347A2 (en) * 2016-06-08 2017-12-14 Samsung Electronics Co., Ltd. Mobile device with touch screens and method of controlling the same
CN107861622A (en) * 2017-11-29 2018-03-30 珠海市魅族科技有限公司 Touch-control feedback method, equipment, computer-readable recording medium and computer installation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110042945A (en) * 2009-10-20 2011-04-27 삼성전기주식회사 Haptic feedback device and electronic device
US20130288777A1 (en) * 2012-04-25 2013-10-31 Electronic Entertainment Design And Research Interactive gaming analysis systems and methods
CN107390908A (en) * 2016-05-17 2017-11-24 北京小米移动软件有限公司 Terminal, pressure touch feedback method and device
WO2017213347A2 (en) * 2016-06-08 2017-12-14 Samsung Electronics Co., Ltd. Mobile device with touch screens and method of controlling the same
CN106843695A (en) * 2017-02-14 2017-06-13 维沃移动通信有限公司 The control method and mobile terminal of a kind of mobile terminal
CN107861622A (en) * 2017-11-29 2018-03-30 珠海市魅族科技有限公司 Touch-control feedback method, equipment, computer-readable recording medium and computer installation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王海宏等编著: "《平板显示释疑手册 第1辑》", 31 December 2016 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109821246A (en) * 2019-02-15 2019-05-31 上海艾为电子技术股份有限公司 Motor vibrations method and device, storage medium and electronic equipment
CN109821246B (en) * 2019-02-15 2022-07-19 上海艾为电子技术股份有限公司 Motor vibration method and device, storage medium and electronic device
CN109947248A (en) * 2019-03-14 2019-06-28 努比亚技术有限公司 Vibration control method, mobile terminal and computer readable storage medium
WO2020191659A1 (en) * 2019-03-27 2020-10-01 深圳市汇顶科技股份有限公司 Fingerprint identification method applied below screen of terminal device, and terminal device
CN110623768A (en) * 2019-08-09 2019-12-31 深圳市云顶信息技术有限公司 Method, device, equipment and readable medium for determining control of motor vibration speed change
CN110955354A (en) * 2019-11-11 2020-04-03 芯海科技(深圳)股份有限公司 Key response method, device, terminal and computer readable storage medium
CN113132545A (en) * 2020-01-10 2021-07-16 北京小米移动软件有限公司 Electronic device
CN113132545B (en) * 2020-01-10 2022-11-15 北京小米移动软件有限公司 Electronic device
US11740698B2 (en) 2020-01-10 2023-08-29 Beijing Xiaomi Mobile Software Co., Ltd. Electronic device
CN111538408A (en) * 2020-04-07 2020-08-14 瑞声科技(新加坡)有限公司 Vibration-based indication method, touch control assembly, terminal and readable storage medium
CN114488824A (en) * 2021-12-17 2022-05-13 珠海格力电器股份有限公司 Intelligent household appliance touch panel control method and device, storage medium and touch panel
WO2024066865A1 (en) * 2022-09-26 2024-04-04 荣耀终端有限公司 Stylus operation processing method and apparatus

Also Published As

Publication number Publication date
CN109189220B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN109189220A (en) motor control method, device, storage medium and electronic equipment
US11422627B2 (en) Apparatus and method for providing haptic feedback to input unit
JP2020038706A (en) Multi-functional hand-held device
US10862595B2 (en) Method for processing radio frequency interference, and electronic device
CN105446646A (en) Virtual keyboard based content input method, apparatus and touch device
WO2017080110A1 (en) Touch signal-based mobile terminal operation method, system and mobile terminal
US20140285455A1 (en) Sliding control method and terminal device thereof
CN106254910B (en) Method and device for recording image
CN102929424A (en) Control method and control device for mobile terminal and mobile terminal
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
US20180024653A1 (en) Pen device - panel interaction based on electromagnetic signals output by the pen device
CN110703972B (en) File control method and electronic equipment
CN107239254A (en) A kind of method for controlling volume and device
CN106951143B (en) Method and device for hiding application icons
KR20200017788A (en) Electronic device including a button and method for operation in the electronic device
CN111124223A (en) Application interface switching method and electronic equipment
CN112416060A (en) Screen state control method and device, storage medium and mobile terminal
CN108073405B (en) Application program unloading method and mobile terminal
CN110290283B (en) Method and device for controlling vibration and folding screen equipment
CN107728923B (en) Operation processing method and mobile terminal
US20220321120A1 (en) Touch button, control method, and electronic device
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN108696642B (en) Method for arranging icons and mobile terminal
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN110442261B (en) Electronic equipment and touch operation detection method thereof

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