CN110715720B - Terminal vibration method, terminal and storage medium - Google Patents

Terminal vibration method, terminal and storage medium Download PDF

Info

Publication number
CN110715720B
CN110715720B CN201910978677.5A CN201910978677A CN110715720B CN 110715720 B CN110715720 B CN 110715720B CN 201910978677 A CN201910978677 A CN 201910978677A CN 110715720 B CN110715720 B CN 110715720B
Authority
CN
China
Prior art keywords
vibration
voltage
curve
terminal
time points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910978677.5A
Other languages
Chinese (zh)
Other versions
CN110715720A (en
Inventor
方迟
李腾飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910978677.5A priority Critical patent/CN110715720B/en
Publication of CN110715720A publication Critical patent/CN110715720A/en
Application granted granted Critical
Publication of CN110715720B publication Critical patent/CN110715720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H1/00Measuring characteristics of vibrations in solids by using direct conduction to the detector
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P15/00Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Apparatuses For Generation Of Mechanical Vibrations (AREA)

Abstract

The embodiment of the disclosure provides a method for vibrating a terminal, the terminal and a storage medium. The method for vibrating the terminal comprises the following steps: the terminal receives a preset vibration command; in response to a preset vibration command, the terminal reads a loading time point and a loading size of a voltage from a preset storage space; the motor vibrator is powered by the drive of the terminal at a loading time point with a voltage of a corresponding magnitude, so that the motor vibrator simulates the vibration effect of an actual object, wherein the drive is electrically connected to the motor vibrator; wherein the number of loading time points is more than two. The method of the present disclosure can generate vibration effects on the terminal similar to the vibration of an actual object.

Description

Terminal vibration method, terminal and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and more particularly, to a method for vibrating a terminal, a terminal and a storage medium.
Background
In modern electronic devices, physical vibration of a motor is mostly used to achieve the purpose of prompting/operation feedback. However, the current motor does not have satisfactory vibration effects.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above problems, the present disclosure provides a method for vibrating a terminal, and a storage medium, which can simulate a vibration effect of a real object on the terminal.
According to an embodiment of the present disclosure, there is provided a method of vibrating a terminal, including: the terminal receives a preset vibration command; responding to the preset vibration command, and reading a loading time point and a loading size of the voltage from a preset storage space by the terminal; supplying power to a motor vibrator with a voltage of a corresponding magnitude at the loading time point by using a drive of the terminal so that the motor vibrator simulates a vibration effect of an actual object, wherein the drive is electrically connected to the motor vibrator; wherein the number of the loading time points is more than two.
According to another embodiment of the present disclosure, there is provided a terminal including: the vibration command receiving module is configured to receive a preset vibration command; the reading module is configured to respond to the preset vibration command and read the loading time point and the loading size of the voltage from a preset storage space; a driving module configured to supply a voltage of a corresponding magnitude to a motor vibrator at the loading time point so that the motor vibrator simulates a vibration effect of an actual object, wherein the driving module is electrically connected to the motor vibrator; wherein the number of the loading time points is more than two.
According to another embodiment of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
According to another embodiment of the present disclosure, there is provided a computer storage medium storing program code for performing the above-described method.
In the method, the voltage with the corresponding size is applied to the motor oscillator at the loading time points, the effect of real vibration of an object can be simulated on the terminal by utilizing the effect of the combination of the loading time points and the corresponding voltage size on the motor oscillator, and the user experience of a product is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1A illustrates a schematic diagram of a method of terminal vibration of an embodiment of the present disclosure.
Fig. 1B shows a schematic diagram of the process of obtaining the loading time point and magnitude of the voltage of the present disclosure.
Fig. 2-6 show schematic diagrams of a process of fitting a curve of an embodiment of the present disclosure.
Fig. 7 shows a schematic diagram of a terminal of an embodiment of the present disclosure.
FIG. 8 illustrates a schematic structural diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
In modern terminals, the physical vibration of the motor is mostly used to achieve the purpose of prompting/operation feedback. However, the vibration cannot be recorded as a bell sound, and basically only depends on the physical vibration of the motor vibrator. The vibration of the current motor vibrator is single and cannot be completely satisfactory. The vibration waveform of a real object can be detected by using an instrument, and then parameters such as input voltage of the motor are adjusted, so that the motor can vibrate according to the vibration waveform of the real object, the vibration effect of the real object is simulated on the terminal, and the user experience is further improved.
In some embodiments, the motor is used in a terminal, which in the present disclosure may include, but is not limited to, terminal devices such as mobile phones, smart phones, notebook computers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), and the like.
As shown in fig. 1A, a method for vibrating a terminal is provided, which includes a step S101 that the terminal receives a preset vibration command. In some embodiments, the preset vibration command may be triggered by an operation of the terminal by the user, or may be triggered by receiving an incoming call or an event such as a message or an alarm clock.
The method of the present disclosure further includes step S102, in response to the received preset vibration command, the terminal reads a loading time point and a magnitude of the voltage from the preset storage space. In some embodiments, the preset storage space may be a memory in the terminal, or may be a storage space located outside the terminal, for example, a cloud. In some embodiments, the loading time point and the magnitude of the voltage are read from the memory space by the driving of the terminal, but the present disclosure is not limited thereto.
The method of the present disclosure further includes step S103 of supplying power to the motor vibrator with a voltage of a corresponding magnitude at a loading time point by using the driving of the terminal, so that the motor vibrator simulates a vibration effect of an actual object. In some embodiments, the drive is electrically connected to the motor vibrator to transmit information of the loading time point and the voltage magnitude to the motor vibrator. In some embodiments, the number of loading time points is more than two, and the voltage magnitude applied at different loading time points is generally different.
In the conventional vibration of the motor vibrator, a single physical vibration is generally obtained by applying a voltage once to the motor vibrator, or the magnitude of the vibration is adjusted by the magnitude of a plurality of applied voltages, but the magnitude of the plurality of voltages is not related to each other, and only one means for adjusting the magnitude of the vibration is used. By adopting the method disclosed by the invention, the voltage with the corresponding magnitude is applied to the motor oscillator at more than two loading time points for simulating the vibration effect of an actual object, and brand new experience can be brought to a user. That is, the loading time point of the applied voltage and the magnitude of the corresponding voltage in the present disclosure are correlated to obtain the vibration effect of the real object.
Referring to fig. 1B, the loading time point and magnitude of the voltage may be obtained through steps S201 to S203. In step S201, a vibration curve of an actual object is received. In some embodiments, the vibration profile of the actual object is obtained by an acceleration tester (e.g., available from MMF, germany), which in turn may be provided to the terminal. For example, in order to measure the vibration curve of a cup, two patches of an acceleration tester can be attached to two sides of the cup, both the outer side and the inner side of the cup, and then a tap or a manual tap is applied by the acceleration tester, so that the acceleration attenuation curve of the cup vibration can be measured, that is, the vibration curve of an actual object can be obtained. It should be understood that the above examples are illustrative only and are not intended to limit the present disclosure. In some embodiments, a library may be created in which vibration curves resulting from different part strikes of various real objects are stored for subsequent fitting.
In some embodiments, in step S202, a plurality of voltages of corresponding magnitudes are applied to the motor vibrator at a plurality of time points, resulting in a plurality of curves. Specifically, for example, first, a first voltage is applied to the motor oscillator, and a first vibration peak of the motor oscillator is made to be the same as a first peak of a vibration curve of the actual object, thereby obtaining a first curve of the motor oscillator. And then, applying a second voltage to the motor oscillator at a first time point to obtain a second curve of the motor oscillator. In some embodiments, the first vibration peak of the motor oscillator is the same as the first vibration peak of the vibration curve of the actual object, so that the workload of adjustment in subsequent fitting can be greatly reduced, the adjustment time is reduced, and the efficiency is improved.
In some embodiments, the first point in time is between 1/2 and 1 of the first cycle of the vibration profile. In the present disclosure, one cycle of the vibration curve refers to time returning to the horizontal axis of time after passing one peak and valley from the horizontal axis of time. For example, if the first period of the vibration curve is 200ms, the first time point may be set between 100ms and 200 ms. That is, by applying the second voltage at this time point, the first valley of the vibration curve and the curve thereafter can be adjusted well, and the adjustment workload required in fitting can be reduced, and the efficiency can be improved.
In some embodiments, in step S203, the obtained plurality of curves are superimposed, and curve fitting is performed by adjusting the magnitudes of the plurality of voltages and the plurality of time points. In some embodiments, the curve fitting may be performed by some fitting software, but the disclosure is not so limited. For example, a plurality of curves (e.g., a first curve and a second curve) obtained by superposition, where the fitted curve does not usually coincide with the vibration curve, may be adjusted at the time point and the applied voltage until the same fitted target curve as the vibration curve is obtained, and may also be adjusted at the time point and the voltage. At this time, the adjusted multiple time points and voltage magnitudes are stored in the preset storage space as the loading time points and magnitudes of the voltages. Thereby, by applying the stored loading time point and magnitude to the motor vibrator thereafter, the same vibration effect as that of the vibration of the actual object can be obtained. Therefore, when the method disclosed by the invention is adopted in the terminal to enable the motor to vibrate, a user can feel more intimate, and the user experience is improved.
In some embodiments, the first voltage is equal to the adjusted first voltage. As described above, when the first voltage is applied, the first vibration peak of the motor oscillator is the same as the first vibration peak of the vibration curve, and at this time, the subsequent adjustment workload can be reduced, thereby improving the efficiency. Thus, during the adjustment phase, the first voltage may remain unchanged, i.e. equal to the adjusted first voltage.
In some embodiments, when the first valley of the first curve is lower than the first valley of the vibration curve, in order to cancel part of the first valley of the first curve, so that the curve is closer to the vibration curve of the object, thereby reducing the subsequent adjustment workload, the second voltage may be a negative voltage. In some embodiments, the second voltage may be a positive voltage when the first trough of the first curve is higher than the first trough of the vibration curve. Similarly, when the ith trough of the ith curve of the multiple curves is lower than the ith trough of the vibration curve, the (i + 1) th voltage is a negative voltage; when the ith wave trough of the ith curve is higher than the ith wave trough of the vibration curve, the voltage of the (i + 1) th wave trough is positive voltage, wherein i is a positive integer.
In some embodiments, the second point in time is during a second cycle of the vibration profile. Likewise, an ith time point of the plurality of time points is during an ith cycle of the vibration profile, where i is a positive integer. The ith time point is set in the ith period of the vibration curve, so that the fitting of the target curve is facilitated, the workload of subsequent adjustment is reduced, and the efficiency is improved.
How to obtain the loading time point and the voltage magnitude is described below with reference to specific examples to better understand the present disclosure.
As shown in fig. 2, a vibration curve of an actual object obtained using an acceleration tester is shown, which is attenuated to 0 at 600 ms.
Thereafter, a first voltage V1, e.g. 3V, is applied to the motor vibrator such that the first peak of the motor vibrator is the same as the first peak of the vibration curve, resulting in a first curve as shown in fig. 3.
Next, at a time point of 170ms, a second voltage V2, for example, -1V, is applied to the motor vibrator, resulting in a second curve as shown in fig. 4.
Thereafter, at a time point of 300ms, a third voltage V3, e.g. 0.8V, is applied to the motor vibrator, resulting in a third curve as shown in fig. 5.
Then, the above-obtained first curve, second curve, and third curve are superimposed, and the first voltage V1, second voltage V2, and third voltage V3 are adjusted until the same target curve as the vibration curve of the object is fitted, as shown in fig. 6. The fitting can be performed through various fitting software or manual fitting, and the fitting principle is that the phase voltages are mutually offset or compensated to obtain a target curve, and the adjusted first voltage 3V, the adjusted second voltage-0.8V and the adjusted third voltage 0.6V are obtained. Thereafter, the plurality of time points and the corresponding adjusted first, second, and third voltages are stored in a preset storage space (e.g., a memory of the terminal). When the adjusted corresponding voltage is applied to the motor vibrator according to the corresponding time point, the vibration effect of the actual object can be obtained.
In some embodiments, more than three voltages may be used to fit the target curve, for example, 3-5 voltages may be used to fit the target curve, if less than 3, e.g., 2 voltages, it is generally difficult to fit the vibration curve of the actual object, and if more than 5, e.g., 6, the subsequent step of adjusting the voltages is complicated. In the case of using 3 to 5 voltages, it is possible to help achieve faster fitting of the vibration curve of the actual object to some extent, however, when the number exceeds 5, the adjustment workload may be increased, and the efficiency may be reduced.
In some embodiments, the drive is electrically connected to the motor vibrator by applying a respective voltage to the motor vibrator at a respective point in time. For example, in a smart phone, it is common to apply a voltage to a motor vibrator using a drive on a chip (e.g., a high-pass phone chip), because in actual use, the vibration of the motor is controlled by the chip.
As shown in fig. 7, an embodiment of the present disclosure also provides a terminal 700 corresponding to the above method, including a vibration command receiving module 701, a reading module 702, and a driving module 703. The vibration command receiving module 701 is configured to receive a preset vibration command. The reading module 702 is configured to read a loading time point and a magnitude of a voltage from a preset storage space in response to a preset vibration command. The driving module 703 is configured to supply power to the motor vibrator with a voltage of a corresponding magnitude at a loading time point, so that the motor vibrator simulates a vibration effect of an actual object, wherein the driving module is electrically connected to the motor vibrator; wherein the number of loading time points is more than two.
In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
Furthermore, the present disclosure also provides a computer storage medium storing program code for executing the above method.
In some embodiments, the scheme of the present disclosure may simulate the waveform of the vibration of the actual object using a motor by testing acceleration data using an acceleration tester to simulate the vibration waveform of the actual object and fitting the vibration curve of the object through the magnitude of applied voltage and the loading time point, so that the vibration effect of various types of notifications generated on the terminal is close to the vibration effect of the actual object, thereby improving the user experience.
Referring now to FIG. 8, shown is a schematic diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 806 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 806 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 806, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method of vibrating a terminal, including: the terminal receives a preset vibration command; responding to the preset vibration command, and reading a loading time point and a loading size of the voltage from a preset storage space by the terminal; supplying power to a motor vibrator with a voltage of a corresponding magnitude at the loading time point by using a drive of the terminal so that the motor vibrator simulates a vibration effect of an actual object, wherein the drive is electrically connected to the motor vibrator; wherein the number of the loading time points is more than two.
According to one or more embodiments of the present disclosure, the loading time point and the magnitude of the voltage are obtained by: receiving a vibration curve of the actual object; applying a plurality of voltages with corresponding magnitudes to the motor oscillator at a plurality of time points to obtain a plurality of corresponding curves; superposing the plurality of curves, and performing curve fitting by adjusting the plurality of time points and the plurality of voltages; and when the fitted curve is the same as the vibration curve, obtaining a plurality of adjusted time points and adjusted voltage sizes, and storing the plurality of adjusted time points and the adjusted voltage sizes as the loading time points and the sizes of the voltage in the preset storage space.
According to one or more embodiments of the present disclosure, the plurality of voltages includes a first voltage, and a first peak of vibration of the motor vibrator is the same as a first peak of the vibration curve when the first voltage is applied to the motor vibrator.
According to one or more embodiments of the present disclosure, the vibration curve is obtained by measuring an acceleration attenuation curve of the real object by an acceleration tester.
According to one or more embodiments of the present disclosure, a first time point of the plurality of time points is between 1/2 and 1 of a first cycle of the vibration profile.
According to one or more embodiments of the present disclosure, when the ith trough of the ith curve of the plurality of curves is lower than the ith trough of the vibration curve, the (i + 1) th voltage is a negative voltage; when the ith wave trough of the ith curve is higher than the ith wave trough of the vibration curve, the (i + 1) th voltage is a positive voltage.
According to one or more embodiments of the present disclosure, an ith time point of the plurality of time points is during an ith cycle of the vibration profile.
According to one or more embodiments of the present disclosure, the number of the loading time points is 3 to 5.
According to one or more embodiments of the present disclosure, there is also provided a terminal including: the vibration command receiving module is configured to receive a preset vibration command; the reading module is configured to respond to the preset vibration command and read the loading time point and the loading size of the voltage from a preset storage space; a driving module configured to supply a voltage of a corresponding magnitude to a motor vibrator at the loading time point so that the motor vibrator simulates a vibration effect of an actual object, wherein the driving module is electrically connected to the motor vibrator; wherein the number of the loading time points is more than two.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
According to one or more embodiments of the present disclosure, there is provided a computer storage medium storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method of vibrating a terminal, comprising:
the terminal receives a preset vibration command;
responding to the preset vibration command, and reading a loading time point and a loading size of the voltage from a preset storage space by the terminal;
supplying power to a motor vibrator with a voltage of a corresponding magnitude at the loading time point by using a drive of the terminal so that the motor vibrator simulates a vibration effect of an actual object, wherein the drive is electrically connected to the motor vibrator;
wherein the number of the loading time points is more than two;
wherein the loading time point and magnitude of the voltage are obtained by:
receiving a vibration curve of the actual object;
applying a plurality of voltages with corresponding magnitudes to the motor oscillator at a plurality of time points to obtain a plurality of corresponding curves;
superposing the plurality of curves, and performing curve fitting by adjusting the plurality of time points and the plurality of voltages;
and when the fitted curve is the same as the vibration curve, obtaining a plurality of adjusted time points and adjusted voltage sizes, and storing the plurality of adjusted time points and the adjusted voltage sizes as the loading time points and the sizes of the voltage in the preset storage space.
2. The method of claim 1, wherein the plurality of voltages includes a first voltage, and wherein a first peak of vibration of the motor vibrator is the same as a first peak of the vibration curve when the first voltage is applied to the motor vibrator.
3. The method of claim 1, wherein the vibration profile is obtained by measuring an acceleration decay profile of the real object with an acceleration tester.
4. The method of claim 1, wherein a first time point of the plurality of time points is in a second half of a first period of the vibration profile.
5. The method of claim 1, wherein when an ith trough of an ith curve of the plurality of curves is lower than an ith trough of the vibration curve, the (i + 1) th voltage is a negative voltage;
when the ith wave trough of the ith curve is higher than the ith wave trough of the vibration curve, the (i + 1) th voltage is positive, wherein i is a positive integer.
6. The method of claim 1, wherein an ith time point of the plurality of time points is during an ith cycle of the vibration profile, wherein i is a positive integer.
7. The method of claim 1, wherein the number of loading time points is 3-5.
8. A terminal, comprising:
the vibration command receiving module is configured to receive a preset vibration command;
the reading module is configured to respond to the preset vibration command and read the loading time point and the loading size of the voltage from a preset storage space;
a driving module configured to supply a voltage of a corresponding magnitude to a motor vibrator at the loading time point so that the motor vibrator simulates a vibration effect of an actual object, wherein the driving module is electrically connected to the motor vibrator;
wherein the number of the loading time points is more than two;
wherein the loading time point and the magnitude of the voltage are obtained by the following steps:
receiving a vibration curve of the actual object;
applying a plurality of voltages with corresponding magnitudes to the motor oscillator at a plurality of time points to obtain a plurality of corresponding curves;
superposing the plurality of curves, and performing curve fitting by adjusting the plurality of time points and the plurality of voltages;
and when the fitted curve is the same as the vibration curve, obtaining a plurality of adjusted time points and adjusted voltage sizes, and storing the plurality of adjusted time points and the adjusted voltage sizes as the loading time points and the sizes of the voltage in the preset storage space.
9. A terminal, characterized in that the terminal comprises:
at least one memory and at least one processor;
wherein the memory is configured to store program code and the processor is configured to invoke the program code stored by the memory to perform the method of any of claims 1 to 7.
10. A computer storage medium characterized in that the computer storage medium stores program code for executing the method of any one of claims 1 to 7.
CN201910978677.5A 2019-10-15 2019-10-15 Terminal vibration method, terminal and storage medium Active CN110715720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910978677.5A CN110715720B (en) 2019-10-15 2019-10-15 Terminal vibration method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910978677.5A CN110715720B (en) 2019-10-15 2019-10-15 Terminal vibration method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110715720A CN110715720A (en) 2020-01-21
CN110715720B true CN110715720B (en) 2021-11-12

Family

ID=69212601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910978677.5A Active CN110715720B (en) 2019-10-15 2019-10-15 Terminal vibration method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110715720B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060117400A (en) * 2005-05-10 2006-11-17 주식회사 팬택앤큐리텔 Apparatus for vibration motor linear control in the mobile communication terminal
CN102538940A (en) * 2012-01-10 2012-07-04 广东欧珀移动通信有限公司 Auto-induction vibration method of handheld equipment
CN106059440A (en) * 2016-05-31 2016-10-26 维沃移动通信有限公司 Mobile terminal vibration motor control method and mobile terminal
CN106461727A (en) * 2016-10-31 2017-02-22 北京小米移动软件有限公司 Method and device for controlling motor vibration, and electronic device
CN108089712A (en) * 2017-12-29 2018-05-29 瑞声科技(南京)有限公司 A kind of method and device of self-defined vibration sense
CN108258977A (en) * 2018-01-11 2018-07-06 上海展扬通信技术有限公司 Motor vibrations control method, mobile terminal and computer readable storage medium
CN108881615A (en) * 2018-05-02 2018-11-23 Oppo广东移动通信有限公司 Vibration of electronic equipment control system, method, controller and equipment
CN109144606A (en) * 2018-08-06 2019-01-04 瑞声科技(新加坡)有限公司 A kind of motor driving method, terminal device and computer readable storage medium
CN109213319A (en) * 2018-08-04 2019-01-15 瑞声科技(新加坡)有限公司 Vibrational feedback method and mobile terminal based on scene
CN109874398A (en) * 2017-01-04 2019-06-11 华为技术有限公司 A kind of driving method and terminal of linear motor
CN109901703A (en) * 2017-12-11 2019-06-18 北京小米移动软件有限公司 The method for oscillating and storage medium of a kind of terminal, terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110074333A (en) * 2009-12-24 2011-06-30 삼성전자주식회사 Method and apparatus for generating vibration in potable terminal
CN102394973B (en) * 2011-10-25 2013-12-04 华为终端有限公司 Terminal intelligent vibration method and terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060117400A (en) * 2005-05-10 2006-11-17 주식회사 팬택앤큐리텔 Apparatus for vibration motor linear control in the mobile communication terminal
CN102538940A (en) * 2012-01-10 2012-07-04 广东欧珀移动通信有限公司 Auto-induction vibration method of handheld equipment
CN106059440A (en) * 2016-05-31 2016-10-26 维沃移动通信有限公司 Mobile terminal vibration motor control method and mobile terminal
CN106461727A (en) * 2016-10-31 2017-02-22 北京小米移动软件有限公司 Method and device for controlling motor vibration, and electronic device
CN109874398A (en) * 2017-01-04 2019-06-11 华为技术有限公司 A kind of driving method and terminal of linear motor
CN109901703A (en) * 2017-12-11 2019-06-18 北京小米移动软件有限公司 The method for oscillating and storage medium of a kind of terminal, terminal
CN108089712A (en) * 2017-12-29 2018-05-29 瑞声科技(南京)有限公司 A kind of method and device of self-defined vibration sense
CN108258977A (en) * 2018-01-11 2018-07-06 上海展扬通信技术有限公司 Motor vibrations control method, mobile terminal and computer readable storage medium
CN108881615A (en) * 2018-05-02 2018-11-23 Oppo广东移动通信有限公司 Vibration of electronic equipment control system, method, controller and equipment
CN109213319A (en) * 2018-08-04 2019-01-15 瑞声科技(新加坡)有限公司 Vibrational feedback method and mobile terminal based on scene
CN109144606A (en) * 2018-08-06 2019-01-04 瑞声科技(新加坡)有限公司 A kind of motor driving method, terminal device and computer readable storage medium

Also Published As

Publication number Publication date
CN110715720A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN111459364B (en) Icon updating method and device and electronic equipment
CN111427647B (en) Page display method and device of application program, storage medium and electronic equipment
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN111694757A (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN111858381B (en) Application fault tolerance capability test method, electronic device and medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN110837334B (en) Method, device, terminal and storage medium for interactive control
CN110879729A (en) Channel configuration method and device for live broadcast room, readable medium and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN112380883B (en) Model training method, machine translation method, device, equipment and storage medium
CN109840109B (en) Method and apparatus for generating software development toolkit
CN110715720B (en) Terminal vibration method, terminal and storage medium
CN115022328B (en) Server cluster, testing method and device of server cluster and electronic equipment
CN116072108A (en) Model generation method, voice recognition method, device, medium and equipment
CN109947659A (en) System, method and apparatus for test application
CN112418233B (en) Image processing method and device, readable medium and electronic equipment
CN112017685B (en) Speech generation method, device, equipment and computer readable medium
CN111367592B (en) Information processing method and device
CN114328215A (en) Test data deployment method, device, equipment, readable storage medium and product
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111680754A (en) Image classification method and device, electronic equipment and computer-readable storage medium
CN115827415B (en) System process performance test method, device, equipment and computer medium
CN111212296A (en) Live broadcast room gift list configuration method, device, medium and electronic equipment
CN112235333B (en) Function package management method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant