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

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

Info

Publication number
CN109189220B
CN109189220B CN201810956498.7A CN201810956498A CN109189220B CN 109189220 B CN109189220 B CN 109189220B CN 201810956498 A CN201810956498 A CN 201810956498A CN 109189220 B CN109189220 B CN 109189220B
Authority
CN
China
Prior art keywords
touch
area
motor
duration
threshold
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.)
Active
Application number
CN201810956498.7A
Other languages
Chinese (zh)
Other versions
CN109189220A (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a motor control method, a motor control device, a storage medium and electronic equipment, wherein the electronic equipment comprises a touch screen and a motor; the method comprises the following steps: acquiring touch information of a user pressing the touch screen, wherein the touch information comprises pressure data and a pressing position; when the pressing position is located in a control area, acquiring a first preset pressure threshold corresponding to the control area; when the pressure data is smaller than a first preset pressure threshold value, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode; and when the pressure data is greater than a first preset pressure threshold value, the electronic equipment realizes a second function and controls the motor to vibrate according to a second preset mode. The motor is controlled to vibrate according to different preset modes to prompt the user that the electronic equipment realizes different functions, so that the electronic equipment and the user can realize visual interaction and touch interaction.

Description

Motor control method, motor control device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a motor control method and apparatus, a storage medium, and an electronic device.
Background
With the continuous development of electronic technology, more and more functions can be realized by electronic equipment. The touch screen of the electronic equipment can be used for displaying contents and identifying the operation of a user, so that the operation requirement of the user is responded. Then, the touch screen has a single mode of responding to the operation requirement of the user, and the interaction effect is poor.
Disclosure of Invention
The embodiment of the application provides a motor control method, a motor control device, a storage medium and electronic equipment, which can improve the interaction effect between a touch screen and a user.
The embodiment of the application provides a motor control method, which is applied to electronic equipment, wherein the electronic equipment comprises a touch screen and a motor; the method comprises the following steps:
acquiring touch information of a user pressing the touch screen, wherein the touch information comprises pressure data and a pressing position;
when the pressing position is located in a control area, acquiring a first preset pressure threshold corresponding to the control area;
when the pressure data is smaller than a first preset pressure threshold value, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
and when the pressure data is greater than a first preset pressure threshold value, the electronic equipment realizes a second function and controls the motor to vibrate according to a second preset mode.
The embodiment of the application also provides a motor control device, which is applied to electronic equipment, wherein the electronic equipment comprises a touch screen and a motor; the device comprises:
the first acquisition module is used for acquiring touch information of a user pressing the touch screen, and the touch information comprises pressure data and a pressing position;
the second acquisition module is used for acquiring a first preset pressure threshold corresponding to a control area when the pressing position is located in the control area;
the control module is used for controlling the motor to vibrate in a first preset mode when the pressure data is smaller than a first preset pressure threshold value; and the motor is also used for controlling the motor to vibrate in a second preset mode when the pressure data is greater than a first preset pressure threshold value.
The present invention also provides a storage medium, on which a computer program is stored, which, when run on a computer, causes the computer to perform the method of any one of the above.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the method described above by calling the computer program.
According to the motor control method provided by the embodiment of the application, the motor can be controlled to vibrate according to different preset modes according to the pressure data and the pressing position of the user pressing the touch screen, so that the user electronic equipment is prompted to realize different functions, visual interaction and touch interaction can be realized between the electronic equipment and the user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic view of an application scenario of a motor control method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a motor control method according to an embodiment of the present disclosure.
Fig. 3 is a schematic view of another application scenario of the motor control method according to the embodiment of the present application.
Fig. 4 is another schematic flow chart of a motor control method according to an embodiment of the present disclosure.
Fig. 5 is a schematic view of another application scenario of the motor control method according to the embodiment of the present application.
Fig. 6 is a schematic structural diagram of a motor control device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the present application provides a motor control method, and an execution main body of the motor control method may be the motor control device provided in the embodiment of the present application, or an electronic device integrated with the motor control device, where the motor control device may be implemented in a hardware or software manner. The electronic device can be a smart phone, a tablet computer, a palm computer, a notebook computer or the like.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a motor control method according to an embodiment of the present application. The electronic equipment comprises a touch screen, and touch information of pressing the touch screen by a user can be collected through the touch screen, wherein the touch information comprises pressure data and a pressing position; when the pressing position of a user pressing the touch screen is located in the control area, acquiring a first preset pressure threshold corresponding to the control area; when the pressure data is smaller than a first preset pressure threshold, for example, a user lightly presses the touch screen, the electronic device realizes a first function, for example, a function of returning to a desktop, and simultaneously controls the motor to vibrate in a first preset mode, for example, low-amplitude and low-frequency vibration; when the pressure data is larger than the first preset pressure threshold, for example, the user presses the touch screen again, the electronic device realizes a second function, for example, a multitask management function, and simultaneously controls the motor to vibrate in a second preset mode, for example, in a high-amplitude high-frequency vibration mode.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a motor control method according to an embodiment of the present disclosure. The motor control method provided by the embodiment of the application is applied to electronic equipment, the electronic equipment comprises a touch screen and a motor, and the specific flow of the motor control method provided by the embodiment of the application can be as follows:
and 101, acquiring touch information of a user pressing the touch screen, wherein the touch information comprises pressure data and a pressing position.
The touch screen has a Z-axis data detection function, and when a user touches the touch screen with a hand, the touch force of the user can be obtained according to the change of the capacitance value of the touch screen. Wherein the Z-axis can be understood as an axis perpendicular to the touch screen direction.
The touch information of the user pressing the touch screen can be acquired in various ways. For example, the touch screen may adopt a three-dimensional touch (3d-touch) screen, and the touch screen may acquire touch information by using a capacitive detection method. Specifically, the change of the capacitance value of the touch screen is firstly obtained, and then the corresponding pressure value is obtained through calibration calculation. A deformation sensor can be arranged in the touch screen and can measure the deformation degree of an object, and the pressure value is reported by the pressure sensed by the deformation sensor. The pressing position can then be derived from the triggering position.
The motor in the embodiment of the present application may be a linear motor. The linear motor can directly convert electric energy into linear mechanical motion, the motion of the linear motor is linear motion, and the linear motor can be a Z-axis linear motor or an X-axis linear motor.
102, when the pressing position is located in the control area, acquiring a first preset pressure threshold corresponding to the control area.
The control area may be a virtual key area. The pressing position is located in the control area, and it can be understood that the user presses the virtual key. And then acquiring a first preset pressure threshold corresponding to the virtual key area.
The control area may be a notification bar area, and the control area may be an application icon area.
It should be noted that, the control regions are different, and the corresponding first preset pressure thresholds may also be different.
The first preset pressure threshold may be a fixed value, and is set in a preset manner. The first preset pressure threshold value can also be a dynamic value, and the data of the pressing pressure of the user for many times and the operation options of the subsequent user are collected and adjusted to obtain the threshold value which accords with the current user. Wherein the first pressure threshold may be used to distinguish whether the user is a light press or a heavy press.
In some embodiments, after the step 102, the following steps may be further included:
when the electronic equipment is in a screen locking state and the pressing position is located in the fingerprint acquisition area, starting the fingerprint acquisition module;
when fingerprint information is collected by the fingerprint collecting module, the motor is controlled to vibrate.
The electronic equipment is in a screen locking state and can be unlocked through fingerprints. When the touch screen acquires the touch information firstly, the fingerprint is likely to be unlocked later, and the fingerprint acquisition module is started at the moment. Then when fingerprint information is collected by the fingerprint collecting module, the motor is controlled to vibrate to prompt a user that the fingerprint information is collected. The screen locking state can be the touch screen being in a blank screen state and being in a locked screen state, and can also be the touch screen being in a bright screen state and being in a locked screen state. Wherein, fingerprint module sets up in the touch-control screen below, acquires fingerprint information through capacitance variation in the touch-control screen, also can acquire fingerprint information through the infrared light.
In some other embodiments, the fingerprint acquisition module is started when the fingerprint is paid; when fingerprint information is collected by the fingerprint collecting module, the motor is controlled to vibrate.
And 103, when the pressure data is smaller than a first preset pressure threshold value, the electronic equipment realizes a first function, and simultaneously controls the motor to vibrate according to a first preset mode.
The pressure data is smaller than the first preset pressure threshold, which can also be understood as that the user lightly presses the touch screen. At this time, the electronic device performs a first function, such as a return to the desktop function, while controlling the motor to vibrate in a first predetermined manner, such as a medium amplitude and medium frequency vibration.
In some embodiments, the touch information further includes a touch area, and the step corresponding to 103 may specifically include:
when the pressure data is smaller than a first preset pressure threshold, acquiring a first touch area threshold corresponding to the control area;
when the touch area is larger than a first touch area threshold, the electronic equipment realizes a first function, and simultaneously controls the motor to vibrate according to a first preset mode;
when the touch area is smaller than the first touch area threshold, the electronic device realizes a third function and controls the motor to vibrate in a third preset mode.
And distinguishing the light touch and the light press touch through the touch area. When the touch is lightly touched, the contact area between the user and the touch screen is small, and when the touch is lightly touched, the contact area between the user and the touch screen is large. When the touch is lightly pressed, the electronic device realizes a first function, and controls the motor to vibrate in a first preset mode, such as vibration with medium amplitude and medium frequency; when the touch is touched lightly, the electronic device realizes a third function, and controls the motor to vibrate in a third preset mode, such as low-amplitude low-frequency vibration. As shown in fig. 3, the first function and the third function may be functions of virtual keys, for example, the first function may be a return to desktop function, and the third function may be a return function. The first function and the third function may also be user-defined functions. The control area may include one virtual key, or may include 2 or more virtual keys.
In some embodiments, the touch information further includes a touch duration, and the step corresponding to 103 may specifically include:
when the pressure data is smaller than a first preset pressure threshold, acquiring a first touch duration threshold corresponding to the control area;
when the touch duration is smaller than a first touch duration threshold, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
and when the touch duration is greater than the first touch duration threshold, the electronic equipment realizes a fourth function, and simultaneously controls the motor to vibrate according to a fourth preset mode.
Optionally, in the embodiment, the tap touch and the tap touch are distinguished by the touch duration. When the touch is lightly touched, the time period of the contact between the user and the touch screen is long, and when the touch is lightly pressed, the time period of the contact between the user and the touch screen is long. When the touch is lightly pressed, the electronic device realizes a first function, and controls the motor to vibrate in a first preset mode, such as vibration with medium amplitude and medium frequency; when the touch is touched lightly, the electronic device realizes a fourth function, and controls the motor to vibrate in a fourth preset mode, such as low-amplitude low-frequency vibration. The first function and the fourth function may be functions of virtual keys, for example, the first function may be a function of returning to a desktop, and the fourth function may be a function of returning. The first function and the fourth function may also be user-defined functions. The fourth function may be the same as or different from the third function. The fourth preset mode may be the same as or different from the third preset mode.
Optionally, in this embodiment, the short-press touch and the long-press touch can be distinguished by the touch duration, a time period during which the user is in contact with the touch screen during the short-press touch is longer than a time period during which the user is in contact with the touch screen during the long-press touch. When the touch is pressed for a short time, the electronic equipment realizes a first function, and controls the motor to vibrate according to a first preset mode, such as vibration with medium amplitude and medium frequency; when long-time touch is pressed, the electronic device realizes a fourth function, and controls the motor to vibrate in a fourth preset mode, such as low-amplitude low-frequency vibration. The first function and the fourth function may be functions of virtual keys, for example, the first function may be a function of returning to a desktop, and the fourth function may be a function of returning. The first function and the fourth function may also be user-defined functions.
In some embodiments, the touch information further includes a touch duration and a touch area, and the step corresponding to 103 may specifically include:
when the pressure data is smaller than a first preset pressure threshold, acquiring a second touch duration threshold and a first touch area threshold corresponding to the control area;
when the touch area is larger than a first touch area threshold value and the touch duration is larger than a second touch duration threshold value, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
and when the touch area is smaller than the first touch area threshold value or the touch duration is smaller than the second touch duration threshold value, the electronic equipment realizes a fifth function and controls the motor to vibrate in a fifth preset mode.
And distinguishing the light touch and the light press touch through the touch area and the touch duration. When the touch is lightly touched, the contact area between the user and the touch screen is small, the contact time is short, and when the touch is lightly touched, the contact area between the user and the touch screen is large, and the contact time is long. When the touch is lightly pressed, the electronic device realizes a first function, and controls the motor to vibrate in a first preset mode, such as vibration with medium amplitude and medium frequency; when the touch is touched lightly, the electronic device realizes a third function, and controls the motor to vibrate in a third preset mode, such as low-amplitude low-frequency vibration. The first function and the third function may be functions of virtual keys, for example, the first function may be a function of returning to a desktop, and the third function may be a function of returning. The first function and the third function may also be user-defined functions. The first function and the third function may also be functions of controlling the notification bar, for example, the first function may be a pull-down notification bar function, and the third function may be a function of clearing notification information.
And 104, when the pressure data is greater than the first preset pressure threshold value, the electronic equipment realizes a second function, and simultaneously controls the motor to vibrate according to a second preset mode.
The pressure data is larger than the first preset pressure threshold value, and the touch screen can be pressed again by the user. At this time, the electronic device implements a second function, such as implementing a multi-tasking menu function, while controlling the motor to vibrate in a second predetermined manner, such as high amplitude high frequency vibration.
Different functions are realized according to different pressure data, and meanwhile, the motor is controlled to vibrate according to different preset modes to prompt the user that the electronic equipment realizes different functions, so that the electronic equipment and the user can realize visual interaction and touch interaction.
It should be noted that the pressure data being smaller than the first preset pressure threshold and the pressure data being larger than the first preset pressure threshold may also be understood as a user tapping the touch screen and tapping the touch screen.
It should be noted that the preset modes of the motor vibration may have different amplitudes, frequencies, time lengths, etc. Meanwhile, the frequency and the amplitude of the linear motor can be controlled separately for different waveforms, so that the display scene of the electronic equipment can be better matched. For example, when the virtual key is pressed, the linear motor vibrates vertically to the touch screen, so that the pressing effect of the linear motor is close to that of the physical key.
Referring to fig. 4, fig. 4 is another schematic flow chart of a motor control method according to an embodiment of the present disclosure. The specific process of the motor control method provided by the embodiment of the application can be as follows:
and 201, acquiring touch information of a user pressing the touch screen, wherein the touch information comprises pressure data and a pressing position.
202, when the touch screen displays a display screen of a preset application, acquiring an operation area according to the preset application and the display screen.
As shown in fig. 5, the preset application may be a game application, such as a shooting game application. The method comprises the steps that a preset application is in an operating state, a display picture of the preset application is displayed on a touch screen, an operation area is obtained according to the preset application and the display picture, and a virtual control key for controlling the preset application is arranged in the operation area. For example, virtual control keys for gun changing, shooting, and the like in a shooting game. The operation regions corresponding to different preset applications may be different. The same preset application, different display screens and corresponding operation areas may be different, for example, the initial map selection, the operation area of the character selection screen and the operation area of the shooting by entering the map may be different.
And 203, when the pressing position is located in the operation area, acquiring an operation instruction corresponding to the touch information.
The pressing position is located in the operation area, so that the user can understand that the user is performing operation, and the preset application and the display picture are integrated to obtain a corresponding operation instruction, such as gun changing, shooting and other operations in a shooting game. The operation instruction can be obtained according to the pressure data in the touch information, for example, the tap is a single shot, the tap is a continuous shot, and the tap is a still bomb. The operation area may be the entire display area or a specific area. The touch screen can also comprise a virtual attack key, and the light press is shooting and the heavy press is still bomb. The touch screen can also comprise other keys, and the light pressing and the heavy pressing correspond to different functions.
And 204, acquiring the played audio information according to the operation instruction.
Some of the preset application instructions have corresponding audio information, for example, operation instructions such as gun changing and shooting in shooting games correspond to audio information of gun changing and shooting.
205, when the audio information includes the first preset audio, controlling the motor to vibrate according to a sixth preset mode.
When the audio information includes a first preset audio frequency, for example, in a shooting game, the operation instruction is a continuous shooting instruction, the corresponding audio information includes a sound of continuous shooting, and at this time, the motor is controlled to vibrate according to a sixth preset mode, such as vibration at intervals, the vibration amplitude is matched with the volume of the audio frequency, and the vibration duration is also matched with the duration of the audio frequency. The interaction of the electronic device with the user may be improved.
And 206, when the audio information comprises a second preset audio, controlling the motor to vibrate according to a seventh preset mode.
When the audio information includes a first preset audio frequency, for example, in a shooting game, the operation instruction is a still bomb instruction, the corresponding audio information includes the sound of bomb explosion, and at this time, the motor is controlled to vibrate in a seventh preset mode, for example, with continuous vibration, and the vibration amplitude is matched with the volume of the audio frequency, and the vibration duration is also matched with the duration of the audio frequency. The interaction of the electronic device with the user may be improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a motor control device according to an embodiment of the present disclosure. The motor control apparatus 400 is applied to an electronic device including a touch screen and a motor. The motor control apparatus 400 includes a first acquisition module 410, a second acquisition module 420, and a control module 430. Wherein:
a first obtaining module 410, configured to obtain touch information of a user pressing a touch screen, where the touch information includes pressure data and a pressing position;
the second obtaining module 420 is configured to obtain a first preset pressure threshold corresponding to the control area when the pressing position is located in the control area;
the control module 430 is configured to control the motor to vibrate in a first preset manner when the pressure data is smaller than a first preset pressure threshold; and the motor is controlled to vibrate in a second preset mode when the pressure data is greater than the first preset pressure threshold value.
The term module, as used herein, may be considered a software object executing on the computing system. The different modules described herein may be considered as objects implemented on the computing system. The apparatus and method described in this application can be implemented in software, and certainly can be implemented in hardware, which are all within the scope of the present application.
In some embodiments, the touch information further includes a touch area; the control module 430 is further configured to obtain a first touch area threshold corresponding to the control area when the pressure data is smaller than a first preset pressure threshold;
when the touch area is larger than a first touch area threshold, the electronic equipment realizes a first function, and simultaneously controls the motor to vibrate according to a first preset mode;
when the touch area is smaller than the first touch area threshold, the electronic device realizes a third function and controls the motor to vibrate in a third preset mode.
In some embodiments, the touch information further includes a touch duration; the control module 430 is further configured to obtain a first touch duration threshold corresponding to the control area when the pressure data is smaller than a first preset pressure threshold;
when the touch duration is smaller than a first touch duration threshold, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
and when the touch duration is greater than the first touch duration threshold, the electronic equipment realizes a fourth function, and simultaneously controls the motor to vibrate according to a fourth preset mode. In some embodiments, the touch information further includes a touch duration and a touch area; the control module 430 is further configured to obtain a second touch duration threshold and a first touch area threshold corresponding to the control area when the pressure data is smaller than the first preset pressure threshold;
when the touch area is larger than a first touch area threshold value and the touch duration is larger than a second touch duration threshold value, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
and when the touch area is smaller than the first touch area threshold value or the touch duration is smaller than the second touch duration threshold value, the electronic equipment realizes a fifth function and controls the motor to vibrate in a fifth preset mode.
In some embodiments, the control module 430 is further configured to start the fingerprint acquisition module when the electronic device is in the screen locking state and the pressing position is in the fingerprint acquisition area;
when fingerprint information is collected by the fingerprint collecting module, the motor is controlled to vibrate.
In some embodiments, the control module 430 is further configured to, when the touch screen displays a display screen of a preset application, obtain an operation area according to the preset application and the display screen;
when the pressing position is located in the operation area, acquiring an operation instruction corresponding to the touch information;
and controlling the motor to vibrate according to the operation instruction.
In some embodiments, the control module 430 is further configured to obtain the played audio information according to the operation instruction;
when the audio information comprises a first preset audio, controlling the motor to vibrate according to a sixth preset mode;
and when the audio information comprises a second preset audio, controlling the motor to vibrate according to a seventh preset mode.
The embodiment of the application also provides the electronic equipment. Referring to fig. 7, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, and is connected to various parts of the whole electronic device through various interfaces and lines, and executes various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502, thereby implementing automatic change of the material information of the electronic device.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
acquiring touch information of a user pressing a touch screen, wherein the touch information comprises pressure data and a pressing position;
when the pressing position is located in the control area, acquiring a first preset pressure threshold corresponding to the control area;
when the pressure data is smaller than a first preset pressure threshold value, the electronic equipment realizes a first function and controls the motor to vibrate according to a first preset mode;
when the pressure data is greater than the first preset pressure threshold value, the electronic equipment realizes a second function, and simultaneously controls the motor to vibrate according to a second preset mode.
In some embodiments, the touch information further includes a touch area; when the electronic device implements the first function and controls the motor to vibrate in the first preset manner, the processor 501 may specifically execute the following steps:
when the pressure data is smaller than a first preset pressure threshold, acquiring a first touch area threshold corresponding to the control area;
when the touch area is larger than a first touch area threshold, the electronic equipment realizes a first function, and simultaneously controls the motor to vibrate according to a first preset mode;
when the touch area is smaller than the first touch area threshold, the electronic device realizes a third function and controls the motor to vibrate in a third preset mode.
In some embodiments, the touch information further includes a touch duration; when the electronic device implements the first function and controls the motor to vibrate in the first preset manner, the processor 501 may specifically execute the following steps:
when the pressure data is smaller than a first preset pressure threshold, acquiring a first touch duration threshold corresponding to the control area;
when the touch duration is smaller than a first touch duration threshold, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
and when the touch duration is greater than the first touch duration threshold, the electronic equipment realizes a fourth function, and simultaneously controls the motor to vibrate according to a fourth preset mode.
In some embodiments, the touch information further includes a touch duration and a touch area; when the electronic device implements the first function and controls the motor to vibrate in the first preset manner, the processor 501 may specifically execute the following steps:
when the pressure data is smaller than a first preset pressure threshold, acquiring a second touch duration threshold and a first touch area threshold corresponding to the control area;
when the touch area is larger than a first touch area threshold value and the touch duration is larger than a second touch duration threshold value, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
and when the touch area is smaller than the first touch area threshold value or the touch duration is smaller than the second touch duration threshold value, the electronic equipment realizes a fifth function and controls the motor to vibrate in a fifth preset mode.
In some embodiments, after obtaining the touch information of the user pressing the touch screen, the processor 501 may specifically perform the following steps:
when the electronic equipment is in a screen locking state and the pressing position is located in the fingerprint acquisition area, starting the fingerprint acquisition module;
when fingerprint information is collected by the fingerprint collecting module, the motor is controlled to vibrate.
In some embodiments, after obtaining the touch information of the user pressing the touch screen, the processor 501 may specifically perform the following steps:
when the touch screen displays a display picture of a preset application, acquiring an operation area according to the preset application and the display picture;
when the pressing position is located in the operation area, acquiring an operation instruction corresponding to the touch information;
and controlling the motor to vibrate according to the operation instruction.
In some embodiments, when controlling the motor to vibrate according to the operation instruction, the processor 501 may specifically perform the following steps:
acquiring played audio information according to the operation instruction;
when the audio information comprises a first preset audio, controlling the motor to vibrate according to a sixth preset mode;
and when the audio information comprises a second preset audio, controlling the motor to vibrate according to a seventh preset mode.
Referring to fig. 8, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 503 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The power supply 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 8, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
Embodiments of the present application also provide a storage medium storing a computer program, which when run on a computer, causes the computer to execute the motor control method in any of the above embodiments, such as: acquiring touch information of a user pressing a touch screen, wherein the touch information comprises pressure data and a pressing position;
when the pressing position is located in the control area, acquiring a first preset pressure threshold corresponding to the control area;
when the pressure data is smaller than a first preset pressure threshold value, the electronic equipment realizes a first function and controls the motor to vibrate according to a first preset mode;
when the pressure data is greater than the first preset pressure threshold value, the electronic equipment realizes a second function, and simultaneously controls the motor to vibrate according to a second preset mode.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the motor control method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the motor control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the computer program can include the process of the embodiment of the motor control method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the motor control device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each functional module may exist alone physically, or two or more functional modules may be integrated into one functional module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a motor control method, a motor control apparatus, a storage medium, and an electronic device provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A motor control method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a touch screen and a motor; the method comprises the following steps:
acquiring touch information of a user pressing the touch screen, wherein the touch information comprises pressure data, a pressing position, touch duration and a touch area, the touch area and the touch duration are used for distinguishing light touch and light touch, the small time of the contact area of the user and the touch screen is short when the user touches the touch screen, and the large time of the contact area of the user and the touch screen is long when the user touches the touch screen; the touch duration is also used for distinguishing short press touch and long press touch, the contact time between a user and the touch screen is short when the short press touch is performed, and the contact time between the user and the touch screen is long when the long press touch is performed;
if the touch screen displays a display picture of the shooting game application, acquiring an operation area according to the shooting game application and the display picture; when the pressing position is located in the operation area, determining that the user is currently operating, and acquiring operation instructions corresponding to the touch information, wherein the operation instructions comprise single shooting, continuous shooting, bomb throwing and gun changing; acquiring played audio information according to the operation instruction, wherein if the operation instruction is a continuous shooting instruction, the corresponding audio information comprises continuous shooting sound, the motor is controlled to vibrate in a multi-time interval mode, the vibration amplitude is matched with the volume of the audio, the vibration duration is also matched with the audio duration, if the operation instruction is a bomb throwing instruction, the corresponding audio information comprises the sound of bomb explosion, the motor is controlled to vibrate in a continuous mode, the vibration amplitude is matched with the volume of the audio, and the vibration duration is also matched with the audio duration;
if the touch screen does not display a display picture of a preset application, when the pressing position is located in a control area, acquiring a first preset pressure threshold corresponding to the control area;
when the pressure data is smaller than a first preset pressure threshold, acquiring a touch area threshold and/or a touch duration threshold corresponding to the control area; according to the result of comparison between the touch area and the touch area threshold value and/or the result of comparison between the touch duration and the touch duration threshold value, enabling the electronic equipment to realize a first function, and simultaneously controlling the motor to vibrate in a first preset mode;
and when the pressure data is greater than a first preset pressure threshold value, the electronic equipment realizes a second function and controls the motor to vibrate according to a second preset mode.
2. The motor control method according to claim 1, wherein when the pressure data is smaller than a first preset pressure threshold, a touch area threshold and/or a touch duration threshold corresponding to the control area are/is obtained; according to the result of comparing the touch area with the touch area threshold and/or according to the result of comparing the touch duration with the touch duration threshold, so that the electronic device realizes a first function, and simultaneously controls the motor to vibrate in a first preset mode, the method specifically comprises the following steps:
when the pressure data is smaller than a first preset pressure threshold, acquiring a first touch area threshold corresponding to the control area; when the touch area is larger than the first touch area threshold, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
the method further comprises the following steps: and when the touch area is smaller than the first touch area threshold, the electronic equipment realizes a third function and controls the motor to vibrate in a third preset mode.
3. The motor control method according to claim 1, wherein when the pressure data is smaller than a first preset pressure threshold, a touch area threshold and/or a touch duration threshold corresponding to the control area are/is obtained; according to the result of comparing the touch area with the touch area threshold and/or according to the result of comparing the touch duration with the touch duration threshold, so that the electronic device realizes a first function, and simultaneously controls the motor to vibrate in a first preset mode, the method specifically comprises the following steps:
when the pressure data is smaller than a first preset pressure threshold, acquiring a first touch duration threshold corresponding to the control area; when the touch duration is smaller than the first touch duration threshold, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
the method further comprises the following steps: and when the touch duration is greater than the first touch duration threshold, the electronic equipment realizes a fourth function and simultaneously controls the motor to vibrate according to a fourth preset mode.
4. The motor control method according to claim 1, wherein when the pressure data is smaller than a first preset pressure threshold, a touch area threshold and/or a touch duration threshold corresponding to the control area are/is obtained; according to the result of comparing the touch area with the touch area threshold and/or according to the result of comparing the touch duration with the touch duration threshold, so that the electronic device realizes a first function, and simultaneously controls the motor to vibrate in a first preset mode, the method specifically comprises the following steps:
when the pressure data is smaller than a first preset pressure threshold, acquiring a second touch duration threshold and a first touch area threshold corresponding to the control area; when the touch area is larger than the first touch area threshold and the touch duration is larger than the second touch duration threshold, the electronic equipment realizes a first function and controls the motor to vibrate in a first preset mode;
the method further comprises the following steps: and when the touch area is smaller than the first touch area threshold value or the touch duration is smaller than the second touch duration threshold value, the electronic equipment realizes a fifth function and controls the motor to vibrate in a fifth preset mode.
5. The motor control method according to claim 1, wherein after the step of obtaining the touch information of the user pressing the touch screen, the method further comprises:
when the electronic equipment is in a screen locking state and the pressing position is located in a fingerprint acquisition area, starting a fingerprint acquisition module;
when the fingerprint information is collected by the fingerprint collecting module, the motor is controlled to vibrate.
6. A motor control device is applied to electronic equipment, and is characterized in that the electronic equipment comprises a touch screen and a motor; the device comprises:
the touch control system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring touch control information of a user pressing the touch control screen, the touch control information comprises pressure data, a pressing position, touch control duration and a touch control area, the touch control area and the touch control duration are used for distinguishing light touch control and light touch control, the small time of the area of the user in contact with the touch control screen is short when the light touch control is performed, and the large time of the area of the user in contact with the touch control screen is long when the light touch control is performed; the touch duration is also used for distinguishing short press touch and long press touch, the contact time between a user and the touch screen is short when the short press touch is performed, and the contact time between the user and the touch screen is long when the long press touch is performed;
the second acquisition module is used for acquiring an operation area according to the shooting game application and the display picture if the touch screen displays the display picture of the shooting game application; when the pressing position is located in the operation area, determining that the user is currently operating, and acquiring operation instructions corresponding to the touch information, wherein the operation instructions comprise single shooting, continuous shooting, bomb throwing and gun changing; acquiring played audio information according to the operation instruction, wherein if the operation instruction is a continuous shooting instruction, the corresponding audio information comprises continuous shooting sound, the motor is controlled to vibrate in a multi-time interval mode, the vibration amplitude is matched with the volume of the audio, the vibration duration is also matched with the audio duration, if the operation instruction is a bomb throwing instruction, the corresponding audio information comprises the sound of bomb explosion, the motor is controlled to vibrate in a continuous mode, the vibration amplitude is matched with the volume of the audio, and the vibration duration is also matched with the audio duration; if the touch screen does not display a display picture of a preset application, when the pressing position is located in a control area, acquiring a first preset pressure threshold corresponding to the control area;
the control module is used for acquiring a touch area threshold and/or a touch duration threshold corresponding to the control area when the pressure data is smaller than a first preset pressure threshold; controlling the motor to vibrate in a first preset mode according to a result of comparing the touch area with the touch area threshold and/or according to a result of comparing the touch duration with the touch duration threshold; and the motor is also used for controlling the motor to vibrate in a second preset mode when the pressure data is greater than a first preset pressure threshold value.
7. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to execute the method according to any of claims 1 to 5.
8. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is adapted to perform the method of any of claims 1 to 5 by invoking the computer program.
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 CN109189220A (en) 2019-01-11
CN109189220B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110623768B (en) * 2019-08-09 2021-10-01 深圳市云顶信息技术有限公司 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
CN113132545B (en) 2020-01-10 2022-11-15 北京小米移动软件有限公司 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
CN116680154B (en) * 2022-09-26 2024-06-28 荣耀终端有限公司 Touch pen operation processing method and device

Citations (5)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9254437B2 (en) * 2012-04-25 2016-02-09 Electronic Entertainment Design And Research Interactive gaming analysis systems and methods

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN109189220A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109189220B (en) Motor control method, motor control device, storage medium and electronic equipment
EP3627730B1 (en) Radio frequency interference processing method and electronic device
US20200183574A1 (en) Multi-Task Operation Method and Electronic Device
CN109905754B (en) Virtual gift receiving method and device and storage equipment
WO2017080110A1 (en) Touch signal-based mobile terminal operation method, system and mobile terminal
US10372320B2 (en) Device and method for operating on touch screen, and storage medium
AU2013276998B2 (en) Mouse function provision method and terminal implementing the same
US20120026105A1 (en) Electronic device and method thereof for transmitting data
CN107193471B (en) Unlocking control method and related product
US20130167093A1 (en) Display apparatus for releasing locked state and method thereof
WO2014121623A1 (en) Sliding control method and terminal device thereof
CN105144068A (en) Application program display method and terminal
CN108984089B (en) Touch operation method and device, storage medium and electronic equipment
CN110752981B (en) Information control method and electronic equipment
CN110007822B (en) Interface display method and terminal equipment
CN110703972B (en) File control method and electronic equipment
US20220279064A1 (en) Interface display method and electronic device
CN106951143B (en) Method and device for hiding application icons
CN108334272A (en) A kind of control method and mobile terminal
CN108815844B (en) Mobile terminal, game control method thereof, electronic device and storage medium
US20150205392A1 (en) Display effect control using hovering detection of input device
CN108073405B (en) Application program unloading method and mobile terminal
CN109240575A (en) A kind of screen control method and electronic equipment
CN104182161A (en) Method and device for opening screen functional area
CN113050863A (en) Page switching method and device, storage medium and electronic equipment

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