Headphone box detection method, device, headphones and storage medium

Near field communication and magnetic suction mechanisms enhance earphone box detection accuracy, addressing abnormal ejector pin contact issues to ensure proper charging and connection in wireless earphones.

CN115086827BActive Publication Date: 2024-12-17ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210770865.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-12-17
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

Existing wireless earphones, such as TWS Bluetooth headphones, face issues with accurate detection of entry into their charging boxes due to abnormal physical contact of ejector pins, leading to incorrect connection and charging state determination.

Method used

Utilizing near field communication technology to detect an electronic tag on the earphone and its matching box, determining device identifiers, and employing magnetic suction mechanisms to adjust the earphone's posture for proper charging and connection.

Benefits of technology

Improves the accuracy of earphone entry detection, ensuring stable functionality and user experience by correctly determining box entry and initiating charging states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086827B_ABST
    Figure CN115086827B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, earphone and storage medium for detecting earphones entering a box, and belongs to the field of earphone technology. The present application obtains the device identification stored in the first electronic tag when a first electronic tag is detected by a near field communication device provided on the first earphone; determines whether the device identification is consistent with a target identification, wherein the target identification is used to mark an earphone box that matches the earphone; and determines that the first earphone has entered the earphone box when the device identification is consistent with the target identification. That is, through the present application, near field communication technology can be used to detect the earphone entering the box, avoiding the problem of being unable to correctly judge whether the earphone is in the box due to abnormal physical contact of the ejector pin, thereby improving the accuracy of the earphone entering the 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 an earphone box entry detection method, device, earphone and storage medium. Background Art

[0002] With the development of wireless communication technology and the improvement of people's living standards, wireless headphones are being used more and more widely. TWS (True Wireless Stereo) Bluetooth headphones are a typical type of wireless headphones. TWS headphones consist of two parts: headphones and headphone boxes. Usually, the headphones need to be disconnected from the mobile device in time after being put into the box, and enter the charging state in time. At present, most of them use physical contact with the ejector pin to realize data communication between the headphones and the headphone box, so as to determine whether the headphones are in the box.

[0003] However, when the physical contact of the ejector pin is abnormal, the earphones and the earphone box cannot communicate normally, resulting in an inability to correctly determine whether the earphones are in the box, which in turn results in an inability to promptly disconnect the connection between the earphones and the mobile device, and an inability to promptly enter the charging state. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, earphone and storage medium for detecting whether an earphone is in a box, so as to solve the problem that when using the physical contact of the ejector pin to determine whether the earphone is in a box, it is impossible to correctly determine whether the earphone is in a box due to abnormal physical contact of the ejector pin. The specific technical solution is as follows:

[0005] In a first aspect, a method for detecting earphone entry into a box is provided, the method comprising:

[0006] When the first electronic tag is detected by using the near field communication device disposed on the first headset, obtaining the device identification stored in the first electronic tag;

[0007] Determining whether the device identifier is consistent with a target identifier, wherein the target identifier is used to mark an earphone box that matches the earphone;

[0008] When the device identifier is consistent with the target identifier, it is determined that the first earphone has entered the earphone box.

[0009] In a possible implementation, the method further includes:

[0010] When the first earphone enters the earphone box, determining whether the first earphone is in a charging state;

[0011] When it is determined that the first earphone is not in a charging state, sending a power confirmation message to the earphone box;

[0012] receiving a power feedback message fed back by the earphone box based on the power confirmation message, and determining the power level of the earphone box based on the power feedback message;

[0013] When the power level is greater than zero, a magnetic suction instruction is sent to the earphone box, so that the earphone box starts a standard magnetic suction function according to the magnetic suction instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0014] In a possible implementation, the method further includes:

[0015] Upon receiving the first adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the first adjustment information after adjusting the physical posture of the first earphone by using a standard magnetic suction function;

[0016] When it is determined that the first earphone is not in a charging state, an enhanced instruction is sent to the earphone box, so that the earphone box starts the enhanced magnetic suction function according to the instruction of the enhanced instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0017] In a possible implementation, the method further includes:

[0018] Upon receiving the second adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the second adjustment information after adjusting the physical posture of the first earphone by using the enhanced magnetic suction function;

[0019] When it is determined that the first earphone is not in a charging state, a first prompt message is sent, wherein the first prompt message is used to prompt the user to adjust a physical posture of the first earphone so that the first earphone is in a charging state.

[0020] In a possible implementation, the method further includes:

[0021] When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication;

[0022] When receiving an entry feedback message fed back by the second earphone based on the entry confirmation message, determining whether the second earphone has entered the earphone box based on the entry feedback message;

[0023] When it is determined that the second earphone has not entered the earphone box, a state switching message is sent to the second earphone, wherein the second earphone switches from the binaural mode to the monaural mode upon receiving the state switching message.

[0024] In a possible implementation, the method further includes:

[0025] When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication;

[0026] Upon receiving a fault feedback message fed back by the second headset based on the box insertion confirmation message, determining that the second headset is in a fault state, wherein the second electronic tag is activated when the second headset is in the fault state;

[0027] When the second electronic tag is detected by using the near field communication device arranged on the first earphone, it is determined that the second earphone has entered the earphone box.

[0028] In a possible implementation, the method further includes:

[0029] When the second electronic tag is detected by the near field communication device arranged on the first earphone, a disconnection instruction is sent to a mobile device connected to the first earphone for communication, so that the mobile device disconnects from the first earphone and the second earphone according to the instruction of the disconnection instruction.

[0030] In a second aspect, a device for detecting earphone insertion into a box is provided, the device comprising:

[0031] an acquisition module, configured to acquire a device identifier stored in the first electronic tag when the first electronic tag is detected by using a near field communication device disposed on the first headset;

[0032] A determination module, used to determine whether the device identification is consistent with a target identification, wherein the target identification is used to mark an earphone box that matches the earphone;

[0033] The determination module is further configured to determine that the first earphone has entered the earphone box when the device identifier is consistent with the target identifier.

[0034] In a possible implementation manner, the device further includes a state determination module, configured to:

[0035] When the first earphone enters the earphone box, determining whether the first earphone is in a charging state;

[0036] When it is determined that the first earphone is not in a charging state, sending a power confirmation message to the earphone box;

[0037] receiving a power feedback message fed back by the earphone box based on the power confirmation message, and determining the power level of the earphone box based on the power feedback message;

[0038] When the power level is greater than zero, a magnetic suction instruction is sent to the earphone box, so that the earphone box starts a standard magnetic suction function according to the magnetic suction instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0039] In a possible implementation manner, the device further includes a first adjustment module, configured to:

[0040] Upon receiving the first adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the first adjustment information after adjusting the physical posture of the first earphone by using a standard magnetic suction function;

[0041] When it is determined that the first earphone is not in a charging state, an enhanced instruction is sent to the earphone box, so that the earphone box starts the enhanced magnetic suction function according to the instruction of the enhanced instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0042] In a possible implementation manner, the device further includes a second adjustment module, configured to:

[0043] Upon receiving the second adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the second adjustment information after adjusting the physical posture of the first earphone by using the enhanced magnetic suction function;

[0044] When it is determined that the first earphone is not in a charging state, a first prompt message is sent, wherein the first prompt message is used to prompt the user to adjust a physical posture of the first earphone so that the first earphone is in a charging state.

[0045] In a possible implementation, the device further includes a state switching module, configured to:

[0046] When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication;

[0047] When receiving an entry feedback message fed back by the second earphone based on the entry confirmation message, determining whether the second earphone has entered the earphone box based on the entry feedback message;

[0048] When it is determined that the second earphone has not entered the earphone box, a state switching message is sent to the second earphone, wherein the second earphone switches from the binaural mode to the monaural mode upon receiving the state switching message.

[0049] In a possible implementation, the device further includes a starting module, which is used to:

[0050] When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication;

[0051] Upon receiving a fault feedback message fed back by the second headset based on the box insertion confirmation message, determining that the second headset is in a fault state, wherein the second electronic tag is activated when the second headset is in the fault state;

[0052] When the second electronic tag is detected by using the near field communication device arranged on the first earphone, it is determined that the second earphone has entered the earphone box.

[0053] In a possible implementation manner, the device further includes a disconnection module, configured to:

[0054] When the second electronic tag is detected by the near field communication device arranged on the first earphone, a disconnection instruction is sent to a mobile device connected to the first earphone for communication, so that the mobile device disconnects from the first earphone and the second earphone according to the instruction of the disconnection instruction.

[0055] In a third aspect, a headset is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0056] Memory, used to store computer programs;

[0057] The processor is used to implement any method step described in the first aspect when executing a program stored in the memory.

[0058] In a fourth aspect, a computer-readable storage medium is provided, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.

[0059] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned earphone entry detection methods.

[0060] Beneficial effects of the embodiments of the present application:

[0061] The embodiments of the present application provide a method, device, earphone and storage medium for detecting earphones entering a box. The present application first obtains the device identification stored in the first electronic tag when a first electronic tag is detected by a near field communication device provided on the first earphone; then, determines whether the device identification is consistent with a target identification, wherein the target identification is used to mark an earphone box that matches the earphone; finally, when the device identification is consistent with the target identification, determines that the first earphone has entered the earphone box. That is, through the present application, near field communication technology can be used to detect the earphone entering a box, avoiding the problem of being unable to correctly judge whether the earphone has entered the box due to abnormal physical contact of the ejector pin. Thereby, the accuracy of the earphone entering the box detection is improved, thereby ensuring that the earphone can stably implement related functions, improving the availability of the earphone, and improving the user experience.

[0062] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0064] Figure 1 A flowchart of a method for detecting earphones entering a box provided in an embodiment of the present application;

[0065] Figure 2 A schematic diagram of an electronic tag setting method and a near field communication device setting method provided in an embodiment of the present application;

[0066] Figure 3 A flowchart of a method for detecting earphones entering a box provided by another embodiment of the present application;

[0067] Figure 4 A flowchart of a method for detecting earphones entering a box provided by another embodiment of the present application;

[0068] Figure 5 A flowchart of a method for detecting earphones entering a box provided by another embodiment of the present application;

[0069] Figure 6 A flowchart of a method for detecting earphones entering a box provided by another embodiment of the present application;

[0070] Figure 7 A flowchart of a method for detecting earphones entering a box provided by another embodiment of the present application;

[0071] Figure 8A schematic diagram of the structure of a headphone box entry detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0073] At present, most of the physical contact of the ejector pin is used to realize data communication between the earphone and the earphone box, so as to determine whether the earphone is in the box. However, when the physical contact of the ejector pin is abnormal, the earphone and the earphone box cannot communicate normally, resulting in an inability to correctly determine whether the earphone is in the box, which in turn results in an inability to disconnect the connection between the earphone and the mobile device in time, and an inability to enter the charging state in time. To this end, an embodiment of the present application provides an earphone in-box detection method, which can be applied to earphones.

[0074] The following will describe in detail a method for detecting earphones entering a box provided by an embodiment of the present application in combination with a specific implementation manner. Figure 1 As shown, the specific steps are as follows:

[0075] S101: When a first electronic tag is detected by using a near field communication device disposed on a first headset, a device identification stored in the first electronic tag is obtained.

[0076] S102: Determine whether the device identifier is consistent with a target identifier, wherein the target identifier is used to mark an earphone box that matches the earphone.

[0077] S103: When the device identifier is consistent with the target identifier, determine that the first earphone has entered the earphone box.

[0078] The method for detecting earphones entering a box provided in the embodiment of the present application can be applied to any earphone in a wireless earphone (such as a TWS (True Wireless Stereo) Bluetooth earphone). Figure 2As shown, an NFC (Near Field Communication) device is pre-set on the headset, and a first electronic tag, namely an RFID (Radio Frequency Identification) tag, is set in the headset box paired with the headset. The first headset and the first electronic tag both store a target identifier for uniquely identifying the headset box. Then, the headset entry detection is performed based on the near field communication device set in the headset and the first electronic tag set in the headset box.

[0079] Specifically, when the first electronic tag is detected by using the near-field communication device set on the first earphone, the device identification stored in the first electronic tag is obtained, and it is determined whether the device identification is consistent with the target identification pre-stored in the first earphone. When the device identification is consistent with the target identification, it means that the near-field communication device detects the first electronic tag on the earphone box paired with the first earphone. Therefore, it is determined that the first earphone has entered the earphone box.

[0080] In an embodiment of the present application, first, when a first electronic tag is detected by a near field communication device provided on a first earphone, the device identification stored in the first electronic tag is obtained; then, it is determined whether the device identification is consistent with a target identification, wherein the target identification is used to mark an earphone box that matches the earphone; finally, when the device identification is consistent with the target identification, it is determined that the first earphone has entered the earphone box. That is, through the present application, near field communication technology can be used to detect whether the earphone has entered the box, thereby avoiding the problem of being unable to correctly judge whether the earphone has entered the box due to abnormal physical contact of the ejector pin. This improves the accuracy of the earphone entry detection, thereby ensuring that the earphone can stably implement related functions, improving the usability of the earphone, and improving the user experience.

[0081] In another embodiment of the present application, when the device identifier is inconsistent with the target identifier, a second prompt message is sent, wherein the second prompt message is used to prompt that the first earphone is abnormally inserted into the box.

[0082] In the embodiment of the present application, when the device identifier is inconsistent with the target identifier, it means that the first earphone has not entered the matching earphone box. At this time, a second prompt message can be sent to the mobile device corresponding to the first earphone to prompt the user that the first earphone is abnormally inserted into the box. Preferably, the second prompt message can also carry the location of the first earphone, so that the user can find the first earphone easily. This has an anti-theft effect and improves the user experience.

[0083] In another embodiment of the present application, the near field communication device provided in the first headset can be used as a tag, in which identity verification information or payment information can be stored, and used in scenarios such as mobile identity recognition and mobile payment, for example, as a bus card, access control or car key, etc., thereby increasing the usage scenarios of the headset and improving the usability of the headset.

[0084] In another embodiment of the present application, when the first earphone enters the earphone box, the communication connection between the first earphone and the mobile device is disconnected, thereby automatically disconnecting the communication connection with the mobile device after the earphone enters the box, thereby improving the intelligence of device use.

[0085] In another embodiment of the present application, when the first earphone enters the earphone box, the state of the first earphone is switched to a low power consumption state, so as to reduce the power consumption of the earphone when the first earphone is not working.

[0086] In another embodiment of the present application, Figure 3 As shown, the method may further include the following steps:

[0087] S201, when the first earphone enters the earphone box, determining whether the first earphone is in a charging state;

[0088] S202: if it is determined that the first earphone is not in a charging state, sending a power confirmation message to the earphone box;

[0089] S203, receiving a power feedback message fed back by the earphone box based on the power confirmation message, and determining the power level of the earphone box based on the power feedback message;

[0090] S204, when the power level is greater than zero, sending a magnetic suction instruction to the earphone box, so that the earphone box starts a standard magnetic suction function according to the magnetic suction instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0091] In the embodiment of the present application, when it is determined that the first earphone has entered the earphone box, it can be determined whether the first earphone is in a charging state according to the charging state of the first earphone. When it is determined that the first earphone is not in a charging state, the first earphone can communicate with the earphone box through its own near field communication device and the first electronic tag set in the earphone box, and send a power confirmation message to the earphone box to determine the power state of the earphone box. After receiving the power confirmation message, the earphone box can feed back a power feedback message to the first earphone based on its own power state. Therefore, the first earphone can determine the power state of the earphone box based on the power feedback message.

[0092] When the power of the earphone box is equal to zero, it means that the earphone box cannot be charged because the power is exhausted. When the power of the earphone box is greater than zero, it means that the power of the earphone box is not exhausted and the earphone can be charged. Therefore, the reason why the first earphone is not in the charging state at this time is generally that the charging contact of the first earphone and the earphone box is abnormal.

[0093] At this time, a magnetic suction command can be sent to the earphone box. After receiving the magnetic suction command, the earphone box starts the standard magnetic suction function according to the instructions. The magnetic suction operation is performed according to the standard magnetic suction force through the magnetic suction device set near the charging contacts, thereby adjusting the physical posture of the first earphone and putting the first earphone in a charging state.

[0094] In an embodiment of the present application, when the first earphone is not charged after being placed in the box, the reason for not charging can be determined based on the power level of the earphone box. If the reason is that the charging contacts of the first earphone and the earphone box are in abnormal contact, a magnetic suction command can be sent to the earphone box, so that the earphone box starts the standard magnetic suction function according to the instructions of the magnetic suction command and adjusts the physical posture of the first earphone, thereby ensuring that the first earphone can be charged in time.

[0095] In another embodiment of the present application, Figure 4 As shown, the method may further include the following steps:

[0096] S301, upon receiving first adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the first adjustment information after adjusting the physical posture of the first earphone by using a standard magnetic suction function;

[0097] S302, when it is determined that the first earphone is not in a charging state, sending an enhanced instruction to the earphone box, so that the earphone box starts the enhanced magnetic suction function according to the instruction of the enhanced instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0098] In the embodiment of the present application, the earphone box can feedback the first adjustment information to the first earphone after adjustment using the standard magnetic attraction function. After receiving the first adjustment information, the first earphone can re-detect whether it is in the charging state. If it is still not in the charging state, it can send an enhanced instruction to the earphone box again, instructing the earphone box to increase the magnetic attraction force on the basis of the standard magnetic attraction force through the magnetic attraction device according to the enhanced instruction to perform a magnetic attraction operation, and adjust the physical state of the first earphone again. This improves the adjustment success rate.

[0099] In another embodiment of the present application, Figure 5 As shown, the method may further include the following steps:

[0100] S401, upon receiving second adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the second adjustment information after adjusting the physical posture of the first earphone by using the enhanced magnetic suction function;

[0101] S402: When it is determined that the first earphone is not in a charging state, send a first prompt message, wherein the first prompt message is used to prompt the user to adjust the physical posture of the first earphone so that the first earphone is in a charging state.

[0102] In the embodiment of the present application, the earphone box can feedback the second adjustment information to the first earphone after adjustment by using the enhanced magnetic attraction function. After receiving the second adjustment information, the first earphone can detect again whether it is in the charging state. If it is still not in the charging state, a first prompt message can be sent to prompt the user to manually adjust the physical posture of the first earphone. The first prompt message can be in the form of text or sound.

[0103] In an embodiment of the present application, after the adjustment using the magnetic suction function of the charging box fails, a first prompt message can be sent to prompt the user to correct the physical posture of the first earphone, thereby ensuring that the first earphone can be charged in time.

[0104] In another embodiment of the present application, Figure 6 As shown, the method may further include the following steps:

[0105] S501, starting timing when the first earphone enters the earphone box, and sending an entry confirmation message to the second earphone communicatively connected to the first earphone when the timing reaches a preset time;

[0106] S502: upon receiving an entry feedback message fed back by the second earphone based on the entry confirmation message, determining whether the second earphone has entered the earphone box based on the entry feedback message;

[0107] S503: When it is determined that the second earphone has not entered the earphone box, send a state switching message to the second earphone, wherein the second earphone switches from the binaural mode to the monaural mode upon receiving the state switching message.

[0108] In the embodiment of the present application, the second earphone is another earphone paired with the first earphone, and the second earphone is in communication connection with the first earphone. The second earphone is also provided with a near field communication device, and can detect the first electronic tag through its own near field communication device to determine whether it has entered the earphone box.

[0109] In the application, when it is determined that the first earphone has entered the earphone box, a timer can be triggered to start timing. When the timing reaches a preset time, the first earphone sends an entry confirmation message to the second earphone to confirm whether the second earphone has also entered the earphone box. After receiving the entry confirmation message, the second earphone can feedback an entry feedback message to the first earphone according to its own entry status. Therefore, the first earphone can determine whether the second earphone has entered the earphone box according to the received entry feedback message. If it is determined that the second earphone has not entered the earphone box, it means that the second earphone is still working. Therefore, the first earphone can send a status switching message to the second earphone to instruct the second earphone to switch from the original binaural mode to the monaural mode and continue to work.

[0110] In an embodiment of the present application, when the first earphone has entered the earphone box and the second earphone paired with it has not entered the earphone box, the first earphone can notify the second earphone to switch the state to single-ear mode to continue working, thereby ensuring the working effect of the earphone and improving the user experience.

[0111] In another embodiment of the present application, Figure 7 As shown, the method may further include the following steps:

[0112] S601, starting timing when the first earphone enters the earphone box, and when the timing reaches a preset time, sending an entry confirmation message to the second earphone communicatively connected to the first earphone.

[0113] S602: upon receiving a fault feedback message fed back by the second headset based on the box insertion confirmation message, determining that the second headset is in a fault state, wherein a second electronic tag is activated when the second headset is in the fault state.

[0114] S603: When the second electronic tag is detected by using the near field communication device disposed on the first earphone, it is determined that the second earphone has entered the earphone box.

[0115] In the embodiment of the present application, the second earphone is in a faulty state when the near-field communication device provided by itself cannot detect whether the earphone box is entered. At this time, the second earphone can activate the second electronic tag provided by itself. As an implementation method, a second electronic tag can be separately provided on the earphone in advance. As another implementation method, the near-field communication device of the second earphone can be switched from an active mode to a passive mode, so that the near-field communication device is used as a second electronic tag.

[0116] Specifically, when a fault feedback message based on the box entry confirmation message of the second earphone is received, it means that the second earphone is in a fault state. At this time, the second electronic tag is detected by the near field communication device arranged on the first earphone, and when the second electronic tag is detected, it is determined that the second earphone has entered the earphone box. In this way, when the faulty earphone cannot independently determine whether it has entered the box, the earphone that has entered the box can be used for detection to determine whether the faulty earphone has entered the box.

[0117] In another embodiment of the present application, the method may further include the following steps:

[0118] When the second electronic tag is detected by the near field communication device arranged on the first earphone, a disconnection instruction is sent to a mobile device connected to the first earphone for communication, so that the mobile device disconnects from the first earphone and the second earphone according to the instruction of the disconnection instruction.

[0119] Since the second earphone cannot independently determine whether it is in the box, it cannot disconnect from the mobile device in time. Therefore, in the embodiment of the present application, when the second electronic tag is detected by the near field communication device set on the first earphone, it means that the second earphone has been determined to be in the box by the first earphone. At this time, a disconnection instruction can be sent to the mobile device connected to the first earphone for communication. After the mobile device receives the disconnection instruction, it can disconnect from the first earphone and the second earphone according to the instruction. In this way, after the two earphones are in the box, the mobile device can disconnect from the two earphones in time.

[0120] In another embodiment of the present application, the method may further include the following steps:

[0121] Detect whether the first earphone is out of the ear; if it is detected that the first earphone is out of the ear, detect the first electronic tag using a near field communication device arranged on the first earphone.

[0122] In the embodiment of the present application, a sensor may be provided in the first earphone, and when the sensor detects that the current feature does not match the feature of the auricle, it is determined that the first earphone is out of the ear, and at this time, the first electronic tag is detected by the near field communication device provided on the first earphone. That is, when the first earphone is not out of the ear, the first electronic tag may not be detected, thereby reducing resource waste.

[0123] Based on the same technical concept, the embodiment of the present application also provides a headphone box detection device, such as Figure 8 As shown, the device comprises:

[0124] An acquisition module 701 is configured to acquire a device identifier stored in the first electronic tag when the first electronic tag is detected by using a near field communication device disposed on the first headset;

[0125] A determination module 702 is used to determine whether the device identifier is consistent with a target identifier, wherein the target identifier is used to mark an earphone box that matches the earphone;

[0126] The determination module 702 is further configured to determine that the first earphone has entered the earphone box when the device identifier is consistent with the target identifier.

[0127] In a possible implementation manner, the device further includes a state determination module, configured to:

[0128] When the first earphone enters the earphone box, determining whether the first earphone is in a charging state;

[0129] When it is determined that the first earphone is not in a charging state, sending a power confirmation message to the earphone box;

[0130] receiving a power feedback message fed back by the earphone box based on the power confirmation message, and determining the power level of the earphone box based on the power feedback message;

[0131] When the power level is greater than zero, a magnetic suction instruction is sent to the earphone box, so that the earphone box starts a standard magnetic suction function according to the magnetic suction instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0132] In a possible implementation manner, the device further includes a first adjustment module, configured to:

[0133] Upon receiving the first adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the first adjustment information after adjusting the physical posture of the first earphone by using a standard magnetic suction function;

[0134] When it is determined that the first earphone is not in a charging state, an enhanced instruction is sent to the earphone box, so that the earphone box starts the enhanced magnetic suction function according to the instruction of the enhanced instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

[0135] In a possible implementation manner, the device further includes a second adjustment module, configured to:

[0136] Upon receiving the second adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the second adjustment information after adjusting the physical posture of the first earphone by using the enhanced magnetic suction function;

[0137] When it is determined that the first earphone is not in a charging state, a first prompt message is sent, wherein the first prompt message is used to prompt the user to adjust a physical posture of the first earphone so that the first earphone is in a charging state.

[0138] In a possible implementation, the device further includes a state switching module, configured to:

[0139] When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication;

[0140] When receiving an entry feedback message fed back by the second earphone based on the entry confirmation message, determining whether the second earphone has entered the earphone box based on the entry feedback message;

[0141] When it is determined that the second earphone has not entered the earphone box, a state switching message is sent to the second earphone, wherein the second earphone switches from the binaural mode to the monaural mode upon receiving the state switching message.

[0142] In a possible implementation, the device further includes a starting module, which is used to:

[0143] When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication;

[0144] Upon receiving a fault feedback message fed back by the second headset based on the box insertion confirmation message, determining that the second headset is in a fault state, wherein the second electronic tag is activated when the second headset is in the fault state;

[0145] When the second electronic tag is detected by using the near field communication device arranged on the first earphone, it is determined that the second earphone has entered the earphone box.

[0146] In a possible implementation manner, the device further includes a disconnection module, configured to:

[0147] When the second electronic tag is detected by the near field communication device arranged on the first earphone, a disconnection instruction is sent to a mobile device connected to the first earphone for communication, so that the mobile device disconnects from the first earphone and the second earphone according to the instruction of the disconnection instruction.

[0148] In an embodiment of the present application, first, when a first electronic tag is detected by a near field communication device provided on a first earphone, the device identification stored in the first electronic tag is obtained; then, it is determined whether the device identification is consistent with a target identification, wherein the target identification is used to mark an earphone box that matches the earphone; finally, when the device identification is consistent with the target identification, it is determined that the first earphone has entered the earphone box. That is, through the present application, near field communication technology can be used to detect whether the earphone has entered the box, thereby avoiding the problem of being unable to correctly judge whether the earphone has entered the box due to abnormal physical contact of the ejector pin. This improves the accuracy of the earphone entry detection, thereby ensuring that the earphone can stably implement related functions, improving the usability of the earphone, and improving the user experience.

[0149] Based on the same technical concept, an embodiment of the present application further provides a headset, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus.

[0150] Memory, used to store computer programs;

[0151] The processor is used to execute the program stored in the memory, and implements the following steps:

[0152] When the first electronic tag is detected by using the near field communication device disposed on the first headset, obtaining the device identification stored in the first electronic tag;

[0153] Determining whether the device identifier is consistent with a target identifier, wherein the target identifier is used to mark an earphone box that matches the earphone;

[0154] When the device identifier is consistent with the target identifier, it is determined that the first earphone has entered the earphone box.

[0155] The communication bus mentioned in the above headset can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0156] The communication interface is used for communication between the above-mentioned headset and other devices.

[0157] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0158] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0159] In another embodiment provided in the present application, a computer-readable storage medium is further provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any of the above-mentioned earphone in-box detection methods are implemented.

[0160] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the earphone in-box detection methods in the above embodiments.

[0161] In the above embodiments, it can 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 program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may 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 may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0162] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0163] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for detecting earphones entering a box, characterized in that: The method comprises: When the first electronic tag is detected by using the near field communication device disposed on the first headset, obtaining the device identification stored in the first electronic tag; Determining whether the device identifier is consistent with a target identifier, wherein the target identifier is used to mark an earphone box that matches the earphone; When the device identifier is consistent with the target identifier, determining that the first earphone has entered the earphone box; When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication; Upon receiving a fault feedback message fed back by the second headset based on the box insertion confirmation message, determining that the second headset is in a fault state, wherein the second electronic tag is activated when the second headset is in the fault state; When the second electronic tag is detected by using the near field communication device arranged on the first earphone, it is determined that the second earphone has entered the earphone box.

2. The method according to claim 1, characterized in that The method further comprises: When the first earphone enters the earphone box, determining whether the first earphone is in a charging state; When it is determined that the first earphone is not in a charging state, sending a power confirmation message to the earphone box; receiving a power feedback message fed back by the earphone box based on the power confirmation message, and determining the power level of the earphone box based on the power feedback message; When the power level is greater than zero, a magnetic suction instruction is sent to the earphone box, so that the earphone box starts a standard magnetic suction function according to the magnetic suction instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

3. The method according to claim 2, characterized in that The method further comprises: Upon receiving the first adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the first adjustment information after adjusting the physical posture of the first earphone by using a standard magnetic suction function; When it is determined that the first earphone is not in a charging state, an enhanced instruction is sent to the earphone box, so that the earphone box starts the enhanced magnetic suction function according to the instruction of the enhanced instruction, adjusts the physical posture of the first earphone, and puts the first earphone in a charging state.

4. The method according to claim 3, characterized in that The method further comprises: Upon receiving the second adjustment information fed back by the earphone box, re-determining whether the first earphone is in a charging state, wherein the earphone box feeds back the second adjustment information after adjusting the physical posture of the first earphone by using the enhanced magnetic suction function; When it is determined that the first earphone is not in a charging state, a first prompt message is sent, wherein the first prompt message is used to prompt the user to adjust a physical posture of the first earphone so that the first earphone is in a charging state.

5. The method according to claim 1, characterized in that The method further comprises: When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication; When receiving an entry feedback message fed back by the second earphone based on the entry confirmation message, determining whether the second earphone has entered the earphone box based on the entry feedback message; When it is determined that the second earphone has not entered the earphone box, a state switching message is sent to the second earphone, wherein the second earphone switches from the binaural mode to the monaural mode upon receiving the state switching message.

6. The method according to claim 1, characterized in that The method further comprises: When the second electronic tag is detected by the near field communication device arranged on the first earphone, a disconnection instruction is sent to a mobile device connected to the first earphone for communication, so that the mobile device disconnects from the first earphone and the second earphone according to the instruction of the disconnection instruction.

7. A device for detecting earphones entering a box, characterized in that: The device comprises: an acquisition module, configured to acquire a device identifier stored in the first electronic tag when the first electronic tag is detected by using a near field communication device disposed on the first headset; A determination module, used to determine whether the device identification is consistent with a target identification, wherein the target identification is used to mark an earphone box that matches the earphone; The determining module is further configured to determine that the first earphone has entered the earphone box when the device identifier is consistent with the target identifier; When the first earphone enters the earphone box, timing starts, and when the timing reaches a preset time, a box entry confirmation message is sent to the second earphone connected to the first earphone for communication; Upon receiving a fault feedback message fed back by the second headset based on the box insertion confirmation message, determining that the second headset is in a fault state, wherein the second electronic tag is activated when the second headset is in the fault state; When the second electronic tag is detected by using the near field communication device arranged on the first earphone, it is determined that the second earphone has entered the earphone box.

8. A headset, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.