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

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

Info

Publication number
WO2021081710A1
WO2021081710A1 PCT/CN2019/113730 CN2019113730W WO2021081710A1 WO 2021081710 A1 WO2021081710 A1 WO 2021081710A1 CN 2019113730 W CN2019113730 W CN 2019113730W WO 2021081710 A1 WO2021081710 A1 WO 2021081710A1
Authority
WO
WIPO (PCT)
Prior art keywords
vibration
touch screen
touch
control interface
designated
Prior art date
Application number
PCT/CN2019/113730
Other languages
French (fr)
Chinese (zh)
Inventor
林进全
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/113730 priority Critical patent/WO2021081710A1/en
Priority to CN201980099299.1A priority patent/CN114222963B/en
Publication of WO2021081710A1 publication Critical patent/WO2021081710A1/en

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/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 and apparatus (800, 900, 1000), an electronic device (100), and a computer readable medium. The vibration driving method and apparatus are applied to a touch screen processor (112) of the electronic device (100), the electronic device (100) further comprises a touch screen (140) and a vibration apparatus (130), and a control interface of the touch screen processor (112) is connected to the vibration apparatus (130). The method comprises: detecting a touch gesture acting on the touch screen (140) (S201); and if the touch gesture satisfies a designated condition, sending a vibration instruction to the vibration apparatus (130) by means of the control interface, the vibration instruction being used for indicating the vibration apparatus (130) to vibrate (S202). Therefore, the control interface of the touch screen processor (112) is connected to the vibration apparatus (130), so that the touch screen processor (112) can directly control the vibration apparatus (130) to vibrate, without the need for a service component in an operating system of a mobile terminal to drive the vibration apparatus (130) to vibrate, thereby reducing response lag and improving user experience.

Description

振动驱动方法、装置、电子设备及计算机可读介质Vibration driving method, device, electronic equipment and computer readable medium 技术领域Technical field
本申请涉及移动终端技术领域,更具体地,涉及一种振动驱动方法、装置、电子设备及计算机可读介质。This application relates to the technical field of mobile terminals, and more specifically, to a vibration driving method, device, electronic equipment, and computer-readable medium.
背景技术Background technique
现有的移动终端,在一些场景下,用户操作触摸屏的时候,移动终端会反馈一个振动。具体地,移动终端的操作系统检测到作用于触摸屏之后,由移动终端的操作系统内的服务组件驱动振动装置振动,存在响应滞后,用户体验不高。In the existing mobile terminal, in some scenarios, when the user operates the touch screen, the mobile terminal will feedback a vibration. Specifically, after the operating system of the mobile terminal detects that it acts on the touch screen, the service component in the operating system of the mobile terminal drives the vibrating device to vibrate, and there is a response delay, and the user experience is not high.
发明内容Summary of the invention
本申请提出了一种振动驱动方法、装置、电子设备及计算机可读介质,以改善上述缺陷。This application proposes a vibration driving method, device, electronic equipment, and computer readable medium to improve the above-mentioned drawbacks.
第一方面,本申请实施例提供了一种振动驱动方法,应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接,所述方法包括:检测作用于所述触摸屏的触摸手势;若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。In the first aspect, the embodiments of the present application provide a vibration driving method, which is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, and the control interface of the touch screen processor is connected to the vibration device , The method includes: detecting a touch gesture acting on the touch screen; if the touch gesture meets a specified condition, sending a vibration instruction to the vibration device through the control interface, the vibration instruction being used to instruct the vibration device vibration.
第二方面,本申请实施例还提供了一种振动驱动装置,应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接,所述振动驱动装置包括:检测单元和确定单元。检测单元,用于检测作用于所述触摸屏的触摸手势。确定单元,用于若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。In the second aspect, the embodiments of the present application also provide a vibration driving device, which is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, and the control interface of the touch screen processor is connected to the vibration device. Connected, the vibration driving device includes: a detection unit and a determination unit. The detection unit is used to detect touch gestures acting on the touch screen. The determining unit is configured to send a vibration instruction to the vibration device through the control interface if the touch gesture meets a specified condition, and the vibration instruction is used to instruct the vibration device to vibrate.
第三方面,本申请实施例还提供了一种电子设备,包括:存储器;触摸屏处理器、触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述触摸屏处理器执行,所述一个或多个程序配置用于执行上述方法。In a third aspect, an embodiment of the present application also provides an electronic device, including: a memory; a touch screen processor, a touch screen, and a vibration device, the control interface of the touch screen processor is connected to the vibration device; one or more application programs , Wherein the one or more application programs are stored in the memory and configured to be executed by the touch screen processor, and the one or more programs are configured to execute the foregoing method.
第四方面,本申请实施例还提供了一种计算机可读介质,所述可读存储介质存储有处理器可执行的程序代码,所述程序代码被所述处理器执行时使所述处理器执行上述方法。In a fourth aspect, an embodiment of the present application also provides a computer readable medium, the readable storage medium stores program code executable by a processor, and when the program code is executed by the processor, the processor Perform the above method.
本申请提供的振动驱动方法、装置、电子设备及计算机可读介质,在检测到作用于所述触摸屏的触摸手势,如果触摸手势满足指定条件,则通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。因此,由于触摸屏处理器的控制接口与所述振动装置连接,则触摸屏处理器可以直接控制振动装置振动,而不 必移动终端的操作系统内的服务组件驱动振动装置振动,减少响应滞后,提高用户体验度。In the vibration driving method, device, electronic equipment, and computer-readable medium provided by the present 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 through the control interface Device, the vibration instruction is used to instruct the vibration device to vibrate. Therefore, since the control interface of the touch screen processor is connected to the vibration device, the touch screen processor can directly control the vibration of the vibration device without the need for the service component in the operating system of the mobile terminal to drive the vibration device to vibrate, reducing response lag and improving user experience degree.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了本申请实施例提供的振动驱动方法及装置的应用场景图;FIG. 1 shows an application scene diagram of the vibration driving method and device provided by the embodiments of the present application;
图2示出了本申请一实施例提供的振动驱动方法的方法流程图;FIG. 2 shows a method flowchart of a vibration driving method provided by an embodiment of the present application;
图3示出了本申请另一实施例提供的振动驱动方法的方法流程图;FIG. 3 shows a method flowchart of a vibration driving method provided by another embodiment of the present application;
图4示出了本申请又一实施例提供的振动驱动方法的方法流程图;FIG. 4 shows a method flowchart of a vibration driving method provided by another embodiment of the present application;
图5示出了本申请实施例提供的解锁界面的示意图;Figure 5 shows a schematic diagram of an unlocking interface provided by an embodiment of the present application;
图6示出了本申请实施例提供的支付界面的示意图;Figure 6 shows a schematic diagram of a payment interface provided by an embodiment of the present application;
图7示出了本申请再一实施例提供的振动驱动方法的方法流程图;FIG. 7 shows a method flowchart of a vibration driving method provided by still another embodiment of the present application;
图8示出了本申请一实施例提供的振动驱动装置的模块框图;FIG. 8 shows a block diagram of a vibration driving device provided by an embodiment of the present application;
图9示出了本申请另一实施例提供的振动驱动装置的模块框图;Fig. 9 shows a block diagram of a vibration driving device provided by another embodiment of the present application;
图10示出了本申请又一实施例提供的振动驱动装置的模块框图;Fig. 10 shows a block diagram of a vibration driving device provided by another embodiment of the present application;
图11示出了本申请实施例提供的电子设备的模块框图;FIG. 11 shows a block diagram of a module of an electronic device provided by an embodiment of the present application;
图12出了本申请实施例提供的用于保存或者携带实现根据本申请实施例的振动驱动方法的程序代码的存储单元。Fig. 12 shows a storage unit provided by an embodiment of the present application for storing or carrying the program code for implementing the vibration driving method according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application.
目前,电子设备通过采用触摸技术为人们提供了便捷的输入方式,给人们带来了很大的便利。其中,随着电子设备技术的发展,以触摸屏为基础开发的功能也在不断的增加,而在一些场景下,为了使得用户在触摸屏幕的时候,用户的触摸操作能够通过电子设备内的振动装置的振动而提醒,以提高用户的体验度,则在电子设备内设置有振动系统,如图1所示,该振动系统包括振动组件和振动装置,操作系统内核与触摸屏处理器之间能够数据交互,并且,操作系统内核还与振动组件之间可以数据交互。At present, electronic devices provide people with convenient input methods through the use of touch technology, which brings great convenience to people. Among them, with the development of electronic equipment technology, the functions developed on the basis of touch screens are constantly increasing. In some scenarios, in order to enable the user to touch the screen, the user’s touch operation can pass through the vibration device in the electronic device. In order to improve the user’s experience, a vibration system is provided in the electronic device. As shown in Figure 1, the vibration system includes a vibration component and a vibration device. The operating system kernel and the touch screen processor can interact with data. And, the operating system kernel can also interact with the vibration components.
具体地,触摸屏处理器与电子设备的触摸屏电性连接,可以检测到触摸屏内的触摸信号,将在触摸屏检测到的被触摸的坐标点作为触摸坐标点向所述操作系统内核上报。Specifically, the touch screen processor is electrically connected to the touch screen of the electronic device, can detect touch signals in the touch screen, and report the touched coordinate points detected on the touch screen as touch coordinate points to the operating system kernel.
需要说明的是,触摸屏处理器与电子设备的中央处理器可以是不同的处理器,电子设备可以包括中央处理器(CPU,central processing unit)以及触摸屏处理器,中央处理器与触摸屏处理器电性连接,其中,中央处理器为电子设备的操作系统的运算和控制核心,是信息处理、程序运行的最终执行单元。触摸屏处理器与电子设备的触摸屏电性连接,可以检测到触摸屏内的触摸信号,将在触摸屏检测到的被触摸的坐标点作为触摸坐标点向所述中央处理器上报。也就是说,触摸屏处理器触摸屏对应的处理器,用于控制触摸屏的亮灭以及采集用户作用于触摸屏的触摸操作等手势。It should be noted that the touch screen processor and the central processing unit of the electronic device may be different processors, and the electronic device may include a central processing unit (CPU) and a touch screen processor. The central processing unit and the touch screen processor are electrical. Connection, where the central processing unit is the operation and control core of the operating system of the electronic device, and is the final execution unit for information processing and program operation. The touch screen processor is electrically connected to the touch screen of the electronic device, can detect the touch signal in the touch screen, and report the touched coordinate point detected on the touch screen as the touch coordinate point to the central processor. That is to say, the processor corresponding to the touch screen processor is used to control the on and off of the touch screen and collect gestures such as touch operations of the user on the touch screen.
具体的,触摸屏处理器可以通过定期扫描触摸屏,检测触摸屏内各个坐标点的电信号,作为各个坐标点的检测值,获取到触摸屏内各个坐标点的触摸信号。例如,触摸屏 为电容式触摸屏,触摸屏处理器可以检测到触摸屏横向电极和纵向电极交汇点的电容值,则采集到横向电极和纵向电极交汇点所在坐标点的电容值,该电容值作为该坐标点的检测值。在本申请实施例中,以手机的电容式触摸屏为例进行说明,可以理解的,本申请实施例中的触摸屏并不仅仅限定于电容式触摸屏,其他类型的触摸屏也可以用于本申请实施例所提供的触摸屏校准方法。Specifically, the touch screen processor may periodically scan the touch screen to detect the electrical signal of each coordinate point in the touch screen, and use it as the detection value of each coordinate point to obtain the touch signal of each coordinate point in the touch screen. For example, the touch screen is a capacitive touch screen. The touch screen processor can detect the capacitance value of the intersection of the horizontal electrode and the vertical electrode of the touch screen, and then collect the capacitance value of the coordinate point where the horizontal electrode and the vertical electrode meet, and the capacitance value is used as the coordinate point. The detection value. In the embodiments of the present application, the capacitive touch screen of a mobile phone is taken as an example for description. It is understandable that the touch screen in the embodiments of the present application is not limited to the capacitive touch screen, and other types of touch screens can also be used in the embodiments of the present application. Provided touch screen calibration method.
另外,触摸屏处理器在检测有触摸坐标点时,向操作系统内核上报触摸坐标点。In addition, the touch screen processor reports the touch coordinate point to the operating system kernel when detecting the touch coordinate point.
操作系统内核在获取到触摸屏处理器上报的触摸操作之后,可以调用振动组件,该振动组件用于控制振动装置振动以及调整振动装置的振动参数,例如,针对于安卓系统(android),该振动组件可以是振动服务,例如,VIBRATOR_SERVICE。操作系统内核可以调用该振动服务,例如,通过getSystemService(VIBRATOR_SERVICE)的方式调用。After the operating system kernel obtains the touch operation reported by the touch screen processor, it can call the vibration component, which is used to control the vibration of the vibration device and adjust the vibration parameters of the vibration device. For example, for Android, the vibration component It can be a vibration service, for example, VIBRATOR_SERVICE. The operating system kernel can call the vibration service, for example, by calling getSystemService(VIBRATOR_SERVICE).
然后,振动组件再设置底层系统,具体地,控制振动装置开始振动。Then, the vibrating component sets the underlying system, specifically, the vibrating device is controlled to start vibrating.
然而,发明人在研究中发现,该振动系统需要触摸屏处理器将触摸操作上报给安卓系统,再由安装系统调用振动组件,由振动组件控制振动装置振动,需要上报之后往下设置,这个过程存在响应滞后,用户体验较差。However, the inventor found in research that the vibration system requires the touch screen processor to report the touch operation to the Android system, and then the installation system calls the vibration component, and the vibration component controls the vibration of the vibration device. It needs to be reported and then set down. This process exists. The response is lagging and the user experience is poor.
因此,为了克服上述缺陷,本申请实施例提供了一种振动驱动方法,如图2所示,该方法应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接。具体地,该方法包括:S201至S202。Therefore, in order to overcome the above shortcomings, an embodiment of the present application provides a vibration driving method. As shown in FIG. 2, 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. The control interface of the processor is connected with the vibration device. Specifically, the method includes: S201 to S202.
S201:检测作用于所述触摸屏的触摸手势。S201: Detect a touch gesture acting on the touch screen.
具体的,电子设备中可以存储有触摸屏的基准值,如通过基准值表格的形式进行存储,包括触摸屏中每个坐标点的基准值,每个坐标点的基准值表示触摸屏在该坐标点无触摸时的检测值。例如对于电容式触摸屏,某个坐标点的基准值表示电容式触摸屏在该坐标点无触摸时的电容值。触摸屏处理器在检测到各个坐标点的检测值后,将检测值与基准值进行比对。在每个坐标点,判断该坐标点的检测值与该坐标点的基准值之间的差值是否超过预设阈值,若超过,可以确定该坐标点存在触摸。Specifically, the reference value of the touch screen may be stored in the electronic device, for example, in the form of a reference value table, including the reference value of each coordinate point in the touch screen. The reference value of each coordinate point indicates that the touch screen has no touch at that coordinate point. Detected value at time. For example, for a capacitive touch screen, the reference value of a certain coordinate point represents the capacitance value of the capacitive touch screen when the coordinate point is not touched. After the touch screen processor detects the detection value of each coordinate point, it compares the detection value with the reference value. At each coordinate point, it is determined whether the difference between the detected value of the coordinate point and the reference value of the coordinate point exceeds a preset threshold, and if it exceeds, it can be determined that there is a touch at the coordinate point.
具体地,该触摸手势可以是按压操作,也可以是滑动操作。Specifically, the touch gesture may be a pressing operation or a sliding operation.
具体地,当用户按压触摸屏的时候,触摸屏能够检测到该按压操作,并且输出与该按压操作对应的电信号,从而电子设备内的处理器或者操作系统能够采集到该电信号,则确定该电信号大于预设值的时候,确定检测到作用于触摸屏的按压操作。其中,预设值为根据实际使用而设定的值,若电信号小于该预设值的,则判定该电信号对应的操作并非有效的按压操作,并判定未检测到作用于触摸屏的按压操作。Specifically, when the 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 the processor or operating system in the electronic device can collect the electrical signal, and then determine the electrical signal. When the signal is greater than the preset value, it is determined that a pressing operation acting on the touch screen is detected. Among them, the preset value is a value set according to actual use. If the electrical signal is less than the preset value, it is determined that the operation corresponding to the electrical signal is not a valid pressing operation, and it is determined that no pressing operation on the touch screen is detected .
则按压操作对应按压信息,该按压信息包括按压位置点和按压时间,其中,按压位置点可以通过前述的触摸位置点的检测而确定,而按压时间的确定方式可以是,在确定该按压操作是有效的按压操作的时候,则开始计时,统计该按压操作的持续时长,具体地,可以是在检测到作用于所述触摸屏的按压操作时,启动计时器,通过该计时器统计该按压操作的持续时长。The pressing operation corresponds to pressing information. The pressing information includes the pressing position and the pressing time. The pressing position can be determined by the detection of the aforementioned touch position point, and the pressing time can be determined by determining whether the pressing operation is When the pressing operation is valid, the timing is started, and the duration of the pressing operation is counted. Specifically, when a pressing operation acting on the touch screen is detected, a timer is started, and the timer is used to count the pressing operation. Duration.
该滑动操作对应有滑动轨迹信息,该滑动轨迹信息为滑动时间上连续的多个触摸点位置信息,即每个触摸点位置信息对应一个时间点,而该滑动时间为滑动开始至结束的时间段。具体地,该滑动操作的起点可以是该按压操作的触摸点,并且滑动操作与按压操作是连续的,也就是说,滑动操作的具体输入方式可以是,用户先输入按压操作,即用户按压触摸屏并且保持按压时间长度达到预设时长之后,保持按压屏幕的情况下继续滑动,也就是说,滑动操作的起点是按压操作对应的触摸点,并且滑动操作和按压操作是连续的且按压操作至滑动操作的过程中,按压部位未离开触摸屏。其中,按压部位为用户按压触摸屏的部位。The sliding operation corresponds to sliding track information, which is the position information of multiple touch points continuously in sliding time, that is, each touch point position information corresponds to a time point, and the sliding time is the time period from the beginning to the end of the sliding . Specifically, the starting point of the sliding operation may be the touch point of the pressing operation, and the sliding operation and the pressing operation are continuous, that is, the specific input method of the sliding operation may be that the user first inputs the pressing operation, that is, the user presses the touch screen And after the hold-pressing time reaches the preset length of time, continue to slide while holding the screen, that is to say, the starting point of the sliding operation is the touch point corresponding to the pressing operation, and the sliding operation and the pressing operation are continuous and the pressing operation continues to slide During the operation, the pressing part did not leave the touch screen. Among them, the pressing part is the part where the user presses the touch screen.
S202:若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动 装置,所述振动指令用于指示所述振动装置振动。S202: If the touch gesture meets a specified condition, send a vibration instruction to the vibration device through the control interface, where the vibration instruction is used to instruct the vibration device to vibrate.
在触摸屏处理器检测到触摸手势的时候,判断该触摸手势是否满足指定条件,其中,该指定条件可以是预先设定的用于在用户输入触摸手势的情况下启动电子设备振动的条件。具体地,在后续实施例中介绍。When the touch screen processor detects a touch gesture, it determines whether the touch gesture satisfies a specified condition, where the specified condition may be a preset condition for initiating vibration of the electronic device when the user inputs the touch gesture. Specifically, it will be introduced in the subsequent embodiments.
如果该触摸手势满足指定条件,则通过所述控制接口发送振动指令至所述振动装置,振动装置在获取到振动指令的时候,开始振动,从而用户能够通过电子设备的振动获知触摸手势的输入或者触摸手势所对应的功能的启动。其中,振动指令可以包含振动信息,该振动信息包括振动频率或者振动持续时长,则振动装置在获取到该振动指令之后,解析得到该振动信息,通过该振动信息调整振动装置的振动参数之后振动。If the touch gesture meets the specified conditions, a vibration instruction is sent to the vibration device through the control interface, and the vibration device starts to vibrate when the vibration instruction is obtained, so that the user can learn the input of the touch gesture through the vibration of the electronic device or The activation of the function corresponding to the touch gesture. Wherein, the vibration instruction may include vibration information. The vibration information includes the vibration frequency or the duration of the vibration. After obtaining the vibration instruction, the vibration device analyzes and obtains the vibration information, and adjusts the vibration parameters of the vibration device through the vibration information and then vibrates.
由于触摸屏处理器的控制接口与所述振动装置连接,则触摸屏处理器通过该控制接口发送振动指令的方式启动振动装置振动,使得用户在输入满足指定条件的触摸手势之后,不必等到触摸屏处理器将触摸手势上报至操作系统内核,之后再由操作系统内核调用振动组件,振动组件控制振动装置启动振动,而是由触摸屏处理器直接控制振动装置振动,能够减少时间的滞后,提高用户体验度。Since the control interface of the touch screen processor is connected to the vibration device, the touch screen processor initiates the vibration of the vibration device by sending a vibration instruction through the control interface, so that the user does not have to wait for the touch screen processor to input a touch gesture that meets the specified conditions. The touch gesture is reported to the operating system kernel, and then the operating system kernel calls the vibration component. The vibration component controls the vibration device to start vibration. Instead, the touch screen processor directly controls the vibration of the vibration device, which can reduce time lag and improve user experience.
请参阅图3,本申请实施例提供了一种振动驱动方法,如图3所示,该方法应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接。具体地,该方法包括:S301、S302至S303。Referring to FIG. 3, an embodiment of the present application provides a vibration driving method. As shown in FIG. 3, 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. The touch screen processor The control interface is connected with the vibration device. Specifically, the method includes: S301, S302 to S303.
S301:检测作用于所述触摸屏的触摸手势。S301: Detect a touch gesture acting on the touch screen.
S302:判断所述触摸手势是否满足指定条件。S302: Determine whether the touch gesture meets a specified condition.
S303:通过所述控制接口输入所述指定信号至所述驱动装置。S303: Input the designated signal to the driving device through the control interface.
其中,振动指令包括指定信号,振动指令用于指示所述振动装置振动,则指定信号也用于指示所述振动装置振动。Wherein, the vibration instruction includes a designated signal, and the vibration instruction is used to instruct the vibration device to vibrate, and the designated signal is also used to instruct the vibration device to vibrate.
驱动装置能够识别该指定信号,具体地,该指定信号具有预设载波率,则该预设载波率能够作为该指定信号的身份标识,振动装置在获取到该指定信号的时候,能够解析该指定信号以得到该指定信号的载波率,如果该载波率与预设载波率匹配,则确定接收到指定信号,则启动振动。另外,该指定信号还具有预设幅频特征,则该预设幅频特性作为该指定信号的身份标识,振动装置在获取到该指定信号的时候,能够解析该指定信号以得到该指定信号的幅频特征,例如,对该指定信号做傅里叶变换也得到该信号的幅频特性。如果该幅频特征与预设幅频特征匹配,则确定接收到指定信号,则启动振动。The driving device can identify the designated signal. Specifically, if the designated signal has a preset carrier rate, the preset carrier rate can be used as the identification of the designated signal. When the vibration device obtains the designated signal, it can analyze the designated signal. Signal to obtain the carrier rate of the designated signal. If the carrier rate matches the preset carrier rate, it is determined that the designated signal is received, and the vibration is started. In addition, the designated signal also has a predetermined amplitude-frequency characteristic, and the predetermined amplitude-frequency characteristic is used as the identification of the designated signal. When the vibration device obtains the designated signal, the designated signal can be analyzed to obtain the designated signal's characteristics. The amplitude-frequency characteristics, for example, the Fourier transform of the specified signal can also obtain the amplitude-frequency characteristics of the signal. If the amplitude-frequency characteristic matches the preset amplitude-frequency characteristic, it is determined that the specified signal is received, and then the vibration is started.
则如果判断结果是触摸手势不满足指定条件,则可以保持振动装置禁止振动的状态,即保持振动装置不振动,还可以是返回执行S301,即继续检测作用于所述触摸屏的触摸手势。If the result of the judgment is that the touch gesture does not meet the specified condition, the vibration prohibited state of the vibration device may be maintained, that is, the vibration device may not be vibrated, or return to execution S301, that is, continue to detect the touch gesture acting on the touch screen.
作为一种实施方式,触摸屏处理器还能够控制驱动装置处于禁止振动的状态,则具体地,触摸屏处理器的控制接口输出禁止信号至驱动装置,则驱动装置在接收到触摸屏处理器的控制接口输出的禁止信号的时候保持振动装置禁止振动。则若所述触摸手势满足指定条件,通过所述控制接口输入所述指定信号至所述驱动装置的具体实施方式为,当所述控制接口当前输出的信号为禁止信号,若所述触摸手势满足指定条件,将所述控制接口输出的信号由所述禁止信号更改为所述指定信号,所述禁止信号用于指示所述振动装置禁止振动。As an implementation manner, the touch screen processor can also control the drive device to be in a state where vibration is prohibited. Specifically, the control interface of the touch screen processor outputs a prohibition signal to the drive device, and then the drive device outputs a signal to the drive device after receiving the control interface of the touch screen processor. When the prohibition signal is maintained, the vibration device prohibits vibration. Then, if the touch gesture meets the specified condition, the specific implementation manner of inputting the specified signal to the driving device through the control interface is as follows: when the signal currently output by the control interface is a prohibition signal, if the touch gesture meets Specify a condition, change the signal output by the control interface from the prohibition signal to the specified signal, and the prohibition signal is used to instruct the vibration device to prohibit vibration.
具体地,作为一种实施方式,触摸屏处理器判断触摸手势是否满足指定条件,如果满足指定条件,则触摸屏处理器确定控制接口当前输出的信号是否为禁止信号,如果控制接口当前输出的信号为禁止信号,则将所述控制接口输出的信号由禁止信号更改为指定信号,具体地,该禁止信号与指定信号不同,具体地,可以是载波率或者幅频特性不同,则驱动装置可以通过上述方式确定所接收的信号是禁止信号还是指定信号,如果是 禁止信号,则控制驱动装置处于禁止振动模式,如果是指定信号,则控制驱动装置处于允许振动模式,在该禁止振动模式下,驱动装置不响应振动请求,即无法振动,而在允许振动模式下,驱动装置振动。Specifically, as an implementation manner, the touch screen processor determines whether the touch gesture meets the specified condition. If the specified condition is satisfied, the touch screen processor determines whether the signal currently output by the control interface is a prohibition signal, and if the signal currently output by the control interface is prohibition Signal, the signal output by the control interface is changed from a prohibition signal to a specified signal. Specifically, the prohibition signal is different from the specified signal. Specifically, the carrier rate or amplitude-frequency characteristics may be different, and the driving device can use the above method Determine whether the received signal is a prohibition signal or a designated signal. If it is a prohibition signal, the drive device is controlled to be in a vibration prohibition mode. If it is a designated signal, the drive device is controlled to be in an allowed vibration mode. In this prohibition vibration mode, the drive device does not In response to the vibration request, it is unable to vibrate, and in the allowed vibration mode, the drive device vibrates.
于本申请实施例中,所述禁止信号和所述指定信号的电平相反,具体地,禁止信号和所述指定信号的频率和幅度可以相同,但是,电平相反,例如,禁止信号和所述指定信号之间的相位差为90度的奇数倍。则通过信号的电平,驱动装置就能够区分禁止信号和所述指定信号。In the embodiment of the present application, the levels of the prohibition signal and the designated signal are opposite. Specifically, the frequencies and amplitudes of the prohibition signal and the designated signal may be the same, but the levels are opposite. For example, the prohibition signal and the designated signal have opposite levels. The phase difference between the specified signals is an odd multiple of 90 degrees. Then, based on the signal level, the driving device can distinguish the prohibition signal from the designated signal.
于本申请实施例中,将所述控制接口输出的信号由禁止信号更改为所述指定信号的具体实施方式为,将所述控制接口输出的禁止信号的波形执行反相翻转的操作,以更改为所述指定信号,也就是说,直接将禁止信号的波形上下翻转,从而将控制接口输出的信号由禁止信号更改为所述指定信号。例如,禁止信号和指定信号都是方波信号,禁止信号的占空比和指定信号的占空比相加之和为100%,例如,禁止信号的占空比30%,则指定信号的占空比为70%。In the embodiment of the present application, the specific implementation of changing the signal output by the control interface from a prohibition signal to the designated signal is to perform an inverted operation on the waveform of the prohibition signal output by the control interface to change It is the designated signal, that is, the waveform of the prohibition signal is directly flipped up and down, so that the signal output by the control interface is changed from the prohibition signal to the specified signal. For example, the prohibition signal and the designated signal are both square wave signals, and the sum of the duty ratio of the prohibition signal and the duty ratio of the designated signal is 100%. For example, if the duty ratio of the prohibition signal is 30%, the designated signal's The empty ratio is 70%.
于本申请实施例中,所述控制接口为所述触摸屏处理器的控制引脚,所述控制引脚与所述振动装置的驱动引脚连接,则触摸屏处理器的控制引脚为触摸屏处理器预留独立的引脚,用于与驱动装置连接,振动装置的驱动引脚为振动装置的特定引脚。In the embodiment of the present application, the control interface is a control pin of the touch screen processor, and the control pin is connected to the driving pin of the vibration device, and the control pin of the touch screen processor is a touch screen processor. An independent pin is reserved for connection with the driving device, and the driving pin of the vibrating device is a specific pin of the vibrating device.
具体地,禁止信号的电平是第一电平,指定信号的电平为第二电平,则第一电平可以是高电平或者低电平,第二电平与第一电平相反,例如,第一电平为高电平的时候,第二电平为低电平,则第一电平为低电平的时候,第二电平为高电平。触摸屏处理器的控制接口输入驱动装置的电平的变化,可以通过可控开关来实现,例如,触摸屏处理器的控制接口与可控开关连接,可控开关接地,则触摸屏处理器的控制接口输出禁止信号的时候,控制接口控制开关闭合和断开,则开关一个触点接地,开关的另一个触点与振动装置的驱动引脚连接,则开关闭合的时候,振动装置的驱动引脚接地,则触摸屏处理器的控制接口输出低电平的信号至振动装置的驱动引脚,振动装置处于禁止振动模式,即不振动,则开关断开的时候,振动装置的驱动引脚与地断开,变为高高电平,则触摸屏处理器的控制接口输出高电平的信号至振动装置的驱动引脚,振动装置处于振动模式,即触发振动。Specifically, the level of the prohibit signal is the first level, and the level of the designated signal is the second level, the first level can 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 control interface of the touch screen processor inputs the level change of the drive device, which can be realized through a controllable switch. For example, the control interface of the touch screen processor is connected to the controllable switch, and the controllable switch is grounded, then the control interface of the touch screen processor outputs When the signal is disabled, the control interface controls the switch to close and open, then one contact of the switch is grounded, and the other contact of the switch is connected to the driving pin of the vibrating device. When the switch is closed, the driving pin of the vibrating device is grounded. Then the control interface of the touch screen processor outputs a low-level signal to the drive pin of the vibration device. The vibration device is in the vibration prohibited mode, that is, it does not vibrate. When the switch is turned off, the drive pin of the vibration device is disconnected from the ground. When it changes to a high level, the control interface of the touch screen processor outputs a high level signal to the drive pin of the vibration device, and the vibration device is in the vibration mode, that is, the vibration is triggered.
作为一种实施方式,触摸屏处理器的控制引脚可以是触摸屏处理器芯片的通用输入输出接口(General-purpose input/output,GPIO),则振动装置的驱动引脚也可以是振动装置控制芯片的通用输入输出接口。其中,振动装置控制芯片可以是用于控制振动装置振动的芯片。作为一种实施方式,振动装置为线性马达,而振动装置控制芯片为驱动芯片,则振动装置的驱动引脚为驱动芯片的通用输入输出接口。其中,驱动芯片的控制引脚接收指定信号的波形执行触发振动的功能。As an implementation manner, the control pin of the touch screen processor may be the general-purpose input/output (GPIO) of the touch screen processor chip, and the drive pin of the vibration device may also be the control chip of the vibration device. Universal input and output interface. Wherein, the vibration device control chip may be a chip for controlling the vibration of the vibration device. As an embodiment, the vibration device is a linear motor, and the vibration device control chip is a drive chip, and the drive pin of the vibration device is a universal input and output interface of the drive chip. Among them, the control pin of the driving chip receives the waveform of the specified signal to perform the function of triggering vibration.
请参阅图4,本申请实施例提供了一种振动驱动方法,如图4所示,该方法应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接。具体地,该方法包括:S401至S405。Referring to FIG. 4, an embodiment of the present application provides a vibration driving method. As shown in FIG. 4, 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. The touch screen processor The control interface is connected with the vibration device. Specifically, the method includes: S401 to S405.
S401:检测作用于所述触摸屏的触摸手势。S401: Detect a touch gesture acting on the touch screen.
S402:获取触摸手势对应的操作事件。S402: Obtain an operation event corresponding to the touch gesture.
作为一种实施方式,可以预先设定操作手势与操作事件的对应关系,具体地,该操作手势为按压手势,则预先设置操作手势的持续时间与操作事件的第一对应关系,则该第一对应关系包括多个时间区间与操作事件的标识的对应关系,其中,每个时间区间对应一个操作事件的标识,则确定所检测到的操作手势的持续时间,确定该持续时间所属的目标时间区间,然后,在第一对应关系内,确定该目标时间区间对应的操作事件的标识,则该操作事件的标识能够表征触摸手势对应的操作事件。其中,不同的页面所对应 的第一对应关系不同,则先确定当前所显示的界面,确定该界面对应的第一对应关系。As an implementation manner, the corresponding relationship between the operation gesture and the operation event can be preset. Specifically, if the operation gesture is a pressing gesture, the first corresponding relationship between the duration of the operation gesture and the operation event is preset, and then the first The correspondence relationship includes the correspondence relationship between multiple time intervals and operation event identifiers, where each time interval corresponds to an operation event identifier, and the duration of the detected operation gesture is determined, and the target time interval to which the duration belongs is determined Then, in the first correspondence relationship, the identifier of the operation event corresponding to the target time interval is determined, and the identifier of the operation event can represent the operation event corresponding to the touch gesture. Wherein, the first correspondences corresponding to different pages are different, then the currently displayed interface is determined first, and the first correspondence corresponding to the interface is determined.
另外,还可以是操作手势的操作区域所对应的操作事件。具体地,预先设置操作手势的操作区域与操作事件的第二对应关系,则该第二对应关系包括多个操作区域与操作事件的标识的对应关系,其中,每个操作区域对应一个操作事件的标识,则确定所检测到的操作手势的操作区域,作为目标操作区域,然后,在第二对应关系内,确定该目标操作区域对应的操作事件的标识,则该操作事件的标识能够表征触摸手势对应的操作事件。同理,不同的页面所对应的第二对应关系不同,则先确定当前所显示的界面,确定该界面对应的第二对应关系。In addition, it may also be an operation event corresponding to the operation area of the operation gesture. Specifically, the second corresponding relationship between the operation area of the operation gesture and the operation event is preset, and the second corresponding relationship includes the corresponding relationship between a plurality of operation areas and the identifier of the operation event, wherein each operation area corresponds to the operation event. ID, the operation area of the detected operation gesture is determined as the target operation area, and then, in the second correspondence, the operation event identifier corresponding to the target operation area is determined, then the operation event identifier can represent the touch gesture The corresponding operation event. Similarly, if the second correspondences corresponding to different pages are different, the currently displayed interface is determined first, and the second correspondence corresponding to the interface is determined.
当然,如果该操作手势为滑动手势的时候,可以根据滑动轨迹确定所对应的操作事件。具体地,预先设置操作手势的滑动轨迹与操作事件的第三对应关系,则该第三对应关系包括多个滑动轨迹与操作事件的标识的对应关系,其中,每个滑动轨迹对应一个操作事件的标识,则确定所检测到的操作手势的滑动轨迹,作为目标滑动轨迹,然后,在第三对应关系内,确定该目标滑动轨迹对应的操作事件的标识,则该操作事件的标识能够表征触摸手势对应的操作事件。同理,不同的页面所对应的第三对应关系不同,则先确定当前所显示的界面,确定该界面对应的第三对应关系。Of course, if the operation gesture is a sliding gesture, the corresponding operation event can be determined according to the sliding track. Specifically, the third corresponding relationship between the sliding track of the operation gesture and the operation event is preset, and the third corresponding relationship includes the corresponding relationship between a plurality of sliding tracks and the identifiers of the operation event, wherein each sliding track corresponds to the operation event. ID, the detected sliding trajectory of the operation gesture is determined as the target sliding trajectory, and then, in the third correspondence, the operation event ID corresponding to the target sliding trajectory is determined, then the operation event ID can represent the touch gesture The corresponding operation event. Similarly, if the third correspondences corresponding to different pages are different, the currently displayed interface is determined first, and the third correspondence corresponding to the interface is determined.
S403:判断所述触摸手势对应的操作事件是否为指定事件。S403: Determine whether the operation event corresponding to the touch gesture is a designated event.
S404:通过所述控制接口发送振动指令至所述振动装置。S404: Send a vibration instruction to the vibration device through the control interface.
S405:通过所述控制接口发送禁止指令至所述振动装置。S405: Send a prohibition instruction to the vibration device through the control interface.
其中,指定事件为需要触发电子设备的振动装置振动以提醒用户的事件。可以根据实际使用而预先设定,而每个事件都对应一个标识,则判断所述触摸手势对应的操作事件是否为指定事件的实施方式可以是,判断所述触摸手势对应的操作事件的标识与指定事件的标识是否匹配,如果匹配,则判定所述触摸手势对应的操作事件为指定事件,否则,判定所述触摸手势对应的操作事件不为指定事件。Among them, the designated event is an event that needs to trigger the vibration of the vibration device of the electronic device to remind the user. It can be pre-set according to actual use, and each event corresponds to an identifier. The implementation manner for determining whether the operation event corresponding to the touch gesture is a designated event may be to determine whether the operation event corresponding to the touch gesture is identified with Whether the identifier of the designated event matches, if it matches, it is determined that the operation event corresponding to the touch gesture is a designated event; otherwise, it is determined that the operation event corresponding to the touch gesture is not a designated event.
于本申请实施例中,操作手势为按压手势,即触摸操作为按压操作。则判断所述触摸手势对应的操作事件是否为指定事件的实施方式可以是根据触摸手势的操作区域来判断,则具体地,可以是根据上述的第二对应关系,根据触摸操作的操作区域确定该操作区域对应的操作事件,另外,还可以直接判断触摸操作的操作区域是否为指定区域,来确定触摸手势对应的操作事件是否为指定事件。具体地,判断所述触摸手势对应的操作事件是否为指定事件的具体实施方式为确定所述触摸手势在所述触摸屏上的操作区域;若所述操作区域为指定区域,则判定所述触摸手势对应的操作事件为指定事件;若所述操作区域不为指定区域,则判定所述触摸手势对应的操作事件不为指定事件。In the embodiment of the present application, the operation gesture is a pressing gesture, that is, the touch operation is a pressing operation. Then, the embodiment for determining whether the operation event corresponding to the touch gesture is a designated event may be determined according to the operation area of the touch gesture, specifically, it may be determined according to the above-mentioned second correspondence relationship and the operation area of the touch operation. The operation event corresponding to the operation area, in addition, it is also possible to directly determine whether the operation area of the touch operation is a designated area to determine whether the operation event corresponding to the touch gesture is a designated event. Specifically, a specific implementation for determining whether the operation event corresponding to the touch gesture is a designated event is to determine the operation area of the touch gesture on the touch screen; if the operation area is a designated area, then determine the touch gesture The corresponding operation event is a designated event; if the operation area is not a designated area, it is determined that the operation event corresponding to the touch gesture is not a designated event.
其中,指定区域为预先设定的区域,用户按压该指定区域表示触发了指定事件,其中,该指定区域可以是预先设定的区域。The designated area is a preset area, and the user presses the designated area to indicate that a designated event is triggered, where the designated area may be a preset area.
于本申请实施例中,该指定时间为触摸屏屏下采集事件,则该指定区域为电子设备用于采集指纹的区域,如图5所示,在该电子设备的触摸屏上预先设置指定区域501,当电子设备开启触摸屏屏下采集功能的时候,用户将手指放在该指定区域501,电子设备执行指纹采集操作。则如果用户将手指按压该指定区域501,触摸屏处理器能够检测到指定区域501被按压,则通过所述控制接口发送振动指令至所述振动装置,从而电子设备的振动装置振动,用户能够感受到电子设备的振动,则用户获知手指按压的位置为指纹采集的区域,则如果触摸屏处理器未检测到指定区域501被按压,则通过所述控制接口发送禁止指令至所述振动装置,其中,禁止指令用于禁止振动装置振动,具体地,该禁止指令可以是上述的禁止信号,则电子设备没有振动,用户获知手指按压的位置不是指纹采集的区域,则用户需要调整手指的按压位置。In the embodiment of the present application, the specified time is a collection event under the touch screen, and the specified area is the area used by the electronic device to collect fingerprints. As shown in FIG. 5, a specified area 501 is preset on the touch screen of the electronic device. When the electronic device turns on the collection function under the touch screen, the user places a finger on the designated area 501, and the electronic device performs a fingerprint collection operation. If the user presses the finger on the designated area 501, the touch screen processor can detect that the designated area 501 is pressed, and then sends a vibration instruction to the vibration device through the control interface, so that the vibration device of the electronic device vibrates, and the user can feel If the electronic device vibrates, the user knows that the position pressed by the finger is the fingerprint collection area, and if the touch screen processor does not detect that the designated area 501 is pressed, it sends a prohibition instruction to the vibration device through the control interface, where prohibition The instruction is used to prohibit the vibration of the vibrating device. Specifically, the prohibition instruction may be the prohibition signal described above. If the electronic device does not vibrate, and the user knows that the position pressed by the finger is not the fingerprint collection area, the user needs to adjust the pressing position of the finger.
而由于在电子设备开启触摸屏屏下采集功能的时候,电子设备的指定区域501才会被用于采集指纹,则在确定所述触摸手势在所述触摸屏上的操作区域之前还需要确定触摸屏屏下采集功能是否开启,具体地,确定所述触摸手势在所述触摸屏上的操作区域的具体实施方式为判断所述触摸屏屏下采集功能是否开启;若开启,则确定所述触摸手势在所述触摸屏上的操作区域。Since the designated area 501 of the electronic device will be used to collect fingerprints when the electronic device turns on the collection function under the touch screen, it is necessary to determine that the touch gesture is under the touch screen before determining the operation area on the touch screen. Whether the collection function is turned on, specifically, the specific implementation for determining the operation area of the touch gesture on the touch screen is to determine whether the collection function under the touch screen is turned on; if it is turned on, it is determined that the touch gesture is on the touch screen. The operating area on the top.
具体地,可以是在电子设备处于黑屏状态的时候,判断所述触摸屏屏下采集功能是否开启。则于本申请实施例中,触目屏处理器在电子设备处于黑屏状态的时候,如果开启触摸屏屏下采集功能,则确定作用于所述触摸屏的触摸手势是否为指纹输入操作,具体地,可以确定所述触摸手势在所述触摸屏上的操作区域,判断该区域是否为指定区域,其中,指定区域为触摸屏上用于采集指纹的区域。如果是指定区域,则判定触摸手势为指纹输入操作,则通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。Specifically, when the electronic device is in a black screen state, it may be determined whether the collection function under the touch screen is enabled. In the embodiment of the present application, when the electronic device is in the black screen state, the touch screen processor determines whether the touch gesture acting on the touch screen is a fingerprint input operation if the collection function of the touch screen is turned on when the electronic device is in the black screen state. Specifically, it can be determined The touch gesture is an operation area on the touch screen to determine whether the area is a designated area, where the designated area is an area on the touch screen for fingerprint collection. If it is a designated area, it is determined that the touch gesture is a fingerprint input operation, and then a vibration instruction is sent to the vibration device through the control interface, and the vibration instruction is used to instruct the vibration device to vibrate.
具体地,可以通过判断当前的界面是否为指纹采集界面的方式来确定触摸屏屏下采集功能是否开启。具体地,确定电子设备当前所显示的界面的标识,确定该标识是否满足预设界面条件,如果满足预设界面条件,则判定所述触摸屏屏下采集功能开启,如果不满足预设界面条件,则判定所述触摸屏屏下采集功能未开启。Specifically, it can be determined whether the collection function under the touch screen is enabled by judging whether the current interface is a fingerprint collection interface. Specifically, the identification of the interface currently displayed by the electronic device is determined, whether the identification meets the preset interface conditions, and if the preset interface conditions are met, it is determined that the collection function under the touch screen is enabled, and if the preset interface conditions are not met, It is determined that the collection function under the touch screen is not turned on.
具体地,确定该标识是否满足预设界面条件的实施方式可以是,判断界面的标识是否为指定界面标识,如果是,则判定该标识满足预设界面条件,否则,判定该标识不满足预设界面条件。Specifically, the implementation manner for determining whether the logo meets the preset interface conditions may be to determine whether the logo of the interface is a designated interface logo, if so, then it is determined that the logo meets the preset interface conditions, otherwise, it is determined that the logo does not meet the preset interface conditions. Interface conditions.
另外,确定该标识是否满足预设界面条件的实施方式还可以是,根据该界面的标识确定该界面的类型,如果该界面的类型为预设类型,则判定该标识满足预设界面条件,否则,判定该标识不满足预设界面条件,则该预设类型可以是解锁界面和支付界面。In addition, the implementation manner for determining whether the logo meets the preset interface conditions may also be to determine the type of the interface according to the logo of the interface, and if the type of the interface is a preset type, then it is determined that the logo meets the preset interface conditions, otherwise If it is determined that the identifier does not meet the preset interface conditions, the preset type may be an unlock interface and a payment interface.
如图5和6所示,图5所示的界面为解锁界面,图6所示的界面为支付界面,具体地,还可以根据用户进入该界面的操作而确定触摸屏屏下采集功能是否开启。具体地,该界面对应一个进入操作,该进入操作可以是操作按钮,该操作按钮被按下的时候会显示图5或图6所示的需要启动触摸屏屏下采集功能的界面,则在检测到该操作按钮被按下时,确定触摸屏屏下采集功能开启。例如,用户点击支付按钮,则确定触摸屏屏下采集功能开启,同时电子设备在屏幕上显示图6所示的支付界面。As shown in Figs. 5 and 6, the interface shown in Fig. 5 is an unlocking interface, and the interface shown in Fig. 6 is a payment interface. Specifically, it can also be determined whether the collection function under the touch screen is enabled according to the operation of the user entering the interface. Specifically, this interface corresponds to an entry operation. The entry operation can be an operation button. When the operation button is pressed, it will display the interface shown in Figure 5 or Figure 6 that needs to start the collection function under the touch screen. When the operation button is pressed, make sure that the acquisition function under the touch screen is turned on. For example, if the user clicks the payment button, it is determined that the collection function under the touch screen is turned on, and the electronic device displays the payment interface shown in FIG. 6 on the screen.
作为另一种实施方式,处理器检测与触摸屏屏下采集功能对应的参数的状态,例如,触摸屏屏下采集功能开启的时候,该参数为第一状态,触摸屏屏下采集功能关闭的时候,该参数为第二状态。因此,通过检测待参数是否为第一状态,就能够确定触摸屏屏下采集功能是否开启。As another embodiment, the processor detects the state of the parameter corresponding to the collection function under the touch screen. For example, when the collection function under the touch screen is turned on, the parameter is in the first state, and when the collection function under the touch screen is turned off, the parameter is in the first state. The parameter is the second state. Therefore, it can be determined whether the collection function under the touch screen is enabled by detecting whether the parameter to be in the first state is in the first state.
再者,考虑到指定区域采集到触摸操作,但是,该触摸操作并非是用于采集指纹,例如,电子设备在用户的口袋内被其他物体按压屏幕,或者用户戴着手套按压触摸屏,则电子设备还包括设置在所述触摸屏上的操作区域下的指纹采集装置,所述通过所述控制接口发送振动指令至所述振动装置的实施方式可以是,所述触摸屏处理器判断在预设时间段内是否获取到所述指纹采集装置采集的指纹;若获取到所述指纹采集装置采集的指纹,则通过所述控制接口发送振动指令至所述振动装置,若未获取到所述指纹采集装置采集的指纹,则保持所述振动装置处于禁止振动的状态。其中,预设时间段可以是根据实际使用而设定的,例如,可以是3秒。Furthermore, considering that the touch operation is collected in the designated area, the touch operation is not used to collect fingerprints. For example, if the electronic device is pressed on the screen by other objects in the user's pocket, or the user presses the touch screen while wearing gloves, the electronic device It also includes a fingerprint collection device arranged under the operating area on the touch screen. The implementation manner of sending a vibration instruction to the vibration device through the control interface may be that the touch screen processor determines that it is within a preset time period. Whether the fingerprint collected by the fingerprint collection device is obtained; if the fingerprint collected by the fingerprint collection device is obtained, a vibration instruction is sent to the vibration device through the control interface, if the fingerprint collected by the fingerprint collection device is not obtained Fingerprints keep the vibration device in a state where vibration is prohibited. The preset time period may be set according to actual use, for example, it may be 3 seconds.
请参阅图7,本申请实施例提供了一种振动驱动方法,如图7所示,该方法应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接。具体地,该方法包括:S701至S706。Referring to FIG. 7, an embodiment of the present application provides a vibration driving method. As shown in FIG. 7, 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. The touch screen processor The control interface is connected with the vibration device. Specifically, the method includes: S701 to S706.
S701:检测作用于所述触摸屏的触摸手势。S701: Detect a touch gesture acting on the touch screen.
S702:获取所述电子设备的运行参数。S702: Acquire operating parameters of the electronic device.
其中,运行参数可以是电子设备的CPU使用率、剩余电量、剩余内存等参数。Among them, the operating parameters may be the CPU usage rate, remaining power, remaining memory and other parameters of the electronic device.
S703:判断所述运行参数是否满足预设条件。S703: Determine whether the operating parameter meets a preset condition.
判断所述运行参数是否满足预设条件;若满足预设要求,判断所述触摸手势是否满足指定条件;若满足指定条件,通过所述控制接口发送振动指令至所述振动装置。It is determined whether the operating parameter meets a preset condition; if the preset requirement is met, it is determined whether the touch gesture meets a specified condition; if the specified condition is satisfied, a vibration instruction is sent to the vibration device through the control interface.
于本申请实施例中,运行参数可以是电子设备的CPU使用率,则判断所述运行参数是否满足预设条件的具体实施方式为,判断所述中央处理器的使用率是否大于使用率阈值,若大于使用率阈值,则判定所述运行参数满足预设条件,否则,判定所述运行参数不满足预设条件。In the embodiment of the present application, the operating parameter may be the CPU usage rate of the electronic device, and then a specific implementation manner for determining whether the operating parameter satisfies the preset condition is to determine whether the usage rate of the central processing unit is greater than the usage rate threshold, If it is greater than the usage rate threshold, it is determined that the operating parameter meets the preset condition; otherwise, it is determined that the operating parameter does not meet the preset condition.
则具体地,中央处理器的使用率可以通过查看电子设备的任务管理器而获取,例如,在安卓系统下,通过adb shell top指令获取CPU的使用率。其中,使用率阈值可以是用户设定的使用率,例如,使用率阈值可以是60%,假设CPU的当前的使用率为40%,则40%小于60%,判定中央处理器的使用率小于使用率阈值,假如CPU的当前的使用率为70%,则70%大于60%,判定中央处理器的使用率大于使用率阈值。Specifically, the CPU usage rate can be obtained by viewing the task manager of the electronic device. For example, in the Android system, the CPU usage rate can be obtained through the adb shell top command. Among them, the utilization rate threshold may be a utilization rate set by the user. For example, the utilization rate threshold may be 60%. Assuming that the current utilization rate of the CPU is 40%, 40% is less than 60%, and it is determined that the utilization rate of the central processing unit is less than The utilization rate threshold, if the current utilization rate of the CPU is 70%, then 70% is greater than 60%, and it is determined that the utilization rate of the central processing unit is greater than the utilization rate threshold.
而如果中央处理器的使用率小于使用率阈值,则表示CPU当前资源比较富裕,则可以使用CPU处理待播放视频文件,而如果中央处理器的使用率大于或等于使用率阈值,则表示CPU当前资源比较匮乏,则使用CPU处理待播放视频文件。If the utilization rate of the central processing unit is less than the utilization rate threshold, it means that the current CPU resources are relatively rich, and the CPU can be used to process the video files to be played. If the utilization rate of the central processing unit is greater than or equal to the utilization rate threshold, it means that the CPU is currently Resources are relatively scarce, and the CPU is used to process the video files to be played.
另外,由于CPU的使用率是当前启动的应用程序的使用率之和,则能够获取到当前每个所开启的应用程序的使用率,判断当前所开启的应用程序中是否存在与预设应用程序匹配的应用程序,其中,预设应用程序为允许系统在用户未授权的情况下将应用程序关闭的应用程序,如果存在,则将与预设应用程序匹配的应用程序的关闭,然后再获取CPU当前的使用率作为CPU的使用率,并返回执行判断所述中央处理器的使用率是否小于使用率阈值的操作。In addition, because the CPU usage rate is the sum of the usage rate of the currently launched applications, the usage rate of each currently opened application can be obtained, and it can be judged whether there is a preset application in the currently opened application. Matching applications, where the preset application is an application that allows the system to close the application without the user's authorization. If it exists, the application that matches the preset application will be closed, and then the CPU will be obtained The current utilization rate is used as the utilization rate of the CPU, and the operation of determining whether the utilization rate of the central processing unit is less than the utilization rate threshold is returned and executed.
具体地,电子设备内预先存储有预设应用程序的列表,在该预设应用程序的列表内包括多个指定应用程序的标识,其中,指定应用程序为用户授权的允许系统在用户未授权的情况下将应用程序关闭的应用程序,具体地,可以是用户手动输入该指定应用程序的标识。Specifically, a list of preset applications is pre-stored in the electronic device, and the list of preset applications includes a plurality of designated application identities, wherein the designated application is authorized by the user and allows the system to be unauthorised by the user. In this case, the application that closes the application may be specifically the user manually inputting the identification of the specified application.
则扫描当前系统进程中每个进程对应的应用程序以及每个进程的CPU使用率,并获取CPU当前的使用率,在所扫描到的所有应用程序中查找与预设应用程序匹配的应用程序,作为待处理应用程序,将待处理应用程序关闭并将待处理应用程序对应的进程杀死,然后,获取在待处理应用程序对应的进程杀死之后的CPU的使用率,作为更新使用率,将更新使用率作为CPU新的使用率,判断CPU新的使用率是否小于使用率阈值。Then scan the application corresponding to each process in the current system process and the CPU usage rate of each process, and obtain the current CPU usage rate, and find the application that matches the preset application among all the scanned applications. As a pending application, close the pending application and kill the process corresponding to the pending application, and then obtain the CPU usage rate after the process corresponding to the pending application is killed, as the update usage rate, Update the utilization rate as the new utilization rate of the CPU, and determine whether the new utilization rate of the CPU is less than the utilization rate threshold.
作为另一种实施方式,所述运行参数包括剩余电量,所述判断所述运行参数是否满足预设条件,包括:判断所述剩余电量是否大于预设电量值;如果大于预设电量值,则判定所述运行参数满足预设条件;如果不大于预设电量值,则判定所述运行参数不满足预设条件。则剩余电量小于或等于预设电量阈值的时候,确定处于电量不足状态,则剩余电量大于预设电量阈值的时候,确定处于电量充足状态。As another implementation manner, the operating parameter includes a remaining power, and the determining whether the operating parameter meets a preset condition includes: determining whether the remaining power is greater than a preset power value; if it is greater than the preset power value, then It is determined that the operating parameter meets the preset condition; if it is not greater than the preset power value, it is determined that the operating parameter does not meet the preset condition. When the remaining power is less than or equal to the preset power threshold, it is determined to be in a low power state, and when the remaining power is greater than the preset power threshold, it is determined to be in a sufficient power state.
具体地,获取所述电子设备的电池电量。Specifically, the battery power of the electronic device is obtained.
具体地,电子设备能够获取电池电量使用状态,该电池电量使用状态用于表示电子设备的电池电量,因此,通过获取到电池电量使用状态就能够获取电子设备的电池电量。Specifically, the electronic device can obtain the battery power usage status, which is used to indicate the battery power of the electronic device. Therefore, the battery power usage status of the electronic device can be obtained by obtaining the battery power usage status.
具体地,该电池电量使用状态可以是电池电量百分比,例如,50%。则电池电量百 分比用于表示电池电量,如该50%表示电池电量为总电量的50%。Specifically, the battery power usage state may be a battery power percentage, for example, 50%. The battery power percentage is used to represent the battery power, for example, the 50% means that the battery power is 50% of the total power.
判断所述电池电量是否大于预设电量值。Determine whether the battery power is greater than a preset power value.
其中,预设电量值用于表征电子设备的电池电量处于某个电池电量使用状态,其中,该电池电量使用状态包括电量充足状态、电量不足状态和电量正常状态,其中,电量充足状态时,电池的电量大于第一阈值,电量不足状态时,电池的电量低于第二阈值,电量正常状态时,电池的电量大于或等于第二阈值且小于或等于第一阈值。其中,第一阈值和第二阈值可以根据实际使用而设定,例如,该第一阈值为80%,第二阈值为20%。作为一种实施方式,于本申请实施例中,预设电量值用于表征电子设备的电池电量处于电量不足状态,则预设电量值可以是20%。Among them, the preset power value is used to indicate that the battery power of the electronic device is in a certain battery power use state, where the battery power use state includes a full power state, a low power state, and a normal power state. In the fully charged state, the battery The power of the battery is greater than the first threshold. When the power is insufficient, the power of the battery is lower than the second threshold. When the power is normal, the power of the battery is greater than or equal to the second threshold and less than or equal to the first threshold. The first threshold and the second threshold can be set according to actual use. For example, the first threshold is 80% and the second threshold is 20%. As an implementation manner, in the embodiment of the present application, the preset power value is used to indicate that the battery power of the electronic device is in a low power state, 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, and if the remaining power of the battery is lower than the preset power value, If the battery power level is greater than or equal to the preset power value, it is determined that the battery power use state is a full power state, that is, it is not a low power state.
作为另一种实施方式,该电池电量可以是预设的状态标识,在获取到电池当前的电池电量时,判断该电池电量是否小于预设电量值。具体地,该状态标识为一个参数值,例如,电量充足状态、电量不足状态和电量正常状态分别为r1、r2和r3,则电子设备读取该参数值,如果读取到的是r2,则判定该电池电量小于预设电量值,如果读取到的参数值为r1或r3,则判定该电池电量大于或等于预设电量值。As another implementation manner, the battery power may be a preset status indicator, and when the current battery power of the battery is obtained, it is determined whether the battery power is less than the preset power value. Specifically, the state is identified as a parameter value, for example, the fully charged state, the low-charged state, and the normal-charged state are r1, r2, and r3, respectively, and the electronic device reads the parameter value, and if the read is r2, then It is determined that the battery power is less than the preset power value, and if the read parameter value is r1 or r3, it is determined that the battery power is greater than or equal to the preset power value.
作为又一种实施方式,所述判断所述运行参数是否满足预设条件的具体实施方式还可以是,根据所述运行参数确定所述电子设备的工作模式;判断所述工作模式是否为指定模式;如果是指定模式,则判定所述运行参数满足预设条件;如果不是指定模式,则判定所述运行参数不满足预设条件。As yet another implementation manner, the specific implementation manner for determining whether the operating parameter meets the preset condition may also be: determining the operating mode of the electronic device according to the operating parameter; determining whether the operating mode is a designated mode ; If it is a designated mode, it is determined that the operating parameters meet the preset conditions; if it is not a designated mode, it is determined that the operating parameters do not meet the preset conditions.
其中,工作模式包括静音模式和睡眠模式,则运行参数可以包括电子设备的扬声器状态、放置状态和环境亮度状态等,其中,环境亮度状态可以是根据电子设备的光强度传感器确定的环境光的亮度值,如果低于亮度阈值,则环境亮度状态为光线暗,否则,环境亮度状态为光线强,而放置状态可以是电子设备的传感器而确定的,例如,根据电子设备的陀螺仪传感器或者惯性测量单元等。Among them, the working mode includes silent mode and sleep mode, the operating parameters may include the speaker state, placement state, and environmental brightness state of the electronic device, etc., where the environmental brightness state may be the brightness of the ambient light determined by the light intensity sensor of the electronic device If the value is lower than the brightness threshold, the environment brightness state is dark, otherwise, the environment brightness state is strong light, and the placement state can be determined by the sensor of the electronic device, for example, according to the gyroscope sensor or inertial measurement of the electronic device Unit etc.
作为一种实施方式,指定模式为睡眠模式,如果运行参数中,环境亮度状态为光线暗、放置状态为静置状态且当前的时间点为睡眠时间段内,则确定工作模式为睡眠模式,即工作模式为指定模式。As an implementation manner, the designated mode is the sleep mode. If in the operating parameters, the ambient brightness state is dark, the placement state is the resting state, and the current time point is within the sleep time period, then the working mode is determined to be the sleep mode, that is The working mode is the designated mode.
作为另一种实施方式,指定模式为静音模式,如果运行参数中,扬声器状态为静音,则确定工作模式为静音模式,即工作模式为指定模式。As another implementation manner, the designated mode is the silent mode, and if the speaker status is silent in the operating parameters, it is determined that the working mode is the silent mode, that is, the working mode is the designated mode.
作为另一种实施方式,指定模式为会议模式,如果运行参数中,放置状态为静置状态,扬声器状态为静音,且电子设备处于锁屏模式,则确定工作模式为会议模式,即工作模式为指定模式。As another embodiment, the designated mode is the conference mode. If in the operating parameters, the placement state is the static state, the speaker state is mute, and the electronic device is in the lock screen mode, then the working mode is determined to be the conference mode, that is, the working mode is Specify the mode.
如果是指定模式,则判定所述运行参数满足预设条件;如果不是指定模式,则判定所述运行参数不满足预设条件。If it is the designated mode, it is determined that the operating parameter meets the preset condition; if it is not the designated mode, it is determined that the operating parameter does not meet the preset condition.
S704:判断所述触摸手势是否满足指定条件。S704: Determine whether the touch gesture meets a specified condition.
S705:通过所述控制接口发送振动指令至所述振动装置。S705: Send a vibration instruction to the vibration device through the control interface.
S706:通过所述控制接口发送禁止指令至所述振动装置。S706: Send a prohibition instruction to the vibration device through the control interface.
请参阅图8,其示出了本申请实施例提供的一种振动驱动装置800的结构框图,应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接。该装置可以包括:检测单元801和确定单元802。Please refer to FIG. 8, which shows a structural block diagram of a vibration driving device 800 provided by an embodiment of the present application, which is applied to a touch screen processor of an electronic device. The electronic device further includes a touch screen and a vibration device. The touch screen processor The control interface is connected with the vibration device. The device may include: a detection unit 801 and a determination unit 802.
检测单元801,用于检测作用于所述触摸屏的触摸手势。The detection unit 801 is configured to detect touch gestures acting on the touch screen.
确定单元802,用于若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。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.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
请参阅图9,其示出了本申请实施例提供的一种振动驱动装置900的结构框图,应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接,具体地,所述控制接口为所述触摸屏处理器的控制引脚,所述控制引脚与所述振动装置的驱动引脚连接。该装置可以包括:检测单元910和确定单元920。Please refer to FIG. 9, which shows a structural block diagram of a vibration driving device 900 provided by an embodiment of the present application, which is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, the touch screen processor The control interface of is connected to the vibration device. 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 device. The device may include: a detection unit 910 and a determination unit 920.
检测单元910,用于检测作用于所述触摸屏的触摸手势。The detection unit 910 is configured to detect touch gestures acting on the touch screen.
确定单元920,用于若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。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, and the vibration instruction is used to instruct the vibration device to vibrate.
进一步地,所述振动指令包括指定信号,确定单元920还用于若所述触摸手势满足指定条件,通过所述控制接口输入所述指定信号至所述驱动装置。Further, the vibration instruction includes a designated signal, and the determining unit 920 is further configured to input the designated signal to the driving device through the control interface if the touch gesture meets a designated condition.
进一步地,确定单元920还用于当所述控制接口当前输出的信号为禁止信号,若所述触摸手势满足指定条件,将所述控制接口输出的信号由所述禁止信号更改为所述指定信号,所述禁止信号用于指示所述振动装置禁止振动。Further, the determining unit 920 is further configured to: when the signal currently output by the control interface is a prohibition signal, if the touch gesture meets a specified condition, change the signal output by the control interface from the prohibition signal to the specified signal , The prohibition signal is used to instruct the vibration device to prohibit vibration.
其中,所述禁止信号和所述指定信号的电平相反。Wherein, the prohibition signal and the designated signal have opposite levels.
进一步地,确定单元920还用于将所述控制接口输出的禁止信号的波形执行反相翻转的操作,以更改为所述指定信号。Further, the determining unit 920 is further configured to perform an inversion operation on the waveform of the prohibition signal output by the control interface to change it to the designated signal.
具体地,确定单元920包括判断子单元921和发送子单元922。Specifically, the determining unit 920 includes a judging subunit 921 and a sending subunit 922.
判断子单元921用于判断所述触摸手势对应的操作事件是否为指定事件。The judging subunit 921 is used to judge whether the operation event corresponding to the touch gesture is a designated event.
发送子单元922用于如果是指定事件,则通过所述控制接口发送振动指令至所述振动装置。The sending subunit 922 is configured to send a vibration instruction to the vibration device through the control interface if it is a designated event.
进一步地,判断子单元921还用于确定所述触摸手势在所述触摸屏上的操作区域;若所述操作区域为指定区域,则判定所述触摸手势对应的操作事件为指定事件;若所述操作区域不为指定区域,则判定所述触摸手势对应的操作事件不为指定事件。Further, the judging subunit 921 is further configured to determine the operation area of the touch gesture on the touch screen; if the operation area is a designated area, determine that the operation event corresponding to the touch gesture is a designated event; If the operation area is not a designated area, it is determined that the operation event corresponding to the touch gesture is not a designated event.
进一步地,所述指定事件为触摸屏屏下采集事件,判断子单元921还用于判断所述触摸屏屏下采集功能是否开启;若开启,则确定所述触摸手势在所述触摸屏上的操作区域。Further, the specified event is a collection event under the touch screen, and the judging subunit 921 is also used to determine whether the collection function under the touch screen is enabled; if enabled, determine the operation area of the touch gesture on the touch screen.
进一步地,所述电子设备还包括设置在所述触摸屏上的操作区域下的指纹采集装置,判断子单元921还用于判断在预设时间段内是否获取到所述指纹采集装置采集的指纹;若获取到所述指纹采集装置采集的指纹,则通过所述控制接口发送振动指令至所述振动装置。若未获取到所述指纹采集装置采集的指纹,则保持所述振动装置处于禁止振动的状态。Further, the electronic device further includes a fingerprint collection device arranged under the operation area on the touch screen, and the determination subunit 921 is further configured to determine whether the fingerprint collected by the fingerprint collection device is acquired within a preset time period; If the fingerprint collected by the fingerprint collection device is acquired, a vibration instruction is sent to the vibration device through the control interface. If the fingerprint collected by the fingerprint collecting device is not obtained, the vibration device is kept in a state where vibration is prohibited.
进一步地,判断子单元921还用于判断所述触摸手势是否为按压手势;若是按压手势,则确定所述触摸手势在所述触摸屏上的操作区域。Further, the determining subunit 921 is further configured to determine whether the touch gesture is a pressing gesture; if it is a pressing gesture, determine the operation area of the touch gesture on the touch screen.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
请参阅图10,其示出了本申请实施例提供的一种振动驱动装置1000的结构框图,应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接,具体地,所述控制接口为所述触摸屏处理器的控制引脚,所述控制引脚与所述振动装置的驱动引脚连接。该装置可以包括:检测单元 1010和确定单元1020。Please refer to FIG. 10, which shows a structural block diagram of a vibration driving device 1000 provided by an embodiment of the present application, which is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, the touch screen processor The control interface of is connected to the vibration device. 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 device. The device may include: a detection unit 1010 and a determination unit 1020.
检测单元1010,用于检测作用于所述触摸屏的触摸手势。The detection unit 1010 is used to detect touch gestures acting on the touch screen.
确定单元1020,用于若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。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, and the vibration instruction is used to instruct the vibration device to vibrate.
进一步地,所述振动指令包括指定信号,确定单元1020还用于若所述触摸手势满足指定条件,通过所述控制接口输入所述指定信号至所述驱动装置。Further, the vibration instruction includes a designated signal, and the determining unit 1020 is further configured to input the designated signal to the driving device through the control interface if the touch gesture meets a designated condition.
进一步地,确定单元1020还用于当所述控制接口当前输出的信号为禁止信号,若所述触摸手势满足指定条件,将所述控制接口输出的信号由所述禁止信号更改为所述指定信号,所述禁止信号用于指示所述振动装置禁止振动。Further, the determining unit 1020 is further configured to: when the signal currently output by the control interface is a prohibition signal, if the touch gesture meets a specified condition, change the signal output by the control interface from the prohibition signal to the specified signal , The prohibition signal is used to instruct the vibration device to prohibit vibration.
其中,所述禁止信号和所述指定信号的电平相反。Wherein, the prohibition signal and the designated signal have opposite levels.
进一步地,确定单元1020还用于将所述控制接口输出的禁止信号的波形执行反相翻转的操作,以更改为所述指定信号。Further, the determining unit 1020 is further configured to perform an inversion operation on the waveform of the prohibition signal output by the control interface to change it to the designated signal.
确定单元1020包括参数获取子单元1201、参数判断子单元1022、手势确定子单元1023和发送子单元1024。The determination unit 1020 includes a parameter acquisition subunit 1201, a parameter judgment subunit 1022, a gesture determination subunit 1023, and a sending subunit 1024.
参数获取子单元1201用于获取所述电子设备的运行参数。The parameter acquisition subunit 1201 is used to acquire the operating parameters of the electronic device.
参数判断子单元1022用于判断所述运行参数是否满足预设条件。The parameter judging subunit 1022 is used to judge whether the operating parameters meet preset conditions.
进一步地,所述运行参数包括剩余电量,所述参数判断子单元1022还用于判断所述剩余电量是否大于预设电量值;如果大于预设电量值,则判定所述运行参数满足预设条件;如果不大于预设电量值,则判定所述运行参数不满足预设条件。Further, the operating parameters include the remaining power, and the parameter judging subunit 1022 is also used to determine whether the remaining power is greater than a preset power value; if it is greater than the preset power value, it is determined that the operating parameter satisfies the preset condition ; If it is not greater than the preset power value, it is determined that the operating parameters do not meet the preset conditions.
进一步地,所述参数判断子单元1022还用于根据所述运行参数确定所述电子设备的工作模式;判断所述工作模式是否为指定模式;如果是指定模式,则判定所述运行参数满足预设条件;如果不是指定模式,则判定所述运行参数不满足预设条件。Further, the parameter judgment subunit 1022 is further configured to determine the operating mode of the electronic device according to the operating parameters; determine whether the operating mode is a designated mode; if it is a designated mode, determine that the operating parameters meet the expected Set conditions; if it is not a designated mode, it is determined that the operating parameters do not meet the preset conditions.
其中,所述指定模式为静音模式。Wherein, the designated mode is a silent mode.
手势确定子单元1023用于若满足预设要求,判断所述触摸手势是否满足指定条件。The gesture determination subunit 1023 is configured to determine whether the touch gesture meets a specified condition if the preset requirement is met.
发送子单元1024用于若满足指定条件,通过所述控制接口发送振动指令至所述振动装置。The sending subunit 1024 is configured to send a vibration instruction to the vibration device through the control interface if the specified condition is met.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。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 above-mentioned integrated modules can be implemented in the form of hardware or software function modules.
请参考图11,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、振动装置130和触摸屏140。Please refer to FIG. 11, which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book. The electronic device 100 in this 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.
以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。And one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method embodiments described above The described method.
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing, DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器111(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、触摸屏处理器112和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100. Optionally, the processor 110 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). A kind of hardware form to realize. The processor 110 may be integrated with one or a combination of a central processing unit 111 (CPU), a graphics processing unit (GPU), a touch screen processor 112, a modem, and the like. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
中央处理器中存储的指令执行时,在中央处理器执行应用于中央处理器的方法。触摸屏处理器中存储的指令执行时,在触摸屏处理器执行应用于触摸屏处理器的方法。例如,中央处理器用于接收触摸屏处理器上报的触摸坐标点;而触摸屏处理器用于执行行数振动驱动方法。When the instructions stored in the central processing unit are executed, the central processing unit executes the method applied to the central processing unit. When the instructions stored in the touch screen processor are executed, the touch screen processor executes the method applied to the touch screen processor. For example, the central processor is used to receive the touch coordinate points reported by the touch screen processor; and the touch screen processor is used to execute the line number vibration driving method.
振动装置130可以是压电驱动器或者马达。作为一种实施方式,振动装置130为线性马达。振动装置130通过力矩作用将自身形变传递给电子设备的壳体,从而带动壳体振动。The vibration device 130 may be a piezoelectric driver or a motor. As an embodiment, the vibration device 130 is a linear motor. The vibration device 130 transmits its own deformation to the housing of the electronic device through the action of torque, thereby driving the housing to vibrate.
触摸屏140可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏140上或在所述触摸屏140附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏140可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器110,并能接收所述处理器110发来的命令并加以执行。The touch screen 140 can collect the user's touch operations on or near it (for example, the user's operations on the touch screen 140 or near the touch screen 140 using any suitable objects or accessories such as a finger, a stylus, etc.), and set it according to presets. The program drives the corresponding connection device. Optionally, the touch screen 140 may include a touch detection device and a touch controller. Wherein, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, and The touch information is converted into contact coordinates, and then sent to the processor 110, and the command sent by the processor 110 can be received and executed.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc. The data storage area can also store data (such as phone book, audio and video data, chat record data) created by the electronic device 100 during use.
请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1200中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 12, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 1200 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质1200可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1200包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1200具有执行上述方法中的任何方法步骤的程序代码1210的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1210可以例如以适当形式进行压缩。The computer-readable storage medium 1200 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1200 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1200 has storage space for the program code 1210 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. The program code 1210 may be compressed in an appropriate form, for example.
综上所述,本申请提供的振动驱动方法、装置、电子设备及计算机可读介质,在检测到作用于所述触摸屏的触摸手势,如果触摸手势满足指定条件,则通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。因此,由于触摸屏处理器的控制接口与所述振动装置连接,则触摸屏处理器可以直接控制振动装置振动,而不必移动终端的操作系统内的服务组件驱动振动装置振动,减少响应滞后,提高用户体验度。加快振动装置响应速度,提高线性振动的体验效果,进一步提高用户体验。In summary, the vibration driving method, device, electronic device, and computer-readable medium provided by the present application detect a touch gesture acting on the touch screen, and if the touch gesture meets a specified condition, the vibration is sent through the control interface Instructions to the vibration device, and the vibration instructions are used to instruct the vibration device to vibrate. Therefore, since the control interface of the touch screen processor is connected to the vibration device, the touch screen processor can directly control the vibration of the vibration device without the need for the service component in the operating system of the mobile terminal to drive the vibration device to vibrate, reducing response lag and improving user experience degree. Speed up the response speed of the vibration device, improve the experience effect of linear vibration, and further improve the user experience.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管 参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features thereof are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种振动驱动方法,其特征在于,应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接,所述方法包括:A vibration driving method, characterized in that it is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, the control interface of the touch screen processor is connected to the vibration device, and the method includes:
    检测作用于所述触摸屏的触摸手势;Detecting touch gestures acting on the touch screen;
    若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。If the touch gesture satisfies a specified condition, a vibration instruction is sent to the vibration device through the control interface, and the vibration instruction is used to instruct the vibration device to vibrate.
  2. 根据权利要求1所述的方法,其特征在于,所述振动指令包括指定信号,所述若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,包括:The method according to claim 1, wherein the vibration instruction includes a designated signal, and if the touch gesture meets a designated condition, sending a vibration instruction to the vibration device through the control interface comprises:
    若所述触摸手势满足指定条件,通过所述控制接口输入所述指定信号至所述驱动装置。If the touch gesture meets a specified condition, input the specified signal to the driving device through the control interface.
  3. 根据权利要求2所述的方法,其特征在于,所述若所述触摸手势满足指定条件,通过所述控制接口输入所述指定信号至所述驱动装置,包括:The method according to claim 2, wherein if the touch gesture satisfies a specified condition, inputting the specified signal to the driving device through the control interface comprises:
    当所述控制接口当前输出的信号为禁止信号,若所述触摸手势满足指定条件,将所述控制接口输出的信号由所述禁止信号更改为所述指定信号,所述禁止信号用于指示所述振动装置禁止振动。When the signal currently output by the control interface is a prohibition signal, if the touch gesture meets a specified condition, the signal output by the control interface is changed from the prohibition signal to the specified signal, and the prohibition signal is used to indicate The vibration device prohibits vibration.
  4. 根据权利要求3所述的方法,其特征在于,所述禁止信号和所述指定信号的电平相反。The method according to claim 3, wherein the prohibition signal and the designated signal have opposite levels.
  5. 根据权利要求3所述的方法,其特征在于,所述将所述控制接口输出的信号由禁止信号更改为所述指定信号,包括:The method according to claim 3, wherein the changing the signal output by the control interface from a prohibition signal to the designated signal comprises:
    将所述控制接口输出的禁止信号的波形执行反相翻转的操作,以更改为所述指定信号。The waveform of the prohibition signal output by the control interface is reversed and reversed to change it to the designated signal.
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述控制接口为所述触摸屏处理器的控制引脚,所述控制引脚与所述振动装置的驱动引脚连接。The method according to any one of claims 1 to 5, wherein 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 device.
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,包括:The method according to any one of claims 1 to 6, wherein if the touch gesture satisfies a specified condition, sending a vibration instruction to the vibration device through the control interface comprises:
    判断所述触摸手势对应的操作事件是否为指定事件;Judging whether the operation event corresponding to the touch gesture is a designated event;
    如果是指定事件,则通过所述控制接口发送振动指令至所述振动装置。If it is a designated event, a vibration instruction is sent to the vibration device through the control interface.
  8. 根据权利要求7所述的方法,其特征在于,所述判断所述触摸手势对应的操作事件是否为指定事件,包括:The method according to claim 7, wherein the determining whether the operation event corresponding to the touch gesture is a designated event comprises:
    确定所述触摸手势在所述触摸屏上的操作区域;Determining the operation area of the touch gesture on the touch screen;
    若所述操作区域为指定区域,则判定所述触摸手势对应的操作事件为指定事件;If the operation area is a designated area, determining that the operation event corresponding to the touch gesture is a designated event;
    若所述操作区域不为指定区域,则判定所述触摸手势对应的操作事件不为指定事件。If the operation area is not a designated area, it is determined that the operation event corresponding to the touch gesture is not a designated event.
  9. 根据权利要求8所述的方法,其特征在于,所述指定事件为触摸屏屏下采集事件,所述确定所述触摸手势在所述触摸屏上的操作区域,包括:The method according to claim 8, wherein the designated event is a collection event under a touch screen, and the determining the operation area of the touch gesture on the touch screen comprises:
    判断所述触摸屏屏下采集功能是否开启;Judging whether the collection function under the touch screen is enabled;
    若开启,则确定所述触摸手势在所述触摸屏上的操作区域。If it is turned on, the operation area of the touch gesture on the touch screen is determined.
  10. 根据权利要求9所述的方法,其特征在于,所述电子设备还包括设置在所述触摸屏上的操作区域下的指纹采集装置,所述通过所述控制接口发送振动指令至所述振动装置,包括:The method according to claim 9, wherein the electronic device further comprises a fingerprint collection device arranged under the operation area on the touch screen, and the vibration instruction is sent to the vibration device through the control interface, include:
    所述触摸屏处理器判断在预设时间段内是否获取到所述指纹采集装置采集的指纹;The touch screen processor determines whether the fingerprint collected by the fingerprint collection device is acquired within a preset time period;
    若获取到所述指纹采集装置采集的指纹,则通过所述控制接口发送振动指令至所述振动装置。If the fingerprint collected by the fingerprint collection device is acquired, a vibration instruction is sent to the vibration device through the control interface.
  11. 根据权利要求10所述的方法,其特征在于,还包括:The method according to claim 10, further comprising:
    若未获取到所述指纹采集装置采集的指纹,则保持所述振动装置处于禁止振动的状态。If the fingerprint collected by the fingerprint collecting device is not obtained, the vibration device is kept in a state where vibration is prohibited.
  12. 根据权利要求8或9所述的方法,其特征在于,所述确定所述触摸手势在所述触摸屏上的操作区域,包括:The method according to claim 8 or 9, wherein the determining the operation area of the touch gesture on the touch screen comprises:
    判断所述触摸手势是否为按压手势;Determining whether the touch gesture is a pressing gesture;
    若是按压手势,则确定所述触摸手势在所述触摸屏上的操作区域。If it is a pressing gesture, the operation area of the touch gesture on the touch screen is determined.
  13. 根据权利要求1-12任一所述的方法,其特征在于,所述若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,包括:The method according to any one of claims 1-12, wherein if the touch gesture satisfies a specified condition, sending a vibration instruction to the vibration device through the control interface comprises:
    获取所述电子设备的运行参数;Obtaining operating parameters of the electronic device;
    判断所述运行参数是否满足预设条件;Determine whether the operating parameters meet preset conditions;
    若满足预设要求,判断所述触摸手势是否满足指定条件;If the preset requirement is met, determine whether the touch gesture meets the specified condition;
    若满足指定条件,通过所述控制接口发送振动指令至所述振动装置。If the specified conditions are met, a vibration instruction is sent to the vibration device through the control interface.
  14. 根据权利要求13所述的方法,其特征在于,所述运行参数包括剩余电量,所述判断所述运行参数是否满足预设条件,包括:The method according to claim 13, wherein the operating parameter includes the remaining power, and the determining whether the operating parameter satisfies a preset condition includes:
    判断所述剩余电量是否大于预设电量值;Judging whether the remaining power is greater than a preset power value;
    如果大于预设电量值,则判定所述运行参数满足预设条件;If it is greater than the preset power value, it is determined that the operating parameters meet the preset conditions;
    如果不大于预设电量值,则判定所述运行参数不满足预设条件。If it is not greater than the preset power value, it is determined that the operating parameter does not meet the preset condition.
  15. 根据权利要求13所述的方法,其特征在于,所述判断所述运行参数是否满足预设条件,包括:The method according to claim 13, wherein the judging whether the operating parameter meets a preset condition comprises:
    根据所述运行参数确定所述电子设备的工作模式;Determining the working mode of the electronic device according to the operating parameter;
    判断所述工作模式是否为指定模式;Judging whether the working mode is a designated mode;
    如果是指定模式,则判定所述运行参数满足预设条件;If it is a designated mode, it is determined that the operating parameters meet the preset conditions;
    如果不是指定模式,则判定所述运行参数不满足预设条件。If it is not the designated mode, it is determined that the operating parameters do not meet the preset conditions.
  16. 根据权利要求15所述的方法,其特征在于,所述指定模式为静音模式。The method according to claim 15, wherein the designated mode is a silent mode.
  17. 一种振动驱动装置,其特征在于,应用于电子设备的触摸屏处理器,所述电子设备还包括触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接,所述振动驱动装置包括:A vibration drive device, characterized in that it is applied to a touch screen processor of an electronic device, the electronic device further includes a touch screen and a vibration device, the control interface of the touch screen processor is connected to the vibration device, and the vibration drive device include:
    检测单元,用于检测作用于所述触摸屏的触摸手势;A detection unit for detecting touch gestures acting on the touch screen;
    确定单元,用于若所述触摸手势满足指定条件,通过所述控制接口发送振动指令至所述振动装置,所述振动指令用于指示所述振动装置振动。The determining unit is configured to send a vibration instruction to the vibration device through the control interface if the touch gesture meets a specified condition, and the vibration instruction is used to instruct the vibration device to vibrate.
  18. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器;Memory
    触摸屏处理器、触摸屏和振动装置,所述触摸屏处理器的控制接口与所述振动装置连接;A touch screen processor, a touch screen and a vibration device, the control interface of the touch screen processor is connected to the vibration device;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述触摸屏处理器执行,所述一个或多个程序配置用于执行如权利要求1-16任一项所述的方法。One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the touch screen processor, and the one or more programs are configured to execute as claimed in claim 1. -16 The method described in any one.
  19. 根据权利要求18所述的电子设备,其特征在于,所述控制接口为所述触摸屏处理器的控制引脚,所述控制引脚与所述振动装置的驱动引脚连接。The electronic device according to claim 18, wherein 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 device.
  20. 一种计算机可读介质,其特征在于,所述可读存储介质存储有处理器可执行的程序代码,所述程序代码被所述处理器执行时使所述处理器执行权利要求1-16任一项 所述方法。A computer readable medium, wherein the readable storage medium stores program code executable by a processor, and when the program code is executed by the processor, the processor executes any of claims 1-16. One of the methods described.
PCT/CN2019/113730 2019-10-28 2019-10-28 Vibration driving method and apparatus, and electronic device and computer readable medium WO2021081710A1 (en)

Priority Applications (2)

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
CN201980099299.1A CN114222963B (en) 2019-10-28 Vibration driving method, vibration driving device, electronic apparatus, and computer-readable medium

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 (1)

Publication Number Publication Date
WO2021081710A1 true WO2021081710A1 (en) 2021-05-06

Family

ID=75715649

Family Applications (1)

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

Country Status (1)

Country Link
WO (1) WO2021081710A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882904A (en) * 2003-11-17 2006-12-20 索尼株式会社 Input device, information processing device, remote control device, and input device control method
EP2818975A1 (en) * 2013-06-27 2014-12-31 Fujitsu Limited Electronic device
CN204833199U (en) * 2014-06-27 2015-12-02 苹果公司 Touch panel ware
CN106919285A (en) * 2017-02-28 2017-07-04 北京小米移动软件有限公司 A kind of terminal
CN110007803A (en) * 2019-04-15 2019-07-12 深圳市万普拉斯科技有限公司 Touch screen report point methods, device, touch screen and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882904A (en) * 2003-11-17 2006-12-20 索尼株式会社 Input device, information processing device, remote control device, and input device control method
EP2818975A1 (en) * 2013-06-27 2014-12-31 Fujitsu Limited Electronic device
CN204833199U (en) * 2014-06-27 2015-12-02 苹果公司 Touch panel ware
CN106919285A (en) * 2017-02-28 2017-07-04 北京小米移动软件有限公司 A kind of terminal
CN110007803A (en) * 2019-04-15 2019-07-12 深圳市万普拉斯科技有限公司 Touch screen report point methods, device, touch screen and electronic equipment

Also Published As

Publication number Publication date
CN114222963A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
EP4109218B1 (en) Mobile phone comprising a touch screen with an in-display fingerprint sensor
WO2018161743A1 (en) Fingerprint recognition method and related product
CN109814786B (en) Image storage method and terminal equipment
CN108334272B (en) Control method and mobile terminal
CN107506646B (en) Malicious application detection method and device and computer readable storage medium
WO2019218843A1 (en) Key configuration method and device, and mobile terminal and storage medium
CN108737638B (en) Application control method and device, mobile terminal and computer readable medium
JP6907191B2 (en) Systems and methods for double knuckle touch screen control
CN108460352A (en) The method and apparatus of fingerprint detection
CN108319886A (en) Fingerprint identification method and device
WO2019007371A1 (en) Method for preventing information from being stolen, storage device, and mobile terminal
CN108683802A (en) Mobile terminal and its control method
CN108710806B (en) Terminal unlocking method and mobile terminal
CN108073405B (en) Application program unloading method and mobile terminal
CN108594952B (en) Method for resisting charging interference and terminal equipment
CN105049897A (en) Remote control system and remote control
CN108021315B (en) Control method and mobile terminal
CN107943549B (en) Application processing method and terminal
CN108196663B (en) Face recognition method and mobile terminal
CN107895108B (en) Operation management method and mobile terminal
CN109753148A (en) A kind of control method, device and the controlling terminal of VR equipment
CN112131901A (en) Method and device for automatically mixing and identifying face and two-dimensional code and intelligent identification equipment
WO2021081710A1 (en) Vibration driving method and apparatus, and electronic device and computer readable medium
CN108170360B (en) Control method of gesture function and mobile terminal
CN109164951B (en) Mobile terminal operation method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19950491

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19950491

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19950491

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19950491

Country of ref document: EP

Kind code of ref document: A1