Control method and control device of electronic equipment, equipment and medium

By monitoring and locking the vibration frequency of moving parts such as camera motors, the resonance noise problem caused by horn vibration is solved, and the sound quality and user experience of electronic devices are improved.

CN120282065APending Publication Date: 2025-07-08XIAN WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510376155.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In electronic devices, due to the increased number of speakers, the vibration of the speaker back causes the camera motor to resonate, generate noise, affecting the sound quality effect and user experience.

Method used

By acquiring the vibration frequency of the target position, the target moving parts within the first frequency range are locked to prevent their resonance, including setting up a vibration sensor to monitor and locking the moving parts such as the camera motor.

Benefits of technology

It effectively suppresses the resonance between the speaker and the camera motor, improves the sound quality of electronic devices, and enhances the user's subjective experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120282065A_ABST
    Figure CN120282065A_ABST
Patent Text Reader

Abstract

The invention relates to a control method and a control device of electronic equipment, equipment and a medium. The control method comprises the following steps: acquiring a vibration frequency at a target position; locking the target moving part based on the vibration frequency within a first frequency range; wherein the first frequency range comprises the inherent frequency of the target moving part. Therefore, when it is detected that the vibration frequency at the target position is within the first frequency range, vibration generated when the loudspeaker works can cause resonance of the target moving part, and the problem that noise is generated by resonance of the target moving part and the loudspeaker is solved by locking the target moving part and preventing the target moving part from vibrating to generate noise; the sound quality effect of the electronic equipment is improved, and the subjective experience feeling of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic devices, and in particular, to a control method, a control device, a device, and a medium for an electronic device. Background Art

[0002] With the rapid development of technology, users have higher and higher requirements for the sound quality effect of electronic devices. In order to enhance the bass and stereo effects, more speakers are set in the electronic devices. However, due to the limitation of the overall size of the machine, setting more speakers makes the space inside the electronic device more compact. When multiple speakers work, a large amount of self-acoustic vibration will be generated on the back of the speakers. When this acoustic vibration is transmitted along the housing to the camera area, the camera motor will vibrate. When the electronic device plays music or makes a hands-free call, the camera motor will emit a buzzing resonance sound, thus reducing the subjective experience of the user. Summary of the Invention

[0003] In order to solve the above technical problems, the present disclosure provides a control method, a control device, a device, and a medium for an electronic device.

[0004] In a first aspect, the present disclosure provides a control method for an electronic device, including:

[0005] Obtaining the vibration frequency at a target position;

[0006] Based on the vibration frequency within a first frequency range, locking a target movable component;

[0007] Wherein, the first frequency range includes the natural frequency of the target movable component.

[0008] Optionally, the locking the target movable component based on the vibration frequency within the first frequency range includes:

[0009] Based on the vibration frequency within the first frequency range and the duration being greater than or equal to a first preset duration, locking the target movable component.

[0010] Optionally, the control method further includes:

[0011] Based on the vibration frequency exceeding the first frequency range and the vibration frequency exceeding a second frequency range, generating a detection fault instruction and locking the target movable component;

[0012] Wherein, the second frequency range includes the detection range of a vibration detection device.

[0013] Optionally, the generating the detection fault instruction and locking the target movable component based on the vibration frequency exceeding the first frequency range and the vibration frequency exceeding the second frequency range includes:

[0014] Based on the vibration frequency exceeding the first frequency range and the duration for which the vibration frequency exceeds the second frequency range being greater than or equal to a second preset duration, generate a detection fault instruction and lock the target moving part.

[0015] Optionally, the control method further includes:

[0016] Based on the vibration frequency exceeding the first frequency range and the vibration frequency being within the second frequency range, determine that the vibration frequency detection value is equal to the vibration frequency; the initial value of the vibration frequency detection value is not equal to the vibration frequency.

[0017] Optionally, the control method further includes:

[0018] Based on the vibration frequency obtained in the current period being not equal to the vibration frequency detection value determined in the previous period, update the vibration frequency detection value to be equal to the vibration frequency obtained in the current period.

[0019] Optionally, the control method further includes:

[0020] Based on the vibration frequency being equal to the vibration frequency detection value and the duration being greater than or equal to a third preset duration, generate a detection fault instruction and lock the target moving part;

[0021] And,

[0022] Based on the vibration frequency being equal to the vibration frequency detection value and the duration being less than the third preset duration, update the vibration frequency detection value to be equal to the vibration frequency.

[0023] In a second aspect, the present disclosure further provides a control device for an electronic device, including:

[0024] An acquisition module, configured to acquire the vibration frequency at a target position;

[0025] A locking module, configured to lock a target moving part based on the vibration frequency being within a first frequency range;

[0026] Wherein, the first frequency range includes the natural frequency of the target moving part.

[0027] In a third aspect, the present disclosure further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor executes the steps of any one of the above control methods for the electronic device.

[0028] In a fourth aspect, the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above control methods for the electronic device are implemented.

[0029] The technical solution provided by the present disclosure has the following advantages compared with the prior art:

[0030] A control method, a control device, a device and a medium for an electronic device provided by the present disclosure. The control method includes: obtaining a vibration frequency at a target position; locking a target moving part based on the vibration frequency within a first frequency range, where the first frequency range includes the natural frequency of the target moving part. Thus, when it is detected that the vibration frequency at the target position is within the first frequency range, the vibration generated when the speaker works will cause resonance of the target moving part. By locking the target moving part, the vibration of the target moving part is prevented from generating noise, solving the problem of noise generated by the resonance between the target moving part and the speaker, which is beneficial to improving the sound quality effect of the electronic device and enhancing the subjective experience of the user. Description of the Drawings

[0031] The drawings herein are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0033] Figure 1 It is a schematic flow chart of a control method for an electronic device provided by an embodiment of the present disclosure;

[0034] Figure 2 It is a schematic flow chart of another control method for an electronic device provided by an embodiment of the present disclosure;

[0035] Figure 3 It is a schematic structural diagram of a tablet computer provided by an embodiment of the present disclosure;

[0036] Figure 4 It is a schematic structural diagram of a speaker assembly provided by an embodiment of the present disclosure;

[0037] Figure 5 It is a schematic structural diagram of another speaker assembly provided by an embodiment of the present disclosure;

[0038] Figure 6 It is a schematic structural diagram of a camera assembly provided by an embodiment of the present disclosure;

[0039] Figure 7 It is a schematic structural diagram of a control device for an electronic device provided by an embodiment of the present disclosure;

[0040] Figure 8 Schematic diagram of a structure of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners

[0041] In order to more clearly understand the above objects, features, and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0042] In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.

[0043] The control method, control device, device, and medium of the electronic device provided by the embodiment of the present disclosure will be described below with reference to the accompanying drawings by way of example.

[0044] In some embodiments, as Figure 1 shown, the control method of the electronic device includes the following steps:

[0045] S110. Obtain the vibration frequency at the target position.

[0046] S120. Lock the target moving part based on the vibration frequency within the first frequency range.

[0047] Among them, the electronic device has a music playing function and / or a call function, and a speaker assembly is provided inside it. The electronic device includes, but is not limited to, mobile phones, tablet computers, intelligent learning machines, smart watches, smart bracelets, and other wearable intelligent devices, and also includes all types of electronic devices known to those skilled in the art, which are not limited herein.

[0048] The target moving parts include all the parts located inside the electronic device and capable of moving, such as a camera motor. In some embodiments, the target moving parts include a focusing motor.

[0049] The target position includes the position where the target moving part is located. In some embodiments, the target position includes a region with the position where the target moving part is located as the center and a preset distance as the radius.

[0050] The first frequency range includes the natural frequency range of the target moving part. The natural frequency range refers to a specific frequency range determined only by the nature of the target moving part itself when the target moving part is excited by the outside world and generates motion. In the embodiments of the present disclosure, there may be multiple natural frequency ranges for the target moving part.

[0051] In this embodiment, the vibration frequency at the target position can be collected by a vibration sensor, and then it is determined whether the collected vibration frequency is within the first frequency range. When the vibration frequency is within the first frequency range, it indicates that the vibration frequency at the target position is close to the natural frequency of the target moving component, which is likely to cause resonance of the target moving component, generate a response instruction to lock the target moving component, prevent the target moving component from moving and generating noise, solve the problem of noise generated by resonance between the target moving component and the speaker, improve the sound quality effect of the electronic device, and enhance the subjective experience of the user.

[0052] Exemplarily, as Figure 3 shown, taking the tablet computer 100 as an example, in order to meet the high requirements of users for sound quality effects and enhance the bass and stereo effects, 8 speaker components 101 are provided on the opposite sides of the tablet computer. Due to the limitation of the overall size of the machine, the internal space of the tablet computer 100 is very compact; the tablet computer also includes a camera component 102. As Figures 4 - 5 shown, the speaker component 101 includes a magnetic circuit structure 1011 on its front and a diaphragm vibration structure 1012 on its back. When the whole machine speaker works, the diaphragm vibration structure 1012 pushes the air to generate vibration, and the vibration will be transmitted to the position area where the camera component 102 is located along with the whole machine housing. As Figure 6 shown, the camera component 102 includes a protective film 1021, a lens group 1022, a focusing motor 1023, an infrared filter 1024, an image sensor 1025 and a circuit connection substrate 1026, where the focusing motor 1023 is a movable component. When the vibration generated by the speaker work is transmitted to the area where the camera component 102 is located and the vibration frequency is within the natural frequency range of the focusing motor, it causes resonance of the focusing motor, and the vibration motor vibrates violently to generate noise. In the embodiment of the present disclosure, the tablet computer further includes a vibration sensor, and the distance between the position where the vibration sensor is located and the position where the camera component 102 is located is less than or equal to a preset distance. The vibration frequency in the area where the camera component 102 is located is monitored in real time by the vibration sensor. When the vibration frequency is within the natural frequency range of the focusing motor 1023, the focusing motor 1023 is locked to prevent the focusing motor 1023 from moving and generating noise, solve the problem of noise generated by resonance between the focusing motor 1023 and the speaker, improve the sound quality effect of the tablet computer, and enhance the subjective experience of the user.

[0053] The control method of the electronic device provided by the present disclosure includes: obtaining the vibration frequency at the target position; locking the target movable part based on the vibration frequency within the first frequency range, where the first frequency range includes the natural frequency of the target movable part. Thus, when it is detected that the vibration frequency at the target position is within the first frequency range, the vibration generated when the speaker works will cause resonance of the target movable part. By locking the target movable part, the vibration of the target movable part is prevented from generating noise, solving the problem of noise generated by the resonance between the target movable part and the speaker, which is beneficial to improving the sound quality effect of the electronic device and enhancing the subjective experience of the user.

[0054] In some embodiments, "S110. Lock the target movable part based on the vibration frequency within the first frequency range" includes the following steps:

[0055] Lock the target movable part based on the vibration frequency within the first frequency range and the duration is greater than or equal to the first preset duration.

[0056] In this embodiment, a duration condition is introduced. Only when the duration of the vibration frequency within the first frequency range is greater than or equal to the first preset duration, the vibration frequency is very likely to cause the target movable part to vibrate and generate noise. Only then is the target movable part locked; when the duration of the vibration frequency within the first frequency range is less than the first preset duration, the duration is too short, and the vibration frequency is only sporadically within the first frequency range, and the vibration frequency will not cause the target movable part to vibrate, so there is no need to lock the target movable part, avoiding the influence of sporadic events on the determination result and improving the accuracy of the determination result.

[0057] Exemplarily, the first preset duration is greater than or equal to 50 ms.

[0058] In some embodiments, the control method further includes the following steps:

[0059] Generate a detection fault instruction and lock the target movable part based on the vibration frequency exceeding the first frequency range and the vibration frequency exceeding the second frequency range;

[0060] Wherein, the second frequency range includes the detection range of the vibration detection device. The vibration detection device includes a vibration sensor, and the vibration frequency at the target position is collected by the vibration sensor, and the detection range of the vibration sensor is the second frequency range.

[0061] In this embodiment, when the collected vibration frequency exceeds the first frequency range, that is, the vibration frequency is not within the natural frequency range of the target moving part, the vibration frequency will not cause the target moving part to vibrate; then continue to determine whether the vibration frequency exceeds the detection range of the vibration detection device. When the vibration frequency exceeds the second frequency range, that is, the vibration frequency is not within the detection range of the detection device, it indicates that the detection device may be faulty, and the determination result of the previous step "the vibration frequency exceeds the first frequency range" is incorrect. Lock the target moving part to prevent the moving part from moving and generating noise; at the same time, a detection fault instruction is also generated. The detection fault instruction is used to control the electronic device to enter the open-loop control state and wait for the vibration detection device to eliminate the fault and then re-execute the step of "acquiring the vibration frequency at the target position", avoiding misjudgment caused by the fault of the vibration detection device and being beneficial to improving the accuracy of the determination result.

[0062] In some embodiments, "generating a detection fault instruction and locking the target moving part based on the vibration frequency exceeding the first frequency range and the vibration frequency exceeding the second frequency range" includes the following steps:

[0063] Based on the vibration frequency exceeding the first frequency range and the continuous duration of the vibration frequency exceeding the second frequency range being greater than or equal to the second preset duration, generate a detection fault instruction and lock the target moving part.

[0064] In this embodiment, the lead-out duration condition is introduced. Only when the continuous duration of the vibration frequency within the second frequency range is greater than or equal to the second preset duration and the continuous duration is long enough, it is determined that the vibration detection device is faulty, and the determination result of the previous step "the vibration frequency exceeds the first frequency range" is incorrect, and a detection fault instruction and locking the target moving part are generated. When the continuous duration of the vibration frequency within the second frequency range is less than the second preset duration and the continuous duration is too short, the vibration frequency only occasionally exceeds the second frequency range, and the vibration detection device has returned to the normal working state (fault-free), and the determination result of the previous step "the vibration frequency exceeds the first frequency range" is correct. Therefore, it is not necessary to lock the target moving part, avoiding the influence of occasional events on the determination result and improving the accuracy of the determination result.

[0065] Exemplarily, the second preset duration is greater than or equal to 50 ms, or the second preset duration is greater than or equal to 100 ms.

[0066] In some embodiments, the control method further includes the following steps:

[0067] Based on the vibration frequency exceeding the first frequency range and the vibration frequency being within the second frequency range, determine that the vibration frequency detection value is equal to the vibration frequency; the initial value of the vibration frequency detection value is not equal to the vibration frequency.

[0068] In this embodiment, when the vibration frequency exceeds the first frequency range and is within the second frequency range, it indicates that the vibration frequency will not cause the target moving part to vibrate, and at the same time, the vibration detection device is free of faults. The above determination result is correct and the value of the vibration frequency is also accurate. Save the value of the vibration frequency, that is, the vibration frequency detection value.

[0069] Exemplarily, the method for saving the vibration frequency detection value is as follows: Define the initial value of the vibration frequency detection value as 0; in the first cycle, when the vibration frequency exceeds the first frequency range and is within the second frequency range, save the value of the vibration frequency obtained in the first cycle as the vibration frequency detection value, replacing the initial value 0; in subsequent cycles, when the vibration frequency exceeds the first frequency range and is within the second frequency range, save the value of the vibration frequency obtained in the current cycle as the vibration frequency detection value, replacing the vibration frequency detection value saved in the previous cycle.

[0070] In some embodiments, the control method further includes the following steps:

[0071] Based on the vibration frequency obtained in the current cycle being not equal to the vibration frequency detection value determined in the previous cycle, update the vibration frequency detection value to be equal to the vibration frequency obtained in the current cycle.

[0072] In this embodiment, compare the value of the vibration frequency obtained in the current cycle with the vibration frequency detection value saved in the previous cycle. If the value of the vibration frequency obtained in the current cycle is not equal to the vibration frequency detection value saved in the previous cycle, then update the vibration frequency detection value, replacing the originally saved vibration frequency detection value with the value of the vibration frequency obtained in the current cycle, and enter the closed-loop control state. If the value of the vibration frequency obtained in the current cycle is equal to the vibration frequency detection value saved in the previous cycle, then do not update the vibration frequency detection value, reducing the data update steps and reducing the occupation of processor resources.

[0073] In some embodiments, the control method further includes the following steps:

[0074] Based on the vibration frequency being equal to the vibration frequency detection value and the duration being greater than or equal to the third preset duration, generate a detection fault instruction and lock the target moving part;

[0075] And,

[0076] Based on the vibration frequency being equal to the vibration frequency detection value and the duration being less than the third preset duration, update the vibration frequency detection value to be equal to the vibration frequency.

[0077] In this embodiment, when the value of the vibration frequency is equal to the saved vibration frequency detection value and the duration is greater than or equal to the third preset duration, where the third preset duration is greater than the duration corresponding to one sampling period, that is, the detection value of the vibration detection device does not change for a long time, it indicates that the vibration detection device is very likely to have a fault. The determination results of the foregoing steps, "the vibration frequency exceeds the first frequency range" and "the vibration frequency is within the second frequency range", are incorrect. The target moving part is locked to prevent the moving part from moving and generating noise. At the same time, a detection fault instruction is also generated. The detection fault instruction is used to control the electronic device to enter the open-loop control state and wait for the vibration detection device to eliminate the fault and then re-execute the step of "obtaining the vibration frequency at the target position", avoiding misjudgment caused by the fault of the vibration detection device and being beneficial to improving the accuracy of the determination result.

[0078] When the value of the vibration frequency is equal to the saved vibration frequency detection value and the duration is less than the third preset duration, the duration for which the vibration frequency is fixed at a certain value is short, and the value of the vibration frequency continues to change, indicating that the vibration detection device has no fault. The determination results of the foregoing steps, "the vibration frequency exceeds the first frequency range" and "the vibration frequency is within the second frequency range", are correct. The vibration frequency detection value is updated, and there is no need to lock the target moving part, avoiding the influence of accidental events on the determination result and improving the accuracy of the determination result.

[0079] Exemplarily, the third preset duration is greater than or equal to 200 ms.

[0080] In some embodiments, the control method further includes the following steps:

[0081] Based on the duration for which the vibration frequency is within the first frequency range being less than the first preset duration, and / or the duration for which the vibration frequency exceeds the second frequency range being less than the second preset duration, determine whether the vibration frequency is equal to the vibration frequency detection value.

[0082] In this embodiment, when the duration for which the vibration frequency is within the first frequency range is less than the first preset duration, the duration is too short, and the vibration frequency is only accidentally within the first frequency range, and the vibration frequency will not cause the target moving part to vibrate. Therefore, there is no need to lock the target moving part. When the duration for which the vibration frequency is within the second frequency range is less than the second preset duration, the duration is too short, and the vibration frequency only accidentally exceeds the second frequency range. The vibration detection device has no fault, and the determination result of the previous step, "the vibration frequency exceeds the first frequency range", is correct. Therefore, there is also no need to lock the target moving part.

[0083] If at least one of the above conditions is met, compare the value of the vibration frequency with the detected value of the vibration frequency. Compare the value of the vibration frequency in the current judgment period with the saved detected value of the vibration frequency. When the value of the vibration frequency is not equal to the saved detected value of the vibration frequency, update the detected value of the vibration frequency, and replace the originally saved detected value of the vibration frequency with the value of the vibration frequency in the current judgment period. When the value of the vibration frequency is equal to the saved detected value of the vibration frequency, the detected value of the vibration frequency is not updated, reducing the data update steps and the occupancy of the processor resources.

[0084] Exemplarily, as Figure 2 described, the control method includes the following steps:

[0085] S201. Detect the hardware channel of the sensor and convert the vibration frequency according to the detection accuracy.

[0086] In this embodiment, the target moving part includes a camera motor, and the vibration frequency of the area where the camera motor is located is detected by using a vibration sensor. Exemplarily, the vibration sensor can convert the collected data into a vibration frequency and transmit the vibration frequency to the controller of the electronic device; or the vibration sensor directly transmits the collected data to the controller, and the controller converts the collected data into a vibration frequency, which is not limited here.

[0087] S202. Determine whether the vibration frequency is within the vibration range of the camera motor.

[0088] In this step, compare the vibration frequency with the natural frequency range of the camera motor. When the vibration frequency is within the vibration range of the camera motor, that is, the determination result is "yes", execute S204; when the vibration frequency is not within the vibration range of the camera motor, that is, the determination result is "no", execute S203.

[0089] S203. Determine whether the vibration frequency exceeds the detection range of the sensor.

[0090] In this step, compare the vibration frequency with the detection range of the sensor. When the vibration frequency is within the detection range of the sensor, that is, the determination result is "no", execute S205; when the vibration frequency exceeds the detection range of the sensor, that is, the determination result is "yes", execute S204.

[0091] S204. Wait for 50 ms to determine whether it has recovered.

[0092] In this step, when the duration for which the vibration frequency remains within the vibration range of the camera motor is less than 50 ms, it indicates that the vibration frequency is only occasionally within the vibration range of the camera motor, and the vibration frequency will not cause the camera motor to vibrate, so there is no need to lock the camera motor; or when the duration for which the vibration frequency is outside the vibration range of the camera motor and beyond the detection range of the sensor is less than 50 ms, it indicates that the vibration frequency is only occasionally beyond the detection range of the sensor, and the sensor is fault-free. The determination result of step S202, "the vibration frequency is not within the vibration range of the camera motor", is correct, and there is no need to lock the camera motor. When the above situations are met, that is, when the determination result is "yes", execute S205.

[0093] When the duration for which the vibration frequency remains within the vibration range of the camera motor is greater than or equal to 50 ms, eliminating accidental events, the vibration frequency is very likely to cause the camera motor to vibrate and produce noise, and it is necessary to lock the camera motor; or when the duration for which the vibration frequency is beyond the detection range of the sensor is greater than or equal to 50 ms, it indicates that there is a fault with the sensor, and the determination result of step S202, "the vibration frequency is not within the vibration range of the camera motor", is incorrect. When the above situations are met, that is, when the determination result is "no", execute S208.

[0094] S205. Determine whether the value of the vibration frequency changes.

[0095] In this step, compare the vibration frequency in the current judgment period with the saved vibration frequency detection value. When the value of the vibration frequency is not equal to the saved vibration frequency detection value, that is, when the determination result is "yes", execute S207. When the value of the vibration frequency is equal to the saved vibration frequency detection value, that is, when the determination result is "no", execute S206.

[0096] S206. Wait for 200 ms and determine whether it resumes.

[0097] In this step, when the value of the vibration frequency is equal to the saved vibration frequency detection value and the duration is greater than or equal to 200 ms, that is, when the determination result is "no", the detection value of the sensor has not changed for a long time, indicating that there may be a fault with the sensor. The determination results of steps S202 - S203, "the vibration frequency is not within the vibration range of the camera motor" and "the vibration frequency is within the detection range of the sensor", are incorrect, and it is necessary to lock the camera motor and execute step S208.

[0098] When the value of the vibration frequency is equal to the saved vibration frequency detection value and the duration is less than 200 ms, that is, when the determination result is "yes", the duration for which the vibration frequency is fixed at a certain value is short, and the value of the vibration frequency continues to change, indicating that the sensor is fault-free. The determination results of steps S202 - S203, "the vibration frequency is not within the vibration range of the camera motor" and "the vibration frequency is within the detection range of the sensor", are correct, and execute S207.

[0099] S207. Update the sensor detection value and enter the closed-loop control state.

[0100] In this step, update the vibration frequency detection value, and replace the originally saved vibration frequency detection value with the vibration frequency value within the current judgment period.

[0101] S208. Send a sensing fault instruction, lock the camera motor, and enter the open-loop control state, waiting for the sensor to recover.

[0102] In this step, lock the camera motor to prevent the camera motor from vibrating and generating noise. At the same time, a detection fault instruction is also generated, and the detection fault instruction is used to control the electronic device to enter the open-loop control state and wait for the sensor to eliminate the fault and then re-execute step S201.

[0103] It should be noted that Figure 2 Only exemplarily shows that the first preset duration is equal to the second preset duration, but it does not constitute a limitation on the control method of the electronic device provided by the embodiments of the present disclosure. In other embodiments, the first preset duration and the second preset duration are set to be unequal, and the size relationship between the two is not limited. The first preset duration and the second preset duration can be flexibly set according to requirements and are not limited herein.

[0104] Based on the same inventive concept, the embodiments of the present disclosure also provide a control device for an electronic device. The device is used to execute the steps of any of the above control methods and has corresponding beneficial effects. The same parts can be understood with reference to the above, and will not be repeated hereinafter.

[0105] In some embodiments, as Figure 7 shown, it is a schematic structural diagram of a control device for an electronic device provided by the embodiments of the present disclosure. Referring to Figure 7 , the control device 700 of the electronic device includes: an acquisition module 701, configured to acquire the vibration frequency at the target position; a locking module 702, configured to lock the target movable part based on the vibration frequency within the first frequency range; wherein, the first frequency range includes the natural frequency of the target movable part.

[0106] In some embodiments, the locking module 702 is configured to lock the target movable part based on the vibration frequency within the first frequency range, including: locking the target movable part based on the vibration frequency within the first frequency range and the duration being greater than or equal to the first preset duration.

[0107] In some embodiments, the locking module 702 is further configured to generate a detection fault instruction and lock the target movable part based on the vibration frequency exceeding the first frequency range and the vibration frequency exceeding the second frequency range; wherein, the second frequency range includes the detection range of the vibration detection device.

[0108] In some embodiments, the locking module 702 is configured to generate a detection fault instruction and lock a target moving part based on the vibration frequency exceeding a first frequency range and the vibration frequency exceeding a second frequency range, including: generating a detection fault instruction and locking the target moving part based on the vibration frequency exceeding the first frequency range and the duration of the vibration frequency exceeding the second frequency range being greater than or equal to a second preset duration.

[0109] In some embodiments, the locking module 702 is further configured to determine that the vibration frequency detection value is equal to the vibration frequency based on the vibration frequency exceeding the first frequency range and the vibration frequency being within the second frequency range.

[0110] In some embodiments, the locking module 702 is further configured to update the vibration frequency detection value to be equal to the vibration frequency based on the vibration frequency not being equal to the vibration frequency detection value.

[0111] In some embodiments, the locking module 702 is further configured to generate a detection fault instruction and lock the target moving part based on the vibration frequency being equal to the vibration frequency detection value and the duration being greater than or equal to a third preset duration; and update the vibration frequency detection value to be equal to the vibration frequency based on the vibration frequency being equal to the vibration frequency detection value and the duration being less than the third preset duration.

[0112] In some embodiments, the locking module 702 is further configured to determine whether the vibration frequency is equal to the vibration frequency detection value based on the duration of the vibration frequency within the first frequency range being less than a first preset duration, and / or the duration of the vibration frequency exceeding the second frequency range being less than a second preset duration.

[0113] Based on the above embodiments, as Figure 8 shown, it is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Referring to Figure 8 , the electronic device includes a memory 802 and a processor 801. The memory 802 stores a computer program, and the processor 801 executes the steps of any one of the above control methods for the electronic device, so it has the beneficial effects of the above embodiments, which will not be elaborated here.

[0114] Specifically, as Figure 8As shown, it can be set that the electronic device includes at least one processor 801, at least one memory 802, and at least one communication interface 803. The communication interface 803 is used for information transmission between the electronic device and external devices. It can be understood that the bus system 804 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, all kinds of buses are labeled as the bus system 804 in FIG. X. It can be understood that the memory 802 in this embodiment can be a volatile memory 802 or a non-volatile memory 802, or can include both a volatile memory 802 and a non-volatile memory 802.

[0115] In some embodiments, the memory 802 stores the following elements: executable units or data structures, or subsets thereof, or extended sets thereof, the operating system and application programs. In the embodiments of the present disclosure, the processor 801 executes the steps of the control method provided in the embodiments of the present disclosure by calling the programs or instructions stored in the memory 802.

[0116] The method provided in the embodiments of the present disclosure can be applied to the processor 801 or implemented by the processor 801. The processor 801 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 801 or in the form of software instructions. The above-mentioned processor 801 can be a general-purpose processor 801, a digital signal processor 801 (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor 801 can be a microprocessor 801 or the processor 801 can also be any conventional processor 801, etc.

[0117] The steps of the control method provided in the embodiments of the present disclosure can be directly embodied as being executed and completed by the hardware decoding processor 801, or by a combination of the hardware and software units in the decoding processor 801. The software units can be located in a mature storage medium in the art such as a random access memory 802, a flash memory, a read-only memory 802, a programmable read-only memory 802, or an electrically erasable programmable memory 802, a register, etc. This storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802 and combines its hardware to complete the steps of the method.

[0118] The electronic device may further include one physical component or multiple physical components to execute instructions generated when the processor 801 executes the method provided in the embodiments of the present disclosure. Different physical components may be disposed inside or outside the electronic device, such as a cloud server. Each physical component cooperates with the processor 801 and the memory 802 to implement the functions of the electronic device in this embodiment.

[0119] The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program or instruction is stored, and the program or instruction enables a computer to execute the steps of any one of the control methods of the electronic device provided in the above embodiments applied to the electronic device.

[0120] In some embodiments, when executed by a computer processor, the computer-executable instructions may also be used to execute the steps of any one of the control methods of the electronic device provided in the embodiments of the present disclosure, so as to achieve corresponding beneficial effects.

[0121] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0122] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.

Claims

1. A control method for an electronic device, characterized in that, Including: Obtain the vibration frequency at the target position; Lock the target moving part based on the vibration frequency within the first frequency range; Wherein, the first frequency range includes the natural frequency of the target moving part.

2. The control method according to claim 1, wherein The locking of the target moving part based on the vibration frequency within the first frequency range includes: Lock the target moving part based on the vibration frequency within the first frequency range and the duration being greater than or equal to a first preset duration.

3. The control method according to claim 1, wherein Also including: Generate a detection fault instruction and lock the target moving part based on the vibration frequency exceeding the first frequency range and the vibration frequency exceeding the second frequency range; Wherein, the second frequency range includes the detection range of the vibration detection device.

4. The control method according to claim 3, wherein The generating of the detection fault instruction and locking of the target moving part based on the vibration frequency exceeding the first frequency range and the vibration frequency exceeding the second frequency range includes: Generate a detection fault instruction and lock the target moving part based on the vibration frequency exceeding the first frequency range and the duration of the vibration frequency exceeding the second frequency range being greater than or equal to a second preset duration.

5. The control method according to claim 3, wherein Also including: Based on the vibration frequency exceeding the first frequency range and the vibration frequency being within the second frequency range, determine that the vibration frequency detection value is equal to the vibration frequency; the initial value of the vibration frequency detection value is not equal to the vibration frequency.

6. The control method according to claim 5, wherein Also including: Update the vibration frequency detection value to be equal to the vibration frequency obtained in the current cycle based on the vibration frequency obtained in the current cycle being not equal to the vibration frequency detection value determined in the previous cycle.

7. The control method according to claim 6, characterized in that Also including: Generate a detection fault instruction and lock the target moving part based on the vibration frequency being equal to the vibration frequency detection value and the duration being greater than or equal to a third preset duration; And, Update the vibration frequency detection value to be equal to the vibration frequency based on the vibration frequency being equal to the vibration frequency detection value and the duration being less than the third preset duration.

8. A control device for an electronic device, characterized in that, Including: An acquisition module for acquiring the vibration frequency at the target position; A locking module for locking the target moving part based on the vibration frequency within the first frequency range; Wherein, the first frequency range includes the natural frequency of the target moving part.

9. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the control method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the control method according to any one of claims 1 to 7 are implemented.