An earphone control method and device, charging bin, earphone and storage medium
By detecting the number of times the earbuds are inserted and removed from the charging case and the characteristics of the events, the target working mode is determined and control commands are sent. This solves the problem of physical buttons on the charging case affecting the sealing performance and improves the dustproof and waterproof performance of TWS earbuds.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- DONGGUAN ELF EDUCATIONAL SOFTWARE CO LTD
- Filing Date
- 2024-12-04
- Publication Date
- 2026-06-05
AI Technical Summary
The physical buttons on the charging case of existing TWS earbuds affect the product's sealing, resulting in poor dustproof and waterproof performance.
By detecting the number of times the earphones are inserted and removed from the charging case and the characteristics of the events, the target working mode is determined and control commands are sent to control the earphones, thus avoiding the use of physical buttons.
The dustproof and waterproof performance of the headphones has been improved, maintaining the product's airtightness.
Smart Images

Figure CN122160667A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic device control technology, and in particular relates to an earphone control method, device, charging case, earphone, computer-readable storage medium and computer program product. Background Technology
[0002] With the development of science and technology, True Wireless Stereo (TWS) earbuds are gradually replacing traditional wired earbuds due to their convenience. A typical TWS earbud system includes a charging case and earbuds. When not in use, users can store the earbuds in the charging case to charge. When the earbuds need to connect to a terminal device, the terminal device can connect via Bluetooth, enabling wireless separation of the left and right ear channels.
[0003] In current technology, most earphones rely on physical buttons on the charging case to trigger different function modes. However, placing physical buttons on the charging case can compromise the product's sealing, resulting in poorer dust and water resistance. Summary of the Invention
[0004] In view of this, embodiments of this application provide an earphone control method, device, charging case, earphone, computer-readable storage medium, and computer program product to solve the problems of poor sealing and poor dustproof and waterproof performance in existing earphone control methods.
[0005] A first aspect of this application provides an earphone control method applied to a charging case in an earphone system, the earphone system including the charging case and earphones, the earphone control method including:
[0006] The first number of times the earphone enters and exits the charging case is detected; wherein, the first number of times the first entry and exit is detected is the number of times the first entry and exit event occurs consecutively, and the first entry and exit event is the event of the earphone being removed from the charging case and then moved back into the charging case;
[0007] The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber.
[0008] Send a target control command to the headset; wherein the target control command is used to control the headset to enter the target working mode.
[0009] In one specific implementation of the first aspect, detecting the first number of times the earphone enters and exits the chamber may include:
[0010] Detect the first inbound / outbound event;
[0011] If the first entry / exit event is detected for the first time, the first entry / exit count is initialized, and the detection of the first entry / exit event continues.
[0012] If the first entry / exit event is detected within the preset event interval, the count of the first entry / exit event is incremented by one unit, and the process returns to the step of continuing to detect the first entry / exit event and its subsequent steps.
[0013] If the first entry / exit event is not detected within the specified event interval, the detection of the first entry / exit count of the earphones will cease.
[0014] In one specific implementation of the first aspect, detecting the first inbound / outbound event may include:
[0015] The action of removing the earphone from the charging case is detected; wherein, the action of removing the earphone from the charging case is the action of removing it from the charging case.
[0016] If the exit action is detected, the first exit timestamp corresponding to the exit action is recorded;
[0017] The action of inserting the earphones into the charging case is detected; wherein, the action of inserting the earphones into the charging case is the action of moving them into the charging case.
[0018] If the warehouse entry action is detected, the first warehouse entry timestamp corresponding to the warehouse entry action is recorded;
[0019] Determine the time difference between the first warehouse entry timestamp and the first warehouse exit timestamp;
[0020] If the time difference is greater than the preset action interval, then return to the step of detecting the earphone's ejection action and its subsequent steps.
[0021] If the time difference is less than or equal to the action interval duration, then it is determined that the first entry / exit event has been detected.
[0022] In one specific implementation of the first aspect, before determining the target operating mode of the headphones based on the first number of in-and-out cycles, the following may be included:
[0023] Determine the event velocity type of the first inbound / outbound event;
[0024] Determining the target operating mode of the headphones based on the first number of times the headphones enter and exit the chamber may include:
[0025] The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber and the event speed type.
[0026] In one specific implementation of the first aspect, before determining the target operating mode of the headphones based on the first number of in-and-out cycles, the following may be included:
[0027] Determine the event interval type of the first inbound / outbound event;
[0028] Determining the target operating mode of the headphones based on the first number of times the headphones enter and exit the chamber may include:
[0029] The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber and the event interval type.
[0030] In one specific implementation of the first aspect, the earphone may include a left earphone and a right earphone, and the first entry / exit event may include a first left entry / exit event and a first right entry / exit event; wherein, the first left entry / exit event is the event in which the left earphone is removed from the charging case and then moved back into the charging case, and the first right entry / exit event is the event in which the right earphone is removed from the charging case and then moved back into the charging case;
[0031] Before determining the target operating mode of the headphones based on the first number of times they enter and exit the chamber, the following may also be included:
[0032] Determine the directional order of the first left entry / exit event and the first right entry / exit event;
[0033] Determining the target operating mode of the headphones based on the first number of times the headphones enter and exit the chamber may include:
[0034] The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber and the directional order of the events.
[0035] A second aspect of this application provides a headphone control method applied to a headphone in a headphone system, the headphone system including a charging case and the headphone, the headphone control method including:
[0036] The second number of times the earphone enters and exits the charging case is detected; wherein, the second number of times ... earphone enters and exits the charging case is an event in which the earphone is moved into the charging case and then moved out of the charging case;
[0037] The target operating mode of the headphones is determined based on the second number of times the headphones enter and exit the chamber.
[0038] Control the headphones to enter the target working mode.
[0039] A third aspect of this application provides an earphone control device applied to a charging case in an earphone system, the earphone system including the charging case and earphones, the earphone control device including:
[0040] The first entry / exit count detection module is used to detect the first entry / exit count of the earphone; wherein, the first entry / exit count is the number of consecutive first entry / exit events, and the first entry / exit event is an event in which the earphone is removed from the charging case and then moved back into the charging case;
[0041] The first working mode determination module is used to determine the target working mode of the earphone based on the first number of times it enters and exits the chamber.
[0042] A control command sending module is used to send a target control command to the headset; wherein the target control command is used to control the headset to enter the target working mode.
[0043] In one specific implementation of the third aspect, the first inbound / outbound count detection module may include:
[0044] The first warehouse entry / exit event detection unit is used to detect the first warehouse entry / exit event.
[0045] The first entry / exit count initialization unit is used to initialize the first entry / exit count and continue to detect the first entry / exit event if the first entry / exit event is detected for the first time.
[0046] The first entry / exit count unit is used to increment the first entry / exit count by one unit if the first entry / exit event is detected within a preset event interval, and then return to the step of continuing to detect the first entry / exit event and its subsequent steps.
[0047] The first entry / exit count end detection unit is used to end the detection of the first entry / exit count of the earphone if the first entry / exit event is not detected within the event interval.
[0048] In one specific implementation of the third aspect, the first in-and-out event detection unit can be specifically used to: detect the earphone's out-of-the-case action; wherein the out-of-the-case action is the action of removing the earphone from the charging case; if the out-of-the-case action is detected, then record a first out-of-the-case timestamp corresponding to the out-of-the-case action; detect the earphone's in-the-case action; wherein the in-the-case action is the action of moving the earphone into the charging case; if the in-the-case action is detected, then record a first in-the-case timestamp corresponding to the in-the-case action; determine the time difference between the first in-the-case timestamp and the first out-of-the-case timestamp; if the time difference is greater than a preset action interval duration, then return to the step of detecting the earphone's out-of-the-case action and its subsequent steps; if the time difference is less than or equal to the action interval duration, then determine that the first in-and-out event has been detected.
[0049] In one specific implementation of the third aspect, the headphone control device may further include:
[0050] The event velocity type determination module is used to determine the event velocity type of the first inbound / outbound event;
[0051] The first working mode determination module can be specifically used to: determine the target working mode of the headphones based on the first number of times the headphones enter and exit the chamber and the event speed type.
[0052] In one specific implementation of the third aspect, the headphone control device may further include:
[0053] The event interval type determination module is used to determine the event interval type of the first inbound / outbound event;
[0054] The first working mode determination module can be specifically used to: determine the target working mode of the headphones based on the first number of times the headphones enter and exit the chamber and the event interval type.
[0055] In one specific implementation of the third aspect, the earphone may include a left earphone and a right earphone, and the first entry / exit event may include a first left entry / exit event and a first right entry / exit event; wherein, the first left entry / exit event is the event in which the left earphone is removed from the charging case and then moved back into the charging case, and the first right entry / exit event is the event in which the right earphone is removed from the charging case and then moved back into the charging case;
[0056] The headphone control device may further include:
[0057] The event directionality order determination module is used to determine the event directionality order of the first left entry / exit warehouse event and the first right entry / exit warehouse event;
[0058] The first working mode determination module can be specifically used to: determine the target working mode of the headphones based on the first number of times the headphones enter and exit the chamber and the directional order of the events.
[0059] A fourth aspect of this application provides an earphone control device applied to an earphone in an earphone system, the earphone system including a charging case and the earphone, the earphone control device including:
[0060] The second entry / exit count detection module is used to detect the second entry / exit count of the earphone; wherein, the second entry / exit count is the number of consecutive second entry / exit events, and the second entry / exit event is an event in which the earphone is moved into the charging case and then moved out of the charging case;
[0061] The second working mode determination module is used to determine the target working mode of the earphones based on the second number of times the earphones enter and exit the chamber.
[0062] The working mode control module is used to control the headphones to enter the target working mode.
[0063] A fifth aspect of this application provides a charging case including 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 any of the above-described headphone control methods.
[0064] A sixth aspect of this application provides an earphone, including 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 any of the above-described earphone control methods.
[0065] A seventh aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the headphone control methods described above.
[0066] An eighth aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described headphone control methods.
[0067] The beneficial effects of this application embodiment compared with the prior art are as follows: When this application embodiment is applied to the charging case of an earphone system, it can detect the first number of times the earphone enters and exits the charging case; wherein, the first number of times the earphone enters and exits the charging case is the number of consecutive occurrences of the first entry and exit event, and the first entry and exit event is the event of moving the earphone out of the charging case and then back into the charging case; the target operating mode of the earphone is determined based on the first number of times the earphone enters and exits the charging case; and a target control command is sent to the earphone; wherein, the target control command is used to control the earphone to enter the target operating mode. Through this application embodiment, the corresponding operating mode can be determined based on the number of times the earphone enters and exits the charging case consecutively, and the earphone can be controlled without setting physical buttons, avoiding the impact of setting physical buttons on the product's sealing performance, and having better dustproof and waterproof performance. Attached Figure Description
[0068] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the 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.
[0069] Figure 1 This is a flowchart of one embodiment of an earphone control method applied to a charging case in this application.
[0070] Figure 2 A schematic diagram for detecting the first number of times the earphone enters and exits the charging case;
[0071] Figure 3 This is a flowchart of one embodiment of a headphone control method applied to headphones, as described in this application.
[0072] Figure 4 This is a structural diagram of one embodiment of an earphone control device applied to a charging case in this application.
[0073] Figure 5 This is a structural diagram of one embodiment of a headphone control device applied to headphones, as described in this application.
[0074] Figure 6 This is a schematic block diagram of a charging case according to an embodiment of this application;
[0075] Figure 7 This is a schematic block diagram of a battery according to an embodiment of this application. Detailed Implementation
[0076] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0077] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0078] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0079] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0080] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."
[0081] Furthermore, in the description of this application, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0082] With the development of science and technology, True Wireless Stereo (TWS) earbuds are gradually replacing traditional wired earbuds due to their convenience. A typical TWS earbud system includes a charging case and earbuds. When not in use, users can store the earbuds in the charging case to charge. When the earbuds need to connect to a terminal device, the terminal device can connect via Bluetooth, enabling wireless separation of the left and right ear channels.
[0083] In current technology, most earphones rely on physical buttons on the charging case to trigger different function modes. However, placing physical buttons on the charging case can compromise the product's sealing, resulting in poorer dust and water resistance.
[0084] In view of this, embodiments of this application provide an earphone control method, device, charging case, earphone, computer-readable storage medium, and computer program product to solve the problems of poor sealing and poor dustproof and waterproof performance in existing earphone control methods.
[0085] In this embodiment, the corresponding working mode can be determined based on the number of times the earphones are continuously inserted into and removed from the charging case. The earphones can be controlled without physical buttons, avoiding the impact of physical buttons on the product's sealing performance and providing better dustproof and waterproof performance.
[0086] This application's embodiments can be applied to charging cases, meaning the executing entity can be a charging case. Please refer to [link / reference]. Figure 1 One embodiment of the earphone control method applied to a charging case in this application may include:
[0087] Step S101: Detect the first number of times the earphone enters and exits the chamber.
[0088] The earphones in this application embodiment may include, but are not limited to, the left earphone and / or the right earphone. The first entry / exit count is the number of consecutive occurrences of the first entry / exit event, which is an event of removing the earphone from the charging case and then moving it back into the charging case.
[0089] In one specific implementation of this application, the first out-of-cargo and in-cargo events can be detected based on the timestamps of the out-of-cargo and in-cargo actions, wherein the out-of-cargo action is the action of moving out of the charging compartment and the in-cargo action is the action of moving into the charging compartment.
[0090] Specifically, the system can first detect the ejection action of the earphones from the tray. If no ejection action is detected, the detection continues until an ejection action is detected; if an ejection action is detected, the timestamp corresponding to that ejection action can be recorded and designated as the first ejection timestamp.
[0091] After detecting an ejection action, the system can continue to detect an insertion action. If no insertion action is detected, the detection continues until an insertion action is detected; if an insertion action is detected, the timestamp corresponding to that action is recorded and designated as the first insertion timestamp.
[0092] After detecting the outbound and inbound actions in sequence, the time difference between the first inbound timestamp and the first outbound timestamp can be determined. The difference between the first inbound timestamp and the first outbound timestamp is taken as the time difference between the two.
[0093] After obtaining the time difference between the two, it can be determined whether the time difference is greater than the preset action interval duration. The action interval duration can be flexibly set according to the actual situation. For example, it can be set to 0.5 seconds, 1 second, 2 seconds or other values. This application embodiment does not specifically limit it in this way.
[0094] If the time difference is greater than the action interval, then the exit action and the entry action can be considered as two independent actions with no correlation between them, and cannot constitute a complete first exit / entry event. In this case, the step of detecting the exit action of the headphones and its subsequent steps can be returned to continue detecting the first exit / entry event.
[0095] If the time difference is less than or equal to the action interval, then the exit action and the entry action can be considered as two related actions, which can constitute a complete first exit / entry event. At this time, it can be determined that the first exit / entry event has been detected.
[0096] Based on the aforementioned detection of the first entry and exit event, the number of times the earphones first enter and exit the chamber can be detected.
[0097] Specifically, the system can first detect the first inbound / outbound event. If no such event is detected, detection continues until the first inbound / outbound event is detected. If the first inbound / outbound event is detected, the first inbound / outbound count can be initialized to a preset initial value. This initial value can be flexibly set according to actual conditions; for example, it can be set to 1 or other values. This embodiment does not impose specific limitations on this.
[0098] After the first inbound / outbound event is detected, new inbound / outbound events can be detected, and it can be determined whether a new inbound / outbound event is detected within a preset event interval. The event interval can be flexibly set according to the actual situation, for example, it can be set to 0.5 seconds, 1 second, 2 seconds or other values. This application embodiment does not specifically limit it in this way.
[0099] If a new first entry / exit event is detected within the event interval, it can be considered that the new first entry / exit event and the previous first entry / exit event are two related events that occur consecutively. In this case, the count of the first entry / exit event can be incremented by one unit, and the process returns to the step of continuing to detect new first entry / exit events and subsequent steps. That is, new first entry / exit events are continuously detected and the count of the first entry / exit event is updated until the continuity of the first entry / exit events is broken. The counting unit can be flexibly set according to the actual situation. For example, it can be set to 1 or other values. This application embodiment does not specifically limit this.
[0100] If no new first entry / exit event is detected within the event interval, the continuity of the first entry / exit event can be considered to be interrupted. Even if a new first entry / exit event is detected later, it is an independent event from the previous one and cannot constitute a continuous first entry / exit event. Therefore, the detection of the first entry / exit count of the headphones can be stopped, and the first entry / exit count at this time is the final first entry / exit count.
[0101] For ease of understanding, Figure 2 The diagram illustrates the detection of the first number of earphone entry / exit events. As shown, after the first entry / exit event is detected (denoted as first entry / exit event 1), the count is initialized to 1. The detection continues for new first entry / exit events. If another first entry / exit event is detected within the event interval following first entry / exit event 1 (denoted as first entry / exit event 2), the count is updated to 2. The detection continues again. If another first entry / exit event is detected within the event interval following first entry / exit event 2 (denoted as first entry / exit event 3), the count is updated to 3. The detection continues until no new first entry / exit event is detected within the event interval following first entry / exit event 3. This indicates that the continuity of the first entry / exit events has been interrupted, and the detection process ends. The final detected count is 3. Even if a new first entry / exit event is subsequently detected (denoted as first entry / exit event 4), it will not be counted in the current count.
[0102] Step S102: Determine the target working mode of the headphones based on the first number of times they enter and exit the chamber.
[0103] The various working modes of the headphones can be flexibly set according to the actual situation, including but not limited to pairing mode, team mode, auxiliary hearing mode, hearing protection mode (i.e., limiting the maximum sound decibel), noise reduction mode, and turning on or off the headphone wearing timeout reminder switch, headphone finder switch, low battery reminder switch, etc. This application embodiment does not specifically limit these.
[0104] The correspondence between the first number of inbound / outbound transactions and the working mode can be flexibly set according to the actual situation. For example, it can be set as follows: when the first number of inbound / outbound transactions is 2, the corresponding working mode is the pairing mode; when the first number of inbound / outbound transactions is 3, the corresponding working mode is the team mode, and so on, as shown in the table below:
[0105] First entry / exit count Work mode 2 Pairing mode 3 Team mode …… ……
[0106] It is easy to understand that the above correspondence is only an example, and other different correspondences can be set according to the actual situation. This application does not make specific limitations on this.
[0107] After the first number of in-and-out cycles is completed, the working mode corresponding to the first number of in-and-out cycles can be determined based on the correspondence between the first number of in-and-out cycles and the working mode, and this mode can be identified as the target working mode of the headphones.
[0108] Step S103: Send the target control command to the headset.
[0109] The target control command is used to control the headphones to enter the target working mode. After receiving the target control command, the headphones can enter the target working mode according to the target control command.
[0110] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the first number of times the headphones enter and exit the tray, the event speed type of the first entry and exit event can also be determined.
[0111] The specific classification method of various event speed types can be flexibly set according to the actual situation. For example, it can be divided into two levels of event speed types, namely fast entry and exit and slow entry and exit. Or, it can be divided into three levels of event speed types, namely fast entry and exit, medium entry and exit and slow entry and exit. Of course, more levels of event speed types can also be divided according to the actual situation. This application embodiment does not make specific limitations on this.
[0112] Taking a two-level event speed type as an example, for the first inbound / outbound event, the time difference between its first inbound timestamp and first outbound timestamp can be compared with a preset first threshold. If the time difference is greater than the first threshold, the event speed type of the first inbound / outbound event can be determined to be slow inbound / outbound; if the time difference is less than or equal to the first threshold, the event speed type of the first inbound / outbound event can be determined to be fast inbound / outbound. The first threshold can be flexibly set according to actual conditions, and this embodiment does not impose specific limitations on it.
[0113] Taking a three-level event speed type as an example, for the first inbound / outbound event, the time difference between its first inbound timestamp and first outbound timestamp can be compared with preset second and third thresholds. If the time difference is greater than the second threshold, the event speed type of the first inbound / outbound event can be determined to be slow inbound / outbound; if the time difference is less than or equal to the second threshold and greater than the third threshold, the event speed type of the first inbound / outbound event can be determined to be medium-speed inbound / outbound; if the time difference is less than or equal to the third threshold, the event speed type of the first inbound / outbound event can be determined to be fast inbound / outbound. The second threshold is greater than the third threshold, and their specific values can be flexibly set according to actual conditions; this embodiment does not impose specific limitations on this.
[0114] After detecting the number of times the headphones first enter and exit the tray and determining the event speed type of the first entry and exit event, the target operating mode of the headphones can be determined based on the number of times the headphones first enter and exit the tray and the event speed type.
[0115] The correspondence between the first number of inbound / outbound operations, the event speed type, and the working mode can be flexibly set according to actual conditions. For example, it can be set as follows: when the first number of inbound / outbound operations is 2 and the event speed type is fast inbound / outbound, the corresponding working mode is pairing mode; when the first number of inbound / outbound operations is 2 and the event speed type is slow inbound / outbound, the corresponding working mode is team mode; when the first number of inbound / outbound operations is 3 and the event speed type is fast inbound / outbound, the corresponding working mode is auxiliary hearing mode; when the first number of inbound / outbound operations is 3 and the event speed type is slow inbound / outbound, the corresponding working mode is noise reduction mode, and so on. It is easy to understand that the above correspondence is only an example, and other different correspondences can be set according to actual conditions. This application embodiment does not specifically limit this.
[0116] Based on the correspondence between the first number of in-and-out entries, the event speed type, and the working mode, the working mode corresponding to the detected first number of in-and-out entries and the event speed type can be determined and identified as the target working mode of the headphones.
[0117] After determining the target operating mode of the headphones, a target control command can be sent to the headphones to control them to enter the target operating mode.
[0118] In one specific implementation of this application, before determining the target working mode of the headphones, in addition to detecting the first number of times the headphones enter and exit the tray, the event interval type of the first entry and exit event can also be determined.
[0119] The specific classification method for various event interval types can be flexibly set according to the actual situation. For example, two levels of event interval types can be divided, namely short interval entry and exit and long interval entry and exit. Or, three levels of event interval types can be divided, namely short interval entry and exit, medium interval entry and exit and long interval entry and exit. Of course, more levels of event interval types can also be divided according to the actual situation. This application embodiment does not make specific limitations on this.
[0120] Taking a two-level event interval type as an example, the time difference between two adjacent first entry / exit events can be compared with a preset first interval threshold. If the time difference is greater than the first interval threshold, the event interval type of the first entry / exit event can be determined to be a long interval entry / exit; if the time difference is less than or equal to the first interval threshold, the event interval type of the first entry / exit event can be determined to be a short interval entry / exit. The first interval threshold can be flexibly set according to actual conditions, and this embodiment does not impose specific limitations on it.
[0121] Taking a three-level event interval type as an example, the time difference between two adjacent first entry / exit events can be compared with preset second and third interval thresholds. If the time difference is greater than the second interval threshold, the event interval type of the first entry / exit event can be determined to be a long-interval entry / exit; if the time difference is less than or equal to the second interval threshold and greater than the third interval threshold, the event interval type of the first entry / exit event can be determined to be a medium-interval entry / exit; and if the time difference is less than or equal to the third interval threshold, the event interval type of the first entry / exit event can be determined to be a short-interval entry / exit. The second interval threshold is greater than the third interval threshold, and their specific values can be flexibly set according to actual conditions. This application embodiment does not impose specific limitations on this.
[0122] After detecting the number of times the headphones enter and exit the charging case and determining the event interval type of the first entry and exit event, the target operating mode of the headphones can be determined based on the number of times the headphones enter and exit the charging case and the event interval type.
[0123] The correspondence between the number of first entry / exit times, the event interval type, and the working mode can be flexibly set according to actual conditions. For example, it can be set as follows: when the number of first entry / exit times is 2 and the event interval type is short interval entry / exit, the corresponding working mode is pairing mode; when the number of first entry / exit times is 2 and the event interval type is long interval entry / exit, the corresponding working mode is team mode; when the number of first entry / exit times is 3 and the event interval type is short interval entry / exit, the corresponding working mode is auxiliary hearing mode; when the number of first entry / exit times is 3 and the event interval type is long interval entry / exit, the corresponding working mode is noise reduction mode, and so on. It is easy to understand that the above correspondence is only an example, and other different correspondences can be set according to actual conditions. This application embodiment does not specifically limit this.
[0124] Based on the correspondence between the first number of times the device enters and exits the chamber, the event interval type, and the working mode, the working mode corresponding to the detected first number of times the device enters and exits the chamber and the event interval type can be determined, and this can be identified as the target working mode of the headphones.
[0125] After determining the target operating mode of the headphones, a target control command can be sent to the headphones to control them to enter the target operating mode.
[0126] In one specific implementation of this application embodiment, the earphones may include a left earphone and a right earphone, and the first entry / exit event may include a first left entry / exit event and a first right entry / exit event; wherein, the first left entry / exit event is the event in which the left earphone is removed from the charging case and then moved back into the charging case, and the first right entry / exit event is the event in which the right earphone is removed from the charging case and then moved back into the charging case.
[0127] Before determining the target operating mode of the headphones, in addition to detecting the first number of times the headphones enter and exit the charging case, the directional order of the first left and right entry / exit events can also be determined. For example, if the first number of entry / exit events is 4, and they are sequentially denoted as first entry / exit event 1, first entry / exit event 2, first entry / exit event 3, and first entry / exit event 4, if first entry / exit event 1 and second entry / exit event 2 are both first left entry / exit events, and first entry / exit event 3 and second entry / exit event 4 are both first right entry / exit events, then the directional order of events can be denoted as: {left, left, right, right}; if first entry / exit event 1 and second entry / exit event 2 are both first right entry / exit events, and first entry / exit event 3 and second entry / exit event 4 are both first left entry / exit events, then the directional order of events can be denoted as: {right, right, left, left}, and so on.
[0128] After detecting the first number of times the earphones enter and exit the chamber, and determining the directional order of the first left and right entry / exit events, the target operating mode of the earphones can be determined based on the number of times the earphones enter and exit the chamber and the directional order of the events.
[0129] The correspondence between the first number of inbound / outbound entries, the directional order of events, and the working mode can be flexibly set according to the actual situation. For example, it can be set as follows: when the first number of inbound / outbound entries is 4 and the directional order of events is {left, left, right, right}, the corresponding working mode is the pairing mode; when the first number of inbound / outbound entries is 4 and the directional order of events is {right, right, left, left}, the corresponding working mode is the team mode, and so on. It is easy to understand that the above correspondence is only an example, and other different correspondences can be set according to the actual situation. This application embodiment does not specifically limit this.
[0130] Based on the correspondence between the first number of entry / exit times, the directional order of events, and the working mode, the working mode corresponding to the detected first number of entry / exit times and the directional order of events can be determined and identified as the target working mode of the headphones.
[0131] After determining the target operating mode of the headphones, a target control command can be sent to the headphones to control them to enter the target operating mode.
[0132] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the first number of times the headphones re-enter and exit the charging case, the event speed type and event interval type can also be determined. Then, the target operating mode of the headphones can be determined based on the first number of times the headphones re-enter and exit the charging case, the event speed type, and the event interval type. The correspondence between the first number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected first number of times the headphones re-enter and exit the charging case, the event speed type, and the event interval type can be determined, and this can be determined as the target operating mode of the headphones. After determining the target operating mode of the headphones, a target control command can be sent to the headphones to control the headphones to enter the target operating mode.
[0133] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the first number of times the headphones re-enter and exit the charging case, the event speed type and event directionality order can also be determined. Then, the target operating mode of the headphones can be determined based on the first number of times the headphones re-enter and exit the charging case, the event speed type, and the event directionality order. The correspondence between the first number of times the headphones re-enter and exit the charging case, the event speed type, the event directionality order, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected first number of times the headphones re-enter and exit the charging case, the event speed type, and the event directionality order can be determined, and this can be determined as the target operating mode of the headphones. After determining the target operating mode of the headphones, a target control command can be sent to the headphones to control the headphones to enter the target operating mode.
[0134] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the first number of times the headphones re-enter and exit the charging case, the event interval type and the event directionality order can also be determined. Then, the target operating mode of the headphones can be determined based on the first number of times the headphones re-enter and exit the charging case, the event interval type, and the event directionality order. The correspondence between the first number of times the headphones re-enter and exit the charging case, the event interval type, the event directionality order, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected first number of times the headphones re-enter and exit the charging case, the event interval type, and the event directionality order can be determined, and this can be determined as the target operating mode of the headphones. After determining the target operating mode of the headphones, a target control command can be sent to the headphones to control the headphones to enter the target operating mode.
[0135] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the first number of times the headphones re-enter and exit the charging case, the event speed type, event interval type, and event directionality order can also be determined. Then, the target operating mode of the headphones can be determined based on the first number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, and the event directionality order. The correspondence between the first number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, the event directionality order, and the operating mode can be flexibly set according to actual conditions, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected first number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, and the event directionality order can be determined, and this can be identified as the target operating mode of the headphones. After determining the target operating mode of the headphones, a target control command can be sent to the headphones to control the headphones to enter the target operating mode.
[0136] The embodiments of this application can be applied to headphones, that is, the executing entity can be headphones. Please refer to [link / reference]. Figure 3One embodiment of a headphone control method applied to headphones in this application may include:
[0137] Step S301: Detect the number of times the earphone enters and exits the second chamber.
[0138] The earphones in this embodiment may include, but are not limited to, the left earphone and / or the right earphone. The second entry / exit count is the number of consecutive second entry / exit events, where the second entry / exit event is an event where the earphone is moved into the charging case and then removed from it.
[0139] In one specific implementation of this application, the second warehouse entry / exit event can be detected based on the timestamps of the warehouse entry and exit actions.
[0140] Specifically, the system can first detect the insertion of the earphones into the charging case. If no insertion is detected, the detection continues until an insertion is detected. If an insertion is detected, the timestamp corresponding to that insertion is recorded and designated as the second insertion timestamp.
[0141] After detecting the insertion action, the detection of the earphone ejection action can continue. If no ejection action is detected, the detection continues until an ejection action is detected; if an ejection action is detected, the timestamp corresponding to the ejection action is recorded and designated as the second ejection timestamp.
[0142] After detecting the inbound and outbound actions in sequence, the time difference between the second outbound timestamp and the second inbound timestamp can be determined. The difference between the second outbound timestamp and the second inbound timestamp is taken as the time difference between the two.
[0143] After obtaining the time difference between the two actions, it can be determined whether this time difference is greater than the action interval. If the time difference is greater than the action interval, the in-ear and out-of-ear actions can be considered as two independent actions, unrelated to each other, and cannot constitute a complete second in-ear / out-of-ear event. In this case, the process can return to the step of detecting the earphone's in-ear action and its subsequent steps, i.e., continue detecting the second in-ear / out-of-ear event. If the time difference is less than or equal to the action interval, the in-ear and out-of-ear actions can be considered as two related actions, constituting a complete second in-ear / out-of-ear event. In this case, it can be confirmed that the second in-ear / out-of-ear event has been detected.
[0144] Building upon the aforementioned detection of the second entry / exit event, the number of times the earphones have entered / exited the earphones can be detected. Specifically, the second entry / exit event can be detected first. If no second entry / exit event is detected, detection continues until the first second entry / exit event is detected. If the second entry / exit event is detected for the first time, the number of second entry / exit events can be initialized to a preset initial value. After the first detection of the second entry / exit event, new second entry / exit events can be detected, and it can be determined whether a new second entry / exit event is detected within a preset event interval.
[0145] If a new second entry / exit event is detected within the event interval, it can be considered that the new second entry / exit event and the previous second entry / exit event are two related events that occur consecutively. At this time, the count of the second entry / exit event can be incremented by one unit, and the process can return to the step of continuing to detect new second entry / exit events and its subsequent steps. That is, new second entry / exit events are continuously detected and the count of the second entry / exit event is updated until the continuity of the second entry / exit events is broken.
[0146] If no new second entry / exit event is detected within the event interval, the continuity of the second entry / exit event can be considered to be interrupted. Even if a new second entry / exit event is detected later, it is an independent event from the previous second entry / exit event. There is no correlation between the two, and they cannot constitute a continuous second entry / exit event. Therefore, the detection of the second entry / exit count of the headphones can be stopped. The second entry / exit count at this time is the final second entry / exit count.
[0147] Step S302: Determine the target operating mode of the headphones based on the second number of times the headphones enter and exit the chamber.
[0148] Step S302 is similar to step S102, except that the first number of inbound / outbound entries in step S102 is replaced with the second number of inbound / outbound entries. For details, please refer to the detailed description in step S102, which will not be repeated here.
[0149] Step S303: Control the headphones to enter the target working mode.
[0150] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the second number of times the headphones re-enter and exit the charging case, the event speed type of the second re-entry and exit event can also be determined. Then, the target operating mode of the headphones can be determined based on the second number of times the headphones re-enter and exit the charging case and the event speed type. The correspondence between the second number of times the headphones re-enter and exit the charging case, the event speed type, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected second number of times the headphones re-enter and exit the charging case and the event speed type can be determined, and this can be determined as the target operating mode of the headphones, and the headphones can be controlled to enter the target operating mode.
[0151] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the second number of times the headphones re-enter and exit the charging case, the event interval type of the second re-entry and exit event can also be determined. Then, the target operating mode of the headphones can be determined based on the second number of times the headphones re-enter and exit the charging case and the event interval type. The correspondence between the second number of times the headphones re-enter and exit the charging case, the event interval type, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected second number of times the headphones re-enter and exit the charging case and the event interval type can be determined as the target operating mode of the headphones, and the headphones can be controlled to enter the target operating mode.
[0152] In one specific implementation of this application, the earphones may include a left earphone and a right earphone, and the second insertion / exit event may include a second left insertion / exit event and a second right insertion / exit event; wherein, the second left insertion / exit event is the event where the left earphone is moved into the charging case and then removed from the charging case, and the second right insertion / exit event is the event where the right earphone is moved into the charging case and then removed from the charging case. Before determining the target operating mode of the earphones, in addition to detecting the number of second insertion / exit events, the directional order of the second left insertion / exit events and the second right insertion / exit events can also be determined. Then, the target operating mode of the earphones can be determined based on the number of second insertion / exit events and the directional order of events. The correspondence between the number of second insertion / exit events, the directional order of events, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected number of second insertion / exit events and the directional order of events can be determined as the target operating mode of the earphones, and the earphones are controlled to enter the target operating mode.
[0153] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the second number of times the headphones re-enter and exit the charging case, the event speed type and event interval type can also be determined. Then, the target operating mode of the headphones can be determined based on the second number of times the headphones re-enter and exit the charging case, the event speed type, and the event interval type. The correspondence between the second number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected second number of times the headphones re-enter and exit the charging case, the event speed type, and the event interval type can be determined as the target operating mode of the headphones, and the headphones can be controlled to enter the target operating mode.
[0154] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the second number of times the headphones re-enter and exit the charging case, the event speed type and event directionality order can also be determined. Then, the target operating mode of the headphones can be determined based on the second number of times the headphones re-enter and exit the charging case, the event speed type, and the event directionality order. The correspondence between the second number of times the headphones re-enter and exit the charging case, the event speed type, the event directionality order, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected second number of times the headphones re-enter and exit the charging case, the event speed type, and the event directionality order can be determined as the target operating mode of the headphones, and the headphones can be controlled to enter the target operating mode.
[0155] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the second number of times the headphones re-enter and exit the charging case, the event interval type and the event directionality order can also be determined. Then, the target operating mode of the headphones can be determined based on the second number of times the headphones re-enter and exit the charging case, the event interval type, and the event directionality order. The correspondence between the second number of times the headphones re-enter and exit the charging case, the event interval type, the event directionality order, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected second number of times the headphones re-enter and exit the charging case, the event interval type, and the event directionality order can be determined, and this can be determined as the target operating mode of the headphones, and the headphones can be controlled to enter the target operating mode.
[0156] In one specific implementation of this application, before determining the target operating mode of the headphones, in addition to detecting the second number of times the headphones re-enter and exit the charging case, the event speed type, event interval type, and event directionality order can also be determined. Then, the target operating mode of the headphones can be determined based on the second number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, and the event directionality order. The correspondence between the second number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, the event directionality order, and the operating mode can be flexibly set according to the actual situation, and this application embodiment does not specifically limit this. Based on this correspondence, the operating mode corresponding to the detected second number of times the headphones re-enter and exit the charging case, the event speed type, the event interval type, and the event directionality order can be determined, and this can be determined as the target operating mode of the headphones, and the headphones can be controlled to enter the target operating mode.
[0157] In summary, through the embodiments of this application, the corresponding working mode can be determined according to the number of times the earphones are continuously inserted into and removed from the charging case. The earphones can be controlled without physical buttons, avoiding the impact of physical buttons on the product's sealing performance, and providing better dustproof and waterproof performance.
[0158] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0159] Corresponding to the earphone control method applied to the charging case described in the above embodiment, Figure 4 This illustration shows a structural diagram of an embodiment of an earphone control device applied to a charging case, as provided in this application.
[0160] In this embodiment, a headphone control device may include:
[0161] The first entry / exit count detection module 401 is used to detect the first entry / exit count of the earphone; wherein, the first entry / exit count is the number of consecutive first entry / exit events, and the first entry / exit event is an event in which the earphone is removed from the charging case and then moved back into the charging case;
[0162] The first working mode determination module 402 is used to determine the target working mode of the earphone based on the first number of times it enters and exits the chamber.
[0163] The control command sending module 403 is used to send a target control command to the headset; wherein the target control command is used to control the headset to enter the target working mode.
[0164] In one specific implementation of this application embodiment, the first warehouse entry / exit count detection module may include:
[0165] The first warehouse entry / exit event detection unit is used to detect the first warehouse entry / exit event.
[0166] The first entry / exit count initialization unit is used to initialize the first entry / exit count and continue to detect the first entry / exit event if the first entry / exit event is detected for the first time.
[0167] The first entry / exit count unit is used to increment the first entry / exit count by one unit if the first entry / exit event is detected within a preset event interval, and then return to the step of continuing to detect the first entry / exit event and its subsequent steps.
[0168] The first entry / exit count end detection unit is used to end the detection of the first entry / exit count of the earphone if the first entry / exit event is not detected within the event interval.
[0169] In one specific implementation of this application embodiment, the first in-and-out event detection unit can be specifically used to: detect the earphone's out-of-the-case action; wherein, the out-of-the-case action is the action of removing the earphone from the charging case; if the out-of-the-case action is detected, then record a first out-of-the-case timestamp corresponding to the out-of-the-case action; detect the earphone's in-the-case action; wherein, the in-the-case action is the action of moving the earphone into the charging case; if the in-the-case action is detected, then record a first in-the-case timestamp corresponding to the in-the-case action; determine the time difference between the first in-the-case timestamp and the first out-of-the-case timestamp; if the time difference is greater than a preset action interval duration, then return to the step of detecting the earphone's out-of-the-case action and its subsequent steps; if the time difference is less than or equal to the action interval duration, then determine that the first in-and-out event has been detected.
[0170] In one specific implementation of this application embodiment, the headphone control device may further include:
[0171] The event velocity type determination module is used to determine the event velocity type of the first inbound / outbound event;
[0172] The first working mode determination module can be specifically used to: determine the target working mode of the headphones based on the first number of times the headphones enter and exit the chamber and the event speed type.
[0173] In one specific implementation of this application embodiment, the headphone control device may further include:
[0174] The event interval type determination module is used to determine the event interval type of the first inbound / outbound event;
[0175] The first working mode determination module can be specifically used to: determine the target working mode of the headphones based on the first number of times the headphones enter and exit the chamber and the event interval type.
[0176] In one specific implementation of this application embodiment, the earphone may include a left earphone and a right earphone, and the first entry / exit event may include a first left entry / exit event and a first right entry / exit event; wherein, the first left entry / exit event is the event in which the left earphone is removed from the charging case and then moved back into the charging case, and the first right entry / exit event is the event in which the right earphone is removed from the charging case and then moved back into the charging case;
[0177] The headphone control device may further include:
[0178] The event directionality order determination module is used to determine the event directionality order of the first left entry / exit warehouse event and the first right entry / exit warehouse event;
[0179] The first working mode determination module can be specifically used to: determine the target working mode of the headphones based on the first number of times the headphones enter and exit the chamber and the directional order of the events.
[0180] Corresponding to the headphone control method applied to headphones described in the above embodiments, Figure 5 This illustration shows a structural diagram of one embodiment of a headphone control device for headphones provided in this application.
[0181] In this embodiment, a headphone control device may include:
[0182] The second entry / exit count detection module 501 is used to detect the second entry / exit count of the earphone; wherein, the second entry / exit count is the number of consecutive second entry / exit events, and the second entry / exit event is an event in which the earphone is moved into the charging case and then moved out of the charging case;
[0183] The second working mode determination module 502 is used to determine the target working mode of the earphones based on the second number of times the earphones enter and exit the chamber.
[0184] The working mode control module 503 is used to control the headphones to enter the target working mode.
[0185] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0186] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0187] Figure 6 A schematic block diagram of a charging case provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.
[0188] like Figure 6 As shown, the charging case 6 in this embodiment includes a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, it implements the steps in the various headphone control method embodiments described above, for example... Figure 1 Steps S101 to S103 are shown. Alternatively, when the processor 60 executes the computer program 62, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 4 The functions of modules 401 to 403 are shown.
[0189] For example, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 62 in the charging compartment 6.
[0190] Those skilled in the art will understand that Figure 6 This is merely an example of the charging compartment 6 and does not constitute a limitation on the charging compartment 6. It may include more or fewer components than shown, or combine certain components, or different components. For example, the charging compartment 6 may also include input / output devices, network access devices, buses, etc.
[0191] The processor 60 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0192] The memory 61 can be an internal storage unit of the charging compartment 6, such as a hard drive or memory. The memory 61 can also be an external storage device of the charging compartment 6, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the charging compartment 6. Furthermore, the memory 61 can include both internal storage units and external storage devices. The memory 61 is used to store the computer program and other programs and data required by the charging compartment 6. The memory 61 can also be used to temporarily store data that has been output or will be output.
[0193] Figure 7 A schematic block diagram of an earphone provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.
[0194] like Figure 7 As shown, the earphone 7 in this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. When the processor 70 executes the computer program 72, it implements the steps in the various earphone control method embodiments described above, for example... Figure 3 Steps S301 to S303 are shown. Alternatively, when the processor 70 executes the computer program 72, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 5 The functions of modules 501 to 503 are shown.
[0195] For example, the computer program 72 may be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 72 in the earphone 7.
[0196] Those skilled in the art will understand that Figure 7 This is merely an example of headphone 7 and does not constitute a limitation on headphone 7. It may include more or fewer components than shown, or combine certain components, or different components. For example, the headphone 7 may also include input / output devices, network access devices, buses, etc.
[0197] The processor 70 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0198] The memory 71 can be an internal storage unit of the earphone 7, such as a hard drive or memory of the earphone 7. The memory 71 can also be an external storage device of the earphone 7, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the earphone 7. Furthermore, the memory 71 can include both internal storage units and external storage devices of the earphone 7. The memory 71 is used to store the computer program and other programs and data required by the earphone 7. The memory 71 can also be used to temporarily store data that has been output or will be output.
[0199] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0200] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0201] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0202] In the embodiments provided in this application, it should be understood that the disclosed device / charging case and method can be implemented in other ways. For example, the device / charging case embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0203] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0204] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0205] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.
[0206] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A headphone control method, characterized in that, A charging case for use in an earphone system, the earphone system including the charging case and earphones, the earphone control method including: The first number of times the earphone enters and exits the charging case is detected; wherein, the first number of times the first entry and exit is detected is the number of times the first entry and exit event occurs consecutively, and the first entry and exit event is the event of the earphone being removed from the charging case and then moved back into the charging case; The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber. Send a target control command to the headset; wherein the target control command is used to control the headset to enter the target working mode.
2. The headphone control method according to claim 1, characterized in that, The detection of the first number of times the earphone enters and exits the chamber includes: Detect the first inbound / outbound event; If the first entry / exit event is detected for the first time, the first entry / exit count is initialized, and the detection of the first entry / exit event continues. If the first entry / exit event is detected within the preset event interval, the count of the first entry / exit event is incremented by one unit, and the process returns to the step of continuing to detect the first entry / exit event and its subsequent steps. If the first entry / exit event is not detected within the specified event interval, the detection of the first entry / exit count of the earphones will cease.
3. The headphone control method according to claim 2, characterized in that, The detection of the first inbound / outbound event includes: The action of removing the earphone from the charging case is detected; wherein, the action of removing the earphone from the charging case is the action of removing it from the charging case. If the exit action is detected, the first exit timestamp corresponding to the exit action is recorded; The action of inserting the earphones into the charging case is detected; wherein, the action of inserting the earphones into the charging case is the action of moving them into the charging case. If the warehouse entry action is detected, the first warehouse entry timestamp corresponding to the warehouse entry action is recorded; Determine the time difference between the first warehouse entry timestamp and the first warehouse exit timestamp; If the time difference is greater than the preset action interval, then return to the step of detecting the earphone's ejection action and its subsequent steps. If the time difference is less than or equal to the action interval duration, then it is determined that the first entry / exit event has been detected.
4. The headphone control method according to any one of claims 1 to 3, characterized in that, Before determining the target operating mode of the headphones based on the first number of times they enter and exit the chamber, the method further includes: Determine the event velocity type of the first inbound / outbound event; Determining the target operating mode of the headphones based on the first number of times they enter and exit the chamber includes: The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber and the event speed type.
5. The headphone control method according to any one of claims 1 to 3, characterized in that, Before determining the target operating mode of the headphones based on the first number of times they enter and exit the chamber, the method further includes: Determine the event interval type of the first inbound / outbound event; Determining the target operating mode of the headphones based on the first number of times they enter and exit the chamber includes: The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber and the event interval type.
6. The headphone control method according to any one of claims 1 to 3, characterized in that, The earphones include a left earphone and a right earphone. The first entry / exit event includes a first left entry / exit event and a first right entry / exit event. The first left entry / exit event is the event in which the left earphone is removed from the charging case and then moved back into the charging case, and the first right entry / exit event is the event in which the right earphone is removed from the charging case and then moved back into the charging case. Before determining the target operating mode of the headphones based on the first number of times they enter and exit the chamber, the method further includes: Determine the directional order of the first left entry / exit event and the first right entry / exit event; Determining the target operating mode of the headphones based on the first number of times they enter and exit the chamber includes: The target operating mode of the headphones is determined based on the first number of times the headphones enter and exit the chamber and the directional order of the events.
7. A headphone control method, characterized in that, Earphones used in an earphone system, the earphone system including a charging case and the earphones, the earphone control method including: The second number of times the earphone enters and exits the charging case is detected; wherein, the second number of times ... earphone enters and exits the charging case is an event in which the earphone is moved into the charging case and then moved out of the charging case; The target operating mode of the headphones is determined based on the second number of times the headphones enter and exit the chamber. Control the headphones to enter the target working mode.
8. A headphone control device, characterized in that, A charging case for use in an earphone system, the earphone system including the charging case and earphones, the earphone control device including: The first entry / exit count detection module is used to detect the first entry / exit count of the earphone; wherein, the first entry / exit count is the number of consecutive first entry / exit events, and the first entry / exit event is an event in which the earphone is removed from the charging case and then moved back into the charging case; The first working mode determination module is used to determine the target working mode of the earphone based on the first number of times it enters and exits the chamber. A control command sending module is used to send a target control command to the headset; wherein the target control command is used to control the headset to enter the target working mode.
9. A headphone control device, characterized in that, Earphones used in an earphone system, the earphone system including a charging case and the earphones, the earphone control device including: The second entry / exit count detection module is used to detect the second entry / exit count of the earphone; wherein, the second entry / exit count is the number of consecutive second entry / exit events, and the second entry / exit event is an event in which the earphone is moved into the charging case and then moved out of the charging case; The second working mode determination module is used to determine the target working mode of the earphones based on the second number of times the earphones enter and exit the chamber. The working mode control module is used to control the headphones to enter the target working mode.
10. A charging case, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the headphone control method as described in any one of claims 1 to 6.
11. A pair of headphones, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the headphone control method as described in claim 7.
12. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the headphone control method as described in any one of claims 1 to 7.
13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the headphone control method as described in any one of claims 1 to 7.