CN108881615A - Electronic equipment vibration control system, method, controller and equipment - Google Patents
Electronic equipment vibration control system, method, controller and equipment Download PDFInfo
- Publication number
- CN108881615A CN108881615A CN201810411292.6A CN201810411292A CN108881615A CN 108881615 A CN108881615 A CN 108881615A CN 201810411292 A CN201810411292 A CN 201810411292A CN 108881615 A CN108881615 A CN 108881615A
- Authority
- CN
- China
- Prior art keywords
- vibration
- vibration motor
- electronic device
- controller
- parameters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M19/00—Current supply arrangements for telephone systems
- H04M19/02—Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
- H04M19/04—Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
- H04M19/047—Vibrating means for incoming calls
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请涉及电子技术领域,特别涉及一种电子设备振动控制系统、方法、控制器及设备。The present application relates to the field of electronic technology, in particular to a vibration control system, method, controller and equipment for electronic equipment.
背景技术Background technique
随着电子设备的普遍应用,电子设备的功能也越来越完善,为了向用户提供更好的体验,电子设备常常采用振动的效果作为用户的操作反馈,例如:在来电提醒、短信、游戏娱乐、键盘输入等操作中应用振动效果。其中,这种振动效果通常是通过电子设备中的振动马达来实现。With the widespread application of electronic devices, the functions of electronic devices are becoming more and more perfect. In order to provide users with a better experience, electronic devices often use the effect of vibration as the user's operation feedback, such as: in the call reminder, text message, game entertainment , keyboard input and other operations to apply vibration effects. Wherein, such a vibration effect is usually realized by a vibration motor in an electronic device.
在实际应用过程中,当电子设备向用户反馈振动效果时,通常是通过控制电路发出控制信号,以向振动马达输入对应的驱动电流或电压,以使振动马达中的转子带动凸轮转动,产生振动。In practical applications, when the electronic device feeds back the vibration effect to the user, it usually sends a control signal through the control circuit to input the corresponding driving current or voltage to the vibration motor, so that the rotor in the vibration motor drives the cam to rotate and generate vibration .
然而,发明人发现,利用上述方式向用户反馈振动效果时,可能会因为输入的驱动电压或者电流较小,使得振动马达的振动效果较差,用户感受到的振感比较弱;或者,因为电子设备所处环境,比如嘈杂的街道,用户感受到的振感比较弱,从而导致用户感受到的振感效果不佳,影响用户体验。However, the inventors found that when using the above method to feed back the vibration effect to the user, the vibration effect of the vibration motor may be poor due to the small input driving voltage or current, and the vibration feeling felt by the user is relatively weak; or, because the electronic In the environment where the device is located, such as a noisy street, the vibration sense felt by the user is relatively weak, which leads to poor vibration effect felt by the user and affects the user experience.
申请内容application content
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。This application aims to solve one of the technical problems in the related art at least to a certain extent.
为此,本申请一方面实施例提供一种电子设备振动控制系统,该系统包括:控制器、振动马达及检测电路;所述控制器的输出端与所述振动马达输入端连接,用于控制所述振动马达振动;所述检测电路的输入端与所述振动马达的输出端连接,所述检测电路的输出端与所述控制器的输入端连接,用于将检测的所述振动马达的振动状态反馈给所述控制器。To this end, an embodiment of the present application provides a vibration control system for electronic equipment, the system includes: a controller, a vibration motor, and a detection circuit; the output end of the controller is connected to the input end of the vibration motor for controlling The vibration motor vibrates; the input end of the detection circuit is connected to the output end of the vibration motor, and the output end of the detection circuit is connected to the input end of the controller for detecting the vibration motor Vibration status is fed back to the controller.
本申请另一方面实施例提供一种电子设备振动控制方法,该方法包括:根据所述电子设备当前的运行状态,确定所述电子设备中振动马达的目标工作参数;根据目标工作参数,确定所述振动马达的初始驱动参数;根据所述初始驱动参数,驱动所述振动马达,并获取所述振动马达的实际工作参数;根据所述实际工作参数及所述目标工作参数,调整所述初始驱动参数。Another embodiment of the present application provides a vibration control method for an electronic device, the method includes: determining the target operating parameters of the vibration motor in the electronic device according to the current operating state of the electronic device; determining the target operating parameters according to the target operating parameters The initial driving parameters of the vibration motor; according to the initial driving parameters, drive the vibration motor, and obtain the actual operating parameters of the vibration motor; according to the actual operating parameters and the target operating parameters, adjust the initial driving parameter.
本申请另一方面实施例提供一种控制器,该控制器包括:第一确定模块,用于根据所述电子设备当前的运行状态,确定所述电子设备中振动马达的目标工作参数;第二确定模块,用于根据目标工作参数,确定所述振动马达的初始驱动参数;驱动模块,用于根据所述初始驱动参数,驱动所述振动马达,并获取所述振动马达的实际工作参数;调整模块,用于根据所述实际工作参数及所述目标工作参数,调整所述初始驱动参数。Another embodiment of the present application provides a controller, the controller includes: a first determination module, configured to determine the target operating parameters of the vibration motor in the electronic device according to the current operating state of the electronic device; the second The determining module is used to determine the initial driving parameters of the vibration motor according to the target working parameters; the driving module is used to drive the vibration motor according to the initial driving parameters and obtain the actual working parameters of the vibration motor; adjust A module, configured to adjust the initial driving parameters according to the actual working parameters and the target working parameters.
本申请又一方面实施例提供一种电子设备,该电子设备包括:第一方面实施例所述的电子设备振动控制系统及存储器,所述存储器存储有计算机程序,当所述电子设备振动控制系统中的控制器执行所述程序时,实现所述的电子设备振动控制方法。An embodiment of another aspect of the present application provides an electronic device, the electronic device includes: the electronic device vibration control system described in the first aspect embodiment and a memory, the memory stores a computer program, when the electronic device vibration control system When the controller in the controller executes the program, the vibration control method of the electronic equipment is realized.
本申请再一方面实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时,实现所述的电子设备振动控制方法。Still another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the above method for controlling vibration of an electronic device is realized.
本申请实施例提供的电子设备振动控制系统、方法及设备,通过控制器对振动马达发送控制信号,以控制振动马达进行相应振动,并且通过设置的检测电路对振动马达的振动状态进行检测,以将检测的振动状态反馈给控制器,使得控制器根据检测电路反馈的振动状态,确定振动马达的振动效果是否符合要求,由此,实现了对振动马达的振动效果进行闭环监测,以当振动马达产生的振动效果不佳时,及时对振动马达的振动状态进行调整,从而使得向用户反馈的振动效果始终处于最佳状态,极大地提高了用户使用体验。The electronic equipment vibration control system, method, and equipment provided in the embodiments of the present application send control signals to the vibration motor through the controller to control the vibration motor to vibrate accordingly, and detect the vibration state of the vibration motor through the set detection circuit, so as to Feedback the detected vibration state to the controller, so that the controller can determine whether the vibration effect of the vibration motor meets the requirements according to the vibration state fed back by the detection circuit. When the generated vibration effect is not good, the vibration state of the vibration motor is adjusted in time, so that the vibration effect fed back to the user is always in the best state, which greatly improves the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
图1是根据本申请一示例性实施例示出的电子设备振动控制系统的结构示意图;FIG. 1 is a schematic structural diagram of a vibration control system for electronic equipment according to an exemplary embodiment of the present application;
图2是根据本申请一示例性实施例示出的电子设备振动控制系统的结构示意图;Fig. 2 is a schematic structural diagram of a vibration control system for electronic equipment according to an exemplary embodiment of the present application;
图3是根据本申请一示例性实施例示出的电子设备振动控制方法的流程示意图;Fig. 3 is a schematic flowchart of a method for controlling vibration of an electronic device according to an exemplary embodiment of the present application;
图4是根据本申请一示例性实施例示出的控制器的结构示意图;Fig. 4 is a schematic structural diagram of a controller shown according to an exemplary embodiment of the present application;
图5是根据本申请一示例性实施例示出的电子设备的结构示意图;Fig. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application;
图6是根据本申请一示例性实施例示出的电子设备的结构示意图。Fig. 6 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
附图标记说明:Explanation of reference signs:
电子设备振动控制系统-100、控制器-10、振动马达-20、检测电路-30、驱动器-40、第一确定模块-11、第二确定模块-12、驱动模块-13、调整模块-14;Electronic equipment vibration control system-100, controller-10, vibration motor-20, detection circuit-30, driver-40, first determination module-11, second determination module-12, drive module-13, adjustment module-14 ;
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
本申请各实施例针对相关技术中,通过振动马达向用户反馈振动效果时,由于控制振动马达的电压值或者电流值过小,使得振动马达的振动效果较差,用户感受到的振感较弱;或者,因为电子设备所处环境,使得用户感受到的振感较弱,导致用户感受到振感效果不佳,影响用户体验的问题,提出一种电子设备振动控制系统。Various embodiments of the present application are aimed at related technologies, when the vibration effect is fed back to the user through the vibration motor, the vibration effect of the vibration motor is poor because the voltage value or current value of the vibration motor is too small, and the vibration feeling felt by the user is weak ; Or, because of the environment where the electronic device is located, the vibration sense felt by the user is weak, which leads to the problem that the user feels the vibration effect is not good and affects the user experience. A vibration control system for electronic equipment is proposed.
本申请实施例提供的电子设备振动控制系统,通过系统中的控制器,向振动马达发送控制信号,以使振动马达根据控制信号进行相应运动以产生振动,并且通过系统中的检测电路对振动马达的振动状态进行检测,并将检测到的振动状态反馈给控制器,使得控制器根据检测电路反馈的振动状态,对振动马达的振动效果是否符合要求进行确定,由此,实现了对振动马达的振动效果进行闭环监测,以当振动马达产生的振动效果不佳时,及时对振动马达的振动状态进行调整,从而使得向用户反馈的振动效果始终处于最佳状态,极大的提高了用户使用体验。The electronic device vibration control system provided in the embodiment of the present application sends a control signal to the vibration motor through the controller in the system, so that the vibration motor performs a corresponding movement according to the control signal to generate vibration, and the vibration motor is controlled by the detection circuit in the system. The vibration state of the vibration motor is detected, and the detected vibration state is fed back to the controller, so that the controller can determine whether the vibration effect of the vibration motor meets the requirements according to the vibration state fed back by the detection circuit, thereby realizing the control of the vibration motor The vibration effect is monitored in a closed loop, so that when the vibration effect generated by the vibration motor is not good, the vibration state of the vibration motor is adjusted in time, so that the vibration effect fed back to the user is always in the best state, which greatly improves the user experience. .
下面结合附图,对本申请提供的电子设备振动控制系统、方法、控制器及设备进行详细说明。The electronic equipment vibration control system, method, controller and equipment provided by the present application will be described in detail below with reference to the accompanying drawings.
首先结合图1,对本申请实施例提供的电子设备振动控制系统进行详细说明。Firstly, with reference to FIG. 1 , the electronic device vibration control system provided by the embodiment of the present application will be described in detail.
如图1所示,该电子设备振动控制系统100可以包括:控制器10、振动马达20、检测电路30。As shown in FIG. 1 , the electronic device vibration control system 100 may include: a controller 10 , a vibration motor 20 , and a detection circuit 30 .
其中,控制器10的输出端与振动马达20输入端连接,用于控制振动马达20振动;Wherein, the output end of the controller 10 is connected with the input end of the vibration motor 20 for controlling the vibration of the vibration motor 20;
检测电路30的输入端与振动马达20的输出端连接,检测电路30的输出端与控制器10的输入端连接,用于将检测的振动马达20的振动状态反馈给控制器10。The input end of the detection circuit 30 is connected to the output end of the vibration motor 20 , and the output end of the detection circuit 30 is connected to the input end of the controller 10 for feeding back the detected vibration state of the vibration motor 20 to the controller 10 .
其中,电子设备可以是任一具有数据处理功能的硬件设备,比如,智能手机、电脑、个人数字助理、平板电脑、可穿戴设备等等,此处对其不作具体限定。Wherein, the electronic device may be any hardware device with a data processing function, such as a smart phone, a computer, a personal digital assistant, a tablet computer, a wearable device, etc., which are not specifically limited herein.
可选的,在本实施例中,控制器10可以是单片机、微处理器等等,此处对其不作具体限定。Optionally, in this embodiment, the controller 10 may be a single-chip microcomputer, a microprocessor, etc., which are not specifically limited here.
可选的,本实施例中的检测电路30可以是ADC检测模块。Optionally, the detection circuit 30 in this embodiment may be an ADC detection module.
在本实施例中,当确定有来电,或者,短信,或者用户的输入操作时,本实施例可以通过控制器10向振动马达20发送控制信号,以使振动马达20根据接收到控制信号进行相应运动,以产生振动,同时为了对振动马达20产生的振动进行检测,本实施例还可以通过检测电路30对振动马达20产生振动的振动数据进行获取,并将检测到的振动数据反馈给控制器10,使得控制器10对振动数据进行分析,确定出振动马达20当前的振动状态是否与振动需求相匹配。若匹配,则说明振动马达20当前产生的振动效果较佳,否则就需要对振动马达20的控制参数进行调整,以使振动马达20根据调整后的控制参数进行振动后产生的振动效果符合要求。In this embodiment, when it is determined that there is an incoming call, or a text message, or an input operation by the user, this embodiment can send a control signal to the vibration motor 20 through the controller 10, so that the vibration motor 20 can perform corresponding operations according to the received control signal. motion to generate vibration, and at the same time, in order to detect the vibration generated by the vibration motor 20, this embodiment can also obtain the vibration data of the vibration generated by the vibration motor 20 through the detection circuit 30, and feed back the detected vibration data to the controller 10 , making the controller 10 analyze the vibration data to determine whether the current vibration state of the vibration motor 20 matches the vibration requirement. If they match, it means that the vibration effect currently generated by the vibration motor 20 is better; otherwise, the control parameters of the vibration motor 20 need to be adjusted so that the vibration effect produced by the vibration motor 20 after vibrating according to the adjusted control parameters meets the requirements.
其中,本实施例中控制器10向振动马达20发送控制信号时,可以通过利I2C(Inter-Integrated Circuit)总线实现等等,此处不作限定。Wherein, in this embodiment, when the controller 10 sends the control signal to the vibration motor 20, it may be realized by using an I2C (Inter-Integrated Circuit) bus, etc., which is not limited here.
在实际应用中,由于控制器10向振动马达20发送的控制信号中携带的电压或电流过小,而无法控制振动马达20进行相应运动,以产生振动。因此,为了避免上述情况发生,本实施例还可以在电子设备振动控制系统100中设置驱动器30,以利用驱动器30对控制器10发送的控制信号中过小的电压或电流进行放大,使得振动马达20可以正常启动以进行相应运动产生振动效果,具体参见图2所示。In practical applications, since the voltage or current carried in the control signal sent by the controller 10 to the vibration motor 20 is too small, the vibration motor 20 cannot be controlled to perform corresponding movements to generate vibration. Therefore, in order to avoid the occurrence of the above situation, this embodiment can also set a driver 30 in the electronic device vibration control system 100, so as to use the driver 30 to amplify the too small voltage or current in the control signal sent by the controller 10, so that the vibration motor 20 can be started normally to perform corresponding motions to generate vibration effects, as shown in FIG. 2 for details.
如图2所示,本实施例中驱动器30分别于控制器10的输出端及振动马达20的输入端连接。在本实施例中,驱动器30可以为运算放大器。As shown in FIG. 2 , in this embodiment, the driver 30 is respectively connected to the output end of the controller 10 and the input end of the vibration motor 20 . In this embodiment, the driver 30 may be an operational amplifier.
可以理解的是,本申请通过在电子设备振动控制系统100中设置驱动器30,以对过小的驱动电压或者电流进行放大,使得振动马达20可以正常运动,从而为用户反馈对应的振动效果,以有效提高用户体验。It can be understood that the present application sets the driver 30 in the electronic device vibration control system 100 to amplify the too small driving voltage or current, so that the vibration motor 20 can move normally, so as to feed back the corresponding vibration effect to the user, in order to Effectively improve user experience.
本申请实施例提供的电子设备振动控制系统,通过控制器对振动马达发送控制信号,以控制振动马达进行相应振动,并且通过设置的检测电路对振动马达的振动状态进行检测,并将检测的振动状态反馈给控制器,使得控制器根据检测电路反馈的振动状态,确定振动马达的振动效果是否符合要求,由此,实现了对振动马达的振动效果进行闭环监测,以当振动马达产生的振动效果不佳时,及时对振动马达的振动状态进行调整,从而使得向用户反馈的振动效果始终处于最佳状态,极大地提高了用户使用体验。The electronic device vibration control system provided in the embodiment of the present application sends a control signal to the vibration motor through the controller to control the vibration motor to vibrate accordingly, and detects the vibration state of the vibration motor through the set detection circuit, and sends the detected vibration The state is fed back to the controller, so that the controller can determine whether the vibration effect of the vibration motor meets the requirements according to the vibration state fed back by the detection circuit. Thus, the closed-loop monitoring of the vibration effect of the vibration motor is realized, so that the vibration effect generated by the vibration motor When it is not good, the vibration state of the vibration motor is adjusted in time, so that the vibration effect fed back to the user is always in the best state, which greatly improves the user experience.
基于上述实施例提供的电子设备振动控制系统,本申请实施例还提出一种电子设备振动控制方法。Based on the electronic device vibration control system provided in the foregoing embodiments, the embodiment of the present application further proposes a method for electronic device vibration control.
如图3所示,该电子设备振动控制方法可以包括以下步骤:As shown in FIG. 3, the electronic device vibration control method may include the following steps:
步骤301,根据电子设备当前的运行状态,确定电子设备中振动马达的目标工作参数。Step 301, according to the current operating state of the electronic device, determine the target operating parameters of the vibration motor in the electronic device.
其中,本申请实施例提供的电子设备振动控制方法,可以由本申请提供电子设备执行,以实现对振动马达的振动情况进行管理或控制。本实施例电子设备可以是任一具有数据处理功能的硬件设备,比如,智能手机、电脑、个人数字助理、平板电脑、可穿戴设备等等,此处对其不作具体限定。Wherein, the electronic device vibration control method provided in the embodiment of the present application may be executed by the electronic device provided in the present application, so as to manage or control the vibration of the vibration motor. The electronic device in this embodiment may be any hardware device with a data processing function, such as a smart phone, a computer, a personal digital assistant, a tablet computer, a wearable device, etc., which are not specifically limited here.
在本实施例中,电子设备当前的运行状态可以是指:电子设备中应用的运行状态、比如,来电提醒状态、短消息提醒状态、即时消息提醒状态、编辑响应状态等;或者,还可以指电子设备当前的显示状态,比如当前显示画面的内容等等。In this embodiment, the current running state of the electronic device may refer to: the running state of the application in the electronic device, for example, the incoming call reminding state, the short message reminding state, the instant message reminding state, the editing response state, etc.; or, it may also refer to The current display state of the electronic device, such as the content of the currently displayed screen, and the like.
其中,编辑响应状态,是指用户在电子设备中进行内容编辑时,电子设备对用户的输入操作,或者触控操作进行响应的状态。Wherein, the editing response state refers to a state in which the electronic device responds to the user's input operation or touch operation when the user edits the content in the electronic device.
振动马达的目标工作参数,可以包括以下参数中的至少一个:输出扭矩、转速、电压及电流。The target operating parameters of the vibration motor may include at least one of the following parameters: output torque, rotational speed, voltage and current.
可选的,本申请可以通过多种方式,确定电子设备中振动马达的目标工作参数。Optionally, the present application may determine the target operating parameters of the vibration motor in the electronic device in various ways.
作为一种实现方式:As a way of implementing:
首先通过控制器获取电子设备当前的运行状态,然后根据电子设备当前的运行状态,在预设的电子设备运行状态与振动马达工作参数映射关系表中,查找振动马达对应的工作参数。Firstly, the current operating state of the electronic device is obtained through the controller, and then according to the current operating state of the electronic device, the corresponding operating parameters of the vibration motor are searched in the preset mapping relationship table between the operating state of the electronic device and the operating parameters of the vibration motor.
需要说明的是,本实施例中预设的电子设备运行状态与振动马达工作参数映射关系可以是厂商设置的,也可以是用户自定义设置的,本实施例对此不作具体限定。It should be noted that the preset mapping relationship between the operating state of the electronic device and the operating parameters of the vibration motor in this embodiment may be set by the manufacturer or user-defined, which is not specifically limited in this embodiment.
例如,若电子设备当前的运行状态是状态A,那么电子设备可以根据状态A在预设的电子设备运行状态与振动马达工作参数映射关系中,查找与状态A对应的振动马达目标工作参数,若工作参数A’与状态A对应,则将工作参数A’,确定为振动马达的目标工作参数。For example, if the current operating state of the electronic device is state A, then the electronic device can search for the target operating parameter of the vibration motor corresponding to state A in the preset mapping relationship between the operating state of the electronic device and the operating parameter of the vibration motor according to state A, if The working parameter A' corresponds to the state A, and the working parameter A' is determined as the target working parameter of the vibration motor.
作为第二种实现方式:As a second implementation:
根据电子设备当前运行的应用的属性,确定振动马达的目标工作参数。According to the properties of the application currently running on the electronic device, target operating parameters of the vibration motor are determined.
其中,应用的属性可以是类别、名称等等,此处对其不作具体限定。Wherein, the attribute of the application may be a category, a name, etc., which are not specifically limited here.
例如,若当前运行的应用类型为工具,名称为短信,那么电子设备可以根据上述应用的属性,确定振动马达在有新短信时振动马达的振动频率、电压、电流等工作参数。For example, if the currently running application type is a tool and the name is a text message, then the electronic device can determine the vibration frequency, voltage, current and other operating parameters of the vibration motor when there is a new text message according to the attributes of the above application.
作为第三种实现方式:As a third implementation:
根据电子设备当前显示的场景信息,确定振动马达的目标工作参数。According to the scene information currently displayed by the electronic device, the target operating parameters of the vibration motor are determined.
在实际应用过程中,用户可以通过电子设备播放不同的多媒体文件,而通常多媒体文件中,可能包括比较震撼的场景信息,比如地震场景、枪战场景等等。In practical applications, users can play different multimedia files through electronic devices, and usually multimedia files may include relatively shocking scene information, such as earthquake scenes, gun battle scenes, and so on.
此时,为了使得用户在观看上述类别的场景信息时,能够有种身临其境的感受,本实施例可以通过对多媒体文件进行解析,以确定出上述场景信息的播放时间点,并根据场景信息对振动马达的目标工作参数进行确定,从而当到达上述场景信息的播放时间点时,在播放到上述场景信息的同时,根据确定的目标工作参数,控制振动马达进行相应运动,以产生振感。At this time, in order to enable the user to have an immersive experience when viewing the above-mentioned types of scene information, this embodiment can determine the playback time point of the above-mentioned scene information by analyzing the multimedia file, and according to the scene The information determines the target operating parameters of the vibration motor, so that when the playback time point of the above scene information is reached, while the above scene information is being played, the vibration motor is controlled to perform corresponding movements according to the determined target operating parameters to generate a sense of vibration. .
例如,若场景信息为地震场景时,则可以确定振动马达的目标工作参数可以是转速快、电流及电压大、输出扭矩大等。For example, if the scene information is an earthquake scene, it may be determined that the target operating parameters of the vibration motor may be fast speed, high current and voltage, and high output torque.
其中,在本实施例中,多媒体文件可以是音频、视频和游戏中的至少一种。Wherein, in this embodiment, the multimedia file may be at least one of audio, video and game.
需要说明的是,在本实施例中,确定多媒体文件中比较震撼的场景信息的播放时间点时,可以直接从服务器侧获取多媒体文件中比较震撼的场景信息的播放时间点;或者,还可以是在电子设备播放多媒体文件时,在播放前一帧画面时,对后一帧画面进行解析,以确定后一帧画面是否为震撼场景画面,若是,则在播放到后一帧画面中的震撼场景画面时,控制振动马达进行相应运动产生振动等等,此处对其不作具体限定。It should be noted that, in this embodiment, when determining the playing time point of the relatively shocking scene information in the multimedia file, the playing time point of the relatively shocking scene information in the multimedia file can be directly obtained from the server side; or, it can also be When an electronic device plays a multimedia file, when playing the previous frame, analyze the subsequent frame to determine whether the subsequent frame is a shocking scene, and if so, then play the shocking scene in the subsequent frame When displaying images, the vibration motor is controlled to perform corresponding movements to generate vibrations, etc., which are not specifically limited here.
其中,从服务器侧获取的包括场景信息的播放时间点的多媒体文件,可以是服务器通过预设的运算规则,对多媒体文件进行分析运算,以确定出多媒体文件中包括的比较震撼的场景信息的播放时间点,或者,还可以是在多媒体文件上映初期,由工程师对多媒体文件中比较震撼的场景信息设置不同的播放时间点,然后将设置有不同时间点的多媒体文件上传至服务器中等等,本申请对此不作具体限定。Wherein, the multimedia file including the playback time point of the scene information obtained from the server side may be that the server analyzes and calculates the multimedia file through preset calculation rules to determine the playing of the shocking scene information included in the multimedia file. time point, or, it can also be at the initial stage of the release of the multimedia file, the engineer sets different play time points for the more shocking scene information in the multimedia file, and then uploads the multimedia file with different time points to the server, etc., this application This is not specifically limited.
进一步的地,为了降低电子设备的功耗,本申请电子设备在播放包括比较震撼的场景信息的多媒体文件时,还可以对用户是否触摸电子设备进行实时检测。当检测到用户触摸电子设备时,则在播放到震撼场景信息时,控制振动马达进行相应运动以产生振感,以使用户有身临其境的感受,当没有检测到用户触摸电子设备时,则当播放到震撼场景信息时,则不控制振动马达进行相应运动,从而能够节省了电量消耗,延长电子设备的待机时间。Further, in order to reduce the power consumption of the electronic device, the electronic device of the present application can also detect in real time whether the user touches the electronic device when playing a multimedia file including shocking scene information. When it is detected that the user touches the electronic device, when the shocking scene information is played, the vibration motor is controlled to perform a corresponding movement to generate a sense of vibration, so that the user has an immersive experience; when the user is not detected to touch the electronic device, Then, when the shocking scene information is played, the vibration motor is not controlled to perform a corresponding movement, thereby saving power consumption and prolonging the standby time of the electronic device.
步骤302,根据目标工作参数,确定振动马达的初始驱动参数。Step 302: Determine the initial driving parameters of the vibration motor according to the target operating parameters.
可选的,当确定出振动马达的目标工作参数之后,本实施例可以根据目标工作参数确定出振动马达的初始驱动参数。Optionally, after the target operating parameters of the vibration motor are determined, this embodiment may determine the initial driving parameters of the vibration motor according to the target operating parameters.
其中,驱动参数可以包括:驱动功率等等,此处不作具体限定。Wherein, the driving parameters may include: driving power, etc., which are not specifically limited here.
举例来说,若目标工作参数中,电流为80毫安(mA),电压为3.1伏特(V),那么就可以根据公式:P=U*I,计算出振动马达的驱动功率为240毫瓦(mW)。For example, if the current is 80 milliamps (mA) and the voltage is 3.1 volts (V) in the target operating parameters, then the driving power of the vibration motor can be calculated as 240 milliwatts according to the formula: P=U*I (mW).
需要说明的是,在实际使用时,还需要考虑振动马达对应的效率,来确定振动马达对应的驱动功率。It should be noted that, in actual use, it is also necessary to consider the corresponding efficiency of the vibration motor to determine the corresponding driving power of the vibration motor.
进一步的,由于在实际使用中,当电子设备中根据确定的初始驱动参数,驱动振动马达进行相应运动,以产生振感时,有可能电子设备此时正处于振动状态,此时若依旧按照初始驱动参数,驱动振动马达进行运动,可能会使得用户无法准确分辨出电子设备的振动是新的振动效果,还是之前的振动效果。例如,用户当前正在使用电子设备播放处于枪战的游戏画面,向用户反馈对应的振感时,收到新短信息的情况。Further, because in actual use, when the electronic device drives the vibration motor to perform corresponding movements according to the determined initial driving parameters to generate a vibration sensation, the electronic device may be in a vibrating state at this time. The driving parameters, driving the vibration motor to move, may make it difficult for the user to accurately distinguish whether the vibration of the electronic device is a new vibration effect or a previous vibration effect. For example, the user is currently using an electronic device to play a game screen in a gun battle, and when the corresponding vibration is fed back to the user, a new short message is received.
因此,为了帮助用户能够准确识别出电子设备的振动属于游戏画面中的振感,还是新短信息的振感,本实施例还可根据获取的目标工作参数,确定出振动马达的驱动时刻及驱动时长,使得电子设备可以根据确定的驱动时刻,驱动振动马达进行运动,从而有效避免电子设备已处于振动状态时,新的振动效果对用户的判断准确性造成影响。Therefore, in order to help users accurately identify whether the vibration of the electronic device belongs to the vibration sense in the game screen or the vibration sense of the new short message, this embodiment can also determine the driving time and driving time of the vibration motor according to the acquired target operating parameters. The time length enables the electronic device to drive the vibration motor to move according to the determined driving time, thereby effectively preventing the new vibration effect from affecting the accuracy of the user's judgment when the electronic device is already in a vibration state.
即,本申请可以根据驱动时刻驱动振动马达,在上一次振动操作结束之后,或者振动间隙,进行振动。That is, the present application can drive the vibration motor according to the driving time, and vibrate after the last vibration operation is completed, or during the vibration gap.
也就是说,本申请中确定的驱动参数,还可以包括驱动时刻、驱动时长。That is to say, the driving parameters determined in this application may also include driving time and driving duration.
其中,驱动时刻则为振动马达开始运动的时间点。Wherein, the driving moment is the time point when the vibration motor starts to move.
驱动时长则为控制振动马达进行运动的持续时间长度。The driving time is the duration for controlling the vibration motor to move.
步骤303,根据初始驱动参数,驱动振动马达,并获取振动马达的实际工作参数。Step 303, drive the vibration motor according to the initial driving parameters, and obtain the actual working parameters of the vibration motor.
步骤304,根据实际工作参数及目标工作参数,调整初始驱动参数。Step 304, adjusting the initial driving parameters according to the actual working parameters and the target working parameters.
在本实施例中,电子设备中的控制器可以根据确定的初始驱动参数,驱动振动马达运行,并利用电子设备中的检测电路获取振动马达的实际工作参数,然后将获取的振动马达的实际工作参数发送给控制器,以使控制器将振动马达的实际工作参数与目标工作参数进行比对,确定振动马达实际工作参数是否与目标工作参数相匹配。若匹配,则说明当前不需要对振动马达的工作参数进行调整,否则需要调整振动马达的驱动参数。In this embodiment, the controller in the electronic device can drive the vibration motor to run according to the determined initial driving parameters, and use the detection circuit in the electronic device to obtain the actual operating parameters of the vibration motor, and then use the obtained actual working parameters of the vibration motor The parameters are sent to the controller so that the controller compares the actual operating parameters of the vibration motor with the target operating parameters to determine whether the actual operating parameters of the vibration motor match the target operating parameters. If they match, it means that the operating parameters of the vibration motor do not need to be adjusted at present, otherwise the driving parameters of the vibration motor need to be adjusted.
在本申请的一种可选的实现形式中,可通过以下方式实现对振动马达的驱动参数的调整。In an optional implementation form of the present application, the adjustment of the driving parameters of the vibration motor may be implemented in the following manner.
第一种实现方式:The first implementation method:
调整控制器输出的电压值或者电流值。Adjust the voltage value or current value output by the controller.
第二种实现方式:The second implementation method:
调整与控制器及振动马达连接的运算放大器的增益值。Adjust the gain value of the operational amplifier connected to the controller and vibration motor.
也就是说,本申请通过检测电路对振动马达的实际工作参数进行获取,以使控制器可以根据振动马达的实际工作参数及目标工作参数,确定振动马达的实际工作状态是否与预设的工作状态相匹配,从而根据匹配结果对不符合要求的振动马达的驱动参数进行调整,从而使得振动马达可以根据调整后的驱动参数进行运动,以保证用户感受到的振动效果更佳。That is to say, the application obtains the actual working parameters of the vibration motor through the detection circuit, so that the controller can determine whether the actual working state of the vibration motor is consistent with the preset working state according to the actual working parameters and target working parameters of the vibration motor. Matching, so that the driving parameters of the vibrating motor that do not meet the requirements are adjusted according to the matching result, so that the vibrating motor can move according to the adjusted driving parameters, so as to ensure that the vibration effect felt by the user is better.
本申请实施例提供的电子设备振动控制方法,首先根据电子设备当前的运行状态,确定出电子设备中振动马达的目标工作参数,以根据目标工作参数,对振动马达的初始驱动参数进行确定,以根据初始驱动参数,驱动振动马达,并获取振动马达的实际工作参数,并根据振动马达的实际工作参数及目标工作参数,调整初始驱动参数。由此,实现了对振动马达的振动效果进行闭环监测,以当振动马达产生的振动效果不佳时,及时对振动马达的振动状态进行调整,从而使得向用户反馈的振动效果始终处于最佳状态,极大地提高了用户使用体验。In the electronic device vibration control method provided in the embodiment of the present application, first, according to the current operating state of the electronic device, the target operating parameters of the vibration motor in the electronic device are determined, so as to determine the initial driving parameters of the vibration motor according to the target operating parameters, so as to Drive the vibration motor according to the initial driving parameters, obtain the actual working parameters of the vibration motor, and adjust the initial driving parameters according to the actual working parameters and the target working parameters of the vibration motor. Thus, the closed-loop monitoring of the vibration effect of the vibration motor is realized, so that when the vibration effect generated by the vibration motor is not good, the vibration state of the vibration motor is adjusted in time, so that the vibration effect fed back to the user is always in the best state , greatly improving the user experience.
在示例性实施例中,还提供了一种控制器。In an exemplary embodiment, a controller is also provided.
如图4所示,该控制器10可以包括:第一确定模块11、第二确定模块12、驱动模块13、调整模块14。As shown in FIG. 4 , the controller 10 may include: a first determining module 11 , a second determining module 12 , a driving module 13 , and an adjusting module 14 .
其中,第一确定模块11用于根据所述电子设备当前的运行状态,确定所述电子设备中振动马达的目标工作参数;Wherein, the first determining module 11 is used to determine the target operating parameters of the vibration motor in the electronic device according to the current operating state of the electronic device;
第二确定模块12用于根据目标工作参数,确定所述振动马达的初始驱动参数;The second determination module 12 is used to determine the initial driving parameters of the vibration motor according to the target operating parameters;
驱动模块13用于根据所述初始驱动参数,驱动所述振动马达,并获取所述振动马达的实际工作参数;The driving module 13 is used to drive the vibration motor according to the initial driving parameters, and obtain the actual working parameters of the vibration motor;
调整模块14用于根据所述实际工作参数及所述目标工作参数,调整所述初始驱动参数。The adjustment module 14 is used for adjusting the initial driving parameters according to the actual working parameters and the target working parameters.
需要说明的是,本实施例的控制器的实施过程和技术原理参见前述对第二方面实施例的电子设备振动控制方法的解释说明,此处不再赘述。It should be noted that, for the implementation process and technical principle of the controller in this embodiment, refer to the foregoing explanation of the electronic device vibration control method in the embodiment of the second aspect, and will not be repeated here.
本申请实施例提供的控制器,首先根据电子设备当前的运行状态,确定出电子设备中振动马达的目标工作参数,以根据目标工作参数,对振动马达的初始驱动参数进行确定,以根据初始驱动参数,驱动振动马达,并获取振动马达的实际工作参数,并根据振动马达的实际工作参数及目标工作参数,调整初始驱动参数。由此,实现了对振动马达的振动效果进行闭环监测,以当振动马达产生的振动效果不佳时,及时对振动马达的振动状态进行调整,从而使得向用户反馈的振动效果始终处于最佳状态,极大地提高了用户使用体验。The controller provided in the embodiment of the present application first determines the target operating parameters of the vibration motor in the electronic device according to the current operating state of the electronic device, so as to determine the initial driving parameters of the vibration motor according to the target operating parameters, and then determines the initial driving parameters according to the initial driving parameter, drive the vibration motor, obtain the actual working parameters of the vibration motor, and adjust the initial driving parameters according to the actual working parameters and the target working parameters of the vibration motor. Thus, the closed-loop monitoring of the vibration effect of the vibration motor is realized, so that when the vibration effect generated by the vibration motor is not good, the vibration state of the vibration motor is adjusted in time, so that the vibration effect fed back to the user is always in the best state , greatly improving the user experience.
在示例性实施例中,还提供了一种电子设备。In an exemplary embodiment, an electronic device is also provided.
图5是根据一示例性实施例示出的电子设备的结构示意图。图5显示的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Fig. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment. The electronic device shown in FIG. 5 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.
参照图5,该电子设备200包括:第一方面实施例的电子设备振动控制系统100及存储器210,所述存储器210存储有计算机程序,当所述电子设备振动控制系统中的控制器执行所述程序时,执行如下步骤:根据所述电子设备当前的运行状态,确定所述电子设备中振动马达的目标工作参数;根据目标工作参数,确定所述振动马达的初始驱动参数;根据所述初始驱动参数,驱动所述振动马达,并获取所述振动马达的实际工作参数;根据所述实际工作参数及所述目标工作参数,调整所述初始驱动参数。Referring to Fig. 5, the electronic equipment 200 includes: the electronic equipment vibration control system 100 and the memory 210 of the embodiment of the first aspect, the memory 210 stores a computer program, when the controller in the electronic equipment vibration control system executes the During the program, the following steps are performed: according to the current operating state of the electronic device, determine the target operating parameters of the vibration motor in the electronic device; according to the target operating parameters, determine the initial drive parameters of the vibration motor; according to the initial drive parameters, driving the vibration motor, and acquiring actual working parameters of the vibration motor; adjusting the initial driving parameters according to the actual working parameters and the target working parameters.
在一个实施例中,所述工作参数,包括以下参数中的至少一个:输出扭矩、转速、电压及电流;所述驱动参数,包括驱动功率。In one embodiment, the working parameters include at least one of the following parameters: output torque, rotational speed, voltage and current; the driving parameters include driving power.
在一个实施例中,所述根据所述电子设备当前的运行状态,确定所述电子设备中振动马达的目标工作参数,包括:根据所述电子设备当前运行的应用的属性,确定所述振动马达的目标工作参数;或者,根据所述电子设备当前显示的场景信息,确定所述振动马达的目标工作参数。In one embodiment, the determining the target operating parameters of the vibration motor in the electronic device according to the current operating state of the electronic device includes: determining the vibration motor according to the attributes of the application currently running on the electronic device or, according to the scene information currently displayed by the electronic device, determine the target operating parameters of the vibration motor.
在一个实施例中,所述根据所述电子设备当前的运行状态,确定所述电子设备中振动马达的目标工作参数,包括:根据预设的电子设备运行状态与振动马达工作参数映射关系表,确定与所述当前的运行状态对应的目标工作参数。In one embodiment, the determining the target operating parameters of the vibration motor in the electronic device according to the current operating state of the electronic device includes: according to the preset mapping relationship table between the operating state of the electronic device and the operating parameters of the vibration motor, Determine target operating parameters corresponding to the current operating state.
在一个实施例中,所述调整所述振动马达的驱动参数,包括:调整控制器输出的电压值或电流值;或者,调整与所述控制器及振动马达连接的运算放大器的增益值。In one embodiment, the adjusting the driving parameters of the vibration motor includes: adjusting the voltage value or current value output by the controller; or adjusting the gain value of the operational amplifier connected to the controller and the vibration motor.
在一种可选的实现形式中,如图6所示,该电子设备200还可以包括:存储器210及处理器220,连接不同组件(包括存储器210和处理器220)的总线230,存储器210存储有计算机程序,当处理器220执行所述程序时实现本申请实施例所述的跨域数据传输方法。In an optional implementation form, as shown in FIG. 6, the electronic device 200 may further include: a memory 210 and a processor 220, a bus 230 connecting different components (including the memory 210 and the processor 220), and the memory 210 stores There is a computer program, and when the processor 220 executes the program, the cross-domain data transmission method described in the embodiment of the present application is realized.
总线230表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. These architectures include, by way of example, but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.
电子设备200典型地包括多种计算机设备可读介质。这些介质可以是任何能够被电子设备200访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Electronic device 200 typically includes a variety of computer device readable media. These media can be any available media that can be accessed by electronic device 200 and include both volatile and nonvolatile media, removable and non-removable media.
存储器210还可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)240和/或高速缓存存储器250。电子设备200可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统260可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线230相连。存储器210可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and/or cache memory 250 . The electronic device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a disk drive for reading and writing to removable non-volatile disks (such as "floppy disks") may be provided, as well as for removable non-volatile optical disks (such as CD-ROM, DVD-ROM or other optical media) CD-ROM drive. In these cases, each drive may be connected to bus 230 through one or more data media interfaces. The memory 210 may include at least one program product having a set (for example, at least one) of program modules configured to execute the functions of the various embodiments of the present application.
具有一组(至少一个)程序模块270的程序/实用工具280,可以存储在例如存储器210中,这样的程序模块270包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块270通常执行本申请所描述的实施例中的功能和/或方法。Program/utility 280 having a set (at least one) of program modules 270, such as may be stored in memory 210, such program modules 270 including - but not limited to - an operating system, one or more application programs, other program Modules and program data, each or some combination of these examples may include the implementation of the network environment. The program module 270 generally executes the functions and/or methods in the embodiments described in this application.
电子设备200也可以与一个或多个外部设备290(例如键盘、指向设备、显示器291等)通信,还可与一个或者多个使得用户能与该电子设备200交互的设备通信,和/或与使得该电子设备200能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口292进行。并且,电子设备200还可以通过网络适配器293与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器293通过总线230与电子设备200的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备200使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 200 can also communicate with one or more external devices 290 (such as keyboards, pointing devices, displays 291, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 200, and/or communicate with Any device (eg, network card, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 292 . Moreover, the electronic device 200 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 293 . As shown, the network adapter 293 communicates with other modules of the electronic device 200 through the bus 230 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
需要说明的是,前述对电子设备振动控制方法实施例的解释说明也适用于该实施例的电子设备,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanations of the embodiment of the method for controlling the vibration of an electronic device are also applicable to the electronic device of this embodiment, and its implementation principles are similar, so details are not repeated here.
本申请实施例提供的电子设备,首先根据电子设备当前的运行状态,确定出电子设备中振动马达的目标工作参数,以根据目标工作参数,对振动马达的初始驱动参数进行确定,以根据初始驱动参数,驱动振动马达,并获取振动马达的实际工作参数,并根据振动马达的实际工作参数及目标工作参数,调整初始驱动参数。由此,实现了对振动马达的振动效果进行闭环监测,以当振动马达产生的振动效果不佳时,及时对振动马达的振动状态进行调整,从而使得向用户反馈的振动效果始终处于最佳状态,极大地提高了用户使用体验。The electronic equipment provided by the embodiment of the present application first determines the target operating parameters of the vibration motor in the electronic equipment according to the current operating state of the electronic equipment, so as to determine the initial driving parameters of the vibration motor according to the target operating parameters, and then determines the initial driving parameters according to the initial driving parameters. parameter, drive the vibration motor, obtain the actual working parameters of the vibration motor, and adjust the initial driving parameters according to the actual working parameters and the target working parameters of the vibration motor. Thus, the closed-loop monitoring of the vibration effect of the vibration motor is realized, so that when the vibration effect generated by the vibration motor is not good, the vibration state of the vibration motor is adjusted in time, so that the vibration effect fed back to the user is always in the best state , greatly improving the user experience.
在示例性实施例中,本申请还提出了一种计算机可读存储介质。In an exemplary embodiment, the present application also provides a computer-readable storage medium.
上述计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时,实现所述的电子设备振动控制方法。The above-mentioned computer-readable storage medium stores a computer program thereon, and when the program is executed by a processor, the method for controlling vibration of an electronic device is implemented.
在本申请的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present application, it should be understood that the terms "first" and "second" are used for description purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present application, "plurality" means two or more, unless otherwise specifically defined.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example Or features are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810411292.6A CN108881615A (en) | 2018-05-02 | 2018-05-02 | Electronic equipment vibration control system, method, controller and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810411292.6A CN108881615A (en) | 2018-05-02 | 2018-05-02 | Electronic equipment vibration control system, method, controller and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108881615A true CN108881615A (en) | 2018-11-23 |
Family
ID=64327490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810411292.6A Pending CN108881615A (en) | 2018-05-02 | 2018-05-02 | Electronic equipment vibration control system, method, controller and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108881615A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110707982A (en) * | 2019-09-05 | 2020-01-17 | Oppo(重庆)智能科技有限公司 | Control method, device and equipment of electronic equipment and storage medium |
CN110715720A (en) * | 2019-10-15 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Terminal vibration method, terminal and storage medium |
CN111752370A (en) * | 2019-03-26 | 2020-10-09 | 北京小米移动软件有限公司 | Motor vibration control method, device, terminal and storage medium |
CN112974199A (en) * | 2021-02-08 | 2021-06-18 | 惠州Tcl移动通信有限公司 | Motor vibration method and device and intelligent terminal |
WO2021128013A1 (en) * | 2019-12-24 | 2021-07-01 | 瑞声声学科技(深圳)有限公司 | Vibration signal calibration method, storage medium, and electronic device |
CN113132545A (en) * | 2020-01-10 | 2021-07-16 | 北京小米移动软件有限公司 | Electronic device |
CN115473961A (en) * | 2021-06-11 | 2022-12-13 | 华为技术有限公司 | Vibration control method and electronic equipment |
CN116437004A (en) * | 2021-02-22 | 2023-07-14 | 腾讯科技(深圳)有限公司 | Parameter adjustment method, device, computer-readable storage medium, and electronic device |
EP4120548A4 (en) * | 2021-05-20 | 2023-08-23 | Honor Device Co., Ltd. | Method and apparatus for adjusting driving waveform, and electronic device and readable storage medium |
US20240186920A1 (en) * | 2021-05-20 | 2024-06-06 | Honor Device Co., Ltd. | Method and apparatus for controlling linear motor, device, and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140218185A1 (en) * | 2013-02-05 | 2014-08-07 | Immersion Corporation | Overdrive voltage for an actuator to generate haptic effects |
US9186702B2 (en) * | 2012-11-28 | 2015-11-17 | Apple Inc. | Controlling vibrations from multiple vibrator motors in a mobile communications device |
CN105791578A (en) * | 2016-03-08 | 2016-07-20 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for prompting a message |
CN105812567A (en) * | 2016-03-29 | 2016-07-27 | 努比亚技术有限公司 | Mobile terminal control method and device |
CN106208890A (en) * | 2016-07-21 | 2016-12-07 | 瑞声科技(新加坡)有限公司 | Linear electric machine vibrates conforming compensation device and compensation method thereof |
CN106849781A (en) * | 2017-03-31 | 2017-06-13 | 珠海市魅族科技有限公司 | A kind of motor drive circuit, method and electronic equipment |
-
2018
- 2018-05-02 CN CN201810411292.6A patent/CN108881615A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9186702B2 (en) * | 2012-11-28 | 2015-11-17 | Apple Inc. | Controlling vibrations from multiple vibrator motors in a mobile communications device |
US20140218185A1 (en) * | 2013-02-05 | 2014-08-07 | Immersion Corporation | Overdrive voltage for an actuator to generate haptic effects |
CN105791578A (en) * | 2016-03-08 | 2016-07-20 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for prompting a message |
CN105812567A (en) * | 2016-03-29 | 2016-07-27 | 努比亚技术有限公司 | Mobile terminal control method and device |
CN106208890A (en) * | 2016-07-21 | 2016-12-07 | 瑞声科技(新加坡)有限公司 | Linear electric machine vibrates conforming compensation device and compensation method thereof |
CN106849781A (en) * | 2017-03-31 | 2017-06-13 | 珠海市魅族科技有限公司 | A kind of motor drive circuit, method and electronic equipment |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111752370A (en) * | 2019-03-26 | 2020-10-09 | 北京小米移动软件有限公司 | Motor vibration control method, device, terminal and storage medium |
CN110707982A (en) * | 2019-09-05 | 2020-01-17 | Oppo(重庆)智能科技有限公司 | Control method, device and equipment of electronic equipment and storage medium |
CN110715720A (en) * | 2019-10-15 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Terminal vibration method, terminal and storage medium |
CN110715720B (en) * | 2019-10-15 | 2021-11-12 | 北京字节跳动网络技术有限公司 | Terminal vibration method, terminal and storage medium |
WO2021128013A1 (en) * | 2019-12-24 | 2021-07-01 | 瑞声声学科技(深圳)有限公司 | Vibration signal calibration method, storage medium, and electronic device |
US11740698B2 (en) | 2020-01-10 | 2023-08-29 | Beijing Xiaomi Mobile Software Co., Ltd. | Electronic device |
CN113132545A (en) * | 2020-01-10 | 2021-07-16 | 北京小米移动软件有限公司 | Electronic device |
CN113132545B (en) * | 2020-01-10 | 2022-11-15 | 北京小米移动软件有限公司 | Electronic device |
CN112974199A (en) * | 2021-02-08 | 2021-06-18 | 惠州Tcl移动通信有限公司 | Motor vibration method and device and intelligent terminal |
CN116437004A (en) * | 2021-02-22 | 2023-07-14 | 腾讯科技(深圳)有限公司 | Parameter adjustment method, device, computer-readable storage medium, and electronic device |
EP4120548A4 (en) * | 2021-05-20 | 2023-08-23 | Honor Device Co., Ltd. | Method and apparatus for adjusting driving waveform, and electronic device and readable storage medium |
US20240186920A1 (en) * | 2021-05-20 | 2024-06-06 | Honor Device Co., Ltd. | Method and apparatus for controlling linear motor, device, and readable storage medium |
CN115473961A (en) * | 2021-06-11 | 2022-12-13 | 华为技术有限公司 | Vibration control method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881615A (en) | Electronic equipment vibration control system, method, controller and equipment | |
US11574654B2 (en) | Automatic generation of video playback effects | |
US10726836B2 (en) | Providing audio and video feedback with character based on voice command | |
WO2018184488A1 (en) | Video dubbing method and device | |
WO2016177296A1 (en) | Video generation method and apparatus | |
CN108024079A (en) | Record screen method, apparatus, terminal and storage medium | |
CN111177453B (en) | Method, apparatus, device and computer readable storage medium for controlling audio playing | |
CN109891405B (en) | Method, system, and medium for modifying presentation of video content on a user device based on a consumption mode of the user device | |
CN108040285A (en) | Net cast picture adjusting method, computer equipment and storage medium | |
US10699746B2 (en) | Control video playback speed based on user interaction | |
CN112054986A (en) | Dynamically allocating computing resources to generate highlights in cloud gaming systems | |
US11283890B2 (en) | Post-engagement metadata generation | |
US10082928B2 (en) | Providing content to a user based on amount of user contribution | |
US9471272B2 (en) | Skip of a portion of audio | |
US9313255B2 (en) | Directing a playback device to play a media item selected by a controller from a media server | |
CN105573646A (en) | A method for controlling playback progress of multimedia content and user terminal | |
CN105516783A (en) | A method for controlling playback progress of multimedia content and user terminal | |
CN112055242A (en) | Video synchronous playing method, device, system and storage medium | |
US10133408B2 (en) | Method, system and computer program product | |
CN115102931B (en) | Method for adaptively adjusting audio delay and electronic equipment | |
CN117251585A (en) | Media management based on user presence | |
KR102369525B1 (en) | Apparatus, system, and method for remote connection | |
KR102399661B1 (en) | Apparatus and method for remote connection | |
TWI830243B (en) | Display device, control method and non-transitory computer readable storage medium | |
KR20190096240A (en) | System for interactive media production based on user motion recognition and method for the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |