Mistaken touch prevention starting management method of earphone and electronic equipment

By enabling the Hall-effect prevention power-on mode and detecting the power-on command when the wireless headset is turned off, the problem of false triggering of the headset is solved, improving the user experience and battery efficiency.

CN120602830APending Publication Date: 2025-09-05SHENZHEN GRANDSUN ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510603280.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

When wireless earphones are placed, the Hall switch may be falsely triggered and turned on, resulting in unnecessary power consumption and a poor user experience.

Method used

When the headset is in the off state, the anti-Hall false touch power-on mode is turned on by receiving specific user operations, and the headset power-on command is detected in this mode to ensure that the power-on is allowed only when there is a non-Hall switch command to prevent false triggering.

Benefits of technology

This effectively avoids the wireless headset from being turned on accidentally due to the Hall switch being triggered when placed, improving the user experience and battery efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120602830A_ABST
    Figure CN120602830A_ABST
Patent Text Reader

Abstract

The invention discloses a mistaken touch prevention starting management method for an earphone and electronic equipment, and the method comprises the steps: responding to a first user operation when the earphone is located outside a charging box and is in a power-off state, controlling the earphone to start a Hall mistaken touch prevention starting mode, and controlling the earphone to start a Hall mistaken touch prevention starting mode when the earphone is in the Hall mistaken touch prevention starting mode; in response to the earphone power-on instruction, the earphone power-on instruction is detected, a first detection result is obtained, and when the first detection result indicates that the earphone power-on instruction is a Hall switch instruction, the earphone is forbidden to be powered on. Thus, when the earphone power-on instruction is recognized, the earphone is forbidden to be powered on under the condition that the earphone power-on instruction is further determined to be the Hall switch instruction, and the situation that the earphone is mistakenly triggered to be powered on under the condition that the earphone is located outside the charging box can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of headphone control technology, and in particular relates to a headphone anti-accidental-touch power-on management method and an electronic device. Background Art

[0002] Generally, wireless headphones use a Hall effect generated by a Hall switch to turn the headphones on and off. For example, when the Hall switch located in the wireless headphones approaches or moves away from the magnet in the charging box, the Hall voltage changes, causing the Hall switch of the wireless headphones to produce a Hall effect. Specifically, when the Hall switch of the wireless headphones approaches the magnet in the charging box, the wireless headphones generate a Hall voltage change based on the Hall switch and then enter the off state. When the Hall switch of the wireless headphones moves away from the magnet in the charging box, the headphones generate a Hall effect based on the Hall switch and then enter the on state again.

[0003] The design of using a Hall switch to turn the headset on and off is convenient for users, but because the earphone speakers also have magnets, when the earphones are turned off, if the earphones are placed together instead of in the charging box, the relative movement of the pair of earphones may cause the Hall effect to be falsely triggered, causing the earphones to be falsely triggered to turn on. Summary of the Invention

[0004] The embodiments of the present application provide a method for managing earphones' false power-on prevention and an electronic device, which can solve the problem of earphones falsely triggering and powering on due to false triggering of the Hall effect.

[0005] In a first aspect, an embodiment of the present application provides a method for managing earphones to prevent accidental power-on, the method comprising:

[0006] When the earphone is outside the charging box and the earphone is in a powered-off state, receiving a first user operation on the earphone;

[0007] In response to the first user operation, controlling the headset to turn on a Hall effect prevention power-on mode;

[0008] When the headset is in the Hall effect protection power-on mode, in response to a headset power-on instruction, detecting the headset power-on instruction to obtain a first detection result, where the first detection result is used to indicate whether the headset power-on instruction is a Hall effect switch instruction, where the Hall effect switch instruction is an instruction triggered by a Hall effect switch located in the headset;

[0009] When the first detection result indicates that the headset power-on instruction is an instruction other than the Hall switch instruction, the headset is controlled to power on.

[0010] Wherein, when the first detection result indicates that the headset power-on instruction is the Hall switch instruction, the headset is prohibited from being powered on.

[0011] In some embodiments, the above-mentioned response to the headset power-on instruction, detecting the headset power-on instruction to obtain a first detection result, includes: in response to the headset power-on instruction, obtaining the first output signal output by the Hall switch within a target time period, and the target time period is associated with the acquisition time of the headset power-on instruction; performing signal jump detection on the first output signal to obtain a second detection result, and the second detection result is used to indicate whether a signal jump occurs in the first output signal; when the second detection result indicates that the first output signal does not undergo a signal jump, obtaining a first detection sub-result, and the first detection sub-result is used to indicate that the headset power-on instruction is an instruction other than the Hall switch instruction; when the second detection result indicates that a signal jump occurs in the first output signal, obtaining a second detection sub-result, and the second detection sub-result is used to indicate that the headset power-on instruction is the Hall switch instruction, and the first detection result includes the first detection sub-result or the second detection sub-result.

[0012] In some embodiments, the above-mentioned response to the earphone power-on instruction, detecting the earphone power-on instruction to obtain a first detection result, includes: in response to the earphone power-on instruction, obtaining a second output signal of a Hall sensor located in the earphone during a target time period; the target time period is associated with the acquisition time of the earphone power-on instruction; performing signal change detection on the second output signal to obtain a first detection result.

[0013] In some embodiments, the above-mentioned signal change detection on the second output signal to obtain a first detection result includes: determining the amplitude of the change in the magnetic field strength of the headset within the target time period based on the second output signal; performing a change amplitude jump detection on the magnetic field strength change amplitude to obtain a third detection result, and the third detection result is used to indicate whether the magnetic field strength change amplitude is less than a preset threshold; when the third detection result indicates that the magnetic field strength change amplitude is less than the preset threshold, a first detection sub-result is obtained, and the first detection sub-result is used to indicate that the headset power-on instruction is an instruction other than the Hall switch instruction; when the third detection result indicates that the magnetic field strength change amplitude is greater than or equal to the preset threshold, a second detection sub-result is obtained, and the second detection sub-result is used to indicate that the headset power-on instruction is the Hall switch instruction, and the first detection result includes the first detection sub-result or the second detection sub-result.

[0014] In some embodiments, the above-mentioned receiving a first user operation on the headset when the headset is outside the charging box and the headset is in a powered-off state includes: when the headset is outside the charging box and the headset is in a powered-off state, if a preset number of touch instructions are received within a preset time period, then receiving the first user operation on the headset, the touch instruction being generated by the user touching the touch panel of the headset.

[0015] In some embodiments, the above-mentioned receiving a first user operation on the headset when the headset is outside the charging box and the headset is in a powered-off state includes: when the headset is outside the charging box and the headset is in a powered-off state, obtaining a first pressure signal and a second pressure signal corresponding to a preset first touch area and a second touch area of ​​the headset; obtaining a recognition result based on the first pressure signal and the second pressure signal, the recognition result being used to indicate whether the first user operation on the headset is recognized; and receiving the first user operation on the headset when the recognition result is used to indicate that the first user operation on the headset is recognized.

[0016] In some embodiments, the first touch area and the second touch area are located in the arc-shaped edge area of ​​the headset, and the recognition result is obtained based on the first pressure signal and the second pressure signal, including: when the first pressure signal and the second pressure signal meet preset requirements, an identification sub-result is obtained, and the identification sub-result is used to indicate that a first user operation on the headset is recognized, and the preset requirement is that the first pressure signal and the second pressure signal are both greater than a preset pressure sensing threshold for a duration greater than a preset duration threshold, and 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 headset, and the recognition result includes the identification sub-result.

[0017] In some embodiments, after the anti-Hall false touch power-on mode is turned on, the method further includes: controlling the headset to exit the anti-Hall false touch power-on mode when the headset is in the power-on state; or controlling the headset to exit the anti-Hall false touch power-on mode when it is detected that the headset is in the charging box.

[0018] In some embodiments, when the earphones are placed in the charging box, controlling the earphones to exit the anti-Hall false touch power-on mode includes: when it is recognized that the earphones have entered the charging state, determining that the earphones are placed in the charging box, and controlling the earphones to exit the anti-Hall false touch power-on mode; or, when it is recognized that there is a signal jump in the third output signal output by the Hall switch located in the charging box of the earphones, determining that the earphones are placed in the charging box, and controlling the earphones to exit the anti-Hall false touch power-on mode.

[0019] In a second aspect, an embodiment of the present application provides a headset anti-accidental-touch power-on management device, the device comprising:

[0020] a receiving module, configured to receive a first user operation on the headset when the headset is outside the charging box and the headset is in a powered-off state;

[0021] a mode control module, configured to control the headset to activate an anti-Hall false touch power-on mode in response to the first user operation;

[0022] a detection module, configured to, when the headset is in a Hall effect-proof power-on mode, detect the headset power-on instruction in response to a headset power-on instruction generated based on magnetic field induction, and obtain a first detection result, the first detection result being used to indicate whether the headset power-on instruction is a Hall effect switch instruction, the Hall effect switch instruction being an instruction triggered by a Hall effect switch of the headset;

[0023] a power-on control module, configured to control the headset to power on if the first detection result indicates that the headset power-on instruction is an instruction other than the Hall switch instruction,

[0024] Wherein, when the first detection result indicates that the headset power-on instruction is the Hall switch instruction, the headset is prohibited from being powered on.

[0025] In some embodiments, the above-mentioned receiving module is specifically used to: when the earphone is outside the charging box and the earphone is in the off state, if a preset number of touch instructions are received within a preset time period, then receive the first user operation on the earphone, and the touch instruction is generated by the user touching the touch panel of the earphone.

[0026] In some embodiments, the above-mentioned receiving module is specifically used to: when the earphone is outside the charging box and the earphone is in the off state, obtain the first pressure signal and the second pressure signal corresponding to the preset first touch area and the second touch area of ​​the earphone; obtain a recognition result based on the first pressure signal and the second pressure signal, and the recognition result is used to indicate whether the first user operation on the earphone is recognized; when the recognition result is used to indicate that the first user operation on the earphone is recognized, receive the first user operation on the earphone.

[0027] In some embodiments, the first touch area and the second touch area are located in the arc-shaped edge area of ​​the earphone, and the above-mentioned receiving module is specifically used to: when the first pressure signal and the second pressure signal meet the preset requirements, obtain an identification sub-result, and the identification sub-result is used to indicate that the first user operation on the earphone is recognized. The preset requirement is that the first pressure signal and the second pressure signal are both greater than the preset pressure sensing threshold for a duration greater than the preset duration threshold, and 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, and the recognition result includes the identification sub-result.

[0028] In some embodiments, the above-mentioned mode control module is specifically used to: in response to the earphone power-on instruction, obtain the first output signal output by the Hall switch within the target time period, and the target time period is associated with the acquisition time of the earphone power-on instruction; perform signal jump detection on the first output signal to obtain a second detection result, and the second detection result is used to indicate whether a signal jump occurs in the first output signal; when the second detection result indicates that the first output signal does not undergo a signal jump, obtain a first detection sub-result, and the first detection sub-result is used to indicate that the earphone power-on instruction is an instruction other than the Hall switch instruction; when the second detection result indicates that a signal jump occurs in the first output signal, obtain a second detection sub-result, and the second detection sub-result is used to indicate that the earphone power-on instruction is a Hall switch instruction, and the first detection result includes the first detection sub-result or the second detection sub-result.

[0029] In some embodiments, the above-mentioned mode control module is specifically used to: obtain a second output signal of a Hall sensor located in the earphone during a target time period in response to an earphone power-on instruction; the target time period is associated with the acquisition time of the earphone power-on instruction; and perform signal change detection on the second output signal to obtain a first detection result.

[0030] In some embodiments, the above-mentioned mode control module is specifically used to: determine the amplitude of change of the magnetic field strength of the headset within the target time period based on the second output signal; perform amplitude jump detection on the amplitude of change of the magnetic field strength to obtain a third detection result, and the third detection result is used to indicate whether the amplitude of change of the magnetic field strength is less than a preset threshold; when the third detection result indicates that the amplitude of change of the magnetic field strength is less than the preset threshold, obtain a first detection sub-result, and the first detection sub-result is used to indicate that the headset power-on instruction is an instruction other than a Hall switch instruction; when the third detection result indicates that the amplitude of change of the magnetic field strength is greater than or equal to the preset threshold, obtain a second detection sub-result, and the second detection sub-result is used to indicate that the headset power-on instruction is a Hall switch instruction, and the first detection result includes the first detection sub-result or the second detection sub-result.

[0031] The above-mentioned headset anti-accidental touch power-on management device also includes a mode exit module, which is used to control the headset to exit the anti-Hall accidental touch power-on mode when the headset is in the power-on state; or, when it is detected that the headset is in the charging box, control the headset to exit the anti-Hall accidental touch power-on mode.

[0032] In some embodiments, the above-mentioned mode exit module is specifically used to: when it is identified that the earphones enter the charging state, determine that the earphones are placed in the charging box, and control the earphones to exit the anti-Hall false touch power-on mode; or, when it is identified that there is a signal jump in the third output signal output by the Hall switch located in the charging box of the earphones, determine that the earphones are placed in the charging box, and control the earphones to exit the anti-Hall false touch power-on mode.

[0033] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0034] When the processor executes the computer program instructions, the headset anti-accidental touch power-on management method as described in the first aspect is implemented.

[0035] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the anti-accidental-touch power-on management method for headphones as described in the first aspect is implemented.

[0036] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the anti-accidental touch power-on management method for headphones as described in the first aspect.

[0037] The earphone anti-false touch power-on management method and electronic device of the embodiment of the present application can receive a first user operation on the earphone when the earphone is outside the charging box and the earphone is in the off state. In response to the first user operation, the earphone is controlled to start the anti-Hall false touch power-on mode. When the earphone is in the anti-Hall false touch power-on mode, the earphone power-on instruction is detected in response to the earphone power-on instruction generated based on magnetic field induction to obtain a first detection result. The first detection result is used to indicate whether the earphone power-on instruction is a Hall switch instruction. The Hall switch instruction is an instruction triggered by the Hall switch of the earphone. If the first detection result indicates that the earphone power-on instruction is a Hall switch instruction, the earphone is controlled to power on. If the first detection result indicates that the earphone power-on instruction is a Hall switch instruction, the earphone is prohibited from powering on. In this way, the present application can prevent the earphone from being falsely triggered to power on when the earphone is outside the charging box by further determining that the earphone power-on instruction is a Hall switch instruction when the earphone power-on instruction is identified. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0039] Figure 1 1 is a flow chart of a method for managing earphones to prevent accidental touch startup provided by an embodiment of the present application;

[0040] Figure 2 1 is a schematic diagram of the structure of the headset anti-accidental touch power-on management device provided in an embodiment of the present application;

[0041] Figure 3 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.

[0043] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.

[0044] In order to solve the related technical problems, the embodiments of the present application provide a method, device, equipment, computer storage medium and computer program product for preventing accidental touch startup of headphones. The following first introduces the method for preventing accidental touch startup of headphones provided by the embodiments of the present application.

[0045] Figure 1FIG. 1 shows a flow chart of a method for managing earphones to prevent accidental touch startup provided by an embodiment of the present application. Figure 1 As shown, the headset anti-accidental touch power-on management method specifically includes steps S101 to S104.

[0046] Step S101: When the earphone is outside the charging box and is powered off, a first user operation on the earphone is received.

[0047] In this step, the headset is in the off state. This may be because the headset controls the headset to shut down in response to a user's power-off operation. The headset may also be in the off state if the headset is not used and not connected to a device for a preset first fixed time period, where the headset automatically enters the off state. The first fixed time period may be 15 minutes, 30 minutes, or the like.

[0048] The above-mentioned shutdown operation can be that the user touches the touch panel (touchpad) of the headset, or presses the physical button of the headset (i.e., the power off button), or the user performs the shutdown setting through the app connected to the headset.

[0049] The user touching the touch panel of the headset may be the user continuously touching the touch panel of the headset within a preset second fixed time period. For example, the second fixed time period may be 3 seconds or 5 seconds.

[0050] The above-mentioned pressing of the physical button of the headset may be that the user continuously presses the physical button of the headset within a preset third fixed time length. For example, the above-mentioned third fixed time length may be 3 seconds or 5 seconds, etc.

[0051] When the user performs a normal shutdown operation, the headset can give a preset shutdown prompt to remind the user that the headset has entered the shutdown state. The preset shutdown prompt can be a shutdown prompt tone, a shutdown prompt light, etc.

[0052] The above-mentioned first user operation is a set specific operation, and the above-mentioned first user operation is an operation for instructing the headset to turn on the anti-Hall false touch power-on mode.

[0053] In some embodiments, the above-mentioned first user operation may be that the user touches the touch panel of the headset a preset number of times within a preset time period. The above-mentioned step S101 may include: when the headset is outside the charging box and the headset is in the off state, if a preset number of touch instructions are received within a preset time period, then the first user operation on the headset is received.

[0054] The touch command is 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 can be 2 times, 3 times, etc. The preset duration and the preset number can be set according to needs.

[0055] The above-mentioned touch instructions received a preset number of times within the preset time length may be receiving touch instructions. When the touch instructions are received a preset number of times, it is determined whether the interval between the earliest received touch instruction and the last received touch instruction in the preset number of touch instructions exceeds the preset time length. If the interval length does not exceed the preset time length, it is determined that the touch instructions are received a preset number of times within the preset time length. If the interval length exceeds the preset time length, it is determined that the touch instructions are not received a preset number of times within the preset time length.

[0056] The above-mentioned receiving of the touch instruction may be performing touch instruction recognition in a preset manner, and when the touch instruction is recognized, it is determined that the touch instruction is received.

[0057] The aforementioned preset method may be capacitive touch detection or pressure sensing detection, etc.

[0058] If the preset method is capacitive touch detection, touch command recognition is performed using the preset method. This can involve obtaining the capacitance value collected by the headset's capacitive sensor and determining that a touch command has been recognized when the capacitance value changes by reaching a preset target threshold. 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, and 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, touch command recognition is performed using the preset method, which may include obtaining a pressure deformation variable of a force-sensitive sensor of the headset. When the pressure deformation variable reaches a preset deformation threshold, recognition of the touch command is determined. The force-sensitive sensor may 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 instruct to enable the anti-Hall false touch startup mode, it is possible to prevent the user from accidentally triggering the enabling of the anti-Hall false touch startup mode.

[0061] In some embodiments, the above step S101 may further include:

[0062] When the earphone is outside the charging box and is in a powered-off state, a first pressure signal and a second pressure signal corresponding to the preset first touch area and the second touch area of ​​the earphone are obtained.

[0063] The first touch area and the second touch area may be located outside the earphone, and the positions of the first touch area and the second touch area may be convenient for the user to touch with the thumb and index finger.

[0064] The above-mentioned acquisition of the first pressure signal and the second pressure signal corresponding to the preset first touch area and the second touch area of ​​the earphone can be the acquisition of the first pressure signal collected by the force sensitive sensor of the first touch area, and the acquisition of the second pressure signal collected by the force sensitive sensor of the second touch area.

[0065] The force-sensitive sensor may be a pressure sensor, a strain gauge, or the like.

[0066] An identification result is obtained according to the first pressure signal and the second pressure signal.

[0067] The above recognition result is used to indicate whether the first user operation on the headset is recognized.

[0068] In a case where the recognition result indicates that a first user operation on the headset is recognized, the first user operation on the headset is received.

[0069] The recognition result obtained based on the first pressure signal and the second pressure signal can be a determination of whether the movement trajectory determined based on the first pressure signal and the second pressure signal conforms to a preset movement trajectory, and a recognition result is obtained based on the determination result, wherein the determination result is used to indicate whether the movement trajectory determined based on the first pressure signal and the second pressure signal conforms to the preset movement trajectory. When the determination result is that the movement trajectory determined based on the first pressure signal and the second pressure signal conforms to the preset movement trajectory, an identification sub-result is obtained, and the identification sub-result is used to indicate that the first user operation on the headset has been recognized. When the determination result is that the movement trajectory determined based on the first pressure signal and the second pressure signal does not conform to the preset movement trajectory, an identification result is obtained indicating that the first user operation on the headset has not been recognized. The preset movement trajectory is a movement trajectory set to characterize the first user operation, and the recognition result includes the identification sub-result.

[0070] In this embodiment, by setting a specific complex operation as the first user operation to instruct to enable the anti-Hall false touch startup mode, it is possible to better prevent the user from accidentally triggering the enabling of the anti-Hall false touch startup mode.

[0071] In some embodiments, the first touch area and the second touch area are located in an arc-shaped edge area of ​​the headset, and obtaining the recognition result based on the first pressure signal and the second pressure signal may include:

[0072] When the first pressure signal and the second pressure signal meet the preset requirements, an identification sub-result is obtained.

[0073] The above-mentioned recognition sub-result is used to indicate that the first user operation on the headset is recognized, and the above-mentioned recognition result includes the recognition sub-result.

[0074] The above-mentioned preset requirements are that the duration during which the first pressure signal and the second pressure signal are both greater than the preset pressure sensing threshold is greater than the preset duration threshold, and based on the first pressure signal and the second pressure signal obtained during the duration, the determined movement trajectory is an arc-shaped sliding along the edge of the earphone.

[0075] The preset pressure sensing threshold may be a critical value for identifying that the earphone is pressed, and the preset pressure sensing threshold may be set as required.

[0076] In the above-mentioned case where the first pressure signal and the second pressure signal meet the preset requirements, an identification sub-result is obtained. The target first pressure signal and the target second pressure signal that are greater than the preset pressure sensing threshold at the same time are obtained from the first pressure signal and the second pressure signal, and the difference between the earliest moment and the last moment of the collection time corresponding to the target first pressure signal or the target second pressure signal is determined to obtain 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, an 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 to obtain an identification result. The pressure signal can be used to effectively identify the movement trajectory of the user's finger to effectively identify whether the user has given the first user operation to turn on the anti-Hall false touch power-on mode.

[0078] Step S102: In response to the first user operation, the headset is controlled to start a Hall-effect prevention power-on mode.

[0079] The above-mentioned anti-Hall false touch power-on mode is a mode in which the headphone power-on instruction is detected when the headphone power-on instruction generated based on magnetic field induction is received, and after identifying that the headphone power-on instruction is an instruction other than the Hall switch instruction, the headphone is controlled to prohibit powering on.

[0080] When the headset enters the anti-Hall false touch power-on mode, the headset can give a preset anti-Hall false touch power-on mode startup prompt to remind the user that the headset has entered the anti-Hall false touch power-on mode. The preset shutdown prompt can be to turn on the prompt sound, turn on the prompt light, etc.

[0081] Step S103: When the headset is in the Hall-effect prevention power-on mode, responding to the headset power-on instruction, detecting the headset power-on instruction to obtain a first detection result.

[0082] The first detection result is used to indicate whether the headset power-on instruction is a Hall switch instruction, and the Hall switch instruction is an instruction triggered by a Hall switch located in the headset.

[0083] The above-mentioned headphone power-on command can be a headphone power-on command triggered by the Hall induction generated by the magnet on the headphone. For example, when a pair of headphones are placed together, the magnets on the pair of headphones generate magnetic field induction, which triggers the headphone power-on command after the Hall induction. For another example, when the headphones are placed together with other objects with magnets, the magnets on the headphones generate magnetic field induction with the other objects with magnets, which triggers the headphone power-on command after the Hall induction.

[0084] The above-mentioned headset power-on instruction may also be an instruction generated in response to a power-on operation performed by the user on the headset, and the above-mentioned power-on operation may be pressing a power-on button of the headset or touching a power-on key on a touch panel of the headset.

[0085] In some embodiments, the detecting of the headset power-on instruction to obtain the first detection result includes:

[0086] In response to a headset power-on instruction, a first output signal output by the Hall switch within a target time period is acquired.

[0087] The above target period is associated with the time when the headset power-on instruction is obtained.

[0088] The above-mentioned target time period may cover the time for obtaining the headphone power-on instruction, and the above-mentioned target time period may be a period from a preset first time to a preset second time, wherein the first time is earlier than the time for obtaining the headphone power-on instruction, and the second time is later than the time for obtaining the headphone power-on instruction.

[0089] The time difference between the first time and the time when the headset power-on command is obtained can be a preset time difference threshold, and the time difference between the second time and the time when the headset power-on command is obtained can also be a preset time difference threshold. For example, if the time difference threshold is 2 seconds and the time when the headset power-on command is obtained is 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 is a signal output by the Hall switch within a target period.

[0091] The above-mentioned Hall switch is usually installed on the earphone cavity shaft or inside the charging box. The above-mentioned Hall switch is used to detect changes in the magnetic field. The output signal of the above-mentioned Hall switch can be a digital level (such as high level or low level).

[0092] When the output signal of the Hall switch is a digital level, when the magnet on the earphone approaches, the Hall switch outputs a low level (such as 0V), and when the magnet on the earphone moves away, it returns to a high level (such as 1.8V). Alternatively, when the magnet on the earphone approaches, the Hall switch outputs a high level, and when the magnet on the earphone moves away, it returns to a low level. As can be seen, when the magnet on the earphone approaches the Hall switch or moves away from the Hall switch, the output signal of the Hall switch will undergo a signal transition, and the above signal transitions are from a high level to a low level, or from a low level to a high level.

[0093] Therefore, a signal transition detection is performed on the first output signal to obtain a second detection result.

[0094] The second detection result is used to indicate whether a signal jump occurs in the first output signal.

[0095] The above-mentioned signal jump detection on the first output signal to obtain the second detection result can be to detect whether there are high levels and low levels in the first output signal. When there are high levels and low levels in the first output signal, the second detection result is determined to indicate that a signal jump has occurred in the first output signal. When there are no high levels and low levels in the first output signal, the second detection result is determined to indicate that no signal jump has occurred in the first output signal.

[0096] When the second detection result indicates that no signal transition occurs in the first output signal, a first detection sub-result is obtained.

[0097] The first detection sub-result is used to indicate that the earphone power-on instruction is an instruction other than a Hall switch instruction.

[0098] The Hall switch instruction can be a headphone power-on instruction generated by the Hall effect caused by the magnet on the headphone when a pair of headphones are close to each other, or it can be a headphone power-on instruction generated by the Hall effect caused by the magnet on the headphone and other objects with magnets.

[0099] When the second detection result indicates that a signal jump occurs in the first output signal, a second detection sub-result is obtained, and the second detection sub-result is used to indicate that the earphone power-on instruction is a Hall switch instruction.

[0100] The first detection result includes a first detection sub-result or a second detection sub-result.

[0101] In this embodiment, by performing signal transition detection on the first output signal, it can be effectively identified whether the earphone power-on instruction is generated by the Hall switch.

[0102] In some embodiments, the detecting the headset power-on instruction in response to the headset power-on instruction to obtain a first detection result may further include:

[0103] In response to the headset power-on instruction, a second output signal of a Hall sensor located in the headset during a target period is acquired.

[0104] The second output signal is a signal output by the Hall sensor of the earphone during the target period.

[0105] The Hall sensor is used to collect magnetic field signals and output electrical signals corresponding to the magnetic field signals. The electrical signals can reflect the strength of the magnetic field.

[0106] The target time period is associated with the time when the headset power-on instruction is obtained.

[0107] A signal change detection is performed on the second output signal to obtain a first detection result.

[0108] In some embodiments, performing signal change detection on the second output signal to obtain the first detection result may include:

[0109] The magnitude of the change in the magnetic field strength of the earphone within the target time period is determined according to the second output signal.

[0110] The above-mentioned determination of the variation amplitude of the magnetic field strength of the earphone within the target time period based on the second output signal may be performed 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 magnetic field strength and the minimum magnetic field strength at each moment to obtain the variation amplitude of the magnetic field strength.

[0111] When the Hall effect is triggered by the Hall switch, the magnetic field strength detected by the Hall sensor will change significantly.

[0112] A change amplitude jump detection is performed on the change amplitude of the magnetic field intensity to obtain a third detection result.

[0113] The above-mentioned change amplitude jump refers to the change amplitude being greater than a preset threshold.

[0114] The third detection result is used to indicate whether the variation of the magnetic field intensity is less than a preset threshold.

[0115] When the third detection result indicates that the amplitude of the change in the magnetic field intensity is less than a preset threshold, the first detection sub-result is obtained.

[0116] The first detection sub-result is used to indicate that the earphone power-on instruction is an instruction other than a Hall switch instruction.

[0117] The above preset thresholds can be set according to requirements.

[0118] When the third detection result indicates that the amplitude of the change in the magnetic field intensity is greater than or equal to the preset threshold, a second detection sub-result is obtained.

[0119] The second detection sub-result is used to indicate that the headset power-on instruction is a Hall switch instruction.

[0120] The first detection result includes a first detection sub-result or a second detection sub-result.

[0121] Step S104 : When the first detection result indicates that the headset power-on instruction is an instruction other than the Hall switch instruction, the headset is controlled to be powered on.

[0122] When the first detection result indicates that the headset power-on instruction is a Hall switch instruction, the headset is prohibited from being powered on.

[0123] In an embodiment of the present application, when the earphones are outside the charging box and the earphones are in a powered-off state, a first user operation on the earphones is received. In response to the first user operation, the earphones are controlled to activate an anti-Hall false-touch power-on mode. When the earphones are in the anti-Hall false-touch power-on mode, the earphones are detected in response to the earphone power-on instruction to obtain a first detection result. The first detection result is used to indicate whether the earphone power-on instruction is a Hall switch instruction. The Hall switch instruction is an instruction triggered by the Hall switch of the earphones. Wherein, if the first detection result indicates that the earphone power-on instruction is a Hall switch instruction, the earphones are prohibited from powering on. In this way, the present application can prevent the earphones from being mistakenly triggered to power on when the earphones are outside the charging box by further determining that the earphone power-on instruction is a Hall switch instruction when the earphone power-on instruction is identified.

[0124] In some embodiments, after the above step S102, the method may further include: when the headset is in the power-on state, controlling the headset to exit the anti-Hall false touch power-on mode.

[0125] When the headset is in the powered-on state, controlling the headset to exit the anti-Hall false touch power-on mode may be controlling the headset to exit the anti-Hall false touch power-on mode when it is recognized that the headset is in the powered-on state.

[0126] Alternatively, when the headset is detected to be in the charging box, the headset is controlled to exit the anti-Hall false touch power-on mode.

[0127] The above-mentioned control of the earphones to exit the anti-Hall false touch power-on mode when it is detected that the earphones are in the charging box can be, when it is recognized that the earphones have entered the charging state, determining that the earphones are placed in the charging box, and controlling the earphones to exit the anti-Hall false touch power-on mode.

[0128] The above-mentioned control of the earphones to exit the anti-Hall false touch power-on mode when it is detected that the earphones are in the charging box can also be carried out when it is identified that there is a signal jump in the third output signal output by the Hall switch located in the charging box of the earphones. It is determined that the earphones are placed in the charging box and the earphones are controlled to exit the anti-Hall false touch power-on mode.

[0129] In this embodiment, after the earphones are turned on in a normal way or placed in a charging box, the anti-Hall false touch power-on mode can be exited so that the earphones can be used normally.

[0130] In some embodiments, there may be situations where the earphones are turned on by accidental touch and are turned on by a preset power-on operation. At this time, the earphone power-on instruction may include a first earphone power-on instruction triggered by the Hall switch of the earphone and a second earphone power-on instruction triggered in response to the preset power-on operation. The above-mentioned preset power-on operation is a pre-set power-on operation. The power-on operation can be that the earphone is in the off state, and the power-on button of the earphone is continuously pressed within a fourth fixed time period or the power-on button on the touch panel of the earphone is continuously touched within a fifth fixed time period.

[0131] In some embodiments, after receiving the earphone power-on command, in response to the earphone power-on command, it is determined whether the first earphone power-on command and the second earphone power-on command exist at the same time. If the first earphone power-on command and the second earphone power-on command exist at the same time, it is determined whether to control the earphone to be powered on based on the priority of the first earphone power-on command and the second earphone power-on command.

[0132] The priority of the first headphone power-on instruction and the second headphone power-on instruction may be that the level of the second headphone power-on instruction is greater than the level of the first headphone power-on instruction. The above-mentioned determination of whether to control the headphone power-on according to the priority of the first headphone power-on instruction and the second headphone power-on instruction may be that if the level of the second headphone power-on instruction is greater than the level of the first headphone power-on instruction, the headphone power-on is controlled.

[0133] In one embodiment, the method steps for determining whether the headset power-on instruction includes the first headset power-on instruction may refer to the above-mentioned method steps for detecting the headset power-on instruction to obtain the first detection result.

[0134] Secondly, the above-mentioned preset power-on operation can be that when the headset is in the off state, the power-on button of the headset is continuously pressed within a fourth fixed time period or the power-on button on the touch panel of the headset is continuously touched within a fifth fixed time period. In one embodiment, it is determined whether there is a second headset power-on instruction. The method can be to obtain the pressure deformation variable collected by the force-sensitive sensor corresponding to the power-on button within a first target time period, and determine that the second headset power-on instruction exists when the pressure deformation variables collected within the first target time period are all greater than the preset first target deformation threshold, or obtain the first target pressure signal collected by the force-sensitive sensor corresponding to the power-on button within the first target time period, and determine that the second headset power-on instruction exists. When the collected first target pressure signals are all greater than the preset first target pressure threshold, it is determined that there is a second earphone power-on instruction. Alternatively, the second target pressure signals collected by the force-sensitive sensor corresponding to the power button on the touch panel within the second target time period are obtained, and when the second target pressure signals collected within the second target time period are all greater than the preset second target pressure threshold, it is determined that there is a second earphone power-on instruction. Alternatively, the pressure deformation amount collected by the force-sensitive sensor corresponding to the power button on the touch panel within the second target time period is obtained, and when the pressure deformation amount collected within the second target time period is all greater than the preset second target deformation threshold, it is determined that there is a second earphone power-on instruction.

[0135] The above-mentioned first target duration and second target duration are associated with the moment when the earphone power-on command is received. The above-mentioned first target duration can be the time period closest to the moment when the earphone power-on command is received, and the first target duration is equal to the fourth fixed duration. The above-mentioned second target duration can be the time period closest to the moment when the earphone 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 can be set as required.

[0137] In the method step of obtaining the first detection result by detecting the headphone power-on instruction through the above-mentioned detection, it is determined that there is a first headphone power-on instruction, and in the case of determining that there is a second headphone power-on instruction through the above-mentioned step of determining whether there is a second headphone power-on instruction, it is determined that the headphone power-on instruction includes the first headphone power-on instruction and the second headphone power-on instruction.

[0138] An embodiment of the present invention provides a complete process embodiment. Specifically, when the user performs a normal shutdown operation, after hearing the shutdown prompt tone, the user can touch the touch panel within a preset time. When the user touches the touch panel twice within the preset time, the headset recognizes the action and enters an anti-Hall false touch power-on mode. In this anti-Hall false touch power-on mode, when the headset is awakened (i.e., receives a headset power-on command), it is identified whether the headset 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 headset will not be turned on to prevent the headset from being accidentally turned on by the speaker magnet of the headset.

[0139] After entering the anti-Hall false touch power-on mode, the headset can only be powered on by a specific power-on signal, such as a specific touch signal, that is, a normal power-on operation. After the headset is powered on, it exits the anti-Hall false touch power-on mode and can be powered on by a normal Hall switch again.

[0140] After entering the anti-Hall false touch power-on mode, you can also use the charging box to exit the anti-Hall false touch power-on mode. When the earphones are recognized to have entered the charging box, the charging box sends a command to the earphones to instruct them to exit the anti-Hall false touch power-on mode. After receiving the command, the earphones exit the anti-Hall false touch power-on mode, and you can use the Hall switch of the charging box to start up normally.

[0141] Because charging is a unique function of the charging box, the earphones themselves can determine that the earphones have been normally placed in the compartment, so the earphones exit the anti-Hall false touch power-on mode, and can be powered on normally when the earphones are taken out of the compartment again.

[0142] In this embodiment, the above method can effectively prevent the speaker magnet of the earphone from accidentally triggering the earphone to turn on. This method does not increase the cost and is easy to use.

[0143] In order to better implement the above method, the embodiment of the present application provides a headset anti-accidental touch power-on management device, referring to Figure 2 , Figure 2 This is a schematic diagram of the structure of the headset anti-accidental touch power-on management device provided in an embodiment of the present application. The headset anti-accidental touch power-on management device 20 specifically includes:

[0144] The receiving module 201 is configured to receive a first user operation on the headset when the headset is outside the charging box and is powered off.

[0145] The mode control module 202 is configured to control the headset to enable a Hall effect prevention power-on mode in response to a first user operation.

[0146] The detection module 203 is used to detect the headphone power-on instruction in response to the headphone power-on instruction when the headphone is in the anti-Hall false touch power-on mode, and obtain a first detection result. The first detection result is used to indicate whether the headphone power-on instruction is a Hall switch instruction. The Hall switch instruction is an instruction triggered by a Hall switch located in the headphone.

[0147] The power-on control module 204 is configured to control the headset to power on if the first detection result indicates that the headset power-on instruction is an instruction other than a Hall switch instruction.

[0148] Wherein, when the first detection result indicates that the headset power-on instruction is a Hall switch instruction, the headset is prohibited from being powered on.

[0149] In some embodiments, the above-mentioned receiving module 201 is specifically used to: when the earphone is outside the charging box and the earphone is in the off state, if a preset number of touch instructions are received within a preset time period, then a first user operation on the earphone is received, and the touch instruction is generated by the user touching the touch panel of the earphone.

[0150] In some embodiments, the above-mentioned receiving module 201 is specifically used to: when the earphone is outside the charging box and the earphone is in the off state, obtain the first pressure signal and the second pressure signal corresponding to the preset first touch area and the second touch area of ​​the earphone; obtain a recognition result based on the first pressure signal and the second pressure signal, and the recognition result is used to indicate whether the first user operation on the earphone is recognized; when the recognition result is used to indicate that the first user operation on the earphone is recognized, receive the first user operation on the earphone.

[0151] In some embodiments, the first touch area and the second touch area are located in the arc-shaped edge area of ​​the earphone, and the above-mentioned receiving module 201 is specifically used to: when the first pressure signal and the second pressure signal meet the preset requirements, obtain an identification sub-result, and the identification sub-result is used to indicate that the first user operation on the earphone is recognized. The preset requirement is that the first pressure signal and the second pressure signal are both greater than the preset pressure sensing threshold for a duration greater than the preset duration threshold, and 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, and the recognition result includes the identification sub-result.

[0152] In some embodiments, the above-mentioned mode control module 202 is specifically used to: in response to the earphone power-on instruction, obtain the first output signal output by the Hall switch within the target time period, and the target time period is associated with the acquisition time of the earphone power-on instruction; perform signal jump detection on the first output signal to obtain a second detection result, and the second detection result is used to indicate whether a signal jump occurs in the first output signal; when the second detection result indicates that the first output signal does not undergo a signal jump, obtain a first detection sub-result, and the first detection sub-result is used to indicate that the earphone power-on instruction is an instruction other than the Hall switch instruction; when the second detection result indicates that a signal jump occurs in the first output signal, obtain a second detection sub-result, and the second detection sub-result is used to indicate that the earphone power-on instruction is a Hall switch instruction, and the first detection result includes the first detection sub-result or the second detection sub-result.

[0153] In some embodiments, the above-mentioned mode control module 202 is specifically used to: obtain a second output signal of the Hall sensor located in the earphone during a target time period in response to an earphone power-on instruction; the target time period is associated with the acquisition time of the earphone power-on instruction; and perform signal change detection on the second output signal to obtain a first detection result.

[0154] In some embodiments, the above-mentioned mode control module 202 is specifically used to: determine the amplitude of change of the magnetic field strength of the headset within the target time period based on the second output signal; perform amplitude jump detection on the amplitude of change of the magnetic field strength to obtain a third detection result, and the third detection result is used to indicate whether the amplitude of change of the magnetic field strength is less than a preset threshold; when the third detection result indicates that the amplitude of change of the magnetic field strength is less than the preset threshold, obtain a first detection sub-result, and the first detection sub-result is used to indicate that the headset power-on instruction is an instruction other than a Hall switch instruction; when the third detection result indicates that the amplitude of change of the magnetic field strength is greater than or equal to the preset threshold, obtain a second detection sub-result, and the second detection sub-result is used to indicate that the headset power-on instruction is a Hall switch instruction, and the first detection result includes the first detection sub-result or the second detection sub-result.

[0155] The headset's anti-accidental-touch power-on management device also includes a mode exit module 205, which is used to control the headset to exit the anti-Hall accidental-touch power-on mode when the headset is in the power-on state; or, when it is detected that the headset is in the charging box, control the headset to exit the anti-Hall accidental-touch power-on mode.

[0156] In some embodiments, the above-mentioned mode exit module 205 is specifically used to: when it is identified that the earphones have entered the charging state, determine that the earphones are placed in the charging box, and control the earphones to exit the anti-Hall false touch power-on mode; or, when it is identified that the third output signal output by the Hall switch located in the charging box of the earphones has a signal jump, determine that the earphones are placed in the charging box, and control the earphones to exit the anti-Hall false touch power-on mode.

[0157] The above-mentioned device can, when identifying the earphone power-on instruction, further determine that the earphone power-on instruction is a Hall switch instruction, and the earphone is prohibited from powering on, thereby preventing the earphone from being mistakenly triggered to power on when the earphone is outside the charging box.

[0158] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present 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), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0161] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 302 may include removable or non-removable (or fixed) media. Where appropriate, the memory 302 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory.

[0162] In some embodiments, the memory 302 may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, generally, the 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 an aspect of the present disclosure.

[0163] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any one of the earphone anti-accidental touch power-on management methods in the above embodiments.

[0164] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 3As shown, the processor 301 , the memory 302 , and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0165] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0166] Bus 310 comprises hardware, software or both, couples the parts of electronic equipment to each other.For example, and not limitation, bus can comprise accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations.In suitable cases, bus 310 can comprise one or more buses.Although the present application embodiment describes and shows specific bus, the application considers any suitable bus or interconnection.

[0167] The electronic device can be combined Figure 1 and Figure 2 The invention describes a method and device for managing earphones to prevent accidental touch startup.

[0168] In addition, in conjunction with the headset anti-accidental-touch power-on management method in the above-mentioned embodiments, embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the headset anti-accidental-touch power-on management methods in the above-mentioned embodiments is implemented.

[0169] In combination with the anti-accidental-touch power-on management method for headphones in the above-mentioned embodiment, an embodiment of the present application also provides a computer program product. When the instructions in the computer program product are executed by the processor of an electronic device, the electronic device implements the anti-accidental-touch power-on management method for headphones in the above-mentioned embodiment.

[0170] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present 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 the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0172] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, 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] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram 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 device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. 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 box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0174] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.

Claims

1. A method for preventing accidental power-on of headphones, characterized in that: The method comprises: When the earphone is outside the charging box and the earphone is in a powered-off state, receiving a first user operation on the earphone; In response to the first user operation, controlling the headset to turn on a Hall effect prevention power-on mode; When the headset is in the Hall effect protection power-on mode, in response to a headset power-on instruction, detecting the headset power-on instruction to obtain a first detection result, where the first detection result is used to indicate whether the headset power-on instruction is a Hall effect switch instruction, where the Hall effect switch instruction is an instruction triggered by a Hall effect switch located in the headset; When the first detection result indicates that the headset power-on instruction is an instruction other than the Hall switch instruction, the headset is controlled to power on. Wherein, when the first detection result indicates that the headset power-on instruction is the Hall switch instruction, the headset is prohibited from being powered on.

2. The method according to claim 1, characterized in that The step of detecting the headset power-on instruction in response to the headset power-on instruction to obtain a first detection result includes: In response to an earphone power-on instruction, acquiring a first output signal output by the Hall switch within a target time period, where the target time period is associated with a time when the earphone power-on instruction is acquired; Performing a signal transition detection on the first output signal to obtain a second detection result, where the second detection result is used to indicate whether a signal transition occurs in the first output signal; When the second detection result indicates that the first output signal does not undergo a signal transition, obtaining a first detection sub-result, where the first detection sub-result is used to indicate that the headset power-on instruction is an instruction other than the Hall switch instruction; When the second detection result indicates that the first output signal has a signal jump, a second detection sub-result is obtained, and the second detection sub-result is used to indicate that the headset power-on instruction is the Hall switch instruction. The first detection result includes the first detection sub-result or the second detection sub-result.

3. The method according to claim 1, characterized in that The step of detecting the headset power-on instruction in response to the headset power-on instruction to obtain a first detection result includes: In response to an earphone power-on instruction, obtaining a second output signal of a Hall sensor located in the earphone during a target time period; the target time period is associated with a time when the earphone power-on instruction is obtained; A signal change detection is performed on the second output signal to obtain a first detection result.

4. The method according to claim 3, characterized in that The performing signal change detection on the second output signal to obtain a first detection result includes: determining, according to the second output signal, a change amplitude of the magnetic field intensity of the headset within the target time period; Performing a change amplitude jump detection on the change amplitude of the magnetic field intensity to obtain a third detection result, wherein the third detection result is used to indicate whether the change amplitude of the magnetic field intensity is less than a preset threshold; When the third detection result indicates that the amplitude of the change in the magnetic field intensity is less than a preset threshold, obtaining a first detection sub-result, wherein the first detection sub-result is used to indicate that the headset power-on instruction is an instruction other than the Hall switch instruction; When the third detection result indicates that the amplitude of the change in the magnetic field strength is greater than or equal to a preset threshold, a second detection sub-result is obtained, and the second detection sub-result is used to indicate that the headset power-on instruction is the Hall switch instruction. The first detection result includes the first detection sub-result or the second detection sub-result.

5. The method according to claim 1, wherein The step of receiving a first user operation on the headset when the headset is outside the charging box and the headset is in a powered-off state includes: When the earphone is outside the charging box and is in the off state, if a preset number of touch instructions are received within a preset time period, a first user operation on the earphone is received, and the touch instruction is generated by the user touching the touch panel of the earphone.

6. The method according to claim 1, characterized in that The step of receiving a first user operation on the headset when the headset is outside the charging box and the headset is in a powered-off state includes: When the earphone is outside the charging box and the earphone is in a powered-off state, obtaining a first pressure signal and a second pressure signal corresponding to a preset first touch area and a preset second touch area of ​​the earphone; obtaining a recognition result according to the first pressure signal and the second pressure signal, wherein the recognition result is used to indicate whether a first user operation on the headset is recognized; In a case where the recognition result indicates that a first user operation on the headset is recognized, the first user operation on the headset is received.

7. The method according to claim 6, characterized in that The first touch area and the second touch area are located in the arc-shaped edge area of ​​the earphone. Obtaining a recognition result according to the first pressure signal and the second pressure signal includes: When the first pressure signal and the second pressure signal meet preset requirements, an identification sub-result is obtained, and the identification sub-result is used to indicate that a first user operation on the headset is recognized, and the preset requirements are that the first pressure signal and the second pressure signal are both greater than a preset pressure sensing threshold for a duration greater than a preset duration threshold, and based on the first pressure signal and the second pressure signal obtained within the duration, the movement trajectory determined is an arc-shaped sliding along the edge of the headset, The recognition result includes the recognition sub-results.

8. The method according to claim 1, characterized in that After the Hall-effect-proof startup mode is enabled, the method further includes: When the headset is in the powered-on state, controlling the headset to exit the Hall-effect-free power-on mode; Alternatively, when it is detected that the earphone is in the charging box, the earphone is controlled to exit the anti-Hall false touch power-on mode.

9. The method according to claim 8, characterized in that When the earphone is placed in the charging box, controlling the earphone to exit the anti-Hall false touch power-on mode includes: When recognizing that the headset enters the charging state, determining that the headset is placed in the charging box, and controlling the headset to exit the Hall effect prevention power-on mode; Or, when it is identified that the third output signal output by the Hall switch located in the charging box of the earphone has a signal jump, it is determined that the earphone is placed in the charging box, and the earphone is controlled to exit the anti-Hall false touch power-on mode.

10. 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, the method for preventing accidental touch startup management of the headset according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Wireless earphone wake-up circuit and wireless earphone

    CN110891219A

  • Earphone and earphone assembly

    CN217240901U

  • TWS earphone, method and apparatus for reducing earphone energy consumption, and medium

    WO2021128405A1