Headphone detection circuit, method, headphone device and storage medium

By designing a headphone detection circuit in the headphone box and using the first chip and the connection unit to detect the level of the electroacoustic device, the problem of difficulty in detecting the connection of the electroacoustic device in the headphone is solved, and accurate detection and fault reminder of the headphone device are achieved. Ensure the safe use and reliability of headset devices during sharing.

CN114222235BActive Publication Date: 2024-10-29SHENZHEN HANFENG ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210060368.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2024-10-29
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

The existing technology is difficult to accurately detect the connection status of the electroacoustic components in the earphones. Especially during the sharing process of the earphones, it is difficult to detect and handle faults in a timely manner, which affects the safe use and sharing process of the equipment.

Method used

Design a headphone detection circuit, which includes a first chip and multiple connection units. By detecting whether the level is within a preset level range, it determines whether the electroacoustic device is connected normally, and generates corresponding prompt information to realize the headphone box's detection of the headphone power. Accurate detection of acoustic components.

Benefits of technology

The headphone box detects the normal connection status of the electro-acoustic components of the headphone, providing a simple and flexible detection method to ensure the safe use of the headphone device and the reliability of fault detection during sharing, and enhances the reliability of box entry and return detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222235B_ABST
    Figure CN114222235B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an earphone detection method, device, earphone device and storage medium, the circuit is applied to an earphone box in the earphone device; the earphone device also includes a first earphone and a second earphone; the earphone detection circuit includes a first chip and a plurality of first connection units, one end of each first connection unit is connected to the first chip; the first connection unit is used to connect to the electroacoustic device on the first earphone or the second earphone when the first earphone or the second earphone is placed in the earphone box; the first chip is used to detect whether the level corresponding to each first connection unit is in a preset level range, and determine whether each first connection unit is normally connected to the electroacoustic device on the first earphone or the second earphone according to the detection result. By implementing the embodiment of the present application, it is possible to accurately detect whether each electroacoustic device in the earphone is connected normally through the earphone box, and the detection method is simple and flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, specifically to an earphone detection circuit, method, earphone device, and storage medium. Background Technology

[0002] As IoT technology matures, users are able to experience more and more electronic products. However, smaller electronic products, such as headphones, are prone to malfunction or damage to some electroacoustic components during repeated use, and current technologies make it difficult to detect the condition of these components. Summary of the Invention

[0003] This application discloses a headphone detection circuit, method, headphone device, and storage medium, which can detect whether the electroacoustic components in the headphone are properly connected through the headphone case, and the detection method is simple and flexible.

[0004] The first aspect of this application discloses an earphone detection circuit applied to an earphone case in an earphone device; the earphone device further includes a first earphone and a second earphone; the earphone detection circuit includes a first chip and a plurality of first connection units, one end of each first connection unit being connected to the first chip;

[0005] The first connection unit is used to connect to the electroacoustic device on the first earphone or the second earphone when the first earphone or the second earphone is placed in the earphone case;

[0006] The first chip is used to detect whether the level corresponding to each of the first connection units is within a preset level range, and to determine whether each of the first connection units is normally connected to the electroacoustic device on the first or second earphone based on the detection result.

[0007] As an optional implementation, in a first aspect of this embodiment, the first chip is further configured to, when detecting that the level corresponding to any of the first connection units is not within the preset level range, determine that the electroacoustic device connected to the first connection unit whose level is not within the preset level range has malfunctioned, and generate a first prompt message; the first prompt message is used to indicate that the electroacoustic device connected to the first connection unit whose level is not within the preset level range has malfunctioned.

[0008] As an optional implementation, in a first aspect of this embodiment, the first chip is further configured to, when detecting that the level corresponding to any of the first connection units is in the preset level range, determine that the first or second earphone, where the electroacoustic device connected to the first connection unit with the level in the preset level range is located, has been placed in the earphone case, and generate a second prompt message; the second prompt message is used to indicate that the first or second earphone, where the electroacoustic device connected to the first connection unit with the level in the preset level range is located, has been placed in the earphone case.

[0009] As an optional implementation, in a first aspect of this embodiment, the detection circuit further includes a plurality of first resistors; each of the first connection units is connected to a first pin of the first chip through a first resistor; each of the first connection units is also connected to a second pin of the first chip;

[0010] The first chip is also used to detect whether the level of the second pin connected to each of the first connection units is within a preset level range, and to determine whether each of the first connection units is normally connected to the electroacoustic device on the first or second earphone based on the detection result.

[0011] As an optional implementation, in a first aspect of this embodiment, the preset level range corresponding to each of the first connection units is determined based on the first resistor connected and the resistance value of the electroacoustic device.

[0012] A second aspect of this application discloses a headphone detection method applied to a headphone case in a headphone device, the headphone device further including a first headphone and a second headphone, and the headphone case including a plurality of first connection units; the method includes:

[0013] The level of each of the first connection units is detected, and it is determined whether the level corresponding to each of the first connection units is within a preset level range to obtain the detection result; wherein, the first connection unit is used to connect with the electroacoustic device on the first earphone or the second earphone when the first earphone or the second earphone is placed in the earphone case;

[0014] Based on the test results, it is determined whether each of the first connection units is normally connected to the electroacoustic devices on the first or second earphone.

[0015] As an optional implementation, in a second aspect of this embodiment, determining whether each of the first connection units is normally connected to the electroacoustic device on the first or second earphone based on the detection result includes:

[0016] If the level corresponding to any of the first connection units is not within the preset level range, it is determined that the electroacoustic device connected to the first connection unit whose level is not within the preset level range has malfunctioned, and a first prompt message is generated.

[0017] As an optional implementation, in the second aspect of this embodiment, the step of detecting the level of each of the first connection units and determining whether the level corresponding to each of the first connection units is within a preset level range to obtain a detection result includes:

[0018] Receive the earphone return instruction sent by the mobile terminal;

[0019] In response to the headphone return command, the level of each of the first connection units is detected, and it is determined whether the level corresponding to each of the first connection units is within a preset level range, and the detection result is obtained.

[0020] The step of determining whether each of the first connection units is normally connected to the electroacoustic devices on the first or second earphone based on the detection results includes:

[0021] If all the first connection units are within the preset level range, it is determined that the headphone device is not faulty, a returnable instruction is generated, and the returnable instruction is sent to the mobile terminal so that the mobile terminal controls the shelf to open the return entrance and calculates the fee information based on the usage data of the headphone device.

[0022] A third aspect of this application provides an earphone device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor implements any of the earphone detection methods disclosed in this application.

[0023] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements any of the headphone detection methods disclosed in this application.

[0024] Compared with related technologies, the embodiments of this application have the following beneficial effects:

[0025] In this embodiment, each first connection unit in the headphone detection circuit is connected to a first chip. When the first or second headphone is placed in the headphone case, the first connection unit is connected to the electroacoustic device on the first or second headphone. The first chip in the headphone detection circuit detects the level of each connection unit and determines whether each first connection unit is normally connected to the electroacoustic device on the first or second headphone based on whether each level is within a preset level range. This allows for accurate detection of whether the electroacoustic devices in the headphone are properly connected through the headphone case, and the detection method is simple and flexible. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram illustrating an application scenario of an earphone detection circuit disclosed in an embodiment of this application;

[0028] Figure 2 This is a schematic diagram of the module structure of an earphone detection circuit disclosed in an embodiment of this application;

[0029] Figure 3 This is a schematic diagram of the structure of an earphone detection circuit in an earphone device, as disclosed in one embodiment.

[0030] Figure 4 This is a schematic diagram of the equivalent circuit structure of an earphone detection circuit disclosed in one embodiment;

[0031] Figure 5 This is a flowchart of an earphone detection method disclosed in an embodiment of this application;

[0032] Figure 6 This is a flowchart of another headphone detection method disclosed in the embodiments of this application;

[0033] Figure 7 This is a schematic diagram of the structure of an earphone detection device disclosed in an embodiment of this application;

[0034] Figure 8 This is a schematic diagram of the structure of an earphone device disclosed in one embodiment. Detailed Implementation

[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0036] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0037] This application discloses a headphone detection circuit, method, headphone device, and storage medium, which can accurately detect whether the various electroacoustic components in the headphone are properly connected through the headphone case, and the detection method is simple and flexible. Detailed descriptions follow.

[0038] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of an earphone detection circuit disclosed in an embodiment of this application. For example... Figure 1 As shown, the device may include an earphone device 10 and a mobile terminal 20. The earphone device 10 can transmit data or messages to the mobile terminal 20 via wired or wireless means. The earphone device 10 includes an earphone case 110, a first earphone 120, and a second earphone 130. An earphone detection circuit is provided inside the earphone case 110. When the earphone device 10 is in use, the first earphone 120 and the second earphone 130 can be removed from the earphone case 110. When the earphone device 10 is not in use, the first earphone 120 and the second earphone 130 can be placed back into the earphone case 110. Each of the first earphone 120 and the second earphone 130 includes at least one electroacoustic device 230, which can be a speaker or a microphone, etc.

[0039] Please see Figure 2 , Figure 2 This is a schematic diagram of the module structure of an earphone detection circuit disclosed in an embodiment of this application. This circuit can be applied to... Figure 1 The headphone case 110 of the headphone device 10. For example... Figure 2 As shown, the headphone detection circuit includes a first chip 210 and a plurality of first connection units 220, one end of each first connection unit 220 being connected to the first chip 210.

[0040] The first connection unit 220 is used to connect to the electroacoustic device 230 on the first earphone 120 or the second earphone 130 when the first earphone 120 or the second earphone 130 is placed in the earphone case 110.

[0041] The first chip 210 is used to detect whether the level corresponding to each first connection unit 220 is within a preset level range, and to determine whether each first connection unit 220 is normally connected to the electroacoustic device 230 on the first earphone 120 or the second earphone 130 based on the detection result.

[0042] In this embodiment of the application, each of the first connection units 220 in the headphone detection circuit has a one-to-one correspondence with the electroacoustic device 230 on the first headphone 120 or the second headphone 130. That is, when the first headphone 120 or the second headphone 130 is placed in the headphone case 110, the other end of the first connection unit 220 is connected to one of the electroacoustic devices 230 in the first headphone 120 or to one of the electroacoustic devices 230 in the second headphone 130.

[0043] In this embodiment, the first chip 210 detects the voltage levels of each first connection unit 220 and compares the detected voltage levels with a preset voltage level range to determine whether the voltage level falls within the preset voltage level range. The preset voltage level ranges compared for each first connection unit 220 are not necessarily the same. For example, one first connection unit 220 may have a voltage level of 5V, and the preset voltage level range compared for this level is [0V, 4V]. Another first connection unit 220 may have a voltage level of 3V, and the preset voltage level range compared for this level is [6V, 10V].

[0044] If the electrical levels of each first connection unit 220 are within a preset level range, then it can be determined that each first connection unit 220 is normally connected to the electroacoustic device 230 in the first earphone 120 or the second earphone 130.

[0045] Using the above embodiments, it is possible to detect whether the electroacoustic components in the earphones are properly connected through the earphone case, and the detection method is simple and flexible.

[0046] In one embodiment, the first chip 210 is further configured to, when detecting that the level corresponding to any first connection unit 220 is not within a preset level range, determine that the electroacoustic device 230 connected to the first connection unit 220 whose level is not within the preset level range has malfunctioned, and generate a first prompt message. The first prompt message is used to indicate that the electroacoustic device 230 connected to the first connection unit 220 whose level is not within the preset level range has malfunctioned.

[0047] In this embodiment, if the first chip 210 detects that the level corresponding to one or more first connection units 220 is not within a preset level range, it can be considered that the level outside the preset level range is abnormal. At this time, the first chip 210 can determine that one or more electroacoustic devices 230 have malfunctioned based on the first connection unit 220 corresponding to the abnormal level. For example, the detection circuit may include four first connection units 220, namely first connection unit A, first connection unit B, first connection unit C, and first connection unit D. When the first earphone 120 and the second earphone 130 are placed in the earphone case 110, the first connection units A, B, C, and D are respectively connected to the speaker of the first earphone 120, the microphone of the first earphone 120, the speaker of the second earphone 130, and the microphone of the second earphone 130. If the first chip 210 detects that the voltage levels corresponding to the first connection unit A and the first connection unit D are not within the preset voltage range, it can be determined that the speaker of the first earphone 120 connected to the first connection unit A and the microphone of the second earphone 130 connected to the first connection unit D have malfunctioned. At this time, the first chip 210 can generate a first prompt message, indicating that the speaker of the first earphone 120 and the microphone of the second earphone 130 have malfunctioned, or that an abnormal connection has occurred between the speaker of the first earphone 120 and the first connection unit A, and between the microphone of the second earphone 130 and the first connection unit D. The first prompt message indicates the faulty electroacoustic device 230 in the headphone device 10.

[0048] In this embodiment, by detecting the level corresponding to the first connection unit 220, and determining that the electroacoustic device 230 connected to the first connection unit 220 is faulty based on the level that is not in the preset level range, a first prompt message is generated to prompt the user. This can accurately determine whether the electroacoustic device 230 in the headphone device 10 is damaged and remind the user, ensuring the safe and normal use of the headphone device 10.

[0049] In one embodiment, the first chip 210 is further configured to, when detecting that the level corresponding to any first connection unit 220 is within a preset level range, determine that the first earphone 120 or the second earphone 130 connected to the electroacoustic device 230 of the first connection unit 220 with a level within the preset level range has been placed in the earphone case 110, and generate a second prompt message. The second prompt message is used to indicate that the first earphone 120 or the second earphone 130 connected to the electroacoustic device 230 of the first connection unit 220 with a level within the preset level range has been placed in the earphone case 110.

[0050] In this embodiment, if the first chip 210 detects that the level corresponding to any one of the first connection units 220 is within a preset level range, it can be considered that the first connection unit 220 corresponding to the level within the preset level range has been successfully connected to the electroacoustic device 230 on the connected first earphone 120 or second earphone 130. At this time, the first chip 210 can determine the first earphone 120 or second earphone 130 to which the connected electroacoustic device 230 belongs based on the first connection unit 220 corresponding to the normal level, thereby determining that the first earphone 120 or the second earphone 130 has been placed in the earphone case 110. For example, the detection circuit may include four first connection units 220, namely first connection unit A, first connection unit B, first connection unit C, and first connection unit D. First connection units A, B, C, and D should be connected to the speaker of the first earphone 120, the microphone of the first earphone 120, the speaker of the second earphone 130, and the microphone of the second earphone 130, respectively. If the first chip 210 only detects that the level corresponding to the first connection unit A is within the preset level range, then it can be determined that the first connection unit A is normally connected to the speaker of the first earphone 120. At this time, the first chip 210 can determine that the first earphone 120 has been placed in the earphone case 110. If the first earphone 120 is not placed in the earphone case 110, then the first connection unit A cannot be normally connected to the speaker of the first earphone 120 to make the level within the preset level range. Since the levels corresponding to the first connection units C and D to which the speaker and microphone of the second earphone 130 are connected are not within the preset level range, the first chip 210 can determine that the second earphone 130 is not placed in the earphone case 110. The first chip 210 can generate a second prompt message, which indicates that the speaker of the first earphone 120 has been placed in the earphone case 110, or indicates that the second earphone 130 has not been placed in the earphone case 110. The second prompt message indicates whether the first earphone 120 or the second earphone 130 has been placed in the earphone case 110.

[0051] In this embodiment, by detecting the level corresponding to the first connection unit 220, and based on the level within a preset level range, it is determined that the first earphone 120 or the second earphone 130 to which the electroacoustic device 230 connected to the first connection unit 220 belongs has been placed in the earphone case 110, and a second prompt message is generated to indicate this. This can accurately determine the placement status of the first earphone 120 and the second earphone 130, enhancing the reliability of placement detection.

[0052] In one embodiment, see Figure 3 , Figure 3 This is a schematic diagram of the structure of an earphone detection circuit in an earphone device 10, as disclosed in one embodiment. Figure 3 In the headphone device 10, there are headphone case 110, first earphone 120, and second earphone 130. Headphone case 110 includes a first chip 210, multiple first connection units 220, and multiple first resistors 301. One end of each first connection unit 220 is connected to a first pin and a second pin of the first chip 210, respectively. A first resistor 301 is also provided in the connection line between one end of each first connection unit 220 and the first pin of the first chip 210, meaning that one end of each first connection unit 220 is connected to the first pin of the first chip 210 through a first resistor 301. There is a one-to-one correspondence between the first connection unit 220 and the first resistor 301; that is, one connection unit is connected to the first pin of the first chip 210 through one first resistor 301. Headphone case 110 also includes a ground terminal 302 and a ground connection unit 303, with one end of the ground connection unit connected to the ground terminal.

[0053] exist Figure 3 In the headphone device 10, the first earphone 120 includes a first earphone chip 304, a first earphone speaker 305, and a first earphone microphone 306. The first earphone speaker 305 and the first earphone microphone 306 are both electroacoustic devices 230 in the first earphone 120. The first earphone speaker 305 and the first earphone microphone 306 correspond one-to-one with the first connection unit 220. That is, when the first earphone 120 is placed in the earphone case 110, one end of the first earphone speaker 305 and the first earphone microphone 306 is connected to the first earphone chip 304 and also to the other end of one of the first connection units 220. When the first earphone 120 is placed in the earphone case 110, the other end of the first earphone speaker 305 and the first earphone microphone 306 is connected to the grounding connection unit in the earphone case 110. The first earphone chip 304 and the second earphone chip 307 are connected to the headphone device 10 and the mobile terminal 20 via Bluetooth to receive data sent by the headphone device 10 and / or the mobile terminal 20.

[0054] Similarly, the second earphone 130 in the headphone device 10 includes a second earphone chip 307, a second earphone speaker 308, and a second earphone microphone 309. Both the second earphone speaker 308 and the second earphone microphone 309 are electroacoustic devices 230 within the second earphone 130. The second earphone speaker 308 and the second earphone microphone 309 correspond one-to-one with the first connection unit 220. That is, when the second earphone 130 is placed in the earphone case 110, one end of the second earphone speaker 308 and the second earphone microphone 309 is connected to the second earphone chip 307 and also to the other end of one of the first connection units 220. When the second earphone 130 is placed in the earphone case 110, the other ends of the second earphone speaker 308 and the second earphone microphone 309 are connected to the grounding connection unit in the earphone case 110.

[0055] exist Figure 3 In the headphone detection circuit shown, the first chip 210 is also used to detect whether the level of the second pin connected to each first connection unit 220 is within a preset level range, and to determine whether each first connection unit 220 is normally connected to the electroacoustic device 230 on the first headphone 120 or the second headphone 130 based on the detection result.

[0056] In this embodiment of the application, by using the voltage divider circuit formed by the first resistor 301 corresponding to the first connection unit 220 and the resistance value of the electroacoustic device 230, the level detection after voltage division by the second pin is used to determine whether the electroacoustic device 230 is faulty, which can improve the reliability of fault judgment.

[0057] In some embodiments, the first connection unit 220 can be a pogo pin or a spring, and the port of the electroacoustic device 230 when connected to the first connection unit 220 can be a solder pad.

[0058] In one embodiment, see Figure 4 , Figure 4 This is a schematic diagram of the equivalent circuit structure of an earphone detection circuit disclosed in one embodiment. Figure 4In the headphone case 110, a first chip 210, multiple first resistors 301, and multiple first connection units 220 are included. Each first connection unit 220 is connected to a first pin of the first chip 210 via a first resistor 301. Each first connection unit 220 is also connected to a second pin of the first chip 210. The first earphone 120 includes a first earphone speaker 305 and a first earphone microphone 306, and the second earphone 130 includes a second earphone speaker 308 and a second earphone microphone 309. The first earphone speaker 305, the first earphone microphone 306, the second earphone speaker 308, and the second earphone microphone 309 are equivalent to resistors of the same resistance value. When the first earphone 120 and the second earphone 130 are placed in the headphone case 110, one end of the equivalent resistor of the first earphone speaker 305, the first earphone microphone 306, the second earphone speaker 308, and the second earphone microphone 309 is connected to the other end of the corresponding first connection unit 220, and the other end of the equivalent resistor is grounded to form a circuit. Since the equivalent resistance values ​​of the first headphone speaker 305, the first headphone microphone 306, the second headphone speaker 308, and the second headphone microphone 309 are not necessarily the same, the preset level range corresponding to each first connection unit 220 can be determined according to the resistance values ​​of the connected first resistor 301 and the electroacoustic device 230.

[0059] For example, Figure 4The equivalent circuit includes four first resistors 301, namely R1, R2, R3, and R4. It also includes four first connection units 220, namely first connection unit A, first connection unit B, first connection unit C, and first connection unit D. The equivalent resistances of the first headphone speaker 305, the first headphone microphone 306, the second headphone speaker 308, and the second headphone microphone 309 are Rr1, Rmic1, Rr2, and Rmic2, respectively. The first chip 210 includes four first pins, namely GPIO1, GPIO2, GPIO3, and GPIO4, and four second pins, namely DET1, DET2, DET3, and DET4. GPIO1, R1, first connection unit A, Rr1, and the ground terminal form a voltage divider circuit. GPIO2, R2, first connection unit B, Rmic1, and the ground terminal form a voltage divider circuit. GPIO3, R3, first connection unit C, Rr2, and the ground terminal form a voltage divider circuit. GPIO4, R4, the first connection unit D, Rmic2, and the ground terminal form a voltage divider circuit. Under normal circumstances, the voltage levels at DET1, DET2, DET3, and DET4 should be VDET1 = Rr1 / (R1+Rr1)*VGPIO1, VDET2 = Rmic1 / (R2+Rmic1)*VGPIO2, VDET3 = Rr2 / (R3+Rr2)*VGPIO3, and VDET4 = Rmic2 / (R4+Rmic2)*VGPIO4, respectively. At this time, the user, mobile terminal 20, or the first chip 210 can preset the corresponding voltage range based on the normal voltage values ​​of each second pin. Then, by detecting the voltage levels at each second pin and determining whether the voltage levels at each second pin are within the corresponding preset voltage range, it can determine whether the corresponding electroacoustic device 230 is faulty, or determine the insertion status of the first earphone 120 and the second earphone 130.

[0060] In this embodiment, the preset level ranges corresponding to each first connection unit 220 are not necessarily the same. Specifically, they can be determined based on the resistance values ​​of the first resistor 301 connected to the first connection unit 220 and the equivalent resistance of the electroacoustic device 230. This allows for setting a more precise range for the preset level ranges corresponding to each first connection unit, enabling the determination of whether the electroacoustic device 230 is faulty based on minute changes in the level, thereby improving the accuracy of fault detection.

[0061] Please see Figure 5 , Figure 5 This is a flowchart of an earphone detection method disclosed in an embodiment of this application. The method is applied to an earphone case in an earphone device, which also includes a first earphone and a second earphone. The earphone case includes multiple first connection units. The method includes:

[0062] 510. Detect the level of each first connection unit and determine whether the level corresponding to each first connection unit is within a preset level range, and obtain the detection result. The first connection unit is used to connect to the electroacoustic devices on the first or second earphone when the first or second earphone is placed inside the earphone case.

[0063] 520. Based on the test results, determine whether each first connection unit is properly connected to the electroacoustic device on the first or second earphone.

[0064] In this embodiment, based on the headphone detection circuit described in the above embodiment, the headphone case detects the level of the first connection unit and compares the detected level with a corresponding preset level range. If the level is within the preset level range, the detection result is considered normal; otherwise, the detection result is considered abnormal. The headphone case determines whether the electroacoustic device corresponding to each first connection unit is in a normal connection state based on the detection results of each first connection unit. The first connection unit is a connector in the headphone case that connects to the electroacoustic devices on the first and second earphones, and can be either a pogo pin or a spring. The first earphone can be the left earphone and the second earphone can be the right earphone, or vice versa. The electroacoustic device can be a speaker or a microphone, etc. The preset level range is the level range automatically set by the user, mobile terminal, or headphone device when the first connection unit and the electroacoustic device are normally connected.

[0065] In this embodiment, by determining whether the electroacoustic device is properly connected based on the level of the first connection unit to which the electroacoustic device is connected, the functional status of each electroacoustic device in the headphone device can be accurately detected, thereby improving the reliability of headphone detection.

[0066] In one embodiment, the process of determining whether each first connection unit is properly connected to the electroacoustic device on the first or second earphone based on the detection result in step 520 of the earphone case may include the following steps:

[0067] If the level corresponding to any first connection unit is not within the preset level range, it is determined that the electroacoustic device connected to the first connection unit whose level is not within the preset level range has malfunctioned, and a first prompt message is generated.

[0068] In this embodiment, if the headphone box detects that the voltage level corresponding to the first connection unit is outside the preset voltage range, it considers the voltage level abnormal, and the electroacoustic device connected to the first connection unit corresponding to that voltage level is confirmed to be faulty. The headphone box generates a first prompt message based on the detected faulty electroacoustic devices (one or more) to alert the user which electroacoustic devices are faulty. This accurately determines whether the electroacoustic devices in the headphone device are damaged and alerts the user, ensuring the safe and normal use of the headphone device.

[0069] In some embodiments, during the process of determining whether each first connection unit is normally connected to the electroacoustic device on the first or second earphone based on the detection result in step 520 of the earphone case, the following steps may be included:

[0070] If the level corresponding to any first connection unit is within a preset level range, it is determined that the first or second earphone connected to the first connection unit with the preset level range has been placed in the earphone case, and a second prompt message is generated.

[0071] In this embodiment, if the headphone case detects that the voltage level corresponding to any of the first connection units is within a preset voltage range, it can be considered that the first connection unit corresponding to the voltage level within the preset voltage range has been successfully connected to the electroacoustic device on the connected first or second earphone. At this time, the first chip can determine the first or second earphone to which the connected electroacoustic device belongs based on the first connection unit corresponding to the normal voltage level, thereby determining whether the first or second earphone has been placed in the headphone case. This accurately determines the placement status of the first and second earphones, enhancing the reliability of the placement detection.

[0072] As IoT technology matures, more and more electronic products can be shared, allowing users to experience different devices. Headphones can certainly be shared, but during sharing, some functions are prone to damage, and it's difficult to test the headphones during the sharing process.

[0073] In one embodiment, see Figure 6 , Figure 6 This is a flowchart of another headphone detection method disclosed in an embodiment of this application. For example... Figure 6 As shown, the method includes:

[0074] 610. Receive the headphone return instruction sent by the mobile terminal.

[0075] 620. In response to the headphone return command, detect the level of each first connection unit, determine whether the level corresponding to each first connection unit is within the preset level range, and obtain the detection result.

[0076] 630. If all first connection units are in the preset level range, it is determined that the headphone device has not malfunctioned, a returnable instruction is generated, and the returnable instruction is sent to the mobile terminal so that the mobile terminal controls the shelf to open the return entrance and calculates the fee information based on the usage data of the headphone device.

[0077] In this embodiment, the headphone detection method can be applied to the headphone sharing process. During headphone sharing, multiple headphone devices are placed on a shelf. When renting, a user can initiate a request via a mobile terminal, opening the rental entrance on the shelf so the user can retrieve the headphone device for use. When the rental entrance is open, the mobile terminal can start calculating the headphone device's usage time. Upon return, the user needs to open the return entrance on the shelf and place the headphone device back on the shelf. The user can send a headphone return command via their mobile terminal. The headphone case within the headphone device can receive the headphone return command sent by the mobile terminal. The headphone case responds to the received headphone return command by detecting the voltage levels of each first connection unit. The detected voltage levels are compared with corresponding preset voltage ranges. If the voltage level is within the preset range, the detection result is considered normal; otherwise, it is considered abnormal. If the voltage levels detected by the headphone case for each first connection unit are all within the preset voltage range, the headphone case can determine that none of the electroacoustic components in the first and second headphones are faulty. At this point, the headphone case generates a return command and sends it to the mobile terminal. Upon receiving the return command, the mobile terminal controls the shelf to open the return entrance. After the user places the shared headphones back on the shelf, the shelf sends a return success command to the mobile terminal. The mobile terminal responds to this command by calculating the cost of the headphone sharing process based on the headphone's usage time and the cost per unit of time.

[0078] If the headphone case detects that the voltage level corresponding to one or more first connection units is not within the preset voltage range, it considers the one or more voltage levels to be abnormal, and the electroacoustic device connected to the first connection unit corresponding to the one or more voltage levels will be confirmed as faulty. Based on the detected faulty electroacoustic device, the headphone case generates a first prompt message and sends it to the mobile terminal. The mobile terminal then reminds the user through screen display and / or voice playback. At this time, the headphone case does not generate a return instruction, but instead generates a return instruction message, which is sent to the mobile terminal to output the return instruction, causing the user to pause the return of the headphone device and instead contact customer service for further processing. The shelf, mobile terminal, and headphones can communicate wirelessly.

[0079] By applying the headphone detection process to headphone sharing, users can enjoy the headphone experience without purchasing it, while accurately determining whether the headphone is malfunctioning when returned, thus ensuring normal use of the headphone during subsequent sharing.

[0080] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a headphone detection device disclosed in an embodiment of this application. This headphone detection device can be applied to headphone devices. Figure 7 As shown, the headphone detection device 700 may include: a level detection module 710 and a device detection module 720.

[0081] The level detection module 710 is used to detect the level of each first connection unit and determine whether the level corresponding to each first connection unit is within a preset level range, thereby obtaining the detection result. The first connection unit is used to connect to the electroacoustic devices on the first or second earphone when the first or second earphone is placed inside the earphone case.

[0082] The device detection module 720 is used to determine, based on the detection results, whether each first connection unit is properly connected to the electroacoustic device on the first or second earphone.

[0083] In one embodiment, the level detection module 710 is further configured to:

[0084] If the level corresponding to any first connection unit is not within the preset level range, it is determined that the electroacoustic device connected to the first connection unit whose level is not within the preset level range has malfunctioned, and a first prompt message is generated.

[0085] In one embodiment, the level detection module 710 is further configured to:

[0086] If the level corresponding to any first connection unit is within a preset level range, it is determined that the first or second earphone connected to the first connection unit with the preset level range has been placed in the earphone case, and a second prompt message is generated.

[0087] In one embodiment, the level detection module 710 is further configured to:

[0088] Receive the earphone return instruction sent by the mobile terminal.

[0089] In response to the headphone return command, the level of each first connection unit is detected, and it is determined whether the level of each first connection unit is within a preset level range, and the detection result is obtained.

[0090] The device testing module 720 is also used for:

[0091] If all the first connection units are within the preset level range, it is determined that the headphone device is not faulty, a returnable instruction is generated, and the returnable instruction is sent to the mobile terminal so that the mobile terminal controls the shelf to open the return entrance and calculates the fee information based on the usage data of the headphone device.

[0092] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a headphone device disclosed in one embodiment. For example... Figure 8 As shown, the headphone device 800 may include:

[0093] Memory 810 that stores executable program code.

[0094] Processor 820 coupled to memory 810.

[0095] The processor 820 calls the executable program code stored in the memory 810 to execute any of the headphone detection methods disclosed in the embodiments of this application.

[0096] It should be noted that, Figure 8 The headset device shown may also include components not shown, such as a power supply, input buttons, camera, speaker, screen, RF circuit, Wi-Fi module, and Bluetooth module, which will not be described in detail in this embodiment.

[0097] This application discloses a computer-readable storage medium storing a computer program that causes a computer to execute any of the headphone detection methods disclosed in this application.

[0098] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any of the headphone detection methods disclosed in this application.

[0099] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0100] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0101] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0102] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0103] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.

[0104] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0105] The foregoing has provided a detailed description of a headphone detection method, apparatus, headphone device, and storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A headphone detection circuit, characterized in that: An earphone box used in an earphone device; the earphone device further comprises a first earphone and a second earphone; the earphone detection circuit comprises a first chip and a plurality of first connecting units, one end of each of the first connecting units being connected to the first chip; The first connecting unit is used to connect to the electroacoustic device on the first earphone or the second earphone when the first earphone or the second earphone is placed in the earphone box; The first chip is used to detect whether the level corresponding to each of the first connection units is within a preset level range, and determine whether each of the first connection units is normally connected to the electroacoustic device on the first earphone or the second earphone according to the detection result.

2. The circuit according to claim 1, characterized in that The first chip is further configured to determine that an electroacoustic device connected to the first connection unit whose level is not within the preset level interval is faulty when it is detected that the level corresponding to any of the first connection units is not within the preset level interval, and generate first prompt information; The first prompt information is used to prompt that the electroacoustic device connected to the first connecting unit, whose level is not within the preset level interval, is faulty.

3. The circuit according to claim 1, characterized in that The first chip is further configured to, when detecting that the level corresponding to any of the first connection units is within the preset level interval, determine that the first earphone or the second earphone where the electroacoustic device connected to the first connection unit whose level is within the preset level interval is located has been placed in the earphone box, and generate second prompt information; The second prompt information is used to prompt that the first earphone or the second earphone where the electroacoustic device connected to the first connecting unit whose level is within the preset level range is located has been put into the earphone box.

4. The circuit according to any one of claims 1 to 3, characterized in that: The detection circuit further includes a plurality of first resistors; each of the first connection units is connected to a first pin of the first chip via a first resistor; each of the first connection units is also connected to a second pin of the first chip; The first chip is further used to detect whether the level of the second pin connected to each of the first connection units is within a preset level range, and determine whether each of the first connection units is normally connected to the electroacoustic device on the first earphone or the second earphone according to the detection result.

5. The circuit according to claim 4, characterized in that The preset level interval corresponding to each first connection unit is determined according to the resistance value of the connected first resistor and the electroacoustic device.

6. A headphone detection method, characterized in that: The earphone box used in an earphone device further comprises a first earphone and a second earphone, and the earphone box comprises a plurality of first connection units; the method comprises: Detecting the level of each of the first connection units, and determining whether the level corresponding to each of the first connection units is within a preset level range, to obtain a detection result; wherein the first connection unit is used to connect to the electroacoustic device on the first earphone or the second earphone when the first earphone or the second earphone is placed in the earphone box; According to the detection result, it is determined whether each of the first connection units is normally connected to the electroacoustic device on the first earphone or the second earphone.

7. The method according to claim 6, characterized in that The determining, according to the detection result, whether each of the first connection units is normally connected to the electroacoustic device on the first earphone or the second earphone includes: If the level corresponding to any of the first connection units is not within the preset level interval, it is determined that the electroacoustic device connected to the first connection unit whose level is not within the preset level interval is faulty, and first prompt information is generated.

8. The method according to claim 6, characterized in that The detecting the level of each of the first connection units, and determining whether the level corresponding to each of the first connection units is within a preset level interval, to obtain a detection result, includes: receiving a headset return instruction sent by a mobile terminal; In response to the earphone return instruction, detecting the level of each of the first connection units, and determining whether the level corresponding to each of the first connection units is within a preset level interval, to obtain a detection result; The determining, according to the detection result, whether each of the first connection units is normally connected to the electroacoustic device on the first earphone or the second earphone includes: If all of the first connection units are in the preset level range, it is determined that the headphone device has not failed, a returnable instruction is generated, and the returnable instruction is sent to the mobile terminal, so that the mobile terminal controls the shelf to open the return entrance and calculates the fee information based on the usage data of the headphone device.

9. An earphone device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 6 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 6 to 8 is implemented.

Citation Information

Patent Citations

  • In-box detection method and system and computer readable storage medium

    CN112040358A

  • Wireless earphone, charge box and charging system

    CN207835723U