Method for detecting earphone entry and exit box, earphone box and readable storage medium
By transmitting and receiving signals in the earphone box to detect the insertion status of the earphones, it solves the problem that the existing technology cannot detect the insertion of the earphones when they are not turned on, and achieves higher detection sensitivity and shorter charging time.
Patent Information
- Application Number
- CN202111280516.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The existing headphone entry and exit box detection method cannot detect that the headphones have been placed in the case when the headphones are put into the headphone box but are not turned on.
By transmitting a first signal to the earphone placement area in the earphone box and receiving the second signal from the earphone placement area, the status information of the earphone is determined based on the first signal and the second signal, including the state of being in the box and not powered on and the state of being out of the box. , controls the charging control circuit to be turned on for charging, and communicates by modulating the processed data.
It is possible to detect that the earphones have been put into the box even when the earphones are put into the earphone box but are not turned on. This improves the detection sensitivity and shortens the charging time of the earphones by turning on the charging control circuit.
Smart Images

Figure CN113993055B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment, and in particular to a method for detecting an earphone entry and exit box, an earphone box and a readable storage medium. Background Art
[0002] At present, TWS (True Wireless Stereo) headphones are generally equipped with a headphone box with both charging and storage functions. After the headphones are placed in the headphone box, the headphone box connects the charging circuit to charge the headphones; when the headphones are not in the headphone box, the headphone box disconnects the charging circuit. Therefore, it is particularly important to sensitively detect whether the headphones are in the box. The existing headphone in and out box detection method relies on the headphones being in the power-on state when they are placed in the headphone box. When the headphones are placed in the headphone box but are not in the power-on state (the headphones may be turned off due to low power), the existing detection method cannot detect that the headphones have been placed in the box. Summary of the invention
[0003] The main purpose of the present invention is to provide a method for detecting earphones entering and exiting a box, an earphone box and a readable storage medium, aiming to detect that the earphones have entered the box when the earphones are placed in the earphone box but are not in a powered-on state.
[0004] To achieve the above object, the present invention provides a method for detecting an earphone access box, the method comprising:
[0005] Transmitting a first signal to an earphone placement area in the earphone box, and receiving a second signal from the earphone placement area;
[0006] The status information of the headset is determined according to the first signal and the second signal, wherein the status information includes an in-box and unpowered state and an out-of-box state.
[0007] Optionally, the step of determining the status information of the headset according to the first signal and the second signal includes:
[0008] Acquire first data corresponding to the first signal and second data corresponding to the second signal;
[0009] When the first data is the same as the second data, determining that the headset is in a boxed and unpowered state;
[0010] When the first data is different from the second data, it is determined that the earphone is in an out-of-box state.
[0011] Optionally, the step of determining the status information of the headset according to the first signal and the second signal includes:
[0012] Obtaining a first parameter value of the first signal and a second parameter value of the second signal, and calculating a difference between the first parameter value and the second parameter value;
[0013] Determining the interval in which the difference lies;
[0014] The status information of the earphone is determined according to the interval in which the difference value is located.
[0015] Optionally, the step of determining the status information of the headset according to the interval in which the difference value is located includes:
[0016] When the difference is less than a preset threshold, determining that the headset is in a boxed and unpowered state;
[0017] When the difference is greater than or equal to the preset threshold, it is determined that the earphone is in an out-of-box state.
[0018] Optionally, after the step of determining the status information of the headset according to the first signal and the second signal, wherein the status information includes an in-box and unpowered state and an out-of-box state, the step further includes:
[0019] When it is determined that the status information of the earphone is the box-entered and unpowered state, the charging control circuit of the earphone box is controlled to be turned on, so as to charge the earphone through the charging control circuit.
[0020] Optionally, after the step of controlling the charging control circuit of the earphone box to be turned on when determining that the status information of the earphone is the in-box and unpowered state so as to charge the earphone through the charging control circuit, the method further includes:
[0021] Detecting whether the headset is in a powered-on state;
[0022] When it is determined that the headset is in the power-on state, acquiring third data;
[0023] The third data is modulated and sent to the earphone.
[0024] Optionally, before the step of transmitting the first signal to the headphone placement area in the headphone box and receiving the second signal from the headphone placement area, the method further includes:
[0025] Detecting whether the earphone box is in an open state;
[0026] When the earphone box is in the open state, the steps of transmitting a first signal to the earphone placement area of the earphone box and receiving a second signal from the earphone placement area are performed.
[0027] Optionally, before the step of detecting whether the earphone box is in an open cover state, the method further includes:
[0028] detecting whether the earphone box receives fourth data sent by the earphone;
[0029] When the fourth data is not received, the step of detecting whether the earphone box is in an open cover state is performed.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides an earphone box, which includes a memory, a processor, and an earphone entry and exit box detection program stored in the memory and runnable on the processor, and the earphone entry and exit box detection program, when executed by the processor, implements the steps of the earphone entry and exit box detection method described in any one of the above items.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a readable storage medium, on which a detection program for an earphone entry and exit box is stored. When the detection program for an earphone entry and exit box is executed by a processor, the steps of the detection method for an earphone entry and exit box described in any one of the above-mentioned items are implemented.
[0032] The present invention proposes a method for detecting whether an earphone enters or exits a box, an earphone box, and a readable storage medium. The method transmits a first signal to an earphone placement area in the earphone box, receives a second signal from the earphone placement area, and then determines the status information of the earphone according to the first signal and the second signal, wherein the status information includes an in-box and unpowered state and an out-of-box state. This solution can detect that the earphone has entered the box when the earphone is placed in the earphone box but is not in the powered-on state, thereby solving the problem that the existing earphone in-box detection method cannot detect that the earphone has entered the box when the earphone is placed in the earphone box but is not in the powered-on state. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Schematic diagram of the hardware architecture of the earphone box involved in the embodiment of the present invention;
[0034] Figure 2 is a functional block diagram of an earphone box and an earphone involved in an embodiment of the present invention;
[0035] Figure 3 is a flow chart of a first embodiment of a method for detecting an earphone entry / exit box according to the present invention;
[0036] Figure 4 It is a principle block diagram of the method for detecting the earphone entry and exit box of the present invention;
[0037] Figure 5 is a flow chart of a second embodiment of a method for detecting an earphone entry / exit box according to the present invention;
[0038] Figure 6is a flow chart of a third embodiment of a method for detecting an earphone entry / exit box of the present invention;
[0039] Figure 7 It is a principle block diagram of the earphone wearing detection method of the present invention.
[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0042] As an implementation, please refer to Figure 1 , Figure 1 is a schematic diagram of the hardware architecture of the earphone box involved in the embodiment of the present invention, such as Figure 1 As shown, the earphone box may include a processor 101, such as a CPU, a memory 102, and a communication bus 103, wherein the communication bus 103 is used to realize connection and communication between these modules.
[0043] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 As shown, the memory 102 as a computer-readable storage medium may include a detection program for the headphone access box; and the processor 101 may be used to call the detection program for the headphone access box stored in the memory 102, and perform the following operations:
[0044] Transmitting a first signal to an earphone placement area in the earphone box, and receiving a second signal from the earphone placement area;
[0045] The status information of the headset is determined according to the first signal and the second signal, wherein the status information includes an in-box and unpowered state and an out-of-box state.
[0046] Further, the processor 101 may be used to call the headphone entry and exit box detection program stored in the memory 102, and perform the following operations:
[0047] Acquire first data corresponding to the first signal and second data corresponding to the second signal;
[0048] When the first data is the same as the second data, determining that the headset is in a boxed and unpowered state;
[0049] When the first data is different from the second data, it is determined that the earphone is in an out-of-box state.
[0050] Further, the processor 101 may be used to call the headphone entry and exit box detection program stored in the memory 102, and perform the following operations:
[0051] Obtaining a first parameter value of the first signal and a second parameter value of the second signal, and calculating a difference between the first parameter value and the second parameter value;
[0052] Determining the interval in which the difference lies;
[0053] The status information of the earphone is determined according to the interval in which the difference value is located.
[0054] Further, the processor 101 may be used to call the headphone entry and exit box detection program stored in the memory 102, and perform the following operations:
[0055] When the difference is less than a preset threshold, determining that the headset is in a boxed and unpowered state;
[0056] When the difference is greater than or equal to the preset threshold, it is determined that the earphone is in an out-of-box state.
[0057] Further, the processor 101 may be used to call the headphone entry and exit box detection program stored in the memory 102, and perform the following operations:
[0058] When it is determined that the status information of the earphone is the box-entered and unpowered state, the charging control circuit of the earphone box is controlled to be turned on, so as to charge the earphone through the charging control circuit.
[0059] Further, the processor 101 may be used to call the headphone entry and exit box detection program stored in the memory 102, and perform the following operations:
[0060] Detecting whether the headset is in a powered-on state;
[0061] When it is determined that the headset is in the power-on state, acquiring third data;
[0062] The third data is modulated and sent to the earphone.
[0063] Further, the processor 101 may be used to call the headphone entry and exit box detection program stored in the memory 102, and perform the following operations:
[0064] Detecting whether the earphone box is in an open state;
[0065] When the earphone box is in the open state, the steps of transmitting a first signal to the earphone placement area of the earphone box and receiving a second signal from the earphone placement area are performed.
[0066] Further, the processor 101 may be used to call the headphone entry and exit box detection program stored in the memory 102, and perform the following operations:
[0067] detecting whether the earphone box receives fourth data sent by the earphone;
[0068] When the fourth data is not received, the step of detecting whether the earphone box is in an open cover state is performed.
[0069] Please refer to Figure 2 , Figure 2 It is a functional block diagram of the earphone box and earphones involved in the embodiment of the present invention. The earphone box 1100 involved in the embodiment of the present invention includes the following parts: a cover opening detection unit 1101, an earphone box microcontroller unit MCU (Micro Controller Unit, MCU) 1102, a signal modulation circuit 1103, a signal transmitting unit 1104, a signal processing / demodulation circuit 1105, a signal receiving unit 1106, a USB charging seat / wireless charging system 1107, an earphone box power management system 1108, a charging control circuit 1109, a connection unit 1110 in contact with the earphone, and an earphone box battery 1111. The specific connection method of each functional module is as follows: Figure 2 shown.
[0070] The earphone 1200 corresponding to the earphone box 1100 involved in the embodiment of the present invention includes the following parts: a signal receiving unit 1201, a signal processing / demodulation circuit 1202, a signal transmitting unit 1203, a signal modulation circuit 1204, an earphone MCU / Bluetooth microelectronic device IC (Integrated Circuit, IC) 1205, a connection unit 1206 in contact with the earphone box, an earphone power management system 1207 and an earphone battery 1208. The specific connection method of each functional module is as follows Figure 2 shown.
[0071] It should be noted that Figure 2 Only the functional modules related to the implementation of the present invention are embodied, and other functional modules that the earphone box and the earphone should have are not described here.
[0072] The working principle of the earphone box 1100 and the earphone 1200 is as follows:
[0073] The principle of the earphone box 1100 charging the earphone 1200: the earphone box battery 1111 and the USB charging stand / wireless charging system 1107 not only supply power to the earphone box but also charge the earphone through the earphone box power management system 1108. When the cover opening detection unit 1101 detects that the cover of the earphone box 1100 is opened, the earphone box 1100 detects whether the earphone 1200 is put into the box through the cooperation among the signal transmitting unit 1104 of the earphone box 1100, the signal receiving unit 1106 of the earphone box 1100, the signal transmitting unit 1203 of the earphone 1200, the signal receiving unit 1201 of the earphone 1200, the signal modulation circuit 1103 of the earphone box 1100, the signal processing / demodulation circuit 1105 of the earphone box 1100, the signal modulation circuit 1204 of the earphone 1200 and the signal processing / demodulation circuit 1202 of the earphone 1200. When the earphone box 1100 detects that the earphone 1200 is put into the box, the earphone box MCU 1102 controls the charging control circuit 1109 to be turned on, and charges the earphone through the connection unit 1110 and the connection unit 1206.
[0074] Working principle of communication between the earphone box 1100 and the earphone 1200: Since the earphone 1200 is placed in the earphone box 1100, the position of the earphone 1200 is relatively fixed, thus providing feasible conditions for the cross-talk communication between the earphone box 1100 and the earphone 1200. When the earphone 1200 is placed in the earphone box 1100, the signal transmitting unit 1104 of the earphone box 1100 is aligned with the signal receiving unit 1201 of the earphone 1200, and the signal receiving unit 1106 of the earphone box 1100 is aligned with the signal transmitting unit 1203 of the earphone 1200, so as to realize duplex data communication between the earphone box 1100 and the earphone 1200. The communication data to be sent by the earphone box MCU 1102 is modulated by the signal modulation circuit 1103 of the earphone box 1100, and then transmitted by the signal transmitting unit 1104 of the earphone box 1100, and then received by the signal receiving unit 1201 of the earphone 1200, and then demodulated by the signal processing / demodulation circuit 1202 of the earphone 1200, and then transmitted to the earphone MCU / Bluetooth IC 1205, that is, the earphone box 1100 completes the data transmission from the earphone 1200 to the earphone 1200; similarly, the communication data to be sent by the earphone MCU / Bluetooth IC 1205 is modulated by the signal modulation circuit 1204 of the earphone 1200, and then transmitted by the signal transmitting unit 1203 of the earphone 1200, and then received by the signal receiving unit 1106 of the earphone box 1100, and then transmitted to the earphone box MCU 1102 after passing through the signal processing / demodulation circuit 1105 of the earphone box 1100, that is, the data transmission from the earphone 1200 to the earphone box 1100 is completed.
[0075] The functional design of the earphone box 1100 and the earphone 1200 described above realizes the separation of the charging function and the communication function between the earphone box 1100 and the earphone 1200. The charging function and the communication function between the earphone box 1100 and the earphone 1200 are independent of each other and do not affect each other. In this way, on the one hand, the communication quality between the earphone box 1100 and the earphone 1200 can be improved, and on the other hand, the charging time of the earphone 1200 can be reduced.
[0076] Based on the above Figure 1 The hardware architecture of the earphone box 1100 and Figure 2 The functional block diagram of the earphone box 1100 in the middle provides an embodiment of the method for detecting earphones entering and exiting the box according to the present invention.
[0077] Please refer to Figure 3 , Figure 3 1 is a flow chart of a first embodiment of a method for detecting an earphone input / output box according to the present invention. The method for detecting an earphone input / output box comprises the following steps:
[0078] Step S10, transmitting a first signal to an earphone placement area in the earphone box, and receiving a second signal from the earphone placement area;
[0079] In this embodiment, the subject of the method for detecting the earphone entering and exiting the box of the present invention is the earphone box. Figure 4 , Figure 4 The earphone box 1100 can transmit a first signal to an earphone placement area in the earphone box 1100 and receive a second signal from the earphone placement area.
[0080] Specifically, the earphone box 1100 can transmit a first signal to the earphone placement area through the signal transmitting unit 1104, and receive a second signal from the earphone placement area through the signal receiving unit 1106. Optionally, the signal transmitting unit 1104 can be an infrared light-emitting tube, and the signal receiving unit 1106 can be a photodiode. Accordingly, the first signal can be an infrared signal, the second signal can be an infrared signal, and the second signal can also be other signals other than infrared signals. The first signal and the second signal respectively carry corresponding data information, and the data information carried by the first signal and the data information carried by the second signal can be the same or different. In other embodiments, the signal transmitting unit 1104 and the signal receiving unit 1106 can also be determined according to actual needs, and this embodiment does not limit this. It can be understood that when the signal transmitting unit 1104 and the signal receiving unit 1106 change, the first signal also changes accordingly.
[0081] Step S20, determining status information of the headset according to the first signal and the second signal, wherein the status information includes an in-box and unpowered state and an out-of-box state.
[0082] In this embodiment, after receiving the second signal, the earphone box 1100 determines the status information of the earphone 1200 according to the first signal and the second signal, and the status information of the earphone 1200 includes the state of being in the box and not turned on and the state of being out of the box.
[0083] Optionally, after receiving the second signal, the earphone box 1100 may obtain first data corresponding to the first signal and second data corresponding to the second signal, wherein the first data refers to data information carried by the first signal, and the second data refers to data information carried by the second signal. The earphone box 1100 may demodulate the first signal and the second signal through the signal processing / demodulation circuit 1105 to obtain the first data and the second data. After obtaining the first data and the second data, the earphone box 1100 determines whether the first data and the second data are the same. If the first data and the second data are the same, it indicates that the second signal is a reflection signal of the first signal, and it is determined that the earphone 1200 is in the box-entered and unpowered state. If the first data and the second data are not the same, it is determined that the earphone 1200 is in the out-of-box state.
[0084] Optionally, after receiving the second signal, the earphone box 1100 may also obtain the first parameter value of the first signal and the second parameter value of the second signal, calculate the difference between the first parameter value and the second parameter value, and then determine the interval in which the difference is located, and determine the status information of the earphone 1200 according to the interval in which the difference is located. The first parameter value and the second parameter value may be at least one of intensity, frequency, phase, and wavelength, and the first parameter value and the second parameter value have the same parameter type. For example, when the first parameter value of the first signal is intensity, the second parameter value of the second signal is also intensity, when the first parameter value of the first signal is wavelength, the second parameter value of the second signal is also wavelength, when the first parameter value of the first signal is frequency, the second parameter value of the second signal is also frequency, and when the first parameter value of the first signal is phase, the second parameter value of the second signal is also phase. The earphone box 1100 may pre-set the interval of the difference corresponding to the status information of the earphone 1200. For example, the interval of the difference corresponding to the earphone 1200 being in the box-entered and unpowered state is the first interval, and the interval of the difference corresponding to the earphone 1200 being in the out-of-box state is the second interval. The first interval and the second interval may be determined according to actual conditions, and this embodiment does not limit this. After obtaining the difference between the first parameter value and the second parameter value, the earphone box 1100 determines whether the interval of the difference is the first interval or the second interval, and determines whether the status information of the earphone is in the box-entered and unpowered state or the out-of-box state according to the interval of the difference. After obtaining the difference between the first parameter value and the second parameter value, the earphone box 1100 may also determine whether the difference is less than a preset threshold value. When the difference is less than the preset threshold value, it is determined that the earphone 1200 is in the box-entered and unpowered state. When the difference is greater than or equal to the preset threshold value, it is determined that the earphone 1200 is in the out-of-box state. The preset threshold value may be set according to actual needs, and this embodiment does not limit this.
[0085] In the technical solution provided by this embodiment, a first signal is transmitted to the headphone placement area in the headphone box 1100, and a second signal is received from the headphone placement area, and then the status information of the headphone 1200 is determined according to the first signal and the second signal, wherein the status information includes the state of being in the box and not turned on and the state of being out of the box. This solution can detect that the headphone 1200 has been put into the box when the headphone 1200 is put into the headphone box 1100 but is not in the turned-on state, thereby solving the problem that the existing headphone in-and-out box detection method cannot detect that the headphone 1200 has been put into the box when the headphone 1200 is put into the headphone box 1100 but is not in the turned-on state.
[0086] Please refer to Figure 5 , Figure 5 2 is a flow chart of a second embodiment of the method for detecting an earphone input / output box of the present invention. Based on the first embodiment, after the above step S20, the method further includes:
[0087] Step S30, when it is determined that the status information of the earphone is the in-box and unpowered state, controlling the charging control circuit of the earphone box to be turned on, so as to charge the earphone through the charging control circuit.
[0088] In this embodiment, when the earphone box 1100 determines that the status information of the earphone 1200 is in the box-in and unpowered state, the earphone box 1100 controls the charging control circuit 1109 of the earphone box 1100 to be turned on, so as to charge the earphone 1200 through the charging control circuit 1109 .
[0089] Specifically, when the status information of the earphone in the earphone box 1100 is in the box-in and unpowered state, the connection unit 1110 is connected to the connection unit 1206, and the earphone box MCU 1102 controls the charging control circuit 1109 to be connected, and the earphone is charged through the connection unit 1110, the connection unit 1206 and the charging control circuit 1109. The connection unit 1110 and the connection unit 1206 can be selected as connectors that can be connected or disconnected to each other.
[0090] Optionally, after the earphone box 1100 controls the charging control circuit 1109 to be turned on to charge the earphone 1200 through the charging control circuit 1109, the earphone box 1100 can detect in real time or at a fixed time whether the earphone 1200 is in a powered-on state, and when it is determined that the earphone 1200 is in a powered-on state, obtain the third data, modulate the third data, and send the modulated third data to the earphone 1200. The third data can be communication data sent by the earphone box 1100 to the earphone 1200.
[0091] Optionally, after the earphone box 1100 controls the charging control circuit 1109 to be turned on to charge the earphone 1200 through the charging control circuit 1109, the earphone box 1100 can detect in real time or periodically whether communication data is received from the earphone 1200. After receiving the communication data from the earphone 1200, the earphone box 1100 determines that the earphone 1200 is in the power-on state. When it is determined that the earphone 1200 is in the power-on state, the earphone box 1100 obtains third data, modulates the third data, and sends the modulated third data to the earphone 1200.
[0092] In the technical solution provided by this embodiment, when it is determined that the status information of the earphone 1200 is in the box-entered and unpowered state, the charging control circuit 1109 of the earphone box 1100 is controlled to be turned on, so as to charge the earphone 1200 through the charging control circuit 1109. In this solution, the charging control circuit 1109 is turned on after the earphone 1200 is detected to be in the box, which can improve the charging efficiency of the earphone 1200 and reduce the charging time of the earphone 1200.
[0093] Please refer to Figure 6 , Figure 6This is a flow chart of a third embodiment of the method for detecting an earphone access box according to the present invention. Based on the first embodiment, before the step S10, the method further includes:
[0094] Step S40, detecting whether the earphone box is in an open state;
[0095] The steps of S10 above are changed to:
[0096] Step S11, when the earphone box is in the open state, transmitting a first signal to the earphone placement area of the earphone box, and receiving a second signal from the earphone placement area.
[0097] In this embodiment, the earphone box 1100 can detect whether the earphone box 1100 is in an open cover state. Specifically, the earphone box 1100 can detect whether the earphone box 1100 is in an open cover state through the open cover detection unit 1101. When it is detected that the earphone box 1100 is in an open cover state, a first signal is transmitted to the earphone placement area of the earphone box 1100, and a second signal is received from the earphone placement area. For details, please refer to the content of the first embodiment, and this embodiment will not be repeated here.
[0098] The scheme of this embodiment first detects whether the earphone box 1100 is in an open-cover state, and then executes the steps of transmitting a first signal to the earphone placement area of the earphone box 1100 and receiving a second signal from the earphone placement area when the earphone box 1100 is in the open-cover state. In this way, the earphone box 1100 can be prevented from always transmitting the first signal to the earphone placement area of the earphone box 1100 and receiving the second signal from the earphone placement area, thereby reducing the power consumption loss of the earphone box 1100 and increasing the standby time of the earphone box 1100.
[0099] Optionally, before detecting whether the earphone box 1100 is in the open cover state, the earphone box 1100 may detect whether the earphone box 1100 receives fourth data sent by the earphone 1200, and when the fourth data is not received, the step of detecting whether the earphone box 1100 is in the open cover state is performed. Optionally, the fourth data may be communication data sent by the earphone 1200 to the earphone box 1100.
[0100] This embodiment detects whether the earphone box 1100 receives the fourth data sent by the earphone 1200, and then performs the step of detecting whether the earphone box 1100 is in the open state when the fourth data is not received. In this way, since the earphone box 1100 receives the fourth data sent by the earphone 1200, it indicates that the earphone 1200 is in the box and turned on state, by first determining that the earphone box 1100 does not receive the fourth data and then performing the step of detecting whether the earphone box 1100 is in the open state, the situation that the earphone 1200 is in the box and turned on state is effectively excluded, and the detection sensitivity of detecting that the earphone 1200 has been put into the box when the earphone 1200 is put into the earphone box 1100 but is not in the turned on state is improved to a certain extent.
[0101] In the technical solution provided by this embodiment, the earphone box 1100 detects whether the earphone box 1100 is in an open-cover state. When the earphone box 1100 is in an open-cover state, the earphone box 1100 transmits a first signal to the earphone placement area of the earphone box 1100 and receives a second signal from the earphone placement area. This solution first detects whether the earphone box 1100 is in an open-cover state, and then executes the steps of transmitting a first signal to the earphone placement area of the earphone box 1100 and receiving a second signal from the earphone placement area when the earphone box 1100 is in an open-cover state. In this way, the earphone box 1100 can be prevented from always transmitting a first signal to the earphone placement area of the earphone box 1100 and receiving a second signal from the earphone placement area, thereby reducing the power consumption loss of the earphone box 1100 and increasing the standby time of the earphone box 1100.
[0102] based on Figure 2 The functional block diagram of the earphone 1200 in the figure proposes a method for detecting the wearing of an earphone. The main body of the method for detecting the wearing of an earphone is the earphone. Please refer to Figure 7 , Figure 7 This is a principle block diagram of the headphone wearing detection method. The principle of the headphone wearing detection method is as follows:
[0103] The headset MCU / Bluetooth IC1205 of the headset 1200 can modulate the wearing detection signal through the signal modulation circuit 1204, and then transmit it by the signal transmitting unit 1203. The signal receiving unit 1201 receives the reflected signal from the signal transmitting unit 1203 and demodulates it through the signal processing / demodulation circuit 1202, and then transmits it to the headset MCU / Bluetooth IC 1205. The headset MCU / Bluetooth IC1205 compares and confirms whether the data carried by the wearing detection signal is consistent with that carried by the reflected signal. If they are consistent, it is determined that the headset 1200 is in a wearing state. If they are inconsistent, it is determined that the headset 1200 is in a not-worn state.
[0104] In order to more clearly illustrate the inventive concept of the method for detecting an earphone entry and exit box of the present invention, the method for detecting an earphone entry and exit box of the present invention is exemplified below through a specific application scenario.
[0105] When the user wants to put the earphone 1200 into the earphone box 1100 for charging, the earphone box 1100 first detects whether the communication data sent by the earphone 1200 is received. When the earphone box 1100 receives the communication data sent by the earphone 1200, it determines that the earphone 1200 is in the box-entered and powered-on state. When the earphone box 1100 does not receive the communication data sent by the earphone 1200, the earphone box 1100 detects whether the earphone box 1100 is in the open-cover state. When detecting that the earphone box 1100 is in the open-cover state, the earphone box 1100 transmits an infrared signal to the earphone placement area in the earphone box 1100, and receives an infrared signal from the earphone placement area, and then obtains the data information carried by the infrared signal transmitted by the earphone box 1100 and the infrared signal received by the earphone box 1100. If the data information carried by the infrared signal transmitted by the earphone box 1100 is the same as the data information carried by the infrared signal received by the earphone box 1100, it is determined that the earphone 1200 is in the box-entered and powered-on state. If they are not the same, it is determined that the earphone 1200 is out of the box. This solution realizes that when the earphone 1200 is placed in the earphone box 1100 but is not in the power-on state, it can also detect that the earphone 1200 has been put into the box, thereby solving the problem that the existing earphone entry and exit detection method cannot detect that the earphone 1200 has been put into the box when the earphone 1200 is placed in the earphone box 1100 but is not in the power-on state.
[0106] Based on the above embodiments, the present invention also provides an earphone box, which may include a memory, a processor, and an earphone entry and exit box detection program stored in the memory and run on the processor. When the processor executes the earphone entry and exit box detection program, the steps of the earphone entry and exit box detection method described in any of the above embodiments are implemented.
[0107] Based on the above embodiments, the present invention further provides a readable storage medium on which a headphone entry and exit box detection program is stored. When the headphone entry and exit box detection program is executed by a processor, the steps of the headphone entry and exit box detection method as described in any of the above embodiments are implemented.
[0108] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0109] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (which can be a smart TV, mobile phone, computer, etc.) to execute the methods described in each embodiment of the present invention.
[0111] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for detecting an earphone entering and exiting a box, characterized in that: The method for detecting the earphone entry and exit box comprises: Detecting whether the earphone box receives fourth data sent by the earphone, wherein the fourth data is communication data sent by the earphone to the earphone box; When the fourth data is not received, detecting whether the earphone box is in an open cover state; When the earphone box is in the open state, controlling the earphone box to transmit a first signal to an earphone placement area in the earphone box, and receiving a second signal from the earphone placement area; Determine the status information of the headset according to the first signal and the second signal, wherein the status information includes an in-box and unpowered state and an out-of-box state; The step of determining the status information of the headset according to the first signal and the second signal comprises: Obtaining a first parameter value of the first signal and a second parameter value of the second signal, and calculating a difference between the first parameter value and the second parameter value; Determining the interval in which the difference lies; When the difference is less than a preset threshold, determining that the headset is in a boxed and unpowered state; When the difference is greater than or equal to the preset threshold, it is determined that the earphone is in an out-of-box state.
2. The method for detecting an earphone access box according to claim 1, characterized in that: After the step of determining the status information of the headset according to the first signal and the second signal, wherein the status information includes an in-box and unpowered state and an out-of-box state, the method further includes: When it is determined that the status information of the earphone is the box-entered and unpowered state, the charging control circuit of the earphone box is controlled to be turned on, so as to charge the earphone through the charging control circuit.
3. The method for detecting an earphone access box according to claim 2, characterized in that: After the step of controlling the charging control circuit of the earphone box to be turned on when determining that the state information of the earphone is the in-box and unpowered state so as to charge the earphone through the charging control circuit, the method further includes: Detecting whether the headset is in a powered-on state; When it is determined that the headset is in the power-on state, acquiring third data; The third data is modulated and sent to the earphone.
4. An earphone box, characterized in that: The earphone box includes a memory, a processor, and an earphone in-and-out box detection program stored in the memory and executable on the processor. When the earphone in-and-out box detection program is executed by the processor, the steps of the earphone in-and-out box detection method as described in any one of claims 1 to 3 are implemented.
5. A readable storage medium, characterized in that: The readable storage medium stores a detection program for the headphone in-and-out box. When the detection program for the headphone in-and-out box is executed by the processor, the steps of the detection method for the headphone in-and-out box according to any one of claims 1 to 3 are implemented.
