Headphone anti-accidental touch power-on management methods and electronic devices
By enabling the anti-Hall switch accidental power-on mode when the wireless headphones are powered off and detecting power-on commands, the problem of accidental power-on of wireless headphones is prevented from being triggered by Hall switches, thus improving user experience and battery efficiency.
Patent Information
- Application Number
- CN202510603280.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2045-05-12
AI Technical Summary
Wireless earbuds may accidentally power on due to the Hall switch being accidentally triggered when placed in the ground, resulting in unnecessary power consumption and a degraded user experience.
The system activates the Hall effect switch protection mode by receiving user input when the headphones are powered off. It detects the power-on command to determine if it is a Hall effect switch command. If not, it disables the power-on process. This includes signal transition detection and magnetic field strength change detection.
This effectively prevents wireless earbuds from accidentally turning on due to Hall switch mis-triggered when placed in the storage area, thus improving user experience and battery efficiency.
Smart Images

Figure CN120602830B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of headphone control technology, and in particular relates to a headphone anti-accidental power-on management method and electronic device. Background Technology
[0002] Generally, wireless earbuds use a Hall effect generated by a Hall switch to turn them on and off. For example, when the Hall switch on the wireless earbuds gets close to or away from the magnet inside the charging case, a change in Hall voltage occurs, causing the Hall switch to generate a Hall effect. Specifically, when the Hall switch on the wireless earbuds gets close to the magnet inside the charging case, the wireless earbuds generate a Hall voltage change based on the Hall switch and then enter the off state. When the Hall switch on the wireless earbuds gets away from the magnet inside the charging case, the earbuds generate a Hall effect based on the Hall switch and then enter the on state.
[0003] The design of using Hall effect switches for powering on and off is convenient for users. However, since the earphone speakers also have magnets, when the earphones are off, if they are placed together instead of in the charging case, the relative movement of the pair of earphones may cause the Hall effect to be triggered accidentally, thus causing the earphones to be turned on by mistake. Summary of the Invention
[0004] This application provides a method and electronic device for preventing accidental power-on of headphones, which can solve the problem of headphones being accidentally powered on due to the Hall effect.
[0005] In a first aspect, embodiments of this application provide a method for preventing accidental power-on of headphones, the method comprising:
[0006] When the earbuds are outside the charging case and the earbuds are powered off, a first user operation on the earbuds is received.
[0007] In response to the first user's operation, the headset is controlled to activate the anti-Hall effect accidental power-on mode;
[0008] When the headphones are in the Hall effect anti-accidental power-on mode, in response to the headphone power-on command, the headphone power-on command is detected to obtain a first detection result. The first detection result is used to indicate whether the headphone power-on command is a Hall switch command, and the Hall switch command is a command triggered by the Hall switch located in the headphone.
[0009] If the first detection result indicates that the headphone power-on command is any command other than the Hall switch command, then the headphone is controlled to power on.
[0010] Specifically, if the first detection result indicates that the headphone power-on command is the Hall switch command, the headphone is disabled from powering on.
[0011] In some embodiments, the above-mentioned detection of the headphone power-on command in response to the headphone power-on command to obtain a first detection result includes: in response to the headphone power-on command, acquiring a first output signal output by the Hall switch within a target time period, the target time period being associated with the acquisition time of the headphone power-on command; performing signal transition detection on the first output signal to obtain a second detection result, the second detection result being used to indicate whether a signal transition has occurred in the first output signal; if the second detection result indicates that no signal transition has occurred in the first output signal, obtaining a first detection sub-result, the first detection sub-result being used to indicate that the headphone power-on command is a command other than the Hall switch command; if the second detection result indicates that a signal transition has occurred in the first output signal, obtaining a second detection sub-result, the second detection sub-result being used to indicate that the headphone power-on command is the Hall switch command, wherein the first detection result includes either the first detection sub-result or the second detection sub-result.
[0012] In some embodiments, the above-mentioned response to a headphone power-on command, detecting the headphone power-on command to obtain a first detection result, includes: in response to the headphone power-on command, acquiring a second output signal of a Hall sensor located on the headphone during a target time period; the target time period is associated with the acquisition time of the headphone power-on command; and performing signal change detection on the second output signal to obtain the first detection result.
[0013] In some embodiments, the above-described signal change detection of the second output signal to obtain a first detection result includes: determining the magnitude of the change in magnetic field strength of the headphones within the target time period based on the second output signal; performing magnitude change jump detection on the magnitude of the change in magnetic field strength to obtain a third detection result, the third detection result being used to indicate whether the magnitude of the change in magnetic field strength is less than a preset threshold; if the third detection result indicates that the magnitude of the change in magnetic field strength is less than the preset threshold, obtaining a first detection sub-result, the first detection sub-result being used to indicate that the headphone power-on command is a command other than the Hall switch command; if the third detection result indicates that the magnitude of the change in magnetic field strength is greater than or equal to the preset threshold, obtaining a second detection sub-result, the second detection sub-result being used to indicate that the headphone power-on command is the Hall switch command, and the first detection result includes the first detection sub-result or the second detection sub-result.
[0014] In some embodiments, receiving a first user operation on the earphones when the earphones are outside the charging case and the earphones are in a powered-off state includes: receiving a first user operation on the earphones if a preset number of touch commands are received within a preset time period when the earphones are outside the charging case and the earphones are in a powered-off state, wherein the touch commands are generated by the user touching the touch panel of the earphones.
[0015] In some embodiments, receiving a first user operation on the earphones when the earphones are outside the charging case and in a powered-off state includes: acquiring a first pressure signal and a second pressure signal corresponding to a preset first touch area and a second touch area of the earphones when the earphones are outside the charging case and in a powered-off state; obtaining an identification result based on the first pressure signal and the second pressure signal, the identification result indicating whether a first user operation on the earphones has been identified; and receiving the first user operation on the earphones when the identification result indicates that a first user operation on the earphones has been identified.
[0016] In some embodiments, the first touch area and the second touch area are located in the arc-shaped edge area of the earphone. Obtaining the recognition result based on the first pressure signal and the second pressure signal includes: obtaining a recognition sub-result when the first pressure signal and the second pressure signal meet a preset requirement. The recognition sub-result is used to indicate that a first user operation on the earphone has been recognized. The preset requirement is that the duration for which both the first pressure signal and the second pressure signal are greater than a preset pressure sensing threshold is greater than a preset duration threshold, and the movement trajectory determined based on the first pressure signal and the second pressure signal obtained within the duration is a sliding motion along the arc-shaped edge of the earphone. The recognition result includes the recognition sub-result.
[0017] In some embodiments, after activating the anti-Hall touch power-on mode, the method further includes: controlling the earphone to exit the anti-Hall touch power-on mode when the earphone is in the power-on state; or, controlling the earphone to exit the anti-Hall touch power-on mode when the earphone is detected to be in the charging case.
[0018] In some embodiments, controlling the earphones to exit the anti-Hall effect power-on mode when the earphones are placed in the charging case includes: determining that the earphones are placed in the charging case and controlling the earphones to exit the anti-Hall effect power-on mode when the earphones are detected to be in a charging state; or, determining that the earphones are placed in the charging case and controlling the earphones to exit the anti-Hall effect power-on mode when a signal transition is detected in the third output signal output by the Hall switch located in the charging case of the earphones.
[0019] Secondly, embodiments of this application provide a headphone anti-accidental touch power-on management device, the device comprising:
[0020] A receiving module is configured to receive a first user operation on the earphones when the earphones are located outside the charging case and the earphones are in a powered-off state.
[0021] The mode control module is used to respond to the first user operation and control the headset to activate the anti-Hall effect accidental power-on mode;
[0022] The detection module is used to detect the headphone power-on command generated based on magnetic field induction when the headphone is in the anti-Hall switch power-on mode, and obtain a first detection result. The first detection result is used to indicate whether the headphone power-on command is a Hall switch command, and the Hall switch command is a command triggered by the Hall switch of the headphone.
[0023] The power-on control module is used to control the headphones to power on when the first detection result indicates that the headphone power-on command is any other than the Hall switch command.
[0024] Specifically, if the first detection result indicates that the headphone power-on command is the Hall switch command, the headphone is disabled from powering on.
[0025] In some embodiments, the receiving module is specifically used to: when the earphone is outside the charging case and the earphone is in a powered-off state, if a preset number of touch commands are received within a preset time period, then receive the first user operation on the earphone, wherein the touch commands are generated by the user touching the touch panel of the earphone.
[0026] In some embodiments, the receiving module is specifically configured to: when the earphone is located outside the charging case and the earphone is in a powered-off state, acquire a first pressure signal and a second pressure signal corresponding to a preset first touch area and a second touch area of the earphone; obtain an identification result based on the first pressure signal and the second pressure signal, the identification result being used to indicate whether a first user operation on the earphone has been identified; and receive the first user operation on the earphone when the identification result indicates that a first user operation on the earphone has been identified.
[0027] In some embodiments, the first touch area and the second touch area are located in the arc-shaped edge area of the earphone. The receiving module is specifically used to: obtain an identification sub-result when the first pressure signal and the second pressure signal meet preset requirements. The identification sub-result is used to indicate that a first user operation on the earphone has been identified. The preset requirement is that the duration for which both the first pressure signal and the second pressure signal are greater than a preset pressure sensing threshold is greater than a preset duration threshold. Based on the first pressure signal and the second pressure signal obtained within the duration, the determined movement trajectory is sliding along the arc-shaped edge of the earphone. The identification result includes the identification sub-result.
[0028] In some embodiments, the mode control module is specifically configured to: in response to a headphone power-on command, acquire a first output signal output by a Hall switch within a target time period, the target time period being associated with the acquisition time of the headphone power-on command; perform signal transition detection on the first output signal to obtain a second detection result, the second detection result being used to indicate whether a signal transition has occurred in the first output signal; if the second detection result indicates that no signal transition has occurred in the first output signal, obtain a first detection sub-result, the first detection sub-result being used to indicate that the headphone power-on command is a command other than a Hall switch command; if the second detection result indicates that a signal transition has occurred in the first output signal, obtain a second detection sub-result, the second detection sub-result being used to indicate that the headphone power-on command is a Hall switch command, the first detection result including either the first detection sub-result or the second detection sub-result.
[0029] In some embodiments, the mode control module is specifically configured to: in response to a headphone power-on command, acquire a second output signal of the Hall sensor located on the headphone during a target time period; the target time period is associated with the acquisition time of the headphone power-on command; and perform signal change detection on the second output signal to obtain a first detection result.
[0030] In some embodiments, the mode control module is specifically used to: determine the magnitude of change in the magnetic field strength of the headphones within a target time period based on the second output signal; perform magnitude change jump detection on the magnitude of change in magnetic field strength to obtain a third detection result, the third detection result being used to indicate whether the magnitude of change in magnetic field strength is less than a preset threshold; if the third detection result indicates that the magnitude of change in magnetic field strength is less than the preset threshold, obtain a first detection sub-result, the first detection sub-result being used to indicate that the headphone power-on command is a command other than a Hall switch command; if the third detection result indicates that the magnitude of change in magnetic field strength is greater than or equal to the preset threshold, obtain a second detection sub-result, the second detection sub-result being used to indicate that the headphone power-on command is a Hall switch command, and the first detection result includes either the first detection sub-result or the second detection sub-result.
[0031] The aforementioned headphone's anti-accidental touch power-on management device also includes a mode exit module, used to control the headphone to exit the anti-Hall effect accidental touch power-on mode when the headphone is in the power-on state; or, when the headphone is detected to be in the charging case, to control the headphone to exit the anti-Hall effect accidental touch power-on mode.
[0032] In some embodiments, the above-mentioned mode exit module is specifically used to: determine that the earphones are placed in the charging case when the earphones are detected to be in a charging state, and control the earphones to exit the anti-Hall switch accidental power-on mode; or, determine that the earphones are placed in the charging case when the third output signal output by the Hall switch located in the earphones' charging case is detected to have a signal jump, and control the earphones to exit the anti-Hall switch accidental power-on mode.
[0033] Thirdly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions;
[0034] When the processor executes computer program instructions, it implements the headphone anti-accidental touch power-on management method as described in the first aspect.
[0035] Fourthly, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the headphone anti-accidental touch power-on management method as described in the first aspect.
[0036] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by the processor of an electronic device, cause the electronic device to perform the headphone anti-accidental touch power-on management method as described in the first aspect.
[0037] The headphone anti-accidental power-on management method and electronic device of this application embodiment can receive a first user operation on the headphone when the headphone is outside the charging case and in a powered-off state. In response to the first user operation, the headphone is controlled to activate an anti-Hall switch accidental power-on mode. While in this mode, in response to a headphone power-on command generated based on magnetic field induction, the headphone power-on command is detected to obtain a first detection result. This first detection result indicates whether the headphone power-on command is a Hall switch command, where a Hall switch command is a command triggered by the headphone's Hall switch. If the first detection result indicates that the headphone power-on command is a Hall switch command, the headphone is powered on. Conversely, if the first detection result indicates that the headphone power-on command is a Hall switch command, the headphone is disabled from powering on. Thus, by further determining that the headphone power-on command is a Hall switch command when it is detected, and disabling the headphone from powering on, this application can prevent the headphone from being accidentally powered on when it is outside the charging case. Attached Figure Description
[0038] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is a flowchart illustrating the headphone anti-accidental touch power-on management method provided in an embodiment of this application;
[0040] Figure 2 This is a schematic diagram of the structure of the headphone anti-accidental touch power-on management device provided in the embodiments of this application;
[0041] Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0042] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0043] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0044] To address the related technical problems, embodiments of this application provide a method, apparatus, device, computer storage medium, and computer program product for preventing accidental power-on of headphones. The method for preventing accidental power-on of headphones provided in this application embodiment will be described first below.
[0045] Figure 1This illustration shows a flowchart of a method for preventing accidental power-on of headphones according to an embodiment of this application. Figure 1 As shown, the method for preventing accidental power-on of the headset specifically includes steps S101-S104.
[0046] Step S101: When the earphones are outside the charging case and the earphones are in the off state, receive the first user operation on the earphones.
[0047] In this step, the headphones are in a powered-off state. This can be achieved by the headphones responding to a user's power-off operation, controlling the headphones to turn off and enter the powered-off state. Alternatively, the headphones can automatically enter the powered-off state if they have not been used or connected to any device for a preset first fixed period of time, such as 15 minutes or 30 minutes, etc.
[0048] The above-mentioned power-off operation can be performed by the user touching the headphone's touch panel, pressing the headphone's physical button (i.e., the power-off button), or by the user using an app connected to the headphone.
[0049] The user touches the earphone's touch panel, which can be a preset second fixed duration, such as 3 seconds or 5 seconds.
[0050] The physical button on the earphone can be pressed continuously by the user for a preset third fixed duration, such as 3 seconds or 5 seconds.
[0051] When the user performs a normal power-off operation, the headphones can provide a preset power-off prompt to remind the user that the headphones have entered the power-off state. The preset power-off prompt can be a power-off prompt sound, a power-off prompt light, etc.
[0052] The aforementioned first user operation is a specific operation set, which is used to instruct the control headset to activate the anti-Hall effect accidental power-on mode.
[0053] In some embodiments, the first user operation can be the user touching the earphone's touch panel a preset number of times within a preset time period. Step S101 can include: when the earphone is outside the charging case and the earphone is in a powered-off state, if a preset number of touch commands are received within a preset time period, then the first user operation on the earphone is received.
[0054] The aforementioned touch commands are generated by the user touching the touch panel of the headset. The preset duration can be 3 seconds or 5 seconds, etc., and the preset number of times can be 2 times, 3 times, etc. The preset duration and preset number of times can be set according to requirements.
[0055] The aforementioned receipt of a preset number of touch commands within a preset time period can be interpreted as receiving touch commands. In the case of receiving a preset number of touch commands, it is determined whether the interval between the earliest and the last touch command received among the preset number of touch commands exceeds the preset time period. If the interval does not exceed the preset time period, it is determined that the preset number of touch commands were received within the preset time period. If the interval exceeds the preset time period, it is determined that the preset number of touch commands were not received within the preset time period.
[0056] The aforementioned receiving of touch commands can be achieved by recognizing touch commands through a preset method. Once a touch command is recognized, it is determined that the touch command has been received.
[0057] The preset methods mentioned above can be capacitive touch detection or pressure sensing detection, etc.
[0058] If the preset method is capacitive touch detection, then touch command recognition is performed using this preset method. This could involve acquiring the capacitance value collected by the headphone's capacitive sensor. When the change in capacitance value reaches a preset target threshold, a touch command is recognized. Headphone touch areas typically use capacitive sensors. When a finger touches the panel, the human body's electric field changes the sensor's capacitance value; this change is detected to determine a touch event. To prevent accidental touches, a target threshold is set to eliminate environmental interference.
[0059] If the preset method is pressure sensing detection, then touch command recognition is performed through the preset method, which could be obtaining the pressure deformation of the headphone's force sensor. When the pressure deformation reaches a preset deformation threshold, a touch command is recognized. The aforementioned force sensor can be a pressure-sensitive film or a strain gauge.
[0060] In this embodiment, by setting a specific user operation as the first user operation to indicate the activation of the anti-Hall touch power-on mode, the user can be prevented from accidentally triggering the activation of the anti-Hall touch power-on mode.
[0061] In some embodiments, step S101 may further include:
[0062] When the earbuds are outside the charging case and the earbuds are powered off, acquire the first pressure signal and the second pressure signal corresponding to the preset first touch area and second touch area of the earbuds.
[0063] The first and second touch areas mentioned above may be located on the outside of the earphone, and their positions may be convenient for the user to touch with their thumb and forefinger.
[0064] The aforementioned acquisition of the first pressure signal and the second pressure signal corresponding to the preset first touch area and second touch area of the headphones can be achieved by acquiring the first pressure signal collected by the force sensor of the first touch area and the second pressure signal collected by the force sensor of the second touch area.
[0065] The aforementioned force sensors can be pressure sensors, strain gauges, etc.
[0066] The identification result is obtained based on the first pressure signal and the second pressure signal.
[0067] The above identification results are used to indicate whether a first user action on the headphones has been identified.
[0068] If the recognition result indicates that a first user operation on the headset has been recognized, the first user operation on the headset is received.
[0069] The aforementioned method of obtaining an identification result based on the first pressure signal and the second pressure signal can involve determining whether the movement trajectory determined by the first and second pressure signals conforms to a preset movement trajectory. Based on this determination, an identification result is obtained. This determination result indicates whether the movement trajectory determined by the first and second pressure signals conforms to the preset movement trajectory. If the determination result indicates that the movement trajectory conforms to the preset movement trajectory, an identification sub-result is obtained, indicating that a first user operation on the headphones has been identified. If the determination result indicates that the movement trajectory does not conform to the preset movement trajectory, an identification result is obtained indicating that no first user operation on the headphones has been identified. The preset movement trajectory is a set movement trajectory representing the first user operation, and the identification result includes the identification sub-result.
[0070] In this embodiment, by setting a specific complex operation as the first user operation to indicate the activation of the anti-Hall touch power-on mode, the user can be better prevented from accidentally triggering the activation of the anti-Hall touch power-on mode.
[0071] In some embodiments, the first touch area and the second touch area are located in the arc-shaped edge area of the earphone, and obtaining the recognition result based on the first pressure signal and the second pressure signal may include:
[0072] If the first pressure signal and the second pressure signal meet the preset requirements, the identification sub-result is obtained.
[0073] The aforementioned identification sub-result is used to indicate the recognition of a first user operation on the headset, and the aforementioned identification result includes the identification sub-result.
[0074] The above-mentioned preset requirement is that the duration for which both the first pressure signal and the second pressure signal are greater than the preset pressure sensing threshold is greater than the preset duration threshold, and the movement trajectory determined based on the first pressure signal and the second pressure signal obtained within the duration is an arc-shaped slide along the edge of the earphone.
[0075] The preset pressure sensing threshold can be the critical value for recognizing that the earphone is being pressed. The preset pressure sensing threshold can be set according to requirements.
[0076] The identification sub-result obtained when the first pressure signal and the second pressure signal meet the preset requirements can be obtained by acquiring the target first pressure signal and the target second pressure signal that are greater than the preset pressure sensing threshold at the same time from the first pressure signal and the second pressure signal, determining the difference between the earliest and the last time in the acquisition time corresponding to the target first pressure signal or the target second pressure signal, and obtaining the duration. If the duration is greater than the preset duration threshold, the target movement trajectory is determined according to the target first pressure signal and the target second pressure signal. When the target movement trajectory is an arc-shaped sliding along the edge of the earphone, the identification sub-result is obtained.
[0077] In this embodiment, the first pressure signal and the second pressure signal are used to identify whether the preset requirements are met in order to obtain the identification result. The pressure signal can effectively identify the movement trajectory of the user's finger, so as to effectively identify whether the user has given the first user operation to enable the anti-Hall touch power-on mode.
[0078] Step S102: In response to the first user's operation, control the headset to enable the anti-Hall effect accidental power-on mode.
[0079] The aforementioned anti-Hall switch accidental power-on mode is a mode that detects the headphone power-on command generated based on magnetic field induction when it is received. If the headphone power-on command is identified as a command other than a Hall switch command, the headphone is controlled to prevent it from being powered on.
[0080] When the headphones enter the anti-Hall effect accidental power-on mode, the headphones can provide a preset prompt to indicate that the anti-Hall effect accidental power-on mode has been activated, reminding the user that the headphones have entered the anti-Hall effect accidental power-on mode. The preset power-off prompt can be an on / off notification sound, an on / off indicator light, etc.
[0081] Step S103: When the headphones are in the anti-Hall effect accidental power-on mode, in response to the headphone power-on command, the headphone power-on command is detected to obtain the first detection result.
[0082] The first detection result mentioned above is used to indicate whether the headphone power-on command is a Hall switch command, which is a command triggered by the Hall switch located on the headphone.
[0083] The aforementioned headphone power-on command can be triggered by Hall effect sensing generated by the magnet on the headphone. For example, if a pair of headphones are placed together, the magnets on the headphones will generate a magnetic field, which will trigger the headphone power-on command after Hall effect sensing. Or, if the headphones are placed with other objects that have magnets, the magnets on the headphones will generate a magnetic field with the other objects that have magnets, which will trigger the headphone power-on command after Hall effect sensing.
[0084] The aforementioned headphone power-on command can also be a command generated in response to a user's power-on operation on the headphone, such as pressing the headphone's power button or touching the power button on the headphone's touch panel.
[0085] In some embodiments, the above-mentioned detection of the headphone power-on command to obtain a first detection result includes:
[0086] In response to the headphone power-on command, acquire the first output signal output by the Hall switch within the target time period.
[0087] The aforementioned target time period is related to the time when the headphone power-on command is obtained.
[0088] The aforementioned target time period can cover the time when the headphone power-on command is acquired. The aforementioned target time period can be a preset first time to a preset second time period, wherein the first time is earlier than the time when the headphone power-on command is acquired, and the second time is later than the time when the headphone power-on command is acquired.
[0089] The time difference between the first time and the time of obtaining the headphone power-on command can be a preset time difference threshold. Similarly, the time difference between the second time and the time of obtaining the headphone power-on command can also be a preset time difference threshold. For example, if the time difference threshold is 2 seconds and the headphone power-on command is obtained at 12:00, then the first time is 11:58, the second time is 12:02, and the target time period is 11:58-12:02.
[0090] The first output signal mentioned above is the signal output by the Hall switch during the target time period.
[0091] The aforementioned Hall switch is typically installed inside the earphone housing hinge or charging case. The Hall switch is used to detect changes in magnetic field, and its output signal can be a digital level (such as a high level or a low level).
[0092] When the Hall switch output signal is at a digital level, when the magnet on the headphones approaches, the Hall switch outputs a low level (e.g., 0V), and returns to a high level (e.g., 1.8V) when the magnet moves away. Alternatively, when the magnet on the headphones approaches, the Hall switch outputs a high level, and returns to a low level when the magnet moves away. Therefore, the Hall switch output signal undergoes a signal transition when the magnet on the headphones approaches or moves away from the Hall switch; this transition is from high to low level, or from low to high level.
[0093] Therefore, a signal transition detection is performed on the first output signal to obtain the second detection result.
[0094] The second detection result mentioned above is used to indicate whether a signal transition has occurred in the first output signal.
[0095] The above-mentioned signal transition detection of the first output signal to obtain the second detection result can be to detect whether there is a high level and a low level in the first output signal. If there is a high level and a low level in the first output signal, the second detection result is determined to indicate that a signal transition has occurred in the first output signal. If there is no high level and a low level in the first output signal, the second detection result is determined to indicate that no signal transition has occurred in the first output signal.
[0096] If the second detection result indicates that the first output signal has not undergone a signal transition, the first detection sub-result is obtained.
[0097] The first detection result mentioned above is used to indicate that the headphone power-on command is a command other than the Hall switch command.
[0098] The aforementioned Hall switch command can be a headphone power-on command generated by the Hall effect caused by the magnet on the headphones when a pair of headphones are brought close to each other, or it can be a headphone power-on command generated by the Hall effect caused by the magnet on the headphones and other objects with magnets.
[0099] When the second detection result indicates that the first output signal has a signal transition, a second detection sub-result is obtained. The second detection sub-result is used to indicate that the headphone power-on command is a Hall switch command.
[0100] The aforementioned first detection result includes either the first detection sub-result or the second detection sub-result.
[0101] In this embodiment, by detecting signal transitions in the first output signal, it is possible to effectively identify whether the headphone power-on command is generated by a Hall switch.
[0102] In some embodiments, the above-mentioned response to a headphone power-on command, detecting the headphone power-on command and obtaining a first detection result, may further include:
[0103] In response to the headphone power-on command, the second output signal of the Hall sensor located in the headphone during the target time period is acquired.
[0104] The second output signal mentioned above is the signal output by the Hall sensor of the earphone during the target time period.
[0105] The Hall sensor described above is used to collect magnetic field signals and output an electrical signal corresponding to the magnetic field signal. The electrical signal can reflect the magnetic field strength.
[0106] The aforementioned target time period is related to the time when the aforementioned headphone power-on command is obtained.
[0107] The second output signal is subjected to signal change detection to obtain the first detection result.
[0108] In some embodiments, the above-described signal change detection of the second output signal to obtain the first detection result may include:
[0109] Based on the second output signal, determine the magnitude of the change in the magnetic field strength of the headphones during the target time period.
[0110] The above-mentioned determination of the change range of the magnetic field strength of the headphones within the target time period based on the second output signal can be achieved by determining the magnetic field strength at each moment within the target time period based on the second output signal, and determining the difference between the maximum and minimum magnetic field strength at each moment to obtain the change range of the magnetic field strength.
[0111] When the Hall effect is triggered by a Hall switch, the magnetic field strength detected by the Hall sensor will change significantly.
[0112] The magnitude of the change in magnetic field strength is detected by a jump in the magnitude of the change, and the third detection result is obtained.
[0113] The aforementioned jump in change range refers to a change range that exceeds a preset threshold.
[0114] The third detection result mentioned above is used to indicate whether the change in magnetic field strength is less than a preset threshold.
[0115] If the third detection result indicates that the change in magnetic field strength is less than a preset threshold, the first detection sub-result is obtained.
[0116] The first detection result mentioned above is used to indicate that the headphone power-on command is a command other than the Hall switch command.
[0117] The above preset thresholds can be set according to requirements.
[0118] If the third detection result indicates that the change in magnetic field strength is greater than or equal to a preset threshold, a second detection sub-result is obtained.
[0119] The second detection result mentioned above is used to indicate that the headphone power-on command is a Hall switch command.
[0120] The aforementioned first detection result includes either the first detection sub-result or the second detection sub-result.
[0121] In step S104, if the first detection result indicates that the headphone power-on command is a command other than the Hall switch command, then control the headphone to power on.
[0122] If the first test result indicates that the headphone power-on command is a Hall switch command, the headphone is disabled from powering on.
[0123] In this embodiment, when the earphones are outside the charging case and in a powered-off state, a first user operation on the earphones can be received. In response to the first user operation, the earphones are controlled to activate an anti-Hall switch power-on mode. While in this mode, in response to a power-on command, the earphone power-on command is detected to obtain a first detection result. This first detection result indicates whether the power-on command is a Hall switch command, where a Hall switch command is triggered by the earphone's Hall switch. If the first detection result indicates that the power-on command is a Hall switch command, the earphones are prevented from powering on. Thus, by further determining that the power-on command is a Hall switch command when it is detected, this application prevents the earphones from accidentally powering on when they are outside the charging case.
[0124] In some embodiments, after step S102, the method may further include: when the headphones are powered on, controlling the headphones to exit the anti-Hall touch power-on mode.
[0125] The above-mentioned control of the headphones to exit the anti-Hall effect power-on mode when the headphones are powered on can be achieved by controlling the headphones to exit the anti-Hall effect power-on mode when the headphones are detected to be powered on.
[0126] Alternatively, if the earbuds are detected to be in the charging case, the earbuds can be controlled to exit the anti-Hall effect power-on mode.
[0127] The aforementioned control of the earphones to exit the anti-Hall effect power-on mode when the earphones are detected to be in the charging case can be achieved by determining that the earphones are placed in the charging case and controlling the earphones to exit the anti-Hall effect power-on mode when the earphones are detected to be in the charging state.
[0128] The above-mentioned control of the earphones to exit the anti-Hall switch accidental power-on mode when the earphones are detected to be in the charging case can also be determined when the third output signal of the Hall switch in the charging case is detected to have a signal change, and the earphones are controlled to exit the anti-Hall switch accidental power-on mode.
[0129] In this embodiment, the anti-Hall effect accidental power-on mode can be exited after the earphones are powered on normally or placed in the charging case, so that the earphones can be used normally.
[0130] In some embodiments, there may be situations where the headphones are turned on by accidental touch and when they are turned on by a preset power-on operation. In this case, the headphone power-on command may include a first headphone power-on command triggered by the headphone's Hall switch and a second headphone power-on command triggered in response to the preset power-on operation. The preset power-on operation is a pre-set power-on operation, which may be that when the headphones are in the off state, the power button on the headphones is continuously pressed for a fourth fixed duration or the power button on the headphone's touch panel is continuously touched for a fifth fixed duration.
[0131] In some embodiments, upon receiving a headphone power-on command, in response to the headphone power-on command, it is determined whether a first headphone power-on command and a second headphone power-on command exist simultaneously. If both the first headphone power-on command and the second headphone power-on command exist simultaneously, it is determined whether to control the headphone to power on based on the priority of the first headphone power-on command and the second headphone power-on command.
[0132] The priority of the first headphone power-on command and the second headphone power-on command can be that the level of the second headphone power-on command is greater than the level of the first headphone power-on command. The above-mentioned determination of whether to control the headphone power-on based on the priority of the first headphone power-on command and the second headphone power-on command can be that if the level of the second headphone power-on command is greater than the level of the first headphone power-on command, then control the headphone power-on.
[0133] In one embodiment, the method steps for determining whether a first headphone power-on command exists can refer to the above-described method steps for detecting the headphone power-on command to obtain a first detection result.
[0134] Secondly, the aforementioned preset power-on operation can be performed by continuously pressing the power button on the headphones for a fourth fixed duration or continuously touching the power button on the touch panel of the headphones for a fifth fixed duration while the headphones are in the power-off state. In one embodiment, determining whether a second headphone power-on command exists can be done by acquiring the pressure deformation collected by the force sensor corresponding to the power button within a first target duration. If the pressure deformation collected within the first target duration is greater than a preset first target deformation threshold, it is determined that a second headphone power-on command exists. Alternatively, it can be done by acquiring the first target pressure signal collected by the force sensor corresponding to the power button within the first target duration. If all the collected first target pressure signals are greater than the preset first target pressure threshold, it is determined that a second headphone power-on command exists. Alternatively, the second target pressure signal collected by the force sensor corresponding to the power button on the touch panel within the second target duration is obtained. If all the collected second target pressure signals within the second target duration are greater than the preset second target pressure threshold, it is determined that a second headphone power-on command exists. Alternatively, the pressure deformation collected by the force sensor corresponding to the power button on the touch panel within the second target duration is obtained. If all the collected pressure deformations within the second target duration are greater than the preset second target deformation threshold, it is determined that a second headphone power-on command exists.
[0135] The first target duration and the second target duration are associated with the time when the headphone power-on command is received. The first target duration can be the time period closest to the time when the headphone power-on command is received, and the first target duration is equal to the fourth fixed duration. The second target duration can be the time period closest to the time when the headphone power-on command is received, and the second target duration is equal to the fifth fixed duration.
[0136] The first target deformation threshold, the first target pressure threshold, the second target deformation threshold, and the second target pressure threshold mentioned above can be set as needed.
[0137] If, through the above-described method steps for detecting the headphone power-on command and obtaining the first detection result, it is determined that a first headphone power-on command exists, and through the above-described step for determining whether a second headphone power-on command exists, it is determined that a second headphone power-on command exists, then the headphone power-on command includes both the first headphone power-on command and the second headphone power-on command.
[0138] This invention provides a complete process embodiment, specifically, when a user performs a normal power-off operation, after hearing the power-off prompt tone, the user can touch the touchpad within a preset time. When the user touches the touchpad twice within the preset time, the earphone recognizes the action and enters the anti-Hall switch accidental power-on mode. In this anti-Hall switch accidental power-on mode, when the earphone is woken up (i.e., receives the earphone power-on command), it is identified whether the earphone power-on command is a Hall switch wake-up command (i.e., a Hall switch command). If it is identified as a Hall switch wake-up command, the earphone will not be powered on to prevent the earphone's speaker magnet from accidentally powering it on.
[0139] After entering the anti-Hall switch accidental touch power-on mode, the headphones can only be powered on via a specific power-on signal, such as a specific touch signal, i.e., a normal power-on operation. After the headphones are powered on, they can exit the anti-Hall switch accidental touch power-on mode and then be powered on normally via Hall switch.
[0140] After entering the anti-Hall switch power-on mode, the earphones can also be exited using the charging case. When the charging case detects that the earphones have entered the charging case, it sends a command to the earphones to instruct them to exit the anti-Hall switch power-on mode. After the earphones receive the command and exit the anti-Hall switch power-on mode, they can be powered on normally using the Hall switch of the charging case.
[0141] Since charging is a function unique to the charging case, the earbuds themselves can determine that the earbuds are properly inserted into the case. Therefore, the earbuds exit the anti-Hall effect power-on mode and can be powered on normally when the earbuds are removed from the case again.
[0142] In this embodiment, the above method can effectively prevent the headphone speaker magnet from accidentally triggering the headphone to turn on. This method does not increase costs and is easy to use.
[0143] To better implement the above method, this application provides a headphone anti-accidental touch power-on management device, referring to... Figure 2 , Figure 2 This is a schematic diagram of the structure of the headphone anti-accidental touch power-on management device provided in the embodiments of this application. The headphone anti-accidental touch power-on management device 20 specifically includes:
[0144] The receiving module 201 is used to receive a first user operation on the earphones when the earphones are outside the charging case and the earphones are in a powered-off state.
[0145] The mode control module 202 is used to respond to the first user's operation and control the headphones to activate the anti-Hall effect accidental power-on mode.
[0146] The detection module 203 is used to detect the headphone power-on command in response to the headphone power-on command when the headphone is in the anti-Hall switch power-on mode, and obtain a first detection result. The first detection result is used to indicate whether the headphone power-on command is a Hall switch command, which is a command triggered by the Hall switch located in the headphone.
[0147] The power-on control module 204 is used to control the headphones to power on if the first detection result indicates that the headphone power-on command is a command other than the Hall switch command.
[0148] In cases where the first detection result indicates that the headphone power-on command is a Hall switch command, the headphone is prohibited from being powered on.
[0149] In some embodiments, the receiving module 201 is specifically used to: when the earphone is outside the charging case and the earphone is in a powered-off state, if a preset number of touch commands are received within a preset time period, then receive the first user operation on the earphone, wherein the touch commands are generated by the user touching the touch panel of the earphone.
[0150] In some embodiments, the receiving module 201 is specifically configured to: when the earphone is located outside the charging case and the earphone is in a powered-off state, acquire a first pressure signal and a second pressure signal corresponding to a preset first touch area and a second touch area of the earphone; obtain an identification result based on the first pressure signal and the second pressure signal, the identification result being used to indicate whether a first user operation on the earphone has been identified; and receive the first user operation on the earphone when the identification result indicates that a first user operation on the earphone has been identified.
[0151] In some embodiments, the first touch area and the second touch area are located in the arc-shaped area of the edge of the earphone. The receiving module 201 is specifically used to: obtain an identification sub-result when the first pressure signal and the second pressure signal meet preset requirements. The identification sub-result is used to indicate that a first user operation on the earphone has been identified. The preset requirement is that the duration for which both the first pressure signal and the second pressure signal are greater than a preset pressure sensing threshold is greater than a preset duration threshold. Based on the first pressure signal and the second pressure signal obtained within the duration, the determined movement trajectory is sliding along the arc-shaped edge of the earphone. The identification result includes the identification sub-result.
[0152] In some embodiments, the mode control module 202 is specifically configured to: in response to a headphone power-on command, acquire a first output signal output by a Hall switch within a target time period, the target time period being associated with the acquisition time of the headphone power-on command; perform signal transition detection on the first output signal to obtain a second detection result, the second detection result being used to indicate whether a signal transition has occurred in the first output signal; if the second detection result indicates that no signal transition has occurred in the first output signal, obtain a first detection sub-result, the first detection sub-result being used to indicate that the headphone power-on command is a command other than a Hall switch command; if the second detection result indicates that a signal transition has occurred in the first output signal, obtain a second detection sub-result, the second detection sub-result being used to indicate that the headphone power-on command is a Hall switch command, the first detection result including either the first detection sub-result or the second detection sub-result.
[0153] In some embodiments, the mode control module 202 is specifically configured to: in response to a headphone power-on command, acquire a second output signal of the Hall sensor located on the headphone during a target time period; the target time period is associated with the acquisition time of the headphone power-on command; and perform signal change detection on the second output signal to obtain a first detection result.
[0154] In some embodiments, the mode control module 202 is specifically configured to: determine the magnitude of change in the magnetic field strength of the headphones within a target time period based on the second output signal; perform magnitude change jump detection on the magnitude of change in magnetic field strength to obtain a third detection result, the third detection result being used to indicate whether the magnitude of change in magnetic field strength is less than a preset threshold; if the third detection result indicates that the magnitude of change in magnetic field strength is less than the preset threshold, obtain a first detection sub-result, the first detection sub-result being used to indicate that the headphone power-on command is a command other than a Hall switch command; if the third detection result indicates that the magnitude of change in magnetic field strength is greater than or equal to the preset threshold, obtain a second detection sub-result, the second detection sub-result being used to indicate that the headphone power-on command is a Hall switch command, and the first detection result includes either the first detection sub-result or the second detection sub-result.
[0155] The earphone's anti-accidental touch power-on management device also includes a mode exit module 205, which is used to control the earphone to exit the anti-Hall effect accidental touch power-on mode when the earphone is in the power-on state; or, when the earphone is detected to be in the charging case, control the earphone to exit the anti-Hall effect accidental touch power-on mode.
[0156] In some embodiments, the mode exit module 205 is specifically used to: determine that the earphones are placed in the charging case when the earphones are detected to be in a charging state, and control the earphones to exit the anti-Hall switch accidental power-on mode; or, determine that the earphones are placed in the charging case when the third output signal output by the Hall switch located in the earphones' charging case is detected to have a signal jump, and control the earphones to exit the anti-Hall switch accidental power-on mode.
[0157] The aforementioned device can prevent the earphones from being accidentally powered on when they are outside the charging case by further determining that the earphone power-on command is a Hall switch command.
[0158] Figure 3 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.
[0159] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.
[0160] Specifically, the processor 301 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0161] Memory 302 may include mass storage for data or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, memory 302 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 302 is non-volatile solid-state memory.
[0162] In some embodiments, memory 302 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Thus, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.
[0163] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any of the headphone anti-accidental touch power-on management methods in the above embodiments.
[0164] In one example, the electronic device may also include a communication interface 303 and a bus 310. For example, Figure 3As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.
[0165] The communication interface 303 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0166] Bus 310 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 310 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0167] This electronic device can achieve integration Figure 1 and Figure 2 The described method and device for preventing accidental power-on of headphones.
[0168] Furthermore, in conjunction with the headphone anti-accidental touch power-on management method in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the headphone anti-accidental touch power-on management methods in the above embodiments.
[0169] In conjunction with the headphone anti-accidental touch power-on management method in the above embodiments, this application also provides a computer program product. When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device implements the headphone anti-accidental touch power-on management method in the above embodiments.
[0170] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0171] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0172] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0173] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0174] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A method for preventing accidental power-on of headphones, characterized in that, The method includes: When the earbuds are outside the charging case and the earbuds are powered off, a first user operation on the earbuds is received. In response to the first user's operation, the headset is controlled to activate the anti-Hall effect accidental power-on mode; When the headphones are in the Hall effect anti-accidental power-on mode, in response to the headphone power-on command, the headphone power-on command is detected to obtain a first detection result. The first detection result is used to indicate whether the headphone power-on command is a Hall switch command, and the Hall switch command is a command triggered by the Hall switch located in the headphone. If the first detection result indicates that the headphone power-on command is any command other than the Hall switch command, then the headphone is powered on; wherein, if the first detection result indicates that the headphone power-on command is the Hall switch command, the headphone is disabled from being powered on. The step of responding to a headphone power-on command, detecting the headphone power-on command, and obtaining a first detection result includes: In response to a headphone power-on command, the system acquires a first output signal from the Hall switch during a target time period, the target time period being associated with the acquisition time of the headphone power-on command. The first output signal is subjected to signal transition detection to obtain a second detection result, which is used to indicate whether the first output signal has undergone a signal transition. If the second detection result indicates that the first output signal has not undergone a signal transition, a first detection sub-result is obtained. The first detection sub-result is used to indicate that the headphone power-on command is a command other than the Hall switch command. When the second detection result indicates that the first output signal has undergone a signal transition, a second detection sub-result is obtained. This second detection sub-result is used to indicate that the headphone power-on command is the Hall switch command. The first detection result includes either the first detection sub-result or the second detection sub-result.
2. The method according to claim 1, characterized in that, The step of responding to a headphone power-on command, detecting the headphone power-on command, and obtaining a first detection result includes: In response to a headphone power-on command, a second output signal of the Hall sensor located in the headphone is acquired during a target time period; the target time period is associated with the acquisition time of the headphone power-on command. The second output signal is subjected to signal change detection to obtain the first detection result.
3. The method according to claim 2, characterized in that, The step of detecting signal changes in the second output signal to obtain a first detection result includes: Based on the second output signal, determine the magnitude of the change in the magnetic field strength of the headphones during the target time period; The change in magnetic field strength is detected by a jump in the change range, and a third detection result is obtained. The third detection result is used to indicate whether the change in magnetic field strength is less than a preset threshold. If the third detection result indicates that the change in magnetic field strength is less than a preset threshold, a first detection sub-result is obtained. The first detection sub-result is used to indicate that the headphone power-on command is a command other than the Hall switch command. If the third detection result indicates that the change in magnetic field strength is greater than or equal to a preset threshold, a second detection sub-result is obtained. This second detection sub-result is used to indicate that the headphone power-on command is the Hall switch command. The first detection result includes either the first detection sub-result or the second detection sub-result.
4. The method according to claim 1, characterized in that, The step of receiving a first user operation on the earphones when the earphones are outside the charging case and the earphones are powered off includes: When the earbuds are outside the charging case and the earbuds are powered off, if a preset number of touch commands are received within a preset time period, the first user operation on the earbuds is received. The touch commands are generated by the user touching the touch panel of the earbuds.
5. The method according to claim 1, characterized in that, The step of receiving a first user operation on the earphones when the earphones are outside the charging case and the earphones are powered off includes: When the earphones are outside the charging case and the earphones are in the off state, acquire the first pressure signal and the second pressure signal corresponding to the preset first touch area and the second touch area of the earphones; Based on the first pressure signal and the second pressure signal, an identification result is obtained, which is used to indicate whether a first user operation on the headphones has been identified; If the recognition result indicates that a first user operation on the headset has been recognized, the first user operation on the headset is received.
6. The method according to claim 5, characterized in that, The first touch area and the second touch area are located in the arc-shaped area of the edge of the earphone. The step of obtaining the identification result based on the first pressure signal and the second pressure signal includes: If the first pressure signal and the second pressure signal meet preset requirements, an identification sub-result is obtained. The identification sub-result is used to indicate that a first user operation on the earphone has been identified. The preset requirements are that the duration for which both the first pressure signal and the second pressure signal are greater than a preset pressure sensing threshold is greater than a preset duration threshold, and the movement trajectory determined based on the first pressure signal and the second pressure signal obtained within the duration is an arc-shaped slide along the edge of the earphone. The identification result includes the identification sub-result.
7. The method according to claim 1, characterized in that, After activating the anti-Hall effect power-on mode, the method further includes: When the headphones are powered on, control the headphones to exit the anti-Hall effect accidental power-on mode; Alternatively, if the earphones are detected to be in the charging case, the earphones can be controlled to exit the anti-Hall effect power-on mode.
8. The method according to claim 7, characterized in that, The step of controlling the earphones to exit the anti-Hall effect power-on mode when the earphones are placed in the charging case includes: Upon detecting that the earphones have entered the charging state, determine that the earphones are placed in the charging case, and control the earphones to exit the anti-Hall touch power-on mode; Alternatively, if a signal transition is detected in the third output signal of the Hall switch located in the charging case of the earphones, it is determined that the earphones are placed in the charging case, and the earphones are controlled to exit the anti-Hall switch power-on mode.
9. An electronic device, characterized in that, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the headphone anti-accidental touch power-on management method as described in any one of claims 1-8.
Citation Information
Patent Citations
Earphone and earphone assembly
CN217240901U
