技术领域technical field
本申请实施例涉及电子技术领域,尤其涉及一种无线耳机及无线耳机系统。The embodiments of the present application relate to the field of electronic technology, and in particular, to a wireless earphone and a wireless earphone system.
背景技术Background technique
随着用户对便携性要求的提高,无线耳机得到越来越多的用户的青睐。通常,无线耳机与耳机盒配合使用。耳机盒可以收纳无线耳机,并为无线耳机充电。As users have higher requirements for portability, wireless earphones are favored by more and more users. Typically, wireless headphones are used with a headphone case. The earphone box can store and charge the wireless earphones.
其中,无线耳机上以及耳机盒内可以分别设置有对应的电连接器,该电连接器用于导通和传输电流。当无线耳机收纳于耳机盒中,且无线耳机上的电连接器和耳机盒上的电连接器相接触时,耳机盒与无线耳机建立电连接。耳机盒通过该电连接为无线耳机充电。Wherein, corresponding electrical connectors may be provided on the wireless earphone and in the earphone box respectively, and the electrical connectors are used for conduction and transmission of electric current. When the wireless earphone is stored in the earphone box, and the electrical connector on the wireless earphone is in contact with the electrical connector on the earphone box, the earphone box and the wireless earphone are electrically connected. The earphone case charges the wireless earphones through this electrical connection.
现有技术中,无线耳机可以通过无线耳机是否与耳机盒建立电连接,检测无线耳机的出盒或入盒。具体的,如果无线耳机与耳机盒建立了电连接,无线耳机确定该无线耳机入盒;如果无线耳机与耳机盒断开电连接,无线耳机确定该无线耳机出盒。In the prior art, the wireless earphone can detect whether the wireless earphone is out of the box or in the box by whether the wireless earphone is electrically connected to the earphone box. Specifically, if the wireless earphone is electrically connected to the earphone box, the wireless earphone determines that the wireless earphone is in the box; if the wireless earphone is disconnected from the earphone box, the wireless earphone determines that the wireless earphone is out of the box.
但是,基于上述电连接进行无线耳机的出入盒检测,可能会因为无线耳机上的电连接器和耳机盒上的电连接器接触不良,而导致对无线耳机出盒或入盒的误判。However, based on the above-mentioned electrical connection for detecting the entry and exit of the wireless earphone, the electrical connector on the wireless earphone and the electrical connector on the earphone box may cause a misjudgment of the out-of-box or in-box of the wireless earphone due to poor contact.
发明内容Contents of the invention
本申请实施例提供一种无线耳机及无线耳机系统,可以提高无线耳机的出入盒检测的准确性。Embodiments of the present application provide a wireless earphone and a wireless earphone system, which can improve the accuracy of detection of a wireless earphone entering and exiting a box.
第一方面,本申请实施例提供一种无线耳机。该无线耳机包括处理器,以及与处理器耦合的磁传感器。其中,该无线耳机收纳在耳机盒的收纳腔内时,该无线耳机周围的磁场是第一磁场。磁传感器在该第一磁场检测的磁感应强度在第一强度区间。该无线耳机在耳机盒的收纳腔外时,该无线耳机周围的磁场是第二磁场。磁传感器在该第二磁场检测的磁感应强度在第二强度区间。该第一强度区间与第二强度区间没有交集。In a first aspect, the embodiment of the present application provides a wireless earphone. The wireless headset includes a processor, and a magnetic sensor coupled to the processor. Wherein, when the wireless earphone is stored in the storage cavity of the earphone box, the magnetic field around the wireless earphone is the first magnetic field. The magnetic induction detected by the magnetic sensor in the first magnetic field is in the first intensity interval. When the wireless earphone is outside the storage cavity of the earphone box, the magnetic field around the wireless earphone is the second magnetic field. The magnetic induction detected by the magnetic sensor in the second magnetic field is within the second intensity range. The first intensity interval does not intersect with the second intensity interval.
具体的,该磁传感器可以用于:检测无线耳机周围的磁场的磁感应强度;如果检测到磁感应强度在所述第一强度区间,向处理器输出第一信号;如果检测到磁感应强度在第二强度区间,向处理器输出第二信号。其中,上述第一信号是高电平,第二信号是低电平;或者,第一信号是低电平,第二信号是高电平。Specifically, the magnetic sensor can be used to: detect the magnetic induction intensity of the magnetic field around the wireless earphone; if it is detected that the magnetic induction intensity is in the first intensity range, output the first signal to the processor; if it is detected that the magnetic induction intensity is in the second intensity range interval, and output the second signal to the processor. Wherein, the above-mentioned first signal is at a high level, and the second signal is at a low level; or, the first signal is at a low level, and the second signal is at a high level.
示例性的,上述第一磁场可以包括无线耳机中的磁体产生的磁场和耳机盒中的磁体产生的磁场。上述第二磁场可以包括无线耳机中的磁体产生的磁场。也就是说,无线耳机在耳机盒内的磁场,与无线耳机在耳机盒外的磁场不同。因此,磁传感器在耳机盒内与耳机盒外可以检测到不同的磁感应强度。Exemplarily, the above-mentioned first magnetic field may include a magnetic field generated by a magnet in the wireless earphone and a magnetic field generated by a magnet in the earphone box. The above-mentioned second magnetic field may include a magnetic field generated by a magnet in the wireless earphone. That is to say, the magnetic field of the wireless earphone inside the earphone box is different from the magnetic field of the wireless earphone outside the earphone box. Therefore, the magnetic sensor can detect different magnetic induction intensities inside the earphone box and outside the earphone box.
一般而言,无线耳机中的磁体产生的磁场,以及耳机盒内的磁体产生的磁场都是相对固定的。因此,无论无线耳机在耳机盒内或者耳机盒外,磁传感器检测到的磁感应强度都可以在一定强度区间(如上述第一强度区间或第二强度区间)内的。因此,磁传感器可以根据检测的磁感应强度在第一强度区间或第二强度区间,向处理器输出高电平或者低电平。处理器可以根据磁传感器传输的高低电平的跳变,确定无线耳机的出盒或入盒。Generally speaking, the magnetic field generated by the magnet in the wireless earphone and the magnetic field generated by the magnet in the earphone box are relatively fixed. Therefore, no matter whether the wireless earphone is in the earphone box or outside the earphone box, the magnetic induction intensity detected by the magnetic sensor can be within a certain intensity interval (such as the above-mentioned first intensity interval or the second intensity interval). Therefore, the magnetic sensor can output a high level or a low level to the processor in the first intensity interval or the second intensity interval according to the detected magnetic induction intensity. The processor can determine the out-of-box or in-box of the wireless earphone according to the high and low level transitions transmitted by the magnetic sensor.
其中,无线耳机根据磁场的磁感应强度的变化检测无线耳机的出盒和入盒时,检测结果不会因为耳机盒和无线耳机的接触接触不良,而导致对无线耳机出盒或入盒的误判。上述检测方式是一种非接触是检测方式,可以提高无线耳机的出入盒检测的准确性。Among them, when the wireless earphone detects the out-of-box and in-box of the wireless earphone according to the change of the magnetic induction intensity of the magnetic field, the detection result will not cause a misjudgment of the out-of-box or in-box of the wireless earphone due to poor contact between the earphone box and the wireless earphone . The above-mentioned detection method is a non-contact detection method, which can improve the accuracy of detection of the wireless earphone in and out of the box.
在一种可能的设计中,上述第一磁场的磁场强度可能大于第二磁场的磁场强度。或者,上述第一磁场的磁场强度可能小于第二磁场的磁场强度。其中,第一磁场和第二磁场的磁场强度的大小决定于耳机盒和无线耳机中各个磁体的磁场的磁矢量的大小和方向。In a possible design, the magnetic field strength of the above-mentioned first magnetic field may be greater than the magnetic field strength of the second magnetic field. Or, the magnetic field strength of the above-mentioned first magnetic field may be smaller than the magnetic field strength of the second magnetic field. Wherein, the magnitudes of the magnetic field strengths of the first magnetic field and the second magnetic field are determined by the magnitude and direction of the magnetic vectors of the magnetic fields of the respective magnets in the earphone box and the wireless earphone.
在第一种情况下,上述第一磁场的磁场强度大于第二磁场的磁场强度;因此,第一强度区间的最小磁感应强度大于第二强度区间的最大感应强度。在这种情况下,上述处理器具体可以用于:在磁传感器检测的磁感应强度变小,由第一强度区间切换至第二强度区间时,确定无线耳机出盒;在磁传感器检测的磁感应强度变大,由第二强度区间切换至第一强度区间时,确定无线耳机入盒。In the first case, the magnetic field strength of the first magnetic field is greater than the magnetic field strength of the second magnetic field; therefore, the minimum magnetic induction intensity in the first intensity interval is greater than the maximum induction intensity in the second intensity interval. In this case, the above-mentioned processor can be specifically used to: determine that the wireless earphone is out of the box when the magnetic induction intensity detected by the magnetic sensor becomes smaller and switches from the first intensity interval to the second intensity interval; becomes larger, when switching from the second intensity range to the first intensity range, it is determined that the wireless earphone is in the box.
在第二种情况下,上述第一磁场的磁场强度小于第二磁场的磁场强度;因此,第一强度区域的最大磁感应强度小于第二强度区域的最小磁感应强度。在这种情况下,上述处理器具体可以用于:在磁传感器检测的磁感应强度变大,由第一强度区间切换至第二强度区间时,确定无线耳机出盒;在磁传感器检测的磁感应强度变小,由第二强度区间切换至第一强度区间时,确定无线耳机入盒。In the second case, the magnetic field strength of the first magnetic field is smaller than that of the second magnetic field; therefore, the maximum magnetic induction in the first strength region is smaller than the minimum magnetic induction in the second strength region. In this case, the above processor can be specifically used to: determine that the wireless earphone is out of the box when the magnetic induction intensity detected by the magnetic sensor becomes larger and switches from the first intensity interval to the second intensity interval; becomes smaller, when switching from the second intensity range to the first intensity range, it is determined that the wireless earphone is in the box.
在另一种可能的设计中,上述磁传感器可以是第一类磁传感器。该第一类传感器具备“在检测到磁感应强度大于一个磁感应强度门限时,向处理器输出第一信号;在检测到磁感应强度小于另一个磁感应强度门限时,向处理器输出第二信号”的特性。例如,该第一类磁传感器可以是霍尔传感器。该种可能的设计提供了磁传感器可能的产品形态。In another possible design, the above-mentioned magnetic sensor may be a first-type magnetic sensor. The first type of sensor has the characteristic of "outputting a first signal to the processor when detecting that the magnetic induction intensity is greater than a magnetic induction intensity threshold; outputting a second signal to the processor when detecting that the magnetic induction intensity is less than another magnetic induction intensity threshold" . For example, the first type of magnetic sensor may be a Hall sensor. This possible design provides a possible product form of the magnetic sensor.
结合上述第一种情况,上述第一强度区间的最小磁感应强度和第二强度区间的最大感应强度是该第一类磁传感器的两个磁感应强度门限。In combination with the above first case, the minimum magnetic induction intensity in the first intensity interval and the maximum induction intensity in the second intensity interval are the two magnetic induction intensity thresholds of the first type of magnetic sensor.
结合上述第二种情况,上述第二强度区间的最小磁感应强度和第一强度区间的最大感应强度是该第一类磁传感器的两个磁感应强度门限。In combination with the second case above, the minimum magnetic induction intensity in the second intensity interval and the maximum induction intensity in the first intensity interval are the two magnetic induction intensity thresholds of the first type of magnetic sensor.
在另一种可能的设计中,结合上述第一种情况,为了避免用户将无线耳机从耳机盒取出和放入的过程中,由于无线耳机没有完全取出或放入收纳腔而导致无线耳机检测到无线耳机频繁出盒/入盒。上述磁传感器(即霍尔传感器)还可以用于:在检测到磁感应强度在第一强度区间之后,如果检测到磁感应强度小于第一强度区域的最小磁感应强度,且大于第二强度区域的最大磁感应强度,则向处理器输出第一信号;在检测到磁感应强度在第二强度区间之后,如果检测到磁感应强度大于第二强度区域的最大磁感应强度,且小于第一强度区域的最小磁感应强度,则向处理器输出第二信号。In another possible design, in combination with the above-mentioned first situation, in order to prevent the wireless earphone from detecting the Wireless headphones come out of/in the box frequently. The above-mentioned magnetic sensor (that is, Hall sensor) can also be used: after detecting that the magnetic induction intensity is in the first intensity interval, if it is detected that the magnetic induction intensity is less than the minimum magnetic induction intensity of the first intensity area, and greater than the maximum magnetic induction intensity of the second intensity area intensity, then output the first signal to the processor; after detecting that the magnetic induction intensity is in the second intensity interval, if it is detected that the magnetic induction intensity is greater than the maximum magnetic induction intensity in the second intensity area and less than the minimum magnetic induction intensity in the first intensity area, then Output the second signal to the processor.
在另一种可能的设计中,结合上述第二种情况,为了避免用户将无线耳机从耳机盒取出和放入的过程中,由于无线耳机没有完全取出或放入收纳腔而导致无线耳机检测到无线耳机频繁出盒/入盒。上述磁传感器(即霍尔传感器)还可以用于:在检测到磁感应强度在第一强度区间之后,如果检测到磁感应强度大于第一强度区域的最大磁感应强度,且小于第二强度区域的最小磁感应强度,则向处理器输出第一信号;在检测到磁感应强度在第二强度区间之后,如果检测到磁感应强度小于第二强度区域的最小磁感应强度,且大于第一强度区域的最大磁感应强度,则向处理器输出第二信号。In another possible design, in combination with the above-mentioned second situation, in order to prevent the wireless earphone from being detected by the wireless earphone because the wireless earphone is not completely taken out Wireless headphones come out of/in the box frequently. The above-mentioned magnetic sensor (that is, the Hall sensor) can also be used: after detecting that the magnetic induction intensity is in the first intensity interval, if it is detected that the magnetic induction intensity is greater than the maximum magnetic induction intensity in the first intensity area and less than the minimum magnetic induction intensity in the second intensity area intensity, then output the first signal to the processor; after detecting that the magnetic induction intensity is in the second intensity interval, if it is detected that the magnetic induction intensity is less than the minimum magnetic induction intensity in the second intensity area and greater than the maximum magnetic induction intensity in the first intensity area, then Output the second signal to the processor.
在另一种可能的设计中,上述磁传感器是霍尔传感器时,该磁传感器可以通过输入/输出(Input/Output,IO)引脚或者中断引脚连接处理器。In another possible design, when the above-mentioned magnetic sensor is a Hall sensor, the magnetic sensor may be connected to the processor through an input/output (Input/Output, IO) pin or an interrupt pin.
该种可能的设计提供了磁传感器(如霍尔传感器)与处理器可能的耦合方式。This possible design provides a possible coupling mode between the magnetic sensor (such as a Hall sensor) and the processor.
第二方面,本申请实施例提供一种无线耳机。该无线耳机包括处理器,以及与处理器耦合的磁传感器。该磁传感器用于:检测无线耳机周围的磁场的磁感应强度;向处理器传输检测的磁感应强度。该处理器,用于在磁传感器检测的磁感应强度由第一强度区间切换至第二强度区间时,确定无线耳机出盒;在磁传感器检测的磁感应强度由第二强度区间切换至第一强度区间时,确定无线耳机入盒。In a second aspect, the embodiment of the present application provides a wireless earphone. The wireless headset includes a processor, and a magnetic sensor coupled to the processor. The magnetic sensor is used for: detecting the magnetic induction intensity of the magnetic field around the wireless earphone; and transmitting the detected magnetic induction intensity to the processor. The processor is configured to determine that the wireless earphone is out of the box when the magnetic induction intensity detected by the magnetic sensor is switched from the first intensity interval to the second intensity interval; when the magnetic induction intensity detected by the magnetic sensor is switched from the second intensity interval to the first intensity interval , make sure the wireless headset is in the box.
其中,由上述第一方面中的描述可知:磁传感器在耳机盒内与耳机盒外可以检测到不同的磁感应强度;无线耳机在耳机盒内时,磁感应强度在第一强度区间;无线耳机在耳机盒外时,磁感应强度在第二强度区间。因此,处理器可以根据磁传感器检测到的磁感应强度在第一强度区间和第二强度区间的变化,检测无线耳机的出盒和入盒。Among them, it can be seen from the description in the first aspect above that: the magnetic sensor can detect different magnetic induction intensities inside the earphone box and outside the earphone box; when the wireless earphone is in the earphone box, the magnetic induction intensity is in the first intensity range; When outside the box, the magnetic induction intensity is in the second intensity range. Therefore, the processor can detect the out-of-box and in-box of the wireless earphone according to the change of the magnetic induction intensity detected by the magnetic sensor between the first intensity interval and the second intensity interval.
其中,根据磁场的磁感应强度的变化检测无线耳机的出盒和入盒时,检测结果不会因为耳机盒和无线耳机的接触接触不良,而导致对无线耳机出盒或入盒的误判。上述检测方式是一种非接触是检测方式,可以提高无线耳机的出入盒检测的准确性。Among them, when the out-of-box and in-box of the wireless earphone are detected according to the change of the magnetic induction intensity of the magnetic field, the detection result will not cause a misjudgment of the out-of-box or in-box of the wireless earphone due to poor contact between the earphone box and the wireless earphone. The above-mentioned detection method is a non-contact detection method, which can improve the accuracy of detection of the wireless earphone in and out of the box.
在一种可能的设计中,在第一种情况下,第一磁场的磁场强度大于第二磁场的磁场强度。在第二种情况下,第一磁场的磁场强度小于第二磁场的磁场强度。其中,第一种情况和第二种情况下,第一强度区间和第二强度区间的详细描述,可以参考上述第一方面的可能的设计中的描述,本申请实施例这里不再赘述。In a possible design, in the first case, the magnetic field strength of the first magnetic field is greater than the magnetic field strength of the second magnetic field. In the second case, the magnetic field strength of the first magnetic field is smaller than the magnetic field strength of the second magnetic field. Wherein, for the detailed description of the first intensity interval and the second intensity interval in the first case and the second case, reference may be made to the description in the possible design of the first aspect above, and the embodiments of the present application will not repeat them here.
在另一种可能的设计中,上述磁传感器可以是第二类磁传感器。该第二类传感器不会判断检测到的磁感应强度是否大于某个磁感应门限或者判断磁感应强度是否在某个强度区间内;而是会直接向处理器传输检测到的磁感应强度。例如,该第二类磁传感器可以是磁力计。当然,可能还会有一部分霍尔传感器也属于第二类磁传感器,本申请实施例对此不做限制。也就是说,上述磁传感器具体可以有多种产品形态。In another possible design, the above magnetic sensor may be a second type of magnetic sensor. The second type of sensor will not judge whether the detected magnetic induction intensity is greater than a certain magnetic induction threshold or whether the magnetic induction intensity is within a certain intensity range; instead, it will directly transmit the detected magnetic induction intensity to the processor. For example, the second type of magnetic sensor may be a magnetometer. Of course, some Hall sensors may also belong to the second type of magnetic sensors, which is not limited in this embodiment of the present application. That is to say, the above-mentioned magnetic sensor may have various product forms.
在另一种可能的设计中,上述处理器还可以用于:在磁传感器检测的磁感应强度由第一强度区域切换至第三强度区间时,确定无线耳机收纳于耳机盒的收纳腔内;在磁传感器检测的磁感应强度由第二强度区域切换至第三强度区间时,确定无线耳机在耳机盒的收纳腔外。In another possible design, the above-mentioned processor can also be used to: determine that the wireless earphone is stored in the storage cavity of the earphone box when the magnetic induction intensity detected by the magnetic sensor is switched from the first intensity range to the third intensity range; When the magnetic induction detected by the magnetic sensor is switched from the second intensity range to the third intensity range, it is determined that the wireless earphone is outside the storage cavity of the earphone box.
结合上述第一种情况,上述第三强度区间的边界值为:第一强度区域的最小磁感应强度和第二强度区域的最大磁感应强度。结合上述第二种情况,上述第三强度区间的边界值为:第二强度区域的最小磁感应强度和第一强度区域的最大磁感应强度。该第三强度区间与第一强度区间没有交集,且该第三强度区间与第二强度区间没有交集。In combination with the above first case, the boundary values of the above third intensity interval are: the minimum magnetic induction intensity in the first intensity area and the maximum magnetic induction intensity in the second intensity area. In combination with the second case above, the boundary values of the third intensity interval are: the minimum magnetic induction intensity in the second intensity area and the maximum magnetic induction intensity in the first intensity area. The third intensity interval has no intersection with the first intensity interval, and the third intensity interval has no intersection with the second intensity interval.
可以理解,在用户将无线耳机从耳机盒取出和放入的过程中,磁传感器检测到的磁感应强度可能并不在上述第一强度区间或第二强度区间内。在上述取出的过程中,磁传感器检测到的磁感应强度可能会由第一强度区间先切换至第三强度区间,然后再切换至第二强度区间。在上述放入的过程中,磁传感器检测到的磁感应强度可能会由第二强度区间先切换至第三强度区间,然后再切换至第一强度区间。It can be understood that when the user takes out and puts the wireless earphone out of the earphone box, the magnetic induction intensity detected by the magnetic sensor may not be within the above-mentioned first intensity range or the second intensity range. During the above-mentioned taking-out process, the magnetic induction detected by the magnetic sensor may first switch from the first intensity range to the third intensity range, and then switch to the second intensity range. During the above-mentioned insertion process, the magnetic induction detected by the magnetic sensor may first switch from the second intensity range to the third intensity range, and then switch to the first intensity range.
采用该种可能的设计,可以避免上述取出和放入的过程中,由于无线耳机没有完全取出或放入收纳腔,使得磁传感器检测到的磁感应强度在第三强度区间而导致无线耳机检测到无线耳机频繁出盒/入盒。采用该种可能的设计,可以避免无线耳机检测到无线耳机频繁出盒/入盒,提高了无线耳机的出入盒检测的准确性。With this possible design, it is possible to avoid the above-mentioned process of taking out and putting in, because the wireless earphone is not completely taken out or put into the storage cavity, so that the magnetic induction intensity detected by the magnetic sensor is in the third intensity range, which causes the wireless earphone to detect the wireless Headphones come out/in the box frequently. With this possible design, the wireless earphone can be prevented from detecting that the wireless earphone is frequently out of the box or in the box, and the accuracy of the detection of the wireless earphone in and out of the box can be improved.
在另一种可能的设计中,上述磁传感器通过数据总线连接处理器。其中,该数据总线包括串行外设接口(serial peripheral interface,SPI)、集成电路(inter-integratedcircuit,I2C)接口或者改进的集成电路(improved inter-integrated circuit,I3C)接口。In another possible design, the magnetic sensor is connected to the processor through a data bus. Wherein, the data bus includes a serial peripheral interface (serial peripheral interface, SPI), an integrated circuit (inter-integrated circuit, I2C) interface or an improved integrated circuit (improved inter-integrated circuit, I3C) interface.
该种可能的设计提供了磁传感器(如磁力计)与处理器可能的耦合方式。This possible design provides a possible coupling mode between the magnetic sensor (such as a magnetometer) and the processor.
在第一方面或第二方面的另一种可能的设计中,结合上述第一种情况,第一强度区间的最大磁感应强度可以为无穷大,第二强度区间的最小感应强度可以为零。In another possible design of the first aspect or the second aspect, in combination with the above-mentioned first case, the maximum magnetic induction intensity in the first intensity interval may be infinite, and the minimum induction intensity in the second intensity interval may be zero.
也就是说,无线耳机在进行出入盒检测时,可以只使用两个磁感应强度门限(如第一强度区间的最小磁感应强度和第二强度区间的最大感应强度)来对比磁传感器检测的磁感应强度。That is to say, when the wireless earphone performs box entry and exit detection, it can only use two magnetic induction intensity thresholds (such as the minimum magnetic induction intensity in the first intensity interval and the maximum induction intensity in the second intensity interval) to compare the magnetic induction intensity detected by the magnetic sensor.
例如,上述第一类磁传感器可以用于:在检测的磁感应强度大于第一强度区间的最小磁感应强度时,向处理器输出第一信号;在检测的磁感应强度小于第二强度区间的最大磁感应强度时,向处理器输出第二信号。For example, the above-mentioned first type of magnetic sensor can be used to: output the first signal to the processor when the detected magnetic induction intensity is greater than the minimum magnetic induction intensity in the first intensity interval; when the detected magnetic induction intensity is less than the maximum magnetic induction intensity in the second intensity interval , outputting a second signal to the processor.
在第一方面或第二方面的另一种可能的设计中,结合上述第二种情况,第一强度区间的最小磁感应强度可以为零,第二强度区间的最大感应强度可以为无穷大。In another possible design of the first aspect or the second aspect, in combination with the above-mentioned second case, the minimum magnetic induction intensity in the first intensity interval may be zero, and the maximum induction intensity in the second intensity interval may be infinite.
也就是说,无线耳机在进行出入盒检测时,可以只使用两个磁感应强度门限(如第一强度区间的最大磁感应强度和第二强度区间的最小感应强度)来对比磁传感器检测的磁感应强度。That is to say, when the wireless earphone is detecting the entry and exit of the box, only two magnetic induction intensity thresholds (such as the maximum magnetic induction intensity in the first intensity interval and the minimum induction intensity in the second intensity interval) can be used to compare the magnetic induction intensity detected by the magnetic sensor.
例如,上述第一类磁传感器可以用于:在检测的磁感应强度小于第一强度区间的最大磁感应强度时,向处理器输出第一信号;在检测的磁感应强度大于第二强度区间的最小磁感应强度时,向处理器输出第二信号。For example, the above-mentioned first type of magnetic sensor can be used to: output the first signal to the processor when the detected magnetic induction intensity is less than the maximum magnetic induction intensity in the first intensity interval; when the detected magnetic induction intensity is greater than the minimum magnetic induction intensity in the second intensity interval , outputting a second signal to the processor.
在第一方面或第二方面的另一种可能的设计中,结合上述第一种情况,第一强度区间的最大磁感应强度可以为无穷大,第二强度区间的最小感应强度可以为零。并且,第一强度区间的最小磁感应强度可以等于第二强度区间的最大感应强度。In another possible design of the first aspect or the second aspect, in combination with the above-mentioned first case, the maximum magnetic induction intensity in the first intensity interval may be infinite, and the minimum induction intensity in the second intensity interval may be zero. Moreover, the minimum magnetic induction intensity in the first intensity interval may be equal to the maximum induction intensity in the second intensity interval.
也就是说,无线耳机在进行出入盒检测时,可以只使用一个磁感应强度门限(如第一强度区间的最小磁感应强度或第二强度区间的最大感应强度)来对比磁传感器检测的磁感应强度。That is to say, when the wireless earphone is detecting the entry and exit of the box, only one magnetic induction intensity threshold (such as the minimum magnetic induction intensity in the first intensity interval or the maximum induction intensity in the second intensity interval) can be used to compare the magnetic induction intensity detected by the magnetic sensor.
例如,上述第一类磁传感器可以用于:在检测的磁感应强度大于第一强度区间的最小磁感应强度时,向处理器输出第一信号;在检测的磁感应强度小于第一强度区间的最小磁感应强度时,向处理器输出第二信号。For example, the above-mentioned first type of magnetic sensor can be used to: output the first signal to the processor when the detected magnetic induction intensity is greater than the minimum magnetic induction intensity in the first intensity interval; , outputting a second signal to the processor.
在第一方面或第二方面的另一种可能的设计中,结合上述第二种情况,第一强度区间的最小磁感应强度可以为零,第二强度区间的最大感应强度可以为无穷大。并且,第一强度区间的最大磁感应强度可以等于第二强度区间的最小感应强度。In another possible design of the first aspect or the second aspect, in combination with the above-mentioned second case, the minimum magnetic induction intensity in the first intensity interval may be zero, and the maximum induction intensity in the second intensity interval may be infinite. Moreover, the maximum magnetic induction intensity in the first intensity interval may be equal to the minimum induction intensity in the second intensity interval.
也就是说,无线耳机在进行出入盒检测时,可以只使用一个磁感应强度门限(如第一强度区间的最大磁感应强度或第二强度区间的最小感应强度)来对比磁传感器检测的磁感应强度。That is to say, when the wireless earphone performs box entry and exit detection, only one magnetic induction intensity threshold (such as the maximum magnetic induction intensity in the first intensity interval or the minimum induction intensity in the second intensity interval) can be used to compare the magnetic induction intensity detected by the magnetic sensor.
例如,上述第一类磁传感器可以用于:在检测的磁感应强度小于第一强度区间的最大磁感应强度时,向处理器输出第一信号;在检测的磁感应强度大于第一强度区间的最大磁感应强度时,向处理器输出第二信号。For example, the above-mentioned first type of magnetic sensor can be used to: output the first signal to the processor when the detected magnetic induction intensity is less than the maximum magnetic induction intensity in the first intensity interval; when the detected magnetic induction intensity is greater than the maximum magnetic induction intensity in the first intensity interval , outputting a second signal to the processor.
第三方面,本申请实施例提供一种无线耳机系统,该无线耳机系统可以包括:上述任一种可能的设计中的无线耳机;以及具有用于收纳无线耳机的收纳腔的耳机盒。In a third aspect, the embodiment of the present application provides a wireless earphone system, and the wireless earphone system may include: a wireless earphone in any of the above possible designs; and an earphone box having a storage cavity for storing the wireless earphone.
为了使得无线耳机在盒内和盒外时,磁传感器检测到的磁感应强度的差异更加明显;上述耳机盒中还可以设置有第一磁体。In order to make the difference between the magnetic induction intensity detected by the magnetic sensor more obvious when the wireless earphone is inside and outside the box; the earphone box may also be provided with a first magnet.
其中,该第一磁体与无线耳机的磁传感器对应。其中,第一磁体与无线耳机的磁传感器对应可以体现在以下两个方面。Wherein, the first magnet corresponds to the magnetic sensor of the wireless earphone. Wherein, the correspondence between the first magnet and the magnetic sensor of the wireless earphone can be embodied in the following two aspects.
(一):该第一磁体的设置是为了使无线耳机在盒内和盒外时,磁传感器检测到的磁感应强度的差异更加明显;而不是为了实现耳机盒的其他功能(如吸附无线耳机,实现盒身与盒盖之间闭合吸附或者增强充电引脚压力等功能)。(1): The setting of the first magnet is to make the difference between the magnetic induction intensity detected by the magnetic sensor more obvious when the wireless earphone is inside and outside the box; it is not to realize other functions of the earphone box (such as absorbing the wireless earphone, Realize the closed adsorption between the box body and the box cover or enhance the pressure of the charging pin, etc.).
(二):该第一磁体在耳机盒的位置与磁传感器在无线耳机的位置对应。例如,一个无线耳机可以包括杆体,以及与杆体顶部相连的耳塞。磁传感器可以设置在无线耳机的杆体或者耳塞中。耳机盒的一个收纳腔可以分为两部分:第一腔体和第二腔体。其中,第一腔体用于收纳无线耳机的耳塞,第二腔体用于收纳无线耳机的杆体。当磁传感器设置在无线耳机的耳塞中时,第一磁体可以设置在耳机盒内、靠近耳机盒的第一腔体的位置。当磁传感器设置在无线耳机的杆体中时,第一磁体可以设置在耳机盒内、靠近耳机盒的第二腔体的位置。(2): The position of the first magnet on the earphone box corresponds to the position of the magnetic sensor on the wireless earphone. For example, a wireless headset may include a stem, and earbuds attached to the top of the stem. The magnetic sensor can be arranged in the rod body of the wireless earphone or in the earplug. A storage cavity of the earphone box can be divided into two parts: a first cavity and a second cavity. Wherein, the first cavity is used for accommodating the earplug of the wireless earphone, and the second cavity is used for accommodating the rod body of the wireless earphone. When the magnetic sensor is arranged in the earplug of the wireless earphone, the first magnet can be arranged in the earphone box at a position close to the first cavity of the earphone box. When the magnetic sensor is arranged in the rod body of the wireless earphone, the first magnet can be arranged in the earphone box, close to the second cavity of the earphone box.
附图说明Description of drawings
图1为本申请实施例提供的一种无线耳机和耳机盒的产品形态示意图;FIG. 1 is a schematic diagram of a product form of a wireless earphone and an earphone box provided by an embodiment of the present application;
图2为本申请实施例提供的另一种无线耳机和耳机盒的产品形态示意图;FIG. 2 is a schematic diagram of another wireless earphone and an earphone box provided by the embodiment of the present application;
图3为本申请实施例提供的一种无线耳机的耳机本体的硬件结构示意图;FIG. 3 is a schematic diagram of the hardware structure of the earphone body of a wireless earphone provided by the embodiment of the present application;
图4A为本申请实施例提供的另一种无线耳机和耳机盒的产品形态示意图;Fig. 4A is a schematic diagram of another wireless earphone and an earphone box provided by the embodiment of the present application;
图4B为本申请实施例提供的另一种无线耳机和耳机盒的产品形态示意图;Fig. 4B is a schematic diagram of another wireless earphone and an earphone box provided by the embodiment of the present application;
图4C为本申请实施例提供的一种无线耳机的结构示意图;FIG. 4C is a schematic structural diagram of a wireless earphone provided by an embodiment of the present application;
图4D为本申请实施例提供的一种无线耳机的耳机本体的产品形态示意图;FIG. 4D is a schematic diagram of a product form of an earphone body of a wireless earphone provided in an embodiment of the present application;
图5A为本申请实施例提供的一种霍尔传感器输出电平与磁感应强度的变化示意图;FIG. 5A is a schematic diagram of changes in the output level and magnetic induction intensity of a Hall sensor provided by the embodiment of the present application;
图5B为本申请实施例提供的另一种霍尔传感器输出电平与磁感应强度的变化示意图;FIG. 5B is a schematic diagram of another Hall sensor output level and magnetic induction intensity change provided by the embodiment of the present application;
图6A为本申请实施例提供的另一种霍尔传感器输出电平与磁感应强度的变化示意图;FIG. 6A is a schematic diagram of another Hall sensor output level and magnetic induction intensity change provided by the embodiment of the present application;
图6B为本申请实施例提供的另一种霍尔传感器输出电平与磁感应强度的变化示意图;FIG. 6B is a schematic diagram of another Hall sensor output level and magnetic induction intensity change provided by the embodiment of the present application;
图7A为本申请实施例提供的一种磁力计检测的磁感应强度的变化示意图;FIG. 7A is a schematic diagram of changes in magnetic induction detected by a magnetometer provided in an embodiment of the present application;
图7B为本申请实施例提供的另一种磁力计检测的磁感应强度的变化示意图;FIG. 7B is a schematic diagram of changes in magnetic induction detected by another magnetometer provided in the embodiment of the present application;
图8为本申请实施例提供的一种无线耳机的出入盒检测方法流程图。FIG. 8 is a flow chart of a method for detecting the entry and exit of a wireless earphone provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The following will describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them.
以下,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”等的特征可以明示或者隐含地包括一个或者更多个该特征。Hereinafter, the terms "first", "second", etc. are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first", "second", etc. may expressly or implicitly include one or more of that feature.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“设置”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that unless otherwise specified and limited, the terms "set", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection. Connected, or integrally connected; For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood in specific situations.
无线耳机可以与手机、笔记本电脑、手表等电子设备配合使用,处理电子设备的媒体、通话等音频业务,以及其他一些数据业务。例如,该音频业务可以包括为用户播放音乐、录音、视频文件中的声音、游戏中的背景音乐、来电提示音等媒体业务;还可以包括在电话、微信语音消息、音频通话、视频通话、游戏、语音助手等通话业务场景下,为用户播放对端的语音数据,或采集用户的语音数据发送给对端等。Wireless headsets can be used in conjunction with electronic devices such as mobile phones, laptops, and watches to handle audio services such as media and calls of electronic devices, as well as other data services. For example, the audio service can include media services such as playing music for users, recording, sound in video files, background music in games, and call notification sounds; , voice assistant and other call service scenarios, play the voice data of the peer end for the user, or collect the voice data of the user and send it to the peer end.
无线耳机与上述电子设备配合使用为用户提供各项服务的前提是:无线耳机被用户从耳机盒中取出。其中,当无线耳机被用户从耳机盒中被取出时,需要及时检测到该无线耳机出盒,才可以及时启动无线耳机的相关功能(如蓝牙功能和佩戴检测功能等)。同样的,当无线耳机被放入耳机盒中时,需要及时检测到该无线耳机的入盒,才可以及时关闭无线耳机的上述功能,以节省无线耳机的电量。由此可见,无线耳机的出入盒检测对无线耳机而言尤为重要。The prerequisite for the wireless earphones to be used in conjunction with the above-mentioned electronic devices to provide users with various services is that the wireless earphones are taken out of the earphone box by the user. Wherein, when the wireless earphone is taken out of the earphone box by the user, it is necessary to detect that the wireless earphone is out of the box in time, and then the relevant functions of the wireless earphone (such as the Bluetooth function and the wearing detection function, etc.) can be started in time. Similarly, when the wireless earphone is put into the earphone box, it is necessary to detect the entry of the wireless earphone in time, so that the above-mentioned functions of the wireless earphone can be turned off in time, so as to save the power of the wireless earphone. It can be seen that the box detection of wireless earphones is particularly important for wireless earphones.
本申请实施例提供一种无线耳机及无线耳机系统,该无线耳机可以通过非接触式的检测方式,检测无线耳机的出盒和入盒。如此,可以避免由于无线耳机和耳机盒上的电连接器接触不良,而导致对无线耳机出盒或入盒的误判。通过本申请实施例的方案,可以提高无线耳机的出入盒检测的准确性。Embodiments of the present application provide a wireless earphone and a wireless earphone system, and the wireless earphone can detect out-of-box and in-box of the wireless earphone through a non-contact detection method. In this way, a misjudgment of the wireless earphone out of the box or in the box due to poor contact between the wireless earphone and the electrical connector on the earphone box can be avoided. Through the solutions of the embodiments of the present application, the accuracy of box entry and exit detection of wireless earphones can be improved.
请参考图1,其示出本申请实施例提供的一种无线耳机系统的示意图。如图1所示,无线耳机系统100可以包括无线耳机11和耳机盒12。Please refer to FIG. 1 , which shows a schematic diagram of a wireless earphone system provided by an embodiment of the present application. As shown in FIG. 1 , a wireless earphone system 100 may include a wireless earphone 11 and an earphone box 12 .
其中,无线耳机11包括可以配合用户的左、右耳使用的一对耳机本体,如一对耳机本体111。其中,该无线耳机11具体可以为耳塞式,挂耳式或入耳式耳机等。例如,该无线耳机101可以是真无线立体声(true wireless stereo,TWS)耳机。Wherein, the wireless earphone 11 includes a pair of earphone bodies, such as a pair of earphone bodies 111 , which can be used with the user's left and right ears. Wherein, the wireless earphone 11 may specifically be an earplug type, an ear-hook type or an in-ear type earphone or the like. For example, the wireless earphone 101 may be a true wireless stereo (true wireless stereo, TWS) earphone.
耳机盒12可以用于收纳耳机本体111。例如,耳机盒12包括两个收纳腔121。收纳腔121用于收纳耳机本体111。The earphone box 12 can be used to accommodate the earphone body 111 . For example, the earphone box 12 includes two receiving cavities 121 . The receiving cavity 121 is used for receiving the earphone body 111 .
需要说明的是,图1仅以举例方式给出无线耳机系统的一种产品形态实例示意图,本申请实施例提供的无线耳机包括但不限于图1所示的无线耳机11,耳机盒包括但不限于图1所示的耳机盒12。例如,本申请实施例提供的无线耳机系统还可以是图2所示的无线耳机系统200。如图2所示,无线耳机系统200包括无线耳机21和耳机盒22。无线耳机21包括两个耳机本体211。耳机盒22包括用于收纳耳机本体211的收纳腔。当然,一些无线耳机也可以仅包括一个耳机本体,本申请实施例这里不予一一介绍。It should be noted that Fig. 1 shows a schematic diagram of a product form example of a wireless earphone system by way of example only. The wireless earphone provided in the embodiment of the present application includes but not limited to the wireless earphone 11 shown in Fig. 1 , and the earphone box includes but not It is limited to the earphone case 12 shown in FIG. 1 . For example, the wireless earphone system provided in the embodiment of the present application may also be the wireless earphone system 200 shown in FIG. 2 . As shown in FIG. 2 , the wireless earphone system 200 includes a wireless earphone 21 and an earphone box 22 . The wireless earphone 21 includes two earphone bodies 211 . The earphone case 22 includes a storage cavity for storing the earphone body 211 . Of course, some wireless earphones may also include only one earphone body, which will not be introduced here in this embodiment of the present application.
示例性的,图3示出了一种无线耳机的耳机本体300的结构示意图。该耳机本体300可以包括处理器301、存储器302、无线通信模块303、音频模块304、电源模块305、多个输入/输出接口306、传感器模块307等。该处理器301可以包括一个或多个接口,用于与耳机本体300的其他部件相连。其中,该一个或多个接口可以包括:IO接口(也称为IO引脚)、中断引脚和数据总线接口等。其中,数据总线接口可以包括:SPI接口、I2C接口和I3C接口中的一个或多个。例如,本申请实施例中,处理器301可以通过IO引脚、中断引脚或数据总线接口连接磁传感器。该耳机本体300通过耳机盒进行收纳。Exemplarily, FIG. 3 shows a schematic structural diagram of an earphone body 300 of a wireless earphone. The earphone body 300 may include a processor 301, a memory 302, a wireless communication module 303, an audio module 304, a power module 305, a plurality of input/output interfaces 306, a sensor module 307, and the like. The processor 301 may include one or more interfaces for connecting with other components of the earphone body 300 . Wherein, the one or more interfaces may include: an IO interface (also referred to as an IO pin), an interrupt pin, a data bus interface, and the like. Wherein, the data bus interface may include: one or more of an SPI interface, an I2C interface, and an I3C interface. For example, in this embodiment of the present application, the processor 301 may be connected to the magnetic sensor through an IO pin, an interrupt pin or a data bus interface. The earphone body 300 is stored in an earphone box.
其中,存储器302可以用于存储程序代码,如用于耳机本体300进行充电,耳机本体300与其他电子设备进行无线配对连接,或耳机本体300与电子设备进行无线通信的程序代码等。存储器302中还可以存储有用于唯一标识无线耳机的蓝牙地址。另外,该存储器302中还可以存储有与无线耳机之前成功配对过的电子设备的连接数据。例如,该连接数据可以为与该无线耳机成功配对过的电子设备的蓝牙地址。基于该连接数据,无线耳机能够与该电子设备自动配对,而不必配置与其之间的连接,如进行合法性验证等。上述蓝牙地址可以为媒体访问控制(media access control,MAC)地址。Wherein, the memory 302 can be used to store program codes, such as program codes for charging the earphone body 300 , wireless pairing connection between the earphone body 300 and other electronic devices, or wireless communication between the earphone body 300 and electronic devices. A Bluetooth address for uniquely identifying the wireless headset may also be stored in the memory 302 . In addition, the memory 302 may also store connection data of an electronic device that has been successfully paired with the wireless earphone before. For example, the connection data may be the Bluetooth address of the electronic device successfully paired with the wireless headset. Based on the connection data, the wireless earphone can be automatically paired with the electronic device without having to configure the connection therebetween, such as performing legality verification. The above bluetooth address may be a media access control (media access control, MAC) address.
处理器301可以用于执行上述应用程序代码,调用相关模块以实现本申请实施例中耳机本体300的功能。例如,实现耳机本体300的充电功能,无线通信功能,音频数据播放功能,以及出入盒检测功能等。处理器301可以包括一个或多个处理单元,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器301中。处理器301具体可以是集成的控制芯片,也可以由包括各种有源和/或无源部件的电路组成,且该电路被配置为执行本申请实施例描述的属于处理器301的功能。其中,耳机本体300的处理器可以是微处理器。The processor 301 can be used to execute the above application codes, and call related modules to realize the functions of the earphone body 300 in the embodiment of the present application. For example, the charging function of the earphone body 300 , the wireless communication function, the audio data playback function, and the box entry and exit detection function are realized. The processor 301 may include one or more processing units, and different processing units may be independent devices, or may be integrated in one or more processors 301 . Specifically, the processor 301 may be an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to execute the functions belonging to the processor 301 described in the embodiments of this application. Wherein, the processor of the earphone body 300 may be a microprocessor.
上述传感器模块307可以包括距离传感器和/或接近光传感器。例如,如图3所示,传感器模块307包括接近光传感器和/或距离传感器。处理器301可以根据距离传感器或接近光传感器采集的数据,确定耳机本体300是否被用户佩戴。例如,处理器301可以利用距离传感器来采集的数据检测耳机本体300附近是否有物体,从而确定耳机本体300是否被用户佩戴。在确定耳机本体300被佩戴时,处理器301可以打开耳机本体300的扬声器。在一些实施例中,该耳机本体300还可以包括骨传导传感器,结合成骨传导耳机。利用该骨传导传感器,处理器301可以获取声部振动骨块的振动信号,解析出语音信号,实现语音功能。The aforementioned sensor module 307 may include a distance sensor and/or a proximity light sensor. For example, as shown in FIG. 3 , the sensor module 307 includes a proximity sensor and/or a distance sensor. The processor 301 can determine whether the earphone body 300 is worn by the user according to the data collected by the distance sensor or the proximity light sensor. For example, the processor 301 can use the data collected by the distance sensor to detect whether there is an object near the earphone body 300, so as to determine whether the earphone body 300 is worn by the user. When it is determined that the earphone body 300 is worn, the processor 301 may turn on the speaker of the earphone body 300 . In some embodiments, the earphone body 300 may also include a bone conduction sensor, combined to form a bone conduction earphone. Using the bone conduction sensor, the processor 301 can acquire the vibration signal of the vibrating bone block of the vocal part, analyze the voice signal, and realize the voice function.
再例如,耳机本体300的外表面还可以包括:触摸传感器,用于检测用户的触摸操作;指纹传感器,用于检测用户指纹,识别用户身份等;环境光传感器,可以根据感知的环境光的亮度,自适应调节一些参数(如音量大小);以及其他一些传感器。For another example, the outer surface of the earphone body 300 may also include: a touch sensor for detecting the user's touch operation; a fingerprint sensor for detecting the user's fingerprint and identifying the user's identity; , adaptively adjust some parameters (such as volume); and some other sensors.
需要强调的是,上述传感器模块307还包括磁传感器307A(例如,图4A或图4B所示的耳机本体41包括磁传感器411)。磁传感器307A用于检测耳机本体300周围的磁场的磁感应强度。处理器301可以执行本申请实例的方法,根据磁传感器检测到的磁感应强度的变化,检测耳机本体300的出盒或者入盒。例如,该磁传感器可以是霍尔传感器或磁力计。It should be emphasized that the sensor module 307 also includes a magnetic sensor 307A (for example, the earphone body 41 shown in FIG. 4A or 4B includes a magnetic sensor 411 ). The magnetic sensor 307A is used to detect the magnetic induction intensity of the magnetic field around the earphone body 300 . The processor 301 may execute the method of the example of the present application, and detect the out-of-box or in-box of the earphone body 300 according to the change of the magnetic induction intensity detected by the magnetic sensor. For example, the magnetic sensor may be a Hall sensor or a magnetometer.
无线通信模块303可以用于,支持耳机本体300与其他电子设备或耳机盒之间包括蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),调频(frequency modulation,FM),近距离无线通信技术(near fieldcommunication,NFC),红外技术(infrared,IR)等无线通信的数据交换。在一些实施例中,该无线通信模块303可以为蓝牙芯片。耳机本体300可以通过该蓝牙芯片与其他电子设备的蓝牙芯片之间进行配对并建立无线连接,以通过该无线连接实现耳机本体300和其他电子设备之间的无线通信。例如,本申请实施例中,无线通信模块303可以用于在处理器301确定耳机本体300出盒后,向与耳机本体300建立了无线连接(如蓝牙连接)的电子设备发送耳机盒的剩余电量。The wireless communication module 303 can be used to support communication between the earphone body 300 and other electronic devices or earphone boxes, including Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication data exchange. In some embodiments, the wireless communication module 303 may be a Bluetooth chip. The earphone body 300 can pair and establish a wireless connection with the Bluetooth chip of other electronic devices through the Bluetooth chip, so as to realize wireless communication between the earphone body 300 and other electronic devices through the wireless connection. For example, in the embodiment of the present application, the wireless communication module 303 can be used to send the remaining power of the earphone box to the electronic device that has established a wireless connection (such as a Bluetooth connection) with the earphone body 300 after the processor 301 determines that the earphone body 300 is out of the box. .
另外,无线通信模块303还可以包括天线,无线通信模块303经由天线接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器301。无线通信模块303还可以从处理器301接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。In addition, the wireless communication module 303 may further include an antenna. The wireless communication module 303 receives electromagnetic waves via the antenna, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 301 . The wireless communication module 303 can also receive the signal to be transmitted from the processor 301, perform frequency modulation on it, amplify it, and convert it into electromagnetic wave and radiate it through the antenna.
音频模块304可以用于管理音频数据,实现耳机本体300输入和输出音频信号。例如,音频模块304可以从无线通信模块303获取音频信号,或者向无线通信模块303传递音频信号,实现通过耳机本体接打电话、播放音乐、启动/关闭与耳机连接的电子设备的语音助手、接收/发送用户的语音数据等功能。音频模块304可以包括用于输出音频信号的扬声器(或称听筒、受话器)组件,麦克风(或称话筒,传声器),与麦克风相配合的麦克收音电路等。扬声器可以用于将音频电信号转换成声音信号并播放。麦克风可以用于将声音信号转换为音频电信号。其中,音频模块304(如扬声器,也称为“喇叭”)中包括磁体(如磁铁)。耳机本体300周围的磁场包括该磁体产生的磁场。该磁体产生的磁场会影响耳机本体300的磁传感器采集的磁感应强度的大小。The audio module 304 can be used to manage audio data, and realize the input and output of audio signals from the earphone body 300 . For example, the audio module 304 can obtain audio signals from the wireless communication module 303, or transmit audio signals to the wireless communication module 303, so as to realize making and receiving calls, playing music, starting/closing the voice assistant of the electronic device connected to the earphone, receiving /Send the user's voice data and other functions. The audio module 304 may include a speaker (or earpiece, receiver) assembly for outputting audio signals, a microphone (or microphone, microphone), a microphone receiving circuit matched with the microphone, and the like. Loudspeakers can be used to convert audio electrical signals into sound signals and play them back. Microphones can be used to convert sound signals into audio electrical signals. Wherein, the audio module 304 (such as a speaker, also referred to as a “speaker”) includes a magnet (such as a magnet). The magnetic field around the earphone body 300 includes the magnetic field generated by the magnet. The magnetic field generated by the magnet will affect the magnitude of the magnetic induction collected by the magnetic sensor of the earphone body 300 .
电源模块305,可以用于提供耳机本体300的系统电源,为耳机本体300各模块供电;支持耳机本体300接收充电输入等。电源模块305可以包括电源管理单元(powermanagement unit,PMU)和电池(即第一电池)。其中,电源管理单元可以包括充电电路、压降调节电路、保护电路、电量测量电路等。充电电路可以接收外部的充电输入。压降调节电路可以将充电电路输入的电信号变压后输出给电池以完成对电池充电,还可以将电池输入的电信号变压后输出给音频模块304、无线通信模块303等其他模块。保护电路可以用于防止电池过充、过放、短路或过流等。在一些实施例中,电源模块305还可以包括无线充电线圈,用于对耳机本体300进行无线充电。另外,电源管理单元还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。The power supply module 305 can be used to provide the system power of the earphone body 300, supply power to each module of the earphone body 300, and support the earphone body 300 to receive charging input, etc. The power module 305 may include a power management unit (power management unit, PMU) and a battery (ie, a first battery). Wherein, the power management unit may include a charging circuit, a voltage drop regulating circuit, a protection circuit, a power measurement circuit, and the like. The charging circuit can receive an external charging input. The voltage drop regulating circuit can transform the electrical signal input by the charging circuit and output it to the battery to complete charging of the battery, and can also transform the electrical signal input by the battery and output it to other modules such as the audio module 304 and the wireless communication module 303 . The protection circuit can be used to prevent the battery from overcharging, overdischarging, short circuit or overcurrent, etc. In some embodiments, the power module 305 may also include a wireless charging coil for wirelessly charging the earphone body 300 . In addition, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
多个输入/输出接口306,可以用于提供耳机本体300与耳机盒之间进行充电或通信的有线连接。在一些实施例中,输入/输出接口306可以包括耳机电连接器,该耳机电连接器用于导通和传输电流。当耳机本体300放置于耳机盒的收纳腔内时,耳机本体300可以通过耳机电连接器与耳机盒中的电连接器建立电连接(例如耳机电连接器与耳机盒中的电连接器直接接触)。在该电连接建立后,耳机盒可以通过耳机电连接器和耳机盒中的电连接器的电流传输功能为耳机本体300中的电池充电。例如,该耳机电连接器可以为pogo pin、弹簧针、弹片、导电块、导电贴片、导电片、插针、插头、接触垫、插孔或插座等,本申请实施例对电连接器的具体类型不予限定。在另一些实施例中,在该电连接建立后,耳机本体300还可以与耳机盒进行数据通信,例如可以接收来自耳机盒的配对指令。Multiple input/output interfaces 306 can be used to provide wired connections for charging or communication between the earphone body 300 and the earphone box. In some embodiments, the input/output interface 306 may include an earphone electrical connector for conducting and transmitting electric current. When the earphone body 300 is placed in the receiving chamber of the earphone box, the earphone body 300 can establish an electrical connection with the electrical connector in the earphone box through the earphone electrical connector (for example, the earphone electrical connector directly contacts the electrical connector in the earphone box) ). After the electrical connection is established, the earphone box can charge the battery in the earphone body 300 through the current transmission function of the earphone electrical connector and the electrical connector in the earphone box. For example, the earphone electrical connector can be a pogo pin, a pogo pin, a shrapnel, a conductive block, a conductive patch, a conductive sheet, a pin, a plug, a contact pad, a jack or a socket, etc. The specific type is not limited. In other embodiments, after the electrical connection is established, the earphone body 300 can also perform data communication with the earphone box, for example, can receive a pairing instruction from the earphone box.
可以理解的是,本申请实施例示意的结构并不构成对耳机本体300的具体限定。其可以具有比图3示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。例如,上述耳机本体的壳体上还可以设置有用于吸附耳机盒,使得耳机本体收纳于该收纳腔内的磁体(如磁铁)。耳机本体300周围的磁场包括该磁体产生的磁场。该磁体产生的磁场会影响耳机本体300的磁传感器采集的磁感应强度的大小。又例如,在耳机本体300的外表面还可以包括按键、指示灯(可以指示电量、呼入/呼出、配对模式等状态)、显示屏(可以提示用户相关信息)、防尘网(可以配合听筒使用)等部件。其中,该按键可以是物理按键或触摸按键(与触摸传感器配合使用)等,用于触发开机、关机、暂停、播放、录音、开始充电、停止充电等操作。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the earphone body 300 . It may have more or fewer components than shown in FIG. 3 , may combine two or more components, or may have a different configuration of components. For example, the housing of the earphone body may also be provided with a magnet (such as a magnet) for absorbing the earphone box so that the earphone body is stored in the storage cavity. The magnetic field around the earphone body 300 includes the magnetic field generated by the magnet. The magnetic field generated by the magnet will affect the magnitude of the magnetic induction collected by the magnetic sensor of the earphone body 300 . For another example, the outer surface of the earphone body 300 can also include buttons, indicator lights (which can indicate the status of battery power, incoming/outgoing calls, pairing mode, etc.), display screens (which can prompt the user for relevant information), dust-proof nets (which can be used with the handset Use) and other components. Wherein, the key may be a physical key or a touch key (used in conjunction with a touch sensor), etc., and is used to trigger operations such as power on, power off, pause, play, record, start charging, stop charging, etc.
图3示出的各种部件可以在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The various components shown in Figure 3 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing or application specific integrated circuits.
上述图1中示出了用于收纳无线耳机11的耳机盒12的示意图。上述图2中示出了用于收纳无线耳机21的耳机盒22的示意图。在一些实施例中,耳机盒内部可以具有一个或多个磁体。例如,该一个或多个磁体可以包括:用于吸附无线耳机(如无线耳机的耳机本体),使得无线耳机收纳于收纳腔内的磁体;用于耳机盒的盒身与盒盖闭合吸附的磁体;以及第一磁体等。该第一磁体与无线耳机的磁传感器对应。例如,如图4A或图4B所示,耳机盒42中包括两个第一磁体421。其中,耳机本体41收纳于耳机盒42的收纳腔内时,耳机本体41周围的磁场包括上述一个或多个磁体所产生的磁场。该一个或多个磁体产生的磁场会影响耳机本体41的磁传感器采集的磁感应强度的大小。The schematic diagram of the earphone case 12 for accommodating the wireless earphone 11 is shown in FIG. 1 above. The schematic diagram of the earphone case 22 for storing the wireless earphone 21 is shown in FIG. 2 above. In some embodiments, there may be one or more magnets inside the earphone case. For example, the one or more magnets may include: a magnet for absorbing the wireless earphone (such as the earphone body of the wireless earphone), so that the wireless earphone is stored in the storage cavity; ; and the first magnet, etc. The first magnet corresponds to the magnetic sensor of the wireless earphone. For example, as shown in FIG. 4A or FIG. 4B , the earphone box 42 includes two first magnets 421 . Wherein, when the earphone body 41 is stored in the storage cavity of the earphone box 42 , the magnetic field around the earphone body 41 includes the magnetic field generated by the above-mentioned one or more magnets. The magnetic field generated by the one or more magnets will affect the magnitude of the magnetic induction collected by the magnetic sensor of the earphone body 41 .
耳机盒还可以包括盒电源模块和多个输入/输出接口。该盒电源模块可以为耳机盒中的电气部件供电,该盒电源模块可以包括盒电池(即第二电池)。在一些实施例中,该输入/输出接口可以为盒电连接器,该盒电连接器与盒电源模块的电极电连接,可以用于导通和传输电流。耳机盒中可以包括分别与两个耳机本体相对应的两对盒电连接器。当耳机盒中的一对盒电连接器,分别与耳机本体中的两个耳机电连接器建立电连接后,耳机盒可以通过自身的盒电池为耳机本体中的电池充电。The headset box may also include a box power supply module and multiple input/output interfaces. The case power supply module may provide power to electrical components in the earphone case, and the case power supply module may include a case battery (ie, a second battery). In some embodiments, the input/output interface can be a box electrical connector, which is electrically connected to the electrodes of the box power supply module and can be used to conduct and transmit current. The earphone box may include two pairs of box electrical connectors respectively corresponding to the two earphone bodies. When the pair of box electrical connectors in the earphone box are respectively electrically connected to the two earphone electrical connectors in the earphone body, the earphone box can charge the battery in the earphone body through its own box battery.
在另一些实施例中,该耳机盒上可以设置有至少一个触摸控件,可以用于触发无线耳机进行配对复位或对无线耳机进行充电等功能。耳机盒还可以设置有一个或多个电量指示灯,以向用户提示耳机盒中电池的电量大小,以及耳机盒中每个耳机本体中电池的电量大小。In some other embodiments, at least one touch control may be provided on the earphone box, which may be used to trigger functions such as pairing and resetting of the wireless earphone or charging of the wireless earphone. The earphone box can also be provided with one or more power indicator lights, to prompt the user the power level of the battery in the earphone box, and the power level of the batteries in each earphone body in the earphone box.
在另一些实施例中,耳机盒内还可以包括处理器,存储器等部件。该存储器可以用于存储应用程序代码,并由耳机盒的处理器来控制执行,以实现耳机盒的各项功能。例如,耳机盒的处理器通过执行存储在存储器中的应用程序代码,在无线耳机入盒,且耳机盒的盖子被盖合后向无线耳机充电等。In some other embodiments, the earphone box may further include components such as a processor and a memory. The memory can be used to store application program codes, which are controlled and executed by the processor of the earphone box, so as to realize various functions of the earphone box. For example, the processor of the earphone box executes the application code stored in the memory to charge the wireless earphone after the wireless earphone is put into the box and the cover of the earphone box is closed.
此外,该耳机盒上还可以设置有充电接口,用于耳机盒为自身的电池进行充电。耳机盒内还可以包括无线充电线圈,用于对耳机盒自身的电池进行无线充电。可以理解的是,该耳机盒还可以包括其他部件,此处不再一一说明。In addition, the earphone box can also be provided with a charging interface, which is used for the earphone box to charge its own battery. The earphone box may also include a wireless charging coil for wirelessly charging the battery of the earphone box itself. It can be understood that the earphone box may also include other components, which will not be described one by one here.
以下实施例中的无线耳机和无线耳机的出入盒检测方法均可以在具有上述硬件结构的无线耳机中实现。Both the wireless earphones and the box-entry detection methods of the wireless earphones in the following embodiments can be implemented in the wireless earphones with the above hardware structure.
示例性的,以下实施例中,以图4A或图4B所示的无线耳机(包括耳机本体41)和耳机盒42为例,结合附图对本申请实施例的实施方式进行介绍。Exemplarily, in the following embodiments, the wireless earphone (including the earphone body 41 ) and the earphone box 42 shown in FIG. 4A or 4B are taken as examples, and the implementation of the embodiments of the present application will be described in conjunction with the accompanying drawings.
本申请实施例提供一种无线耳机。如图4C所示,图4A或图4B所示的无线耳机的耳机本体41可以包括:磁传感器411和处理器412。磁传感器411与处理器412耦合。可以理解,当耳机本体41是图3所示的耳机本体300时,磁传感器411可以是图3所示的磁传感器307A,处理器412可以是图3所示的处理器301。An embodiment of the present application provides a wireless earphone. As shown in FIG. 4C , the earphone body 41 of the wireless earphone shown in FIG. 4A or 4B may include: a magnetic sensor 411 and a processor 412 . Magnetic sensor 411 is coupled with processor 412 . It can be understood that when the earphone body 41 is the earphone body 300 shown in FIG. 3 , the magnetic sensor 411 may be the magnetic sensor 307A shown in FIG. 3 , and the processor 412 may be the processor 301 shown in FIG. 3 .
示例性的,磁传感器411通过处理器412的IO引脚或者中断引脚与处理器412耦合。或者,磁传感器411可以通过数据总线与处理器412耦合。例如,该数据总线可以是SPI总线、I2C总线或I3C总线中的至少一个。上述处理器412可以是微处理器。微处理器是由一片或少数几片大规模集成电路组成的中央处理器。Exemplarily, the magnetic sensor 411 is coupled to the processor 412 through an IO pin or an interrupt pin of the processor 412 . Alternatively, magnetic sensor 411 may be coupled to processor 412 via a data bus. For example, the data bus may be at least one of an SPI bus, an I2C bus or an I3C bus. The aforementioned processor 412 may be a microprocessor. A microprocessor is a central processing unit composed of one or a few large-scale integrated circuits.
本申请实施例这里对上述磁传感器411进行说明。In this embodiment of the present application, the above-mentioned magnetic sensor 411 is described here.
上述磁传感器411可以是第一类磁传感器(如霍尔传感器)或者第二类磁传感器(如磁力计)。The above-mentioned magnetic sensor 411 may be a first-type magnetic sensor (such as a Hall sensor) or a second-type magnetic sensor (such as a magnetometer).
第一类磁传感器具备以下特性:(1)用于检测周围的磁场的磁感应强度;(2)在检测到磁感应强度大于一个磁感应强度门限(称为第一强度门限)时,向处理器输出第一信号;在检测到磁感应强度小于另一个磁感应强度门限(称为第二强度门限)时,向处理器输出第二信号;(3)第一强度门限和第二强度门限是固定的,由磁传感器的硬件结构决定。其中,上述第一信号是高电平,第二信号是低电平;或者,第一信号是低电平,第二信号是高电平。由于上述第一类磁传感器的磁感应强度门限由磁传感器的硬件结构决定;因此,第一类磁传感器也可以称为硬件门限磁传感器。The first type of magnetic sensor has the following characteristics: (1) for detecting the magnetic induction intensity of the surrounding magnetic field; (2) when the magnetic induction intensity is detected to be greater than a magnetic induction intensity threshold (called the first intensity threshold), output the first intensity threshold to the processor A signal; when detecting that the magnetic induction intensity is less than another magnetic induction intensity threshold (called the second intensity threshold), a second signal is output to the processor; (3) the first intensity threshold and the second intensity threshold are fixed, determined by the magnetic induction The hardware structure of the sensor is determined. Wherein, the above-mentioned first signal is at a high level, and the second signal is at a low level; or, the first signal is at a low level, and the second signal is at a high level. Since the magnetic induction intensity threshold of the first type of magnetic sensor is determined by the hardware structure of the magnetic sensor; therefore, the first type of magnetic sensor can also be called a hardware threshold magnetic sensor.
第二类磁传感器具备以下特性:(a)用于检测周围的磁场的磁感应强度;(b)向处理器传输检测到的磁感应强度。也就是说,第二类磁传感器检测到磁感应强度后,不会采用磁感应强度门限对磁感应强度的大小进行判定,而是直接向处理器传输检测到的磁感应强度。本申请实施例中,使用第二类磁传感器进行出入盒检测时,所采用的磁感应强度门限是通过软件设置的,与磁传感器的硬件结构无关;因此,第二类磁传感器也可以称为软件门限磁传感器。The second type of magnetic sensor has the following characteristics: (a) for detecting the magnetic induction of the surrounding magnetic field; (b) transmitting the detected magnetic induction to the processor. That is to say, after the second type of magnetic sensor detects the magnetic induction intensity, it does not use the magnetic induction intensity threshold to determine the magnitude of the magnetic induction intensity, but directly transmits the detected magnetic induction intensity to the processor. In the embodiment of the present application, when the second type of magnetic sensor is used for box entry and exit detection, the magnetic induction intensity threshold used is set by software and has nothing to do with the hardware structure of the magnetic sensor; therefore, the second type of magnetic sensor can also be called software Threshold magnetic sensor.
示例性的,当磁传感器411是第一类磁传感器(如霍尔传感器)时,磁传感器411可以通过处理器412的IO引脚或者中断引脚与处理器412耦合。当磁传感器411是第二类磁传感器(如磁力计)时,磁传感器411可以通过数据总线与处理器412耦合。例如,该数据总线可以是SPI总线、I2C总线或I3C总线中的至少一个。Exemplarily, when the magnetic sensor 411 is a first-type magnetic sensor (such as a Hall sensor), the magnetic sensor 411 may be coupled to the processor 412 through an IO pin or an interrupt pin of the processor 412 . When the magnetic sensor 411 is a second type of magnetic sensor (such as a magnetometer), the magnetic sensor 411 can be coupled with the processor 412 through a data bus. For example, the data bus may be at least one of an SPI bus, an I2C bus or an I3C bus.
以下对本申请实施例中磁感应强度的第一强度区间和第二强度区间进行说明。The first intensity interval and the second intensity interval of the magnetic induction intensity in the embodiment of the present application will be described below.
(1)第一强度区间。(1) The first intensity interval.
其中,耳机主体41收纳在耳机盒42的收纳腔内时,耳机主体41周围的磁场是第一磁场。磁传感器(如磁传感器411)在该第一磁场检测的磁感应强度在第一强度区间。Wherein, when the earphone main body 41 is stored in the storage cavity of the earphone box 42 , the magnetic field around the earphone main body 41 is the first magnetic field. The magnetic induction intensity detected by the magnetic sensor (such as the magnetic sensor 411 ) in the first magnetic field is within the first intensity range.
示例性的,该第一磁场至少可以包括:耳机本体41中的磁体产生磁场和耳机盒42中的磁体产生的磁场,即耳机本体41中的磁体和耳机盒42中的磁体产生的合磁场。Exemplarily, the first magnetic field may at least include: the magnetic field generated by the magnet in the earphone body 41 and the magnetic field generated by the magnet in the earphone box 42, that is, the resultant magnetic field generated by the magnet in the earphone body 41 and the magnet in the earphone box 42.
示例性的,耳机本体41中的磁体可以包括:扬声器(也称为“喇叭”)中的磁体。可选的,耳机本体41中的磁体还可以包括:用于吸附耳机盒42使得耳机本体41收纳于耳机盒42的收纳腔内的磁体。Exemplarily, the magnet in the earphone body 41 may include: a magnet in a speaker (also referred to as a "speaker"). Optionally, the magnet in the earphone body 41 may also include: a magnet for absorbing the earphone box 42 so that the earphone body 41 is stored in the storage cavity of the earphone box 42 .
耳机盒42中的磁体可以包括以下一个或多个磁体,如用于吸附耳机本体41使得耳机本体41收纳于耳机盒42的收纳腔内的磁体;用于盒身与盒盖之间闭合吸附的磁体;以及用于增强耳机盒42与耳机本体41充电引脚压力的磁体。其中,耳机盒42与耳机本体41充电引脚可以是耳机盒42与耳机本体41的电连接器。The magnets in the earphone box 42 may include one or more of the following magnets, such as magnets for absorbing the earphone body 41 so that the earphone body 41 is accommodated in the receiving chamber of the earphone box 42; Magnets; and magnets for enhancing the pressure on the charging pins of the earphone box 42 and the earphone body 41 . Wherein, the charging pins of the earphone box 42 and the earphone body 41 may be electrical connectors between the earphone box 42 and the earphone body 41 .
(2)第二强度区间。(2) Second intensity interval.
其中,耳机主体41在耳机盒42的收纳腔外时,耳机主体41周围的磁场是第二磁场。磁传感器(如磁传感器411)在该第二磁场检测的磁感应强度在第二强度区间。第一强度区间与第二强度区间没有交集。Wherein, when the earphone main body 41 is outside the storage cavity of the earphone box 42 , the magnetic field around the earphone main body 41 is the second magnetic field. The magnetic induction intensity detected by the magnetic sensor (such as the magnetic sensor 411 ) in the second magnetic field is within the second intensity range. The first intensity interval does not intersect with the second intensity interval.
本申请实施例中,当耳机本体41收纳在耳机盒42内时,称该耳机本体41处于盒内状态;当耳机本体41置于耳机盒42外时,称该耳机本体41处于盒外状态。In the embodiment of the present application, when the earphone body 41 is stored in the earphone box 42, the earphone body 41 is said to be in the box state; when the earphone body 41 is placed outside the earphone box 42, the earphone body 41 is said to be in the out-of-box state.
一般而言,耳机本体41处于盒外状态时,磁传感器411至少可以检测到耳机本体41中的磁体所产生的磁场(也可以是耳机本体41中的多个磁体产生的合磁场)的磁感应强度。也就是说,上述第二磁场至少可以包括:耳机本体41中的磁体所产生的磁场。Generally speaking, when the earphone body 41 is in the state outside the box, the magnetic sensor 411 can at least detect the magnetic induction intensity of the magnetic field generated by the magnet in the earphone body 41 (or the resultant magnetic field generated by a plurality of magnets in the earphone body 41). . That is to say, the above-mentioned second magnetic field may at least include: the magnetic field generated by the magnet in the earphone body 41 .
当然,当耳机本体41置于耳机盒42外,但耳机本体41与耳机盒42之间的距离较近时,耳机盒42中的磁体也影响耳机本体41周围的磁场,从而影响耳机本体41检测到的磁感应强度的大小。其中,相比于盒内状态,耳机本体41处于盒外状态时,耳机盒42中的磁体对耳机本体41周围的磁场的影响较小,从而对耳机本体41检测到的磁感应强度的大小的影响也较小,可以忽略不计。本申请实施例中,为了描述方便,当耳机本体41处于盒外状态时,忽略耳机盒42中的磁体对耳机本体41周围的磁场的影响。Of course, when the earphone body 41 is placed outside the earphone box 42, but the distance between the earphone body 41 and the earphone box 42 is relatively close, the magnet in the earphone box 42 also affects the magnetic field around the earphone body 41, thereby affecting the detection of the earphone body 41. to the magnitude of the magnetic induction. Wherein, compared with the state inside the box, when the earphone body 41 is in the out-of-box state, the magnet in the earphone box 42 has less influence on the magnetic field around the earphone body 41, thereby affecting the magnitude of the magnetic induction intensity detected by the earphone body 41. Also small and negligible. In the embodiment of the present application, for convenience of description, when the earphone body 41 is in the out-of-box state, the influence of the magnet in the earphone box 42 on the magnetic field around the earphone body 41 is ignored.
需要说明的是,无论耳机本体41处于盒外状态或者盒内状态,耳机本体41周围的磁场都会受到耳机本体41周围环境中各个磁体(如周围的电子产品中的磁体)所产生的磁场和地磁场的影响。本申请实施例中,为了描述方便,可以忽略地磁场和耳机本体41周围环境中磁体所产生的磁场对耳机本体41周围的磁场的影响。当然,实际产品的参数设置不会忽略上述磁体对耳机本体41周围磁场的影响。It should be noted that no matter whether the earphone body 41 is in the state outside the box or in the box, the magnetic field around the earphone body 41 will be affected by the magnetic field and ground generated by various magnets in the surrounding environment of the earphone body 41 (such as the magnets in the surrounding electronic products). The influence of the magnetic field. In the embodiment of the present application, for the convenience of description, the influence of the earth's magnetic field and the magnetic field generated by the magnets in the surrounding environment of the earphone body 41 on the magnetic field around the earphone body 41 can be ignored. Of course, the parameter setting of the actual product will not ignore the influence of the above-mentioned magnets on the magnetic field around the earphone body 41 .
综上所述,耳机本体41处于盒内状态时,磁传感器411可以检测到耳机本体41中的磁体和耳机盒42中的磁体所产生的合磁场的磁感应强度;而耳机本体处于盒外状态时,磁传感器411可以检测到耳机本体41中的磁体所产生的磁场的磁感应强度。由此可见,耳机本体41处于不同的状态(如盒内状态或盒外状态)时,磁传感器411检测到的磁感应强度不同。In summary, when the earphone body 41 is in the box state, the magnetic sensor 411 can detect the magnetic induction intensity of the resultant magnetic field produced by the magnet in the earphone body 41 and the magnet in the earphone box 42; , the magnetic sensor 411 can detect the magnetic induction intensity of the magnetic field generated by the magnet in the earphone body 41 . It can be seen that when the earphone body 41 is in different states (such as the state inside the box or the state outside the box), the magnetic induction intensity detected by the magnetic sensor 411 is different.
进一步的,为了使得耳机本体41处于盒内状态和盒外状态时,磁传感器411检测到的磁感应强度的差异更加明显。本申请实施例中,可以在耳机盒42中设置第一磁体。其中,耳机盒中可以设置一个或多个第一磁体。例如,如图4A或图4B所示,耳机盒42中设置有两个第一磁体421。该第一磁体421是区别于上述一个或多个磁体之外的磁体。该第一磁体421的设置是为了使耳机本体41处于盒内状态和盒外状态时,磁传感器411检测到的磁感应强度的差异更加明显;而不是为了实现耳机盒42的其他功能(如吸附耳机本体41,实现盒身与盒盖之间闭合吸附或者增强充电引脚压力等功能)。当然,该第一磁体也可以用于增强上述其他功能,如盒身与盒盖之间闭合吸附功能。Further, in order to make the difference of the magnetic induction intensity detected by the magnetic sensor 411 more obvious when the earphone body 41 is in the state of the box and the state of the outside of the box. In the embodiment of the present application, a first magnet may be provided in the earphone box 42 . Wherein, one or more first magnets may be arranged in the earphone box. For example, as shown in FIG. 4A or FIG. 4B , two first magnets 421 are disposed in the earphone box 42 . The first magnet 421 is a magnet different from the above one or more magnets. The setting of the first magnet 421 is to make the difference of the magnetic induction intensity detected by the magnetic sensor 411 more obvious when the earphone body 41 is in the state inside the box and the state outside the box; rather than for realizing other functions of the earphone box 42 (such as absorbing earphones) The main body 41 realizes functions such as closing and absorbing between the box body and the box cover or enhancing the pressure of the charging pin). Of course, the first magnet can also be used to enhance the above-mentioned other functions, such as the closed adsorption function between the box body and the box cover.
请参考图4D,其示出耳机本体41的产品形态示意图。如图4D所示,该耳机本体41可以包括杆体4a,以及与杆体4a顶部相连的耳塞4b。杆体4a和耳塞4b内部可以包括电路板和电池等内部部件。电路板上可以包括处理器412、存储器、充电电路等多种组件,以实现上述耳机本体41的各项功能。例如,电池可以设置在杆体4a的腔体内部。音频模块中的扬声器组件可以设置于耳塞4b的腔体内部。当用户戴上耳塞时,可以听到扬声器组件发出的声音信号,从而为用户实现播放音乐、接/打电话等功能。Please refer to FIG. 4D , which shows a schematic view of the product form of the earphone body 41 . As shown in FIG. 4D , the earphone body 41 may include a rod body 4 a, and an earplug 4 b connected to the top of the rod body 4 a. The inside of the rod body 4a and the earplug 4b may include internal components such as circuit boards and batteries. Various components such as a processor 412 , a memory, and a charging circuit may be included on the circuit board to realize various functions of the above-mentioned earphone body 41 . For example, the battery can be arranged inside the cavity of the rod body 4a. The speaker assembly in the audio module can be arranged inside the cavity of the earplug 4b. When the user puts on the earplugs, he can hear the sound signal from the speaker assembly, so as to realize functions such as playing music and answering/calling for the user.
本申请实施例中,上述磁传感器411可以设置在图4D所示的耳机本体41的耳塞4b或者杆体4a中。例如,如图4A所示,磁传感器411可以设置在耳机本体41的耳塞中。又例如,如图4B所示,磁传感器411可以设置在耳机本体41的杆体中。In the embodiment of the present application, the above-mentioned magnetic sensor 411 may be arranged in the earplug 4b or the rod body 4a of the earphone body 41 shown in FIG. 4D . For example, as shown in FIG. 4A , the magnetic sensor 411 may be disposed in the earplug of the earphone body 41 . For another example, as shown in FIG. 4B , the magnetic sensor 411 may be disposed in the rod body of the earphone body 41 .
进一步的,为了使耳机本体41处于盒内状态和盒外状态时,磁传感器411检测到的磁感应强度的差异更加明显,第一磁体421在耳机盒42中的位置与磁传感器411在耳机本体41中的位置对应。Further, in order to make the difference between the magnetic induction intensity detected by the magnetic sensor 411 more obvious when the earphone body 41 is in the state inside the box and the state outside the box, the position of the first magnet 421 in the earphone box 42 is the same as that of the magnetic sensor 411 in the earphone body 41. corresponding to the position in .
如图4A或4B所示,耳机盒42的收纳腔可以包括第一腔体422和第二腔体423。其中,当耳机本体41收纳于耳机盒42内时,第一腔体422用于收纳耳机本体41的耳塞,第二腔体423用于收纳耳机本体41的杆体。例如,如图4A所示,磁传感器411设置在耳机本体41的耳塞中时,第一磁体421则可以设置在耳机盒42内、靠近耳机盒42的第一腔体422的位置。又例如,如图4B所示,磁传感器411设置在耳机本体41的杆体中时,第一磁体421则可以设置在耳机盒42内、靠近耳机盒42的第二腔体423的位置。As shown in FIG. 4A or 4B , the receiving cavity of the earphone box 42 may include a first cavity 422 and a second cavity 423 . Wherein, when the earphone body 41 is stored in the earphone box 42 , the first cavity 422 is used for accommodating the earplug of the earphone body 41 , and the second cavity 423 is used for accommodating the rod body of the earphone body 41 . For example, as shown in FIG. 4A , when the magnetic sensor 411 is disposed in the earplug of the earphone body 41 , the first magnet 421 can be disposed in the earphone box 42 near the first cavity 422 of the earphone box 42 . For another example, as shown in FIG. 4B , when the magnetic sensor 411 is disposed in the rod body of the earphone body 41 , the first magnet 421 can be disposed in the earphone box 42 near the second cavity 423 of the earphone box 42 .
由上述描述可知:如果耳机本体41处于盒内状态,磁传感器411检测的磁感应强度在第一强度区间;如果耳机本体41处于外状态,磁传感器411检测的磁感应强度在第二强度区间。因此,在磁传感器411检测的磁感应强度由第一强度区间切换至第二强度区间时,则表示该耳机本体41由盒内状态切换为盒外状态,处理器412可以确定耳机本体41出盒。在磁传感器411检测的磁感应强度由第二强度区间切换至第一强度区间时,则表示该耳机本体41由盒外状态切换为盒内状态,处理器412可以确定耳机本体41入盒。It can be seen from the above description that if the earphone body 41 is in the box state, the magnetic induction intensity detected by the magnetic sensor 411 is in the first intensity interval; if the earphone body 41 is in the outer state, the magnetic induction intensity detected by the magnetic sensor 411 is in the second intensity interval. Therefore, when the magnetic induction intensity detected by the magnetic sensor 411 switches from the first intensity interval to the second intensity interval, it means that the earphone body 41 is switched from the in-box state to the out-of-box state, and the processor 412 can determine that the earphone body 41 is out of the box. When the magnetic induction intensity detected by the magnetic sensor 411 switches from the second intensity interval to the first intensity interval, it means that the earphone body 41 is switched from the out-of-box state to the in-box state, and the processor 412 can determine that the earphone body 41 is in the box.
本申请实施例中,耳机本体41可以通过磁传感器411检测耳机本体41周围的磁场的磁感应强度;然后,根据耳机本体41周围的磁场的磁感应强度的变化,来检测耳机本体41的出盒和入盒。其中,根据磁场的磁感应强度的变化检测耳机本体41的出盒和入盒时,检测结果不会因为耳机盒42和耳机本体41的接触接触不良,而导致对无线耳机出盒或入盒的误判。上述检测方式是一种非接触是检测方式,可以提高无线耳机的出入盒检测的准确性。In the embodiment of the present application, the earphone body 41 can detect the magnetic induction intensity of the magnetic field around the earphone body 41 through the magnetic sensor 411; box. Wherein, according to the change of the magnetic induction intensity of the magnetic field, when the box-out and box-in of the earphone body 41 are detected, the detection result will not cause the wireless earphone out of the box or into the box due to poor contact between the earphone box 42 and the earphone body 41. sentenced. The above-mentioned detection method is a non-contact detection method, which can improve the accuracy of detection of the wireless earphone in and out of the box.
本申请实施例这里对上述第一强度区间和第二强度区间的取值进行说明。In this embodiment of the present application, the values of the above-mentioned first intensity interval and the second intensity interval are described here.
在第一种情况下,上述第一强度区间(如[B1,B2])的最小磁感应强度(如B1)可以大于第二强度区间(如[B3,B4])的最大磁感应强度(如B4)。也就是说,耳机本体41处于盒内状态时磁传感器411检测的磁感应强度,大于耳机本体41处于盒外状态时磁传感器411检测的磁感应强度。In the first case, the minimum magnetic induction intensity (such as B1) of the above-mentioned first intensity interval (such as [B1, B2]) may be greater than the maximum magnetic induction intensity (such as B4) of the second intensity interval (such as [B3, B4]) . That is to say, the magnetic induction intensity detected by the magnetic sensor 411 when the earphone body 41 is in the box state is greater than the magnetic induction intensity detected by the magnetic sensor 411 when the earphone body 41 is in the out-of-box state.
在第二种情况下,上述第二强度区间(如[Biii,Biv])的最小磁感应强度(如Biii)大于第一强度区间(如[Bi,Bii])的最大磁感应强度(如Bii)。也就是说,耳机本体41处于盒外状态时磁传感器411检测的磁感应强度,大于耳机本体41处于盒内状态时磁传感器411检测的磁感应强度。In the second case, the minimum magnetic induction intensity (such as Biii) of the above-mentioned second intensity interval (such as [Biii, Biv]) is greater than the maximum magnetic induction intensity (such as Bii) of the first intensity interval (such as [Bi, Bii]). That is to say, the magnetic induction intensity detected by the magnetic sensor 411 when the earphone body 41 is outside the box is greater than the magnetic induction intensity detected by the magnetic sensor 411 when the earphone body 41 is in the box state.
当然,第一强度区间和第二强度区间的取值范围包括但不限于上述[B1,B2]、[B3,B4]、[Bi,Bii]和[Biii,Biv]。例如,第一强度区间可以为(B1,B2),第二强度区间为(B3,B4);或者,第一强度区间可以为(Bi,Bii),第二强度区间为(Biii,Biv)。Of course, the value ranges of the first intensity interval and the second intensity interval include but are not limited to the above-mentioned [B1, B2], [B3, B4], [Bi, Bii] and [Biii, Biv]. For example, the first intensity interval may be (B1, B2), and the second intensity interval may be (B3, B4); or, the first intensity interval may be (Bi, Bii), and the second intensity interval may be (Biii, Biv).
本申请实施例这里对产生上述两种情况的原理进行说明:The embodiment of this application here explains the principles of the above two situations:
由于磁场的磁场强度是一个矢量;因此,多个磁体产生的磁场的磁场强度可能会因为磁场的方向相反而相互抵消,使得多个磁体产生的合磁场的磁场强度小于一个磁体产生的磁场的磁场强度。当然,多个磁体产生的磁场的磁场强度可能会因为磁场的方向相同而相互增强,使得多个磁体产生的合磁场的磁场强度大于一个磁体产生的磁场的磁场强度。Since the magnetic field strength of a magnetic field is a vector; therefore, the magnetic field strengths of the magnetic fields generated by multiple magnets may cancel each other out due to the opposite directions of the magnetic fields, making the magnetic field strength of the combined magnetic field generated by multiple magnets smaller than that of the magnetic field generated by one magnet strength. Of course, the magnetic field strengths of the magnetic fields generated by multiple magnets may mutually reinforce each other due to the same direction of the magnetic fields, so that the magnetic field strength of the combined magnetic field generated by multiple magnets is greater than the magnetic field strength of the magnetic field generated by one magnet.
由此可见,上述第一磁场(即处于盒内状态时,耳机本体41周围的磁场)的磁场强度,可能会大于第二磁场(即处于盒外状态时,耳机本体41周围的磁场)的磁场强度,也可能会小于第二磁场的磁场强度。其中,第一磁场和第二磁场的磁场强度的大小决定于耳机盒42和耳机本体41中各个磁体的磁场的磁矢量的大小和方向。It can be seen that the magnetic field strength of the above-mentioned first magnetic field (that is, the magnetic field around the earphone body 41 when it is in the state inside the box) may be greater than the magnetic field of the second magnetic field (that is, the magnetic field around the earphone body 41 when it is in the state outside the box) The strength may also be smaller than the magnetic field strength of the second magnetic field. Wherein, the magnitudes of the magnetic field strengths of the first magnetic field and the second magnetic field are determined by the magnitude and direction of the magnetic vectors of the magnetic fields of the respective magnets in the earphone box 42 and the earphone body 41 .
但是,可以明确的是:上述第一磁场的磁场强度与第二磁场的磁场强度不同。从而,磁传感器411在第一磁场检测到的磁感应强度与磁传感器411在第二磁场检测到的磁感应强度也不同。也就是说,上述第一强度区间与第二强度区间没有交集。However, it is clear that the magnetic field strength of the first magnetic field is different from the magnetic field strength of the second magnetic field. Therefore, the magnetic induction intensity detected by the magnetic sensor 411 in the first magnetic field is also different from the magnetic induction intensity detected by the magnetic sensor 411 in the second magnetic field. That is to say, there is no intersection between the above-mentioned first intensity interval and the second intensity interval.
具体的,在第一磁场的磁场强度大于第二磁场的磁场强度的情况下,上述第一强度区间和第二强度区间符合上述第一种情况。也就是说,第一强度区间的最小磁感应强度大于第二强度区间的最大磁感应强度。Specifically, in the case where the magnetic field strength of the first magnetic field is greater than the magnetic field strength of the second magnetic field, the above-mentioned first strength interval and the second strength interval conform to the above-mentioned first situation. That is to say, the minimum magnetic induction in the first intensity range is greater than the maximum magnetic induction in the second intensity range.
在第一磁场的磁场强度小于第二磁场的磁场强度的情况下,上述第一强度区间和第二强度区间符合上述第二种情况。也就是说,第二强度区间的最小磁感应强度大于第一强度区间的最大磁感应强度。In the case that the magnetic field strength of the first magnetic field is smaller than the magnetic field strength of the second magnetic field, the above-mentioned first strength interval and the second strength interval conform to the above-mentioned second situation. That is to say, the minimum magnetic induction in the second intensity range is greater than the maximum magnetic induction in the first intensity range.
需要说明的是,由于受到耳机盒42中设置的第一磁体421产生的磁场的影响,上述第一磁场的磁场强度与第二磁场的磁场强度的差异较大。从而,磁传感器411在上述第一磁场检测到的磁感应强度与磁传感器411在第二磁场检测到的磁感应强度也会存在较大差异。如此,在上述第一种情况下,第一强度区间的最小磁感应强度与第二强度区间的最大磁感应强度的差值较大。在第二种情况下,第二强度区间的最小磁感应强度与第一强度区间的最大磁感应强度的差值较大。这样,有利于提高无线耳机的出入盒检测的准确性。It should be noted that, due to the influence of the magnetic field generated by the first magnet 421 disposed in the earphone box 42 , the magnetic field strength of the first magnetic field is quite different from the magnetic field strength of the second magnetic field. Therefore, the magnetic induction intensity detected by the magnetic sensor 411 in the first magnetic field and the magnetic induction intensity detected by the magnetic sensor 411 in the second magnetic field also have a large difference. Thus, in the first case above, the difference between the minimum magnetic induction in the first intensity interval and the maximum magnetic induction in the second intensity interval is relatively large. In the second case, the difference between the minimum magnetic induction in the second intensity interval and the maximum magnetic induction in the first intensity interval is relatively large. In this way, it is beneficial to improve the accuracy of detection of the wireless earphone entering and exiting the box.
在一些实施例中,以磁传感器411是上述第一类磁传感器(如霍尔传感器)为例,对磁传感器411与处理器412配合,实现耳机本体41的出盒和入盒检测原理进行说明。In some embodiments, taking the magnetic sensor 411 as an example of the above-mentioned first type of magnetic sensor (such as a Hall sensor), the magnetic sensor 411 cooperates with the processor 412 to realize the out-of-box and in-box detection principle of the earphone body 41. .
在该实施例中,磁传感器411可以用于:检测耳机主体41周围的磁场的磁感应强度;如果检测到磁感应强度在第一强度区间,向处理器412输出第一信号;如果检测到磁感应强度在第二强度区间,向处理器412输出第二信号。In this embodiment, the magnetic sensor 411 can be used to: detect the magnetic induction intensity of the magnetic field around the earphone main body 41; if it is detected that the magnetic induction intensity is in the first intensity interval, output the first signal to the processor 412; if it is detected that the magnetic induction intensity is in the first intensity interval In the second intensity interval, a second signal is output to the processor 412 .
处理器412可以用于:响应于磁传感器411传输的信号由第一信号变为第二信号,确定耳机本体41出盒;响应于磁传感器411传输的信号由第二信号变为第一信号,确定无线耳机入盒。The processor 412 may be configured to: in response to the signal transmitted by the magnetic sensor 411 changing from the first signal to the second signal, determine that the earphone body 41 is out of the box; in response to the signal transmitted by the magnetic sensor 411 changing from the second signal to the first signal, Make sure the wireless earphones are in the box.
其中,上述第一信号是高电平,第二信号是低电平。或者,第一信号是低电平,第二信号是高电平。以下实施例中,以第一信号是低电平,第二信号是高电平为例,对本申请实施例的方案进行说明。Wherein, the above-mentioned first signal is high level, and the second signal is low level. Alternatively, the first signal is at low level and the second signal is at high level. In the following embodiments, the solutions of the embodiments of the present application will be described by taking the first signal at a low level and the second signal at a high level as an example.
示例性的,以下结合上述第一种情况和第二种情况,通过实现方式(1)和实现方式(2),对第一类磁传感器(如霍尔传感器)与处理器412配合实现耳机本体41的出盒和入盒检测原理进行说明。Exemplarily, the first type of magnetic sensor (such as a Hall sensor) and the processor 412 cooperate to realize the earphone body through the implementation (1) and the implementation (2) below in combination with the above-mentioned first case and the second case 41 box out and box in detection principles will be described.
在实现方式(1)中,结合上述第一种情况,对耳机本体41的出盒和入盒检测原理进行说明。In the implementation mode (1), the principle of box-out and box-in detection of the earphone body 41 will be described in conjunction with the above first case.
在上述第一种情况中,假设第一强度区间为[B1,B2],第二强度区间为[B3,B4]。如图5A或图5B所示,第一强度区间[B1,B2]的最小磁感应强度B1大于第二强度区间[B3,B4]的最大磁感应强度B4。上述第一磁场(即处于盒内状态时,耳机本体41周围的磁场)的磁场强度大于第二磁场(即处于盒外状态时,耳机本体41周围的磁场)的磁场强度。In the first case above, it is assumed that the first intensity interval is [B1, B2] and the second intensity interval is [B3, B4]. As shown in FIG. 5A or FIG. 5B , the minimum magnetic induction intensity B1 of the first intensity interval [B1, B2] is greater than the maximum magnetic induction intensity B4 of the second intensity interval [B3, B4]. The magnetic field strength of the first magnetic field (that is, the magnetic field around the earphone body 41 when it is in the box) is greater than the magnetic field strength of the second magnetic field (that is, the magnetic field around the earphone body 41 when it is out of the box).
请参考图5A,其示出耳机本体41出盒过程中,磁传感器411向处理器412传输的信号与磁感应强度变化示意图。Please refer to FIG. 5A , which shows a schematic diagram of the signal transmitted from the magnetic sensor 411 to the processor 412 and the change of the magnetic induction intensity during the process of the earphone body 41 being out of the box.
假设耳机本体41处于盒内状态。如图5A所示,磁传感器411检测的磁感应强度在第一强度区间[B1,B2]内,磁传感器411可以向处理器输出低电平(即第一信号)。Assume that the earphone body 41 is in a case. As shown in FIG. 5A , the magnetic induction detected by the magnetic sensor 411 is within the first intensity interval [B1, B2], and the magnetic sensor 411 may output a low level (ie, a first signal) to the processor.
可以理解,在耳机本体41出盒的过程中,可能会因为耳机本体41还未完全从耳机盒42的收纳腔中取出,而使得磁传感器411检测的磁感应强度在图5A所示的(B4,B1)内。基于这种情况,为了避免耳机本体41检测到耳机本体41频繁的出盒/入盒,磁传感器411还可以用于:在检测到磁感应强度在第一强度区间[B1,B2]内之后,如果检测到磁感应强度小于第一强度区域[B1,B2]的最小磁感应强度B1、但大于第二强度区域[B3,B4]的最大磁感应强度B4,则向处理器412输出低电平(即第一信号)。It can be understood that during the process of removing the earphone body 41 from the box, the magnetic induction intensity detected by the magnetic sensor 411 may be in the range (B4, within B1). Based on this situation, in order to prevent the earphone body 41 from detecting frequent out-of-box/in-box of the earphone body 41, the magnetic sensor 411 can also be used to: after detecting that the magnetic induction intensity is within the first intensity interval [B1, B2], if Detect that the magnetic induction intensity is less than the minimum magnetic induction intensity B1 of the first intensity area [B1, B2], but greater than the maximum magnetic induction intensity B4 of the second intensity area [B3, B4], then output a low level to the processor 412 (i.e. the first Signal).
例如,如图5A所示,磁传感器411在检测到磁感应强度在[B1,B2]之后,如果检测到磁感应强度在(B4,B1)内,仍然可以向处理器412输出低电平。For example, as shown in FIG. 5A , after the magnetic sensor 411 detects that the magnetic induction is within [B1, B2], if it detects that the magnetic induction is within (B4, B1), it may still output a low level to the processor 412.
耳机本体41出盒(即耳机本体41由盒内状态切换为盒外状态)之后,如图5A所示,磁传感器411检测的磁感应强度在第二强度区间[B3,B4]内,磁传感器411可以向处理器412输出高电平(即第二信号)。After the earphone body 41 is out of the box (that is, the earphone body 41 is switched from the state inside the box to the state outside the box), as shown in FIG. 5A , the magnetic induction intensity detected by the magnetic sensor 411 is within the second intensity interval [B3, B4]. A high level (ie, the second signal) may be output to the processor 412 .
综上所述,如图5A所示,在耳机本体41出盒(即由盒内状态切换为盒外状态)过程中,磁传感器411向处理器412传输的信号由低电平变为高电平。处理器412具体可以用于:响应于磁传感器411传输的信号由低电平变为高电平,确定耳机本体41出盒。In summary, as shown in FIG. 5A , during the process of the headphone body 41 being out of the box (that is, switching from the state inside the box to the state outside the box), the signal transmitted from the magnetic sensor 411 to the processor 412 changes from a low level to a high level. flat. The processor 412 may be specifically configured to: determine that the earphone body 41 is out of the box in response to the signal transmitted by the magnetic sensor 411 changing from a low level to a high level.
示例性的,处理器412可以实时监测磁传感器411传输的信号;当检测到磁传感器411传输的信号由低电平变为高电平时,可以确定耳机本体41出盒。或者,处理器412可以根据第一中断信号,确定耳机本体41出盒。其中,该第一中断信号可以是在磁传感器411传输的信号由低电平变为高电平时产生的。Exemplarily, the processor 412 can monitor the signal transmitted by the magnetic sensor 411 in real time; when it detects that the signal transmitted by the magnetic sensor 411 changes from a low level to a high level, it can determine that the earphone body 41 is out of the box. Alternatively, the processor 412 may determine that the earphone body 41 is out of the box according to the first interrupt signal. Wherein, the first interrupt signal may be generated when the signal transmitted by the magnetic sensor 411 changes from a low level to a high level.
请参考图5B,其示出耳机本体41入盒过程中,磁传感器411向处理器412传输的信号与磁感应强度变化示意图。Please refer to FIG. 5B , which shows a schematic diagram of the signal transmitted from the magnetic sensor 411 to the processor 412 and the change of the magnetic induction intensity during the process of putting the earphone body 41 into the box.
假设耳机本体41处于盒外状态。如图5B所示,磁传感器411检测的磁感应强度在第二强度区间[B3,B4]内,磁传感器411可以向处理器412输出高电平(即第二信号)。Assume that the earphone body 41 is in an out-of-box state. As shown in FIG. 5B , the magnetic induction detected by the magnetic sensor 411 is within the second intensity interval [ B3 , B4 ], and the magnetic sensor 411 may output a high level (ie, a second signal) to the processor 412 .
可以理解,在耳机本体41入盒的过程中,可能会因为耳机本体41还未完全进入耳机盒42的收纳腔,而使得磁传感器411检测的磁感应强度在图5B所示的(B4,B1)内。基于这种情况,为了避免耳机本体41检测到耳机本体41频繁的出盒/入盒,磁传感器411还可以用于:在检测到磁感应强度在第二强度区间[B3,B4]内之后,如果检测到磁感应强度大于第二强度区间[B3,B4]的最大磁感应强度B4、但小于第一强度区域[B1,B2]的最小磁感应强度B1,则向处理器412输出高电平(即第二信号)。It can be understood that during the process of putting the earphone body 41 into the box, the magnetic induction intensity detected by the magnetic sensor 411 may be at (B4, B1) shown in FIG. Inside. Based on this situation, in order to prevent the earphone body 41 from detecting frequent out-of-box/in-box of the earphone body 41, the magnetic sensor 411 can also be used to: after detecting that the magnetic induction intensity is within the second intensity interval [B3, B4], if Detect that the magnetic induction intensity is greater than the maximum magnetic induction intensity B4 of the second intensity interval [B3, B4], but less than the minimum magnetic induction intensity B1 of the first intensity area [B1, B2], then output a high level to the processor 412 (i.e. the second Signal).
例如,如图5B所示,磁传感器411在检测到磁感应强度在[B3,B4]之后,如果检测到磁感应强度在(B4,B1)内,仍然可以向处理器412输出高电平。For example, as shown in FIG. 5B , after the magnetic sensor 411 detects that the magnetic induction is within [B3, B4], if it detects that the magnetic induction is within (B4, B1), it may still output a high level to the processor 412.
耳机本体41入盒(即耳机本体41由盒外状态切换为盒内状态)之后,如图5B所示,磁传感器411检测的磁感应强度在第一强度区间[B1,B2]内,磁传感器411可以向处理器输出低电平(即第一信号)。After the earphone body 41 is put into the box (that is, the earphone body 41 is switched from the state outside the box to the state inside the box), as shown in FIG. 5B , the magnetic induction intensity detected by the magnetic sensor 411 is within the first intensity interval [B1, B2]. A low level (ie, the first signal) may be output to the processor.
综上所述,如图5B所示,在耳机本体41入盒(即由盒外状态切换为盒内状态)过程中,磁传感器411向处理器412传输的信号由高电平变为低电平。处理器412具体可以用于:响应于磁传感器411传输的信号由高电平变为低电平,确定耳机本体41入盒。In summary, as shown in FIG. 5B , during the process of putting the earphone body 41 into the box (that is, switching from the state outside the box to the state inside the box), the signal transmitted from the magnetic sensor 411 to the processor 412 changes from a high level to a low level. flat. The processor 412 may specifically be configured to determine that the headphone body 41 is in the box in response to the signal transmitted by the magnetic sensor 411 changing from a high level to a low level.
示例性的,处理器412可以实时监测磁传感器411传输的信号;当检测到磁传感器411传输的信号由高电平变为低电平时,可以确定耳机本体41入盒。或者,处理器412可以根据第二中断信号,确定耳机本体41入盒。其中,该第二中断信号可以是在磁传感器411传输的信号由高电平变为低电平时产生的。Exemplarily, the processor 412 can monitor the signal transmitted by the magnetic sensor 411 in real time; when it detects that the signal transmitted by the magnetic sensor 411 changes from a high level to a low level, it can determine that the earphone body 41 is in the box. Alternatively, the processor 412 may determine that the earphone body 41 is in the box according to the second interrupt signal. Wherein, the second interrupt signal may be generated when the signal transmitted by the magnetic sensor 411 changes from a high level to a low level.
需要说明的是,上述实现方式(1)中,第二强度区间[B3,B4]中的B4和第一强度区间[B1,B2]中的B1可以是上述霍尔传感器的两个磁感应强度门限,B1>B4。上述B2可以为大于B1的任一磁感器强度,上述B3可以为小于B4的任一磁感器强度。例如,B3可以为零,B2可以为无穷大。It should be noted that, in the above implementation (1), B4 in the second intensity interval [B3, B4] and B1 in the first intensity interval [B1, B2] can be the two magnetic induction intensity thresholds of the Hall sensor , B1>B4. The above-mentioned B2 can be any magnetic sensor strength greater than B1, and the above-mentioned B3 can be any magnetic sensor strength smaller than B4. For example, B3 can be zero and B2 can be infinity.
可以理解,在实际产品中,霍尔传感器判断磁感应强度时,可以只使用上述B4和B1。具体的,霍尔传感器可以在检测的磁感应强度大于B1时,向处理器412输出低电平(即第一信号)。如果霍尔传感器在检测到磁感应强度大于B1之后,检测到磁感应强度在(B4,B1)内,如图5A所示,可以输出低电平(即第一信号)。It can be understood that, in actual products, when the Hall sensor judges the magnetic induction intensity, only the above-mentioned B4 and B1 can be used. Specifically, the Hall sensor may output a low level (that is, the first signal) to the processor 412 when the detected magnetic induction intensity is greater than B1. If the Hall sensor detects that the magnetic induction is within (B4, B1) after detecting that the magnetic induction is greater than B1, as shown in FIG. 5A, it may output a low level (ie, the first signal).
霍尔传感器还可以在检测的磁感应强度小于B4时,向处理器412输出高电平(即第二信号)。如果霍尔传感器在检测到磁感应强度小于B4之后,检测到磁感应强度在(B4,B1)内,如图5B所示,可以输出高电平(即第二信号)。The Hall sensor can also output a high level (that is, a second signal) to the processor 412 when the detected magnetic induction intensity is less than B4. If the Hall sensor detects that the magnetic induction is within (B4, B1) after detecting that the magnetic induction is less than B4, as shown in FIG. 5B, it may output a high level (ie, the second signal).
在实现方式(2)中,结合上述第二种情况,对耳机本体41的出盒和入盒检测原理进行说明。In the implementation mode (2), in conjunction with the second case above, the principle of box-out and box-in detection of the earphone body 41 will be described.
在上述第二种情况中,假设第一强度区间为[Bi,Bii],第二强度区间为[Biii,Biv]。如图6A或图6B所示,第二强度区间[Biii,Biv]的最小磁感应强度Biii大于第一强度区间[Bi,Bii]的最大磁感应强度Bii。上述第一磁场(即处于盒内状态时,耳机本体41周围的磁场)的磁场强度小于第二磁场(即处于盒外状态时,耳机本体41周围的磁场)的磁场强度。In the second case above, it is assumed that the first intensity interval is [Bi, Bii] and the second intensity interval is [Biii, Biv]. As shown in FIG. 6A or FIG. 6B , the minimum magnetic induction Biii of the second intensity interval [Biii, Biv] is greater than the maximum magnetic induction Bii of the first intensity interval [Bi, Bii]. The magnetic field strength of the first magnetic field (that is, the magnetic field around the earphone body 41 when it is inside the box) is smaller than the magnetic field strength of the second magnetic field (that is, the magnetic field around the earphone body 41 when it is out of the box).
请参考图6A,其示出耳机本体41入盒过程中,磁传感器411向处理器412传输的信号与磁感应强度变化示意图。Please refer to FIG. 6A , which shows a schematic diagram of the signal transmitted from the magnetic sensor 411 to the processor 412 and the change of the magnetic induction intensity during the process of putting the earphone body 41 into the box.
假设耳机本体41处于盒外状态。如图6A所示,磁传感器411检测的磁感应强度在第二强度区间[Biii,Biv]内,磁传感器411可以向处理器412输出高电平(即第二信号)。Assume that the earphone body 41 is in an out-of-box state. As shown in FIG. 6A , the magnetic induction detected by the magnetic sensor 411 is within the second intensity interval [Biii, Biv], and the magnetic sensor 411 may output a high level (ie, a second signal) to the processor 412 .
可以理解,在耳机本体41入盒的过程中,可能会因为耳机本体41还未完全进入耳机盒42的收纳腔,而使得磁传感器411检测的磁感应强度在图6A所示的(Bii,Biii)内。基于这种情况,为了避免耳机本体41检测到耳机本体41频繁的出盒/入盒,磁传感器411还可以用于:在检测到磁感应强度在第二强度区间[Biii,Biv]内之后,如果检测到磁感应强度小于第二强度区间[Biii,Biv]的最小磁感应强度Biii、但大于第一强度区域[Bi,Bii]的最大磁感应强度Bii,则向处理器412输出高电平(即第二信号)。It can be understood that during the process of putting the earphone body 41 into the box, the magnetic induction intensity detected by the magnetic sensor 411 may be within (Bii, Biii) shown in FIG. Inside. Based on this situation, in order to prevent the earphone body 41 from detecting frequent out-of-box/in-box of the earphone body 41, the magnetic sensor 411 can also be used for: after detecting that the magnetic induction intensity is within the second intensity interval [Biii, Biv], if Detect that the magnetic induction intensity is less than the minimum magnetic induction intensity Biii of the second intensity interval [Biii, Biv], but greater than the maximum magnetic induction intensity Bii of the first intensity area [Bi, Bii], then output a high level to the processor 412 (i.e. the second Signal).
例如,如图6A所示,磁传感器411在检测到磁感应强度在[Biii,Biv]之后,如果检测到磁感应强度在(Bii,Biii)内,仍然可以向处理器412输出高电平(即第一信号)。For example, as shown in FIG. 6A, after the magnetic sensor 411 detects that the magnetic induction intensity is within [Biii, Biv], if it detects that the magnetic induction intensity is within (Bii, Biii), it can still output a high level to the processor 412 (that is, the first a signal).
耳机本体41入盒(即耳机本体41由盒外状态切换为盒内状态)之后,如图6A所示,磁传感器411检测的磁感应强度在第一强度区间[Bi,Bii]内,磁传感器411可以向处理器412输出低电平(即第一信号)。After the earphone body 41 is put into the box (that is, the earphone body 41 is switched from the state outside the box to the state inside the box), as shown in FIG. 6A , the magnetic induction intensity detected by the magnetic sensor 411 is within the first intensity interval [Bi, Bii]. A low level (ie, the first signal) may be output to the processor 412 .
综上所述,如图6A所示,在耳机本体41入盒(即由盒外状态切换为盒内状态)过程中,磁传感器411向处理器412传输的信号由高电平变为低电平。处理器412具体可以用于:响应于磁传感器411传输的信号由高电平变为低电平,确定耳机本体41入盒。To sum up, as shown in FIG. 6A, during the process of putting the earphone body 41 into the box (that is, switching from the state outside the box to the state inside the box), the signal transmitted from the magnetic sensor 411 to the processor 412 changes from a high level to a low level. flat. The processor 412 may specifically be configured to determine that the headphone body 41 is in the box in response to the signal transmitted by the magnetic sensor 411 changing from a high level to a low level.
请参考图6B,其示出耳机本体41出盒过程中,磁传感器411向处理器412传输的信号与磁感应强度变化示意图。Please refer to FIG. 6B , which shows a schematic diagram of the signal transmitted from the magnetic sensor 411 to the processor 412 and the change of the magnetic induction intensity during the process of the earphone body 41 being out of the box.
假设耳机本体41处于盒内状态。如图6B所示,磁传感器411检测的磁感应强度在第一强度区间[Bi,Bii内,磁传感器411可以向处理器输出低电平(即第一信号)。Assume that the earphone body 41 is in a case. As shown in FIG. 6B , the magnetic induction detected by the magnetic sensor 411 is within the first intensity interval [Bi, Bii, and the magnetic sensor 411 may output a low level (ie, a first signal) to the processor.
可以理解,在耳机本体41出盒的过程中,可能会因为耳机本体41还未完全从耳机盒42的收纳腔中取出,而使得磁传感器411检测的磁感应强度在图6B所示的(Bii,Biii)内。基于这种情况,为了避免耳机本体41检测到耳机本体41频繁的出盒/入盒,磁传感器411还可以用于:在检测到磁感应强度在第一强度区间[Bi,Bii]内之后,如果检测到磁感应强度大于第一强度区域[Bi,Bii]的最大磁感应强度Bii、但小于第二强度区域[Biii,Biv]的最小磁感应强度Biii,则向处理器412输出低电平(即第一信号)。It can be understood that during the process of removing the earphone body 41 from the box, the magnetic induction intensity detected by the magnetic sensor 411 may not be completely taken out from the storage chamber of the earphone box 42 because the earphone body 41 is not completely removed from the box (Bii, Biii). Based on this situation, in order to prevent the earphone body 41 from detecting frequent out-of-box/in-box of the earphone body 41, the magnetic sensor 411 can also be used: after detecting that the magnetic induction intensity is within the first intensity interval [Bi, Bii], if Detect that the magnetic induction intensity is greater than the maximum magnetic induction intensity Bii of the first intensity area [Bi, Bii], but less than the minimum magnetic induction intensity Biii of the second intensity area [Biii, Biv], then output a low level to the processor 412 (i.e. the first Signal).
例如,如图6B所示,磁传感器411在检测到磁感应强度在[Bi,Bii]之后,如果检测到磁感应强度在(Bii,Biii)内,仍然可以向处理器412输出低电平(即第一信号)。For example, as shown in FIG. 6B , after the magnetic sensor 411 detects that the magnetic induction intensity is within [Bi, Bii], if it detects that the magnetic induction intensity is within (Bii, Biii), it can still output a low level to the processor 412 (that is, the first a signal).
耳机本体41出盒(即耳机本体41由盒内状态切换为盒外状态)之后,如图6B所示,磁传感器411检测的磁感应强度在第二强度区间[Biii,Biv]内,磁传感器411可以向处理器412输出高电平(即第二信号)。After the earphone body 41 is out of the box (that is, the earphone body 41 is switched from the state inside the box to the state outside the box), as shown in FIG. 6B , the magnetic induction intensity detected by the magnetic sensor 411 is within the second intensity interval [Biii, Biv]. A high level (ie, the second signal) may be output to the processor 412 .
综上所述,如图6B所示,在耳机本体41出盒(即由盒内状态切换为盒外状态)过程中,磁传感器411向处理器412传输的信号由低电平变为高电平。处理器412具体可以用于:响应于磁传感器411传输的信号由低电平变为高电平,确定耳机本体41出盒。In summary, as shown in FIG. 6B , during the process of the headphone body 41 being out of the box (that is, switching from the state inside the box to the state outside the box), the signal transmitted from the magnetic sensor 411 to the processor 412 changes from a low level to a high level. flat. The processor 412 may be specifically configured to: determine that the earphone body 41 is out of the box in response to the signal transmitted by the magnetic sensor 411 changing from a low level to a high level.
需要说明的是,上述实现方式(2)中,第二强度区间[Biii,Biv]中的Biii和第一强度区间[Bi,Bii]中的Bii可以是第一类磁传感器(如霍尔传感器)的两个磁感应强度门限,Biii>Bii。上述Bi可以为小于Bii的任一磁感器强度,上述Biv可以为大于Biii的任一磁感器强度。例如,Bi可以为零,Biv可以为无穷大。It should be noted that, in the above implementation (2), Biii in the second intensity interval [Biii, Biv] and Bii in the first intensity interval [Bi, Bii] can be the first type of magnetic sensor (such as a Hall sensor ), Biii>Bii. The above-mentioned Bi can be any magnetic sensor strength smaller than Bii, and the above-mentioned Biv can be any magnetic sensor strength larger than Biii. For example, Bi can be zero and Biv can be infinite.
可以理解,在实际产品中,霍尔传感器判断检测的磁感应强度时,可以仅使用上述Bii和Biii。具体的,霍尔传感器可以在检测的磁感应强度大于Biii时,向处理器412输出高电平(即第二信号)。如果霍尔传感器在检测到磁感应强度大于Biii之后,检测到磁感应强度在(Bii,Biii)内,如图6A所示,可以输出高电平(即第二信号)。It can be understood that, in actual products, when the Hall sensor judges the detected magnetic induction intensity, only Bii and Biii above can be used. Specifically, the Hall sensor may output a high level (that is, the second signal) to the processor 412 when the detected magnetic induction intensity is greater than Biii. If the Hall sensor detects that the magnetic induction is within (Bii, Biii) after detecting that the magnetic induction is greater than Biii, as shown in FIG. 6A , it may output a high level (ie, the second signal).
霍尔传感器可以在检测的磁感应强度小于Bii时,向处理器412输出低电平(即第二信号)。如果霍尔传感器在检测到磁感应强度小于Bii之后,检测到磁感应强度在(Bii,Biii)内,如图6B所示,可以输出低电平(即第一信号)。The Hall sensor may output a low level (that is, a second signal) to the processor 412 when the detected magnetic induction intensity is less than Bii. If the Hall sensor detects that the magnetic induction is within (Bii, Biii) after detecting that the magnetic induction is less than Bii, as shown in FIG. 6B , it may output a low level (ie, the first signal).
在另一些实施例中,以上述磁传感器411是第二类传感器(如磁力计)为例,对磁传感器411与处理器412配合,实现耳机本体41的出盒和入盒检测原理进行说明。In some other embodiments, taking the above-mentioned magnetic sensor 411 as an example of the second type of sensor (such as a magnetometer), the principle of cooperation between the magnetic sensor 411 and the processor 412 to realize the out-of-box and in-box detection of the earphone body 41 will be described.
在该实施例中,磁传感器411可以用于:检测耳机本体41周围的磁场的磁感应强度;向处理器412传输检测的磁感应强度。In this embodiment, the magnetic sensor 411 can be used to: detect the magnetic induction intensity of the magnetic field around the earphone body 41 ; and transmit the detected magnetic induction intensity to the processor 412 .
处理器412可以用于:在磁传感器411检测的磁感应强度由第一强度区间切换至第二强度区间时,确定耳机本体41出盒;在磁传感器411检测的磁感应强度由第二强度区间切换至第一强度区间时,确定耳机本体41入盒。The processor 412 can be used to: when the magnetic induction intensity detected by the magnetic sensor 411 is switched from the first intensity interval to the second intensity interval, determine that the earphone body 41 is out of the box; when the magnetic induction intensity detected by the magnetic sensor 411 is switched from the second intensity interval to In the first intensity interval, it is determined that the earphone body 41 is in the box.
示例性的,以下结合上述第一种情况和第二种情况,通过实现方式(a)和实现方式(b),对第二类磁传感器(如磁力计)与处理器412配合实现耳机本体41的出盒和入盒检测原理进行说明。Exemplarily, in combination with the first case and the second case above, through the implementation (a) and the implementation (b), the second type of magnetic sensor (such as a magnetometer) cooperates with the processor 412 to realize the earphone body 41 The principle of box-out and box-in detection will be described.
在实现方式(a)中,结合上述第一种情况,对耳机本体41的出盒和入盒检测原理进行说明。In the implementation mode (a), the principle of box-out and box-in detection of the earphone body 41 will be described in combination with the first case above.
在上述第一种情况中,假设第一强度区间为[B1,B2],第二强度区间为[B3,B4]。如图7A所示,第一强度区间[B1,B2]的最小磁感应强度B1大于第二强度区间[B3,B4]的最大磁感应强度B4。上述第一磁场(即处于盒内状态时,耳机本体41周围的磁场)的磁场强度大于第二磁场(即处于盒外状态时,耳机本体41周围的磁场)的磁场强度。In the first case above, it is assumed that the first intensity interval is [B1, B2] and the second intensity interval is [B3, B4]. As shown in FIG. 7A , the minimum magnetic induction intensity B1 of the first intensity interval [ B1 , B2 ] is greater than the maximum magnetic induction intensity B4 of the second intensity interval [ B3 , B4 ]. The magnetic field strength of the first magnetic field (that is, the magnetic field around the earphone body 41 when it is in the box) is greater than the magnetic field strength of the second magnetic field (that is, the magnetic field around the earphone body 41 when it is out of the box).
首先,本申请实施例结合图7A对耳机本体41的出盒过程进行说明:First, the embodiment of the present application describes the out-of-box process of the earphone body 41 with reference to FIG. 7A:
如图7A所示,在t1时刻-t3时刻这段时间,磁传感器检测到的磁感应强度在第一强度区间[B1,B2]内,处理器412可以确定耳机本体41处于盒内状态。假设从图7A所示的t2时刻开始,用户从耳机盒42中取出耳机本体41。由于第二磁场的磁场强度小于第一磁场的磁场强度;因此,用户从耳机盒42中取出耳机本体41的过程中,磁传感器411检测到的磁感应强度会变小。例如,如图7A所示,从t2时刻-t4时刻这段时间内,磁传感器411检测到的磁感应强度逐渐变小。As shown in FIG. 7A , during the period from time t1 to time t3 , the magnetic induction detected by the magnetic sensor is within the first intensity interval [B1, B2], and the processor 412 can determine that the earphone body 41 is in the box. Assume that the user takes out the earphone body 41 from the earphone box 42 from time t2 shown in FIG. 7A . Since the magnetic field intensity of the second magnetic field is smaller than that of the first magnetic field; therefore, when the user takes out the earphone body 41 from the earphone box 42, the magnetic induction intensity detected by the magnetic sensor 411 will become smaller. For example, as shown in FIG. 7A , during the period from time t2 to time t4 , the magnetic induction detected by the magnetic sensor 411 gradually decreases.
本申请实施例中,在磁传感器411检测的磁感应强度由第一强度区域[B1,B2]切换至第三强度区间(如图7A所示的(B4,B1))时,处理器412可以确定耳机本体41处于盒内状态。例如,如图7A所示,在t3时刻-t4时刻这段时间,磁传感器411检测到的磁感应强度在(B4,B1)内,处理器412可以确定耳机本体41处于盒内状态。In the embodiment of the present application, when the magnetic induction intensity detected by the magnetic sensor 411 is switched from the first intensity range [B1, B2] to the third intensity range ((B4, B1) as shown in FIG. 7A ), the processor 412 may determine that The earphone body 41 is in the box state. For example, as shown in FIG. 7A, during the period from time t3 to time t4, the magnetic induction intensity detected by the magnetic sensor 411 is within (B4, B1), and the processor 412 can determine that the earphone body 41 is in the box state.
其中,用户从耳机盒42中取出耳机本体41后,从t4时刻开始(如t4时刻-t5时刻),磁传感器411检测到的磁感应强度在第二强度区间[B3,B4]内,处理器412可以确定耳机本体41处于盒外状态。Wherein, after the user takes out the earphone body 41 from the earphone box 42, from time t4 (such as time t4-time t5), the magnetic induction intensity detected by the magnetic sensor 411 is within the second intensity interval [B3, B4], and the processor 412 It can be determined that the earphone body 41 is in an out-of-box state.
如图7A所示,从t2时刻开始截止t4时刻,磁传感器411检测到的磁感应强度从第一强度区域[B1,B2]切换至第二强度区间[B3,B4]。处理器412响应于磁传感器411检测的磁感应强度从第一强度区域[B1,B2]切换至第二强度区间[B3,B4],可以确定耳机本体41出盒。即耳机本体41由盒内状态切换为盒外状态。As shown in FIG. 7A , from time t2 to time t4 , the magnetic induction intensity detected by the magnetic sensor 411 is switched from the first intensity range [ B1 , B2 ] to the second intensity range [ B3 , B4 ]. The processor 412 may determine that the earphone body 41 is out of the box in response to the magnetic induction detected by the magnetic sensor 411 switching from the first intensity range [B1, B2] to the second intensity range [B3, B4]. That is, the earphone body 41 is switched from the state inside the box to the state outside the box.
其次,本申请实施例结合图7A对耳机本体41的入盒过程进行说明:Secondly, the embodiment of the present application describes the box-entry process of the earphone body 41 in conjunction with FIG. 7A:
如图7A所示,在t4时刻-t6时刻这段时间,磁传感器检测到的磁感应强度在第二强度区间[B3,B4]内,处理器412可以确定耳机本体41处于盒外状态。假设从图7A所示的t5时刻开始,用户将耳机本体41放入耳机盒42。由于第一磁场的磁场强度大于第二磁场的磁场强度;因此,用户将耳机本体41放入耳机盒42的过程中,磁传感器411检测到的磁感应强度会变大。例如,如图7A所示,从t5时刻-t7时刻这段时间内,磁传感器411检测到的磁感应强度逐渐变大。As shown in FIG. 7A, during the period from time t4 to time t6, the magnetic induction detected by the magnetic sensor is within the second intensity range [B3, B4], and the processor 412 can determine that the earphone body 41 is in the out-of-box state. Assume that the user puts the earphone body 41 into the earphone box 42 from time t5 shown in FIG. 7A . Since the magnetic field strength of the first magnetic field is greater than that of the second magnetic field; therefore, when the user puts the earphone body 41 into the earphone box 42 , the magnetic induction intensity detected by the magnetic sensor 411 will become larger. For example, as shown in FIG. 7A , during the period from time t5 to time t7 , the magnetic induction detected by the magnetic sensor 411 gradually increases.
本申请实施例中,在磁传感器411检测的磁感应强度由第二强度区域[B3,B4]切换至第三强度区间(如图7A所示的(B4,B1))时,处理器412可以确定耳机本体41处于盒外状态。例如,如图7A所示,在t6时刻-t7时刻这段时间,磁传感器411检测到的磁感应强度在(B4,B1)内,处理器412可以确定耳机本体41处于盒外状态。在本申请实施例中,第三强度区间与第二强度区间没有交集,且第三强度区间与第一强度区间没有交集。例如,(B4,B1)与[B3,B4]没有交集,且(B4,B1)与[B1,B2]没有交集。In the embodiment of the present application, when the magnetic induction intensity detected by the magnetic sensor 411 is switched from the second intensity range [B3, B4] to the third intensity range (as shown in FIG. 7A (B4, B1)), the processor 412 may determine that The earphone body 41 is in an out-of-box state. For example, as shown in FIG. 7A , during the period from time t6 to time t7, the magnetic induction intensity detected by the magnetic sensor 411 is within (B4, B1), and the processor 412 can determine that the earphone body 41 is in the out-of-box state. In the embodiment of the present application, there is no intersection between the third intensity interval and the second intensity interval, and there is no intersection between the third intensity interval and the first intensity interval. For example, (B4, B1) has no intersection with [B3, B4], and (B4, B1) has no intersection with [B1, B2].
其中,用户将耳机本体41放入耳机盒42后,从t7时刻开始,磁传感器411检测到的磁感应强度在第一强度区间[B1,B2]内,处理器412可以确定耳机本体41处于盒内状态。Wherein, after the user puts the earphone body 41 into the earphone box 42, from time t7, the magnetic induction intensity detected by the magnetic sensor 411 is within the first intensity interval [B1, B2], and the processor 412 can determine that the earphone body 41 is in the box state.
如图7A所示,从t5时刻开始到t7时刻,磁传感器411检测到的磁感应强度第二强度区间[B3,B4]切换至第一强度区域[B1,B2]。处理器412响应于磁传感器411检测的磁感应强度从第二强度区间[B3,B4]切换至第一强度区域[B1,B2],可以确定耳机本体41入盒。即耳机本体41由盒外状态切换为盒内状态。As shown in FIG. 7A , from time t5 to time t7 , the magnetic induction detected by the magnetic sensor 411 switches from the second intensity range [ B3 , B4 ] to the first intensity range [ B1 , B2 ]. The processor 412 may determine that the headphone body 41 is in the box in response to the magnetic induction detected by the magnetic sensor 411 switching from the second intensity range [B3, B4] to the first intensity range [B1, B2]. That is, the earphone body 41 is switched from the state outside the box to the state inside the box.
需要说明的是,上述实现方式(a)中,第二强度区间[B3,B4]中的B4和B3,第一强度区间[B1,B2]中的B1和B2可以是通过软件设置的。例如,耳机本体41可以统计耳机本体41处于盒内状态时磁传感器411检测到的磁感应强度,设置上述B1和B2。耳机本体41可以通过多次统计,得到耳机本体41处于盒内状态时的磁感应强度的最小值和最大值,并将该最小值设置为B1,最大值设置为B2。或者,B2可以为无穷大。It should be noted that, in the above implementation (a), B4 and B3 in the second intensity interval [B3, B4], and B1 and B2 in the first intensity interval [B1, B2] may be set by software. For example, the earphone body 41 can count the magnetic induction intensity detected by the magnetic sensor 411 when the earphone body 41 is in the box state, and set the above-mentioned B1 and B2. The earphone body 41 can obtain the minimum value and maximum value of the magnetic induction intensity when the earphone body 41 is in the box state through multiple statistics, and set the minimum value as B1 and the maximum value as B2. Alternatively, B2 can be infinite.
耳机本体41可以统计耳机本体41处于盒外状态时磁传感器411检测到的磁感应强度,设置上述B4。耳机本体41可以通过多次统计,得到耳机本体41处于盒外状态时的磁感应强度的最大值和最小值,并将该最大值设置为B4,最小值设置为B3。或者,B3可以为零。The earphone body 41 can count the magnetic induction intensity detected by the magnetic sensor 411 when the earphone body 41 is out of the box, and set the above B4. The earphone body 41 can obtain the maximum and minimum values of the magnetic induction intensity when the earphone body 41 is in the out-of-box state through multiple statistics, and set the maximum value as B4 and the minimum value as B3. Alternatively, B3 can be zero.
可以理解,在实际产品中,处理器412判断检测的磁感应强度时,可以仅使用上述B4和B1。具体的,处理器412响应于磁力计检测的磁感应强度由大于B1变为小于B4,则可以确定耳机本体41出盒;响应于磁力计检测的磁感应强度由小于B4变为大于B1,则可以确定耳机本体41入盒。It can be understood that, in an actual product, when the processor 412 judges the detected magnetic induction intensity, only the above-mentioned B4 and B1 may be used. Specifically, the processor 412 can determine that the earphone body 41 is out of the box in response to the magnetic induction detected by the magnetometer changing from greater than B1 to less than B4; in response to the magnetic induction detected by the magnetometer changing from less than B4 to greater than B1, it can be determined The earphone body 41 is put into the box.
在实现方式(b)中,结合上述第二种情况,对耳机本体41的出盒和入盒检测原理进行说明。In the implementation mode (b), in combination with the second case above, the principle of box-out and box-in detection of the earphone body 41 will be described.
在上述第二种情况中,假设第一强度区间为[Bi,Bii],第二强度区间为[Biii,Biv]。如图7B所示,第二强度区间[Biii,Biv]的最小磁感应强度Biii大于第二强度区间[Bi,Bii]的最大磁感应强度Bii。上述第一磁场(即处于盒内状态时,耳机本体41周围的磁场)的磁场强度小于第二磁场(即处于盒外状态时,耳机本体41周围的磁场)的磁场强度。In the second case above, it is assumed that the first intensity interval is [Bi, Bii] and the second intensity interval is [Biii, Biv]. As shown in FIG. 7B , the minimum magnetic induction Biii of the second intensity interval [Biii, Biv] is greater than the maximum magnetic induction Bii of the second intensity interval [Bi, Bii]. The magnetic field strength of the first magnetic field (that is, the magnetic field around the earphone body 41 when it is inside the box) is smaller than the magnetic field strength of the second magnetic field (that is, the magnetic field around the earphone body 41 when it is out of the box).
首先,本申请实施例结合图7B对耳机本体41的出盒过程进行说明:First, the embodiment of the present application describes the out-of-box process of the earphone body 41 in conjunction with FIG. 7B:
如图7B所示,在t8时刻-t10时刻这段时间,磁传感器检测到的磁感应强度在第一强度区间[Bi,Bii]内,处理器412可以确定耳机本体41处于盒内状态。假设从图7B所示的t9时刻开始,用户从耳机盒42中取出耳机本体41。由于第二磁场的磁场强度大于第一磁场的磁场强度;因此,用户从耳机盒42中取出耳机本体41的过程中,磁传感器411检测到的磁感应强度会变大。例如,如图7B所示,从t9时刻-t11时刻这段时间内,磁传感器411检测到的磁感应强度逐渐变大。As shown in FIG. 7B , during the period from time t8 to time t10 , the magnetic induction detected by the magnetic sensor is within the first intensity interval [Bi, Bii], and the processor 412 can determine that the earphone body 41 is in the box. Assume that the user takes out the earphone body 41 from the earphone box 42 from time t9 shown in FIG. 7B . Because the magnetic field strength of the second magnetic field is greater than that of the first magnetic field; therefore, when the user takes out the earphone body 41 from the earphone box 42, the magnetic induction intensity detected by the magnetic sensor 411 will become larger. For example, as shown in FIG. 7B , during the period from time t9 to time t11 , the magnetic induction detected by the magnetic sensor 411 gradually increases.
本申请实施例中,在磁传感器411检测的磁感应强度由第一强度区域[Bi,Bii]切换至第三强度区间(如图7B所示的(Bii,Biii))时,处理器412可以确定耳机本体41处于盒内状态。例如,如图7B所示,在t10时刻-t11时刻这段时间,磁传感器411检测到的磁感应强度在(Bii,Biii)内,处理器412可以确定耳机本体41处于盒内状态。In the embodiment of the present application, when the magnetic induction intensity detected by the magnetic sensor 411 is switched from the first intensity range [Bi, Bii] to the third intensity range (as shown in FIG. 7B (Bii, Biii)), the processor 412 may determine that The earphone body 41 is in the box state. For example, as shown in FIG. 7B , during the period from time t10 to time t11, the magnetic induction intensity detected by the magnetic sensor 411 is within (Bii, Biii), and the processor 412 can determine that the earphone body 41 is in the box state.
其中,用户从耳机盒42中取出耳机本体41后,从t11时刻开始(如t11时刻-t12时刻),磁传感器411检测到的磁感应强度在第二强度区间[Biii,Biv]内,处理器412可以确定耳机本体41处于盒外状态。Wherein, after the user takes out the earphone body 41 from the earphone box 42, from time t11 (such as time t11-time t12), the magnetic induction intensity detected by the magnetic sensor 411 is within the second intensity interval [Biii, Biv], and the processor 412 It can be determined that the earphone body 41 is in an out-of-box state.
如图7B所示,从t9时刻开始截止t11时刻,磁传感器411检测到的磁感应强度从第一强度区域[Bi,Bii]切换至第二强度区间[Biii,Biv]。处理器412响应于磁传感器411检测的磁感应强度从第一强度区域[Bi,Bii]切换至第二强度区间[Biii,Biv],可以确定耳机本体41出盒。即耳机本体41由盒内状态切换为盒外状态。As shown in FIG. 7B , from time t9 to time t11 , the magnetic induction detected by the magnetic sensor 411 is switched from the first intensity range [Bi, Bii] to the second intensity range [Biii, Biv]. The processor 412 may determine that the earphone body 41 is out of the box in response to the magnetic induction detected by the magnetic sensor 411 switching from the first intensity range [Bi, Bii] to the second intensity range [Biii, Biv]. That is, the earphone body 41 is switched from the state inside the box to the state outside the box.
其次,本申请实施例结合图7B对耳机本体41的入盒过程进行说明:Secondly, the embodiment of the present application describes the box-entry process of the earphone body 41 in conjunction with FIG. 7B:
如图7B所示,在t11时刻-t13时刻这段时间,磁传感器检测到的磁感应强度在第二强度区间[Biii,Biv]内,处理器412可以确定耳机本体41处于盒外状态。假设从图7B所示的t12时刻开始,用户将耳机本体41放入耳机盒42。由于第一磁场的磁场强度小于第二磁场的磁场强度;因此,用户将耳机本体41放入耳机盒42的过程中,磁传感器411检测到的磁感应强度会变小。例如,如图7B所示,从t12时刻-t14时刻这段时间内,磁传感器411检测到的磁感应强度逐渐变小。As shown in FIG. 7B , during the period from time t11 to time t13, the magnetic induction intensity detected by the magnetic sensor is within the second intensity interval [Biii, Biv], and the processor 412 can determine that the earphone body 41 is in the out-of-box state. Assume that the user puts the earphone body 41 into the earphone box 42 from time t12 shown in FIG. 7B . Since the magnetic field intensity of the first magnetic field is smaller than that of the second magnetic field; therefore, when the user puts the earphone body 41 into the earphone box 42 , the magnetic induction intensity detected by the magnetic sensor 411 will decrease. For example, as shown in FIG. 7B , during the period from time t12 to time t14 , the magnetic induction detected by the magnetic sensor 411 gradually decreases.
本申请实施例中,在磁传感器411检测的磁感应强度由第二强度区域[Biii,Biv]切换至第三强度区间(如图7B所示的(Bii,Biii))时,处理器412可以确定耳机本体41处于盒外状态。例如,如图7B所示,在t12时刻-t14时刻这段时间,磁传感器411检测到的磁感应强度在(Bii,Biii)内,处理器412可以确定耳机本体41处于盒外状态。In the embodiment of the present application, when the magnetic induction intensity detected by the magnetic sensor 411 is switched from the second intensity range [Biii, Biv] to the third intensity range (as shown in FIG. 7B (Bii, Biii)), the processor 412 may determine that The earphone body 41 is in an out-of-box state. For example, as shown in FIG. 7B , during the period from time t12 to time t14, the magnetic induction intensity detected by the magnetic sensor 411 is within (Bii, Biii), and the processor 412 can determine that the earphone body 41 is in the out-of-box state.
其中,用户将耳机本体41放入耳机盒42后,从t14时刻开始,磁传感器411检测到的磁感应强度在第一强度区间[Bi,Bii]内,处理器412可以确定耳机本体41处于盒内状态。Wherein, after the user puts the earphone body 41 into the earphone box 42, from time t14, the magnetic induction intensity detected by the magnetic sensor 411 is within the first intensity interval [Bi, Bii], and the processor 412 can determine that the earphone body 41 is in the box state.
如图7B所示,从t12时刻开始到t14时刻,磁传感器411检测到的磁感应强度第二强度区间[Biii,Biv]切换至第一强度区域[Bi,Bii]。处理器412响应于磁传感器411检测的磁感应强度从第二强度区间[Biii,Biv]切换至第一强度区域[Bi,Bii],可以确定耳机本体41入盒。即耳机本体41由盒外状态切换为盒内状态。As shown in FIG. 7B , from time t12 to time t14 , the magnetic induction detected by the magnetic sensor 411 switches from the second intensity range [Biii, Biv] to the first intensity range [Bi, Bii]. The processor 412 may determine that the headphone body 41 is in the box in response to the magnetic induction detected by the magnetic sensor 411 switching from the second intensity range [Biii, Biv] to the first intensity range [Bi, Bii]. That is, the earphone body 41 is switched from the state outside the box to the state inside the box.
需要说明的是,上述实现方式(b)中,第二强度区间[Biii,Biv]中的Biii和Biv,第一强度区间[Bi,Bii]中的Bii和Bi可以是通过软件设置的。耳机本体41设置Bi、Bii、Biii、Biv的方法可以参考上述实现方式(a)中的描述。不同的是,在实现方式(b)中,Bi可以为零,Biv可以为无穷大。It should be noted that, in the above implementation (b), Biii and Biv in the second intensity interval [Biii, Biv] and Bii and Bi in the first intensity interval [Bi, Bii] may be set by software. For the method of setting Bi, Bii, Biii, and Biv on the earphone body 41, reference may be made to the description in the above implementation (a). The difference is that in implementation (b), Bi can be zero, and Biv can be infinite.
可以理解,在实际产品中,处理器412判断检测的磁感应强度时,可以只使用上述Bii和Biii。具体的,处理器412响应于磁力计检测的磁感应强度由大于Biii变为小于Bii,则可以确定耳机本体41出盒;响应于磁力计检测的磁感应强度由小于B2变为大于Biii,则可以确定耳机本体41入盒。It can be understood that, in an actual product, when the processor 412 judges the detected magnetic induction intensity, only Bii and Biii above may be used. Specifically, the processor 412 can determine that the earphone body 41 is out of the box in response to the magnetic induction detected by the magnetometer changing from greater than Biii to less than Bii; in response to the magnetic induction detected by the magnetometer changing from less than B2 to greater than Biii, it can be determined that The earphone body 41 is put into the box.
需要注意的是,图7A或图7B仅以举例方式给出耳机本体41处于不同状态时,磁传感器411检测的磁感应强度的示意图。在实际产品中,耳机本体41处于对应状态时,磁传感器411检测的磁感应强度的大小和变化曲线包括但不限于图7A或图7B所示的磁感应强度。It should be noted that FIG. 7A or FIG. 7B is only an example showing the magnetic induction intensity detected by the magnetic sensor 411 when the earphone body 41 is in different states. In an actual product, when the earphone body 41 is in a corresponding state, the magnitude and change curve of the magnetic induction detected by the magnetic sensor 411 includes but not limited to the magnetic induction shown in FIG. 7A or 7B .
在另一些实施例中,在上述第一磁场的磁场强度大于第二磁场的磁场强度的情况下,第一强度区间的最小磁感应强度可以等于第二强度区间的最大磁感应强度。以第一强度区间是[Ba,Bb],第二强度区间是[Bc,Bd]为例,Ba=Bd。其中,Bb可以为无穷大,Bc可以为零。In some other embodiments, when the magnetic field strength of the first magnetic field is greater than the magnetic field strength of the second magnetic field, the minimum magnetic induction in the first strength interval may be equal to the maximum magnetic induction in the second strength interval. Taking the first intensity interval as [Ba , Bb ] and the second intensity interval as [Bc , Bd ] as an example,Ba = B d. Wherein, Bb can be infinite, and Bc can be zero.
例如,在该实施例中,以磁传感器411是第一类磁传感器(如霍尔传感器)为例。磁传感器411可以用于:检测耳机本体41周围的磁场的磁感应强度;如果检测的磁感应强度大于Ba(或Bd,Ba=Bd),向处理器42输出第一信号;如果检测到的磁感应强度小于Ba,向处理器42输出第二信号。For example, in this embodiment, it is taken as an example that the magnetic sensor 411 is a first-type magnetic sensor (such as a Hall sensor). The magnetic sensor 411 can be used to: detect the magnetic induction intensity of the magnetic field around the earphone body 41; if the detected magnetic induction intensity is greater than Ba (or Bd ,Ba = Bd ), output the first signal to the processor 42; if detected If the magnetic induction intensity is less than Ba ,a second signal is output to the processor 42 .
处理器412可以用于:响应于磁传感器411传输的信号由第一信号变为第二信号,确定耳机本体41出盒;响应于磁传感器411传输的信号由第二信号变为第一信号,确定无线耳机入盒。The processor 412 may be configured to: in response to the signal transmitted by the magnetic sensor 411 changing from the first signal to the second signal, determine that the earphone body 41 is out of the box; in response to the signal transmitted by the magnetic sensor 411 changing from the second signal to the first signal, Make sure the wireless earphones are in the box.
需要说明的是,上述第一信号,第二信号,以及处理器412根据第一信号和第二信号的变化确定耳机本体41出盒或入盒的方法,可以参考上述实施例中的相关描述,本申请实施例这里不予赘述。It should be noted that, for the above-mentioned first signal, second signal, and the method for the processor 412 to determine whether the headphone body 41 is out of the box or into the box according to the changes of the first signal and the second signal, you can refer to the relevant description in the above-mentioned embodiment, The embodiment of the present application will not be described in detail here.
又例如,在该实施例中,以磁传感器411是第二类磁传感器(如磁力计)为例。磁传感器411可以用于:检测耳机本体41周围的磁场的磁感应强度。For another example, in this embodiment, it is taken as an example that the magnetic sensor 411 is a second type of magnetic sensor (such as a magnetometer). The magnetic sensor 411 can be used for: detecting the magnetic induction intensity of the magnetic field around the earphone body 41 .
处理器412可以用于:在磁传感器411检测的磁感应强度由大于Ba切换为小于Ba时,确定耳机本体41出盒;在磁传感器411检测的磁感应强度由小于Ba切换为大于Ba时,确定耳机本体41入盒。The processor 412 can be used to: when the magnetic induction intensity detected by the magnetic sensor 411 is switched from greater thanBa to less thanBa , determine that the earphone body 41 is out of the box; when the magnetic induction detected by the magnetic sensor 411 is switched from less thanBa to greater thanBa , it is determined that the earphone body 41 is put into the box.
在上述第一磁场的磁场强度小于第二磁场的磁场强度的情况下,第二强度区间的最小磁感应强度可以等于第一强度区间的最大磁感应强度。以第一强度区间是[BA,BB],第二强度区间是[BC,BD]为例,BC=BB。其中,BD可以为无穷大,BA可以为零。In the case that the magnetic field strength of the first magnetic field is smaller than the magnetic field strength of the second magnetic field, the minimum magnetic induction in the second strength interval may be equal to the maximum magnetic induction in the first strength interval. Taking the first intensity interval as [BA , BB ] and the second intensity interval as [BC , BD ] as an example, BC =BB . Among them, BD can be infinite, and BA can be zero.
在这种情况下,耳机本体41对比周围磁场的磁感应强度与BB(或者BC,BC=BB),确定耳机本体41出盒或入盒的方法,可以参考上述“第一磁场的磁场强度大于第二磁场的磁场强度”的情况下,耳机本体41对比周围磁场的磁感应强度与Ba,确定耳机本体41出盒或入盒的方法。本申请实施例这里不再赘述。In this case, the earphone body 41 compares the magnetic induction intensity of the surrounding magnetic field withBB (orBC ,BC =BB ), and determines the method for the earphone body 41 to go out of the box or into the box. If the magnetic field strength is greater than the magnetic field strength of the second magnetic field", the earphone body 41 compares the magnetic induction intensity of the surrounding magnetic field with Ba to determine the method for the earphone body 41 to go out of the box or into the box. The embodiment of the present application will not be repeated here.
需要说明的是,本申请实施例中,无线耳机的一个耳机本体的出入盒检测结果和上述磁感应强度区间(如第一强度区间和第二强度区间),不会受到无线耳机的另一个耳机本体处于盒内状态或盒外状态的影响。It should be noted that, in the embodiment of the present application, the detection result of one earphone body of the wireless earphone and the above-mentioned magnetic induction intensity interval (such as the first intensity interval and the second intensity interval) will not be affected by the other earphone body of the wireless earphone. Effects of being in-box or out-of-box.
并且,耳机本体的出入盒检测结果和上述磁感应强度区间(如第一强度区间和第二强度区间),也不会因为耳机本体播放音频而受到影响。Moreover, the detection results of the earphone body entering and leaving the box and the above-mentioned magnetic induction intensity intervals (such as the first intensity interval and the second intensity interval) will not be affected by the audio played by the earphone body.
随着耳机本体和耳机盒的使用,耳机本体收纳于耳机盒的收纳腔内时,可能会因为耳机本体的磨损,导致耳机本体与收纳腔的间隙较大。但是,耳机本体的出入盒检测结果和上述磁感应强度区间(如第一强度区间和第二强度区间),不会因为上述间隙的变化而受到影响。With the use of the earphone body and the earphone box, when the earphone body is stored in the storage cavity of the earphone box, there may be a large gap between the earphone body and the storage cavity due to wear of the earphone body. However, the box-entry detection result of the earphone body and the above-mentioned magnetic induction intensity interval (such as the first intensity interval and the second intensity interval) will not be affected by the change of the above-mentioned gap.
并且,本申请实施例中所述的磁场均为静态磁场。上述第一强度区间和第二强度区间均为耳机本体和耳机盒相对静止时所产生的磁场。本申请实施例中,不考虑因为耳机本体或者耳机盒的运动而产生的磁场变化。Moreover, the magnetic fields described in the embodiments of the present application are all static magnetic fields. The above-mentioned first intensity interval and the second intensity interval are the magnetic fields generated when the earphone body and the earphone box are relatively stationary. In the embodiment of the present application, the change of the magnetic field due to the movement of the earphone body or the earphone box is not considered.
本申请实施例还提供一种无线耳机的出入盒检测方法。该方法可以应用于图4C所示的无线耳机(如无线耳机的耳机本体41)。该耳机本体41可以包括:磁传感器411和处理器412。当然,该耳机本体41还可以包括其他的器件。例如,该耳机本体41可以是图3所示的耳机本体300。如图8所示,该方法可以包括S801-S803。The embodiment of the present application also provides a method for detecting the entry and exit of a wireless earphone. This method can be applied to the wireless earphone shown in FIG. 4C (such as the earphone body 41 of the wireless earphone). The earphone body 41 may include: a magnetic sensor 411 and a processor 412 . Of course, the earphone body 41 may also include other components. For example, the earphone body 41 may be the earphone body 300 shown in FIG. 3 . As shown in Fig. 8, the method may include S801-S803.
S801、耳机本体41检测耳机本体41周围的磁场的磁感应强度。S801. The earphone body 41 detects the magnetic induction intensity of the magnetic field around the earphone body 41 .
具体的,可以由耳机本体41中的磁传感器411检测耳机本体41周围的磁场的磁感应强度。Specifically, the magnetic induction intensity of the magnetic field around the earphone body 41 can be detected by the magnetic sensor 411 in the earphone body 41 .
S802、耳机本体41在检测的磁感应强度由第一强度区间切换至第二强度区间时,确定耳机本体41出盒。S802. When the detected magnetic induction intensity of the earphone body 41 switches from the first intensity range to the second intensity range, determine that the earphone body 41 is out of the box.
S803、耳机本体41在检测的磁感应强度由第二强度区间切换至第一强度区间时,确定耳机本体41入盒。S803. When the detected magnetic induction intensity of the earphone body 41 is switched from the second intensity interval to the first intensity interval, determine that the earphone body 41 is in the box.
具体的,可以由耳机本体41中的处理器412执行S802和S803。本申请实施例中,磁传感器411和处理器412配合实现耳机本体41的出入盒检测的具体方法,可以参考上述实施例中对磁传感器411和处理器412的功能的详细介绍,本申请实施例这里不予赘述。Specifically, S802 and S803 may be executed by the processor 412 in the earphone body 41 . In the embodiment of the present application, the specific method for the cooperation of the magnetic sensor 411 and the processor 412 to realize the detection of the earphone body 41 entering and exiting the box can refer to the detailed introduction of the functions of the magnetic sensor 411 and the processor 412 in the above-mentioned embodiments. I won't go into details here.
本申请实施例中,该无线耳机可以通过检测耳机本体41周围的磁场的磁感应强度,这种非接触式的检测方式,检测无线耳机的出盒和入盒。如此,可以避免由于无线耳机和耳机盒上的电连接器接触不良,而导致对无线耳机出盒或入盒的误判。通过本申请实施例的方案,可以提高无线耳机的出入盒检测的准确性。In the embodiment of the present application, the wireless earphone can detect the out-of-box and in-box of the wireless earphone by detecting the magnetic induction intensity of the magnetic field around the earphone body 41 , which is a non-contact detection method. In this way, a misjudgment of the wireless earphone out of the box or in the box due to poor contact between the wireless earphone and the electrical connector on the earphone box can be avoided. Through the solutions of the embodiments of the present application, the accuracy of box entry and exit detection of wireless earphones can be improved.
在一些实施例中,响应于耳机本体41出盒,耳机本体41可以自动开启耳机本体41的无线通信功能(如蓝牙功能)。这样,耳机本体41便可以自动与搜索周围的电子设备(如手机),以建立蓝牙连接。In some embodiments, in response to the earphone body 41 being out of the box, the earphone body 41 can automatically turn on the wireless communication function (such as the Bluetooth function) of the earphone body 41 . In this way, the earphone body 41 can automatically search for surrounding electronic devices (such as mobile phones) to establish a Bluetooth connection.
例如,耳机本体41出盒后,可以自动开启蓝牙功能;然后,基于耳机本体41的存储器(如图3所示的存储器302)中保存的与该耳机本体41之前成功配对过的电子设备的连接数据,与该电子设备自动配对,建立蓝牙连接。For example, after the earphone body 41 is out of the box, the bluetooth function can be automatically turned on; data, automatically pair with the electronic device, and establish a Bluetooth connection.
其中,耳机本体41处于盒内状态时,可以实时或者周期性获取耳机盒42的剩余电量。耳机本体41出盒后,在与上述电子设备建立蓝牙连接之后,可以通过该蓝牙连接自动向该电子设备指示耳机盒42的剩余电量。Wherein, when the earphone body 41 is in the box state, the remaining power of the earphone box 42 can be acquired in real time or periodically. After the earphone body 41 is out of the box and establishes a bluetooth connection with the above-mentioned electronic device, it can automatically indicate the remaining power of the earphone box 42 to the electronic device through the bluetooth connection.
在另一些实施例中,响应于耳机本体41出盒,耳机本体41还可以自动开启耳机本体41中用于佩戴检测的传感器。其中,佩戴检测是指检测耳机本体41是否被用户佩戴。例如,用于佩戴检测的传感器可以包括接近光传感器和距离传感器中的至少一个。In some other embodiments, in response to the earphone body 41 being out of the box, the earphone body 41 may also automatically turn on the sensor for wearing detection in the earphone body 41 . Wherein, the wearing detection refers to detecting whether the earphone body 41 is worn by the user. For example, the sensor for wearing detection may include at least one of a proximity sensor and a distance sensor.
在另一些实施例中,响应于耳机本体41出盒,耳机本体41还可以自动开启用于耳机本体41实现其他功能的传感器。例如,用于耳机本体41实现其他功能的传感器可以包括:用于检测用户的触摸操作的触摸传感器,用于检测用户指纹识别用户身份的指纹传感器,用于感知环境光亮度的环境光传感器等中的至少一个。In some other embodiments, in response to the earphone body 41 being out of the box, the earphone body 41 may also automatically turn on a sensor for the earphone body 41 to perform other functions. For example, the sensor used for the earphone body 41 to realize other functions may include: a touch sensor for detecting the user's touch operation, a fingerprint sensor for detecting the user's fingerprint to identify the user's identity, an ambient light sensor for sensing the brightness of the ambient light, etc. at least one of the .
在一些实施例中,响应于耳机本体41入盒,耳机本体41可以自动关闭上述用于佩戴检测的传感器,以减少耳机本体41的功耗,节省电量。In some embodiments, in response to the earphone body 41 being boxed, the earphone body 41 may automatically turn off the aforementioned sensor for wearing detection, so as to reduce the power consumption of the earphone body 41 and save power.
在另一些实施例中,响应于耳机本体41入盒,耳机本体41可以自动关闭蓝牙功能,以减少耳机本体41的功耗,节省电量。In some other embodiments, in response to the earphone body 41 being boxed, the earphone body 41 may automatically turn off the Bluetooth function, so as to reduce the power consumption of the earphone body 41 and save power.
可选的,耳机本体41入盒后,可以先不关闭蓝牙功能,且不会断开与电子设备的蓝牙连接。耳机本体41入盒后,可以获取耳机盒42的剩余电量,并通过与电子设备的蓝牙连接向电子设备指示该耳机盒42的剩余电量。然后,耳机本体41可以关闭蓝牙功能。Optionally, after the earphone body 41 is put into the box, the Bluetooth function may not be turned off, and the Bluetooth connection with the electronic device will not be disconnected. After the earphone body 41 is put into the box, the remaining power of the earphone box 42 can be obtained, and the remaining power of the earphone box 42 can be indicated to the electronic device through the Bluetooth connection with the electronic device. Then, the earphone body 41 can turn off the Bluetooth function.
在另一些实施例中,响应于耳机本体41入盒,耳机本体41可以自动关闭上述用于耳机本体41实现其他功能的传感器,以减少耳机本体41的功耗,节省电量。In some other embodiments, in response to the earphone body 41 being put into the box, the earphone body 41 can automatically turn off the above-mentioned sensors for the earphone body 41 to realize other functions, so as to reduce the power consumption of the earphone body 41 and save power.
在另一些实施例中,响应于耳机本体41入盒,耳机本体41还可以通过耳机本体41与耳机盒42之间的电连接,向耳机盒42指示耳机本体41入盒,以请求耳机盒42为耳机本体41充电。当然,在一些实施例中,耳机本体41入盒后,耳机盒42可以通过与耳机本体41的电连接自动为耳机本体充电。In some other embodiments, in response to the earphone body 41 being boxed, the earphone body 41 can also indicate to the earphone box 42 that the earphone body 41 is boxed through the electrical connection between the earphone body 41 and the earphone box 42, so as to request the earphone box 42 Charge the earphone body 41 . Of course, in some embodiments, after the earphone body 41 is put into the box, the earphone box 42 can automatically charge the earphone body through the electrical connection with the earphone body 41 .
在另一些实施例中,响应于耳机本体41入盒,耳机本体41和耳机盒42还可以自动进入休眠状态。响应于耳机本体41出盒,耳机本体41还可以自动唤醒,退出上述休眠状态。示例性的,耳机本体41进入休眠状态后,可以关闭耳机本体41的各项功能(如蓝牙功能)或者器件(如用于佩戴检测的传感器)。耳机盒42进入休眠状态后,可以自动为耳机本体41充电。In other embodiments, in response to the earphone body 41 being put into the box, the earphone body 41 and the earphone box 42 may also automatically enter a dormant state. In response to the earphone body 41 being out of the box, the earphone body 41 can also automatically wake up and exit the sleep state. Exemplarily, after the earphone body 41 enters the sleep state, various functions (such as the Bluetooth function) or devices (such as sensors for wearing detection) of the earphone body 41 may be turned off. After the earphone box 42 enters the sleep state, it can automatically charge the earphone body 41 .
需要说明的是,在不冲突的前提下,上述任意多个实施例中的部分或全部特征可以结合,从而得到一个新的实施例。例如,耳机本体41确定耳机本体41入盒(即S803)后,不仅可以自动关闭蓝牙功能,还可以自动关闭用于佩戴检测的传感器。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。It should be noted that, under the premise of no conflict, some or all features in any of the above-mentioned embodiments can be combined to obtain a new embodiment. For example, after the earphone body 41 determines that the earphone body 41 is put into the box (ie S803), it can not only automatically turn off the Bluetooth function, but also automatically turn off the sensor used for wearing detection. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
在本申请另一些实施例中,可以在耳机盒42中设置磁传感器,在耳机本体41中设置第一磁体。由耳机盒42中的磁传感器和处理器配合实现耳机本体41的出盒和入盒检测。该实施例中,耳机盒42进行耳机本体41的出盒和入盒检测的原理,可以参考耳机本体41进行出盒和入盒检测的原理,本申请实施例这里不予赘述。In other embodiments of the present application, a magnetic sensor may be provided in the earphone box 42 , and a first magnet may be provided in the earphone body 41 . The out-of-box and in-box detection of the earphone body 41 is realized by the cooperation of the magnetic sensor and the processor in the earphone box 42 . In this embodiment, the principle of the earphone box 42 detecting the out-of-box and in-box of the earphone body 41 can be referred to the principle of the out-of-box and in-box detection of the earphone body 41, which will not be described in this embodiment of the present application.
在该实施例中,耳机盒42可以在确定耳机本体41入盒后,周期性(如每隔10秒、5秒或者8秒等任一时长)的通过与耳机本体41的电连接,向耳机本体41发送指示信息。该指示信息用于指示耳机本体41在耳机盒42内。耳机本体41响应于接收到该指示信息,可以关闭耳机本体41的各项功能或者器件,以减少耳机本体41的功耗,节省电量。In this embodiment, the earphone box 42 can periodically (such as every 10 seconds, 5 seconds, or 8 seconds, etc.) be electrically connected to the earphone body 41 after it is determined that the earphone body 41 is in the box. The main body 41 sends indication information. The indication information is used to indicate that the earphone body 41 is in the earphone box 42 . In response to receiving the indication information, the earphone body 41 may turn off various functions or components of the earphone body 41 to reduce power consumption of the earphone body 41 and save power.
耳机盒42可以在确定耳机本体41入盒后,可以自动为耳机本体41充电。耳机本体41出盒后,则不能接收到耳机盒42发送的指示信息。耳机本体41如果在预设时长内没有接收到该指示信息,则可以确定耳机本体41出盒。其中,该预设时长大于耳机盒42向耳机本体41发送指示信息的周期。耳机本体41确定耳机本体41出盒后,便可以自动开启耳机本体41的各项功能或者器件,以方便用户使用耳机本体41。The earphone box 42 can automatically charge the earphone body 41 after it is determined that the earphone body 41 is in the box. After the earphone body 41 is out of the box, the instruction information sent by the earphone box 42 cannot be received. If the earphone body 41 does not receive the indication information within the preset time period, it can be determined that the earphone body 41 is out of the box. Wherein, the preset duration is longer than the period in which the earphone box 42 sends the indication information to the earphone body 41 . After the earphone body 41 determines that the earphone body 41 is out of the box, various functions or components of the earphone body 41 can be automatically turned on, so that the user can use the earphone body 41 conveniently.
在本申请另一些实施例中,上述耳机盒42和耳机本体41中均可以设置磁传感器。并且,耳机盒42和耳机本体41中均可以设置第一磁体。耳机盒42中的磁传感器和处理器配合实现耳机本体41的出盒和入盒检测。耳机本体41中的磁传感器和处理器配合实现耳机本体41的出盒和入盒检测。该实施例中,耳机本体41的出盒和入盒检测的原理,可以参考耳机本体41进行出盒和入盒检测的原理,本申请实施例这里不予赘述。In other embodiments of the present application, magnetic sensors may be disposed in both the earphone box 42 and the earphone body 41 . Moreover, first magnets can be disposed in both the earphone box 42 and the earphone body 41 . The magnetic sensor and the processor in the earphone box 42 cooperate to realize the box-out and box-in detection of the earphone body 41 . The magnetic sensor and the processor in the earphone body 41 cooperate to realize the box-out and box-in detection of the earphone body 41 . In this embodiment, the principle of the box-out and box-in detection of the earphone body 41 can refer to the principle of the box-out and box-in detection of the earphone body 41 , which will not be described in this embodiment of the present application.
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by Completion of different functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially 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, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The above-mentioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and other various media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above content is only the specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered within the protection scope of the application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910843991.2ACN110602584A (en) | 2019-09-06 | 2019-09-06 | Wireless earphone and wireless earphone system |
| PCT/CN2020/108204WO2021042942A1 (en) | 2019-09-06 | 2020-08-10 | Wireless earphones and wireless earphone system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910843991.2ACN110602584A (en) | 2019-09-06 | 2019-09-06 | Wireless earphone and wireless earphone system |
| Publication Number | Publication Date |
|---|---|
| CN110602584Atrue CN110602584A (en) | 2019-12-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910843991.2APendingCN110602584A (en) | 2019-09-06 | 2019-09-06 | Wireless earphone and wireless earphone system |
| Country | Link |
|---|---|
| CN (1) | CN110602584A (en) |
| WO (1) | WO2021042942A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111314816A (en)* | 2020-02-27 | 2020-06-19 | 歌尔股份有限公司 | Headset state switching method and device, TWS headset and computer storage medium |
| CN111901720A (en)* | 2020-08-21 | 2020-11-06 | 厦门艾特微信息科技有限公司 | Wireless charging Bluetooth earphone |
| CN112269478A (en)* | 2020-10-20 | 2021-01-26 | 维沃移动通信有限公司 | Touch control pen and electronic product assembly |
| WO2021042942A1 (en)* | 2019-09-06 | 2021-03-11 | 华为技术有限公司 | Wireless earphones and wireless earphone system |
| CN112601149A (en)* | 2020-12-11 | 2021-04-02 | Oppo广东移动通信有限公司 | Earphone, earphone box and earphone box assembly |
| CN113286212A (en)* | 2021-05-20 | 2021-08-20 | 北京明略软件系统有限公司 | Wearing type audio acquisition assembly |
| CN113342301A (en)* | 2021-05-18 | 2021-09-03 | 安克创新科技股份有限公司 | Audio playing method and wearable device |
| CN113949959A (en)* | 2021-10-14 | 2022-01-18 | 维沃移动通信有限公司 | Wireless earphone and audio signal processing method |
| CN113993055A (en)* | 2021-10-29 | 2022-01-28 | 歌尔科技有限公司 | Method for detecting earphone in and out box, earphone box and readable storage medium |
| CN114040290A (en)* | 2021-11-10 | 2022-02-11 | 深圳市大十科技有限公司 | Open earphone box awakening device and awakening method |
| CN114125620A (en)* | 2020-08-31 | 2022-03-01 | 瑞昱半导体股份有限公司 | Bluetooth headset system and box that charges is accomodate to bluetooth headset |
| CN114363748A (en)* | 2020-10-12 | 2022-04-15 | 北京小米移动软件有限公司 | Wireless headset components and electronic device components |
| US11451899B2 (en) | 2020-08-24 | 2022-09-20 | Realtek Semiconductor Corporation | Bluetooth earphone system, and earphone case for storing and charging Bluetooth earphones |
| CN115175078A (en)* | 2022-05-19 | 2022-10-11 | 深圳沃迪声科技股份有限公司 | Earphone detection device, method and storage medium |
| CN115225992A (en)* | 2021-04-16 | 2022-10-21 | Oppo广东移动通信有限公司 | Earphone external device and wireless earphone |
| CN115278425A (en)* | 2021-04-30 | 2022-11-01 | 华为技术有限公司 | Wireless Headphone System and Wireless Headphones |
| CN115708361A (en)* | 2021-08-18 | 2023-02-21 | 华为技术有限公司 | Wireless earphone, earphone box and wireless earphone system |
| CN116679243A (en)* | 2022-12-12 | 2023-09-01 | 荣耀终端有限公司 | Detection method, readable storage medium, program product, and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20250199091A1 (en)* | 2023-12-15 | 2025-06-19 | Blackberry Limited | Reusable magnetic sensor circuit and methods therefor |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106292846A (en)* | 2015-05-22 | 2017-01-04 | 中兴通讯股份有限公司 | Electronic equipment, protection overlap and are applied to the method renovating detection of electronic equipment |
| CN106560114A (en)* | 2015-09-30 | 2017-04-12 | 苹果公司 | Earbud case with radio device shutdown feature |
| CN206759684U (en)* | 2017-04-14 | 2017-12-15 | 深圳市冠旭电子股份有限公司 | Magnetic induction type bluetooth earphone construction of switch |
| US20170374448A1 (en)* | 2016-03-31 | 2017-12-28 | Bose Corporation | On/Off Head Detection Using Magnetic Field Sensing |
| CN107864415A (en)* | 2017-11-08 | 2018-03-30 | 深圳市沃特沃德股份有限公司 | Audio amplifier and audio frequency apparatus share the control method and device of microphone |
| CN209330405U (en)* | 2019-01-18 | 2019-08-30 | 歌尔科技有限公司 | A kind of TWS bluetooth headset enters box detection device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20170011549A (en)* | 2015-07-23 | 2017-02-02 | 엘지전자 주식회사 | Wireless earset |
| KR102366797B1 (en)* | 2017-08-22 | 2022-02-23 | 삼성전자주식회사 | Electronic device including cover having open/close structure using magnetic force |
| TWM574776U (en)* | 2018-09-07 | 2019-02-21 | 正崴精密工業股份有限公司 | Headphone charging storage box |
| CN110166876B (en)* | 2019-06-15 | 2021-06-08 | 常德沁音科技有限公司 | Magnetic attraction type wireless Bluetooth headset charging box |
| CN110602584A (en)* | 2019-09-06 | 2019-12-20 | 华为技术有限公司 | Wireless earphone and wireless earphone system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106292846A (en)* | 2015-05-22 | 2017-01-04 | 中兴通讯股份有限公司 | Electronic equipment, protection overlap and are applied to the method renovating detection of electronic equipment |
| CN106560114A (en)* | 2015-09-30 | 2017-04-12 | 苹果公司 | Earbud case with radio device shutdown feature |
| US20170374448A1 (en)* | 2016-03-31 | 2017-12-28 | Bose Corporation | On/Off Head Detection Using Magnetic Field Sensing |
| CN206759684U (en)* | 2017-04-14 | 2017-12-15 | 深圳市冠旭电子股份有限公司 | Magnetic induction type bluetooth earphone construction of switch |
| CN107864415A (en)* | 2017-11-08 | 2018-03-30 | 深圳市沃特沃德股份有限公司 | Audio amplifier and audio frequency apparatus share the control method and device of microphone |
| CN209330405U (en)* | 2019-01-18 | 2019-08-30 | 歌尔科技有限公司 | A kind of TWS bluetooth headset enters box detection device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2021042942A1 (en)* | 2019-09-06 | 2021-03-11 | 华为技术有限公司 | Wireless earphones and wireless earphone system |
| CN111314816A (en)* | 2020-02-27 | 2020-06-19 | 歌尔股份有限公司 | Headset state switching method and device, TWS headset and computer storage medium |
| CN111901720A (en)* | 2020-08-21 | 2020-11-06 | 厦门艾特微信息科技有限公司 | Wireless charging Bluetooth earphone |
| US11451899B2 (en) | 2020-08-24 | 2022-09-20 | Realtek Semiconductor Corporation | Bluetooth earphone system, and earphone case for storing and charging Bluetooth earphones |
| TWI779337B (en)* | 2020-08-24 | 2022-10-01 | 瑞昱半導體股份有限公司 | Bluetooth earphone system, and storage and charging case for bluetooth earphones |
| CN114125620A (en)* | 2020-08-31 | 2022-03-01 | 瑞昱半导体股份有限公司 | Bluetooth headset system and box that charges is accomodate to bluetooth headset |
| CN114363748A (en)* | 2020-10-12 | 2022-04-15 | 北京小米移动软件有限公司 | Wireless headset components and electronic device components |
| CN112269478A (en)* | 2020-10-20 | 2021-01-26 | 维沃移动通信有限公司 | Touch control pen and electronic product assembly |
| CN112601149A (en)* | 2020-12-11 | 2021-04-02 | Oppo广东移动通信有限公司 | Earphone, earphone box and earphone box assembly |
| CN112601149B (en)* | 2020-12-11 | 2024-01-30 | Oppo广东移动通信有限公司 | Earphone, earphone box and earphone box assembly |
| CN115225992A (en)* | 2021-04-16 | 2022-10-21 | Oppo广东移动通信有限公司 | Earphone external device and wireless earphone |
| CN115278425A (en)* | 2021-04-30 | 2022-11-01 | 华为技术有限公司 | Wireless Headphone System and Wireless Headphones |
| WO2022227980A1 (en)* | 2021-04-30 | 2022-11-03 | 华为技术有限公司 | Wireless earphone system and wireless earphones |
| CN113342301A (en)* | 2021-05-18 | 2021-09-03 | 安克创新科技股份有限公司 | Audio playing method and wearable device |
| CN113286212A (en)* | 2021-05-20 | 2021-08-20 | 北京明略软件系统有限公司 | Wearing type audio acquisition assembly |
| CN113286212B (en)* | 2021-05-20 | 2022-07-12 | 北京明略软件系统有限公司 | Wearing type audio acquisition assembly |
| CN115708361A (en)* | 2021-08-18 | 2023-02-21 | 华为技术有限公司 | Wireless earphone, earphone box and wireless earphone system |
| CN115708361B (en)* | 2021-08-18 | 2024-07-30 | 华为技术有限公司 | Wireless earphone, earphone box and wireless earphone system |
| CN113949959A (en)* | 2021-10-14 | 2022-01-18 | 维沃移动通信有限公司 | Wireless earphone and audio signal processing method |
| CN113993055A (en)* | 2021-10-29 | 2022-01-28 | 歌尔科技有限公司 | Method for detecting earphone in and out box, earphone box and readable storage medium |
| CN114040290A (en)* | 2021-11-10 | 2022-02-11 | 深圳市大十科技有限公司 | Open earphone box awakening device and awakening method |
| CN115175078A (en)* | 2022-05-19 | 2022-10-11 | 深圳沃迪声科技股份有限公司 | Earphone detection device, method and storage medium |
| CN116679243A (en)* | 2022-12-12 | 2023-09-01 | 荣耀终端有限公司 | Detection method, readable storage medium, program product, and electronic device |
| Publication number | Publication date |
|---|---|
| WO2021042942A1 (en) | 2021-03-11 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110602584A (en) | Wireless earphone and wireless earphone system | |
| US12041406B2 (en) | Wireless headset and headset box | |
| CN112040461B (en) | A method and device for proximity discovery | |
| US20160219358A1 (en) | Wireless earbuds with reciprocating leader and follower configuration | |
| US11736851B2 (en) | Wireless playback device, and playback control method and apparatus thereof | |
| CN110958516B (en) | Wireless earphone | |
| US12317025B2 (en) | Earphone | |
| WO2020019843A1 (en) | Microphone hole blockage detection method and related product | |
| KR20130066880A (en) | Detecting system for connecting of earphone and electric device supporting the same | |
| CN109150221B (en) | A wearable device master-slave switching method and related products | |
| CN114079837B (en) | Wireless earphone, earphone storage box and wireless earphone system | |
| US20220053255A1 (en) | Wireless headset | |
| WO2022242528A1 (en) | Volume adjustment method and terminal device | |
| CN112771828A (en) | Audio data communication method and electronic equipment | |
| CN114915957A (en) | Bluetooth headset reconnection control method and control device | |
| WO2023020322A1 (en) | Wireless earphone, earphone case and wireless earphone system | |
| CN108834013B (en) | Wearable equipment electric quantity balancing method and related product | |
| CN108882084A (en) | A kind of wearable device electric quantity balancing method and Related product | |
| CN208863048U (en) | A kind of wireless playing equipment and wear-type wireless headphone system | |
| CN113645573A (en) | Earphone configuration data sharing method, earphone and storage medium | |
| WO2020042491A1 (en) | Headphone far-field interaction method, headphone far-field interaction accessory, and wireless headphones | |
| WO2022227980A1 (en) | Wireless earphone system and wireless earphones | |
| CN216820048U (en) | Earphone box with wireless communication function and wireless communication equipment | |
| CN112118031B (en) | Voice interaction device and its control method, device and computer storage medium | |
| CN111277930B (en) | Single-ear far detection method of multi-ear Bluetooth headset and Bluetooth headset |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20191220 |