Headphone in-box detection method, device, headphone equipment and storage medium

By setting up an acceleration sensor in the headphones and setting up a vibrating device in the headphone box, using the vibrating device to drive the headphones to vibrate, collect and match the acceleration data, the problem of low detection accuracy of existing wireless headphones into the box is solved, and higher detection accuracy and intelligent interaction are achieved.

CN114745628BActive Publication Date: 2025-08-22SHANGHAI WINGTECH INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210401102.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-14
Publication Date
2025-08-22
Estimated Expiration
2042-04-14

AI Technical Summary

Technical Problem

The existing wireless headphone box-in-box detection technology has the problem of low accuracy, especially in contact detection, which is susceptible to dust and is susceptible to interference from magnetic items in contactless detection.

Method used

An acceleration sensor is set in the headphones and a vibrating device is set in the headphone box. The vibration device drives the headphones to vibrate. The headphones collect acceleration data through the acceleration sensor, and match preset data to determine whether the headphones successfully enter the headphone box.

Benefits of technology

Improve the accuracy of headphone entry box detection, reduce power consumption, and enhance the intelligent interaction between headphones and headphone boxes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114745628B_ABST
    Figure CN114745628B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, headphone device, and storage medium for detecting when a headphone is in a headphone box. The method is applied to a headphone equipped with an acceleration sensor, capable of being placed in a headphone box equipped with a vibration device. The method includes collecting acceleration data using the acceleration sensor; and determining that the headphone has successfully entered the headphone box if the acceleration data is determined to be data generated by the headphone vibrating due to the vibration device. Implementing the present invention improves the accuracy of headphone in-box detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of earphone technology, and in particular to a method and apparatus for detecting earphone entry into a box, an earphone device, and a storage medium. Background Art

[0002] As users demand ever-higher portability, wireless headphones are becoming increasingly popular. In some scenarios, it's necessary to detect when a wireless headphone has entered its case, such as when charging it. However, current methods for detecting when a wireless headphone has entered the case are inaccurate. Summary of the Invention

[0003] The embodiments of the present application disclose a method, apparatus, headphone device, and storage medium for detecting whether an earphone has been inserted into a box, which can improve the accuracy of detecting whether an earphone has been inserted into a box.

[0004] The present application discloses a method for detecting when an earphone is in a box. The method is applied to an earphone, wherein the earphone is provided with an acceleration sensor and can be placed in an earphone box, wherein the earphone box is provided with a vibration device. The method includes:

[0005] Collecting acceleration data through the acceleration sensor;

[0006] If it is determined that the acceleration data is data generated when the earphone is vibrated by the vibration device, it is determined that the earphone has successfully entered the earphone box.

[0007] In one embodiment, after collecting acceleration data by the acceleration sensor, the method further includes:

[0008] matching the acceleration data with preset data, wherein the preset data is data that can match data generated when the earphone is vibrated by the vibration device;

[0009] If the acceleration data successfully matches the preset data, it is determined that the acceleration data is data generated when the earphone is vibrated by the vibration device.

[0010] In one embodiment, after determining that the earphone has successfully entered the earphone box, the method further includes:

[0011] Sending successful box entry information to the earphone box, so that the earphone box performs an earphone box entry action according to the successful box entry information; wherein, the successful box entry information is used to indicate that the earphone has successfully entered the earphone box, and the earphone box entry action at least includes the earphone box charging the earphone that has successfully entered the earphone box.

[0012] The present application discloses a method for detecting earphones entering a box, which is applied to an earphone box provided with a vibration device. The method includes:

[0013] When it is detected that the earphone box is in the open state, the vibration device is controlled to vibrate so that the earphone entering the earphone box collects acceleration data generated by the vibration device through the acceleration sensor, and determines that the earphone has successfully entered the earphone box based on the acceleration data.

[0014] In one embodiment, after controlling the vibration device to vibrate, the method further includes:

[0015] receiving successful box entry information sent by the earphone, where the successful box entry information is used to indicate that the earphone has successfully entered the earphone box;

[0016] An earphone-in-box action is performed according to the successful-in-box information, where the earphone-in-box action at least includes charging the earphone that has successfully entered the earphone box.

[0017] In one embodiment, after controlling the vibration device to vibrate, the method further includes:

[0018] If it is detected that the earphone box is in a closed state, controlling the vibration device to stop the vibration operation; or,

[0019] If it is detected that the number of headphones that have successfully entered the headphone box is equal to the maximum number of headphones that can be placed in the headphone box, the vibration device is controlled to stop the vibration operation.

[0020] The present application discloses a headset device, comprising:

[0021] At least one headset;

[0022] An earphone box, comprising an earphone receiving compartment for storing the earphones;

[0023] The earphone box further includes a vibration device, which is used to vibrate to drive the earphone placed in the earphone receiving compartment to vibrate;

[0024] The earphone includes an acceleration sensor, and the acceleration sensor is used to collect acceleration data of the earphone.

[0025] The present application discloses an earphone in-box detection device, which is applied to earphones. The device includes:

[0026] A data acquisition module, configured to acquire acceleration data via the acceleration sensor;

[0027] The determination module is configured to determine that the earphone has successfully entered the earphone box if it is determined that the acceleration data is data generated when the earphone is vibrated by the vibration device.

[0028] The present application discloses an earphone box detection device, which is applied to an earphone box. The device includes:

[0029] The control module is used to control the vibration device to vibrate when detecting that the earphone box is in the open state, so that the earphone entering the earphone box collects acceleration data generated by the vibration device when the vibration operation is performed through the acceleration sensor, and determines that the earphone has successfully entered the earphone box based on the acceleration data.

[0030] The present application discloses an electronic device, including:

[0031] a memory storing executable program code;

[0032] a processor coupled to the memory;

[0033] The processor calls the executable program code stored in the memory to execute the method described in any one of the above embodiments.

[0034] An embodiment of the present application discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes the method described in any one of the above embodiments.

[0035] The embodiments of the present application disclose a method, apparatus, headphone device and storage medium for detecting when an earphone is in a box. An acceleration sensor is provided in the earphone, and a vibration device is provided in the earphone box. When the earphone box detects that it is currently in the open state, it can control the vibration device to vibrate, thereby driving the earphones in the earphone box to vibrate. The earphones can detect the acceleration data generated by the vibration operation of the vibration device when the earphones are vibrating through the acceleration sensor, thereby determining that the earphones have successfully entered the earphone box. By detecting the vibration operation of the vibration device of the earphone box through the acceleration sensor of the earphone, the accuracy of the earphone entry detection can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1This is a schematic structural diagram of an earphone device disclosed in an embodiment of the present application;

[0038] Figure 2 This is a flow chart of a method for detecting earphones entering a box disclosed in an embodiment of the present application;

[0039] Figure 3 This is a flow chart of another method for detecting earphones entering a box disclosed in an embodiment of the present application;

[0040] Figure 4 This is a flow chart of another method for detecting earphones entering a box disclosed in an embodiment of the present application;

[0041] Figure 5 This is a flow chart of another method for detecting earphones entering a box disclosed in an embodiment of the present application;

[0042] Figure 6 This is a modular schematic diagram of a headphone in-box detection device disclosed in an embodiment of the present application;

[0043] Figure 7 This is a modular schematic diagram of another headphone in-box detection device disclosed in an embodiment of the present application;

[0044] Figure 8 This is a structural block diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0046] It should be noted that the terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or devices.

[0047] It should be understood that the terms "first," "second," and so forth, used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are used solely to distinguish a first element from another element. For example, a first earphone could be referred to as a second earphone, and similarly, a second earphone could be referred to as a first earphone, without departing from the scope of this application. The first earphone and the second earphone are both earphones, but they are not the same earphone.

[0048] In the related art, there are two commonly used box entry detection technologies: contact box entry detection technology and non-contact box entry detection technology. Among them, the contact box entry detection technology determines whether the earphones are in the box by detecting whether the touch switch is turned on. When the earphones are in the box, the earphones touch the touch switch inside the earphone box, and the touch switch is turned on, thereby determining that the earphones are in the box. The non-contact box entry detection technology is to set an acceleration sensor in the earphone box, and use the acceleration sensor to detect whether the earphones are in the box. Because when the earphones enter the charging box, due to the gravity of the earphones and the magnetic attraction between the earphones and the earphone box, the earphones will generate an acceleration in the process of entering the earphone box. If the acceleration sensor in the earphone box detects that the acceleration of the earphones matches the preset data, it is determined that the earphones are in the box.

[0049] However, both of these commonly used in-box detection technologies have drawbacks. After extended use, contact-based in-box detection can create dust and other foreign matter near the touch switch inside the case, causing poor contact and reducing the accuracy of in-box detection. Contactless in-box detection can also generate acceleration when other magnetic objects are accidentally placed in the case, potentially leading to incorrect detection results and reducing accuracy.

[0050] The embodiments of the present application disclose a method, apparatus, headphone device, and storage medium for detecting whether an earphone has been inserted into a box, which can improve the accuracy of detecting whether an earphone has been inserted into a box.

[0051] The following is a detailed description with reference to the accompanying drawings.

[0052] like Figure 1 As shown, Figure 1 : is a schematic structural diagram of a headphone device disclosed in an embodiment of the present application. The headphone device 10 may include two headphones 110 and a headphone box 120. Each headphone 110 includes at least an acceleration sensor 112. The headphone box 120 includes at least a vibration device 122 and two headphone receiving compartments 124. The headphones 110 may be placed in the headphone receiving compartments 124 of the headphone box 120. The acceleration sensor 112 is used to collect acceleration data of the headphones 110. The vibration device 122 is used to perform a vibration operation to drive the headphones 110 placed in the headphone receiving compartments 124 to vibrate. The headphone receiving compartments 124 are used to place the headphones 110. The vibration device 122 may include, but is not limited to, a motor. The headphone receiving compartments 124 may be a cavity inside the headphone box 120 or an external container connected to the headphone box 120. This application does not limit this.

[0053] Among them, the headphone device 10 includes at least one headphone 110, and the headphone box 120 may also include an headphone box cover. When the headphone box cover is open, the headphone box 120 is in an open state, and when the headphone box cover is closed, the headphone box 120 is in a closed state. The headphone box 120 can detect whether the headphone box 120 is in an open state or a closed state by detecting the opening and closing of the headphone box cover.

[0054] In one embodiment, the earphone 110 may specifically include an electroacoustic device, an earphone PCB (Printed Circuit Board), a housing, and a Bluetooth antenna. The electroacoustic device may include an earpiece, a microphone, etc. The earphone PCB may include a CPU (central processing unit), an accelerometer 112, and other modules. The earphone box 120 may specifically include a vibration device 122, an earphone storage compartment 124, a battery, and an earphone box PCB. The earphone box PCB may include a charging module and a power management chip.

[0055] In one embodiment, the accelerometer 112 provided in the earphone 110 can collect acceleration data in real time. When the earphone box 120 detects that the earphone box 120 is open, the earphone box 120 can control the vibration device 122 to vibrate. If the earphone 110 enters the earphone box 120, that is, the earphone 110 is placed in the earphone receiving compartment 124, the vibration operation of the vibration device 122 can drive the earphone 110 to vibrate. At this time, the earphone 110 can collect acceleration data generated by the vibration operation of the vibration device 122 of the earphone box 120 through the accelerometer 112. The earphone 110 can detect the collected acceleration speed through the CPU and determine that the earphone 110 has successfully entered the earphone box 120 when the collected acceleration data is determined to be data generated by the vibration operation of the vibration device 122 of the earphone box 120.

[0056] It should be noted that the components inside the earphones and earphone box can be flexibly adjusted according to the internal space. Figure 1 This is just one example of component position distribution disclosed in the embodiment of the present application and is not limited thereto.

[0057] As an optional implementation, an acceleration sensor can be set in the earphone box, a vibration device can be set in the earphone, and the earphone can be provided with a vibration switch. When the earphone detects the trigger operation of the vibration switch, the earphone controls the acceleration sensor in the earphone to vibrate. If the earphone enters the earphone box, the vibration operation of the vibration device of the earphone can drive the earphone box to vibrate. The earphone box can collect the acceleration data of the earphone box through the acceleration sensor, thereby determining whether the earphone has successfully entered the earphone box.

[0058] like Figure 2 As shown, Figure 2 This is a flow chart of a method for detecting earphones entering a box disclosed in an embodiment of the present application. The method can be applied to the above-mentioned earphones, wherein the earphones are provided with an acceleration sensor, and the earphones can be placed in an earphone box, which is provided with a vibration device. The method may include the following steps:

[0059] Step 210: Collect acceleration data through an acceleration sensor.

[0060] The earphones can collect acceleration data through an accelerometer. Specifically, the earphones can continuously collect acceleration data through the accelerometer, and then determine whether the earphones have successfully entered the earphone box through subsequent detection steps. Optionally, the earphones can collect acceleration data at a certain frequency through the accelerometer. For example, the earphones can collect acceleration data at a frequency of 1 Hz (Hertz) through the accelerometer, that is, the earphones collect acceleration data through the accelerometer every 1 second (second). Optionally, the collected acceleration data may include acceleration data in three directions: x-axis, y-axis, and z-axis. Any two axes among the x-axis, y-axis, and z-axis are perpendicular to each other, that is, the acceleration data may be a data value in a three-dimensional space.

[0061] In one embodiment, the headset can determine whether to collect acceleration data through the acceleration sensor according to the current state. The current state includes the use state or the charging state. The use state refers to the state in which the headset is currently in use, for example, the headset has established a communication connection with other electronic devices, and the headset is searching for other devices, etc. The charging state refers to the state in which the headset is currently charging. If the current state of the headset is the use state, acceleration data is collected through the acceleration sensor, and whether the headset enters the headset box is determined based on the acceleration data. If the current state of the headset is the charging state, acceleration data is not collected through the acceleration sensor. By implementing this embodiment, the headset determines whether to collect acceleration data through the acceleration sensor according to the current state, which can avoid the headset from continuously using the acceleration sensor, thereby reducing the power consumption of the headset entry detection.

[0062] In one embodiment, a wireless communication connection can be established between the headset and the headset box. The headset can receive a power-on message sent by the headset box. This power-on message can be used to confirm that the headset box is in the power-on state. After confirming that the headset box is in the power-on state, acceleration data can be collected via the acceleration sensor. By implementing this embodiment, the headset can collect acceleration data via the acceleration sensor after confirming that the headset box is in the power-on state, thereby reducing power consumption during headset entry detection.

[0063] In one embodiment, if the headset detects a switch from audio playback to a paused playback state, the headset collects acceleration data via the acceleration sensor. For example, if the headset switches from playing music to stopping music, it indicates that the user has put down the headset or stopped using the headset, and the headset can begin collecting acceleration data via the acceleration sensor.

[0064] In step 220 , if it is determined that the acceleration data is data generated when the earphone is vibrating due to the vibration device, it is determined that the earphone has successfully entered the earphone box.

[0065] The earphone box can detect whether the earphone is currently in an open state or a closed state. The detection method may include but is not limited to detection through a Hall switch connected to the earphone box cover, detection through a pressure sensor, etc. When the earphone box detects that the earphone box is currently in an open state, it can control the vibration device to vibrate, thereby driving the earphones in the earphone box to vibrate together. At this time, the earphone can collect the acceleration data generated by the vibration device when the vibration device is vibrating through the acceleration sensor. The earphone can detect the collected acceleration data. If the earphone determines that the acceleration data is data generated by the earphone due to the vibration device of the earphone box, the earphone can determine that the vibration of the vibration device is already driving the earphone to vibrate, thereby determining that the earphone has successfully entered the earphone box. If the earphone determines that the acceleration data is not data generated by the earphone due to the vibration device of the earphone box, it can be determined that the earphone has not successfully entered the earphone box.

[0066] In one embodiment, the earphones can match acceleration data with preset data, where the preset data is data that can match the data generated when the earphones are vibrating due to the vibration device of the earphone box; if the acceleration data successfully matches the preset data, it is determined that the acceleration data is data generated when the earphones are vibrating due to the vibration device of the earphone box.

[0067] Among them, the headset can determine whether the acceleration data successfully matches the preset data by determining the similarity between the acceleration data and the preset data, or by calculating the difference between the acceleration data and the preset data and then determining whether the acceleration data successfully matches the preset data based on the difference. It can also determine the vibration frequency, continuous vibration duration, vibration amplitude and other data through the acceleration data, and then match the preset data based on the vibration frequency, continuous vibration duration and vibration amplitude and other data. The embodiment of the present application does not limit the matching method of the acceleration data and the preset data.

[0068] In one embodiment, the preset data can be set before the earphones and their corresponding earphone cases leave the factory. The preset data can be data collected and stored in the earphones using an acceleration sensor after confirming that the earphones are in the earphone case before leaving the factory. Implementing this embodiment allows for setting preset data for each earphone, improving the accuracy of earphone in-case detection.

[0069] In a specific embodiment, the difference between the acceleration data detected by the headset and the preset data on the x-axis, y-axis and z-axis does not exceed 0.2 cm / s 2 When the acceleration data matches the preset data, it is determined that the acceleration data is successfully matched. The acceleration data collected by the headset is 1.5cm / s in the x-axis direction. 2 (centimeter per second squared), 1.4 cm / s in the y-axis direction 2 , 1.6 cm / s in the z-axis direction 2 , and the preset data in the x-axis direction is 1.5cm / s 2 , 1.5 cm / s in the y-axis direction 2 , 1.5cm / s in the z-axis direction 2 , so the difference between the acceleration data and the preset data on the x-axis is 0 cm / s 2 , the difference on the y-axis is 0.1 cm / s 2 , the difference on the y-axis is 0.1 cm / s 2 , the difference between the acceleration data and the preset data on the x-axis, y-axis and z-axis shall not exceed 0.2cm / s 2 , the headset determines that the acceleration data matches the preset data successfully.

[0070] By implementing this embodiment, the earphones can detect whether the acceleration data is data generated when the earphones vibrate due to the vibration operation of the vibration device by judging whether the acceleration data matches the preset data, thereby determining whether the earphones have successfully entered the earphone box, thereby improving the accuracy of the earphone entry detection.

[0071] As an optional embodiment, if the headset detects that multiple acceleration data within a preset time period all successfully match the preset data, it is determined that the multiple acceleration data within the preset time period is data generated when the headset is vibrating due to the vibration device, thereby determining that the headset has successfully entered the headset box. The headset can collect acceleration data at a certain frequency through the acceleration sensor, so the headset can collect multiple acceleration data within the preset time period, and the multiple acceleration data correspond to multiple moments respectively. The headset matches the multiple acceleration data with the preset data one by one. If the multiple acceleration data all successfully match the preset data, it is determined that the multiple acceleration data within the preset time period all successfully match the preset data, that is, the acceleration data within the preset time period is data generated when the headset is vibrating due to the vibration device, and it can be determined that the headset has successfully entered the headset box. By implementing this embodiment, by detecting multiple acceleration data within the preset time period, it is possible to avoid the error in data matching affecting the headset entry detection result, thereby improving the accuracy of the headset entry detection.

[0072] In an embodiment of the present application, an acceleration sensor is provided in the earphone, and a vibration device is provided in the earphone box. When the earphone box detects that it is currently in the open state, it can control the vibration device to vibrate, thereby driving the earphones entering the earphone box to vibrate. The earphones can detect the acceleration data generated by the vibration operation of the vibration device when the earphones are vibrating through the acceleration sensor, thereby determining that the earphones have successfully entered the earphone box. By detecting the vibration operation of the vibration device of the earphone box through the acceleration sensor of the earphone, the accuracy of the earphone entry detection can be improved.

[0073] like Figure 3 As shown, Figure 3 This is a flow chart of another headphone box detection method disclosed in an embodiment of the present application. The headphone box detection method can be applied to the above-mentioned headphone, wherein the headphone is provided with an acceleration sensor, and the headphone can be placed in a headphone box, and the headphone box is provided with a vibration device. The method may include the following steps:

[0074] Step 310: Collect acceleration data through an acceleration sensor.

[0075] In step 320 , if it is determined that the acceleration data is data generated when the earphone is vibrating due to the vibration device, it is determined that the earphone has successfully entered the earphone box.

[0076] Steps 310 to 320 are the same as steps 210 to 220 in the above embodiment and are not described again here.

[0077] Step 330: Send successful entry information to the earphone box, so that the earphone box performs the earphone entry action according to the successful entry information; wherein, the successful entry information is used to indicate that the earphone has successfully entered the earphone box, and the earphone entry action at least includes the earphone box charging the earphone that has successfully entered the earphone box.

[0078] After determining that the earphones have successfully entered the earphone box, the earphones can send a successful entry information to the earphone box, and the earphone box can receive the successful entry information sent by the earphones. The earphone box can perform the earphone entry action according to the successful entry information. For example, the charging module in the earphone box can transfer the power in the battery to the earphones, that is, the earphone box can charge the earphones that enter the earphone box.

[0079] Optionally, the earphone-into-box action may also output a prompt message to the earphone box to prompt the user that the earphone has successfully entered the earphone box. The embodiment of the present application does not limit the earphone-into-box action.

[0080] As an optional embodiment, the earphones can transmit successful insertion information to the earphone box via circuit transmission. After successfully entering the earphone box, the earphones can contact the earphone box, thereby forming an electrical connection. After the earphones and the earphone box are electrically connected, they can transmit information to each other. Implementing this embodiment allows information to be transmitted between the earphones and the earphone box via circuit transmission, increasing the diversity of information transmission methods.

[0081] In one embodiment, if the earphone box detects that the earphone box is in a closed state, the earphone box controls the vibration device to stop the vibration operation; or, if the earphone box detects that the number of earphones that have successfully entered the earphone box is equal to the maximum number of earphones that can be placed in the earphone box, the earphone box controls the vibration device to stop the vibration operation.

[0082] Among them, the step of controlling the vibration device to stop the vibration operation if the earphone box detects that the number of earphones that have successfully entered the earphone box is equal to the maximum number of earphones that can be placed in the earphone box may include: after confirming that the earphones have successfully entered the earphone box, the earphones may send successful entry information to the earphone box. The successful entry information may include the serial number of the earphones. The earphone box may detect the number of earphones that have successfully entered the earphone box based on the successful entry information. If the number of earphones detected is equal to the maximum number of earphones that can be placed in the earphone box, and the maximum number of earphones that can be placed is the maximum number of earphones that can be accommodated in the earphone storage compartment in the earphone box, then the earphone storage compartment of the earphone box is full, and no new earphones can successfully enter the earphone box, so the earphone box may control the vibration device to stop the vibration operation.

[0083] In a specific embodiment, the earphone box can correspond to the first earphone and the second earphone, and the maximum number of earphones placed in the earphone box is 2. After the first earphone sends a first successful entry information to the earphone box, the earphone box can determine that the first earphone has been successfully entered into the box, and the current number of earphones that have successfully entered the earphone box is 1, which is less than the maximum number of earphones placed in the earphone box 2. The earphone box continues to control the vibration device to vibrate. After the second earphone sends a second successful entry information to the earphone box, the earphone box can determine that the second earphone has been successfully entered into the box, and the current number of earphones that have successfully entered the earphone box is 2, which is equal to the maximum number of earphones placed in the earphone box 2. The earphone box determines that the first earphone and the second earphone have both successfully entered the earphone box, and the earphone box controls the vibration device to stop vibrating.

[0084] It should be noted that if the earphone box corresponds to multiple earphones, the earphone entry detections of the multiple earphones do not interfere with each other and there is no connection between them.

[0085] In an embodiment of the present application, the earphones can send earphone entry information to the earphone box, so that the earphone box performs the earphone entry action according to the successful entry information. Through the information interaction between the earphone box and the earphones, the intelligence level of the earphones and the earphone box can be improved.

[0086] like Figure 4 As shown, Figure 4 This is a flow chart of another method for detecting earphones entering a box disclosed in an embodiment of the present application. This method can be applied to the above-mentioned earphone box, in which a vibration device is provided. The method may include the following steps:

[0087] Step 410, when it is detected that the earphone box is in the open state, the vibration device is controlled to vibrate so that the earphone entering the earphone box collects acceleration data generated by the vibration device through the acceleration sensor, and determines that the earphone has successfully entered the earphone box based on the acceleration data.

[0088] In one embodiment, after controlling the vibration device to perform a vibration operation, the earphone box receives successful entry information sent by the earphone, and the successful entry information is used to indicate that the earphone has successfully entered the earphone box; the earphone entry action is executed according to the successful entry information, and the earphone box entry action at least includes charging the earphone that has successfully entered the earphone box.

[0089] In one embodiment, after the vibration device is controlled to vibrate, if it is detected that the earphone box is in a closed state, the vibration device is controlled to stop the vibration operation; or, if it is detected that the number of earphones that have successfully entered the earphone box is equal to the maximum number of earphones that can be placed in the earphone box, the vibration device is controlled to stop the vibration operation.

[0090] For the description of step 410 of this embodiment, reference may be made to the relevant description of the earphone in-box detection method applied to earphones provided in the above embodiments, and this application will not repeat them here.

[0091] In an embodiment of the present application, when the earphone box detects that it is currently in the open state, it can control the vibration device to vibrate, thereby driving the earphones entering the earphone box to vibrate. The earphones can detect the acceleration data generated by the vibration operation of the vibration device through the acceleration sensor, thereby determining that the earphones have successfully entered the earphone box. By detecting the vibration operation of the vibration device of the earphone box through the acceleration sensor of the earphones, the accuracy of the earphone entry detection can be improved.

[0092] like Figure 5 As shown, an embodiment of the present application discloses a flow chart of another method for detecting whether an earphone is inserted into a box. The method is applied to the above-mentioned earphone device and may include the following steps:

[0093] In step 510 , the earphone box detects whether the earphone box is in an open state. If so, step 520 is executed; if not, step 530 is executed.

[0094] In step 520 , the earphone box controls the vibration device to perform a vibration operation, and then executes step 540 .

[0095] Step 530: The earphone box controls the vibration device to stop vibrating.

[0096] In step 540 , the headset collects acceleration data via the acceleration sensor, and then executes step 550 .

[0097] In step 550 , the earphone detects whether the acceleration data is data generated by the earphone when the vibration device performs a vibration operation. If so, step 560 is executed; if not, step 570 is executed.

[0098] In step 560, the earphones send a successful insertion message to the earphone box. The earphone box performs an insertion action based on the successful insertion message. The successful insertion message indicates that the earphones have successfully entered the earphone box. The insertion action at least includes the earphone box charging the earphones that have successfully entered the earphone box. Execute step 580.

[0099] In step 570, the earphones do not send a successful insertion information to the earphone box, and the earphone box does not perform the earphone insertion action.

[0100] In step 580 , the earphone box detects whether the number of earphones that have successfully entered the earphone box is equal to the maximum number of earphones that can be placed in the earphone box. If so, step 530 is executed; otherwise, step 510 is executed.

[0101] For the description of steps 510 to 580 of this embodiment, reference may be made to the relevant descriptions in the above embodiments, and this application will not go into details here.

[0102] In an embodiment of the present application, the headphone device includes at least one headphone and an headphone box, an acceleration sensor is provided in the headphone, and a vibration device is provided in the headphone box. When the headphone box detects that it is currently in the on state, it can control the vibration device to vibrate, thereby driving the headphone entered into the headphone box to vibrate. The headphone can detect the acceleration data generated by the vibration operation of the headphone due to the vibration operation of the vibration device through the acceleration sensor, thereby determining that the headphone has successfully entered the headphone box. By detecting the vibration operation of the vibration device of the headphone box by the acceleration sensor of the headphone, the accuracy of the headphone entry detection can be improved. After determining that the headphone has successfully entered the headphone box, the headphone can send headphone entry information to the headphone box, so that the headphone box performs the headphone entry action according to the successful entry information. Through information interaction between the headphone box and the headphone, the intelligence of the headphone and the headphone box can be improved.

[0103] like Figure 6 As shown, an embodiment of the present application discloses a modular schematic diagram of a headphone box detection device. The headphone box detection device 600 can be applied to the above-mentioned headphone. The headphone box detection device 600 includes a data acquisition module 610 and a determination module 620, wherein:

[0104] The data acquisition module 610 is configured to acquire acceleration data via the acceleration sensor.

[0105] The determination module 620 is configured to determine that the earphone has successfully entered the earphone box if it is determined that the acceleration data is data generated when the earphone is vibrated by the vibration device.

[0106] In one embodiment, the earphone in-box detection device 600 includes, in addition to the data acquisition module 610 and the determination module 620, a matching module, wherein:

[0107] A matching module is used to match the acceleration data with preset data, where the preset data is data that can match the data generated when the headset is vibrating due to the vibration device; if the acceleration data successfully matches the preset data, it is determined that the acceleration data is the data generated when the headset is vibrating due to the vibration device.

[0108] In one embodiment, the earphone in-box detection device 600 includes, in addition to the data acquisition module 610, the determination module 620, and the matching module, an information sending module, wherein:

[0109] An information sending module is used to send successful box entry information to the earphone box, so that the earphone box performs an earphone box entry action according to the successful box entry information; wherein, the successful box entry information is used to indicate that the earphone has successfully entered the earphone box, and the earphone box entry action at least includes the earphone box charging the earphone that has successfully entered the earphone box.

[0110] like Figure 7 As shown, an embodiment of the present application discloses a modular schematic diagram of a headphone box detection device. The headphone box detection device 700 can be applied to the headphone box mentioned above. The headphone box detection device 700 includes a control module 710, wherein:

[0111] The control module 710 is used to control the vibration device to vibrate when detecting that the earphone box is in the open state, so that the earphones entering the earphone box can collect acceleration data generated by the vibration device when the vibration operation is performed through the acceleration sensor, and determine that the earphones have successfully entered the earphone box based on the acceleration data.

[0112] In one embodiment, the earphone in-box detection device 700 includes, in addition to the control module 710, an information receiving module, wherein:

[0113] An information receiving module is used to receive successful box entry information sent by the earphone, where the successful box entry information is used to indicate that the earphone has successfully entered the earphone box; and to perform an earphone box entry action according to the successful box entry information, where the earphone box entry action at least includes charging the earphone that has successfully entered the earphone box.

[0114] In one embodiment, the control module 710 is further used to control the vibration device to stop the vibration operation if it is detected that the earphone box is in a closed state; or to control the vibration device to stop the vibration operation if it is detected that the number of earphones that have successfully entered the earphone box is equal to the maximum number of earphones that can be placed in the earphone box.

[0115] In an embodiment of the present application, an acceleration sensor is provided in the earphone, and a vibration device is provided in the earphone box. When the earphone box detects that it is currently in the open state, it can control the vibration device to vibrate, thereby driving the earphones entering the earphone box to vibrate. The earphones can detect the acceleration data generated by the vibration operation of the vibration device when the earphones are vibrating through the acceleration sensor, thereby determining that the earphones have successfully entered the earphone box. By detecting the vibration operation of the vibration device of the earphone box through the acceleration sensor of the earphone, the accuracy of the earphone entry detection can be improved.

[0116] like Figure 8 As shown, in one embodiment, an electronic device is provided, which may include:

[0117] A memory 810 storing executable program code;

[0118] a processor 820 coupled to the memory 810;

[0119] The processor 820 calls the executable program code stored in the memory 810 to implement the earphone in-box detection method provided in the above embodiments.

[0120] The memory 810 may include a random access memory (RAM) or a read-only memory (ROM). The memory 810 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 810 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device during use.

[0121] The processor 820 may include one or more processing cores. The processor 820 utilizes various interfaces and circuits to connect various components within the electronic device. It executes instructions, programs, code sets, or instruction sets stored in the memory 810, as well as accesses data stored in the memory 810, to perform various functions of the electronic device and process data. Optionally, the processor 820 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 820 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 820 and may be implemented separately via a communication chip.

[0122] It is understandable that the electronic device may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, WiFi (Wireless Fidelity) module, speakers, Bluetooth modules, sensors, etc., and is not limited here.

[0123] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the methods described in the above embodiments.

[0124] In addition, an embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer can execute all or part of the steps of any one of the earphone in-box detection methods described in the above embodiments.

[0125] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0126] The above is a detailed introduction to the earphone entry detection method, device, earphone device and storage medium disclosed in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application; at the same time, for those skilled in the art, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A method for detecting earphones entering a box, characterized in that: Applied to earphones, wherein the earphones are provided with an acceleration sensor, and the earphones can be placed in an earphone box, wherein the earphone box is provided with a vibration device; the method comprises: Collecting acceleration data through the acceleration sensor; If it is determined that the acceleration data is data generated when the earphone is vibrated by the vibration device, it is determined that the earphone has successfully entered the earphone box.

2. The method according to claim 1, characterized in that After collecting acceleration data by the acceleration sensor, the method further includes: matching the acceleration data with preset data, wherein the preset data is data that can match data generated when the earphone is vibrated by the vibration device; If the acceleration data successfully matches the preset data, it is determined that the acceleration data is data generated when the earphone is vibrated by the vibration device.

3. The method according to claim 1 or 2, characterized in that After determining that the earphone has successfully entered the earphone box, the method further includes: Sending successful box entry information to the earphone box, so that the earphone box performs an earphone box entry action according to the successful box entry information; wherein, the successful box entry information is used to indicate that the earphone has successfully entered the earphone box, and the earphone box entry action at least includes the earphone box charging the earphone that has successfully entered the earphone box.

4. A method for detecting whether an earphone is in a box, characterized in that: Applied to an earphone box, wherein a vibration device is provided in the earphone box, the earphone box is used to place earphones, and the earphones are provided with an acceleration sensor. The method includes: When it is detected that the earphone box is in the open state, the vibration device is controlled to perform a vibration operation, so that the earphone entering the earphone box collects the acceleration data generated by the vibration operation of the vibration device through the acceleration sensor, and determines that the earphone has successfully entered the earphone box based on the acceleration data.

5. The method according to claim 4, characterized in that After controlling the vibration device to vibrate, the method further includes: receiving successful box entry information sent by the earphone, where the successful box entry information is used to indicate that the earphone has successfully entered the earphone box; An earphone-in-box action is performed according to the successful-in-box information, where the earphone-in-box action at least includes charging the earphone that has successfully entered the earphone box.

6. The method according to claim 4 or 5, characterized in that After controlling the vibration device to vibrate, the method further includes: If it is detected that the earphone box is in a closed state, controlling the vibration device to stop the vibration operation; or, If it is detected that the number of headphones that have successfully entered the headphone box is equal to the maximum number of headphones that can be placed in the headphone box, the vibration device is controlled to stop the vibration operation.

7. A headphone device, characterized in that: include: At least one headset; An earphone box, comprising an earphone receiving compartment for storing the earphones; The earphone box further includes a vibration device, which is used to vibrate to drive the earphone placed in the earphone receiving compartment to vibrate; The earphone includes an acceleration sensor, and the acceleration sensor is used to collect acceleration data of the earphone; The headset is used to perform the method according to any one of claims 1 to 3; The earphone box is used to perform the method according to any one of claims 4 to 6.

8. A device for detecting earphones entering a box, characterized in that: Applicable to headphones, wherein the headphones are provided with an acceleration sensor, the headphones can be placed in a headphone box, and the headphone box is provided with a vibration device. The device includes: A data acquisition module, configured to acquire acceleration data via the acceleration sensor; The determination module is configured to determine that the earphone has successfully entered the earphone box if it is determined that the acceleration data is data generated when the earphone is vibrated by the vibration device.

9. A device for detecting earphones entering a box, characterized in that: Applicable to an earphone box, wherein a vibration device is provided in the earphone box, the earphone box is used to place earphones, and the earphones are provided with an acceleration sensor; the device comprises: The control module is used to control the vibration device to vibrate when detecting that the earphone box is in the open state, so that the earphones entering the earphone box can collect acceleration data generated by the vibration device when the vibration operation is performed through the acceleration sensor, and determine that the earphones have successfully entered the earphone box based on the acceleration data.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Wireless earphone, in-out box detection method thereof and storage medium

    CN111314813A

  • State detection method, state detection device and wearable equipment

    CN111551197A