Function control method and ear clip type earphone
By detecting changes in the distance between the functional components of the ear clip-on headphones, and using Hall effect sensors and magnets to achieve functional control, the problems of waterproofing, sweatproofing, and accidental operation of ear clip-on headphones have been solved, thus improving the user experience.
Patent Information
- Application Number
- CN202411146831.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2026-03-03
AI Technical Summary
Existing clip-on headphones use physical buttons for function control, which presents challenges in waterproof and sweatproof design and overall ID appearance, and also carries a high risk of accidental operation, affecting user experience.
By detecting the distance change between the first and second functional units of the ear clip-on headphones, and utilizing the Hall sensor and the change in the magnetic field strength of the magnet, the position change state is determined and the function is controlled, reducing operational complexity and improving waterproof and sweatproof capabilities.
It simplifies the function control of clip-on headphones, improves waterproof and sweatproof capabilities, reduces the risk of accidental operation, and enhances the user experience.
Smart Images

Figure CN121603822A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of headphones, and more specifically, to a function control method and clip-on headphones in the field of headphones. Background Technology
[0002] With the development of technology, clip-on headphones have gradually entered the public eye. Compared with traditional in-ear or semi-in-ear headphones, clip-on headphones are more comfortable to wear and will not damage hearing. Existing clip-on headphones generally use physical buttons to control their functions. However, using physical buttons presents challenges in waterproof and sweatproof design, overall ID appearance, and size, and also poses a risk of accidental operation, negatively impacting the user experience. Summary of the Invention
[0003] This application provides a function control method and an ear clip-on earphone. The method can determine the target function command based on the positional changes of the first and second functional units from the previous moment to the current moment. By changing the distance between the first and second functional units, the function control of the ear clip-on earphone is achieved, reducing the complexity of operation and improving the waterproof and sweatproof capabilities of the ear clip-on earphone.
[0004] In a first aspect, a function control method is provided, which is applied to an ear clip-on earphone, the ear clip-on earphone including a first functional body and a second functional body, the method including: detecting the distance between the first functional body and the second functional body; determining the position change state of the first functional body and the second functional body based on a first distance between the first functional body and the second functional body at the current moment and a second distance between the first functional body and the second functional body at the previous moment; and determining a target function command based on the position change state of the first functional body and the second functional body.
[0005] The above technical solution detects the distance between the first and second functional units of the ear-clip headphones. Based on the first distance between the first and second functional units at the current moment and the second distance between them at the previous moment, the positional change state of the first and second functional units is determined, thereby determining the target function command. By changing the distance between the first and second functional units, the ear-clip headphones can be functionally controlled, reducing operational complexity and improving their waterproof and sweatproof capabilities.
[0006] In conjunction with the first aspect, in some possible implementations, the step of determining the position change state of the first and second functional entities based on the first distance between the first and second functional entities at the current moment and the second distance between the first and second functional entities at the previous moment includes: if the first distance between the first and second functional entities at the current moment is equal to the second distance between the first and second functional entities at the previous moment, then the position change state of the first and second functional entities is determined to be unchanged; if the first distance between the first and second functional entities at the current moment is not equal to the second distance between the first and second functional entities at the previous moment, then the position change state of the first and second functional entities is determined to be changed.
[0007] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: if the first distance between the first functional body and the second functional body at the current time is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is greater than or equal to the preset distance threshold, then the first distance and the second distance are determined to be equal; if the first distance between the first functional body and the second functional body at the current time is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is less than the preset distance threshold, then the first distance and the second distance are determined to be equal.
[0008] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: if the first distance between the first functional body and the second functional body at the current time is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is less than the preset distance threshold, then it is determined that the first distance and the second distance are not equal; if the first distance between the first functional body and the second functional body at the current time is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is greater than or equal to the preset distance threshold, then it is determined that the first distance and the second distance are not equal.
[0009] The above technical solution uses a preset distance threshold to determine whether the distance between the first functional body and the second functional body is equal from the previous moment to the current moment, thus preventing erroneous operations.
[0010] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of determining the target function instruction based on the position change state of the first functional body and the second functional body includes: if the position change state of the first functional body and the second functional body is a changing state, then obtaining the distance holding time of the first functional body and the second functional body maintaining a first distance; if the distance holding time reaches a preset time, then determining the target function instruction based on the number of state changes between the first functional body and the second functional body; the number of state changes is the number of times the position change state is continuously a changing state.
[0011] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: if the distance maintenance duration does not reach the preset duration, and the third distance between the first functional body and the second functional body is not equal to the first distance detected at the first moment, then the position change state of the first functional body and the second functional body is determined to be a change state; the first moment is any moment between the current moment and the second moment, and the second moment is the moment reached after the preset duration from the current moment; update the number of state changes, determine the third distance as the first distance, determine the first moment as the current moment, and proceed to the step of obtaining the distance maintenance duration for the first functional body and the second functional body to maintain the first distance.
[0012] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of determining the target function instruction based on the number of state changes between the first functional body and the second functional body if the distance holding time reaches the preset time includes: if the distance holding time reaches the preset time, determining the target operation type for the ear clip-on headphones based on the number of state changes between the first functional body and the second functional body and the distance holding time; and determining the function instruction corresponding to the target operation type as the target function instruction.
[0013] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the step of determining the target operation type for the earbud-type headphones based on the number of state changes between the first functional body and the second functional body, and the distance holding time, includes: if the number of state changes between the first functional body and the second functional body is one, and the distance holding time is greater than a preset time, then the target operation type for the earbud-type headphones is determined to be a single operation type, and the function instruction corresponding to the single operation type is a play instruction or a pause instruction; the step of determining the function instruction corresponding to the target operation type as the target function instruction includes: if the earbud-type headphones are in a play state, then the target function instruction is determined to be a pause instruction; if the earbud-type headphones are in a pause state, then the target function instruction is determined to be a play instruction.
[0014] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the step of determining the target operation type for the earbud-clip headphones based on the number of state changes between the first functional body and the second functional body, and the distance holding duration, includes: if the number of state changes between the first functional body and the second functional body is two, and when the number of state changes is one, the distance holding duration is greater than or equal to the preset long press duration and less than the preset duration, then the target operation type for the earbud-clip headphones is determined to be a long press operation type, and the function instruction corresponding to the long press operation type is a power-off instruction or a power-on instruction; the step of determining the function instruction corresponding to the target operation type as the target function instruction includes: if the earbud-clip headphones are in a power-off state, then the target function instruction is determined to be a power-on instruction; if the earbud-clip headphones are in a power-on state, then the target function instruction is determined to be a power-off instruction.
[0015] In combination with the first aspect and the above implementation, in some possible implementations, the first functional body is equipped with a Hall sensor and the second functional body is equipped with a magnet; or the first functional body is equipped with a magnet and the second functional body is equipped with a Hall sensor; the step of detecting the distance between the first functional body and the second functional body includes: acquiring the target Hall voltage output by the Hall sensor; determining the target magnetic field strength corresponding to the target Hall voltage according to the mapping relationship between magnetic field strength and Hall voltage; determining the target distance corresponding to the target magnetic field strength according to the mapping relationship between magnetic field strength and distance, and determining the target distance as the distance between the first functional body and the second functional body.
[0016] The above technical solution utilizes the Hall voltage generated by the magnetic field between the Hall sensor and the magnet to measure the distance between the first and second functional bodies. The Hall sensor has high accuracy, fast response speed, and high reliability, which improves the accuracy of close-range distance measurement between the two functional bodies.
[0017] In combination with the first aspect and the above implementation, in some possible implementations, the first functional body and the second functional body are connected; the first functional body is the front part of the ear clip earphone, and the second functional body is the back part of the ear clip earphone; or the first functional body is the back part of the ear clip earphone, and the second functional body is the front part of the ear clip earphone.
[0018] In conjunction with the first aspect and the above-described implementation, in some possible implementations, the ear clip-on earphone further includes a third functional body; the third functional body is the front ear functional body of the ear clip-on earphone, and the first functional body and the second functional body are the back ear functional bodies of the ear clip-on earphone; the third functional body is connected to the first functional body, and the third functional body is connected to the second functional body.
[0019] Secondly, an ear clip-on earphone is provided, the ear clip-on earphone comprising:
[0020] Memory, used to store executable program code;
[0021] The processor is used to call and run executable program code from memory, enabling the headphones to perform the aforementioned function control methods. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of a scenario for a function control method provided in an embodiment of this application;
[0023] Figure 2 This is a flowchart illustrating a function control method provided in an embodiment of this application;
[0024] Figure 3 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application;
[0025] Figure 4 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application;
[0026] Figure 5 This is a flowchart illustrating a function control method provided in an embodiment of this application;
[0027] Figure 6 This is an example diagram illustrating a single-operation type provided in an embodiment of this application;
[0028] Figure 7 This is an example diagram illustrating a long-press operation type provided in an embodiment of this application;
[0029] Figure 8 This is a schematic diagram of the structure of a functional control device provided in an embodiment of this application;
[0030] Figure 9 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application;
[0031] Figure 10 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application. Detailed Implementation
[0032] To make the 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 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.
[0033] In the following description, when referring to the accompanying drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0034] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0035] Please see Figure 1 , Figure 1 This is a schematic diagram of a scenario for a function control method provided in an embodiment of this application. For example... Figure 1 As shown, the function control method provided in this application embodiment can be applied to the usage scenario of an ear-clip earphone 100 including a first functional body 101 and a second functional body 102. By detecting the distance between the first functional body 101 and the second functional body 102 of the ear-clip earphone 100, and based on the first distance between the first functional body 101 and the second functional body 102 at the current moment and the second distance between the first functional body 101 and the second functional body 102 at the previous moment, the positional change state of the first functional body 101 and the second functional body 102 is determined, thereby determining the target function command. By changing the distance between the first functional body 101 and the second functional body 102, the function control of the ear-clip earphone 100 is achieved, reducing the operational complexity and improving the waterproof and sweatproof capabilities of the ear-clip earphone 100.
[0036] based on Figure 1 The scene diagram shown below will be combined with... Figures 2-7 The functional control method provided in the embodiments of this application will be described in detail.
[0037] Please see Figure 2 , Figure 2 This is a flowchart illustrating a function control method provided in an embodiment of this application. Figure 2 As shown, the method in this application embodiment may include the following steps S201-S203.
[0038] S201, Detect the distance between the first functional unit and the second functional unit;
[0039] Specifically, the clip-on earphone includes a first functional body and a second functional body. A Hall sensor is configured in the first functional body and a magnet is configured in the second functional body, or a magnet is configured in the first functional body and a Hall sensor is configured in the second functional body. The distance between the first functional body and the second functional body is detected by the change in the magnetic field strength between the Hall sensor and the magnet.
[0040] It should be noted that the clip-on earphones provided in this application have two structures; please refer to [link / reference]. Figure 3 , Figure 3 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application. Figure 3 As shown, the first functional body and the second functional body are connected. The first functional body is the front part of the ear clip-on earphone, and the second functional body is the back part of the ear clip-on earphone; or the first functional body is the back part of the ear clip-on earphone, and the second functional body is the front part of the ear clip-on earphone.
[0041] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application. Figure 4 As shown, the ear clip-on headphones also include a third functional body, which is the front part of the ear clip-on headphones. The first and second functional bodies are the back part of the ear clip-on headphones. The third functional body is connected to the first functional body, and the third functional body is also connected to the second functional body.
[0042] S202, determine the positional change state of the first functional body and the second functional body based on the first distance between the first functional body and the second functional body at the current moment and the second distance between the first functional body and the second functional body at the previous moment;
[0043] Specifically, the positional change state of the first and second functional entities is determined based on the first distance detected at the current moment and the second distance detected at the previous moment. The current moment and the previous moment refer to the moments when the magnetic field strength between the first and second functional entities changes. The positional change state includes an unchanged state and a changed state. When the first distance and the second distance are equal, the positional change state of the first and second functional entities is unchanged; when the first distance and the second distance are not equal, the positional change state of the first and second functional entities is changed.
[0044] S203, determine the target function instruction based on the positional change states of the first functional body and the second functional body.
[0045] Specifically, after obtaining the position change status, the target function command is determined based on the position change status, and the ear clip-on headphones are adjusted according to the target function command.
[0046] In this embodiment, the distance between the first and second functional units of the ear-clip earphone is detected. Based on the first distance between the first and second functional units at the current moment and the second distance between them at the previous moment, the positional change state of the first and second functional units is determined, thereby determining the target function command. By changing the distance between the first and second functional units, the function control of the ear-clip earphone is achieved, reducing operational complexity and improving the waterproof and sweatproof capabilities of the ear-clip earphone.
[0047] Please see Figure 5 , Figure 5 This is a flowchart illustrating a function control method provided in an embodiment of this application. Figure 5 As shown, the method in this application embodiment may include the following steps S301-S309.
[0048] S301, acquire the target Hall voltage output by the Hall sensor;
[0049] Specifically, the clip-on earphone includes a first functional unit and a second functional unit. The first functional unit is equipped with a Hall sensor, and the second functional unit is equipped with a magnet, or the first functional unit is equipped with a magnet, and the second functional unit is equipped with a Hall sensor. When the distance between the first functional unit and the second functional unit changes, the magnetic field strength between the Hall sensor and the magnet changes, and the target Hall voltage output by the Hall sensor is obtained. The Hall voltage can directly reflect the magnetic field strength between the Hall sensor and the magnet, and indirectly reflect the distance between the Hall sensor and the magnet.
[0050] S302, Based on the mapping relationship between magnetic field strength and Hall voltage, determine the target magnetic field strength corresponding to the target Hall voltage;
[0051] Specifically, since the Hall voltage can directly reflect the magnetic field strength between the Hall sensor and the magnet, the target magnetic field strength corresponding to the target Hall voltage can be determined based on the mapping relationship between the magnetic field strength and the Hall voltage.
[0052] S303, Based on the mapping relationship between magnetic field strength and distance, determine the target distance corresponding to the target magnetic field strength, and define the target distance as the distance between the first functional body and the second functional body;
[0053] Specifically, the Hall voltage directly reflects the magnetic field strength between the Hall sensor and the magnet, and indirectly reflects the distance between them. In other words, the magnetic field strength directly reflects the distance between the Hall sensor and the magnet. Therefore, based on the mapping relationship between magnetic field strength and distance, the target distance corresponding to the target magnetic field strength is determined, and this target distance is defined as the distance between the first functional body and the second functional body.
[0054] S304, if the first distance between the first functional body and the second functional body at the current moment is equal to the second distance between the first functional body and the second functional body at the previous moment, then the position change state of the first functional body and the second functional body is determined to be unchanged.
[0055] Specifically, the distance between the first functional body and the second functional body is detected at the moment when the magnetic field strength between the Hall sensor and the magnet changes. If the first distance between the first functional body and the second functional body at the current moment is equal to the second distance between the first functional body and the second functional body at the previous moment, then it is determined that the position change state of the first functional body and the second functional body from the previous moment to the current moment is unchanged.
[0056] It should be noted that, in order to prevent misoperation, the function control method provided in this application embodiment will preset a distance threshold. If the first distance between the first functional body and the second functional body at the current time is greater than or equal to the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is greater than or equal to the preset distance threshold, then the first distance and the second distance are determined to be equal; or, if the first distance between the first functional body and the second functional body at the current time is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is less than the preset distance threshold, then the first distance and the second distance are determined to be equal.
[0057] S305, if the first distance between the first functional body and the second functional body at the current moment is not equal to the second distance between the first functional body and the second functional body at the previous moment, then the position change state of the first functional body and the second functional body is determined to be a change state.
[0058] Specifically, if the first distance between the first functional body and the second functional body at the current moment is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is less than the preset distance threshold, then it is determined that the first distance and the second distance are not equal; or, if the first distance between the first functional body and the second functional body at the current moment is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is greater than or equal to the preset distance threshold, then it is determined that the first distance and the second distance are not equal.
[0059] S306, if the position change state of the first functional body and the second functional body is a changing state, then obtain the distance maintenance duration of the first functional body and the second functional body maintaining the first distance;
[0060] Specifically, if the positional change state of the first functional unit and the second functional unit is in a changing state, then the distance holding duration for maintaining a first distance between the first functional unit and the second functional unit is obtained. The distance between the first functional unit and the second functional unit may also change, therefore, it is necessary to obtain the distance holding duration for maintaining the first distance between the first functional unit and the second functional unit. By setting a preset duration, the distance holding duration is compared with the preset duration to determine whether the operation for the clip-on headphones has ended.
[0061] S307, if the distance holding time reaches the preset time, the target function instruction is determined based on the number of state changes between the first functional body and the second functional body;
[0062] Specifically, if the distance holding time reaches the preset time, the operation on the ear clip-on headphones is considered to be over, and the number of state changes is one. Based on the number of state changes between the first and second functional units and the distance holding time, the target operation type for the ear clip-on headphones is determined, and the function instruction corresponding to the target operation type is determined as the target function instruction. The ear clip-on headphones are adjusted according to the target function instruction, and the number of state changes is the number of times the position change state is continuously in the changing state.
[0063] If the number of state changes between the first and second functional units is one, and the distance duration is greater than a preset duration, then the target operation type for the earbuds is determined to be a single operation type. The function instruction corresponding to the single operation type is a play instruction or a pause instruction, or a similar instruction. If the earbuds are currently in a play state, then the target function instruction is determined to be a pause instruction; if the earbuds are in a pause state, then the target function instruction is determined to be a play instruction.
[0064] Please see Figure 6 This is a schematic diagram illustrating a single-operation type as provided in an embodiment of this application. For example... Figure 6As shown, the distance between the first functional unit and the second functional unit can be divided into long distance and short distance based on a preset distance threshold. When the distance between the first functional unit and the second functional unit is greater than or equal to the preset distance threshold, the distance between the first functional unit and the second functional unit is determined to be long distance; when the distance between the first functional unit and the second functional unit is less than the preset distance threshold, the distance between the first functional unit and the second functional unit is determined to be short distance. If the distance between the first functional unit and the second functional unit was long distance at the previous moment, and the distance between the first functional unit and the second functional unit is short distance at the current moment, and the duration of the short distance maintained by the first functional unit and the second functional unit at the current moment is greater than a preset duration, then the target operation type for the clip-on headphones is determined to be a single operation type.
[0065] S308, if the distance maintenance time does not reach the preset time, and the third distance between the first functional body and the second functional body is not equal to the first distance at the first moment, then the position change state of the first functional body and the second functional body is determined to be a change state.
[0066] Specifically, if the distance maintenance duration does not reach the preset duration, meaning the distance between the first and second functional entities has changed, and a third distance between the first and second functional entities is detected to be unequal to the first distance at the first moment, then the positional change state of the first and second functional entities from the current moment to the first moment is determined to be a changed state. Here, the first moment is any moment between the current moment and the second moment, and the second moment is the moment reached after the preset duration from the current moment.
[0067] S309, update the number of state changes, determine the third distance as the first distance, determine the first moment as the current moment, and proceed to the step of obtaining the distance maintenance duration between the first functional body and the second functional body.
[0068] Specifically, after determining that the positional change state of the first functional body and the second functional body is in a changing state from the current time to the first time, the number of state changes is updated to two. At the same time, the third distance is determined as the first distance, the first time is determined as the current time, and the process proceeds to the step of obtaining the distance holding time of the first functional body and the second functional body to maintain the first distance, until the distance holding time reaches the preset time, and then it is determined that the operation for the ear clip-on headphones has ended.
[0069] If the number of state changes between the first and second functional units is two, and when the number of state changes is one, the distance holding duration is greater than or equal to the preset long press duration, but less than the preset duration, then the target operation type for the earbuds is determined to be a long press operation type, and the function instruction corresponding to the long press operation type is a power-off instruction or a power-on instruction. If the earbuds are in a power-off state, then the target function instruction is determined to be a power-on instruction; if the earbuds are in a power-on state, then the target function instruction is determined to be a power-off instruction.
[0070] Please see Figure 7 This provides an example diagram illustrating a long-press operation type in an embodiment of this application. For example... Figure 7 As shown, if the distance between the first functional body and the second functional body was far away at the previous moment, and the distance between the first functional body and the second functional body was close at the current moment, and the distance between the first functional body and the second functional body was far away at the first moment, and when the number of state changes is one, the distance between the first functional body and the second functional body at the current moment is maintained for a duration greater than or equal to the preset long press duration, and less than the preset duration, then the target operation type for the ear clip-on headphones is determined to be a long press operation type.
[0071] In this embodiment, when the magnetic field strength between the Hall sensor and the magnet changes, the target Hall voltage output by the Hall sensor is acquired. Based on the mapping relationship between magnetic field strength and Hall voltage, the target magnetic field strength corresponding to the target Hall voltage is determined. Based on the mapping relationship between magnetic field strength and distance, the target distance corresponding to the target magnetic field strength is determined, and this target distance is defined as the distance between the first functional unit and the second functional unit. If the first distance between the first functional unit and the second functional unit at the current moment is equal to the second distance between them at the previous moment, then the position change state of the first and second functional units is determined to be unchanged. If the first distance between the first and second functional units at the current moment is not equal to the second distance between them at the previous moment, then the position change state of the first and second functional units is determined to be changed. When the position change state of the first and second functional units is determined to be in a changing state, the distance holding time between the first and second functional units at a first distance is determined. If the distance holding time reaches a preset duration, the target function instruction is determined based on the number of state changes between the first and second functional units. If the distance holding time does not reach the preset duration, and a third distance between the first and second functional units is detected to be unequal to the first distance at the first moment, the position change state of the first and second functional units is determined to be in a changing state, the number of state changes is updated, the third distance is determined to be the first distance, the first moment is determined to be the current moment, and the process proceeds to the step of obtaining the distance holding time between the first and second functional units at the first distance. By changing the distance between the first and second functional units, the function control of the ear-clip headphones is achieved, reducing operational complexity and improving the waterproof and sweatproof capabilities of the ear-clip headphones. Using a Hall sensor and a magnet to obtain the distance between the first and second functional units ensures the accuracy of distance determination, thereby improving the accuracy of function control. By setting a preset distance threshold, there are only two distances between the first functional body and the second functional body, which further reduces the complexity of operation and prevents accidental operation.
[0072] based on Figure 1 The following is a scene illustration, which will be combined with... Figure 8 This application provides a detailed description of the functional control device provided in its embodiments. It should be noted that... Figure 8 The functional control device in the present application is used to perform the functions described herein. Figures 2-7 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figures 2-7 The example shown.
[0073] Please see Figure 8 , Figure 8This is a schematic diagram of the structure of a functional control device provided in an embodiment of this application. For example... Figure 8 As shown, the function control device 1 in this application embodiment may include: a distance detection unit 11, a state determination unit 12, and an instruction determination unit 13.
[0074] Distance detection unit 11 is used to detect the distance between the first functional body and the second functional body;
[0075] The state determination unit 12 is used to determine the position change state of the first functional body and the second functional body based on the first distance between the first functional body and the second functional body at the current time and the second distance between the first functional body and the second functional body at the previous time.
[0076] The instruction determination unit 13 is used to determine the target function instruction based on the positional change state of the first functional body and the second functional body.
[0077] Optionally, the state determination unit 12 is specifically used to determine that the position change state of the first functional body and the second functional body is unchanged if the first distance between the first functional body and the second functional body at the current time is equal to the second distance between the first functional body and the second functional body at the previous time.
[0078] If the first distance between the first functional body and the second functional body at the current moment is not equal to the second distance between the first functional body and the second functional body at the previous moment, then the position change state of the first functional body and the second functional body is determined to be a change state.
[0079] Optionally, the state determination unit 12 is specifically used to determine that the first distance and the second distance are equal if the first distance between the first functional body and the second functional body at the current time is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is greater than or equal to the preset distance threshold.
[0080] If the first distance between the first functional body and the second functional body at the current moment is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is less than the preset distance threshold, then the first distance and the second distance are determined to be equal.
[0081] Optionally, the state determination unit 12 is specifically used to determine that the first distance and the second distance are not equal if the first distance between the first functional body and the second functional body at the current time is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous time is less than the preset distance threshold.
[0082] If the first distance between the first functional body and the second functional body at the current moment is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is greater than or equal to the preset distance threshold, then it is determined that the first distance and the second distance are not equal.
[0083] Optionally, the instruction determination unit 13 is specifically used to obtain the distance maintenance duration of the first functional body and the second functional body maintaining the first distance if the position change state of the first functional body and the second functional body is a change state;
[0084] If the distance is maintained for a preset duration, a target function instruction is determined based on the number of state changes between the first functional body and the second functional body; the number of state changes is the number of times the position change state is the change state consecutively.
[0085] Optionally, the instruction determination unit 13 is specifically used to determine the position change state of the first functional body and the second functional body as the change state if the distance maintenance time does not reach the preset time and the third distance between the first functional body and the second functional body is detected to be unequal to the first distance at the first moment; the first moment is any moment between the current moment and the second moment, and the second moment is the moment reached after the preset time from the current moment.
[0086] Update the number of state changes, determine the third distance as the first distance, determine the first moment as the current moment, and proceed to the step of obtaining the distance maintenance duration between the first functional body and the second functional body at the first distance.
[0087] Optionally, the instruction determination unit 13 is specifically used to determine the target operation type for the ear clip-on headphones based on the number of state changes between the first functional body and the second functional body, and the distance holding time, if the distance holding time reaches a preset time.
[0088] The function instruction corresponding to the target operation type is determined as the target function instruction.
[0089] Optionally, the instruction determination unit 13 is specifically used to determine that if the number of state changes between the first functional body and the second functional body is one, and the distance maintenance duration is greater than the preset duration, the target operation type for the ear clip-on headphones is a single operation type, and the function instruction corresponding to the single operation type is a play instruction or a pause instruction.
[0090] If the ear clip-on headphones are in playback mode, then the target function instruction is determined to be the pause instruction;
[0091] If the ear clip-on headphones are in a paused state, then the target function instruction is determined to be the playback instruction.
[0092] Optionally, the instruction determination unit 13 is specifically used to determine that if the number of state changes between the first functional body and the second functional body is two, and when the number of state changes is one, the distance holding time is greater than or equal to the preset long press time and less than the preset time, the target operation type for the ear clip-on headphones is a long press operation type, and the function instruction corresponding to the long press operation type is a power off instruction or a power on instruction.
[0093] If the ear clip-on headphones are in a powered-off state, then the target function instruction is determined to be the power-on instruction;
[0094] If the ear clip-on headphones are powered on, then the target function instruction is determined to be the power-off instruction.
[0095] Optionally, the first functional body is equipped with a Hall sensor, and the second functional body is equipped with a magnet; or the first functional body is equipped with a magnet, and the second functional body is equipped with a Hall sensor.
[0096] The distance detection unit 11 is specifically used to acquire the target Hall voltage output by the Hall sensor;
[0097] Based on the mapping relationship between magnetic field strength and Hall voltage, the target magnetic field strength corresponding to the target Hall voltage is determined;
[0098] Based on the mapping relationship between magnetic field strength and distance, the target distance corresponding to the target magnetic field strength is determined, and the target distance is defined as the distance between the first functional body and the second functional body.
[0099] Optionally, the first functional body and the second functional body are connected; the first functional body is the in front of the ear of the ear clip-on earphone, and the second functional body is the back of the ear of the ear clip-on earphone; or the first functional body is the back of the ear of the ear clip-on earphone, and the second functional body is the in front of the ear of the ear clip-on earphone.
[0100] Optionally, the ear clip-on earphone further includes a third functional body; the third functional body is the front ear functional body of the ear clip-on earphone, and the first functional body and the second functional body are the back ear functional bodies of the ear clip-on earphone; the third functional body is connected to the first functional body, and the third functional body is connected to the second functional body.
[0101] In this embodiment, when the magnetic field strength between the Hall sensor and the magnet changes, the target Hall voltage output by the Hall sensor is acquired. Based on the mapping relationship between magnetic field strength and Hall voltage, the target magnetic field strength corresponding to the target Hall voltage is determined. Based on the mapping relationship between magnetic field strength and distance, the target distance corresponding to the target magnetic field strength is determined, and this target distance is defined as the distance between the first functional unit and the second functional unit. If the first distance between the first functional unit and the second functional unit at the current moment is equal to the second distance between them at the previous moment, then the position change state of the first and second functional units is determined to be unchanged. If the first distance between the first and second functional units at the current moment is not equal to the second distance between them at the previous moment, then the position change state of the first and second functional units is determined to be changed. When the position change state of the first and second functional units is determined to be in a changing state, the distance holding time between the first and second functional units at a first distance is determined. If the distance holding time reaches a preset duration, the target function instruction is determined based on the number of state changes between the first and second functional units. If the distance holding time does not reach the preset duration, and a third distance between the first and second functional units is detected to be unequal to the first distance at the first moment, the position change state of the first and second functional units is determined to be in a changing state, the number of state changes is updated, the third distance is determined to be the first distance, the first moment is determined to be the current moment, and the process proceeds to the step of obtaining the distance holding time between the first and second functional units at the first distance. By changing the distance between the first and second functional units, the function control of the ear-clip headphones is achieved, reducing operational complexity and improving the waterproof and sweatproof capabilities of the ear-clip headphones. Using a Hall sensor and a magnet to obtain the distance between the first and second functional units ensures the accuracy of distance determination, thereby improving the accuracy of function control. By setting a preset distance threshold, there are only two distances between the first functional body and the second functional body, which further reduces the complexity of operation and prevents accidental operation.
[0102] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application.
[0103] For example, such as Figure 9 As shown, the ear clip-on earphone 100 includes a processor 1001 and a memory 1002, wherein the processor 1001 and the memory 1002 are electrically connected.
[0104] The processor 1001 is the control center of the earcup headset 100 and may include one or more processing cores. The processor 1001 connects to various parts of the earcup headset using various interfaces and lines. By running or calling computer programs stored in the memory 1002 and calling data stored in the memory 1002, it executes various functions and processes data of the earcup headset, thereby providing overall control of the earcup headset 100. Optionally, the processor 1001 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1001 may integrate one or more of the following: CPU, Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user page, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 1001 and may be implemented separately through a communication chip.
[0105] The memory 1002 can be used to store software programs and modules. The processor 1001 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1002. The memory 1002 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function, etc.; the data storage area may store data created based on the use of the ear clip-on headphones 100, etc.
[0106] Furthermore, memory 1002 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, memory 1002 may also include a memory controller to provide processor 1001 with access to memory 1002.
[0107] In this embodiment, the processor 1001 in the ear clip-on earphone 100 loads the instructions corresponding to the processes of one or more computer programs into the memory 1002 according to the following steps, and the processor 1001 runs the computer programs stored in the memory 1002 to realize various functions, as follows:
[0108] Detect the distance between the first functional unit and the second functional unit;
[0109] Based on the first distance between the first functional body and the second functional body at the current moment and the second distance between the first functional body and the second functional body at the previous moment, determine the positional change state of the first functional body and the second functional body;
[0110] The target function instruction is determined based on the positional changes of the first and second functional entities.
[0111] Optionally, when the processor 1001 determines the positional change state of the first functional body and the second functional body based on the first distance between the first functional body and the second functional body at the current time and the second distance between the first functional body and the second functional body at the previous time, it specifically executes the following:
[0112] If the first distance between the first functional body and the second functional body at the current moment is equal to the second distance between the first functional body and the second functional body at the previous moment, then the position change state of the first functional body and the second functional body is determined to be unchanged.
[0113] If the first distance between the first functional body and the second functional body at the current moment is not equal to the second distance between the first functional body and the second functional body at the previous moment, then the position change state of the first functional body and the second functional body is determined to be a change state.
[0114] Optionally, processor 1001 also performs:
[0115] If the first distance between the first functional body and the second functional body at the current moment is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is greater than or equal to the preset distance threshold, then the first distance and the second distance are determined to be equal.
[0116] If the first distance between the first functional body and the second functional body at the current moment is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is less than the preset distance threshold, then the first distance and the second distance are determined to be equal.
[0117] Optionally, processor 1001 also performs:
[0118] If the first distance between the first functional body and the second functional body at the current moment is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is less than the preset distance threshold, then it is determined that the first distance and the second distance are not equal.
[0119] If the first distance between the first functional body and the second functional body at the current moment is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is greater than or equal to the preset distance threshold, then it is determined that the first distance and the second distance are not equal.
[0120] Optionally, when the processor 1001 executes the instruction to determine the target function based on the positional change state of the first functional body and the second functional body, it specifically executes:
[0121] If the positional change state of the first functional body and the second functional body is in a changing state, then obtain the distance maintenance duration of the first functional body and the second functional body maintaining the first distance;
[0122] If the distance is maintained for a preset duration, a target function instruction is determined based on the number of state changes between the first functional body and the second functional body; the number of state changes is the number of times the position change state is the change state consecutively.
[0123] Optionally, processor 1001 also performs:
[0124] If the distance maintenance duration does not reach the preset duration, and a third distance between the first functional body and the second functional body is detected to be unequal to the first distance at the first moment, then the position change state of the first functional body and the second functional body is determined to be the change state; the first moment is any moment between the current moment and the second moment, and the second moment is the moment reached after the preset duration from the current moment;
[0125] Update the number of state changes, determine the third distance as the first distance, determine the first moment as the current moment, and proceed to the step of obtaining the distance maintenance duration between the first functional body and the second functional body at the first distance.
[0126] Optionally, when the processor 1001 executes the instruction to determine the target function based on the number of state changes between the first functional body and the second functional body if the distance maintenance duration reaches a preset duration, it specifically executes:
[0127] If the distance holding time reaches a preset time, the target operation type for the ear clip-on headphones is determined based on the number of state changes between the first functional body and the second functional body, and the distance holding time.
[0128] The function instruction corresponding to the target operation type is determined as the target function instruction.
[0129] Optionally, when the processor 1001 determines the target operation type for the ear clip-on headphones based on the number of state changes between the first functional body and the second functional body, and the distance holding duration, it specifically performs the following:
[0130] If the number of state changes between the first functional body and the second functional body is one, and the distance maintenance duration is greater than the preset duration, then the target operation type for the ear clip-on headphones is determined to be a single operation type, and the function instruction corresponding to the single operation type is a play instruction or a pause instruction.
[0131] When processor 1001 executes a function instruction that determines the target operation type as a target function instruction, it specifically performs the following:
[0132] If the ear clip-on headphones are in playback mode, then the target function instruction is determined to be the pause instruction;
[0133] If the ear clip-on headphones are in a paused state, then the target function instruction is determined to be the playback instruction.
[0134] Optionally, when the processor 1001 determines the target operation type for the ear clip-on headphones based on the number of state changes between the first functional body and the second functional body, and the distance holding duration, it specifically performs the following:
[0135] If the number of state changes between the first functional body and the second functional body is two, and when the number of state changes is one, the distance holding time is greater than or equal to the preset long press time and less than the preset time, then the target operation type for the ear clip-on headphones is determined to be a long press operation type, and the function instruction corresponding to the long press operation type is a power off instruction or a power on instruction.
[0136] When processor 1001 executes a function instruction that determines the target operation type as a target function instruction, it specifically performs the following:
[0137] If the ear clip-on headphones are in a powered-off state, then the target function instruction is determined to be the power-on instruction;
[0138] If the ear clip-on headphones are powered on, then the target function instruction is determined to be the power-off instruction.
[0139] Optionally, the first functional body is equipped with a Hall sensor, and the second functional body is equipped with a magnet; or the first functional body is equipped with a magnet, and the second functional body is equipped with a Hall sensor.
[0140] When processor 1001 performs the function of detecting the distance between the first functional unit and the second functional unit, it specifically executes the following:
[0141] Obtain the target Hall voltage output by the Hall sensor;
[0142] Based on the mapping relationship between magnetic field strength and Hall voltage, the target magnetic field strength corresponding to the target Hall voltage is determined;
[0143] Based on the mapping relationship between magnetic field strength and distance, the target distance corresponding to the target magnetic field strength is determined, and the target distance is defined as the distance between the first functional body and the second functional body.
[0144] Optionally, the first functional body and the second functional body are connected; the first functional body is the in front of the ear of the ear clip-on earphone, and the second functional body is the back of the ear of the ear clip-on earphone; or the first functional body is the back of the ear of the ear clip-on earphone, and the second functional body is the in front of the ear of the ear clip-on earphone.
[0145] Optionally, the ear clip-on earphone further includes a third functional body; the third functional body is the front ear functional body of the ear clip-on earphone, and the first functional body and the second functional body are the back ear functional bodies of the ear clip-on earphone; the third functional body is connected to the first functional body, and the third functional body is connected to the second functional body.
[0146] In this embodiment, when the magnetic field strength between the Hall sensor and the magnet changes, the target Hall voltage output by the Hall sensor is acquired. Based on the mapping relationship between magnetic field strength and Hall voltage, the target magnetic field strength corresponding to the target Hall voltage is determined. Based on the mapping relationship between magnetic field strength and distance, the target distance corresponding to the target magnetic field strength is determined, and this target distance is defined as the distance between the first functional unit and the second functional unit. If the first distance between the first functional unit and the second functional unit at the current moment is equal to the second distance between them at the previous moment, then the position change state of the first and second functional units is determined to be unchanged. If the first distance between the first and second functional units at the current moment is not equal to the second distance between them at the previous moment, then the position change state of the first and second functional units is determined to be changed. When the position change state of the first and second functional units is determined to be in a changing state, the distance holding time between the first and second functional units at a first distance is determined. If the distance holding time reaches a preset duration, the target function instruction is determined based on the number of state changes between the first and second functional units. If the distance holding time does not reach the preset duration, and a third distance between the first and second functional units is detected to be unequal to the first distance at the first moment, the position change state of the first and second functional units is determined to be in a changing state, the number of state changes is updated, the third distance is determined to be the first distance, the first moment is determined to be the current moment, and the process proceeds to the step of obtaining the distance holding time between the first and second functional units at the first distance. By changing the distance between the first and second functional units, the function control of the ear-clip headphones is achieved, reducing operational complexity and improving the waterproof and sweatproof capabilities of the ear-clip headphones. Using a Hall sensor and a magnet to obtain the distance between the first and second functional units ensures the accuracy of distance determination, thereby improving the accuracy of function control. By setting a preset distance threshold, there are only two distances between the first functional body and the second functional body, which further reduces the complexity of operation and prevents accidental operation.
[0147] Please see Figure 10 This is a schematic diagram of the structure of an ear clip-on earphone provided in an embodiment of this application. Figure 10 As shown, the ear clip-on earphone 100 includes: a processor 1001, a memory 1002, an audio circuit 1003, a sensor 1004, and a power supply 1005. The processor 1001 is electrically connected to the audio circuit 1003, the sensor 1004, and the power supply 1005.
[0148] The audio circuit 1003 can be used to provide an audio interface between the user and the clip-on headphones 100 via a speaker and a microphone.
[0149] Sensor 1004 is used to collect information about the ear clip-on headphones 100 themselves or about the external environment. For example, sensor 1004 may include a Hall sensor.
[0150] The power supply 1005 is used to power the various components of the ear clip-on headphones 100. In some embodiments, the power supply 1005 can be logically connected to the processor 1001 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0151] It should be understood that the apparatus provided in this application embodiment is used to execute the above-described function control method, and therefore can achieve the same effect as the above-described implementation method.
[0152] When using an integrated unit, the device may include a processing module and a storage module. Specifically, when the device is applied to clip-on headphones, the processing module can be used to control and manage the movements of the clip-on headphones. The storage module can be used to support the execution of relevant program code by the clip-on headphones.
[0153] The processing module may be a processor or a controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.
[0154] In addition, the device provided in this application embodiment may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a function control method provided in the above embodiment.
[0155] This application also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, it causes the computer to execute the above-described related method steps to implement a function control method provided in the above embodiments.
[0156] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to achieve a function control method provided in the above embodiment.
[0157] In this embodiment, the device, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0158] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0159] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus 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 device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0160] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A function control method, characterized in that, Applied to clip-on headphones, the clip-on headphones including a first functional body and a second functional body, the method includes: Detect the distance between the first functional unit and the second functional unit; Based on the first distance between the first functional body and the second functional body at the current moment and the second distance between the first functional body and the second functional body at the previous moment, determine the positional change state of the first functional body and the second functional body; The target function instruction is determined based on the positional changes of the first and second functional entities.
2. The method according to claim 1, characterized in that, The step of determining the positional change state of the first functional entity and the second functional entity based on the first distance between the first functional entity and the second functional entity at the current time and the second distance between the first functional entity and the second functional entity at the previous time includes: If the first distance between the first functional body and the second functional body at the current moment is equal to the second distance between the first functional body and the second functional body at the previous moment, then the position change state of the first functional body and the second functional body is determined to be unchanged. If the first distance between the first functional body and the second functional body at the current moment is not equal to the second distance between the first functional body and the second functional body at the previous moment, then the position change state of the first functional body and the second functional body is determined to be a change state.
3. The method according to claim 2, characterized in that, The method further includes: If the first distance between the first functional body and the second functional body at the current moment is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is greater than or equal to the preset distance threshold, then the first distance and the second distance are determined to be equal. If the first distance between the first functional body and the second functional body at the current moment is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is less than the preset distance threshold, then the first distance and the second distance are determined to be equal.
4. The method according to claim 2, characterized in that, The method further includes: If the first distance between the first functional body and the second functional body at the current moment is greater than or equal to a preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is less than the preset distance threshold, then it is determined that the first distance and the second distance are not equal. If the first distance between the first functional body and the second functional body at the current moment is less than the preset distance threshold, and the second distance between the first functional body and the second functional body at the previous moment is greater than or equal to the preset distance threshold, then it is determined that the first distance and the second distance are not equal.
5. The method according to claim 2, characterized in that, The determination of the target function instruction based on the positional change states of the first functional unit and the second functional unit includes: If the positional change state of the first functional body and the second functional body is in a changing state, then obtain the distance maintenance duration of the first functional body and the second functional body maintaining the first distance; If the distance is maintained for a preset duration, a target function instruction is determined based on the number of state changes between the first functional body and the second functional body; the number of state changes is the number of times the position change state is the change state consecutively.
6. The method according to claim 5, characterized in that, The method further includes: If the distance maintenance duration does not reach the preset duration, and a third distance between the first functional body and the second functional body is detected to be unequal to the first distance at the first moment, then the position change state of the first functional body and the second functional body is determined to be the change state; the first moment is any moment between the current moment and the second moment, and the second moment is the moment reached after the preset duration from the current moment; Update the number of state changes, determine the third distance as the first distance, determine the first moment as the current moment, and proceed to the step of obtaining the distance maintenance duration between the first functional body and the second functional body at the first distance.
7. The method according to claim 5, characterized in that, If the distance maintenance duration reaches a preset duration, then based on the number of state changes between the first functional entity and the second functional entity, a target functional instruction is determined, including: If the distance holding time reaches a preset time, the target operation type for the ear clip-on headphones is determined based on the number of state changes between the first functional body and the second functional body, and the distance holding time. The function instruction corresponding to the target operation type is determined as the target function instruction.
8. The method according to claim 7, characterized in that, The determination of the target operation type for the ear-clip headphones based on the number of state changes between the first functional entity and the second functional entity, and the duration of distance maintenance, includes: If the number of state changes between the first functional body and the second functional body is one, and the distance maintenance duration is greater than the preset duration, then the target operation type for the ear clip-on headphones is determined to be a single operation type, and the function instruction corresponding to the single operation type is a play instruction or a pause instruction. The step of determining the function instruction corresponding to the target operation type as the target function instruction includes: If the ear clip-on headphones are in playback mode, then the target function instruction is determined to be the pause instruction; If the ear clip-on headphones are in a paused state, then the target function instruction is determined to be the playback instruction.
9. The method according to claim 7, characterized in that, The determination of the target operation type for the ear-clip headphones based on the number of state changes between the first functional entity and the second functional entity, and the duration of distance maintenance, includes: If the number of state changes between the first functional body and the second functional body is two, and when the number of state changes is one, the distance holding time is greater than or equal to the preset long press time and less than the preset time, then the target operation type for the ear clip-on headphones is determined to be a long press operation type, and the function instruction corresponding to the long press operation type is a power off instruction or a power on instruction. The step of determining the function instruction corresponding to the target operation type as the target function instruction includes: If the ear clip-on headphones are in a powered-off state, then the target function instruction is determined to be the power-on instruction; If the ear clip-on headphones are powered on, then the target function instruction is determined to be the power-off instruction.
10. The method according to claim 1, characterized in that, The first functional unit is equipped with a Hall sensor, and the second functional unit is equipped with a magnet; or the first functional unit is equipped with a magnet, and the second functional unit is equipped with a Hall sensor. The detection of the distance between the first functional unit and the second functional unit includes: Obtain the target Hall voltage output by the Hall sensor; Based on the mapping relationship between magnetic field strength and Hall voltage, the target magnetic field strength corresponding to the target Hall voltage is determined; Based on the mapping relationship between magnetic field strength and distance, the target distance corresponding to the target magnetic field strength is determined, and the target distance is defined as the distance between the first functional body and the second functional body.
11. The method according to claim 1, characterized in that, The first functional body and the second functional body are connected; the first functional body is the front part of the ear clip-on earphone, and the second functional body is the back part of the ear clip-on earphone; or the first functional body is the back part of the ear clip-on earphone, and the second functional body is the front part of the ear clip-on earphone.
12. The method according to claim 1, characterized in that, The ear clip-on earphone further includes a third functional body; the third functional body is the front ear functional body of the ear clip-on earphone, and the first functional body and the second functional body are the back ear functional bodies of the ear clip-on earphone; the third functional body is connected to the first functional body, and the third functional body is connected to the second functional body.
13. An ear clip-on headphone, characterized in that, The clip-on headphones include: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the ear clip-on headphones to perform the method as described in any one of claims 1 to 12.