Control method and device of electronic equipment and electronic equipment

By monitoring the abnormal jam of the MEMS sensor in electronic devices, and using vibration module or prompt information to drive the sensor to overcome the jam, the problem of abnormal output of the MEMS sensor is solved and normal output is achieved.

CN120201359APending Publication Date: 2025-06-24VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510261522.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-05
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The comb teeth of the MEMS sensor are easily stuck due to the intense movement of the electronic device, resulting in abnormal output.

Method used

When an abnormal jam is detected by monitoring the vibration module or output prompt information, conduct mechanical waves or user reference prompt information, drive the MEMS sensor to overcome the jam force and restore normal output.

Benefits of technology

It effectively solves the output abnormality caused by the comb teeth of the MEMS sensor, and realizes the normal output of the MEMS sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120201359A_ABST
    Figure CN120201359A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device of electronic equipment and the electronic equipment, and belongs to the technical field of electronic equipment. The method comprises the following steps: under the condition that abnormal clamping stagnation of the MEMS sensor is monitored, executing at least one of the following steps: controlling a vibration module to vibrate until normal output of the MEMS sensor is monitored; and prompt information is output until normal output of the MEMS sensor is monitored, and the prompt information is used for indicating a user to make an operation of vibrating the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of electronic devices, and particularly relates to a control method, device, and electronic device for an electronic device. Background Art

[0002] With the rapid development and progress of current technology, Micro-Electro-Mechanical Systems (MEMS) sensors are widely installed in electronic devices such as mobile phones, game consoles, virtual reality devices, etc. to achieve acceleration acquisition in multiple directions. Comb teeth are provided inside the MEMS sensor and move together with the movement of the electronic device. When the electronic device undergoes intense movements such as dropping or knocking, it is easy to cause the comb teeth inside the MEMS sensor to become stuck, resulting in abnormal output of the MEMS sensor. Summary of the Invention

[0003] The objective of the embodiments of this application is to provide a control method, device, and electronic device for an electronic device, which can solve the technical problem of abnormal output of the MEMS sensor caused by the stuck comb teeth of the MEMS sensor.

[0004] In a first aspect, the embodiments of this application provide a control method for an electronic device, and the method includes:

[0005] When it is detected that the MEMS sensor has an abnormal jam, perform at least one of the following:

[0006] Control the vibration module to vibrate until it is detected that the MEMS sensor outputs normally;

[0007] Output a prompt message until it is detected that the MEMS sensor outputs normally, and the prompt message is used to perform an operation of vibrating the electronic device.

[0008] In a second aspect, the embodiments of this application provide a control device, and the device includes:

[0009] An execution module, configured to perform at least one of the following when it is detected that the cantilever of the MEMS sensor has an abnormal jam:

[0010] Control the vibration module to vibrate until it is detected that the MEMS sensor outputs normally;

[0011] Output a prompt message until it is detected that the MEMS sensor outputs normally, and the prompt message is used to instruct the user to perform an operation of vibrating the electronic device.

[0012] In a third aspect, the embodiments of this application provide an electronic device, and the electronic device includes a processor and a memory. The memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method provided in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method provided in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method provided in the first aspect.

[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method provided in the first aspect.

[0016] In the embodiment of the present application, by controlling the vibration module to vibrate or output a prompt message, the mechanical wave generated by the vibration module or the vibration generated by the user pressing a button, knocking on the electronic device, or moving the electronic device with reference to the prompt message can be conducted to the MEMS sensor with abnormal jamming, so as to drive the MEMS sensor to overcome the jamming force and get rid of jamming, and the MEMS sensor can output normally. Description of the Drawings

[0017] Figure 1 is a schematic flowchart of a control method for an electronic device provided by an embodiment of the present application;

[0018] Figure 2 is a schematic structural diagram of a control device provided by an embodiment of the present application;

[0019] Figure 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0020] Figure 4 is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments

[0021] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application belong to the scope of protection of the present application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The control method of the electronic device provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0024] Figure 1 FIG. 1 is a flow chart of a control method of an electronic device provided by an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a control method of an electronic device, which may include:

[0025] When detecting that the MEMS sensor is abnormally stuck, the electronic device performs at least one of the following:

[0026] S110, controlling the vibration module to vibrate until the MEMS sensor is detected to output normally;

[0027] S120, outputting prompt information until the MEMS sensor is detected to output normally, the prompt information being used to instruct the user to perform an operation of vibrating the electronic device.

[0028] The control method of the electronic device provided in the present application can be applied to an electronic device, which is provided with a MEMS sensor. The MEMS sensor includes but is not limited to a comb tooth structure and a lever structure. The comb tooth structure includes at least two intersecting comb teeth. During the movement of the electronic device, the intersecting comb teeth move relative to each other, thereby outputting a changing signal, and the movement direction and movement speed of the electronic device can be known by analyzing the signal. The lever structure includes a swingable cantilever. During the movement of the electronic device, the two ends of the cantilever move in opposite directions respectively, thereby outputting a changing signal, and the movement direction and movement speed of the electronic device can be known by analyzing the signal.

[0029] The electronic device can monitor the data output by the MEMS sensor to determine whether the MEMS sensor has an abnormal jam. When the MEMS sensor is in a normal state, the interdigitated comb teeth or the swingable cantilever move as the electronic device moves. When the MEMS sensor has an abnormal jam, the interdigitated comb teeth or the swingable cantilever are jammed in a fixed position, so that the interdigitated comb teeth or the swingable cantilever cannot move as the electronic device moves.

[0030] The electronic device can control the vibration module to vibrate, and the mechanical wave generated by the vibration module is conducted to the MEMS sensor to drive the jammed comb teeth or cantilever in the MEMS sensor to overcome the jamming force, so that the MEMS sensor returns to the normal state.

[0031] The electronic device can also output a prompt message, which can be used to instruct the user to take at least one of the measures of pressing the button of the electronic device, knocking the electronic device, and moving the electronic device. Taking the case where the prompt message is used to instruct the user to press the button of the electronic device as an example, after the user browses the prompt message, the user presses the button under the instruction of the prompt message, and the vibration generated by pressing the button is conducted to the MEMS sensor to drive the jammed comb teeth or cantilever in the MEMS sensor to overcome the jamming force, so that the MEMS sensor returns to the normal state. The button includes but is not limited to the screen-off key, volume key, trigger, etc. in the electronic device. Similarly, knocking the electronic device and moving the electronic device can both drive the jammed comb teeth or cantilever in the MEMS sensor to overcome the jamming force, so that the MEMS sensor returns to the normal state. The prompt message includes but is not limited to text information, voice information, image information, etc.

[0032] In the embodiment of the present application, by controlling the vibration module to vibrate or outputting a prompt message, the mechanical wave generated by the vibration module or the vibration generated by the user pressing the button, knocking the electronic device, and moving the electronic device with reference to the prompt message can be conducted to the MEMS sensor with abnormal jamming, so as to drive the MEMS sensor to overcome the jamming force and get rid of the jam, realizing the normal output of the MEMS sensor.

[0033] In some embodiments, the vibration module is a vibration motor; S110 includes:

[0034] S210, obtaining the usage state of the electronic device;

[0035] S220, when the usage state of the electronic device is a non-handheld usage state, controlling the vibration motor to vibrate until it is detected that the MEMS sensor outputs normally.

[0036] The usage states of the electronic device include a handheld state and a non - handheld state. When the user holds the electronic device for use or movement, the electronic device is in the handheld state. When the electronic device is in the handheld state, the user's hand may block the antenna, resulting in signal attenuation. In this case, the signal transmission power can be increased, but the energy consumption will also increase. When the user does not hold the electronic device and places it on a desktop, in a pocket, or other locations, the electronic device is in the non - handheld state. In this state, the antenna is not blocked by the user's hand, so the signal transmission power can be reduced, and the energy consumption can also be decreased. Whether the electronic device is currently held by the user can be determined through components such as the touch screen, proximity sensor, and light sensor set in the electronic device to determine the usage state of the electronic device.

[0037] The vibration motor can be a module in the electronic device used to issue vibration alerts. The vibration motor uses the principle of electromagnetic induction to convert electrical energy into mechanical energy to produce a vibration effect. When an electric current passes through the winding of the vibration motor, a magnetic field is generated. The magnetic field interacts with the permanent magnet or other magnetic fields of the vibration motor, causing the rotor of the vibration motor to rotate. When the rotor rotates, the eccentric wheel or unbalanced mass block in the vibration motor will rotate accordingly, and periodic vibrations will be generated under the action of centrifugal force. Therefore, by adjusting the magnitude of the current input to the vibration motor, the frequency and amplitude of the vibration generated by the vibration motor can be controlled. In some embodiments, the vibration motor is controlled to vibrate at its maximum rated frequency and maximum rated amplitude to increase the vibration force received by the MEMS sensor. In some embodiments, the vibration frequency of the vibration motor is controlled to be a multiple of the resonance frequency of the MEMS sensor to increase the energy absorbed by the MEMS sensor, thereby generating a resonance phenomenon, which is beneficial for the MEMS sensor to get rid of jamming.

[0038] In some embodiments, the electronic device has multiple vibration motors, and the MEMS sensor is disposed at the center of the multiple vibration motors. Optionally, the electronic device has 2 vibration motors, and the MEMS sensor is disposed at the center of the 2 vibration motors.

[0039] In some embodiments, the vibration motor is a multi - axis vibration motor; S220 includes:

[0040] When the usage state of the electronic device is the non - handheld usage state, the multi - axis vibration motor is controlled to vibrate sequentially along the directions of different vibration axes of the multi - axis vibration motor until it is monitored that the MEMS sensor outputs normally.

[0041] The multi - axis vibration motor has multiple intersecting vibration axes and can vibrate along multiple vibration axes. When the usage state of the electronic device is the non - handheld usage state, the multi - axis vibration motor is controlled to vibrate sequentially along the directions of different vibration axes of the multi - axis vibration motor, so that the vibrations in multiple directions generated are transmitted to the MEMS sensor, which is beneficial for the MEMS sensor to get rid of jamming.

[0042] Exemplarily, the multi-axis vibration motor can generate vibrations along the X-axis, Y-axis, and Z-axis. When the electronic device is in a non-handheld usage state, the multi-axis vibration motor vibrates along the X-axis for a preset number of times, along the Y-axis for a preset number of times, and along the Z-axis for a preset number of times in a cycle until it is detected that the MEMS sensor outputs normally.

[0043] In some embodiments, the vibration module includes a sound wave module for emitting ultrasonic waves. The sound wave module is a sound generating module or an ultrasonic fingerprint module, and the sound wave module is disposed adjacent to the MEMS sensor; S110 includes:

[0044] S310, controlling the sound wave module to vibrate and emit ultrasonic waves until it is detected that the MEMS sensor outputs normally.

[0045] The sound generating module can be a module in the electronic device for vibrating and generating sound. The sound generating module is a transducer that converts an electrical signal into a sound signal. When an audio electrical signal passes through the coil of the sound generating module, the coil will move under the action of a force in a magnetic field, and the moving coil will drive the diaphragm of the sound generating module to vibrate. The vibration of the diaphragm causes the vibration of the surrounding air molecules, thereby generating sound waves. Therefore, by adjusting the magnitude of the current input to the sound generating module, the frequency and amplitude of the sound waves generated by the sound generating module can be controlled to achieve the emission of ultrasonic waves.

[0046] The ultrasonic fingerprint module can be a module in the electronic device for collecting fingerprint information. When a finger presses the electronic device, the ultrasonic fingerprint module emits ultrasonic waves to the finger pressing area. When the ultrasonic waves contact the "ridges" and "valleys" of the fingerprint, there are differences in the degree of absorption, penetration, and reflection, generating echo waves with different energies and being received by the ultrasonic fingerprint module, thereby constructing a fingerprint image.

[0047] On the one hand, ultrasonic waves cannot be detected by users, thus achieving user imperceptibility; on the other hand, ultrasonic waves can act on the MEMS sensor to drive the MEMS sensor to vibrate, thereby enabling the MEMS sensor to get rid of jamming.

[0048] In some embodiments, the electronic device has multiple sound generating modules or multiple ultrasonic fingerprint modules, and the MEMS sensor is disposed at the center of the multiple sound generating modules or multiple ultrasonic fingerprint modules. Optionally, the electronic device has 2 sound generating modules, and the MEMS sensor is disposed at the center of the 2 sound generating modules.

[0049] In some embodiments, before S310 includes:

[0050] Obtain the usage state of the electronic device;

[0051] When the usage state of the electronic device is a handheld usage state, execute S310.

[0052] When the electronic device is in the hand-held use state, the vibration motor is vibrated to free the MEMS sensor from jamming. The user will perceive the vibration generated by the vibration motor, which affects the user's use of the electronic device. The acoustic wave module is used to vibrate and emit ultrasonic waves to achieve non-perception by the user.

[0053] In some embodiments, S310 includes:

[0054] Obtain the working state of the sound-emitting module;

[0055] When the working state of the sound-emitting module is the vibration sound-emitting state, control the ultrasonic fingerprint module to vibrate and emit ultrasonic waves until it is monitored that the MEMS sensor outputs normally;

[0056] When the working state of the sound-emitting module is the static state, control the sound-emitting module to emit ultrasonic waves until it is monitored that the MEMS sensor outputs normally.

[0057] By obtaining the working state of the sound-emitting module, the ultrasonic fingerprint module or the sound-emitting module is controlled to emit ultrasonic waves according to this working state, so as to avoid emitting ultrasonic waves when the sound-emitting module is emitting sound normally, which affects the normal sound emission of the sound-emitting module.

[0058] In some embodiments, the electronic device includes a housing and a moving member. The moving member is movably connected to the housing, and the MEMS sensor is disposed adjacent to the moving member; S120 includes:

[0059] S410, output a prompt message, and the prompt message is used to instruct the user to move the moving member reciprocally relative to the housing until it is monitored that the MEMS sensor outputs normally.

[0060] The moving member can be a button, a trigger, a robotic arm, etc. installed on the housing. In the case of outputting the prompt message, the user makes an operation according to the prompt message, moves the moving member reciprocally relative to the housing, thereby generating an action on the MEMS sensor to free the MEMS sensor from jamming.

[0061] In some embodiments, the plurality of moving members include a first moving member and a second moving member; S410 includes:

[0062] Output a prompt message, and the prompt message is used to instruct the user to move the first moving member reciprocally relative to the housing for a preset duration;

[0063] In the case of monitoring that the MEMS sensor is abnormally jammed, output a prompt message, and the prompt message is used to instruct the user to move the second moving member reciprocally relative to the housing for a preset duration.

[0064] If the vibration force generated by the relative movement of the first moving member with respect to the housing acting on the MEMS sensor is limited and insufficient to enable the MEMS sensor to get rid of jamming, the user can be prompted to move the second moving member to generate different vibration forces acting on the MEMS sensor. Optionally, the first moving member and the second moving member are disposed on different sides of the housing.

[0065] In some embodiments, the moving member is a button; the prompting unit is configured to output a prompting message for instructing the user to make a pressing input on the button so that the button moves relative to the housing; the moving member is a button; after S410, the method includes:

[0066] Receiving a pressing input on the button and not responding to the pressing input until it is detected that the MEMS sensor outputs normally.

[0067] The button can be used to trigger the electronic device to execute steps corresponding to the button. The pressing input on the button can be a single click, double click, long press, etc. Different pressing inputs can correspond to triggering the electronic device to execute steps corresponding to the pressing input. For example: the button is a screen-off key. When a long press input on the screen-off key is received, the electronic device shuts down. When a continuous pressing input on the screen-off key is received, the electronic device is triggered to send out emergency contact information.

[0068] When the prompting message is output, the electronic device does not respond to the received pressing input on the button until it is detected that the MEMS sensor outputs normally, thereby avoiding mis-triggering the steps of the pressing input of the corresponding button of the electronic device.

[0069] The user continuously makes a pressing input on the button, which can not only drive the movement of the button, but also drive the slight movement of other structures adjacent to the button in the electronic device, so that the MEMS sensor gets rid of jamming. Optionally, the other structures adjacent to the button include, but are not limited to, the middle frame, the circuit board, the back cover, etc.

[0070] In some embodiments, the MEMS sensor includes a first comb for detecting the acceleration in the first direction, a second comb for detecting the acceleration in the second direction, and a cantilever for detecting the acceleration in the third direction. The method further includes:

[0071] S510, obtaining first output data of the first comb, second output data of the second comb, and third output data of the cantilever;

[0072] S520, if one or both of the first output data, the second output data, and the third output data remain unchanged or are greater than a preset threshold within a preset duration, and at least one of them changes in value within the preset duration, determining that the cantilever of the MEMS sensor has an abnormal jam.

[0073] One of the first output data and the second output data can be used to analyze and obtain the acceleration in the X-axis direction, the other can be used to analyze and obtain the acceleration in the Y-axis direction, and the third output data can be used to analyze and obtain the acceleration in the Z-axis direction. The X-axis direction, the Y-axis direction, and the Z-axis direction intersect pairwise.

[0074] When the electronic device is placed on a table, the ground, etc. and is in a stationary state, the first output data, the second output data, and the third output data remain unchanged. When the electronic device is in a moving state and the MEMS sensor is working properly, the first output data, the second output data, and the third output data change with the moving direction and moving speed of the electronic device. When the electronic device is in a moving state and one of the first comb and the second comb cantilever in the MEMS sensor has an abnormal jamming, the two of the first output data, the second output data, and the third output data that are normally output change with the moving direction and moving speed of the electronic device, and the output data of the one with the abnormal jamming remains unchanged in value or is greater than a preset threshold. When the electronic device is in a moving state and two of the first comb and the second comb cantilever in the MEMS sensor have an abnormal jamming, the one of the first output data, the second output data, and the third output data that is normally output changes with the moving direction and moving speed of the electronic device, and the output data of the two with the abnormal jamming remains unchanged in value or is greater than a preset threshold.

[0075] Therefore, by determining that one or both of the first output data, the second output data, and the third output data remain unchanged in value or are greater than a preset threshold within a preset duration, and at least one of them remains changing in value, it is determined that the MEMS sensor has an abnormal jamming. The preset threshold is the maximum output value preset by those skilled in the art according to the MEMS sensor, and the preset duration is the duration preset by those skilled in the art. Optionally, the preset threshold is 7G, and the preset duration is 5 min.

[0076] It should be noted that for the control method of the electronic device provided in the embodiments of the present application, the execution subject can be a control device. In the embodiments of the present application, taking the control device executing the control method of the electronic device as an example, the control device provided in the embodiments of the present application is described.

[0077] Figure 2 is a schematic structural diagram of a control device provided in another embodiment of the present application, as Figure 2 shown, the control device may include:

[0078] An execution module 201, configured to, when it is detected that the cantilever of the MEMS sensor has an abnormal jamming, execute at least one of the following:

[0079] Control the vibration module to vibrate until it is detected that the MEMS sensor outputs normally;

[0080] Output a prompt message until it is detected that the MEMS sensor outputs normally, and the prompt message is used to instruct the user to perform an operation of vibrating the electronic device.

[0081] In an optional example, the vibration module includes a vibration motor; the execution module 201 includes:

[0082] A first acquisition unit that acquires the usage state of the electronic device;

[0083] A first control unit that controls the vibration motor to vibrate until it is detected that the MEMS sensor outputs normally when the usage state of the electronic device is a non-handheld usage state.

[0084] In an optional example, the vibration motor is a multi-axis vibration motor; the first control unit is further configured to control the multi-axis vibration motor to vibrate in the directions of different vibration axes of the multi-axis vibration motor in sequence until it is detected that the MEMS sensor outputs normally when the usage state of the electronic device is a non-handheld usage state.

[0085] In an optional example, the vibration module includes a sound wave module for emitting ultrasonic waves, the sound wave module is a sound generating module or an ultrasonic fingerprint module, and the sound wave module is disposed adjacent to the MEMS sensor; the execution module 201 includes:

[0086] A second control unit that controls the sound wave module to vibrate and emit ultrasonic waves until it is detected that the MEMS sensor outputs normally.

[0087] In an optional example, the electronic device includes a housing and a moving member, the moving member is movably connected to the housing, and the MEMS sensor is disposed adjacent to the moving member; the execution module 201 includes:

[0088] A prompt unit that outputs a prompt message, and the prompt message is used to instruct the user to move the moving member to reciprocally move relative to the housing until it is detected that the MEMS sensor outputs normally.

[0089] In an optional example, the moving member is a button; the prompt unit is configured to output a prompt message, and the prompt message is used to instruct the user to make a pressing input on the button so that the button moves relative to the housing;

[0090] The execution module 201 further includes:

[0091] A response unit that receives a pressing input on the button and does not respond to the pressing input until it is detected that the MEMS sensor outputs normally.

[0092] In an optional example, the MEMS sensor includes a first comb for detecting the acceleration in the first direction, a second comb for detecting the acceleration in the second direction, and a cantilever for detecting the acceleration in the third direction. The control device further includes:

[0093] An acquisition module 202, configured to acquire first output data of a first comb, second output data of a second comb, and third output data of a cantilever;

[0094] A determination module 203, configured to determine that the cantilever of the MEMS sensor has an abnormal jamming when one or both of the first output data, the second output data, and the third output data remain unchanged in value or are greater than a preset threshold within a preset duration, and at least one of them remains changing in value within the preset duration.

[0095] The control device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., such as an augmented reality (AR) and virtual reality (VR) device. The embodiments of the present application do not make specific limitations.

[0096] The control device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0097] The control device provided in the embodiments of the present application can implement Figure 1 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.

[0098] Optionally, as Figure 3As shown in the figure, an embodiment of the present application further provides an electronic device 100, including a processor 101 and a memory 102. A program or instruction that can run on the processor 101 is stored on the memory 102. When the program or instruction is executed by the processor 101, each step of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.

[0099] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0100] Figure 4 It is a schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application.

[0101] The electronic device 1000 includes, but is not limited to: a radio frequency unit 111, a network module 112, an audio output unit 113, an input unit 114, a sensor 115, a display unit 116, a user input unit 117, an interface unit 118, a memory 119, and a processor 110 and other components.

[0102] Those skilled in the art can understand that the electronic device 1000 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 4 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0103] Wherein, the processor 110 is configured to perform at least one of the following when it is detected that the MEMS sensor has an abnormal jam:

[0104] Control the vibration module to vibrate until it is detected that the MEMS sensor outputs normally;

[0105] Output a prompt message until it is detected that the MEMS sensor outputs normally. The prompt message is used to instruct the user to perform an operation of vibrating the electronic device.

[0106] Optionally, the vibration module includes a vibration motor; the processor 110 is configured to obtain the usage state of the electronic device;

[0107] The processor 110 is configured to control the vibration motor to vibrate until it is detected that the MEMS sensor outputs normally when the usage state of the electronic device is a non-handheld usage state.

[0108] Optionally, the vibration motor is a multi-axis vibration motor; the first control unit is further configured to control the multi-axis vibration motor to vibrate in the directions of different vibration axes of the multi-axis vibration motor in sequence until it is monitored that the MEMS sensor outputs normally when the usage state of the electronic device is a non-handheld usage state.

[0109] Optionally, the vibration module includes an acoustic wave module for emitting ultrasonic waves. The acoustic wave module is a sound-emitting module or an ultrasonic fingerprint module. The acoustic wave module is disposed adjacent to the MEMS sensor; the processor 110 is configured to control the acoustic wave module to vibrate and emit ultrasonic waves until it is monitored that the MEMS sensor outputs normally.

[0110] Optionally, the electronic device includes a housing and a moving member. The moving member is movably connected to the housing. The MEMS sensor is disposed adjacent to the moving member; the processor 110 is configured to output a prompt message for instructing the user to move the moving member to reciprocate relative to the housing until it is monitored that the MEMS sensor outputs normally.

[0111] Optionally, the moving member is a button; the prompt unit is configured to output a prompt message for instructing the user to make a pressing input on the button so that the button moves relative to the housing; the processor 110 is configured to receive the pressing input on the button and does not respond to the pressing input until it is monitored that the MEMS sensor outputs normally.

[0112] Optionally, the MEMS sensor includes a first comb for detecting the acceleration in the first direction, a second comb for detecting the acceleration in the second direction, and a cantilever for detecting the acceleration in the third direction; the processor 110 is configured to obtain first output data of the first comb, second output data of the second comb, and third output data of the cantilever;

[0113] The processor 110 is configured to determine that the MEMS sensor has an abnormal jam when one or both of the first output data, the second output data, and the third output data remain unchanged or are greater than a preset threshold within a preset duration and at least one of them remains changing in value.

[0114] It should be understood that in the embodiments of the present application, the input unit 114 may include a Graphics Processing Unit (GPU) 1141 and a microphone 1142. The GPU 1141 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 116 may include a display panel 1161, and the display panel 1161 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 117 includes at least one of a touch panel 1171 and other input devices 1172. The touch panel 1171 is also called a touch screen. The touch panel 1171 may include two parts: a touch detection device and a touch controller. The other input devices 1172 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0115] The memory 119 can be used to store software programs and various data. The memory 119 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 119 can include a volatile memory or a non-volatile memory, or the memory 119 can include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 119 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.

[0116] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110 either.

[0117] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the control method embodiment of the above-mentioned electronic device and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0118] Among them, the processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disc, etc.

[0119] The embodiments of the present application further provide a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement each process of the control method embodiment of the above-mentioned electronic device and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0120] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0121] The embodiments of the present application provide a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement each process of the control method embodiment of the above-mentioned electronic device and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0122] It should be noted that in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes 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 statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.

[0123] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.

[0124] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

Claims

1. A control method for an electronic device, characterized in that: include: If the MEMS sensor is detected to be abnormally stuck, perform at least one of the following: Controlling the vibration module to vibrate until the MEMS sensor detects normal output; Outputting prompt information until the MEMS sensor is detected to output normally, the prompt information being used to instruct the user to vibrate the electronic device.

2. The method according to claim 1, characterized in that The vibration module includes a vibration motor; the vibration module is controlled to vibrate until the MEMS sensor is detected to output normally, including: Acquiring the usage status of the electronic device; When the electronic device is in a non-handheld usage state, the vibration motor is controlled to vibrate until the normal output of the MEMS sensor is detected.

3. The method according to claim 2, characterized in that The vibration motor is a multi-axis vibration motor; when the electronic device is in a non-handheld use state, the vibration motor is controlled to vibrate until the MEMS sensor is detected to output normally, including: When the electronic device is in a non-handheld usage state, the multi-axis vibration motor is controlled to vibrate in directions of different vibration axes of the multi-axis vibration motor in sequence until the normal output of the MEMS sensor is detected.

4. The method according to claim 1, characterized in that: The vibration module includes a sound wave module for emitting ultrasonic waves, the sound wave module is a sound module or an ultrasonic fingerprint module, and the sound wave module is arranged adjacent to the MEMS sensor; the vibration module is controlled to vibrate until the normal output of the MEMS sensor is detected, including: The acoustic wave module is controlled to vibrate and emit ultrasonic waves until the normal output of the MEMS sensor is detected.

5. The method according to claim 1, characterized in that The electronic device comprises a housing and a moving part, the moving part is movably connected to the housing, and the MEMS sensor is arranged adjacent to the moving part; The outputting of prompt information until the MEMS sensor is monitored to output normally includes: Outputting prompt information, wherein the prompt information is used to instruct the user to move the moving member back and forth relative to the shell until the normal output of the MEMS sensor is detected.

6. The method according to claim 5, characterized in that The moving part is a button, and the prompt information is used to instruct the user to make a pressing input on the button so that the button moves relative to the housing; the output prompt information includes: A pressing input to the button is received, and the pressing input is not responded to until a normal output of the MEMS sensor is detected.

7. The method according to any one of claims 1 to 6, characterized in that The MEMS sensor includes a first comb tooth for detecting acceleration in a first direction, a second comb tooth for detecting acceleration in a second direction, and a cantilever for detecting acceleration in a third direction. The method further includes: Acquire first output data of the first comb teeth, second output data of the second comb teeth, and third output data of the cantilever; If one or both of the first output data, the second output data and the third output data maintain a constant value or are greater than a preset threshold value within a preset time period, and at least one maintains a change in value within the preset time period, it is determined that the MEMS sensor is abnormally stuck.

8. A control device, characterized in that: include: The execution module is used to execute at least one of the following when detecting that the cantilever of the MEMS sensor is abnormally stuck: Controlling the vibration module to vibrate until the MEMS sensor detects normal output; Outputting prompt information until the MEMS sensor is detected to output normally, the prompt information being used to instruct the user to perform an operation of vibrating the electronic device.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device as described in any one of claims 1 to 7 are implemented.

10. A readable storage medium, characterized in that: include: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the control method of the electronic device according to any one of claims 1 to 7 are implemented.