Calibration method, calibration device, apparatus, storage medium and program product
Patent Information
- Application Number
- CN202510378192.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2026-09-29
AI Technical Summary
[0003]相关技术中,不能评估校准后的振动参数的准确度,存在振动模组基于不准确的振动参数执行振动事件的情况,导致振动模组的振动效果较差
[0059]本公开实施例中,在检测到对电子设备的振动模组的第一校准事件的情况下,获取触发第一校准事件时的第一运动参数;在基于第一运动参数确定电子设备的运动幅度大于第一阈值的情况下,基于第二校准事件对振动模组的振动参数进行校准。
Smart Images

Figure CN122845709A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of terminal technology, and in particular to a calibration method, calibration device, equipment, storage medium, and program product. Background Technology
[0002] Linear motors are widely used in various electronic devices due to their strong vibration and low energy consumption. When a linear motor is built into an electronic device, if a vibration event is detected (e.g., an incoming phone call or alarm clock notification), the linear motor can be controlled to vibrate based on vibration parameters, thus enabling the vibration function of the electronic device.
[0003] In related technologies, the accuracy of calibrated vibration parameters cannot be evaluated, and there are cases where the vibration module executes vibration events based on inaccurate vibration parameters, resulting in poor vibration performance of the vibration module. Summary of the Invention
[0004] To overcome the problems in related technologies, this disclosure provides a calibration method, calibration device, equipment, storage medium, and program product, which can calibrate the vibration parameters based on a second calibration event when it is determined that the vibration parameters calibrated based on a first calibration event are inaccurate, thereby improving the accuracy of the vibration parameters and ensuring the vibration effect of the vibration module.
[0005] According to a first aspect of the present disclosure, a calibration method is provided, comprising:
[0006] In the event that a first calibration event of the vibration module of the electronic device is detected, the first motion parameter at the time the first calibration event is triggered is obtained;
[0007] If the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameter, the vibration parameters of the vibration module are calibrated based on the second calibration event.
[0008] In some embodiments, calibrating the vibration parameters of the vibration module based on a second calibration event when the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameter includes:
[0009] When the motion amplitude is greater than the first threshold, the second motion parameters of the electronic device and the operating parameters of the vibration module are obtained;
[0010] When the second calibration event is triggered based on the second motion parameter and the operating parameter, the vibration parameter is calibrated based on the calibration value indicated by the second calibration event.
[0011] In some embodiments, the method further includes:
[0012] The second calibration event is triggered when the motion amplitude of the electronic device is determined to be less than the second threshold based on the second motion parameters, and the vibration duration of the vibration module is determined to be greater than the first duration threshold based on the operating parameters.
[0013] Wherein, the second threshold is less than the first threshold.
[0014] In some embodiments, the method further includes:
[0015] If the amplitude of motion of the electronic device is less than or equal to the first threshold, or after the vibration parameters are calibrated based on the second calibration event, the environmental parameters of the environment in which the electronic device is located are determined.
[0016] When the environmental parameters meet the preset conditions, a third calibration event for the vibration module is triggered;
[0017] The performance index of the vibration module under the preset conditions is lower than the reference performance index of the vibration module.
[0018] In some embodiments, the method further includes:
[0019] Determine a first deviation value between the calibration value indicated by the first calibration event and a preset calibration value, or a second deviation value between the calibration value indicated by the second calibration event and the preset calibration value;
[0020] A target temperature value is determined based on a preset calibration value corresponding to a first deviation value greater than a first deviation threshold and a first mapping relationship, or based on a preset calibration value corresponding to a second deviation value greater than the first deviation threshold and the first mapping relationship; wherein, the first mapping relationship is used to indicate the correspondence between the preset temperature value and the preset calibration value;
[0021] The third calibration event for the vibration module is triggered when the environmental parameters meet preset conditions, including:
[0022] The third calibration event is triggered when the third deviation between the ambient temperature value indicated by the environmental parameters and the target temperature value is less than the second deviation threshold.
[0023] In some embodiments, determining the environmental parameters of the environment in which the electronic device is located includes:
[0024] Obtain the first resistance value of the vibration module at a reference temperature threshold, and the second resistance value of the vibration module when the vibration duration is greater than a second duration threshold;
[0025] The ambient temperature value is determined based on the first resistance value and the second resistance value.
[0026] In some embodiments, the method further includes:
[0027] If the movement amplitude of the electronic device is greater than the first threshold and calibration fails based on the second calibration event, and a vibration event of the electronic device is detected, the vibration event is executed based on the vibration parameters calibrated after the first calibration event.
[0028] According to a second aspect of the present disclosure, a calibration apparatus is provided, comprising:
[0029] The acquisition module is configured to acquire first motion parameters when a first calibration event is triggered, in the event of detecting a first calibration event of a vibration module of an electronic device;
[0030] The calibration module is configured to calibrate the vibration parameters of the vibration module based on a second calibration event when the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameters.
[0031] In some embodiments, the acquisition module is specifically configured as follows:
[0032] When the motion amplitude is greater than the first threshold, the second motion parameters of the electronic device and the operating parameters of the vibration module are obtained;
[0033] When the second calibration event is triggered based on the second motion parameter and the operating parameter, the vibration parameter is calibrated based on the calibration value indicated by the second calibration event.
[0034] In some embodiments, the apparatus further includes:
[0035] The first triggering module is configured to trigger the second calibration event when the motion amplitude of the electronic device is determined to be less than a second threshold based on the second motion parameters, and the vibration duration of the vibration module is determined to be greater than a first duration threshold based on the operating parameters.
[0036] Wherein, the second threshold is less than the first threshold.
[0037] In some embodiments, the apparatus further includes:
[0038] The parameter determination module is configured to determine the environmental parameters of the environment in which the electronic device is located when the motion amplitude of the electronic device is less than or equal to the first threshold, or after calibrating the vibration parameters based on the second calibration event.
[0039] The second triggering module is configured to trigger a third calibration event for the vibration module when the environmental parameters meet preset conditions.
[0040] The performance index of the vibration module under the preset conditions is lower than the reference performance index of the vibration module.
[0041] In some embodiments, the apparatus further includes:
[0042] The deviation determination module is configured to determine a first deviation value between the calibration value indicated by the first calibration event and a preset calibration value, or a second deviation value between the calibration value indicated by the second calibration event and the preset calibration value;
[0043] The temperature determination module is configured to determine a target temperature value based on a preset calibration value corresponding to a first deviation value greater than a first deviation threshold and a first mapping relationship, or based on a preset calibration value corresponding to a second deviation value greater than the first deviation threshold and the first mapping relationship; wherein, the first mapping relationship is used to indicate the correspondence between the preset temperature value and the preset calibration value;
[0044] The second trigger module is specifically configured as follows:
[0045] The third calibration event is triggered when the third deviation between the ambient temperature value indicated by the environmental parameters and the target temperature value is less than the second deviation threshold.
[0046] In some embodiments, the parameter determination module is specifically configured as follows:
[0047] Obtain the first resistance value of the vibration module at a reference temperature threshold, and the second resistance value of the vibration module when the vibration duration is greater than a second duration threshold;
[0048] The ambient temperature value is determined based on the first resistance value and the second resistance value.
[0049] In some embodiments, the apparatus further includes:
[0050] The execution module is configured to, if the motion amplitude of the electronic device is greater than the first threshold and calibration fails based on the second calibration event, execute the vibration event based on the vibration parameters calibrated after the first calibration event if a vibration event of the electronic device is detected.
[0051] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0052] processor;
[0053] Memory used to store computer programs or instructions;
[0054] The processor executes computer programs or instructions to implement the steps in any of the calibration methods in the first aspect described above.
[0055] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, comprising:
[0056] When a computer program or instruction in the storage medium is executed by a processor, the steps in any of the calibration methods in the first aspect described above are implemented.
[0057] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of any of the calibration methods in the first aspect described above.
[0058] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0059] In this embodiment of the present disclosure, when a first calibration event of the vibration module of the electronic device is detected, a first motion parameter is obtained when the first calibration event is triggered; when it is determined based on the first motion parameter that the motion amplitude of the electronic device is greater than a first threshold, the vibration parameter of the vibration module is calibrated based on a second calibration event.
[0060] In this embodiment of the disclosure, when the movement amplitude of the electronic device is greater than a first threshold, it is determined that the vibration parameters calibrated based on the first calibration event are inaccurate. Therefore, the vibration parameters are calibrated based on the second calibration event to improve the accuracy of the vibration parameters, thereby ensuring the vibration effect of the vibration module.
[0061] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0062] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0063] Figure 1 This is a flowchart illustrating a calibration method according to an exemplary embodiment.
[0064] Figure 2 This is a vibration schematic diagram of a vibration module according to an exemplary embodiment. Figure 1 .
[0065] Figure 3a This is a schematic diagram of the vibration amount of a vibration module according to an exemplary embodiment. Figure 1 .
[0066] Figure 3b This is a vibration schematic diagram of a vibration module according to an exemplary embodiment. Figure 2 .
[0067] Figure 3c This is a vibration schematic diagram of a vibration module according to an exemplary embodiment.
[0068] Figure 3d This is a schematic diagram illustrating a mapping relationship according to an exemplary embodiment.
[0069] Figure 4a This is a schematic diagram of the vibration amount of a vibration module according to an exemplary embodiment. Figure 2 .
[0070] Figure 4b This is a vibration schematic diagram of a vibration module according to an exemplary embodiment.
[0071] Figure 4c This is a vibration schematic diagram of a vibration module according to an exemplary embodiment. Figure 5 .
[0072] Figure 5 This is a block diagram illustrating a calibration device according to an exemplary embodiment.
[0073] Figure 6 This is a structural block diagram of an electronic device 600 according to an exemplary embodiment. Detailed Implementation
[0074] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0075] Figure 1 This is a schematic flowchart illustrating a calibration method according to an exemplary embodiment, such as... Figure 1 As shown, the calibration method mainly includes the following steps:
[0076] In step 101, if a first calibration event of the vibration module of the electronic device is detected, the first motion parameter at the time the first calibration event is triggered is obtained;
[0077] In step 102, if the motion amplitude of the electronic device is determined to be greater than the first threshold based on the first motion parameter, the vibration parameters of the vibration module are calibrated based on the second calibration event.
[0078] It should be noted that the calibration method proposed in this disclosure can be applied to electronic devices. Here, electronic devices can include terminal devices, such as mobile terminals or fixed terminals. Mobile terminals can include devices such as mobile phones, tablets, laptops, and wearable electronic devices. Fixed terminals can include desktop computers, smart TVs, and in-vehicle devices. In some other embodiments, the calibration method can also be applied to applications installed on electronic devices.
[0079] In other embodiments, the calibration method in this disclosure can be configured in a calibration device, which can be located in an electronic device; this disclosure does not limit this. It should be noted that the execution entity in this disclosure can be a central processing unit (CPU) in the electronic device in hardware, and related background services in the electronic device in software; this is not limited.
[0080] When a vibration event is detected, the electronic device controls the vibration module to vibrate in response. Taking a mobile phone equipped with a vibration module as an example, when the vibration event is an incoming call, the phone controls the vibration module to vibrate to provide a call reminder service; when the vibration event is when the phone's system time reaches a preset alarm time, the phone controls the vibration module to vibrate to provide an alarm reminder service; when the vibration event is when the phone switches from a powered-off state to a powered-on state, the phone controls the vibration module to vibrate to provide a power-on reminder; and when the vibration event is when the phone receives a text message or application message, the phone also controls the vibration module to vibrate to provide an information reminder service.
[0081] Here, the vibration module in the electronic device includes, but is not limited to, linear motors, rotor motors, or piezoelectric vibration motors, etc., and the embodiments disclosed herein do not limit this.
[0082] In some embodiments, the vibration module is a device that converts electrical potential energy into mechanical energy. When the vibration module is energized, the coils within it are switched on, causing the rotor to reciprocate in a specified direction, thus driving the vibration module to vibrate reciprocally. After the power to the vibration module is stopped, due to inertia and spatial damping, the vibration module continues to oscillate with damping until it comes to a complete stop.
[0083] In some embodiments, the driving chip of the vibration module can apply driving voltages of different frequencies to the driving module. Under any driving voltage frequency, the coil of the vibration module can be energized and generate a corresponding magnetic field. However, different driving voltage frequencies produce different magnetic fields, resulting in differences in the vibration parameters of the vibration module and thus different vibration effects.
[0084] Furthermore, the vibration module achieves optimal vibration performance when the driving voltage of its driver chip matches the resonant frequency of the vibration module. Therefore, to ensure the vibration performance of the vibration module, the driver chip needs to determine the resonant frequency of the vibration module, i.e., determine the resonant frequency obtained through calibration of the vibration module.
[0085] In some embodiments, the calibration process for the vibration module is set during the power-on phase of the electronic device. Upon receiving a power-on command from the electronic device, a first calibration event for the vibration module is triggered, and the vibration parameters of the vibration module are calibrated based on the first calibration event.
[0086] Here, the power-on command can be triggered by the user. For example, the power-on command can be generated when the user clicks the power button of the electronic device; or the power-on command can be generated when the system time of the electronic device reaches the preset automatic restart time.
[0087] In other embodiments, the vibration process of the vibration module is set in other business phases of the electronic device. For example, in the user-defined calibration phase, the user can adjust the resonant frequency of the vibration module through a specific settings interface to meet personal usage preferences; for example, in the software update phase, when the electronic device receives a software update instruction, the electronic device will perform a calibration process of the vibration module during the software update process to ensure that the vibration effect of the vibration module matches the updated software version.
[0088] In some embodiments, the electronic device is configured with multiple reference frequencies so that the driver chip can drive the vibration module according to the selected parameter frequency. Here, the reference frequencies can be obtained based on manufacturer testing; the manufacturer will pre-test the resonant frequency corresponding to the electronic device with the vibration module installed before the electronic device leaves the factory.
[0089] In some embodiments, the calibration process for the vibration module is as follows: upon receiving a power-on command from the electronic device, a specified frequency is selected from various reference frequencies; the driver chip controls the vibration module to vibrate based on the specified frequency; and after the vibration module vibrates for N cycles, the driving of the vibration module is stopped; the driver chip detects the back electromotive force (BEMF) generated by the vibration module; and determines the resonant frequency based on the back electromotive force. Then, when the determined resonant frequency is valid, the resonant frequency is stored in a specified location so that when a vibration event is subsequently triggered, the driver chip can directly drive the vibration module based on the resonant frequency.
[0090] Taking the vibration module as an example, Figure 2 This is a vibration schematic diagram of a vibration module according to an exemplary embodiment. Figure 1 ,like Figure 2 As shown, after determining the specified frequency, the motor is driven based on the specified frequency, so that the motor is in the forced oscillation stage until the motor oscillates for a preset period, and then the driving of the motor is stopped; due to motion inertia and spatial damping, the motor will be in the damped oscillation stage; in the damped oscillation stage, the back electromotive force generated by the motor is detected to determine the resonant frequency of the motor.
[0091] Here, if the first ratio between the vibration amplitude of the vibration module in the forced oscillation phase and that in the damped oscillation phase is detected to be greater than a preset ratio threshold, it is determined that the residual vibration of the vibration module is large. To ensure the accuracy of the resonant frequency, in this case, auxiliary calibration (Senseless F0 Detection and Calibration, SFDC) can be performed, and the second ratio between the vibration amplitude of the vibration module in the forced oscillation phase and that in the damped oscillation phase can be re-detected; until the deviation between the first ratio and the second ratio obtained in consecutive counts is less than a preset deviation value; then the determined resonant frequency is determined as the valid resonant frequency. When a vibration event is subsequently detected, the vibration module is controlled to vibrate based on this resonant frequency.
[0092] In other embodiments, if a valid resonant frequency is not obtained during the calibration process, the vibration module is calibrated based on another reference frequency the next time the electronic device detects a vibration event or calibration event, until all reference frequencies have been calibrated or a valid resonant frequency is determined.
[0093] It should be noted that during the calibration of the vibration module, if the electronic device moves a large amplitude, the amplitude of the electronic device will affect the continuous vibration of the vibration module during the damped oscillation period. This will cause the shape of the back electromotive force generated by the vibration module to change, resulting in inaccurate resonant frequency determined based on the back electromotive force, which is not conducive to improving the vibration effect of the vibration module.
[0094] For example, if the vibration event indicates a long vibration scenario (e.g., a phone call or an alarm clock reminder), Figure 3a This is a schematic diagram of the vibration amount of a vibration module according to an exemplary embodiment. Figure 1 ,like Figure 3a As shown, the target resonant frequency is 172 Hz, while the actual resonant frequency is 167 Hz. The deviation between the target and actual resonant frequencies exceeds the preset deviation range. The actual resonant frequency is the resonant frequency determined after the shape of the back electromotive force is affected by the motion amplitude of the electronic device, while the target resonant frequency is the resonant frequency determined without the influence of the motion amplitude of the electronic device. Compared to the vibration amount controlled by the vibration module based on the target resonant frequency, the vibration amount loss when controlling the vibration module based on the actual resonant frequency is close to 35%. In other words, in long-term vibration scenarios, controlling the vibration module based on the actual resonant frequency will weaken the vibration amplitude of the vibration module, thus affecting user experience. Here, the preset deviation range can be from -2 Hz to 2 Hz.
[0095] Another example is if the vibration event indicates a short-vibration scenario (e.g., a text message notification scenario). Figure 3b This is a vibration schematic diagram of a vibration module according to an exemplary embodiment. Figure 2 , Figure 3c This is a vibration schematic diagram of a vibration module according to an exemplary embodiment, as shown in Figure 3. Figures 3b-3c As shown in Table 1, the percentage of residual vibration during damped oscillation increased from 5.26% to 29.34%, a 24% increase. This means that in short-vibration scenarios, controlling the vibration module based on the actual resonant frequency will increase the amount of vibration during damped oscillation, thus affecting user experience.
[0096] Table 1 Comparison of parameters of the vibration module at the target resonant frequency and the actual resonant frequency.
[0097] Here, the reasons for the change in the shape of the back electromotive force include, but are not limited to, when the movement amplitude of the electronic device is large, the vibration module enters a nonlinear vibration state, or when the movement amplitude of the electronic device is large, the damping effect of the vibration module is obvious, resulting in a more complex vibration state of the vibration module during damped oscillation.
[0098] Therefore, in this embodiment of the present disclosure, when a first calibration event for the vibration module is detected, the first motion parameter at the time the first calibration event is triggered is obtained, so as to determine whether the motion amplitude of the electronic device will affect the accuracy of the vibration parameters of the vibration module.
[0099] Here, the vibration parameter of the vibration module is the resonant frequency of the vibration module mentioned above.
[0100] Meanwhile, the first calibration event is a calibration event triggered during the power-on phase of the aforementioned electronic device or a calibration event triggered during other service phases of the electronic device. The first motion parameter includes, but is not limited to, the acceleration, angular velocity, or angular displacement of the electronic device.
[0101] Understandably, in order to improve the accuracy of determining whether the vibration parameters of the vibration module are affected, a first threshold can be preset, and if the motion amplitude of the electronic device is determined to be greater than the first threshold based on the first motion parameter, it can be determined that the motion amplitude of the electronic device will affect the accuracy of the vibration parameters of the vibration module.
[0102] Here, the first threshold can be set arbitrarily according to the type of electronic device and / or the motion detection accuracy, and this disclosure does not limit it.
[0103] Understandably, when it is determined that the amplitude of movement of electronic devices will affect the accuracy of the vibration parameters of the vibration module, the vibration parameters can be calibrated by the second calibration event, thereby improving the accuracy of the vibration parameters and ensuring the vibration effect of the vibration module.
[0104] In some embodiments, if it is determined that the amplitude of movement of the electronic device will affect the accuracy of the vibration parameters, a prompt message is output to remind the user whether to calibrate the vibration parameters; and if the user confirms that the vibration parameters should be calibrated, the vibration parameters are calibrated based on a second calibration event, thereby improving the user experience while ensuring the vibration effect of the vibration parameters.
[0105] In other embodiments, if it is determined that the motion amplitude of the electronic device will affect the accuracy of the vibration parameters, the motion parameters of the electronic device are reacquired; and if the motion parameters of the electronic device indicate that the motion amplitude of the electronic device will not affect the accuracy of the vibration parameters, a second calibration event is triggered; and the vibration parameters are calibrated based on the second calibration event, thereby improving the calibration accuracy of the vibration parameters.
[0106] In this embodiment of the present disclosure, when a first calibration event of the vibration module of the electronic device is detected, a first motion parameter is obtained when the first calibration event is triggered; when it is determined based on the first motion parameter that the motion amplitude of the electronic device is greater than a first threshold, the vibration parameter of the vibration module is calibrated based on a second calibration event.
[0107] In this embodiment of the disclosure, when the movement amplitude of the electronic device is greater than a first threshold, it is determined that the vibration parameters calibrated based on the first calibration event are inaccurate. Therefore, the vibration parameters are calibrated based on the second calibration event to improve the accuracy of the vibration parameters, thereby ensuring the vibration effect of the vibration module.
[0108] In some embodiments, when the motion amplitude of the electronic device is determined to be greater than a first threshold based on a first motion parameter, the vibration parameters of the vibration module are calibrated based on a second calibration event, including:
[0109] When the amplitude of motion exceeds the first threshold, the second motion parameters of the electronic device and the operating parameters of the vibration module are acquired.
[0110] When a second calibration event is triggered based on the second motion parameters and operating parameters, the vibration parameters are calibrated based on the calibration value indicated by the second calibration event.
[0111] It should be noted that, considering the possibility that inaccurate vibration parameters obtained from the second calibration event could lead to poor vibration performance of the vibration module, a triggering mechanism with minimal impact on the accuracy of the vibration parameters can be determined first. This ensures higher calibration accuracy for the second calibration event, thereby improving the vibration performance of the vibration module.
[0112] Since the motion amplitude of an electronic device is related to the accuracy of vibration parameters, a second motion parameter of the electronic device can be obtained when the motion amplitude is greater than a first threshold; and a second calibration event is triggered when the motion amplitude of the electronic device is determined to be small based on the second motion parameter; and the vibration parameters are then calibrated based on the second calibration event.
[0113] Here, the second motion parameter of the electronic device includes, but is not limited to, the acceleration, angular velocity, or angular displacement of the electronic device.
[0114] It should be explained that, considering that the vibration module is in a vibrating state when the vibration parameters are calibrated based on the second calibration event, this would affect the user's actual use and thus reduce the user experience. Therefore, in this embodiment, in addition to obtaining the second motion parameters of the electronic device, the operating parameters of the vibration module can also be obtained to determine whether the vibration module is in a vibrating state. When the vibration module is in a vibrating state, it is determined that a vibration event of the electronic device has been triggered. At this time, calibrating the vibration parameters based on the second calibration event will not affect the user's actual use, thereby improving the user experience.
[0115] Here, the operating parameters of the vibration module include, but are not limited to, the vibration amplitude, vibration duration, vibration frequency, or vibration acceleration of the vibration module.
[0116] In this embodiment, if it is determined that the vibration parameters obtained based on the first calibration event are inaccurate, the second motion parameters of the electronic device and the operating parameters of the vibration module are acquired. Furthermore, if a second calibration event is triggered based on the second motion parameters and the operating parameters, the vibration parameters are calibrated based on the second calibration event. Thus, compared to directly performing a second calibration on the vibration parameters, performing a second calibration when the second calibration event is triggered based on the second motion parameters and the operating parameters can improve the calibration accuracy of the second calibration event while reducing the interference of the calibration event on user operation, thereby improving the user experience.
[0117] In some embodiments, the method further includes:
[0118] A second calibration event is triggered when the motion amplitude of the electronic device is determined to be less than a second threshold based on the second motion parameters, and the vibration duration of the vibration module is determined to be greater than a first duration threshold based on the operating parameters.
[0119] The second threshold is less than the first threshold.
[0120] Understandably, in order to improve the accuracy of determining the trigger of the second calibration event, a second threshold can be set, and the motion amplitude indicated by the second motion parameter can be compared with the second threshold; when the motion amplitude is less than the second threshold, it is determined that the current state of the electronic device has little impact on the calibration process of the vibration parameter.
[0121] Here, the second threshold can be set arbitrarily according to requirements, as long as it is less than the first threshold. This embodiment of the disclosure does not limit this.
[0122] Meanwhile, considering that the second calibration event may not finish calibrating the vibration parameters after the vibration event response of the electronic device, which may cause the second calibration event to interfere with the user's actual use, a first duration threshold can be set. If the vibration duration of the vibration module is determined to be greater than the first duration threshold, the current vibration event indicates a long vibration scenario, and then the second calibration event is triggered to reduce the interference of the calibration event on the user's use.
[0123] Here, long-ringing scenarios include, but are not limited to, incoming mobile phone calls, alarm clock reminders, or power-on reminders. The first duration threshold can also be set arbitrarily according to requirements, for example, 200 milliseconds (ms), and this embodiment of the disclosure does not limit it in this way.
[0124] In some embodiments, if the motion amplitude of the electronic device is determined to be greater than or equal to a second threshold based on the second motion parameters, and / or the vibration duration of the vibration module is determined to be less than or equal to a first duration threshold based on the operating parameters, and it is determined that the second calibration event has not been triggered, then the second motion parameters of the electronic device and the operating parameters of the vibration module are reacquired until the motion amplitude of the electronic device is determined to be less than the second threshold based on the second motion parameters, and the vibration duration of the vibration module is determined to be greater than the first duration threshold based on the operating parameters.
[0125] In this embodiment of the disclosure, a second threshold and a first duration threshold are preset, and a second calibration event is determined based on the motion amplitude of the electronic device and the second threshold, as well as the vibration duration of the vibration module and the first duration threshold. This can improve the accuracy of determining whether to trigger the second calibration event, thereby improving the accuracy of vibration parameters and enhancing the user experience.
[0126] In some embodiments, the method further includes:
[0127] When the amplitude of motion of the electronic device is less than or equal to the first threshold, or after the vibration parameters are calibrated based on the second calibration event, the environmental parameters of the environment in which the electronic device is located are determined.
[0128] When the environmental parameters meet the preset conditions, the third calibration event for the vibration module is triggered;
[0129] Among them, the performance indicators of the vibration module under preset conditions are lower than the reference performance indicators of the vibration module.
[0130] It is understandable that when the amplitude of motion of the electronic device is less than or equal to the first threshold, it is determined that the amplitude of motion of the electronic device has little impact on the accuracy of the vibration parameters, and therefore the vibration parameters obtained based on the first calibration event are determined to be accurate vibration parameters.
[0131] Meanwhile, since the second calibration event is a recalibration event for the vibration parameters, the vibration parameters obtained based on the second calibration event are also accurate vibration parameters.
[0132] It should be noted that the performance indicators of a vibration module are related to its actual vibration effect. When the performance indicators of the vibration module decrease, it will affect the actual vibration effect. Therefore, even if relatively accurate vibration parameters are determined, there may still be situations where the actual vibration effect of the vibration module does not match the expected vibration effect due to a decrease in the performance indicators, thus affecting the user experience.
[0133] Here, the performance indicators of the vibration module are related to the damping material and electromagnetic system of the vibration module.
[0134] In some embodiments, the damping material of the vibration module may include a magnetic fluid (also known as a magnetic liquid) or foam. Magnetic fluid is a special type of colloid with magnetic properties that can dampen moving parts in the vibration module, helping to reduce vibration and noise. Foam is a material with excellent shock absorption, sound insulation, and heat insulation properties, effectively absorbing and dispersing vibration energy during the vibration process of the vibration module.
[0135] When the ambient temperature is high, the Brownian motion of magnetic particles in the magnetic fluid intensifies, leading to a decrease in the resistance of the magnetic particles to the rotational motion of the magnetic fluid, resulting in a decrease in viscosity. This decrease in viscosity affects the damping performance of the magnetic fluid. When the ambient humidity is high, both the magnetic particles and the carrier fluid are affected by oxidation and corrosion, which also leads to a decline in the performance of the magnetic fluid and affects its damping properties.
[0136] In addition, when the ambient temperature is high, the activity of polymer molecular chains in the foam increases, leading to a decrease in foam hardness and an increase in elasticity, thus affecting the damping performance of the foam. When the ambient humidity is high, the foam material has a certain degree of hygroscopicity. In high humidity environments, the foam will absorb moisture, causing changes in foam size and a decrease in performance, thereby affecting the damping performance of the foam.
[0137] Once the damping material of the vibration module is affected by environmental parameters (i.e., the aforementioned ambient humidity or ambient temperature), the performance index of the vibration module will be lower than the reference performance index, causing the actual vibration effect of the vibration module to deviate from the expected vibration effect.
[0138] In other embodiments, when a strong electromagnetic field is present in the environment, the strong electromagnetic field will interfere with the electromagnetic system inside the motor, causing fluctuations in current and voltage, which will intensify the vibration of the vibration module and cause the vibration performance of the vibration module to be unstable.
[0139] Therefore, the electromagnetic system of the vibration module is affected by environmental parameters (i.e., the aforementioned environmental magnetic field), which will cause the performance index of the vibration module to be lower than the reference performance index of the vibration module, resulting in the actual vibration effect of the vibration module deviating from the expected vibration effect.
[0140] In this embodiment of the disclosure, when the movement amplitude of the electronic device is less than or equal to the first threshold, or after the vibration parameters are calibrated based on the second calibration event, the environmental parameters of the environment in which the electronic device is located can be determined; and when the environmental parameters affect the performance indicators of the vibration module, a third calibration event for the vibration module is triggered, thereby improving the vibration effect of the vibration module.
[0141] Here, preset conditions can be set. When the environmental parameters meet the preset conditions, it is determined that the environmental parameters affect the performance indicators of the vibration module; when the environmental parameters do not meet the preset conditions, it is determined that the environmental parameters will not affect the performance indicators of the vibration module, thereby improving the accuracy and efficiency of determining the impact of environmental parameters on performance indicators.
[0142] Here, different types of environmental parameters correspond to different preset conditions. For example, when the environmental parameter is the ambient temperature value, the preset condition can be the preset temperature value; when the environmental parameter is the ambient humidity value, the preset condition can be the preset humidity value; when the environmental parameter is the ambient magnetic field strength value, the preset condition can be the preset strength value.
[0143] In this embodiment of the present disclosure, after determining calibration based on a first calibration event or a second calibration event, the environmental parameters of the environment in which the electronic device is located are determined; and if the environmental parameters meet the preset conditions, and it is determined that the actual vibration effect of the vibration module will deviate from the expected vibration effect, then a third calibration event for the vibration module is triggered, thereby adjusting the vibration parameters of the vibration module in a timely manner and improving the accuracy of the vibration module's vibration.
[0144] In some embodiments, the method further includes:
[0145] Determine a first deviation value between the calibration value indicated by the first calibration event and the preset calibration value, or a second deviation value between the calibration value indicated by the second calibration event and the preset calibration value;
[0146] The target temperature value is determined based on the preset calibration value corresponding to the first deviation value that is greater than the first deviation threshold and the first mapping relationship, or based on the preset calibration value corresponding to the second deviation value that is greater than the first deviation threshold and the first mapping relationship; wherein, the first mapping relationship is used to indicate the correspondence between the preset temperature value and the preset calibration value;
[0147] When environmental parameters meet preset conditions, a third calibration event for the vibration module is triggered, including:
[0148] A third calibration event is triggered when the third deviation between the ambient temperature value indicated by the environmental parameters and the target temperature value is less than the second deviation threshold.
[0149] It should be noted that when the environmental parameter is the ambient temperature value, the target temperature value affecting the performance index of the vibration module can be determined first based on the first mapping relationship and the calibration value indicated by the first calibration event, or based on the first mapping relationship and the calibration value indicated by the second calibration event. If the third deviation value between the ambient temperature value and the target temperature value is less than the second deviation threshold, it is determined that the actual vibration effect of the vibration module will deviate from the expected vibration effect, so as to trigger the third calibration event, thereby improving the accuracy and efficiency of determining the triggering of the third calibration event.
[0150] Here, the first mapping relationship is used to indicate the correspondence between the preset temperature value and the preset calibration value.
[0151] In this embodiment of the present disclosure, based on the first deviation value and the first deviation threshold between the calibration value indicated by the first calibration event and the preset calibration value, or based on the first deviation value and the first deviation threshold between the calibration value indicated by the second calibration event and the preset calibration value, it is possible to determine whether the preset calibration value is the calibration value that causes the actual vibration effect of the vibration module to deviate from the expected vibration effect; if so, based on the first mapping relationship and the preset calibration value, a preset temperature value that affects the performance index of the vibration module is determined, and the preset temperature value is determined as the target temperature value.
[0152] Here, the first deviation threshold can be set arbitrarily according to requirements, for example, 5 Hz, and this embodiment of the present disclosure does not limit it. The second deviation threshold can be set arbitrarily according to requirements, for example, 3 degrees Celsius (°C), and this embodiment of the present disclosure does not limit it either.
[0153] The first mapping relationship can be obtained based on actual experimental data or historical experience data, and this disclosure does not limit it.
[0154] Here, when the third deviation between the target temperature value and the ambient temperature value is less than the second deviation threshold, the ambient temperature value is determined to be the temperature value that affects the performance index of the vibration module, and the third calibration event is triggered; while when the third deviation between the target temperature value and the ambient temperature value is greater than or equal to the second deviation threshold, the ambient temperature value is determined to be the temperature value that does not affect the performance index of the vibration module, and the third calibration event is not triggered.
[0155] In some embodiments, if there are multiple target temperature values, the target temperature values can be sorted to determine the maximum and minimum temperature values; the maximum temperature value is used as the upper limit and the minimum temperature value as the lower limit to obtain the temperature range. Then, it is determined whether the ambient temperature value is within the temperature range; if the ambient temperature value is within the temperature range, a third calibration event is triggered.
[0156] Taking a calibration value indicated by the first calibration event (or the calibration value indicated by the second calibration event) of 70Hz as an example, Figure 3d This is a schematic diagram illustrating a mapping relationship according to an exemplary embodiment, such as... Figure 3d As shown, when the preset temperature value is within the temperature range of -20 to 20 degrees Celsius, or within the temperature range of 40 to 60 degrees Celsius, the deviation between the corresponding preset calibration value and 70 Hz is greater than the first deviation threshold. Therefore, when the ambient temperature is within the range of -20 to 20 degrees Celsius or within the range of 40 to 60 degrees Celsius, a third calibration event is triggered.
[0157] In this embodiment of the present disclosure, a target temperature value affecting the performance indicators of the vibration module is determined based on a first mapping relationship and a calibration value indicated by a first calibration event, or based on a first mapping relationship and a calibration value indicated by a second calibration event, thereby improving the accuracy of determining the target temperature value; and if a third deviation value between the ambient temperature value and the target temperature value is less than a second deviation threshold, it is determined that the actual vibration effect of the vibration module will deviate from the expected vibration effect, so as to trigger a third calibration event, thereby improving the accuracy and efficiency of determining the triggering of the third calibration event.
[0158] In some embodiments, determining environmental parameters of the environment in which the electronic device is located includes:
[0159] Obtain the first resistance value of the vibration module at a reference temperature threshold, and the second resistance value of the vibration module when the vibration duration is greater than a second duration threshold;
[0160] The ambient temperature value is determined based on the first resistance value and the second resistance value.
[0161] It should be noted that, considering the vibration module is located inside the electronic device, in some cases, the ambient temperature of the electronic device and the ambient temperature of the vibration module may differ. Therefore, in order to improve the accuracy of determining the ambient temperature of the vibration module, the ambient temperature can be determined by the relationship between the resistance of the metal conductor and the temperature.
[0162] In this embodiment of the disclosure, a first resistance value at a reference temperature threshold and a second resistance of the vibration module in response to a vibration event can be determined first; then, the ambient temperature value can be determined based on the first resistance value and the second resistance value.
[0163] It is understandable that, since the second resistance value of the vibration module will change with the vibration duration when the vibration module is in a vibration state, in order to reduce the calculation error of the ambient temperature value, a second preset duration can be set, and the second resistance value can be obtained when the vibration duration reaches the second preset duration.
[0164] Here, the reference temperature threshold is any temperature value that has little impact on the performance indicators of the vibration module, such as 25°C, and this embodiment of the present disclosure does not limit this. The second duration threshold can be set arbitrarily according to requirements, such as 150ms, and this embodiment of the present disclosure does not limit this either.
[0165] For example, the first resistance value of the vibration module can be detected in a 25°C environment on the production line, and when the vibration event indicates a long vibration scenario, the second resistance value can be detected when the first long vibration (i.e., the vibration duration of the vibration module reaches the second duration threshold) is detected.
[0166] In some embodiments, the formula for calculating the ambient temperature value can be as follows:
[0167] T=R1*(1+25a)-R0 / (R0*a) (1);
[0168] In formula (1), T is the ambient temperature, a is the temperature coefficient of resistivity, R0 is the first resistance value, and R1 is the second resistance value. Here, the temperature coefficient of resistivity is determined based on the metal material corresponding to the vibration module. For example, when the metal material is copper, the temperature coefficient of resistivity can be 0.0039.
[0169] In this embodiment, a first resistance value of the vibration module at a reference temperature threshold and a second resistance value when the vibration duration of the vibration module is greater than a second duration threshold are obtained; and an ambient temperature value is determined based on the first and second resistance values, thereby improving the accuracy of determining the ambient temperature value and thus improving the accuracy of determining the triggering of the third calibration event.
[0170] In some embodiments, the method further includes:
[0171] If the movement amplitude of the electronic device exceeds the first threshold and calibration fails based on the second calibration event, and a vibration event is detected in the electronic device, the vibration event is executed based on the vibration parameters calibrated after the first calibration event.
[0172] It should be noted that if the movement amplitude of the electronic device exceeds the first threshold and calibration fails based on the second calibration event, the vibration parameters calibrated based on the first calibration event are determined to be inaccurate. In this case, if a vibration event is detected but the electronic device does not respond to it, it will degrade the user experience.
[0173] Therefore, in this embodiment of the disclosure, if a vibration event is detected, the vibration event can be executed based on the vibration parameters calibrated after the first calibration event, and timely feedback can be provided to the user.
[0174] Here, the failure of the second calibration event can be understood as follows: the resonant frequency was not obtained when the second calibration event was executed; or it can be understood as the resonant frequency obtained by the second calibration event was inaccurate.
[0175] In some embodiments, when the motion amplitude of the electronic device is greater than a first threshold, the second operating parameters of the electronic device and the working parameters of the vibration module are obtained; when the motion amplitude of the electronic device is determined to be greater than or equal to the second threshold based on the second motion parameters, if the vibration parameters are calibrated, the resonant frequency obtained by the second calibration event is inaccurate, that is, the calibration based on the second calibration event fails.
[0176] In other embodiments, when the motion amplitude of the electronic device is determined to be less than a second threshold based on the second motion parameters, and the vibration duration of the vibration module is determined to be greater than a first duration threshold based on the operating parameters, if the resonant frequencies determined based on each reference frequency are invalid during the calibration of the vibration parameters, then the calibration based on the second calibration event is determined to have failed.
[0177] In this embodiment of the disclosure, when the movement amplitude of the electronic device is greater than the first threshold and calibration fails based on the second calibration event, if a vibration event of the electronic device is detected, the vibration event can be executed based on the vibration parameters calibrated after the first calibration event, thereby providing timely feedback to the user and improving the user experience.
[0178] In this embodiment, on the one hand, when the motion amplitude of the electronic device is greater than a first threshold based on the first motion parameter, the second motion parameter of the electronic device and the operating parameters of the vibration module are acquired; on the other hand, when a second calibration event is triggered based on the second motion parameter and the operating parameters, the vibration parameters are calibrated based on the calibration value indicated by the second calibration event. Thus, compared to directly performing a second calibration on the vibration parameters, performing a second calibration when the second calibration event is triggered based on the second motion parameter and the operating parameters can improve the calibration accuracy of the second calibration event while reducing the interference of the calibration event on user operation, thereby improving the user experience.
[0179] On the other hand, a third calibration event is triggered when the amplitude of movement of the electronic device is less than or equal to the first threshold, or when, after the vibration parameters have been calibrated based on the second calibration event, the third deviation between the ambient temperature value indicated by the environmental parameters and the target temperature value is less than the second deviation threshold. Thus, when it is determined that the actual vibration effect of the vibration module deviates from the expected vibration effect, a third calibration event for the vibration module is triggered, thereby adjusting the vibration parameters of the vibration module in a timely manner and improving the accuracy of the vibration.
[0180] Because the method proposed in this disclosure can promptly calibrate the resonant frequency when the resonant frequency is inaccurate or when the performance indicators of the vibration module are affected, causing the vibration module to deviate from the resonant frequency, the deviation between the actual resonant frequency and the target resonant frequency of the vibration module is within a preset deviation range.
[0181] For example, if the vibration event indicates a long-term vibration scenario, Figure 4a This is a schematic diagram of the vibration amount of a vibration module according to an exemplary embodiment. Figure 2 ,like Figure 4aAs shown, the target resonant frequency is 172 Hz, while the actual resonant frequency is 171 Hz. The deviation between the actual and target resonant frequencies of the vibration module is within the preset deviation range. Compared to controlling the vibration module based on the target resonant frequency, the vibration loss when controlling it based on the actual resonant frequency is reduced to 5%. In other words, in long-term vibration scenarios, controlling the vibration module based on the actual resonant frequency does not weaken the vibration amplitude, thus ensuring a better user experience.
[0182] Another example is if the vibration event indicates a short-range vibration scenario. Figure 4b This is a vibration schematic diagram of a vibration module according to an exemplary embodiment, shown in Figure 4. Figure 4c This is a vibration schematic diagram of a vibration module according to an exemplary embodiment. Figure 5 ,like Figures 4b-4c As shown in Table 2, the percentage of residual vibration during damped oscillation increased from 4.78% to 7.72%, a 3% increase. This means that in short-vibration scenarios, controlling the vibration module based on the actual resonant frequency does not increase the amount of vibration during damped oscillation, thus ensuring a better user experience.
[0183] Table 2 Comparison of parameters of the vibration module at the target resonant frequency and the actual resonant frequency.
[0184]
[0185]
[0186] Figure 5 This is a block diagram illustrating a calibration device according to an exemplary embodiment, such as... Figure 5 As shown, the calibration device 500 includes:
[0187] The acquisition module 501 is configured to acquire the first motion parameters triggered when a first calibration event is detected on the vibration module of the electronic device;
[0188] The calibration module 502 is configured to calibrate the vibration parameters of the vibration module based on a second calibration event when the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameters.
[0189] In some embodiments, the acquisition module 501 is specifically configured as follows:
[0190] When the motion amplitude is greater than the first threshold, the second motion parameters of the electronic device and the operating parameters of the vibration module are obtained;
[0191] When the second calibration event is triggered based on the second motion parameter and the operating parameter, the vibration parameter is calibrated based on the calibration value indicated by the second calibration event.
[0192] In some embodiments, the device 500 further includes:
[0193] The first triggering module is configured to trigger the second calibration event when the motion amplitude of the electronic device is determined to be less than a second threshold based on the second motion parameters, and the vibration duration of the vibration module is determined to be greater than a first duration threshold based on the operating parameters.
[0194] Wherein, the second threshold is less than the first threshold.
[0195] In some embodiments, the device 500 further includes:
[0196] The parameter determination module is configured to determine the environmental parameters of the environment in which the electronic device is located when the motion amplitude of the electronic device is less than or equal to the first threshold, or after calibrating the vibration parameters based on the second calibration event.
[0197] The second triggering module is configured to trigger a third calibration event for the vibration module when the environmental parameters meet preset conditions.
[0198] The performance index of the vibration module under the preset conditions is lower than the reference performance index of the vibration module.
[0199] In some embodiments, the device 500 further includes:
[0200] The deviation determination module is configured to determine a first deviation value between the calibration value indicated by the first calibration event and a preset calibration value, or a second deviation value between the calibration value indicated by the second calibration event and the preset calibration value;
[0201] The temperature determination module is configured to determine a target temperature value based on a preset calibration value corresponding to a first deviation value greater than a first deviation threshold and a first mapping relationship, or based on a preset calibration value corresponding to a second deviation value greater than the first deviation threshold and the first mapping relationship; wherein, the first mapping relationship is used to indicate the correspondence between the preset temperature value and the preset calibration value;
[0202] The second trigger module is specifically configured as follows:
[0203] The third calibration event is triggered when the third deviation between the ambient temperature value indicated by the environmental parameters and the target temperature value is less than the second deviation threshold.
[0204] In some embodiments, the parameter determination module is specifically configured as follows:
[0205] Obtain the first resistance value of the vibration module at a reference temperature threshold, and the second resistance value of the vibration module when the vibration duration is greater than a second duration threshold;
[0206] The ambient temperature value is determined based on the first resistance value and the second resistance value.
[0207] In some embodiments, the device 500 further includes:
[0208] The execution module is configured to, if the motion amplitude of the electronic device is greater than the first threshold and calibration fails based on the second calibration event, execute the vibration event based on the vibration parameters calibrated after the first calibration event if a vibration event of the electronic device is detected.
[0209] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0210] Figure 6 This is a structural block diagram illustrating an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0211] Reference Figure 6 The electronic device 600 may include one or more of the following components: processing component 602, memory 604, power supply component 606, multimedia component 608, audio component 610, input / output (I / O) interface 612, sensor component 614, and communication component 616.
[0212] Processing component 602 typically controls the overall operation of electronic device 600, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
[0213] Memory 604 is configured to store various types of data to support the operation of electronic device 600. Examples of such data include at least one of the following: instructions for any application or method operating on electronic device 600, contact data, phonebook data, messages, pictures, and videos. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0214] Power supply component 606 provides power to various components of electronic device 600. Power supply component 606 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 600.
[0215] Multimedia component 608 includes a screen that provides an output interface between electronic device 600 and user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen may be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When electronic device 600 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0216] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when electronic device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
[0217] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0218] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of electronic device 600. For example, sensor assembly 614 may detect the on / off state of electronic device 600, the relative positioning of components such as the display and keypad of electronic device 600, changes in position of electronic device 600 or one of its components, the presence or absence of user contact with electronic device 600, orientation or acceleration / deceleration of electronic device 600, and temperature changes of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.
[0219] Communication component 616 is configured to facilitate wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, UWB technology, Bluetooth (BT) technology, and other technologies.
[0220] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0221] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including executable instructions or a computer program, which can be executed by a processor 620 of an electronic device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0222] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the calibration methods described in the embodiments of this disclosure. For example, the calibration method includes:
[0223] In the event that a first calibration event of the vibration module of the electronic device is detected, the first motion parameter at the time the first calibration event is triggered is obtained;
[0224] If the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameter, the vibration parameters of the vibration module are calibrated based on the second calibration event.
[0225] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the calibration methods described in this disclosure.
[0226] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0227] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A calibration method, characterized in that, The method includes: In the event that a first calibration event of the vibration module of the electronic device is detected, the first motion parameter at the time the first calibration event is triggered is obtained; If the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameter, the vibration parameters of the vibration module are calibrated based on the second calibration event.
2. The method according to claim 1, characterized in that, When the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameter, the vibration parameters of the vibration module are calibrated based on a second calibration event, including: When the motion amplitude is greater than the first threshold, the second motion parameters of the electronic device and the operating parameters of the vibration module are obtained; When the second calibration event is triggered based on the second motion parameter and the operating parameter, the vibration parameter is calibrated based on the calibration value indicated by the second calibration event.
3. The method according to claim 2, characterized in that, The method further includes: The second calibration event is triggered when the motion amplitude of the electronic device is determined to be less than the second threshold based on the second motion parameters, and the vibration duration of the vibration module is determined to be greater than the first duration threshold based on the operating parameters. Wherein, the second threshold is less than the first threshold.
4. The method according to claim 1, characterized in that, The method further includes: If the amplitude of motion of the electronic device is less than or equal to the first threshold, or after the vibration parameters are calibrated based on the second calibration event, the environmental parameters of the environment in which the electronic device is located are determined. When the environmental parameters meet the preset conditions, a third calibration event for the vibration module is triggered; The performance index of the vibration module under the preset conditions is lower than the reference performance index of the vibration module.
5. The method according to claim 4, characterized in that, The method further includes: Determine a first deviation value between the calibration value indicated by the first calibration event and a preset calibration value, or a second deviation value between the calibration value indicated by the second calibration event and the preset calibration value; A target temperature value is determined based on a preset calibration value corresponding to a first deviation value greater than a first deviation threshold and a first mapping relationship, or based on a preset calibration value corresponding to a second deviation value greater than the first deviation threshold and the first mapping relationship; wherein, the first mapping relationship is used to indicate the correspondence between the preset temperature value and the preset calibration value; The third calibration event for the vibration module is triggered when the environmental parameters meet preset conditions, including: The third calibration event is triggered when the third deviation between the ambient temperature value indicated by the environmental parameters and the target temperature value is less than the second deviation threshold.
6. The method according to claim 5, characterized in that, Determining the environmental parameters of the environment in which the electronic device is located includes: Obtain the first resistance value of the vibration module at a reference temperature threshold, and the second resistance value of the vibration module when the vibration duration is greater than a second duration threshold; The ambient temperature value is determined based on the first resistance value and the second resistance value.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: If the movement amplitude of the electronic device is greater than the first threshold and calibration fails based on the second calibration event, and a vibration event of the electronic device is detected, the vibration event is executed based on the vibration parameters calibrated after the first calibration event.
8. A calibration device, characterized in that, The device includes: The acquisition module is configured to acquire first motion parameters when a first calibration event is triggered, in the event of detecting a first calibration event of a vibration module of an electronic device; The calibration module is configured to calibrate the vibration parameters of the vibration module based on a second calibration event when the motion amplitude of the electronic device is determined to be greater than a first threshold based on the first motion parameters.
9. An electronic device, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 7.