CN114222963B - Vibration driving method, vibration driving device, electronic apparatus, and computer-readable medium - Google Patents

Vibration driving method, vibration driving device, electronic apparatus, and computer-readable medium Download PDF

Info

Publication number
CN114222963B
CN114222963B CN201980099299.1A CN201980099299A CN114222963B CN 114222963 B CN114222963 B CN 114222963B CN 201980099299 A CN201980099299 A CN 201980099299A CN 114222963 B CN114222963 B CN 114222963B
Authority
CN
China
Prior art keywords
vibration
touch screen
touch
signal
control interface
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
CN201980099299.1A
Other languages
Chinese (zh)
Other versions
CN114222963A (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
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co 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, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114222963A publication Critical patent/CN114222963A/en
Application granted granted Critical
Publication of CN114222963B publication Critical patent/CN114222963B/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/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

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

A vibration driving method, apparatus (800, 900, 1000), an electronic device (100) and a computer readable medium, applied to a touch screen processor (112) of the electronic device (100), the electronic device (100) further comprising a touch screen (140) and a vibration apparatus (130), a control interface of the touch screen processor (112) being connected to the vibration apparatus (130), the method comprising: detecting a touch gesture acting on the touch screen (140) (S201); and if the touch gesture meets the specified condition, sending a vibration instruction to the vibration device (130) through the control interface, wherein the vibration instruction is used for indicating the vibration device (130) to vibrate (S202). Therefore, as the control interface of the touch screen processor (112) is connected with the vibration device (130), the touch screen processor (112) can directly control the vibration device (130) to vibrate, and service components in an operating system of the mobile terminal are not required to drive the vibration device (130) to vibrate, so that response lag is reduced, and user experience is improved.

Description

Vibration driving method, vibration driving device, electronic apparatus, and computer-readable medium
Technical Field
The present application relates to the field of mobile terminals, and more particularly, to a vibration driving method, device, electronic apparatus, and computer readable medium.
Background
In some conventional mobile terminals, when a user operates a touch screen, the mobile terminal may feed back a vibration. Specifically, after the operating system of the mobile terminal detects that the touch screen is acted on, the service component in the operating system of the mobile terminal drives the vibration device to vibrate, response lag exists, and user experience is not high.
Disclosure of Invention
The application provides a vibration driving method, a vibration driving device, electronic equipment and a computer readable medium, so as to improve the defects.
In a first aspect, an embodiment of the present application provides a vibration driving method, which is applied to a touch screen processor of an electronic device, where the electronic device further includes a touch screen and a vibration device, and a control interface of the touch screen processor is connected to the vibration device, where the method includes: detecting a touch gesture acting on the touch screen; and if the touch gesture meets the specified condition, sending a vibration instruction to the vibration device through the control interface, wherein the vibration instruction is used for indicating the vibration device to vibrate.
In a second aspect, an embodiment of the present application further provides a vibration driving apparatus, which is applied to a touch screen processor of an electronic device, where the electronic device further includes a touch screen and a vibration apparatus, a control interface of the touch screen processor is connected to the vibration apparatus, and the vibration driving apparatus includes: a detection unit and a determination unit. And the detection unit is used for detecting a touch gesture acting on the touch screen. And the determining unit is used for sending a vibration instruction to the vibration device through the control interface if the touch gesture meets the specified condition, wherein the vibration instruction is used for indicating the vibration of the vibration device.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a memory; the device comprises a touch screen processor, a touch screen and a vibration device, wherein a control interface of the touch screen processor is connected with the vibration device; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the touch screen processor, the one or more applications configured to perform the above-described method.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium storing program code executable by a processor, the program code when executed by the processor causing the processor to perform the above method.
According to the vibration driving method, the device, the electronic equipment and the computer readable medium, when the touch gesture acting on the touch screen is detected, if the touch gesture meets the specified condition, a vibration instruction is sent to the vibration device through the control interface, and the vibration instruction is used for indicating the vibration of the vibration device. Therefore, as the control interface of the touch screen processor is connected with the vibration device, the touch screen processor can directly control the vibration device to vibrate, and a service component in an operating system of the mobile terminal is not required to drive the vibration device to vibrate, so that response lag is reduced, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows an application scenario diagram of a vibration driving method and device provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for driving vibration according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for driving vibration according to another embodiment of the present application;
FIG. 4 is a flow chart of a method for driving vibration according to another embodiment of the present application;
FIG. 5 is a schematic diagram of an unlock interface provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a payment interface provided by an embodiment of the present application;
FIG. 7 is a flow chart illustrating a method of vibration driving according to still another embodiment of the present application;
FIG. 8 shows a block diagram of a vibration driving apparatus according to an embodiment of the present application;
FIG. 9 is a block diagram of a vibration driving apparatus according to another embodiment of the present application;
FIG. 10 is a block diagram of a vibration driving apparatus according to another embodiment of the present application;
FIG. 11 shows a block diagram of an electronic device provided by an embodiment of the application;
fig. 12 illustrates a storage unit for storing or carrying program codes for implementing the vibration driving method according to the embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
At present, the electronic equipment provides a convenient input mode for people by adopting a touch technology, and brings great convenience for people. With the development of electronic device technologies, functions developed based on a touch screen are continuously increased, and in some scenarios, in order to enable a user to remind a touch operation of the user through vibration of a vibration device in the electronic device when the user touches the screen, so as to improve the experience of the user, a vibration system is arranged in the electronic device, as shown in fig. 1, and the vibration system comprises a vibration component and a vibration device, and data interaction can be performed between an operating system kernel and a touch screen processor, and data interaction can be performed between the operating system kernel and the vibration component.
Specifically, the touch screen processor is electrically connected with a touch screen of the electronic device, and can detect a touch signal in the touch screen, and report a touched coordinate point detected by the touch screen as a touch coordinate point to the operating system kernel.
It should be noted that the touch screen processor and the central processor of the electronic device may be different processors, and the electronic device may include a central processor (CPU, central processing unit) and a touch screen processor, where the central processor is electrically connected to the touch screen processor, and the central processor is an operation and control core of an operating system of the electronic device and is a final execution unit for information processing and program running. The touch screen processor is electrically connected with a touch screen of the electronic equipment, can detect touch signals in the touch screen, and reports touched coordinate points detected by the touch screen to the central processing unit as touch coordinate points. That is, the touch screen processor is a processor corresponding to the touch screen and is used for controlling the on/off of the touch screen and collecting gestures such as touch operations of a user on the touch screen.
Specifically, the touch screen processor may detect an electrical signal of each coordinate point in the touch screen by periodically scanning the touch screen, and obtain a touch signal of each coordinate point in the touch screen as a detection value of each coordinate point. For example, the touch screen is a capacitive touch screen, and the touch screen processor can detect the capacitance value of the intersection point of the transverse electrode and the longitudinal electrode of the touch screen, so as to acquire the capacitance value of the coordinate point where the intersection point of the transverse electrode and the longitudinal electrode is located, and the capacitance value is used as the detection value of the coordinate point. In the embodiment of the present application, a capacitive touch screen of a mobile phone is taken as an example for illustration, and it can be understood that the touch screen in the embodiment of the present application is not limited to a capacitive touch screen, and other types of touch screens can be used in the touch screen calibration method provided in the embodiment of the present application.
In addition, when the touch screen processor detects a touch coordinate point, the touch coordinate point is reported to the kernel of the operating system.
After the operating system kernel acquires the touch operation reported by the touch screen processor, a vibration component may be invoked, where the vibration component is used to control the vibration device to vibrate and adjust the vibration parameter of the vibration device, for example, for an android system (android), and the vibration component may be a vibration SERVICE, for example, VIBRATOR _service. The operating system kernel may invoke the vibration SERVICE, for example, by means of GETSYSTEMSERVICE (VIBRATOR _service).
The vibration assembly is then provided with an underlying system, specifically, the vibration device is controlled to begin vibrating.
However, the inventor finds in the study that the vibration system needs the touch screen processor to report the touch operation to the android system, then the vibration assembly is called by the installation system, the vibration assembly controls the vibration device to vibrate, the vibration device is set downwards after the touch operation needs to be reported, and the process has response lag and poor user experience.
Therefore, in order to overcome the above-mentioned drawbacks, an embodiment of the present application provides a vibration driving method, as shown in fig. 2, which is applied to a touch screen processor of an electronic device, where the electronic device further includes a touch screen and a vibration device, and a control interface of the touch screen processor is connected to the vibration device. Specifically, the method comprises the following steps: s201 to S202.
S201: a touch gesture is detected that is applied to the touch screen.
Specifically, the reference value of the touch screen may be stored in the electronic device, for example, in a form of a reference value table, including a reference value of each coordinate point in the touch screen, where the reference value of each coordinate point represents a detection value of the touch screen when the coordinate point is not touched. For example, for a capacitive touch screen, the reference value for a certain coordinate point represents the capacitance value of the capacitive touch screen when the coordinate point is not touched. And after detecting the detection values of the coordinate points, the touch screen processor compares the detection values with the reference values. And judging whether the difference value between the detection value of the coordinate point and the reference value of the coordinate point exceeds a preset threshold value at each coordinate point, and if so, determining that the coordinate point has touch.
Specifically, the touch gesture may be a pressing operation or a sliding operation.
Specifically, when a user presses the touch screen, the touch screen can detect the pressing operation and output an electrical signal corresponding to the pressing operation, so that a processor or an operating system in the electronic device can collect the electrical signal, and when the electrical signal is determined to be greater than a preset value, it is determined that the pressing operation acting on the touch screen is detected. The preset value is set according to actual use, and if the electric signal is smaller than the preset value, the operation corresponding to the electric signal is judged to be not effective pressing operation, and the fact that the pressing operation acted on the touch screen is not detected is judged.
The pressing operation corresponds to pressing information, where the pressing information includes a pressing location point and a pressing time, where the pressing location point may be determined by the foregoing detection of the touch location point, and the pressing time may be determined by starting timing when the pressing operation is determined to be a valid pressing operation, and counting a duration of the pressing operation, specifically, starting a timer when the pressing operation acting on the touch screen is detected, and counting the duration of the pressing operation by the timer.
The sliding operation corresponds to sliding track information, wherein the sliding track information is a plurality of touch point position information which are continuous in sliding time, namely, each touch point position information corresponds to a time point, and the sliding time is a time period from the beginning to the end of sliding. Specifically, the start point of the sliding operation may be a touch point of the pressing operation, and the sliding operation and the pressing operation are continuous, that is, the specific input manner of the sliding operation may be that the user inputs the pressing operation first, that is, after the user presses the touch screen and keeps pressing for a preset period of time, the sliding is continued while keeping pressing the screen, that is, the start point of the sliding operation is a touch point corresponding to the pressing operation, and the sliding operation and the pressing operation are continuous and the pressing portion does not leave the touch screen during the pressing operation to the sliding operation. The pressing part is a part where a user presses the touch screen.
S202: and if the touch gesture meets the specified condition, sending a vibration instruction to the vibration device through the control interface, wherein the vibration instruction is used for indicating the vibration device to vibrate.
When the touch screen processor detects a touch gesture, judging whether the touch gesture meets a specified condition, wherein the specified condition can be a preset condition for starting the vibration of the electronic device under the condition that the touch gesture is input by a user. Specifically, description will be given in the subsequent embodiments.
If the touch gesture meets the specified condition, a vibration instruction is sent to the vibration device through the control interface, and the vibration device starts vibrating when the vibration instruction is acquired, so that a user can know the input of the touch gesture or the starting of a function corresponding to the touch gesture through the vibration of the electronic equipment. The vibration instruction may include vibration information, where the vibration information includes a vibration frequency or a duration of vibration, and the vibration device analyzes the vibration information after acquiring the vibration instruction, and adjusts a vibration parameter of the vibration device according to the vibration information.
Because the control interface of the touch screen processor is connected with the vibration device, the touch screen processor starts the vibration device to vibrate in a mode that the control interface sends a vibration instruction, so that after a user inputs a touch gesture meeting a specified condition, the touch gesture is not required to be reported to the kernel of the operating system by the touch screen processor, and then the kernel of the operating system calls the vibration component which controls the vibration device to start vibration, but the touch screen processor directly controls the vibration device to vibrate, time lag can be reduced, and user experience is improved.
Referring to fig. 3, an embodiment of the present application provides a vibration driving method, as shown in fig. 3, where the method is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, and a control interface of the touch screen processor is connected with the vibration device. Specifically, the method comprises the following steps: s301, S302 to S303.
S301: a touch gesture is detected that is applied to the touch screen.
S302: and judging whether the touch gesture meets a specified condition.
S303: inputting the specified signal to the driving device through the control interface.
The vibration instruction comprises a designated signal, the vibration instruction is used for indicating the vibration device to vibrate, and the designated signal is also used for indicating the vibration device to vibrate.
The driving device can identify the specified signal, specifically, the specified signal has a preset carrier rate, the preset carrier rate can be used as an identity of the specified signal, the vibration device can analyze the specified signal to obtain the carrier rate of the specified signal when acquiring the specified signal, and if the carrier rate is matched with the preset carrier rate, the vibration device determines that the specified signal is received, then the vibration is started. In addition, the specified signal also has a preset amplitude-frequency characteristic, and the preset amplitude-frequency characteristic is used as an identity of the specified signal, and when the specified signal is acquired by the vibration device, the specified signal can be analyzed to obtain the amplitude-frequency characteristic of the specified signal, for example, the specified signal is subjected to Fourier transformation to obtain the amplitude-frequency characteristic of the signal. If the amplitude-frequency characteristic is matched with the preset amplitude-frequency characteristic, the specified signal is determined to be received, and vibration is started.
If the touch gesture does not satisfy the specified condition as a result of the determination, a state in which the vibration device is prohibited from vibrating may be maintained, i.e., the vibration device is kept from vibrating, or the execution of S301 may be returned, i.e., the detection of the touch gesture acting on the touch screen may be continued.
As an embodiment, the touch screen processor is further capable of controlling the driving device to be in a state of prohibiting vibration, and specifically, the control interface of the touch screen processor outputs a prohibition signal to the driving device, and the driving device keeps the vibration device from prohibiting vibration when receiving the prohibition signal output by the control interface of the touch screen processor. And if the touch gesture meets the specified condition, the specific implementation mode of inputting the specified signal to the driving device through the control interface is that when the signal currently output by the control interface is a forbidden signal, the signal output by the control interface is changed from the forbidden signal to the specified signal, and the forbidden signal is used for indicating the vibration device to forbidden vibration.
Specifically, as one embodiment, the touch screen processor determines whether the touch gesture satisfies a specified condition, if the specified condition is satisfied, the touch screen processor determines whether a signal currently output by the control interface is a disable signal, if the signal currently output by the control interface is the disable signal, the signal output by the control interface is changed from the disable signal to the specified signal, specifically, the disable signal is different from the specified signal, specifically, may be different in carrier rate or amplitude-frequency characteristics, the driving device may determine whether the received signal is the disable signal or the specified signal in the above manner, if the received signal is the disable signal, the driving device is controlled to be in the disable vibration mode, if the received signal is the specified signal, the driving device is controlled to be in the enable vibration mode, in which the driving device does not respond to the vibration request, that is, cannot vibrate, and in the enable vibration mode, the driving device vibrates.
In the embodiment of the present application, the levels of the prohibiting signal and the designating signal are opposite, specifically, the frequencies and the amplitudes of the prohibiting signal and the designating signal may be the same, but the levels are opposite, for example, the phase difference between the prohibiting signal and the designating signal is an odd multiple of 90 degrees. The drive means are able to distinguish between the inhibit signal and said designation signal by the level of the signal.
In the embodiment of the present application, the specific implementation manner of changing the signal output by the control interface from the disable signal to the specific signal is to perform the operation of inverting the waveform of the disable signal output by the control interface to change the signal to the specific signal, that is, directly invert the waveform of the disable signal up and down, so that the signal output by the control interface is changed from the disable signal to the specific signal. For example, the disable signal and the designation signal are both square wave signals, and the sum of the duty cycle of the disable signal and the duty cycle of the designation signal is 100%, for example, the duty cycle of the disable signal is 30%, and the duty cycle of the designation signal is 70%.
In the embodiment of the application, the control interface is a control pin of the touch screen processor, and the control pin is connected with a driving pin of the vibration device, so that the control pin of the touch screen processor reserves an independent pin for the touch screen processor and is used for being connected with the driving device, and the driving pin of the vibration device is a specific pin of the vibration device.
Specifically, the level of the disable signal is a first level, the level of the specified signal is a second level, and the first level may be a high level or a low level, and the second level is opposite to the first level, for example, when the first level is a high level, the second level is a low level, and when the first level is a low level, the second level is a high level. The change of the level of the control interface input driving device of the touch screen processor can be achieved through a controllable switch, for example, the control interface of the touch screen processor is connected with the controllable switch, when the controllable switch is grounded and the control interface of the touch screen processor outputs a disable signal, the control interface controls the switch to be closed and opened, one contact of the switch is grounded, the other contact of the switch is connected with a driving pin of the vibration device, when the switch is closed, the driving pin of the vibration device is grounded, the control interface of the touch screen processor outputs a low-level signal to the driving pin of the vibration device, when the vibration device is in a disable vibration mode, namely, no vibration, the driving pin of the vibration device is disconnected from ground and becomes high-level, and when the control interface of the touch screen processor outputs a high-level signal to the driving pin of the vibration device, the vibration device is in a vibration mode, namely, the vibration is triggered.
As an implementation manner, the control pin of the touch screen processor may be a General-purpose input/output (GPIO) interface of the touch screen processor chip, and the driving pin of the vibration device may also be a General-purpose input/output interface of the vibration device control chip. The vibration device control chip may be a chip for controlling vibration of the vibration device. As one embodiment, the vibration device is a linear motor, and the vibration device control chip is a driving chip, and the driving pin of the vibration device is a general input/output interface of the driving chip. The control pin of the driving chip receives the waveform of the specified signal to execute the function of triggering vibration.
Referring to fig. 4, an embodiment of the present application provides a vibration driving method, as shown in fig. 4, where the method is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, and a control interface of the touch screen processor is connected with the vibration device. Specifically, the method comprises the following steps: s401 to S405.
S401: a touch gesture is detected that is applied to the touch screen.
S402: and acquiring an operation event corresponding to the touch gesture.
As an embodiment, a correspondence between an operation gesture and an operation event may be preset, specifically, the operation gesture is a press gesture, then a first correspondence between a duration of the operation gesture and an operation event is preset, and the first correspondence includes correspondence between a plurality of time intervals and identifiers of the operation event, where each time interval corresponds to an identifier of the operation event, a duration of the detected operation gesture is determined, a target time interval to which the duration belongs is determined, and then, in the first correspondence, an identifier of the operation event corresponding to the target time interval is determined, and then, the identifier of the operation event can represent the operation event corresponding to the touch gesture. And if the first corresponding relation corresponding to the different pages is different, determining the currently displayed interface, and determining the first corresponding relation corresponding to the interface.
In addition, the operation event may be an operation event corresponding to an operation region of the operation gesture. Specifically, a second corresponding relation between an operation area of an operation gesture and an operation event is preset, the second corresponding relation comprises corresponding relation between a plurality of operation areas and identifiers of the operation event, wherein each operation area corresponds to an identifier of one operation event, the operation area of the detected operation gesture is determined to be used as a target operation area, then, in the second corresponding relation, the identifier of the operation event corresponding to the target operation area is determined, and then the identifier of the operation event can represent the operation event corresponding to the touch gesture. And similarly, if the second corresponding relation corresponding to the different pages is different, determining the currently displayed interface, and determining the second corresponding relation corresponding to the interface.
Of course, if the operation gesture is a swipe gesture, the corresponding operation event may be determined according to the swipe track. Specifically, a third corresponding relation between a sliding track of an operation gesture and an operation event is preset, the third corresponding relation comprises corresponding relations between a plurality of sliding tracks and identifiers of the operation event, wherein each sliding track corresponds to an identifier of one operation event, the sliding track of the detected operation gesture is determined to be used as a target sliding track, then, in the third corresponding relation, the identifier of the operation event corresponding to the target sliding track is determined, and then the identifier of the operation event can represent the operation event corresponding to the touch gesture. And similarly, if the third corresponding relation corresponding to different pages is different, determining the currently displayed interface, and determining the third corresponding relation corresponding to the interface.
S403: and judging whether the operation event corresponding to the touch gesture is a designated event.
S404: and sending a vibration instruction to the vibration device through the control interface.
S405: and sending a prohibition instruction to the vibration device through the control interface.
The designated event is an event which needs to trigger the vibration device of the electronic equipment to vibrate so as to remind a user. The method may be that the operation event corresponding to the touch gesture is a specific event, and the implementation manner of determining whether the operation event corresponding to the touch gesture is a specific event may be that whether the identification of the operation event corresponding to the touch gesture is matched with the identification of the specific event, if so, it is determined that the operation event corresponding to the touch gesture is a specific event, otherwise, it is determined that the operation event corresponding to the touch gesture is not a specific event.
In the embodiment of the present application, the operation gesture is a press gesture, i.e. the touch operation is a press operation. The embodiment of determining whether the operation event corresponding to the touch gesture is the specified event may be determined according to the operation region of the touch gesture, and specifically, the operation event corresponding to the operation region may be determined according to the second correspondence relationship, or whether the operation region of the touch operation is the specified region may be directly determined to determine whether the operation event corresponding to the touch gesture is the specified event. Specifically, judging whether the operation event corresponding to the touch gesture is a specific implementation mode of a designated event or not is determining an operation area of the touch gesture on the touch screen; if the operation area is the designated area, judging that the operation event corresponding to the touch gesture is the designated event; and if the operation area is not the designated area, judging that the operation event corresponding to the touch gesture is not the designated event.
The designated area is a preset area, and the user presses the designated area to indicate that a designated event is triggered, wherein the designated area can be the preset area.
In the embodiment of the present application, if the designated time is an under-screen capture event of the touch screen, the designated area is an area of the electronic device for capturing a fingerprint, as shown in fig. 5, a designated area 501 is preset on the touch screen of the electronic device, and when the electronic device starts the under-screen capture function of the touch screen, a user places a finger in the designated area 501, and the electronic device performs a fingerprint capture operation. If the user presses the finger against the designated area 501, the touch screen processor can detect that the designated area 501 is pressed, a vibration instruction is sent to the vibration device through the control interface, so that the vibration device of the electronic device vibrates, the user can feel the vibration of the electronic device, the user knows that the pressed position of the finger is the fingerprint acquisition area, if the touch screen processor does not detect that the designated area 501 is pressed, a prohibition instruction is sent to the vibration device through the control interface, wherein the prohibition instruction is used for prohibiting the vibration device from vibrating, specifically, the prohibition instruction may be the prohibition signal, the electronic device does not vibrate, the user knows that the pressed position of the finger is not the fingerprint acquisition area, and the user needs to adjust the pressed position of the finger.
The designated area 501 of the electronic device is used for collecting fingerprints when the electronic device starts the under-screen collection function of the touch screen, so that whether the under-screen collection function of the touch gesture is started or not needs to be determined before the operation area of the touch gesture on the touch screen is determined, specifically, whether the under-screen collection function of the touch gesture on the touch screen is started or not is determined according to the specific implementation mode of the operation area of the touch gesture on the touch screen; and if the touch gesture is started, determining an operation area of the touch gesture on the touch screen.
Specifically, when the electronic device is in the black screen state, whether the acquisition function under the touch screen is started or not may be judged. In the embodiment of the application, when the electronic device is in the black screen state, if the under-screen acquisition function of the touch screen is started, the touch screen processor determines whether the touch gesture acting on the touch screen is a fingerprint input operation, specifically, the operation area of the touch gesture on the touch screen can be determined, and whether the area is a designated area is judged, wherein the designated area is an area for acquiring fingerprints on the touch screen. And if the touch gesture is the fingerprint input operation, sending a vibration instruction to the vibration device through the control interface, wherein the vibration instruction is used for indicating the vibration of the vibration device.
Specifically, whether the acquisition function under the touch screen is started or not can be determined by judging whether the current interface is a fingerprint acquisition interface or not. Specifically, determining an identifier of an interface currently displayed by the electronic device, determining whether the identifier meets a preset interface condition, if so, judging that the under-screen acquisition function of the touch screen is started, and if not, judging that the under-screen acquisition function of the touch screen is not started.
Specifically, the implementation of determining whether the identifier meets the preset interface condition may be to determine whether the identifier of the interface is a designated interface identifier, if so, determine that the identifier meets the preset interface condition, otherwise, determine that the identifier does not meet the preset interface condition.
In addition, the implementation manner of determining whether the identifier meets the preset interface condition may further be that the type of the interface is determined according to the identifier of the interface, if the type of the interface is the preset type, the identifier is determined to meet the preset interface condition, otherwise, if the identifier is determined not to meet the preset interface condition, the preset type may be an unlocking interface and a payment interface.
As shown in fig. 5 and 6, the interface shown in fig. 5 is an unlock interface, and the interface shown in fig. 6 is a payment interface, specifically, whether the acquisition function under the touch screen is turned on may be further determined according to the operation of the user entering the interface. Specifically, the interface corresponds to an entering operation, which may be an operation button, and when the operation button is pressed, the interface shown in fig. 5 or fig. 6, which needs to start the under-screen acquisition function of the touch screen, is displayed, and when the operation button is detected to be pressed, it is determined that the under-screen acquisition function of the touch screen is started. For example, the user clicks the payment button, and then determines that the acquisition function is turned on under the touch screen, while the electronic device displays the payment interface shown in fig. 6 on the screen.
As another embodiment, the processor detects a state of a parameter corresponding to the under-touch screen capture function, for example, the parameter is in a first state when the under-touch screen capture function is on and the parameter is in a second state when the under-touch screen capture function is off. Therefore, whether the acquisition function under the touch screen is started or not can be determined by detecting whether the parameter to be detected is in the first state or not.
Further, considering that the touch operation is acquired in the designated area, but the touch operation is not used for acquiring fingerprints, for example, the electronic device presses a screen by other objects in a pocket of a user, or the user wears a glove to press the touch screen, the electronic device further comprises a fingerprint acquisition device arranged under an operation area on the touch screen, and the embodiment of sending a vibration instruction to the vibration device through the control interface may be that the touch screen processor determines whether the fingerprint acquired by the fingerprint acquisition device is acquired in a preset time period; and if the fingerprint acquired by the fingerprint acquisition device is acquired, sending a vibration instruction to the vibration device through the control interface, and if the fingerprint acquired by the fingerprint acquisition device is not acquired, keeping the vibration device in a state of prohibiting vibration. The preset period of time may be set according to actual use, and may be 3 seconds, for example.
Referring to fig. 7, an embodiment of the present application provides a vibration driving method, as shown in fig. 7, where the method is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, and a control interface of the touch screen processor is connected with the vibration device. Specifically, the method comprises the following steps: s701 to S706.
S701: a touch gesture is detected that is applied to the touch screen.
S702: and acquiring the operation parameters of the electronic equipment.
The operation parameters may be parameters such as CPU utilization rate, remaining power, and remaining memory of the electronic device.
S703: and judging whether the operation parameters meet preset conditions or not.
Judging whether the operation parameters meet preset conditions or not; if the preset requirement is met, judging whether the touch gesture meets a specified condition or not; and if the specified condition is met, sending a vibration instruction to the vibration device through the control interface.
In the embodiment of the present application, the operation parameter may be a CPU usage rate of the electronic device, and the specific implementation manner of determining whether the operation parameter meets the preset condition is to determine whether the usage rate of the central processing unit is greater than a usage rate threshold, if so, determine that the operation parameter meets the preset condition, otherwise, determine that the operation parameter does not meet the preset condition.
The usage of the central processor may be obtained by looking at a task manager of the electronic device, for example, in an android system, through an adb shell top instruction. The usage rate threshold may be a usage rate set by a user, for example, the usage rate threshold may be 60%, 40% is less than 60% assuming that the current usage rate of the CPU is 40%, the usage rate of the CPU is determined to be less than the usage rate threshold, 70% is greater than 60% assuming that the current usage rate of the CPU is 70%, and the usage rate of the CPU is determined to be greater than the usage rate threshold.
And if the utilization rate of the central processing unit is smaller than the utilization rate threshold value, the current resources of the CPU are more abundant, the CPU can be used for processing the video file to be played, and if the utilization rate of the central processing unit is larger than or equal to the utilization rate threshold value, the current resources of the CPU are less abundant, and the CPU is used for processing the video file to be played.
In addition, since the usage rate of the CPU is the sum of the usage rates of the currently started applications, the usage rate of each currently started application can be obtained, whether an application program matched with a preset application program exists in the currently started application program is judged, wherein the preset application program is an application program which allows the system to close the application program under the condition that the user is not authorized, if so, the application program matched with the preset application program is closed, then the current usage rate of the CPU is obtained as the usage rate of the CPU, and the operation of judging whether the usage rate of the central processing unit is smaller than the usage rate threshold value is performed in a return mode.
Specifically, a list of preset application programs is pre-stored in the electronic device, and a plurality of identifiers of specified application programs are included in the list of preset application programs, wherein the specified application programs are application programs authorized by a user and allowing the system to close the application programs under the condition that the user is not authorized, and specifically, the identifiers of the specified application programs can be manually input by the user.
Scanning application programs corresponding to each process in the current system process and CPU utilization rate of each process, acquiring the current utilization rate of the CPU, searching application programs matched with preset application programs in all scanned application programs as application programs to be processed, closing the application programs to be processed and killing the processes corresponding to the application programs to be processed, acquiring the utilization rate of the CPU after the processes corresponding to the application programs to be processed are killed, taking the updated utilization rate as new utilization rate of the CPU, and judging whether the new utilization rate of the CPU is smaller than a utilization rate threshold value.
As another embodiment, the operation parameter includes a remaining power, and the determining whether the operation parameter meets a preset condition includes: judging whether the residual electric quantity is larger than a preset electric quantity value or not; if the running parameter is larger than the preset electric quantity value, judging that the running parameter meets the preset condition; and if the operating parameter is not larger than the preset electric quantity value, judging that the operating parameter does not meet the preset condition. And when the residual electric quantity is smaller than or equal to the preset electric quantity threshold value, determining that the state is in an insufficient electric quantity state, and when the residual electric quantity is larger than the preset electric quantity threshold value, determining that the state is in a sufficient electric quantity state.
Specifically, a battery power of the electronic device is obtained.
Specifically, the electronic device can acquire the battery power usage state that is used to represent the battery power of the electronic device, and therefore, the battery power of the electronic device can be acquired by acquiring the battery power usage state.
Specifically, the battery charge usage status may be a battery charge percentage, for example, 50%. The battery power percentage is used to represent the battery power, e.g., the 50% represents the battery power as 50% of the total power.
And judging whether the electric quantity of the battery is larger than a preset electric quantity value.
The battery power consumption state of the electronic device comprises a power sufficient state, a power insufficient state and a power normal state, wherein the power of the battery is larger than a first threshold value in the power sufficient state, the power of the battery is lower than a second threshold value in the power insufficient state, and the power of the battery is larger than or equal to the second threshold value and smaller than or equal to the first threshold value in the power normal state. The first threshold value and the second threshold value may be set according to actual use, and for example, the first threshold value is 80% and the second threshold value is 20%. As an implementation manner, in the embodiment of the present application, the preset power value is used to represent that the battery power of the electronic device is in a state of low power, and the preset power value may be 20%.
As an implementation manner, the battery power is the remaining power of the battery, when the remaining power of the battery is obtained, the remaining power of the battery is compared with a preset power value, if the remaining power of the battery is lower than the preset power value, the battery power usage state is determined to be a power shortage state, and if the remaining power of the battery is greater than or equal to the preset power value, the battery power usage state is determined to be a power sufficiency state, i.e. not to be a power shortage state.
As another embodiment, the battery power may be a preset state identifier, and when the current battery power of the battery is obtained, it is determined whether the battery power is smaller than a preset power value. Specifically, the state identifier is a parameter value, for example, the state of sufficient electric quantity, the state of insufficient electric quantity and the state of normal electric quantity are r1, r2 and r3 respectively, the electronic device reads the parameter value, if r2 is read, it is determined that the electric quantity of the battery is smaller than a preset electric quantity value, and if r1 or r3 is read, it is determined that the electric quantity of the battery is greater than or equal to the preset electric quantity value.
As still another embodiment, the specific embodiment of determining whether the operation parameter meets a preset condition may further be that an operation mode of the electronic device is determined according to the operation parameter; judging whether the working mode is a designated mode or not; if the operation parameter is in the specified mode, judging that the operation parameter meets a preset condition; if the operation parameter is not the designated mode, the operation parameter is judged to not meet the preset condition.
The operation mode includes a mute mode and a sleep mode, and the operation parameters may include a speaker state, a placement state, an ambient brightness state, and the like of the electronic device, where the ambient brightness state may be a brightness value of ambient light determined according to a light intensity sensor of the electronic device, and if the ambient brightness state is lower than a brightness threshold, the ambient brightness state is dark, and otherwise, the ambient brightness state is strong, and the placement state may be determined according to a sensor of the electronic device, for example, according to a gyroscope sensor or an inertial measurement unit of the electronic device, and the like.
As one embodiment, the designated mode is a sleep mode, and if the ambient brightness state is dark, the placement state is stationary, and the current time point is within the sleep time period in the operation parameter, the operation mode is determined to be the sleep mode, that is, the operation mode is the designated mode.
As another embodiment, the specified mode is a mute mode, and if the speaker status is mute in the operation parameter, it is determined that the operation mode is a mute mode, that is, the operation mode is the specified mode.
As another embodiment, the designated mode is a conference mode, and if the placement state is a stationary state, the speaker state is mute, and the electronic device is in a screen locking mode in the operation parameters, the operation mode is determined to be the conference mode, that is, the operation mode is the designated mode.
If the operation parameter is in the specified mode, judging that the operation parameter meets a preset condition; if the operation parameter is not the designated mode, the operation parameter is judged to not meet the preset condition.
S704: and judging whether the touch gesture meets a specified condition.
S705: and sending a vibration instruction to the vibration device through the control interface.
S706: and sending a prohibition instruction to the vibration device through the control interface.
Referring to fig. 8, a block diagram of a vibration driving apparatus 800 according to an embodiment of the present application is shown, which is applied to a touch screen processor of an electronic device, where the electronic device further includes a touch screen and a vibration apparatus, and a control interface of the touch screen processor is connected with the vibration apparatus. The apparatus may include: a detection unit 801 and a determination unit 802.
A detection unit 801, configured to detect a touch gesture applied to the touch screen.
And the determining unit 802 is configured to send a vibration instruction to the vibration device through the control interface if the touch gesture meets a specified condition, where the vibration instruction is used to instruct the vibration device to vibrate.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Referring to fig. 9, a block diagram of a vibration driving apparatus 900 according to an embodiment of the present application is shown, which is applied to a touch screen processor of an electronic device, where the electronic device further includes a touch screen and a vibration apparatus, a control interface of the touch screen processor is connected to the vibration apparatus, specifically, the control interface is a control pin of the touch screen processor, and the control pin is connected to a driving pin of the vibration apparatus. The apparatus may include: a detection unit 910 and a determination unit 920.
And a detection unit 910, configured to detect a touch gesture applied to the touch screen.
And the determining unit 920 is configured to send a vibration instruction to the vibration device through the control interface if the touch gesture meets a specified condition, where the vibration instruction is used to instruct the vibration device to vibrate.
Further, the vibration instruction includes a specified signal, and the determining unit 920 is further configured to input the specified signal to the driving device through the control interface if the touch gesture satisfies a specified condition.
Further, the determining unit 920 is further configured to, when the signal currently output by the control interface is a disable signal, change the signal output by the control interface from the disable signal to the specified signal if the touch gesture meets the specified condition, where the disable signal is used to instruct the vibration device to disable vibration.
Wherein the level of the disable signal is opposite to the level of the specified signal.
Further, the determining unit 920 is further configured to perform an operation of inverting the waveform of the disable signal output by the control interface to change to the specified signal.
Specifically, the determination unit 920 includes a determination subunit 921 and a transmission subunit 922.
The judging subunit 921 is configured to judge whether the operation event corresponding to the touch gesture is a specified event.
The sending subunit 922 is configured to send a vibration instruction to the vibration device through the control interface if the event is specified.
Further, the judging subunit 921 is further configured to determine an operation area of the touch gesture on the touch screen; if the operation area is the designated area, judging that the operation event corresponding to the touch gesture is the designated event; and if the operation area is not the designated area, judging that the operation event corresponding to the touch gesture is not the designated event.
Further, the specified event is an under-screen acquisition event of the touch screen, and the judging subunit 921 is further configured to judge whether the under-screen acquisition function of the touch screen is started; and if the touch gesture is started, determining an operation area of the touch gesture on the touch screen.
Further, the electronic device further includes a fingerprint collection device disposed under the operation area on the touch screen, and the judging subunit 921 is further configured to judge whether a fingerprint collected by the fingerprint collection device is obtained in a preset time period; and if the fingerprint acquired by the fingerprint acquisition device is acquired, sending a vibration instruction to the vibration device through the control interface. And if the fingerprint acquired by the fingerprint acquisition device is not acquired, keeping the vibration device in a state of prohibiting vibration.
Further, the judging subunit 921 is further configured to judge whether the touch gesture is a press gesture; and if the touch gesture is a pressing gesture, determining an operation area of the touch gesture on the touch screen.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Referring to fig. 10, a block diagram of a vibration driving apparatus 1000 according to an embodiment of the present application is shown, which is applied to a touch screen processor of an electronic device, where the electronic device further includes a touch screen and a vibration apparatus, a control interface of the touch screen processor is connected to the vibration apparatus, specifically, the control interface is a control pin of the touch screen processor, and the control pin is connected to a driving pin of the vibration apparatus. The apparatus may include: a detection unit 1010 and a determination unit 1020.
And a detection unit 1010, configured to detect a touch gesture applied to the touch screen.
And the determining unit 1020 is configured to send a vibration instruction to the vibration device through the control interface if the touch gesture meets a specified condition, where the vibration instruction is used to instruct the vibration device to vibrate.
Further, the vibration instruction includes a designation signal, and the determining unit 1020 is further configured to input the designation signal to the driving device through the control interface if the touch gesture satisfies a designation condition.
Further, the determining unit 1020 is further configured to, when the signal currently output by the control interface is a disable signal, change the signal output by the control interface from the disable signal to the specified signal if the touch gesture meets the specified condition, where the disable signal is used to instruct the vibration device to disable vibration.
Wherein the level of the disable signal is opposite to the level of the specified signal.
Further, the determining unit 1020 is further configured to perform an operation of inverting the waveform of the disable signal output from the control interface to change to the specified signal.
The determining unit 1020 includes a parameter acquisition subunit 1201, a parameter determination subunit 1022, a gesture determining subunit 1023, and a transmitting subunit 1024.
The parameter acquisition subunit 1201 is configured to acquire an operation parameter of the electronic device.
The parameter determination subunit 1022 is configured to determine whether the operation parameter meets a preset condition.
Further, the operation parameters include a remaining power, and the parameter determining subunit 1022 is further configured to determine whether the remaining power is greater than a preset power value; if the running parameter is larger than the preset electric quantity value, judging that the running parameter meets the preset condition; and if the operating parameter is not larger than the preset electric quantity value, judging that the operating parameter does not meet the preset condition.
Further, the parameter determination subunit 1022 is further configured to determine an operation mode of the electronic device according to the operation parameter; judging whether the working mode is a designated mode or not; if the operation parameter is in the specified mode, judging that the operation parameter meets a preset condition; if the operation parameter is not the designated mode, the operation parameter is judged to not meet the preset condition.
Wherein the specified mode is a mute mode.
The gesture determination subunit 1023 is configured to determine whether the touch gesture satisfies a specified condition if a preset requirement is satisfied.
The sending subunit 1024 is configured to send, if a specified condition is met, a vibration instruction to the vibration device through the control interface.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 11, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or the like capable of running an application program. The electronic device 100 of the present application may include one or more of the following components: a processor 110, a memory 120, a vibration device 130, and a touch screen 140.
And one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and lines to connect various portions of the overall electronic device 100, perform various functions of the electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processor 111 (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a touch screen processor 112, a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
The instructions stored in the central processing unit, when executed, perform a method applied to the central processing unit at the central processing unit. The instructions stored in the touch screen processor, when executed, perform a method applied to the touch screen processor at the touch screen processor. For example, the central processing unit is used for receiving the touch coordinate points reported by the touch screen processor; and the touch screen processor is used for executing the line number vibration driving method.
The vibration device 130 may be a piezoelectric driver or a motor. As one embodiment, the vibration device 130 is a linear motor. The vibration device 130 transmits its deformation to the housing of the electronic device through moment action, thereby driving the housing to vibrate.
The touch screen 140 may collect touch operations thereon or thereabout by a user (such as operations of the user on the touch screen 140 or thereabout by any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch screen 140 may include a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110.
Memory 120 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the electronic device 100 in use (e.g., phonebook, audiovisual data, chat log data), and the like.
Referring to fig. 12, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable medium 1200 has stored therein program code that can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 1200 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1200 includes a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 1200 has memory space for program code 1210 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 1210 may be compressed, for example, in a suitable form.
In summary, according to the vibration driving method, the device, the electronic equipment and the computer readable medium provided by the application, when a touch gesture acting on the touch screen is detected, if the touch gesture meets a specified condition, a vibration instruction is sent to the vibration device through the control interface, and the vibration instruction is used for indicating the vibration of the vibration device. Therefore, as the control interface of the touch screen processor is connected with the vibration device, the touch screen processor can directly control the vibration device to vibrate, and a service component in an operating system of the mobile terminal is not required to drive the vibration device to vibrate, so that response lag is reduced, and user experience is improved. The response speed of the vibration device is accelerated, the experience effect of linear vibration is improved, and the user experience is further improved.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The vibration driving method is characterized by being applied to a touch screen processor of electronic equipment, the electronic equipment further comprises a touch screen and a vibration device, a control interface of the touch screen processor is connected with the vibration device, the touch screen processor is a processor corresponding to the touch screen and is used for controlling the on-off of the touch screen and collecting touch operations of a user on the touch screen, and the method comprises the following steps:
detecting a touch gesture acting on the touch screen;
acquiring operation parameters of the electronic equipment, wherein the operation parameters comprise a placement state and a loudspeaker state;
If the placement state is a standing state, the loudspeaker state is mute and the electronic equipment is in a screen locking mode, determining that the working mode of the electronic equipment is a conference mode;
If the working mode of the electronic equipment is a conference mode, determining an operation area of the touch gesture on the touch screen;
If the operation area is a designated area, sending a vibration instruction to the vibration device through the control interface, wherein the vibration instruction is used for indicating the vibration device to vibrate;
The vibration instruction comprises a designated signal, and the vibration instruction is sent to the vibration device through the control interface, and the vibration instruction comprises:
determining whether a signal currently output by a control interface is a prohibition signal or not, wherein the prohibition signal is used for triggering the vibration device to be in a prohibition vibration mode;
If the signal output by the control interface is a forbidden signal, changing the signal output by the control interface from the forbidden signal to a specified signal, wherein the specified signal is used for triggering the vibration device to vibrate, the control interface is a control pin of the touch screen processor, and the control pin is connected with a driving pin of the vibration device;
And if the touch gesture in the designated area is not detected or the working mode of the electronic equipment is not a conference mode, sending the inhibition signal to the vibration device through the control interface.
2. The method of claim 1, wherein the disable signal and the designate signal are of opposite levels.
3. The method of claim 2, wherein changing the signal output by the control interface from the disable signal to the specified signal comprises:
And performing an inverse inversion operation on the waveform of the prohibition signal output by the control interface to change the waveform into the specified signal.
4. The method of claim 1, wherein the determining the operational area of the touch gesture on the touch screen comprises:
Judging whether the acquisition function under the touch screen is started or not;
and if the touch gesture is started, determining an operation area of the touch gesture on the touch screen.
5. The method of claim 4, wherein the electronic device further comprises a fingerprint acquisition device disposed under an operation area on the touch screen, the sending a vibration instruction to the vibration device through the control interface comprising:
the touch screen processor judges whether the fingerprint acquired by the fingerprint acquisition device is acquired within a preset time period;
And if the fingerprint acquired by the fingerprint acquisition device is acquired, sending a vibration instruction to the vibration device through the control interface.
6. The method as recited in claim 5, further comprising:
And if the fingerprint acquired by the fingerprint acquisition device is not acquired, keeping the vibration device in a state of prohibiting vibration.
7. The method of claim 1, wherein the determining the operational area of the touch gesture on the touch screen comprises:
Judging whether the touch gesture is a pressing gesture or not;
And if the touch gesture is a pressing gesture, determining an operation area of the touch gesture on the touch screen.
8. The utility model provides a vibration drive device, its characterized in that is applied to the touch-sensitive screen treater of electronic equipment, electronic equipment still includes touch-sensitive screen and vibrating device, the control interface of touch-sensitive screen treater with vibrating device connects, and the touch-sensitive screen treater is the treater that the touch-sensitive screen corresponds for the touch-sensitive screen is bright to be put out and gather the touch operation that the user acted on the touch-sensitive screen, vibration drive device includes:
a detection unit for detecting a touch gesture acting on the touch screen;
A determining unit, configured to obtain operation parameters of the electronic device, where the operation parameters include a placement state and a speaker state; if the placement state is a standing state, the loudspeaker state is mute and the electronic equipment is in a screen locking mode, determining that the working mode of the electronic equipment is a conference mode; if the working mode of the electronic equipment is a conference mode, determining an operation area of the touch gesture on the touch screen; if the operation area is a designated area, sending a vibration instruction to the vibration device through the control interface, wherein the vibration instruction is used for indicating the vibration device to vibrate, the vibration instruction comprises a designated signal, and sending the vibration instruction to the vibration device through the control interface comprises: determining whether a signal currently output by a control interface is a prohibition signal or not, wherein the prohibition signal is used for triggering the vibration device to be in a prohibition vibration mode; if the signal output by the control interface is a forbidden signal, changing the signal output by the control interface from the forbidden signal to a specified signal, wherein the specified signal is used for triggering the vibration device to vibrate, the control interface is a control pin of the touch screen processor, and the control pin is connected with a driving pin of the vibration device; and if the touch gesture in the designated area is not detected or the working mode of the electronic equipment is not a conference mode, sending the inhibition signal to the vibration device through the control interface.
9. An electronic device, comprising:
A memory;
the device comprises a touch screen processor, a touch screen and a vibration device, wherein a control interface of the touch screen processor is connected with the vibration device;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the touch screen processor, the one or more applications configured to perform the method of any of claims 1-7.
10. A computer readable medium, characterized in that the readable medium stores a program code executable by a processor, which program code, when executed by the processor, causes the processor to perform the method of any of claims 1-7.
CN201980099299.1A 2019-10-28 2019-10-28 Vibration driving method, vibration driving device, electronic apparatus, and computer-readable medium Active CN114222963B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/113730 WO2021081710A1 (en) 2019-10-28 2019-10-28 Vibration driving method and apparatus, and electronic device and computer readable medium

Publications (2)

Publication Number Publication Date
CN114222963A CN114222963A (en) 2022-03-22
CN114222963B true CN114222963B (en) 2024-05-14

Family

ID=75715649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980099299.1A Active CN114222963B (en) 2019-10-28 2019-10-28 Vibration driving method, vibration driving device, electronic apparatus, and computer-readable medium

Country Status (2)

Country Link
CN (1) CN114222963B (en)
WO (1) WO2021081710A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102414649A (en) * 2009-04-30 2012-04-11 辛纳普蒂克斯公司 Operating a touch screen control system according to a plurality of rule sets
CN106919285A (en) * 2017-02-28 2017-07-04 北京小米移动软件有限公司 A kind of terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4478436B2 (en) * 2003-11-17 2010-06-09 ソニー株式会社 INPUT DEVICE, INFORMATION PROCESSING DEVICE, REMOTE CONTROL DEVICE, AND INPUT DEVICE CONTROL METHOD
JP2015011470A (en) * 2013-06-27 2015-01-19 富士通株式会社 Electronic device and control program
US10289251B2 (en) * 2014-06-27 2019-05-14 Apple Inc. Reducing floating ground effects in pixelated self-capacitance touch screens
CN110007803A (en) * 2019-04-15 2019-07-12 深圳市万普拉斯科技有限公司 Touch screen report point methods, device, touch screen and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102414649A (en) * 2009-04-30 2012-04-11 辛纳普蒂克斯公司 Operating a touch screen control system according to a plurality of rule sets
CN106919285A (en) * 2017-02-28 2017-07-04 北京小米移动软件有限公司 A kind of terminal

Also Published As

Publication number Publication date
CN114222963A (en) 2022-03-22
WO2021081710A1 (en) 2021-05-06

Similar Documents

Publication Publication Date Title
CN108021259B (en) False touch prevention method and electronic equipment
CN107944325B (en) Code scanning method, code scanning device and mobile terminal
CN106951767B (en) Unlocking control method and related product
CN107563170B (en) Fingerprint unlocking method and related product
CN105302373A (en) Method and system for achieving operation of mobile terminal according to touch signals and mobile terminal
CN109543574B (en) Fingerprint acquisition method and related equipment
CN110515533B (en) Electronic equipment shortcut operation method and device, electronic equipment and storage medium
CN107622193B (en) fingerprint unlocking method and related product
CN109543378B (en) Fingerprint unlocking method and related equipment
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
CN108111676B (en) Application program control method, mobile terminal and computer readable storage medium
CN108460352A (en) The method and apparatus of fingerprint detection
CN109325334B (en) Touch terminal control method and touch terminal
CN107743108B (en) Method and device for identifying medium access control address
CN108846271B (en) Device control method, device, storage medium and electronic device
CN108932486B (en) Fingerprint matching method and device and electronic device
CN107943549B (en) Application processing method and terminal
CN108984265B (en) Method and device for detecting virtual machine environment
CN114222963B (en) Vibration driving method, vibration driving device, electronic apparatus, and computer-readable medium
CN112911560A (en) Electronic business card transmission method and device
CN107609378B (en) fingerprint unlocking method and related product
CN111427644B (en) Target behavior identification method and electronic equipment
CN112131901A (en) Method and device for automatically mixing and identifying face and two-dimensional code and intelligent identification equipment
CN108170360B (en) Control method of gesture function and mobile terminal
CN111026955A (en) Application program recommendation method 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