CN114503435A - Vibration control method, terminal device and storage medium - Google Patents

Vibration control method, terminal device and storage medium Download PDF

Info

Publication number
CN114503435A
CN114503435A CN201980100796.9A CN201980100796A CN114503435A CN 114503435 A CN114503435 A CN 114503435A CN 201980100796 A CN201980100796 A CN 201980100796A CN 114503435 A CN114503435 A CN 114503435A
Authority
CN
China
Prior art keywords
frequency offset
target frequency
temperature
terminal device
offset
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
Application number
CN201980100796.9A
Other languages
Chinese (zh)
Inventor
林进全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114503435A publication Critical patent/CN114503435A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L1/00Stabilisation of generator output against variations of physical values, e.g. power supply
    • H03L1/02Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/081Details of the phase-locked loop provided with an additional controlled phase shifter
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/10Details of the phase-locked loop for assuring initial synchronisation or for broadening the capture range

Landscapes

  • Apparatuses For Generation Of Mechanical Vibrations (AREA)

Abstract

A vibration control method, a terminal device and a storage medium, the method comprising: collecting the temperature of the terminal equipment (S101); determining a target frequency offset corresponding to the temperature (S102); controlling vibration of a resonance device in the terminal apparatus according to the target frequency offset amount (S103).

Description

Vibration control method, terminal device and storage medium Technical Field
The present invention relates to mobile communication technologies, and in particular, to a vibration control method, a terminal device, and a storage medium.
Background
A resonant device such as a motor in a terminal device such as a mobile terminal can control motor vibration by using a General Purpose Input/Output (GPIO), Pulse Width Modulation (PWM) or a driver chip. For example: in order to improve the experience in different scenes, the driving chip storing the vibration waveform data of the various motors is used for driving the motors to implement different vibration waveforms according to different scenes, so that different vibration effects are realized in different scenes.
In the prior art, the frequencies of vibration waveforms in different scenes are configured before the terminal device is shipped, but after the terminal device is shipped, the natural frequency of the resonance device may shift due to the temperature of the terminal device, so that the actual vibration frequency of the resonance device may deviate from the designed vibration frequency value.
Disclosure of Invention
Embodiments of the present invention provide a vibration control method, a terminal device, and a storage medium, which can eliminate vibration deviation of a resonance apparatus due to temperature.
In a first aspect, an embodiment of the present invention provides a vibration control method, where the method includes:
acquiring the temperature of terminal equipment;
determining a target frequency offset corresponding to the temperature;
and controlling the vibration of a resonance device in the terminal equipment according to the target frequency offset.
In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes:
the acquisition unit is configured to acquire the temperature of the terminal equipment;
a determining unit configured to determine a target frequency offset corresponding to the temperature;
a control unit configured to control vibration of a resonance device in the terminal apparatus according to the target frequency offset amount.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
a memory for storing executable instructions;
and the processor is used for realizing the steps of the vibration control method when executing the executable instructions stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer readable medium storing executable instructions for causing a processor to implement the vibration control method described above when executed.
According to the vibration control method, the terminal device and the storage medium provided by the embodiment of the invention, the temperature of the terminal device is collected; determining a target frequency offset corresponding to the temperature; controlling the vibration of a resonance device in the terminal equipment according to the target frequency offset; therefore, the vibration frequency of the resonance device is corrected according to the frequency offset corresponding to the current temperature of the terminal equipment, the actual vibration frequency is enabled to be consistent with the design value of the vibration frequency, the vibration deviation of the resonance device caused by the temperature is eliminated, the vibration sense of the resonance device is better, and the use experience of a user on the terminal equipment is improved.
Drawings
FIG. 1 is a schematic flow chart of an alternative vibration control method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of an alternative vibration control method according to an embodiment of the present invention;
FIG. 3 is a waveform diagram of a driving signal according to an embodiment of the present invention;
FIG. 4 is a waveform diagram of a driving signal according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of an alternative vibration control method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of an alternative vibration control method according to an embodiment of the present invention;
fig. 7 is an alternative structural diagram of a terminal device in which the present invention is implemented;
fig. 8 is an alternative structural schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and technical contents of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the present invention will be rendered by reference to the appended drawings, which are included for purposes of illustration and not limitation.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, to enable embodiments of the invention described herein to be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
In the related art, the natural frequency of the resonance device such as a motor may be shifted due to the temperature of the terminal device when the terminal device is used for a long time, and the actual sampling frequency calibrated before shipment may be shifted, which may cause a deviation between the actual resonance frequency of the finished resonance device and the designed resonance frequency value, and may change the vibration amount of the resonance device. The calibration of the sampling frequency of the resonant device requires a precise device to reconfigure the waveform data of the resonant device so that the calibrated sampling frequency is adapted to the shifted natural frequency, and thus, the sampling frequency of the resonant device in the related art is not suitable for self-calibration of the consumer electronic device after delivery.
Based on the above problem, an embodiment of the present invention provides a vibration control method, which is applied to a terminal device having a resonance device. Terminal Equipment may refer to an access terminal, User Equipment (UE), subscriber unit, subscriber station, mobile station, remote terminal, mobile device, User terminal, wireless communication device, User agent, or User Equipment. An access terminal may be a cellular telephone, a cordless telephone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device having Wireless communication capabilities, a computing device or other processing device connected to a Wireless modem, a vehicle mounted device, a wearable device, a terminal device in a 5G network, or a terminal device in a future evolved PLMN, etc.
The resonance device refers to a component such as a motor capable of generating vibration based on the adaptation of a natural frequency and a sampling frequency. The motor may be a Linear Resonance motor (LRA). The vibration of the resonant device can be perceived by a human to produce a haptic feedback effect.
The linear resonant motor includes: a spring, a magnetic mass and a coil. The spring suspends the coil inside the linear resonant motor, and when current flows through the coil, the coil generates a magnetic field. The coil is connected with the magnetic mass block, when the current flowing through the coil changes, the direction and the strength of the magnetic field also change, and the mass block moves up and down in the changing magnetic field. The linear resonant motor moves based on the movement of the mass, which is perceived by a human to produce a haptic feedback effect.
In the embodiment of the invention, the terminal equipment utilizes the driving chip for storing various driving waveform data to realize different vibration waveforms according to different scenes, so that different vibration effects are realized, and the vibration experience under different scenes is improved.
As shown in fig. 1, a vibration control method provided in an embodiment of the present invention includes:
and S101, acquiring the temperature of the terminal equipment.
The terminal equipment provided by the embodiment of the invention can be provided with the temperature sensor, and the temperature sensor can sense the temperature of the terminal equipment. Optionally, the temperature sensor is a temperature sensor of a system in the terminal. Optionally, the temperature sensor is a temperature sensor added to the terminal device based on vibration control.
Taking the temperature sensor as an example of the temperature sensor additionally arranged in the terminal device based on vibration control, the position of the temperature sensor arranged in the terminal device is a position close to a main board in the terminal device, so as to accurately determine the temperature of the terminal device.
In one example, the temperature sensor is disposed on the main board near the periphery of the resonance device to collect the temperature of the area on the main board near the resonance device in the terminal device.
In one example, the temperature sensor is a temperature sensitive area disposed on the main board to quickly sense a temperature change of the main board of the terminal device. The temperature sensitive area on the main board can quickly react to the temperature relative to other areas on the main board. Such as: when the consumed memory of the application program operated by the terminal device is larger than the designated memory, the processor of the terminal device operates at high power, so that the mainboard generates heat, the temperature of the temperature-sensitive area is obviously increased relative to the temperature of other areas, and when the consumed memory of the operated application program is reduced or the terminal is in a dormant state, the temperature of the temperature-sensitive area is obviously reduced relative to the temperature of other areas. For another example: when the terminal equipment is in a rapid charging state, the mainboard generates heat, the temperature of the temperature sensitive area is obviously increased relative to the temperature of other areas, and when the terminal equipment finishes charging, the temperature of the temperature sensitive area is obviously reduced relative to the temperature of other areas.
In the embodiment of the present invention, the number of the temperature sensors and the arrangement positions of the temperature sensors are not limited at all.
In one example, when a plurality of temperature sensors are provided in the terminal device, the highest temperature among the temperatures collected by the plurality of temperature sensors may be used as the temperature of the terminal device.
In one example, when a plurality of temperature sensors are provided in the terminal device, an average temperature of temperatures collected by the plurality of temperature sensors may be used as the temperature of the terminal device.
The temperature that terminal equipment passes through temperature sensor collection is terminal equipment's real-time temperature, for example: 0 ℃ at 10 ℃ at 5 ℃.
Optionally, the terminal device generates a temperature detection instruction based on the trigger of the received driving instruction instructing the resonance device to vibrate; and starting to acquire the temperature of the terminal equipment based on the temperature detection instruction.
The terminal equipment can receive a driving instruction based on events such as user operation, incoming call, system reminding and the like to indicate the resonance device to vibrate, generate a temperature detection instruction indicating the temperature sensor to collect the temperature based on the triggering of the received driving instruction, and control the temperature sensor to start collecting the temperature of the equipment based on the temperature detection instruction so as to collect the temperature of the terminal equipment through the temperature sensor.
And S102, determining a target frequency offset corresponding to the temperature.
The terminal device determines a target frequency offset amount for correcting the sampling frequency of the terminal device based on the temperature determined in S101.
In the embodiment of the present invention, the method for determining the target frequency offset corresponding to the temperature includes one of the following:
the method comprises the steps of firstly, obtaining a temperature range included in a corresponding relation between a set temperature range and a frequency offset; determining a target temperature range to which the temperature belongs in the acquired temperature range; determining a target frequency offset corresponding to the target temperature range according to the corresponding relation;
and secondly, inputting the temperature into an offset network model to obtain the target frequency offset output by the offset network model.
In the first mode, the terminal device is provided with a frequency offset list. The frequency offset list includes a corresponding relationship between a set temperature range and a set frequency offset, where in different corresponding relationships, the temperature ranges are different, and the frequency offsets corresponding to different temperature ranges are different. And the terminal equipment acquires the temperature range included by the corresponding relation, determines the temperature range to which the acquired temperature belongs, namely a target temperature range, and takes the frequency offset corresponding to the target temperature range in the frequency offset list as the target temperature offset corresponding to the acquired temperature.
In one example, the frequency offset list is shown in table 1, and the temperature ranges included in the set correspondence relationship include: -20 to 25 ℃, 25 to 30 ℃ and 30 to 80 ℃, and when the temperature of the collected terminal device is-10 ℃, of-20 to 25 ℃, 25 to 30 ℃ and 30 to 80 ℃, the target temperature range to which-10 ℃ belongs is-20 to 25 ℃, the corresponding target frequency offset is-2 Hertz (HZ); and when the acquired temperature of the terminal equipment is 20 ℃, and the target temperature range is 25-30 ℃, the corresponding target frequency offset is 0 HZ.
Table 1 frequency offset list example
Temperature range, unit: degree centigrade Frequency offset, unit: HZ
-20-25 -2
25-30 0
30-80 +5
Wherein in table 1, the frequency offset is-2, indicating that the sampling frequency of the resonator device is decreased by 2HZ, and +5 indicating that the sampling frequency of the resonator device is increased by 5 HZ.
In the embodiment of the invention, the frequency offset has three types of positive numbers, zero numbers and negative numbers. When the frequency offset is positive, the sampling frequency of the resonance device is increased in a representation mode; when the frequency offset is zero, the sampling frequency of the characterization resonance device is unchanged; the characterization reduces the sampling frequency of the resonant device when the frequency offset is negative.
The vibration correction method provided by the embodiment of the invention can be applied to different scenes, such as: game scenes, incoming call scenes, alarm clock reminding scenes, and the like. The waveform of the drive signal driving the resonator device to vibrate is different for different scenarios. Optionally, the terminal device employs the same frequency offset list for different scenarios.
In the embodiment of the invention, the relationship between the temperature range and the frequency offset in the offset list in the terminal equipment can be set according to actual requirements.
In the second mode, the terminal device is provided with an offset network model trained on the temperature samples and the corresponding frequency offset samples. And the terminal equipment inputs the acquired temperature into the offset network model, and the output of the offset network model is the target frequency offset corresponding to the input temperature.
In the embodiment of the present invention, the temperature sample and the corresponding frequency offset sample may be sample data obtained by the terminal device from a network, or may be sample data received by the terminal device and input by a user. Optionally, the temperature samples and corresponding frequency offset samples may also include historical temperatures of vibrations controlling the resonating means in the terminal device and corresponding historical frequency offsets. The embodiment of the invention does not limit the acquisition way of the sample data of the training offset network model.
In the embodiment of the invention, the algorithm adopted by the offset network model of the terminal equipment is a neural network algorithm, and the structure of the offset network model is not limited at all.
Optionally, the determining, by the terminal device, the target frequency offset corresponding to the temperature includes: and sending the collected temperature to a network side, and receiving a target frequency offset corresponding to the sent temperature returned by the network side. The determination method for determining the target frequency offset to be returned by the network side according to the received temperature is not limited at all.
S103, controlling the vibration of a resonance device in the terminal equipment according to the target frequency offset.
After the terminal equipment determines the target frequency offset, the sampling frequency of a driving signal for driving the resonance device to vibrate is adjusted through the target frequency offset so as to adjust the sampling frequency of the resonance device, the sampling frequency is consistent with the natural frequency of the resonance device, and the vibration of the resonance device in the terminal equipment is controlled to be corrected.
Alternatively, as shown in fig. 2, S103 includes:
and S1031, acquiring a reference frequency of a driving signal for driving the resonance device to vibrate.
Here, the reference frequency is a sampling frequency of a drive signal that drives the resonance device to vibrate set by the terminal device. Optionally, the reference frequency of the driving signal is the same in different scenarios.
S1032, correcting the reference frequency according to the target frequency offset to obtain a target frequency.
And after the terminal equipment acquires the reference frequency, adding the target frequency offset and the reference frequency to obtain the target frequency after correcting the reference frequency according to the target frequency offset.
In one example, the reference frequency is FrefThe target frequency offset is Δ F, and the target frequency is F calculated by equation (1):
F=F ref+ Δ F formula (1).
In one example, the vibration time of the resonance device is t1 to t2, wherein the waveform of the drive signal before the correction based on the target frequency is as shown in fig. 3, the sampling frequency during the period from t1 to t2 is the reference frequency, and the magnitude of the reference frequency is f1, and when the temperature of the electronic device is 40 ℃, the waveform of the drive signal after the correction based on the target frequency is as shown in fig. 4, the sampling frequency during the period from t1 to t2 is the target frequency, and the magnitude of the target frequency is f2, wherein f1< f 2.
S1033, driving the resonance device to vibrate at the target frequency.
The terminal equipment drives the resonance device to vibrate by using the driving signal with the sampling frequency as the target frequency, so that the sampling frequency is adaptive to the natural frequency of the resonance device, and the vibration of the terminal equipment is corrected.
In the embodiment of the invention, when the sampling frequency of the driving signal is adjusted, the waveform of the driving signal is not adjusted, so that after the vibration of the resonance device in the terminal equipment is controlled based on the target frequency offset, the resonance device can continuously perform different vibrations in different scenes, thereby meeting the requirements of multiple scenes and enabling a user to distinguish different scenes according to the current vibration condition.
In the embodiment of the present invention, after S103, as shown in fig. 5, the method further includes:
and S104, detecting the vibration frequency of the resonance device.
Here, the frequency of the vibration when the resonance device is driven at the obtained sampling frequency corrected for the sampling frequency of the drive signal based on the target frequency offset amount is detected, thereby monitoring the correction effect of the current target frequency offset amount.
Alternatively, when the temperature of the terminal device belongs to the temperature range corresponding to the current target frequency offset, the frequency of the vibration of the resonance device is detected.
And S105, correcting the target frequency offset according to the detected frequency to obtain the corrected target frequency offset.
And the terminal equipment corrects the target frequency offset according to the correction effect of the detected current target frequency offset. Alternatively, when the correction effect reaches the expected correction effect, the current target frequency offset is not corrected. Optionally, when the correction effect does not reach the expected correction effect, the current target frequency offset is corrected.
And when the terminal equipment corrects the target frequency offset to obtain the corrected target frequency offset, controlling the vibration of the resonance device by using the corrected target frequency offset.
Optionally, a reference frequency of a drive signal driving the resonant device to vibrate is used as a measure of the effectiveness of the correction. At this time, S105 includes: comparing the detected frequency with a reference frequency of a drive signal driving the resonating means to vibrate; and when the frequency difference value between the detected frequency and the reference frequency is greater than a specified frequency difference threshold value, correcting the target frequency offset through the frequency difference value to obtain the corrected target frequency offset.
When the frequency difference between the detected frequency and the reference frequency is greater than a specified frequency difference threshold, the characteristic correction effect does not reach the expected correction effect, and the target frequency offset needs to be corrected. And when the frequency difference value between the detected frequency and the reference frequency is not greater than a specified frequency difference threshold value, representing that the correction effect reaches the expected correction effect without correcting the target frequency offset.
The method for correcting the target frequency offset includes: and correcting the target frequency offset through the frequency difference value of the detected frequency and the reference frequency to obtain the corrected target frequency offset. Here, the corrected target frequency shift amount Δ FSchoolCan be calculated by equation (2):
ΔF school=F Difference (D)+ Δ F equation (2);
wherein, FDifference (D)Is the difference in frequency between the detected frequency and the reference frequency.
In the embodiment of the invention, the target frequency offset or the offset network model is updated after the corrected target frequency offset is obtained.
Optionally, when the manner in which the terminal device determines the target frequency offset corresponding to the temperature is the first manner, the target frequency offset in the correspondence between the temperature range and the frequency offset is updated based on the corrected target frequency offset.
Here, the target frequency offset in the frequency offset list is updated to the corrected target frequency offset.
In an example, the correspondence relationship of the frequency offset list is shown in table 1, when the temperature is 40 ℃, the target frequency offset is 5HZ, and the corrected target frequency offset obtained by correcting the target frequency offset is 6HZ, and then the updated frequency offset list is shown in table 2.
Table 2 updated frequency offset list example
Temperature range, unit: degree centigrade Frequency offset, unit: HZ
-20-25 -2
25-30 0
30-80 +6
Optionally, when the mode of determining the target frequency offset corresponding to the temperature by the terminal device is the mode two, the parameter of the offset network model is updated based on the corrected target frequency offset.
And the terminal equipment updates the parameters of the offset network model based on the current temperature and the corrected target frequency offset, so that the offset network model is output, the frequency offset output by the offset network model aiming at the input temperature adapts to the service condition of the terminal equipment, and the sampling frequency of the driving signal is kept to be adapted to the natural frequency of the resonance device.
In the embodiment of the invention, the target frequency offset or the parameters of the offset network model in the corresponding relation are updated through the corrected target frequency offset, so that the corresponding relation between the temperature range for determining the target frequency offset and the frequency offset or the offset network model is subjected to feedback regulation through a correction effect to accurately determine the frequency offset for eliminating the vibration deviation of the resonance device caused by the temperature, and a frequency offset list stored in the terminal equipment and the offset network model can be dynamically adjusted along with the adjustment of the deviation of the natural frequency of the resonance device in the terminal equipment.
In the following, taking the first way of determining the target frequency offset corresponding to the temperature and taking the motor as an example, the vibration control method provided by the embodiment of the present invention is exemplified, as shown in fig. 6, including:
s601, presetting different relation tables of temperature ranges and frequency offsets.
Different temperature ranges and corresponding relations of frequency offsets are preset in a system of the terminal equipment to form a frequency offset relation table.
S602, obtaining the temperature of the system,
and the terminal equipment acquires the system temperature at regular time. The temperature of the current terminal equipment can be acquired by a temperature sensor added in the terminal equipment, and can also be acquired by a temperature sensor carried by the system.
S603, judging whether the frequency offset corresponding to the temperature of the current system exists in the relation table.
And the upper layer software service of the terminal equipment inquires a preset relation table to judge whether the frequency offset corresponding to the current system temperature exists in the preset relation. If not, S604 is executed, and if yes, S605 is executed.
And S604, outputting a driving signal by using the default frequency through the driving chip.
The upper software service part of the terminal equipment sets a driving system, and a driving chip in the driving system outputs a driving signal at a default frequency so as to drive the resonance device to vibrate.
The upper layer software service sets a bottom layer system, and the driving system sets a driving IC;
and S605, acquiring a frequency offset corresponding to the current temperature.
S606, setting the output frequency of the driving chip to be the current output sampling frequency plus the frequency offset.
And the upper layer software service of the terminal equipment sets the output frequency of the driving system of the bottom layer system as the current output sampling frequency plus the frequency offset.
S607, the driving waveform is output at the set output frequency through the driving chip.
The driving chip outputs a driving waveform by adding the frequency offset to the currently output actual frequency to drive the resonance device, so that the frequency of the actual driving voltage waveform of the resonance device tends to be consistent with the actual natural frequency of the resonance device.
In the embodiment of the present invention, a system of a terminal device includes: the system comprises an upper layer service and a bottom layer system; the upper layer service is responsible for judging logic, and the bottom layer system is responsible for setting a driving chip.
In the embodiment of the present invention, the hardware components of the terminal device include: a terminal system, a driving chip and a resonance device (such as a motor). The terminal system and the driver chip may perform data interactive communication through an interrupt pin, a Serial Peripheral Interface (SPI), or an Inter-Integrated Circuit (I2C) Interface.
According to the vibration control method provided by the embodiment of the invention, the temperature of the terminal system during operation is detected in real time, the relation table of the temperature range and the frequency offset is inquired, the corresponding linear motor resonant frequency offset of the current temperature is obtained, the driving chip outputs the driving waveform with the finally corrected actual frequency, and the resonant device is driven, so that the frequency of the actual driving voltage waveform of the resonant device is approximately consistent with the actual natural frequency of the resonant device, the problem that the resonant frequency of the resonant device has deviation due to large change of the temperature is solved, the vibration sense of the resonant device is better, and the user experience is further improved.
In order to implement the vibration control method, an embodiment of the present invention further provides a terminal device, where a composition structure of the terminal device is as shown in fig. 7, and the terminal device 700 includes:
an acquisition unit 701 configured to acquire a temperature of the terminal device;
a determining unit 702 configured to determine a target frequency offset corresponding to the temperature;
a control unit 703 configured to control vibration of a resonance device in the terminal apparatus according to the target frequency offset amount.
In the implementation of the present invention, the terminal device further includes:
a trigger unit configured to generate a temperature detection instruction based on a trigger of a received driving instruction instructing the resonance device to vibrate;
the acquisition unit 701 is further configured to start acquiring the temperature of the terminal device based on the temperature detection instruction.
In an implementation of the present invention, the determining unit 702 is further configured to:
acquiring a temperature range included in a corresponding relation between a set temperature range and a frequency offset;
determining a target temperature range to which the temperature belongs in the acquired temperature range;
and determining the target frequency offset corresponding to the target temperature range according to the corresponding relation.
In an implementation of the present invention, the determining unit 702 is further configured to:
and inputting the temperature into an offset network model to obtain the target frequency offset output by the offset network model.
In the implementation of the present invention, the control unit 703 is further configured to:
acquiring a reference frequency of a driving signal for driving the resonance device to vibrate;
correcting the reference frequency according to the target frequency offset to obtain a target frequency;
driving the resonant device to vibrate at the target frequency.
In the implementation of the present invention, the terminal device further includes:
a detection unit configured to detect a frequency at which a resonance device in the terminal apparatus vibrates after controlling the vibration of the resonance device according to the target frequency shift amount;
and the correcting unit is configured to correct the target frequency offset according to the detected frequency to obtain a corrected target frequency offset.
In an implementation of the present invention, the correction unit is further configured to:
comparing the detected frequency with a reference frequency of a drive signal driving the resonating means to vibrate;
and when the frequency difference value between the detected frequency and the reference frequency is greater than a specified frequency difference threshold value, correcting the target frequency offset through the frequency difference value to obtain the corrected target frequency offset.
In the implementation of the present invention, the terminal device further includes:
a first updating unit configured to: and updating the target frequency offset in the corresponding relation between the temperature range and the frequency offset based on the corrected target frequency offset.
In the implementation of the present invention, the terminal device further includes:
a second updating unit configured to: and updating the parameters of the offset network model based on the corrected target frequency offset.
The embodiment of the present invention further provides a terminal device, which includes a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the vibration control method executed by the terminal device when running the computer program.
Fig. 8 is a schematic diagram of a hardware composition structure of an electronic device (terminal device) according to an embodiment of the present invention, where the electronic device 800 includes: at least one processor 801, a memory 802, a resonating means 803 and at least one network interface 804. The various components in the electronic device 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in fig. 8.
It will be appreciated that the memory 802 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The non-volatile Memory may be ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic random access Memory (FRAM), Flash Memory (Flash Memory), magnetic surface Memory, optical Disc, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 802 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 802 in embodiments of the present invention is used to store various types of data to support the operation of the electronic device 800. Examples of such data include: any computer program for operating on electronic device 800, such as application program 8021. A program implementing the method of an embodiment of the present invention may be included in application program 8021.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 801. The Processor 801 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 801 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium that is located in the memory 802, and the processor 801 reads the information in the memory 802 to perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, MCUs, MPUs, or other electronic components for performing the foregoing methods.
The embodiment of the invention also provides a storage medium for storing the computer program.
Optionally, the storage medium may be applied to the terminal device in the embodiment of the present invention, and the computer program enables the computer to execute corresponding processes in each method in the embodiment of the present invention, which is not described herein again for brevity.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (20)

  1. A method of vibration control, the method comprising:
    acquiring the temperature of terminal equipment;
    determining a target frequency offset corresponding to the temperature;
    and controlling the vibration of a resonance device in the terminal equipment according to the target frequency offset.
  2. The method of claim 1, wherein the method further comprises:
    generating a temperature detection instruction based on a trigger of a received drive instruction instructing the resonance device to vibrate;
    and starting to acquire the temperature of the terminal equipment based on the temperature detection instruction.
  3. The method of claim 1, wherein the determining a target frequency offset for the temperature comprises:
    acquiring a temperature range included in a corresponding relation between a set temperature range and a frequency offset;
    determining a target temperature range to which the temperature belongs in the acquired temperature range;
    and determining the target frequency offset corresponding to the target temperature range according to the corresponding relation.
  4. The method of claim 1, wherein the determining a target frequency offset for the temperature comprises:
    and inputting the temperature into an offset network model to obtain the target frequency offset output by the offset network model.
  5. The method of any one of claims 1 to 4, wherein the controlling of the vibration of the resonating means in the terminal device according to the target frequency offset comprises:
    acquiring a reference frequency of a driving signal for driving the resonance device to vibrate;
    correcting the reference frequency according to the target frequency offset to obtain a target frequency;
    driving the resonant device to vibrate at the target frequency.
  6. The method according to any one of claims 1 to 4, wherein after controlling the vibration of a resonating means in the terminal device according to the target frequency offset amount, the method further comprises:
    detecting a frequency at which the resonant device vibrates;
    and correcting the target frequency offset according to the detected frequency to obtain the corrected target frequency offset.
  7. The method of claim 6, wherein the correcting the target frequency offset according to the detected frequency to obtain a corrected target frequency offset comprises:
    comparing the detected frequency with a reference frequency of a drive signal driving the resonating means to vibrate;
    and when the frequency difference value between the detected frequency and the reference frequency is greater than a specified frequency difference threshold value, correcting the target frequency offset through the frequency difference value to obtain the corrected target frequency offset.
  8. The method of claim 6, wherein the method further comprises:
    and updating the target frequency offset in the corresponding relation between the temperature range and the frequency offset based on the corrected target frequency offset.
  9. The method of claim 6, wherein the method further comprises:
    and updating the parameters of the offset network model based on the corrected target frequency offset.
  10. A terminal device, the terminal device comprising:
    the acquisition unit is configured to acquire the temperature of the terminal equipment;
    a determining unit configured to determine a target frequency offset corresponding to the temperature;
    a control unit configured to control vibration of a resonance device in the terminal apparatus according to the target frequency offset amount.
  11. The terminal device of claim 10, wherein the terminal device further comprises:
    a trigger unit configured to generate a temperature detection instruction based on a trigger of a received driving instruction instructing the resonance device to vibrate;
    the acquisition unit is further configured to start acquiring the temperature of the terminal device based on the temperature detection instruction.
  12. The terminal device of claim 10, wherein the determining unit is further configured to:
    acquiring a temperature range included in a corresponding relation between a set temperature range and a frequency offset;
    determining a target temperature range to which the temperature belongs in the acquired temperature range;
    and determining the target frequency offset corresponding to the target temperature range according to the corresponding relation.
  13. The terminal device of claim 10, wherein the determining unit is further configured to:
    and inputting the temperature into an offset network model to obtain the target frequency offset output by the offset network model.
  14. The terminal device of any of claims 10 to 13, wherein the control unit is further configured to:
    acquiring a reference frequency of a driving signal for driving the resonance device to vibrate;
    correcting the reference frequency according to the target frequency offset to obtain a target frequency;
    driving the resonant device to vibrate at the target frequency.
  15. The terminal device of any of claims 10 to 13, wherein the terminal device further comprises:
    a detection unit configured to detect a frequency at which a resonance device in the terminal apparatus vibrates after controlling the vibration of the resonance device according to the target frequency shift amount;
    and the correcting unit is configured to correct the target frequency offset according to the detected frequency to obtain a corrected target frequency offset.
  16. The terminal device of claim 15, wherein the correction unit is further configured to:
    comparing the detected frequency with a reference frequency of a drive signal driving the resonating means to vibrate;
    and when the frequency difference value between the detected frequency and the reference frequency is greater than a specified frequency difference threshold value, correcting the target frequency offset through the frequency difference value to obtain the corrected target frequency offset.
  17. The terminal device of claim 15, wherein the terminal device further comprises:
    a first updating unit configured to: and updating the target frequency offset in the corresponding relation between the temperature range and the frequency offset based on the corrected target frequency offset.
  18. The terminal device of claim 15, wherein the terminal device further comprises:
    a second updating unit configured to: and updating the parameters of the offset network model based on the corrected target frequency offset.
  19. A terminal device, comprising:
    a memory for storing executable instructions;
    a processor for implementing the steps of the vibration control method of any one of claims 1 to 9 when executing executable instructions stored in the memory.
  20. A storage medium storing executable instructions for causing a processor to implement the vibration control method of any one of claims 1 to 9 when executed.
CN201980100796.9A 2019-11-26 2019-11-26 Vibration control method, terminal device and storage medium Pending CN114503435A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/120925 WO2021102678A1 (en) 2019-11-26 2019-11-26 Vibration control method, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
CN114503435A true CN114503435A (en) 2022-05-13

Family

ID=76129018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980100796.9A Pending CN114503435A (en) 2019-11-26 2019-11-26 Vibration control method, terminal device and storage medium

Country Status (2)

Country Link
CN (1) CN114503435A (en)
WO (1) WO2021102678A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113625658B (en) * 2021-08-17 2022-12-06 杭州飞钛航空智能装备有限公司 Offset information processing method and device, electronic equipment and hole making mechanism

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1762004B1 (en) * 2004-06-24 2011-01-05 Nokia Siemens Networks Oy Frequency synthesizer
CN102141771B (en) * 2011-03-08 2013-10-02 无锡辐导微电子有限公司 Frequency correction method and device
CN103138749B (en) * 2011-11-24 2015-09-09 无锡辐导微电子有限公司 The frequency calibrating method improved and device
US9621170B2 (en) * 2013-08-13 2017-04-11 Silicon Laboratories Inc. Accurate frequency control using a MEMS-based oscillator
US9548746B2 (en) * 2014-12-22 2017-01-17 Intel IP Corporation Coarse tuning selection for phase locked loops
JP6766427B2 (en) * 2016-04-25 2020-10-14 セイコーエプソン株式会社 Circuits, oscillators, electronics and mobiles
CN110380724B (en) * 2019-07-26 2023-01-24 北京智芯微电子科技有限公司 RTC clock frequency temperature compensation chip

Also Published As

Publication number Publication date
WO2021102678A1 (en) 2021-06-03

Similar Documents

Publication Publication Date Title
US10802472B2 (en) Method and apparatus for controlling motor vibration
EP3716443B1 (en) Method of improving wireless charging efficiency, electronic device, apparatus and storage medium
US8321169B2 (en) Method and system for compensating temperature readings from a temperature sensing crystal integrated circuit
EP3316473B1 (en) Method and device for controlling vibration of motor
KR101900405B1 (en) Method and device for charge management, program and recording medium
CN110173857B (en) Control method of air conditioner, air conditioner and computer readable storage medium
KR20170082980A (en) Method and device for controlling intelligent device
CN111159623B (en) Method, device, terminal and storage medium for calculating motor vibration signal
CN1750399B (en) Method and device for correcting clock source ageing
CN111096680B (en) Cooking equipment, electronic equipment, voice server, voice control method and device
US10734933B2 (en) Motor control apparatus
KR102372577B1 (en) Mobile terminal, vibration control method and device, and storage medium
CN114503435A (en) Vibration control method, terminal device and storage medium
CN108253590A (en) The resonance point judgment method and storage medium of transducer air conditioning and its compressor
CN106054075A (en) Method for determining vibration motor driving parameter and electronic device
US20180224810A1 (en) Control device, control method, and control program
CN107396439B (en) Frequency adjustment method and mobile terminal
CN110529982A (en) Control method, device, air-conditioning companion and the air-conditioning of air-conditioning
CN110268366B (en) Information processing device, information processing method, and program
CN111105058A (en) Running route dynamic time estimation method and device and electronic equipment
CN113708704B (en) Motor shock sensation control method and device, electronic equipment and storage medium
CN113552936A (en) Vibration control method and device and terminal equipment
CN209963976U (en) Frequency calibration system and device for drive voltage waveform of linear resonant device
US7474717B2 (en) Oscillator frequency control
CN113950797A (en) Voice coil actuator driver signal generator

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