Earphone, earphone control method, medium and program product
Earphones with motion detection and shutdown mechanisms address the issue of water damage from washing machines by preventing circuit failure, improving durability and user trust.
Patent Information
- Application Number
- CN202510244912.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-07-15
AI Technical Summary
Existing true wireless stereo TWS headphones cannot effectively prevent the problem of water inflow and causing circuit damage when they are accidentally inserted into the washing machine.
The six-axis inertia measurement sensor and ambient humidity sensor are used to collect the movement data and ambient humidity values of the headphones. The processor determines whether the headphones are in the washing machine and rotate accordingly, generates a power outage protection command, and performs a power outage protection operation through the controller.
Effectively avoid circuit board short circuit caused by water inlet of headphones in the washing machine, extend the service life of the headphones, reduce the probability of user damage, and improve user satisfaction and product intelligence.
Smart Images

Figure CN120321540A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of earphones, and more specifically, relates to an earphone, a control method of the earphone, a medium and a program product. Background Art
[0002] With the continuous optimization and improvement of performance such as wearing comfort, battery life, and sound quality, earphone products in small forms such as true wireless stereo (TWS) earphones have become essential items for more and more consumers in daily life, work, commuting, etc., and play an increasingly important role in people's lives.
[0003] Due to the small size of such earphones, it is often easier to forget the products in the clothes pocket and throw them into the washing machine to wash with the clothes, resulting in water ingress and circuit damage. Therefore, among the many functional requirements of consumers for such earphones, waterproof protection is regarded as one of the essential functions by many consumers.
[0004] However, currently, such earphones only have simple waterproof treatment and can only cope with very slight water vapor or occasional small water droplets. For example, using them for a short time in a relatively humid environment or accidentally being splashed with a small amount of water droplets still cannot solve the problem of water ingress and circuit damage caused by the earphones accidentally falling into the washing machine. Summary of the Invention
[0005] The purpose of the embodiments of this application is to provide an earphone, a control method of the earphone, a medium and a program product, aiming to solve the technical problem of water ingress and circuit damage caused by the earphone accidentally falling into the washing machine in the prior art.
[0006] To achieve the above purpose, according to the first aspect of this application, an earphone is provided. The earphone includes:
[0007] A sensor for collecting motion data of the earphone;
[0008] A processor connected to the sensor, configured to determine whether the earphone is in the washing machine and rotate accordingly based on the motion data; if it is determined that the earphone is in the washing machine and rotates accordingly, a power-off protection instruction is generated;
[0009] A controller connected to the processor, configured to control the earphone to perform a power-off protection operation according to the power-off protection instruction generated by the processor.
[0010] Optionally, in a possible implementation manner of the first aspect, the sensor includes:
[0011] A six-axis inertial measurement sensor disposed on the earphone for collecting angular velocity data and acceleration data of the earphone.
[0012] Optionally, in a possible implementation of the first aspect,
[0013] The processor is further configured to determine a movement trajectory of the earphone according to the angular velocity data and the acceleration data of the earphone, and when the movement trajectory matches a preset trajectory, determine that the earphone is in the washing machine and rotates therewith, where the preset trajectory is any movement trajectory of an object in the washing machine in a working state.
[0014] Optionally, in a possible implementation of the first aspect,
[0015] The processor is further configured to detect that the earphone continuously exhibits circular motion characteristics or approximate circular motion characteristics within a predetermined time period according to the angular velocity data, and the motion direction conforms to the predetermined rotation direction of the washing machine, and to detect that the earphone generates centripetal acceleration following the rotation of the washing machine according to the acceleration data, and the direction of the centripetal acceleration points to a predetermined preset position, then determine that the earphone is in the washing machine and rotates therewith.
[0016] Optionally, in a possible implementation of the first aspect,
[0017] The sensor further includes: an environmental humidity sensor connected to the six-axis inertial measurement sensor, configured to detect the ambient humidity value around the earphone when the six-axis inertial measurement sensor detects the angular velocity data and the acceleration data;
[0018] The processor is further configured to determine a movement trajectory of the earphone according to the angular velocity data and the acceleration data of the earphone, and when the movement trajectory matches a preset trajectory and the ambient humidity value reaches a preset humidity value, determine that the earphone is in the washing machine and rotates therewith.
[0019] Optionally, in a possible implementation of the first aspect,
[0020] The earphone further includes: an alarm connected to the processor, configured to output an alarm message to other terminal devices of the user after the processor determines that the earphone is in the washing machine and rotates therewith and before generating the power-off protection instruction, where the alarm message is used to prompt the user to check in time whether the earphone is accidentally placed in the washing machine.
[0021] Optionally, in a possible implementation of the first aspect,
[0022] The earphone further includes: a battery and a circuit board, and an electronic switch is disposed between the battery and the circuit board;
[0023] The controller is further configured to cut off the power supply from the battery to the circuit board by controlling the electronic switch.
[0024] Optionally, in a possible implementation of the first aspect, the earphone further includes:
[0025] An overvoltage protection circuit, disposed inside the earphone, for preventing damage to the earphone caused by instantaneous voltage fluctuations generated when the washing machine is working;
[0026] A waterproof breathable valve, disposed on the outer shell of the earphone, for balancing the internal and external air pressures of the earphone and preventing water vapor from entering the interior of the earphone due to air pressure changes.
[0027] Optionally, in a possible implementation of the first aspect, the earphone further includes:
[0028] An outer shell, which adopts a nano waterproof coating material for resisting the impact, friction and penetration of water flow inside the washing machine.
[0029] Optionally, in a possible implementation of the first aspect, the earphone further includes:
[0030] A plurality of waterproof modules and a plurality of waterproof interfaces;
[0031] Wherein, each of the waterproof modules is used to independently encapsulate one or more components inside the earphone, and different waterproof modules are connected by the waterproof interfaces.
[0032] According to a second aspect of the present application, there is provided a control method for an earphone, which is applicable to the earphone in the first aspect. The method includes:
[0033] Obtain the motion data of the earphone;
[0034] Determine whether the earphone is in the washing machine and rotating accordingly based on the motion data;
[0035] If it is determined that the earphone is in the washing machine and rotating accordingly, generate a power-off protection instruction;
[0036] Control the earphone to perform a power-off protection operation according to the power-off protection instruction.
[0037] The second aspect and any implementation manner of the second aspect respectively correspond to the first aspect and any implementation manner of the first aspect. The technical effects corresponding to the second aspect and any implementation manner of the second aspect can refer to the technical effects corresponding to the first aspect and any implementation manner of the first aspect above, and will not be elaborated here.
[0038] According to the third aspect of the present application, there is provided a headset, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the headset implements the method described in any one of the above.
[0039] According to the fourth aspect of the present application, there is provided a computer-readable storage medium storing a computer program, which when executed by a processor implements the method described in any one of the above.
[0040] According to the fifth aspect of the present application, there is provided a computer program product, which when running on a headset causes the headset to execute the method described in any one of the first aspects above.
[0041] It can be understood that the beneficial effects of the above second to fifth aspects can be referred to the relevant descriptions in the first aspect above, and will not be elaborated here.
[0042] An embodiment of the present application provides a headset, a control method of the headset, a medium, and a program product. The headset includes: a sensor for collecting motion data of the headset; a processor connected to the sensor for determining whether the headset is in a washing machine and rotating therewith according to the motion data; if it is determined that the headset is in the washing machine and rotating therewith, generating a power-off protection instruction; and a controller connected to the processor for controlling the headset to perform a power-off protection operation according to the power-off protection instruction generated by the processor.
[0043] Through the headset example provided by the present application, timely detecting whether the headset is in the washing machine and performing power-off protection can avoid problems such as short circuits of the circuit board caused by water ingress of the headset in the washing machine, effectively protect the hardware facilities of the headset, extend the service life of the headset, and reduce the damage of the headset and economic losses caused by accidentally washing the headset. Moreover, by reducing the probability of the user accidentally putting the headset into the washing machine and damaging it, the satisfaction and trust of the user in the headset product are enhanced, and the overall usage experience is improved. In addition, the headset automatically judges the environment and state according to the motion data and takes corresponding protection measures, improving the intelligence level of the headset product and increasing the technological added value of the product. Description of the Drawings
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0045] Figure 1It is a schematic structural diagram of a pair of earphones provided by an embodiment of the present application;
[0046] Figure 2 It is a schematic structural diagram of an optional pair of earphones provided by an embodiment of the present application;
[0047] Figure 3 It is a schematic structural diagram of an optional pair of earphones provided by an embodiment of the present application;
[0048] Figure 4 It is a schematic structural diagram of an optional pair of earphones provided by an embodiment of the present application;
[0049] Figure 5 It is a schematic structural diagram of an optional pair of earphones provided by an embodiment of the present application;
[0050] Figure 6 It is a schematic flowchart of a control method for an optional pair of earphones provided by an embodiment of the present application;
[0051] Figure 7 It is a schematic structural diagram of a pair of earphones provided by an embodiment of the present application. Detailed implementation manners
[0052] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system architectures, technologies, etc. are presented to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0053] It should be understood that when used in the specification of the present application and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0054] It should also be understood that the term "and / or" used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0055] As used in the specification and appended claims of this application, the term "if" may be construed, depending on the context, as "when", "once", "in response to determining", or "in response to detecting". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]".
[0056] In addition, in the description of the specification and appended claims of this application, the terms "first", "second", "third", etc. are used only for distinguishing descriptions and cannot be construed as indicating or implying relative importance.
[0057] References in the specification of this application to "one embodiment" or "some embodiments" or the like mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all of the embodiments", unless otherwise specifically emphasized in another way. The terms "comprising", "including", "having", and their variants all mean "including but not limited to", unless otherwise specifically emphasized in another way.
[0058] This application example provides an example of an earphone. Please refer to Figure 1 as shown Figure 1 which shows a schematic structural diagram of an earphone provided by this application. The earphone includes:
[0059] A sensor 101 for collecting motion data of the earphone;
[0060] A processor 102 connected to the sensor 101 for determining whether the earphone is in the washing machine and rotating along with it according to the motion data; if it is determined that the earphone is in the washing machine and rotating along with it, a power-off protection instruction is generated;
[0061] A controller 103 connected to the processor 102 for controlling the earphone to perform a power-off protection operation according to the power-off protection instruction generated by the processor.
[0062] Optionally, the earphone of this application example can be earphones of different types, different designs, and different uses. The types of earphones can be in-ear earphones, ear-hook earphones, wired earphones, wireless earphones (such as TWS earphones), sports earphones, gaming earphones, and so on.
[0063] In the example of this application, in various scenarios where the earphone is in normal use or may be accidentally put into a washing machine, etc., the sensor will continuously and real - time collect the motion data of the earphone at a certain sampling frequency. Among them, the collected original data exists in the internal circuit of the sensor in the form of electrical signals, and then is converted into digital signals through an analog - to - digital conversion circuit for subsequent processing and analysis by the processor.
[0064] Optionally, in the example of this application, the sensor can be a six - axis inertial measurement unit (6 - Axis IMU), which integrates an accelerometer and a gyroscope. In one example, the accelerometer can measure the acceleration of the earphone in three axes (X - axis, Y - axis, Z - axis), and can sense linear motion and changes in gravitational acceleration, such as the centripetal acceleration when the earphone rotates with the washing machine and the linear acceleration change of the earphone when the washing machine starts and stops. In one example, the gyroscope is used to measure the angular velocity of the earphone around three axes, and can sense the rotational motion of the earphone, and can detect whether the earphone rotates horizontally or vertically, etc.
[0065] Optionally, the motion data of the above - mentioned earphone includes: acceleration data and angular velocity data. For example, when the earphone is in various states, the sensor continuously and real - time collects acceleration data and angular velocity data, and these data can accurately reflect the motion state and attitude change of the earphone.
[0066] In the example of this application, the motion characteristic data summarized according to the working methods of some mainstream washing machines on the market is pre - stored in the memory of the earphone. Specifically, it is obtained through actual testing and data analysis of a large number of different brands and models of pulsator washing machines and drum washing machines, covering the typical motion characteristics of the washing machine in different working stages such as washing, rinsing, and dehydration, such as the horizontal rotation characteristic data of the pulsator washing machine and the vertical rotation characteristic data of the drum washing machine.
[0067] The processor is connected to the sensor through a data interface. The processor is used to compare and analyze the motion data of the earphone collected by the sensor with the pre - stored washing machine motion characteristic data in the earphone. For example, specifically, specific algorithms can be used, such as pattern recognition algorithms (such as neural network algorithms, support vector machine algorithms, etc.), data matching algorithms, etc., to compare and analyze the collected motion data with the washing machine motion characteristic data. In the example of this application, if the processor detects that the motion data of the earphone highly coincides with the motion characteristic data of a certain washing machine within a predetermined time period (the similarity exceeds a pre - set threshold, such as 85%), it is determined that the earphone is in the washing machine and rotates with it, and then a power - off protection instruction is generated.
[0068] In an optional example, before the formal analysis of the motion data, the motion data is pre - processed to remove noise interference. For example, a filtering algorithm (such as Kalman filtering) is used to smooth the data to improve the accuracy and reliability of data processing.
[0069] In the example of this application, the earphone adopts a circuit control method. The controller of the earphone is connected to the processor. When the processor generates a power-off protection instruction, the controller can receive this instruction in time. Specifically, the controller of the earphone can be a power-off protection circuit. After receiving the power-off protection instruction, the power-off protection circuit cuts off the power supply of other circuits except the sensor by controlling the electronic switch between the battery and the circuit board of the earphone, so that the circuit board is completely powered off, realizing the power-off protection operation of the earphone.
[0070] In an alternative example, at the same time, the controller will maintain the power-off state until it detects that the washing machine stops working and the movement state of the earphone returns to normal (that is, there are no longer movement characteristics similar to those of the washing machine working), or receives other specific power supply restoration instructions.
[0071] Through the earphone example provided by this application, timely detecting whether the earphone is in the washing machine and performing power-off protection can avoid problems such as short circuit of the circuit board caused by water ingress of the earphone in the washing machine, effectively protect the hardware facilities of the earphone, extend the service life of the earphone, and reduce the damage of the earphone and economic losses caused by accidentally washing the earphone. Moreover, by reducing the probability of the user damaging the earphone due to accidentally putting the earphone into the washing machine, the satisfaction and trust of the user in the earphone product are enhanced, and the overall usage experience is improved. In addition, the earphone automatically judges the environment and state according to the movement data and takes corresponding protection measures, improving the intelligence level of the earphone product and increasing the technological added value of the product.
[0072] Hereinafter, taking the sensor type as a six-axis inertial measurement sensor as an example, how to implement the waterproof protection scheme of the earphone and the corresponding technical effects will be further elaborated in detail:
[0073] In a possible implementation manner, as Figure 2 shown, the sensor 101 includes:
[0074] A six-axis inertial measurement sensor 201, disposed on the earphone, for collecting the angular velocity data and acceleration data of the earphone.
[0075] Optionally, in the example of this application, the six-axis inertial measurement sensor is integrated with a three-axis accelerometer and a three-axis gyroscope. The accelerometer uses Newton's second law to measure the acceleration by detecting the force generated by the earphone under the action of acceleration. The gyroscope, based on the principle of conservation of angular momentum, measures the angular velocity by detecting the Coriolis force when the earphone rotates.
[0076] When the earphone is in normal use or may be accidentally put into a washing machine or other scenarios, the sensor continuously and real-time collects the angular velocity data and acceleration data of the earphone on three spatial coordinate axes (X-axis, Y-axis, Z-axis). These data are converted and processed by the circuit inside the sensor in the form of electrical signals, and then the angular velocity data and acceleration data are output to the processor in the form of digital signals.
[0077] In the example of this application, the six-axis inertial measurement sensor can simultaneously and accurately measure the motion information in two dimensions of angular velocity and acceleration, provide rich and accurate motion data for the processor, improve the accuracy of judging whether the earphone is in the washing machine environment, and reduce the possibility of misjudgment. The sensor collects data in real time, the processor quickly analyzes and processes it and makes a judgment, and the controller promptly executes the power-off protection operation. The whole process is completed in a short time, and the power can be quickly cut off before the earphone is damaged by water ingress, thereby effectively protecting the earphone hardware. It provides reliable waterproof protection for the user, reduces the risk of damage caused by accidentally putting the earphone into the washing machine, and improves the overall user experience and market competitiveness of the product.
[0078] In a possible implementation, the processor 102 is further configured to determine the motion trajectory of the earphone according to the angular velocity data and acceleration data of the earphone, and when the motion trajectory matches the preset trajectory, determine that the earphone is in the washing machine and rotates accordingly, where the preset trajectory is any motion trajectory of an object inside a washing machine in a working state.
[0079] In the example of this application, the processor converts the acceleration and angular velocity data at different times into displacement information through mathematical operations such as integration according to the angular velocity data and acceleration data provided by the six-axis inertial measurement sensor, so as to construct the motion trajectory of the earphone in three-dimensional space. Specifically, the acceleration data can be used to calculate the speed change and then obtain the displacement; the angular velocity data is used to determine the change in the motion direction, and the two combined can accurately depict the motion trajectory of the earphone.
[0080] Optionally, in the example of this application, the preset trajectory is obtained by a large number of monitoring and analyses of the motion of objects inside washing machines in various working states. Different types of washing machines, such as pulsator washing machines and drum washing machines, have different motion trajectories of the objects inside. When the washing machine is in a working state, the objects inside a pulsator washing machine usually perform horizontal circular motion, while the objects inside a drum washing machine perform vertical circular motion, and there are also differences in the motion trajectories in different working stages (such as washing, rinsing, dehydration). These typical motion trajectories are collected and sorted and stored in the earphone as the preset trajectory.
[0081] The processor compares the generated headphone movement trajectory with a preset trajectory. Specifically, a pattern matching algorithm can be used, such as the dynamic time warping (DTW) algorithm, which can calculate the similarity between two trajectories considering the stretching of the time series. When the similarity between the headphone movement trajectory and a certain preset trajectory reaches a certain threshold (such as above 85%), the processor determines that the headphone is in the washing machine and rotates along with it.
[0082] In an optional example, the six-axis inertial measurement sensor collects the angular velocity and acceleration data of the headphone in real time. After transmitting these data to the processor, the processor processes the received angular velocity and acceleration data, converts the acceleration data into velocity and displacement data through integral operation, combines the angular velocity data to determine the direction change, and thus calculates the movement trajectory of the headphone. The processor matches and compares the calculated movement trajectory of the headphone with the preset trajectory of the movement of objects in the washing machine stored in advance, and uses a suitable matching algorithm to calculate the similarity; if the similarity between the movement trajectory of the headphone and the preset trajectory exceeds the set threshold, the processor determines that the headphone is in the washing machine and rotates along with it, and then generates a power-off protection instruction and sends it to the controller.
[0083] Since the movement trajectory can comprehensively reflect the overall movement of an object over a period of time, through the examples of the present application, by determining the matching of the headphone movement trajectory to judge whether the headphone is in the washing machine, compared with simply relying on the characteristics of acceleration and angular velocity data, the probability of misjudgment caused by instantaneous data fluctuations or interference from similar movement states is reduced, making the judgment result more accurate and reliable. Furthermore, it can reduce unnecessary power-off caused by misjudgment or damage to the headphone caused by failure to power off in time.
[0084] Moreover, since the preset trajectories provided by the examples of the present application cover the movement trajectories of objects in the washing machine under various working conditions, this enables the headphone to adapt to the detection requirements of washing machines of different brands, models, and different working modes. Whether it is an old-fashioned pulsator washing machine, a new type of drum washing machine with complex functions, or other devices similar to the washing machine such as a dishwasher or a disinfection cabinet, the headphone can be judged by matching with the corresponding preset trajectory, and this solution has universality and applicability.
[0085] In a possible implementation manner, the processor 102 is further configured to detect that the headphone continuously exhibits circular movement characteristics or approximate circular movement characteristics within a predetermined time period according to the angular velocity data, and the movement direction conforms to the predetermined rotation direction of the washing machine, and detect that the headphone generates centripetal acceleration along with the rotation of the washing machine according to the acceleration data, and the direction of the centripetal acceleration points to the predetermined preset position, then determine that the headphone is in the washing machine and rotates along with it.
[0086] In the example of this application, the angular velocity data can be used to reflect the rotational movement of the earphone. When the washing machine is working, the internal clothes and the earphones that may be mixed in them perform circular motion. Since the direction of the angular velocity of circular motion is relatively stable and its magnitude fluctuates within a certain range, the processor analyzes the angular velocity data of the earphone to determine whether the earphone continuously exhibits circular motion characteristics or approximate circular motion characteristics within a predetermined time period.
[0087] For different types of washing machines, such as agitator washing machines and drum washing machines, their rotation directions have obvious characteristics. After determining the rotation directions of various washing machines in advance, the processor compares the movement direction of the earphone with these known rotation directions of the washing machines to determine whether the earphone is in the washing machine.
[0088] According to the principles of physics, an object moving in a circular motion will necessarily generate a centripetal acceleration. When the earphone rotates with the washing machine, a centripetal acceleration is generated. The processor detects whether the earphone generates a centripetal acceleration based on the acceleration data and determines whether the direction of the centripetal acceleration points to a predetermined preset position (for example, the center of the agitator of an agitator washing machine, the rotation axis of the drum of a drum washing machine). If this step is also met, it further supports the judgment that the earphone is rotating in the washing machine.
[0089] In an optional example, the processor analyzes the preprocessed angular velocity data and calculates the direction change and magnitude fluctuation of the angular velocity within a predetermined time period (such as 5 seconds). If the movement direction of the earphone is basically around a certain fixed axis and its magnitude remains relatively stable within a reasonable range, it can be determined that the earphone exhibits circular motion characteristics or approximate circular motion characteristics. Then, the processor compares the detected movement direction of the earphone with the pre-stored rotation direction of the washing machine. For example, using a direction recognition and matching algorithm, it accurately determines whether the movement direction of the earphone matches the rotation direction of the washing machine.
[0090] Moreover, the washing machine also extracts the centripetal acceleration from the acceleration data, calculates the magnitude and direction of the centripetal acceleration. It determines whether the direction of the centripetal acceleration points to a predetermined preset position. For example, for an agitator washing machine, it determines whether the direction of the centripetal acceleration points to the center of the agitator. When all the above conditions are met, that is, the earphone continuously exhibits circular motion characteristics or approximate circular motion characteristics within a predetermined time period, the movement direction matches the pre-determined rotation direction of the washing machine, and the direction of the centripetal acceleration points to the preset position, the processor determines that the earphone is in the washing machine and rotates with it, and then generates a corresponding power-off protection instruction.
[0091] In the embodiments of the present application, through multi-dimensional motion feature judgment, considering comprehensively from aspects such as circular motion features, motion directions, and centripetal accelerations, the accuracy of determining whether the earphone is in the washing machine is greatly improved. Multiple conditions corroborate each other, reducing the possibility of misjudgment due to a single factor and making the judgment result more reliable. Moreover, this judgment method is closely combined with the actual physical characteristics of the motion of objects inside the washing machine, designed for the washing machine scenario, can accurately capture the unique motion state of the earphone in the washing machine, effectively distinguish the washing machine scenario from other daily use scenarios, and enhance the pertinence and practicability of the solution.
[0092] The implementation manner in which the sensor further includes an environmental humidity sensor will be elaborated in detail below, and the analysis will be carried out from the implementation manner and the resulting technical effects:
[0093] In a possible implementation manner, as Figure 3 shown, the sensor 101 further includes:
[0094] An environmental humidity sensor 202, connected to the six-axis inertial measurement sensor 201, is used to detect the ambient humidity value of the earphone when the six-axis inertial measurement sensor 201 detects angular velocity data and acceleration data.
[0095] In a possible implementation manner, the processor is further used to determine the motion trajectory of the earphone according to the angular velocity data and acceleration data of the earphone, and when the motion trajectory matches the preset trajectory and the ambient humidity value reaches the preset humidity value, determine that the earphone is in the washing machine and rotates accordingly.
[0096] As described above, based on the angular velocity and acceleration data provided by the six-axis inertial measurement sensor, the processor converts the acceleration data into velocity and displacement information through mathematical operations such as integration, combines the angular velocity to determine the direction change, and thus constructs the motion trajectory of the earphone in three-dimensional space. Then, this motion trajectory is compared with the preset trajectory of the motion of objects inside the washing machine stored in advance, and a pattern matching algorithm (such as the dynamic time warping algorithm) is used to calculate the similarity to determine whether the earphone is in the washing machine rotation scenario.
[0097] It should be understood that during the working process of the washing machine, the internal environmental humidity will increase significantly due to the presence of water. In the examples of the present application, an environmental humidity sensor can also be built into the earphone to monitor the humidity value of the environment around the earphone in real time. Optionally, in the examples of the present application, the preset humidity value is determined by collecting and analyzing a large amount of internal humidity data when the washing machine is working. When the ambient humidity value detected by the environmental humidity sensor reaches the preset humidity value, it further indicates that the environment where the earphone is located is inside the washing machine.
[0098] The motion trajectory matching judgment is combined with the humidity judgment. Only when the similarity between the headphone motion trajectory and the preset trajectory exceeds the set threshold and the environmental humidity value reaches the preset humidity value, the processor determines that the headphones are in the washing machine and rotating along with it, and then generates a power-off protection instruction and sends it to the controller.
[0099] This comprehensive judgment method utilizes the dual characteristics of motion features and humidity features in the washing machine scenario. The probability of simultaneously meeting the motion trajectory and humidity conditions in non-washing machine scenarios is extremely low, which can better distinguish the real washing machine scenario from other similar motion scenarios, thereby significantly reducing the misjudgment probability. Moreover, a more accurate judgment mechanism means that when the headphones are truly at risk of being washed by mistake, they can trigger power-off protection more timely and accurately, avoiding protection failure or unnecessary power-off caused by misjudgment, further enhancing the reliability of the headphone waterproof protection mechanism, and providing a more stable and reliable usage guarantee for users.
[0100] In a possible implementation, the headphones further include: an alarm 104, connected to the processor 102, for outputting an alarm message to other terminal devices of the user after the processor determines that the headphones are in the washing machine and rotating along with it, and before generating a power-off protection instruction, where the alarm message is used to prompt the user to check in time whether the headphones are accidentally put into the washing machine.
[0101] After the sensors (such as, six-axis inertial measurement sensors and environmental humidity sensors) continuously collect data and transmit it to the processor, the processor analyzes it according to the established logic. If it is determined that the headphones are in the washing machine and rotating along with it based on the matching of the motion trajectory and the preset trajectory and the ambient humidity value reaching the preset humidity value, a power-off protection instruction will not be generated immediately at this time. Instead, the alarm process will be triggered first, and the generated alarm message will be sent to the paired terminal device according to the connection protocol.
[0102] The alarm of the headphones can establish a connection with other terminal devices of the user (such as mobile phones, smart watches, etc.) through Bluetooth technology. During factory settings or when the user uses the headphones for the first time, the user can pair the headphones with these terminal devices to ensure normal communication in the future. In addition, if the headphones support the Wi-Fi function, the alarm can also communicate with terminal devices within the same local area network through the home Wi-Fi network. This connection method has relatively less limitation in terms of distance and better data transmission stability.
[0103] After the processor determines that the headphones are in the washing machine scenario, it generates an alarm message in a specific format. This message can include text content such as "Your headphones may have been accidentally put into the washing machine. Please check in time", and can also be accompanied by the current status data of the headphones (such as motion trajectory data, humidity value, etc.). In one example, on the mobile phone side, the alarm message can be displayed in the form of a system notification or a pop-up reminder; in another example, on the smart watch side, the user can be informed through vibration, screen display, etc.
[0104] Output an alarm message before the earphone enters power-off protection, providing the user with an opportunity to intervene. After receiving the alarm, the user can promptly stop the washing machine and take out the earphone to prevent the earphone from entering the power-off protection state. This can not only prevent the earphone from being damaged by water but also ensure that the earphone can be used normally later without the need for additional restart or inspection operations. This method of early warning provided in the example of this application reflects the user-friendly design of the earphone product. The user can timely understand the abnormal situation of the earphone, feel the protection and care of the product for their property, and enhance the user's trust and satisfaction with the product. Compared with direct power-off protection, users are more willing to use the product when they have the opportunity to actively solve problems, thus improving the overall usage experience. In addition, it should still be noted that in some cases, there may be a misjudgment that the earphone is in the washing machine. Through the early warning prompt, the user can judge whether there is really a problem of accidental washing according to the actual situation, avoid unnecessary power-off of the earphone, and ensure the normal use and battery life of the earphone.
[0105] In a possible implementation, the earphone further includes: a battery 301 and a circuit board 303, and an electronic switch 302 is arranged between the battery 301 and the circuit board 303.
[0106] In this optional implementation, the controller 103 is further configured to cut off the power supply of the battery 301 to the circuit board 303 by controlling the electronic switch 302.
[0107] In the example of this application, as Figure 5 shown, the earphone includes main components such as a battery 301, a circuit board 303, an electronic switch 302, sensors (a six-axis inertial measurement sensor 201, an environmental humidity sensor 202), a processor 102, and a controller 103. The battery 301 supplies power to the circuit board to maintain the normal operation of the earphone, and the electronic switch is a circuit on-off control component between the battery and the circuit board; the sensors are responsible for detecting information such as the movement data of the earphone and the environmental humidity. The processor judges whether the earphone is in the washing machine based on these data, and the controller controls the electronic switch according to the instructions of the processor.
[0108] When the processor determines that the earphone is in the washing machine and rotates with it, it sends a power-off protection instruction to the controller. After receiving the power-off protection instruction, the controller acts on the electronic switch through a specific control signal to change the state of the electronic switch, thereby cutting off the power supply of the battery to the circuit board and achieving the purpose of protecting the circuit board from being damaged by water.
[0109] In one example, after receiving the power-off protection instruction sent by the processor, the controller parses and confirms the power-off protection instruction to ensure the accuracy and integrity of the instruction. After confirming that the power-off protection instruction is correct, the controller controls the electronic switch by outputting a corresponding electrical signal. For example, if the electronic switch is constructed based on devices such as MOSFETs (metal-oxide-semiconductor field effect transistors), the controller can adjust the gate voltage of the MOSFET to change the electronic switch from the on state to the off state, thereby cutting off the current path between the battery and the circuit board and achieving power-off protection for the circuit board.
[0110] In the example of this application, by quickly cutting off the power supply from the battery to the circuit board through the electronic switch, the operation of the circuit board can be stopped in time before the earphone may come into contact with the water in the washing machine, avoiding problems such as short circuit and electric leakage caused by water ingress, greatly reducing the risk of damage to the circuit board, and extending the service life of the earphone. Moreover, the method of setting an electronic switch between the battery and the circuit board has a relatively simple structure, is easy to implement and maintain. At the same time, it can also reduce the potential failure points caused by complex circuit designs, improving the reliability of power-off protection for the earphone.
[0111] In one possible implementation, the earphone further includes:
[0112] a housing, which is made of a nano waterproof coating material, and the nano waterproof coating material is used to resist the impact, friction and penetration of the water flow in the washing machine.
[0113] It should be understood that the molecular structure of the nano waterproof coating material is extremely compact and has special chemical properties. The size of water molecules is relatively large and it is difficult to penetrate the nano-level compact molecular structure. At the same time, the surface tension characteristics of the coating material cause water to form water droplets on the surface of the earphone housing, which are not easy to adhere to and penetrate, just like the water droplets on the surface of a lotus leaf.
[0114] Moreover, although the coating thickness of the nano waterproof coating material is extremely thin, the nano-level particles or structures are intertwined with each other to form a strong and flexible protective layer. In the washing machine, the impact of the water flow and the friction between the clothes and the earphone will generate forces on the earphone housing, and the nano waterproof coating can disperse and buffer these external forces, preventing the housing from being directly subjected to excessive impact and friction forces, thereby protecting the internal structure of the earphone from damage.
[0115] According to the usage environment and performance requirements of the earphone, a suitable nano waterproof coating material is determined. These materials are usually provided in the form of solutions or sprays. Before use, it is necessary to ensure that their quality and performance meet the standards and make appropriate dilution or preparation according to the product instructions. Before applying the nano waterproof coating, the earphone housing is thoroughly cleaned to remove impurities such as oil stains and dust on the surface to ensure good adhesion of the coating.
[0116] A professional coating equipment and process are used to evenly cover the surface of the earphone shell with a nano waterproof coating. For example, the coating methods include spraying, dip coating, spin coating, etc. After the coating is completed, the nano waterproof coating can also be cured to cause a cross-linking reaction in the molecular structure of the coating material, forming a stable and strong protective layer. Finally, a comprehensive quality inspection is carried out on the earphone shell coated with the nano waterproof coating. The inspection contents include whether the thickness of the coating is uniform, whether the adhesion meets the standard, and whether the waterproof performance meets the requirements, etc.
[0117] In the example of this application, by using a nano waterproof coating material for the earphone shell, the penetration of water flow in the washing machine can be effectively resisted, providing reliable waterproof protection for the earphone. Even in the case of long-term immersion or strong water flow impact, the risk of water entering the earphone interior can be greatly reduced, protecting the electronic components inside the earphone from water erosion and extending the service life of the earphone.
[0118] In addition, besides waterproofing, the nano waterproof coating can also resist the friction between objects such as clothes in the washing machine and the earphone, as well as the impact of water flow. This helps to reduce the wear and scratches of the earphone shell, maintaining the integrity and aesthetic appearance of the earphone. At the same time, the damage to the shell caused by external forces is reduced, indirectly protecting the internal structure and further enhancing the durability of the earphone.
[0119] It should still be noted that different from traditional thick waterproof shells or encapsulation methods, the thickness of the nano waterproof coating is extremely thin, hardly increasing the weight and volume of the earphone, and also having no negative impact on the appearance design and wearing comfort of the earphone. The nano waterproof coating material can be applied to earphone shells of various materials. Whether it is plastic, metal or composite material, good adhesion and protection can be achieved through appropriate pretreatment and coating processes, and it can meet the waterproof requirements of different types of earphones.
[0120] In a possible implementation, the earphone further includes:
[0121] An overvoltage protection circuit, which is arranged inside the earphone and is used to prevent the instantaneous voltage fluctuation generated during the operation of the washing machine from damaging the earphone;
[0122] A waterproof breathable valve, which is arranged on the earphone shell and is used to balance the internal and external air pressures of the earphone, preventing water vapor from entering the earphone interior due to air pressure changes.
[0123] It should be understood that during the operation of the washing machine, operations such as the start, stop, and circuit switching of the motor may generate instantaneous voltage fluctuations. In the example of this application, the overvoltage protection circuit can monitor the voltage condition in the headphone circuit. When it detects that the voltage of the headphone exceeds the normal operating voltage range of the headphone, it can quickly take measures to limit the voltage and prevent the excessive voltage from damaging the sensitive electronic components inside the headphone. The overvoltage protection circuit generally consists of a voltage detection element, a comparator, a protection execution element, etc. The voltage detection element continuously monitors the circuit voltage of the headphone and converts the circuit voltage into a comparable voltage signal; the comparator compares the detected voltage signal with a preset overvoltage threshold; once the detected voltage signal exceeds the trigger threshold, the protection execution element (such as a thyristor, a metal oxide varistor, etc.) immediately acts to limit the voltage across the internal components of the headphone within a safe range by means of shunting or voltage limiting, etc.
[0124] In one example, during the circuit board design stage of the headphone, the overvoltage protection circuit can be integrated into the internal circuit of the headphone as an independent module. Moreover, by ensuring correct electrical connections between the overvoltage protection circuit and other components such as the battery, the processor, and the sensor, the overall voltage condition of the headphone circuit can be continuously monitored.
[0125] Specifically, the trigger threshold of the overvoltage protection circuit can be accurately set according to the maximum voltage that each electronic component inside the headphone can withstand. This trigger threshold can ensure the normal operation of the headphone while promptly responding to and handling possible overvoltage situations. By setting up the overvoltage protection circuit inside the headphone, it can effectively prevent the impact of voltage fluctuations generated by the operation of the washing machine on the headphone circuit, protect key components such as the processor, sensor, and storage chip inside the headphone, improve the stability and reliability of the headphone circuit, and reduce the probability of failures caused by abnormal voltages. By setting up the overvoltage protection circuit, it can avoid potential damage to electronic components caused by excessive voltages, extend the service life of each component of the headphone, thereby enhancing the overall durability of the headphone and reducing the frequency of users replacing the headphone due to circuit failures.
[0126] In another example, the waterproof breathable valve in the headphone can adopt special waterproof materials and structural designs, which can not only prevent moisture from entering the inside of the headphone but also allow gas to pass through, achieving the balance of air pressure inside and outside the headphone. Its waterproof function is generally based on hydrophobic materials, and water molecules cannot penetrate these materials due to surface tension; while the breathable function depends on the microporous structure of the material or a special gas exchange mechanism, enabling gas to freely enter and exit under the action of pressure difference. When the air pressure in the external environment of the headphone changes (such as due to operations like water flow agitation and dehydration in the washing machine resulting in air pressure fluctuations), the waterproof breathable valve allows gas to pass through, making the air pressure inside the headphone consistent with the outside, and avoiding the infiltration of water vapor into the inside of the headphone through weak sealing points due to excessive air pressure difference.
[0127] Specifically, when designing the earphone housing, a suitable position can be selected to install a waterproof and breathable valve. Generally, a position that neither affects the appearance and wearing comfort of the earphone nor effectively achieves air pressure balance will be chosen, such as the side or bottom of the earphone. Specifically, a suitable sealant or mechanical fixing method can be used to firmly install the waterproof and breathable valve on the earphone housing, ensuring a good seal between it and the housing to prevent moisture from seeping in through the installation gap.
[0128] In addition, there is also an alternative example. The waterproof and breathable valve in the earphone can also be combined with other waterproof measures (such as sealant, waterproof coating, etc.) to further enhance the waterproof ability of the earphone. By balancing the air pressure, the risk of water vapor penetration caused by air pressure changes is reduced, providing more comprehensive waterproof protection for the earphone, ensuring that the earphone can work properly in a humid environment (such as inside a washing machine), and avoiding damage to internal components caused by air pressure differences. For example, excessive air pressure differences may cause problems such as deformation of the speaker diaphragm and displacement of sensors inside the earphone. The waterproof and breathable valve helps maintain a stable air pressure environment inside the earphone and protects the normal working state of these precision components.
[0129] In one possible implementation, the earphone further includes:
[0130] a plurality of waterproof modules and a plurality of waterproof interfaces;
[0131] wherein each waterproof module is used to independently encapsulate one or more components inside the earphone, and different waterproof modules are connected by waterproof interfaces.
[0132] First, classify the components inside the earphone. For example, consider the battery, circuit board, sensor, speaker, etc. separately. According to the functions, sizes, and waterproof requirements of the components, divide the components inside the earphone into different waterproof modules. For example, the battery can be separately encapsulated into a waterproof module, and the circuit board and the processors, storage chips, etc. on it form another waterproof module. Design corresponding housings for each waterproof module. The housing of this waterproof module is made of materials with good waterproof performance, such as the housing with a nano waterproof coating material mentioned above, or high-strength and well-sealed engineering plastics. In addition, it should still be noted that the design of the housing of the waterproof module should fully consider the layout and heat dissipation requirements of the internal components to ensure that the components can work properly while being waterproof. Specifically, the classified components can be installed into the corresponding waterproof modules and sealed using sealant, rubber gaskets, etc. to prevent moisture from entering the module interior. For example, in the circuit board module, waterproof silicone is used to seal the edge of the circuit board to ensure that even if there is water outside the waterproof module, it will not penetrate onto the circuit board.
[0133] The waterproof interface has good sealing performance and electrical connection performance. For example, special mechanical structures and sealing materials can be used to achieve the waterproof function. For instance, it can be designed as a plug-and-play interface with a rubber sealing ring. When two waterproof modules are connected through the interface, the rubber sealing ring will be compressed to form a sealing barrier to prevent moisture from entering the interior of the interface.
[0134] Inside the waterproof interface, ensure that the electrical connection between each module is stable and reliable. Gold-plated or silver-plated contacts are used to improve conductivity and corrosion resistance. At the same time, reasonably design the pin layout of the interface to avoid signal interference and short-circuit problems.
[0135] In one example, during the process of connecting different waterproof modules through the waterproof interface, it is necessary to ensure that the interface is aligned and firmly connected, and at the same time check whether the sealing performance is good. For example, use buckles or screws to fix the interface to prevent loosening during use, which may lead to a decline in waterproof performance.
[0136] In the example of this application, each waterproof module is independently encapsulated. Even if a certain module accidentally gets water, it will not affect the normal operation of other modules. For example, if the battery module gets water due to seal failure, it will not affect the circuit board module, thus avoiding the situation where the entire earphone is damaged due to local water ingress, greatly improving the waterproof reliability of the earphone. The waterproof interface further enhances the waterproof effect and forms multiple waterproof lines of defense. Even if moisture breaks through the protection of the module housing, it is very difficult to enter other modules through the waterproof interface, providing more comprehensive protection for the internal components of the earphone.
[0137] The design of using multiple waterproof modules and waterproof interfaces makes the repair and replacement of the earphone more convenient. When a certain module fails, only need to disassemble the module from the interface for repair or replacement, without the need to disassemble and repair the entire earphone, reducing the repair cost and difficulty and improving the repair efficiency. The modular design makes the layout of the internal components of the earphone more flexible. According to the shape design and function requirements of the earphone, the positions and connection methods of each waterproof module can be reasonably arranged to optimize the use of the internal space of the earphone, and at the same time it also helps to improve the overall performance and stability of the earphone.
[0138] There is also an alternative embodiment. Each waterproof module can be designed with independent heat dissipation channels and heat dissipation structures according to the heat dissipation requirements of the internal components, which can improve the heat dissipation efficiency. For example, heat dissipation fins can be set on the battery module, and heat dissipation holes or heat dissipation silica gel can be used for heat dissipation on the circuit board module.
[0139] It should be noted that: For the earphones provided in the above embodiments, only the division of the above functional modules is used for illustration. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the earphones is divided into different functional modules to complete all or part of the functions described above.
[0140] An example of a control method for earphones is provided in this application example. Please refer to Figure 6 as shown in Figure 6 FIG. shows a schematic flowchart of a control method for earphones provided in this application. As an example and not a limitation, this method can be applied to or run in earphones. The method includes:
[0141] S601, obtaining the motion data of the earphones;
[0142] S602, determining whether the earphones are in the washing machine and rotating along with it according to the motion data;
[0143] S603, if it is determined that the earphones are in the washing machine and rotating along with it, generating a power-off protection instruction;
[0144] S604, controlling the earphones to perform a power-off protection operation according to the power-off protection instruction.
[0145] Optionally, the control method for earphones provided in this application example can be applied to various types, designs, and uses of earphone products. The types of earphones can be in-ear earphones, ear-hook earphones, wired earphones, wireless earphones (such as TWS earphones), sports earphones, gaming earphones, and so on.
[0146] Optionally, in this application example, by integrating sensors inside the earphones, such as a six-axis inertial measurement unit (6-Axis IMU), which includes an accelerometer and a gyroscope. The accelerometer is used to measure the acceleration data of the earphones in three axes (X-axis, Y-axis, Z-axis), and can sense linear motion and changes in gravitational acceleration, such as the centripetal acceleration generated when the earphones rotate with the washing machine in it, and the linear acceleration changes of the earphones when the washing machine starts and stops. The gyroscope measures the angular velocity data of the earphones around three axes to detect the rotational motion of the earphones, such as distinguishing whether the earphones are rotating horizontally (similar to a pulsator washing machine) or vertically (similar to a drum washing machine).
[0147] Based on the collected motion data, determine whether the current environment where the earphone is located is inside a washing machine and in a state of following rotation, so as to take protection measures in a timely manner. For example, specifically, the original motion data collected by the earphone's sensor can be transmitted to the processor, and the processor uses digital signal processing algorithms to extract key features from the original motion data. For example, calculate the amplitude and rate of change of acceleration, as well as the direction and magnitude changes of angular velocity, etc. In the earphone, there is a pre-stored motion feature model during the operation of mainstream washing machines obtained through a large number of experiments and analyses, including features such as the horizontal rotation of a pulsator washing machine and the vertical rotation of a drum washing machine. By comparing the extracted motion features of the earphone with these preset feature models and using pattern recognition algorithms (such as neural network algorithms, decision tree algorithms, etc.), determine whether the earphone is in the washing machine and following rotation. For example, if the motion data of the earphone shows a pattern similar to the vertical rotation of a drum washing machine within a certain period of time, and the changes in acceleration and angular velocity conform to its characteristics, it is determined that the earphone is in the washing machine.
[0148] If the processor determines through the motion data that the earphone is in the washing machine and following rotation, a power-off protection instruction is generated according to the preset logic. This instruction can be a specific electrical signal or digital code, containing clear control information, informing the controller (power-off protection circuit) of the earphone that a power-off operation needs to be performed. By cutting off the power supply of the earphone circuit, it prevents the moisture in the washing machine environment from causing a short circuit in the circuit board, thereby protecting the electronic components inside the earphone.
[0149] In one example, after receiving the power-off protection instruction from the processor, the controller of the earphone parses and confirms the instruction. After confirmation, the controller controls the electronic switch (such as an MOSFET tube) to act, cutting off the connection between the battery and the earphone circuit board, making the circuit board completely powered off, and realizing the power-off protection of the earphone. In another example, the earphone can also maintain a specific state after power-off until it detects that the earphone has left the dangerous environment (such as the washing machine stops working and the motion state of the earphone returns to normal), or receives other specific power-on restoration instructions.
[0150] Through the example of the control method of the earphone provided by this application, it can timely detect whether the earphone is in the washing machine and perform power-off protection, avoid problems such as short circuits in the circuit board caused by water ingress of the earphone in the washing machine, effectively protect the hardware facilities of the earphone, extend the service life of the earphone, and reduce the damage of the earphone and economic losses caused by accidentally washing the earphone. Moreover, by reducing the probability of the user accidentally putting the earphone into the washing machine and damaging it, it enhances the user's satisfaction and trust in the earphone product, and improves the overall usage experience. In addition, the earphone automatically judges the environment and state according to the motion data and takes corresponding protection measures, improving the intelligence level of the earphone product and increasing the technological added value of the product.
[0151] It should be understood that the sequence numbers of the steps in the above embodiments do not imply the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0152] An embodiment of the present application further provides a headset, which includes one or more processors and a memory;
[0153] The memory is coupled to the one or more processors. The memory is used to store computer program code, and the computer program code includes computer instructions. The one or more processors call the computer instructions to cause the headset to execute the control method of the headset shown above.
[0154] Figure 7 FIG. 10 is a schematic structural diagram of a headset provided by an embodiment of the present application. The headset 700 may be an in-ear headset, an ear-hook headset, a wired headset, a wireless headset (such as a TWS headset), a sports headset, a gaming headset, and so on. The embodiment of the present application does not impose any restrictions on the specific type of the headset.
[0155] The memory 701 can be used to store the computer software program 702 and modules. The processor 703 executes various functional applications and data processing of the headset by running the software program and modules stored in the memory 701. The memory 701 may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system, application programs required for at least one function (such as a sound playback function), etc.; the data storage area may store data created according to the use of the headset (such as audio data, phone book, etc.). In addition, the memory 701 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0156] Among them, the processor 703 may include one or more of a central processing unit, an application processor (AP), a baseband processor, etc. The processor may be the nerve center and command center of a wireless router. The processor 703 can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching instructions and executing instructions. The memory 701 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 703 executes various functional applications and data processing of the network device by running the instructions stored in the memory. The memory 701 may include a program storage area and a data storage area, such as storing data of a sound signal to be played. For example, the memory may be a double data rate synchronous dynamic random access memory DDR or a flash memory Flash, etc.
[0157] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored; when the computer-readable storage medium runs on the earphone, the earphone is enabled to execute the earphone control method shown above.
[0158] The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more integrated media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium, or a semiconductor medium (such as a solid-state disk (SSD)).
[0159] The embodiment of the present application also provides a computer program product containing computer instructions. When the computer program product runs on the earphone, the earphone can execute the earphone control method shown above.
[0160] The computer storage medium and computer program product provided in the embodiment of the present application above are both used to execute the method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects corresponding to the method provided above, and will not be elaborated here.
[0161] In the above embodiments, it can also be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a Digital Versatile Disc (DVD)), or a semiconductor medium (such as a Solid State Disk (SSD)), etc.
[0162] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0163] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments claimed in this application can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0164] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0165] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0166] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An earphone, characterized in that, including: a sensor for collecting motion data of the earphone; a processor connected to the sensor for determining whether the earphone is in the washing machine and rotating therewith according to the motion data; if it is determined that the earphone is in the washing machine and rotating therewith, a power-off protection instruction is generated; a controller connected to the processor for controlling the earphone to perform a power-off protection operation according to the power-off protection instruction generated by the processor.
2. The earphone according to claim 1, wherein The sensor includes: a six-axis inertial measurement sensor disposed on the earphone for collecting angular velocity data and acceleration data of the earphone.
3. The earphone according to claim 2, wherein the processor is further configured to determine a motion trajectory of the earphone according to the angular velocity data and acceleration data of the earphone, and determine that the earphone is in the washing machine and rotating therewith when the motion trajectory matches a preset trajectory, where the preset trajectory is any motion trajectory of an object in the washing machine in a working state.
4. The earphone according to claim 2, wherein the processor is further configured to detect that the earphone continuously exhibits circular motion characteristics or approximately circular motion characteristics within a predetermined time period according to the angular velocity data, and the motion direction is consistent with a pre-determined rotation direction of the washing machine, and detect that the earphone generates centripetal acceleration with the rotation of the washing machine according to the acceleration data, and the direction of the centripetal acceleration points to a pre-determined preset position, then determine that the earphone is in the washing machine and rotating therewith.
5. The earphone according to claim 2, wherein the sensor further includes: an environmental humidity sensor connected to the six-axis inertial measurement sensor for detecting the ambient humidity value of the earphone when the six-axis inertial measurement sensor detects the angular velocity data and acceleration data; the processor is further configured to determine a motion trajectory of the earphone according to the angular velocity data and acceleration data of the earphone, and determine that the earphone is in the washing machine and rotating therewith when the motion trajectory matches a preset trajectory and the ambient humidity value reaches a preset humidity value.
6. The earphone according to claim 1, wherein the earphone further includes: an alarm connected to the processor for outputting an alarm message to other terminal devices of the user after the processor determines that the earphone is in the washing machine and rotating therewith and before generating the power-off protection instruction, where the alarm message is used to prompt the user to check in time whether the earphone is accidentally put into the washing machine.
7. The earphone according to claim 1, wherein the earphone further includes: a battery and a circuit board, and an electronic switch is disposed between the battery and the circuit board; the controller is further configured to cut off the power supply of the battery to the circuit board by controlling the electronic switch.
8. The earphone according to claim 1, characterized in that, The earphone further includes: an overvoltage protection circuit disposed in the earphone for preventing damage to the earphone caused by instantaneous voltage fluctuations generated when the washing machine is working. A waterproof and breathable valve is provided on the housing of the earphone, which is used to balance the internal and external air pressures of the earphone and prevent water vapor from entering the interior of the earphone due to air pressure changes.
9. The earphone according to claim 1, characterized in that The earphone further includes: A housing, which is made of a nano waterproof coating material, and the nano waterproof coating material is used to resist the impact, friction and penetration of the water flow in the washing machine.
10. The earphone according to claim 1, characterized in that, The earphone further includes: A plurality of waterproof modules and a plurality of waterproof interfaces; Wherein, each of the waterproof modules is used to independently encapsulate one or more components inside the earphone, and different waterproof modules are connected by the waterproof interfaces.
11. A control method for an earphone, characterized in that, Applied to the earphone as claimed in claims 1 to 10, the method includes: Obtaining the motion data of the earphone; Determining whether the earphone is in the washing machine and rotating along with it according to the motion data; If it is determined that the earphone is in the washing machine and rotating along with it, generating a power-off protection instruction; Controlling the earphone to perform a power-off protection operation according to the power-off protection instruction.
12. A computer program product, characterized in that, Including a computer program, when the computer program is run, the method as claimed in claim 11 is executed.
13. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, the method as claimed in claim 11 is implemented.