Mode control method and apparatus, electronic device, and storage medium
Patent Information
- Application Number
- CN202611265656.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-10-13
AI Technical Summary
[0005]因此,现有无线耳机系统在配对、复位等模式控制场景中,仍存在触发方式受限、操作步骤较多或者对实体按键、终端应用程序依赖较强的问题
Smart Images

Figure CN122909498A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless earphone technology, specifically to a mode control method, device, electronic device, and storage medium. Background Technology
[0002] With the development of wireless communication technology and portable audio devices, true wireless stereo earphones and other wireless earphone products are widely used in scenarios such as mobile terminal calls, audio playback, gaming, and intelligent voice interaction. Typically, a wireless earphone system includes an earphone case and earphones that can be stored inside the case. The earphone case can be used to hold the earphones, charge them, and in some products, it can also perform functions such as case opening detection, earphone presence detection, and connection status management.
[0003] In existing wireless earphone products, users typically need to perform corresponding trigger operations to enter specific operating modes such as pairing mode and reset mode. For example, some earphone systems use physical buttons on the charging case for pairing or reset control, allowing users to enter the corresponding mode by short presses, long presses, or continuous presses. Other earphone systems can provide pairing management, device reset, or other setting functions through a terminal application.
[0004] However, in some use cases, the above methods still have certain inconveniences. For example, for headphone cases with physical buttons, the physical buttons require structural space and may increase the difficulty of opening the shell, mechanical wear, or sealing design, and require actual pressing operation by the user; for methods that rely on terminal applications, the terminal usually needs to be available, and the user needs to search for the interface and operate manually.
[0005] Therefore, existing wireless headphone systems still suffer from limitations in triggering methods, numerous operation steps, or heavy reliance on physical buttons and terminal applications in mode control scenarios such as pairing and reset. Summary of the Invention
[0006] This application provides a mode control method, apparatus, electronic device, and storage medium.
[0007] In a first aspect, embodiments of this application provide a mode control method applied to an earphone system, the earphone system including an earphone case and earphones, the earphones being equipped with a motion detection module, the method comprising: The open state of the headphone case and the nesting state of the headphone in the headphone case are obtained, and the nesting state is used to indicate whether to switch modes. If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the target motion information of the headphones is collected by the motion detection module. In response to the target motion information, the headphone case and / or the headphones are controlled to enter the target mode.
[0008] Secondly, embodiments of this application also provide a mode control device applied to an earphone system, the earphone system including an earphone case and earphones, the earphones being provided with a motion detection module, the device comprising: The acquisition module is used to acquire the open state of the headphone case and the nesting state of the headphone in the headphone case, wherein the nesting state is used to indicate whether to switch modes. The acquisition module is used to acquire target motion information of the earphones through the motion detection module if the open state indicates that the earphone case is open and the contained state indicates that the earphones are contained in the earphone case. A control module is used to control the earphone box and / or the earphones to enter the target mode in response to the target motion information.
[0009] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the above-described mode control method.
[0010] Fourthly, embodiments of this application also provide a storage medium, which includes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the above-described mode control method.
[0011] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic flowchart of the mode control method provided in the embodiments of this application; Figure 2This is a schematic diagram of the mode control device provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.
[0014] Explanation of icon numbers: 201-Acquisition module; 202-Acquisition module; 203-Control module; 301-Processor; 302-Memory; 303-Power supply; 304-Input unit. Detailed Implementation
[0015] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0016] It should be understood that the following embodiments are only used to explain this application and are not intended to limit the scope of protection of this application. Where there is no conflict, the various technical features in the embodiments of this application can be combined with each other.
[0017] This application provides a mode control method, apparatus, electronic device, and computer-readable storage medium. The mode control method can be applied to an earphone system, which includes an earphone case and earphones, with a motion detection module disposed within the earphones. The earphone case can be a charging case for housing, charging, and / or managing the working state of the earphones; the earphones can be TWS earphones, Bluetooth earphones, in-ear hearing aids, or other wearable audio devices that can be housed within the case; the motion detection module can be a module for detecting the motion state of the earphones, such as an accelerometer, gyroscope, inertial measurement unit (IMU), or a motion detection component formed by combining an accelerometer and a gyroscope.
[0018] In this embodiment, the open state of the headphone case and the earphone's nested state within the case are used together to determine whether a specific pattern recognition scenario has been entered. The open state can be used to distinguish whether the user is intentionally operating the headphone case, thereby preventing accidental pairing or reset due to movement when the earphone is in a pocket, backpack, or being moved by hand. The nested state can be used to distinguish whether the earphone is inside the headphone case, thereby determining which pattern recognition should be used for the motion information collected by the motion detection module. For example, when the earphone is not inside the headphone case, earphone movement corresponds more to usage scenarios such as wearing, tapping, and head turning, and can be used for tapping pattern recognition, music switching, spatial audio processing, etc.; when the earphone is inside the headphone case, the earphone moves synchronously with the headphone case, and the motion information collected by the motion detection module can be used to identify the headphone case's actions, and further used for the recognition of target modes such as pairing mode or reset mode.
[0019] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0020] Please see Figure 1 , Figure 1 This is a flowchart illustrating the mode control method provided in this application embodiment. Although the flowchart shows a logical order, in some cases, the steps shown or described can be executed in a different order than that shown in the flowchart. Specifically, this mode control method is applied to an earphone system, which includes an earphone case and earphones. The earphones are equipped with a motion detection module. The specific flow of the mode control method is as follows: S101. Obtain the open state of the headphone case and the housing state of the headphone in the headphone case, wherein the housing state is used to indicate whether to switch modes.
[0021] The "open / closed state" refers to the status information indicating whether the headphone case lid is open, closed, or has undergone an opening action. For example, the open / closed state can include open, closed, switching from closed to open, and switching from open to closed states. The open / closed state can be obtained through methods such as Hall effect sensors, magnetic sensors, microswitches, photodetectors, capacitive detectors, and status signals from the case controller. For instance, when the headphone case lid is opened, the Hall effect sensor detects a change in the magnetic field and generates an open / closed signal, which indicates that the headphone case is open.
[0022] The containment status refers to the information indicating whether the earphones are contained within the earphone case; it can also be understood as the earphones' position relative to the case. Containment status can include both contained and uncontained. Contained means the earphones are located in the earphone compartment, storage slot, or charging position of the earphone case and can move synchronously or substantially synchronously with the case; uncontained means the earphones have left the case, such as being removed, worn, or held by the user. Containment status can be determined through methods such as the electrical connection status of charging contacts, charging voltage, charging current, communication connection status between the case and the earphones, magnetic field detection signals, photoelectric obstruction signals, and capacitive proximity signals. For example, when the earphones' charging contacts contact the earphone case's spring pins and a charging voltage is detected, it can be determined that the earphones are contained within the case; when the charging contacts are disconnected and the short-range communication between the earphones and the case is interrupted, it can be determined that the earphones are not contained within the case.
[0023] A motion detection module refers to a hardware, software, or a combination of hardware and software module used to collect information related to the movement of the headphones. For example, a motion detection module can collect information such as acceleration, angular velocity, attitude angle, direction of motion, vibration amplitude, and number of movements. Since the same motion detection module may have different uses in different scenarios, the placement status can be used to indicate whether to perform a mode switch or mode recognition corresponding to that placement status. For example, when the headphones are not placed in the charging case, the movement of the headphones may originate from the user tapping the headphones, head rotation while wearing the headphones, or walking. In this case, the motion information can be used for music switching, tap command recognition, or spatial audio processing. When the headphones are placed in the charging case, the headphones move with the charging case, and the motion information can reflect the shaking, flipping, or posture changes of the charging case. In this case, the motion information can be used to identify mode switches related to interaction with the charging case, such as pairing or resetting.
[0024] Understandably, acquiring the open and closed states in this step establishes preliminary conditions for mode control. On one hand, the open state indicates whether the user has opened the earphone case, distinguishing between intentional user interaction with the case and non-operational scenarios such as shaking in a pocket, hand movement, or vibrations during transport, thus reducing the probability of false pairing or reset triggers. On the other hand, the closed state determines whether the motion information collected by the motion detection module should be interpreted as actions of the earphone case or actions of the earphones themselves during use. Therefore, this step provides a clear scenario basis for subsequent target motion information acquisition and target mode control, preventing the misidentification of tapping or movement during earphone use as pairing or reset triggers when the earphones are not in the case.
[0025] S102. If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the target motion information of the headphones is collected by the motion detection module.
[0026] In this context, "earphone case opening" refers to the earphone case lid being in an open state or undergoing a change from closed to open. For example, after a user opens the earphone case lid, the Hall sensor outputs an opening signal, which indicates that the earphone case is open.
[0027] Target motion information refers to motion-related information collected by the motion detection module under the conditions of being in an open or contained state, used for subsequent pattern recognition or pattern control. Target motion information may include at least one of the following: acceleration information, angular velocity information, attitude change information, motion direction information, motion amplitude information, motion frequency information, motion count information, and motion duration information. For example, when a user shakes the earphone case after opening it, the accelerometer inside the earphones can collect acceleration changes that are synchronized or nearly synchronized with the case's shape, and the gyroscope can collect angular velocity changes corresponding to the case's attitude change; this information can be used as target motion information.
[0028] In this embodiment, the motion detection module is activated, woken up, or invoked after a preset scenario condition is met, enabling it to detect the motion state of the headphones. For example, when the headphone case is detected to be open and the headphones are placed inside, the headphone main control module can wake up the accelerometer and / or gyroscope, and collect the motion data of the headphones within a preset detection window.
[0029] It is understandable that in this step, using both the open and closed states as conditions for collecting target motion information allows the target motion information to more accurately correspond to the actions of the headphone case, rather than the ordinary movements after the headphones are worn or removed. Since the headphones have a relatively fixed positional relationship with the case when they are stored inside, the motion information collected by the headphone motion detection module can reflect the overall movement of the headphone case. Therefore, this embodiment does not require additional physical buttons or dedicated case motion sensors on the headphone case; it can utilize the existing motion detection module of the headphones to identify user actions such as shaking, flipping, moving up and down, and moving left and right on the headphone case. This approach not only reduces hardware costs but also helps maintain a buttonless or integrated design for the headphone case.
[0030] Furthermore, collecting target motion information only when the headphone case is open and the earphones are inside can also prevent accidental touches. For example, if the headphone case is closed and placed in a pocket and shakes as the user walks, even if the motion detection module can detect the motion, it will not trigger pairing or reset because the open state is not met. Similarly, if the earphones have been taken out and are being worn by the user, the motion information generated by the user tapping the earphones or moving their head can be used for music switching, tap control, or spatial audio processing, and will not be interpreted as a pairing or reset trigger action in this embodiment.
[0031] S103. In response to the target motion information, control the headphone box and / or the headphones to enter the target mode.
[0032] Responding to target motion information refers to identifying, judging, matching, or parsing the target motion information and executing corresponding control based on the identification result. For example, the target motion information can be matched with preset action conditions, preset motion templates, and preset mode trigger conditions; when the match is successful, the headphone case and / or headphones are controlled to enter the target mode. The target mode refers to the working mode, control mode, or functional state that the headphone case and / or headphones need to switch to. For example, the target mode can be pairing mode, reset mode, reconnection mode, factory reset mode, connection repair mode, etc. Controlling the headphone case and / or headphones to enter the target mode means that the headphone main control module, the headphone case control module, or both work together to execute the control operation corresponding to the target mode. For example, controlling the headphones to enter pairing mode can include turning on Bluetooth broadcast, searching for nearby Bluetooth devices, or allowing new devices to connect; controlling the headphones to enter reset mode can include clearing the original pairing record, resetting connection parameters, or restoring the preset configuration; controlling the headphone case to enter the target mode can also include outputting indicator light effects, sending mode control commands to the headphones, recording the mode switching status, or cooperating with the headphones to perform reset synchronization, etc.
[0033] Understandably, in this step, target motion information is used to determine whether a target mode is triggered and which target mode is triggered. Since the target motion information is collected in a scenario where the earphone case is open and the earphones are inside, it tends to reflect the user's intentional actions on the earphone case. For example, if a user shakes the earphone case three times quickly after opening the case, it can be identified as a trigger action to enter pairing mode; if a user shakes the earphone case six times quickly after opening the case, it can be identified as a trigger action to enter reset mode. The above actions are merely examples; in actual implementation, different action types, number of actions, action directions, or action combinations can be set according to product requirements.
[0034] In summary, through the above steps, this application enables contactless mode control after the headphone case is opened, without relying on physical buttons or application operations. The open state can limit the user's operation scenario, the contained state can distinguish the purpose of motion information, and the target motion information can further distinguish the specific target mode. Therefore, this application can both prevent tapping, wearing movements, or spatial audio-related movements of the headphones when they are not contained from being mistakenly used for pairing or resetting, and also enable pairing, resetting, and other mode switching using the existing motion detection module of the headphones when they are contained.
[0035] To further define the target mode type and clarify the difference in usage of the same motion detection module in the earphone's contained and uncontained states, the specific types of target modes and their different uses in the contained and uncontained states will be described below. Specifically, in the embodiments of this application, the target mode includes at least one of a pairing mode or a reset mode; the contained state includes contained or uncontained. When the contained state is uncontained, the target motion information is used for tapping pattern recognition and / or spatial audio processing; when the contained state is contained, the target motion information is used for the recognition of the pairing mode or the reset mode.
[0036] Tapping pattern recognition refers to the process of identifying control commands based on motion information generated by the user tapping, patting, or touching the headphones when they are not in use. For example, tapping the headphones twice can be used to switch music, answer a call, or pause playback. Spatial audio processing refers to the processing of sound field rendering, sound image localization, or dynamic audio compensation based on the user's posture, head rotation, or movement while wearing the headphones. For example, when the user's head rotates, the headphones can adjust the direction of the spatial audio image based on the angular velocity information collected by the gyroscope.
[0037] It should be noted that, in this embodiment, when the earphone is not in the charging case, the target motion information is used for tapping pattern recognition and / or spatial audio processing. The target motion information can be motion information collected by the motion detection module when the earphone is not in the charging case, or it can be motion information that the system differentiates the uses of the information collected by the motion detection module based on different charging states. Therefore, when the earphone is not in the charging case, the motion information generated by the user tapping the earphone, walking while wearing the earphone, or turning their head is not used for pairing mode or reset mode recognition in this application, but is used for tapping control, music switching, call control, or spatial audio processing during normal earphone wearing scenarios. Correspondingly, when the earphone is in the charging case, the earphone moves synchronously with the charging case, and only then is the target motion information used for pairing mode or reset mode recognition.
[0038] Therefore, by dividing the containment state into contained and uncontained states, and assigning different uses to motion information based on these states, the same motion detection module can be reused in different usage scenarios. This does not affect tap recognition and spatial audio processing when the earphones are worn, and it also allows motion information to be used for pairing or reset recognition when the earphones are placed in the case. This method avoids misidentifying motion during the wearing state as pairing or reset operations, improving the accuracy and security of pattern recognition.
[0039] To improve the accuracy of target pattern recognition, when the earphones are housed in the earphone case, the target motion information can be further used to distinguish whether the earphones are entering a pairing mode or a reset mode. That is, optionally, in some embodiments of this application, the step "controlling the earphone case and / or the earphones to enter the target mode corresponding to the housing state in response to the target motion information" includes: Identify the motion type of the target motion information and the number of motions corresponding to that motion type; If the type of exercise and the number of times the exercise are satisfied with the first preset condition, then control the earphone box and / or the earphone to enter the pairing mode; If the type of exercise and the number of times the exercise are satisfied with the second preset condition, then the headphone box and / or the headphones are controlled to enter the reset mode; The type of movement includes at least one of shaking, tapping, up-and-down shaking, or left-and-right shaking.
[0040] The motion type refers to the form or category of motion represented by the target motion information. For example, motion types can include shaking, tapping, up-and-down shaking, left-and-right shaking, back-and-forth shaking, flipping, and inversion. Shaking can be the reciprocating movement of the headphone case in one or more directions; up-and-down shaking can be the reciprocating movement of the headphone case along a vertical or near-vertical direction; left-and-right shaking can be the reciprocating movement of the headphone case along a horizontal or near-horizontal direction. The number of motion occurrences refers to the number of times a certain motion type is detected within a preset time. For example, if the headphone case is detected to shake rapidly left and right 3 times within a 5-second detection window, the motion type can be left-and-right shaking, and the number of motion occurrences can be 3.
[0041] The first preset condition refers to the condition used to trigger the pairing mode, which may include a motion type condition and a motion count condition. For example, the first preset condition could be detecting 3 rapid shakes, 3 up-and-down shakes, or 3 left-and-right shakes within the detection window after the lid is opened. The second preset condition refers to the condition used to trigger the reset mode, which may also include a motion type condition and a motion count condition. For example, the second preset condition could be detecting 6 rapid shakes, 6 up-and-down shakes, or 6 left-and-right shakes within the detection window after the lid is opened. The above counts are merely examples. In other embodiments, the first and second preset conditions can be set according to the importance of the target mode, the risk of accidental touch, or user operating habits, and are not limited here.
[0042] Understandably, by identifying the type and number of movements, the target movement information can be transformed into a identifiable mode trigger condition. When the type and number of movements meet the first preset condition, it indicates that the user has performed a preset action corresponding to the pairing mode, and the earphone case and / or earphones can enter the pairing mode; when the type and number of movements meet the second preset condition, it indicates that the user has performed a preset action corresponding to the reset mode, and the earphone case and / or earphones can enter the reset mode.
[0043] Since the reset mode typically involves clearing pairing records or resetting system parameters, its risk of accidental activation is higher than that of the pairing mode. Therefore, the second preset condition can be set to be more difficult to meet than the first preset condition, such as more movements, stronger movement amplitude, or more complex combinations of movement directions. This can improve the safety of the reset operation while ensuring the convenience of the pairing operation.
[0044] It should be noted that in actual use, the same action of the earphone case may correspond to different control requirements in different earphone states. For example, when the earphones are not connected, the user is more likely to want to enter pairing mode, while performing a reset when the battery is too low may be detrimental to system stability. Based on this, a mode switching control is designed based on connection state and battery state. That is, optionally, in some embodiments of this application, the step "controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information" includes: Obtain the connection status and battery status of the headphones; Based on the connection status and / or the battery status, the earphone case and / or the earphones are controlled to respond to the target motion information and enter the target mode corresponding to the containment status.
[0045] Connection status refers to the connection status between the earbuds and external electronic devices, the charging case, another earbud, or a previously paired device. For example, connection status can include unpaired, paired but not connected, connected, connection failed, reconnection failed, and abnormal left / right ear connection. Battery status refers to the remaining battery power, charging status, or low battery status of the earbuds and / or the charging case. For example, battery status can include fully charged, battery below a preset threshold, charging, and not charging.
[0046] The control of response to target motion information based on connection status and / or battery status means that after recognizing target motion information, the system does not mechanically and directly enter a fixed target mode, but rather determines whether and how to respond to the target motion information based on the current connection status and / or battery status. For example, when the connection status indicates that the headphones have not saved a pairing record, if the target motion information meets the pairing trigger conditions, the headphones are controlled to enter the first pairing mode; when the connection status indicates that the headphones have saved a pairing record but have failed to reconnect multiple times, if the target motion information meets preset conditions, the headphones are controlled to enter the re-pairing mode or connection repair mode; when the battery status indicates that the headphones' battery is below a preset threshold, the reset mode can be disabled, or only pairing mode can be allowed with a low battery warning.
[0047] It is understood that by introducing connection status and battery status, the embodiments of this application can make the response results of target motion information more consistent with the current headphone system status. This avoids performing a reset in low-battery scenarios where a reset is not appropriate, and also enables quick entry into pairing, reconnection, or reset recovery modes in connection failure scenarios. Therefore, this embodiment not only improves the intelligence of mode control, but also reduces the risk of misoperation and abnormal interruption.
[0048] Optionally, to expand the number of contactless control commands without increasing physical buttons and further reduce the probability of accidental triggering by a single action, the switching of control modes can be diversified and precise based on the opening and closing sequence of the headphone case. That is, optionally, in some embodiments of this application, the step "controlling the headphone case and / or the headphones to enter the target mode corresponding to the containing state in response to the target motion information" includes: Obtain the sequence of opening and closing actions of the headphone case within a preset time period; Based on the opening and closing action sequence and the target motion information, the headphone case and / or the headphones are controlled to enter the target mode corresponding to the containing state.
[0049] The preset time refers to the time range used to statistically analyze or identify the sequence of actions of opening and closing the headphone case lid. For example, the preset time can be 3 seconds, 5 seconds, 8 seconds, or other time lengths before and after opening the lid. The sequence of actions of opening and closing the lid refers to the sequence of state changes formed by the opening and closing actions of the headphone case lid in chronological order within the preset time. For example, the sequence of actions of opening and closing the lid can be opening the lid once, opening the lid, closing the lid, and then opening the lid again, opening and closing the lid twice consecutively, or keeping the lid open for a preset duration.
[0050] Controlling entry into a target mode based on the opening and closing sequence of the earphone case and target motion information means using the opening and closing action of the earphone case as one input condition and target motion information as another input condition, and determining the target mode based on the combination of the two. For example, when the opening and closing sequence is one opening and the target motion information meets the first preset condition, the earphones can be controlled to enter pairing mode; when the opening and closing sequence is opening, closing, and then opening again and the target motion information meets the second preset condition, the earphones can be controlled to enter reset mode. The above combinations are only examples; in actual implementation, different mapping relationships between opening and closing sequences and motion actions can be set according to product needs.
[0051] It is understood that in the embodiments of this application, the sequence of opening and closing the lid and the target motion information together form a composite input. Compared with relying solely on a single shaking action, composite input can provide more distinguishable control commands and can raise the trigger threshold for high-risk modes. For example, the pairing mode can be triggered by shaking after opening the lid once, while the reset mode can require the user to perform a more complex sequence of opening and closing the lid and a combination of motion actions, thereby reducing the risk of accidental reset while maintaining the convenience of buttonless interaction.
[0052] To facilitate low-power control and clarify the triggering relationship between the open / closed state, the closed state, and the motion detection module, the following will describe it in detail. Specifically, optionally, in some embodiments of this application, the step "obtaining the open / closed state of the headphone case and the closed state of the headphones relative to the headphone case" includes: The open lid state and the contained state are obtained by a state detection sensor; If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the motion detection module collects the target motion information of the headphones, including: If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then a wake-up control signal is sent to the main control module of the headphones through the state detection sensor; The main control module wakes up the motion detection module based on the wake-up control signal, and uses the motion detection module to collect the target motion information.
[0053] In this context, a status detection sensor refers to a sensor or detection device used to detect the open state of the headphone case and / or the inserted state of the headphones. For example, a status detection sensor may include a Hall sensor for detecting the opening and closing of the case, a magnetic sensor, a photoelectric sensor, or a capacitive sensor for detecting the insertion of the headphones, and may also include a detection circuit for detecting the connection status of the charging contacts, charging voltage, or charging current. The open state and the inserted state can be acquired by the same status detection sensor or by different status detection sensors. For example, the open state can be acquired by a Hall sensor, and the inserted state can be acquired by a charging contact detection circuit or a charging current detection circuit.
[0054] The main control module refers to the processing module used to execute the headphone control logic, such as the headphone main control chip, Bluetooth chip, microcontroller, or audio processing chip. The wake-up control signal is the control signal used to trigger the main control module or motion detection module to enter the working state from a low-power state. For example, when the status detection sensor detects that the headphone case is open and the headphones are placed inside, it can output an interrupt signal or a level change signal to the main control module; this signal serves as the wake-up control signal. After receiving the wake-up control signal, the main control module starts the motion detection module and collects target motion information.
[0055] It is understood that in this embodiment, the motion detection module is triggered by a state detection sensor to wake up the main control module, thus preventing the motion detection module from operating in a high-power state for extended periods. The motion detection module is only woken up to collect target motion information when the conditions for the open and closed states are met; if the conditions are not met, such as the headphone case being closed or the headphones not being placed in the case, there is no need to enter the pairing or reset identification process. This not only reduces the power consumption of the headphone system but also avoids collecting and analyzing irrelevant motion information in non-target scenarios, thereby further improving the reliability of mode control.
[0056] Optionally, to further improve the accuracy of pairing mode or reset mode recognition, multimodal information can be used to reduce the probability of false triggering. That is, optionally, in some embodiments of this application, the earphone is further provided with a voice acquisition module, and the method further includes: If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the target audio is acquired through the voice acquisition module; When the containment state is contained, the target audio is used for the identification of the pairing mode or the reset mode; when the containment state is not contained, the target audio is used for the general pickup mode. The step of controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: In response to the target motion information and the target audio, the headphone box and / or the headphones enter the pairing mode or the reset mode.
[0057] The voice acquisition module refers to the module used to acquire sound signals, such as a microphone, microphone array, bone conduction pickup module, or voice input circuit. Target audio refers to the audio information acquired by the voice acquisition module for pattern recognition, triggering confirmation, or assisting in judgment. For example, target audio may include user voice, tapping sounds, ambient sounds, specific commands, preset voiceprints, or sound signals within a preset frequency range. General pickup mode refers to the audio acquisition mode of the headphones in normal use, such as call pickup, voice assistant pickup, ambient sound acquisition, and noise reduction reference pickup.
[0058] It should be noted that, in this embodiment, when the earphones are in the earphone case and the case is open, the target audio collected by the voice acquisition module can serve as auxiliary information for pairing or reset recognition. For example, when the user opens the case and shakes it while issuing a preset voice command, the system can combine the target motion information and the target audio to confirm whether to enter pairing mode or reset mode. This improves the accuracy of recognizing the user's true intentions.
[0059] When the headset is not in the listening state, the target audio is used for the general pickup mode. The target audio here is not limited to the target audio collected in the listening state mentioned above, but can be audio information collected by the voice acquisition module when the headset is not in the listening state, or audio information after the system distinguishes the purpose of the audio collected by the voice acquisition module according to the listening state. For example, when the headset is worn by a user, the voice acquisition module collects the user's voice for call pickup or voice assistant wake-up, rather than for pairing or reset recognition as described in this application.
[0060] Responding to target motion information and target audio to control the headphone box and / or headphones to enter pairing mode or reset mode means that the system can fuse and determine the target motion information and target audio. For example, when the target motion information meets the pairing trigger condition and the target audio meets the pairing confirmation condition, the system controls the headphones to enter pairing mode; when the target motion information meets the reset trigger condition and the target audio meets the reset confirmation condition, the system controls the headphones to enter reset mode.
[0061] In one possible implementation, the target audio can be used as a separate confirmation condition or as an auxiliary judgment condition. For example, when the confidence level of motion information is low, the confidence level of recognition can be improved by using the target audio.
[0062] It is understood that this application embodiment, by introducing a voice acquisition module, enables the headphone system to combine motion information and audio information for mode control. For modes such as pairing and reset, which are prone to changes in connection status or data clearing, audio information can provide additional confirmation, reducing the probability of false triggering. At the same time, by distinguishing the purpose of the target audio through the housing status, it can be ensured that the headphones can still be used normally for ordinary audio functions such as call pickup and voice interaction when not housed in the headphone case, without misusing ordinary pickup for pairing or reset.
[0063] Additionally, the voice acquisition module can be an existing FF microphone, FB microphone, talk microphone, or a microphone array consisting of multiple microphones in the headset. Compared to traditional methods, the FF / FB / Talk microphone plays multiple roles in this proposal, and the related audio link will also change accordingly depending on the scenario to adapt to different uses. Specifically: The FF microphone is a feedforward microphone located on the outside of the earphone, normally used to collect ambient sound. Under preset conditions conforming to the embodiments of this application, it can switch roles to monitor and judge specific voice information. The FB microphone is a feedback microphone located on the inside of the earphone, normally used to collect sound from the ear canal or near the speaker. Under preset conditions conforming to the embodiments of this application, it can switch roles to monitor and judge specific voice information. The Talk microphone is usually located at the bottom of the earphone, normally used to collect user voice call information for regular call functions; under preset conditions conforming to the embodiments of this application, it can switch roles to monitor and judge specific voice information. It is understood that in the embodiments of this application, the existing voice acquisition module in the earphone can be reused to achieve the target audio acquisition, thus eliminating the need to set up a dedicated microphone in the earphone case or add new voice acquisition hardware to the earphone.
[0064] In addition to the switching of the microphone's role, the entire audio stream inside the headphones also needs to be switched accordingly. For example, the information collected by the original FF / FB microphone is mainly given to the ANC noise reduction module, which is used by the headphones to perform noise reduction or transparency algorithms based on the collected ambient sound. When the purpose is switched, the collected audio signal mainly flows into the pre-set offline speech recognition module. The speech recognition module compares the collected speech features with the target features and then outputs the results to the control module, which further sends commands to the headphones to enter pairing or reset mode.
[0065] Similarly, when the purpose of the Talk microphone changes, the audio link inside the earphone also needs to be switched accordingly. In the native processing flow, the audio signal collected by the Talk microphone usually flows mainly to the call uplink, where it collects the user's voice and processes it through algorithms such as call noise reduction, beamforming, echo cancellation, and gain control before sending it as call voice data to the other device. However, in the mode switching application of this application, the audio signal collected by the Talk microphone no longer enters the call uplink as regular call voice, but is switched to a pre-set offline voice recognition link. Specifically, when the earphone case is open and the earphones are inside, the earphone case can send a trigger signal to the earphones. In response to the trigger signal, the earphones input the audio signal collected by the Talk microphone to the offline voice recognition module. The offline voice recognition module recognizes the voice features, device identifiers, and / or mode commands in the target audio and matches the recognition results with preset commands. If the match is successful, the voice recognition module outputs the matching result to the control module, which then controls the earphones and / or the earphone case to enter pairing mode, reset mode, or other target modes based on the matching result. Therefore, the Talk microphone can still be used for call pickup in normal scenarios, and in mode switching scenarios where the case is open and the earphone is stored in the earphone case, it can be reused as the entry point for mode control voice acquisition, without the need to set up an additional dedicated microphone, while avoiding the misprocessing of mode switching voice as call voice.
[0066] In summary, this application acquires the open state of the earphone case and the earphone's position within the case. When the open state indicates the earphone case is open and the position indicates the earphone is inside, the motion detection module within the earphone collects target motion information. Then, in response to this target motion information, it controls the earphone case and / or earphones to enter the target mode. Therefore, this application can define the open state as a scenario to prevent accidental touches, avoiding mis-pairing or accidental reset due to movement of the earphone case in pockets, backpacks, handheld movement, or during transportation. Simultaneously, the position status serves as a basis for differentiating the use of motion information. When the earphone is inside the case, the target motion information collected is used to identify target modes such as pairing mode and reset mode, while the motion or audio information when the earphone is not inside the case can still be used for common usage scenarios such as tap control, music switching, spatial audio processing, or general sound pickup. This allows for contactless mode control using the earphone's existing motion detection module without adding physical buttons, reducing hardware costs, improving the integrated appearance of the earphone case, and enhancing user convenience.
[0067] This application uses a state detection sensor to acquire the open and closed states, and sends a wake-up control signal to the main control module when the conditions are met. The main control module then wakes up the motion detection module to collect target motion information. Therefore, the motion detection module does not need to operate in a high-power state for extended periods, reducing system power consumption and minimizing invalid detections in non-target scenarios.
[0068] This application further introduces a voice acquisition module and distinguishes the purpose of the target audio based on its placement status. In the placement status, the target audio can be used in conjunction with target motion information for pairing mode or reset mode recognition; in the unplaced status, the target audio can be used for general sound pickup mode. Thus, the accuracy of pairing or reset recognition can be improved by fusing motion and audio information, while ensuring that normal functions such as call pickup and voice interaction are not affected when the earphone is worn or removed.
[0069] To facilitate better implementation of the mode control method of this application, this application also provides a mode control device based on the above-described mode control method. The meanings of the terms used are the same as in the mode control method described above, and specific implementation details can be found in the descriptions of the method embodiments.
[0070] Please see Figure 2 , Figure 2 This is a schematic diagram of the mode control device provided in an embodiment of this application. The mode control device is applied to an earphone system, which includes an earphone case and earphones. The earphones contain a motion detection module. Specifically, the mode control device can be as follows: The acquisition module 201 is used to acquire the open state of the headphone case and the housing state of the headphone in the headphone case, wherein the housing state is used to indicate whether to switch modes. The acquisition module 202 is used to acquire target motion information of the earphones through the motion detection module if the open state indicates that the earphone case is open and the contained state indicates that the earphones are contained in the earphone case. Control module 203 is used to control the headphone box and / or the headphones to enter the target mode in response to the target motion information.
[0071] Optionally, in some embodiments of this application, the target mode includes at least one of a pairing mode or a reset mode; The containment state includes containment or non-containment. When the containment state is non-containment, the target motion information is used for tapping pattern recognition and / or spatial audio processing. When the containment state is containment, the target motion information is used for the recognition of the pairing mode or the reset mode.
[0072] Optionally, in some embodiments of this application, controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: Identify the motion type of the target motion information and the number of motions corresponding to that motion type; If the type of exercise and the number of times the exercise are satisfied with the first preset condition, then control the earphone box and / or the earphone to enter the pairing mode; If the type of exercise and the number of times the exercise are satisfied with the second preset condition, then the headphone box and / or the headphones are controlled to enter the reset mode; The type of movement includes at least one of shaking, tapping, up-and-down shaking, or left-and-right shaking.
[0073] Optionally, in some embodiments of this application, controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: Obtain the connection status and battery status of the headphones; Based on the connection status and / or the battery status, the earphone case and / or the earphones are controlled to respond to the target motion information and enter the target mode corresponding to the containment status.
[0074] Optionally, in some embodiments of this application, controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: Obtain the sequence of opening and closing actions of the headphone case within a preset time period; Based on the opening and closing action sequence and the target motion information, the headphone case and / or the headphones are controlled to enter the target mode corresponding to the containing state.
[0075] Optionally, in some embodiments of this application, obtaining the open state of the earphone case and the earphone's position relative to the earphone case includes: The open lid state and the contained state are obtained by a state detection sensor; If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the motion detection module collects the target motion information of the headphones, including: If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then a wake-up control signal is sent to the main control module of the headphones through the state detection sensor; The main control module wakes up the motion detection module based on the wake-up control signal, and uses the motion detection module to collect the target motion information.
[0076] Optionally, in some embodiments of this application, the earphone is further provided with a voice acquisition module, and the device further includes: If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the target audio is acquired through the voice acquisition module; When the containment state is contained, the target audio is used for the identification of the pairing mode or the reset mode; when the containment state is not contained, the target audio is used for the general pickup mode. The step of controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: In response to the target motion information and the target audio, the headphone box and / or the headphones enter the pairing mode or the reset mode.
[0077] In this embodiment of the application, the acquisition module 201 acquires the open state of the headphone case and the earphone's placement state in the headphone case. The placement state is used to indicate whether to switch modes. If the open state indicates that the headphone case is open and the placement state indicates that the earphone is placed in the headphone case, the acquisition module 202 acquires the target motion information of the earphone through the motion detection module. The control module 203 controls the headphone case and / or the earphone to enter the target mode in response to the target motion information.
[0078] In summary, this application limits the open-case state to a scenario preventing accidental touches, avoiding mispairing or accidental resets caused by movement during pocket, backpack, handheld movement, or transportation. Simultaneously, it uses the contained state as a basis for differentiating the use of motion information. When the earphones are inside the case, the target motion information collected is used to identify target modes such as pairing and reset modes, while motion or audio information when the earphones are not inside the case can still be used for general usage scenarios such as tap control, music switching, spatial audio processing, or general sound pickup. This allows for contactless control using the earphones' existing motion detection module without adding physical buttons, reducing hardware costs, improving the integrated appearance of the earphone case, and enhancing user convenience.
[0079] In addition, this application also provides an electronic device, such as Figure 3 As shown, it illustrates a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Specifically: The electronic device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will understand that... Figure 3The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 301 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the electronic device. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.
[0080] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0081] The electronic device also includes a power supply 303 that supplies power to the various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0082] The electronic device may also include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0083] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302, thereby implementing the steps in any of the mode control methods provided in the embodiments of this application.
[0084] The headphone system of this application embodiment includes a headphone case and headphones. The headphones are provided with a motion detection module. The headphone system obtains the open state of the headphone case and the headphone's position relative to the headphone case. The position state is used to indicate whether to switch modes. If the open state indicates that the headphone case is open and the position state indicates that the headphone is placed in the headphone case, the target motion information of the headphone is collected by the motion detection module, and the headphone case and / or the headphone is controlled to enter the target mode in response to the target motion information.
[0085] This application defines the open-case state as a scenario to prevent accidental touches, avoiding mispairing or accidental resets caused by movement during pocket, backpack, handheld transport, or other transportation. Simultaneously, it uses the contained state as a basis for differentiating the use of motion information. When the earphones are inside the case, the target motion information collected is used to identify target modes such as pairing and reset. Motion or audio information from when the earphones are not inside the case can still be used for general usage scenarios such as tap control, music switching, spatial audio processing, or general sound pickup. This allows for contactless control using the earphones' existing motion detection module without adding physical buttons, reducing hardware costs, improving the integrated appearance of the earphone case, and enhancing user convenience.
[0086] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0087] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0088] To this end, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the mode control methods provided in this application.
[0089] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0090] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0091] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the mode control methods provided in this application, the beneficial effects that any of the mode control methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0092] The above provides a detailed description of a mode control method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
[0093] It is understood that, in the specific embodiments of this application, data related to the open state of the headphone case, the housing state of the headphones, the user's voice / audio, motion information, connection status, battery status, and the sequence of opening and closing actions are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
Claims
1. A mode control method, characterized in that, Applied to an earphone system, the earphone system including an earphone case and earphones, the earphones being equipped with a motion detection module, the method includes: The open state of the headphone case and the nesting state of the headphone in the headphone case are obtained, and the nesting state is used to indicate whether to switch modes. If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the target motion information of the headphones is collected by the motion detection module. In response to the target motion information, the headphone case and / or the headphones are controlled to enter the target mode.
2. The mode control method according to claim 1, characterized in that, The target mode includes at least one of a pairing mode or a reset mode; The containment state includes containment or non-containment. When the containment state is non-containment, the target motion information is used for tapping pattern recognition and / or spatial audio processing. When the containment state is containment, the target motion information is used for the recognition of the pairing mode or the reset mode.
3. The mode control method according to claim 2, characterized in that, The step of controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: Identify the motion type of the target motion information and the number of motions corresponding to that motion type; If the type of exercise and the number of times the exercise are satisfied with the first preset condition, then control the earphone box and / or the earphone to enter the pairing mode; If the type of exercise and the number of times the exercise are satisfied with the second preset condition, then the headphone box and / or the headphones are controlled to enter the reset mode; The type of movement includes at least one of shaking, tapping, up-and-down shaking, or left-and-right shaking.
4. The mode control method according to claim 1, characterized in that, The step of controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: Obtain the connection status and battery status of the headphones; Based on the connection status and / or the battery status, the earphone case and / or the earphones are controlled to respond to the target motion information and enter the target mode corresponding to the containment status.
5. The mode control method according to claim 1, characterized in that, The step of controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: Obtain the sequence of opening and closing actions of the headphone case within a preset time period; Based on the opening and closing action sequence and the target motion information, the headphone case and / or the headphones are controlled to enter the target mode corresponding to the containing state.
6. The mode control method according to claim 1, characterized in that, The step of obtaining the open state of the earphone case and the nested state of the earphones in the earphone case includes: The open lid state and the contained state are obtained by a state detection sensor; If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the motion detection module collects the target motion information of the headphones, including: If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then a wake-up control signal is sent to the main control module of the headphones through the state detection sensor; The main control module wakes up the motion detection module based on the wake-up control signal, and uses the motion detection module to collect the target motion information.
7. The mode control method according to claim 2, characterized in that, The earphone is also equipped with a voice acquisition module, and the method further includes: If the open state indicates that the headphone case is open and the contained state indicates that the headphones are contained in the headphone case, then the target audio is acquired through the voice acquisition module; Wherein, when the containment state is contained, the target audio is used for the identification of the pairing mode or the reset mode; when the containment state is not contained, the target audio is used for the general pickup mode. The step of controlling the earphone case and / or the earphones to enter the target mode corresponding to the containing state in response to the target motion information includes: In response to the target motion information and the target audio, the headphone box and / or the headphones enter the pairing mode or the reset mode.
8. A mode control device, characterized in that, Applied to an earphone system, the earphone system including an earphone case and earphones, the earphones having a motion detection module disposed therein, the device includes: The acquisition module is used to acquire the open state of the headphone case and the nesting state of the headphone in the headphone case, wherein the nesting state is used to indicate whether to switch modes. The acquisition module is used to acquire target motion information of the earphones through the motion detection module if the open state indicates that the earphone case is open and the contained state indicates that the earphones are contained in the earphone case. A control module is used to control the earphone box and / or the earphones to enter the target mode in response to the target motion information.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the mode control method as described in any one of claims 1-7.
10. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the mode control method as described in any one of claims 1-7.