CN113038327B - Detection method, detection device, charging box and storage medium - Google Patents
Detection method, detection device, charging box and storage medium Download PDFInfo
- Publication number
- CN113038327B CN113038327B CN202110276961.5A CN202110276961A CN113038327B CN 113038327 B CN113038327 B CN 113038327B CN 202110276961 A CN202110276961 A CN 202110276961A CN 113038327 B CN113038327 B CN 113038327B
- Authority
- CN
- China
- Prior art keywords
- audio
- earphone
- box
- charging box
- target audio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 72
- 238000000034 method Methods 0.000 claims abstract description 31
- 230000005236 sound signal Effects 0.000 claims description 62
- 238000012545 processing Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 17
- 238000013461 design Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
- 230000003647 oxidation Effects 0.000 description 1
- 238000007254 oxidation reaction Methods 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1025—Accumulators or arrangements for charging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请公开了一种检测方法、装置、充电盒及存储介质,属于通信技术领域。该方法主要包括在充电盒的盖体和盒体相对开启的情况下,获取第一目标音频;在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内;通过充电盒给耳机充电;其中,预设音频为预先存储的耳机放置于盒体的音频,第一目标音频为耳机与充电盒接触的声音。本申请实施例中提供的方法能够解决目前检测耳机与充电盒连接不准确,且充电盒无法有效为耳机充电的问题。
The application discloses a detection method, a device, a charging box and a storage medium, which belong to the technical field of communication. The method mainly includes acquiring the first target audio when the cover and the box of the charging box are relatively open; The earphone is placed in the box; the earphone is charged through the charging box; wherein, the preset audio is the pre-stored audio of the earphone placed in the box, and the first target audio is the sound of the earphone in contact with the charging box. The method provided in the embodiment of the present application can solve the problem that the current detection of the connection between the earphone and the charging box is inaccurate, and the charging box cannot effectively charge the earphone.
Description
技术领域technical field
本申请属于通信技术领域,具体涉及一种检测方法、装置、充电盒及存储介质。The present application belongs to the technical field of communication, and specifically relates to a detection method, a device, a charging box and a storage medium.
背景技术Background technique
随着可穿戴设备的发展,越来越多的穿戴式设备如智能手环、无线耳机等受到用户的喜欢。其中,无线耳机因其小巧、携带方便而备受用户青睐。With the development of wearable devices, more and more wearable devices such as smart bracelets and wireless earphones are favored by users. Among them, wireless earphones are favored by users because of their compactness and portability.
目前,无线耳机续航时间比短,需要配套充电盒对其进行充电。充电盒在检测到无线耳机入盒即两者连接之后,才会为其充电。其中,可以通过无线耳机和充电盒之间的引脚连接来检测两者连接,还可以通过传感器来检测两者连接。但是,前者会因引脚氧化导致检测准确度降低,后者则会因无线耳机未入盒时传感器距离充电盒顶板的距离与无线耳机入盒时耳机主体距离传感器的距离相差不大,导致错误检测,降低检测无线耳机与充电盒连接的准确性。At present, the battery life of wireless earphones is relatively short, and a supporting charging box is required to charge them. The charging box will not charge the wireless headset until it detects that the wireless headset is in the box, that is, the two are connected. Among them, the connection between the wireless headset and the charging box can be detected through the pin connection between the two, and the connection between the two can also be detected through the sensor. However, the former will reduce the detection accuracy due to oxidation of the pins, while the latter will cause errors because the distance between the sensor and the top plate of the charging box when the wireless headset is not in the box is not much different from the distance between the earphone body and the sensor when the wireless headset is in the box. Detection, reducing the accuracy of detecting the connection between the wireless headset and the charging box.
发明内容Contents of the invention
本申请实施例的目的是提供一种检测方法、装置、充电盒及存储介质,能够解决目前检测耳机与充电盒连接不准确,且充电盒无法有效为耳机充电的问题。The purpose of the embodiments of the present application is to provide a detection method, device, charging box and storage medium, which can solve the current problem of inaccurate detection of the connection between the earphone and the charging box, and the charging box cannot effectively charge the earphone.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:
第一方面,本申请实施例提供了一种检测方法,该方法可以包括:In the first aspect, the embodiment of the present application provides a detection method, which may include:
在充电盒的盖体和盒体相对开启的情况下,获取第一目标音频;Acquiring the first target audio when the cover and the box of the charging box are relatively open;
在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内;When the similarity between the first target audio and the preset audio satisfies the first preset threshold, it is determined that the earphone corresponding to the charging box is placed in the box;
通过充电盒给耳机充电;其中,预设音频为预先存储的耳机放置于盒体的音频,第一目标音频为耳机与充电盒接触的声音。The earphone is charged through the charging box; wherein, the preset audio is the pre-stored audio of the earphone placed in the box, and the first target audio is the sound of the earphone contacting the charging box.
第二方面,本申请实施例提供了一种检测装置,该装置可以包括:In the second aspect, the embodiment of the present application provides a detection device, which may include:
获取模块,用于在充电盒的盖体和盒体相对开启的情况下,获取第一目标音频;An acquisition module, configured to acquire the first target audio when the cover and the box of the charging box are relatively opened;
处理模块,用于在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内;A processing module, configured to determine that the earphone corresponding to the charging box is placed in the box when the similarity between the first target audio and the preset audio satisfies a first preset threshold;
通过充电盒给耳机充电;其中,预设音频为预先存储的耳机放置于盒体的音频,第一目标音频为耳机与充电盒接触的声音。The earphone is charged through the charging box; wherein, the preset audio is the pre-stored audio of the earphone placed in the box, and the first target audio is the sound of the earphone contacting the charging box.
第三方面,本申请实施例提供了一种充电盒,该充电盒包括收音器、处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面所示的检测方法的步骤。In the third aspect, the embodiment of the present application provides a charging box, the charging box includes a radio, a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor When realizing the steps of the detection method shown in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面所示的检测方法的步骤。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the detection method shown in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面所示的检测方法的步骤。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the detection method as shown in the first aspect.
在本申请实施例中,通过将获取到的第一目标音频与预先存储的耳机放置于盒体的预设音频进行匹配,在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内,并通过充电盒给耳机充电。这样,在不外露引脚且不在耳机中增加传感器的前提下,利用声波检测耳机是否放置于充电盒中且为其进行充电。由此,有效降低错误检测的可能性,提高检测耳机与充电盒连接的准确性,保证充电盒快速为其对应的耳机进行充电。In the embodiment of the present application, by matching the obtained first target audio with the pre-stored preset audio with the earphones placed in the box, when the similarity between the first target audio and the preset audio satisfies the first preset threshold , make sure that the headset corresponding to the charging box is placed in the box, and charge the headset through the charging box. In this way, on the premise of not exposing pins and adding sensors to the earphone, the sound wave is used to detect whether the earphone is placed in the charging box and to charge it. Thus, the possibility of false detection is effectively reduced, the accuracy of detecting the connection between the earphone and the charging box is improved, and the charging box is ensured to quickly charge its corresponding earphone.
附图说明Description of drawings
图1为本申请实施例提供的一种检测架构示意图;FIG. 1 is a schematic diagram of a detection architecture provided by an embodiment of the present application;
图2为本申请实施例提供的一种充电盒结构示意图;Fig. 2 is a schematic structural diagram of a charging box provided by an embodiment of the present application;
图3为本申请实施例提供的一种检测方法的流程图;Fig. 3 is a flow chart of a detection method provided by the embodiment of the present application;
图4为本申请实施例提供的一种耳机A样式示意图;FIG. 4 is a schematic diagram of an earphone A style provided by the embodiment of the present application;
图5为本申请实施例提供的一种耳机A放置于充电盒中方式示意图;Fig. 5 is a schematic diagram of a way of placing an earphone A in a charging box according to an embodiment of the present application;
图6为本申请实施例提供的一种耳机A放置于充电盒的时域波形示意图;FIG. 6 is a schematic diagram of a time-domain waveform of an earphone A placed in a charging box according to an embodiment of the present application;
图7为本申请实施例提供的一种耳机B样式示意图;FIG. 7 is a schematic diagram of an earphone B style provided by the embodiment of the present application;
图8为本申请实施例提供的一种耳机B放置于充电盒中方式示意图;Fig. 8 is a schematic diagram of a way of placing an earphone B in a charging box according to an embodiment of the present application;
图9为本申请实施例提供的一种耳机B放置于充电盒的时域波形示意图;FIG. 9 is a schematic diagram of a time-domain waveform of an earphone B placed in a charging box provided by an embodiment of the present application;
图10为本申请实施例提供的一种时域波形对比示意图;FIG. 10 is a schematic diagram of a comparison of time-domain waveforms provided by the embodiment of the present application;
图11为本申请实施例提供的一种检测装置的结构示意图;FIG. 11 is a schematic structural diagram of a detection device provided in an embodiment of the present application;
图12为本申请实施例提供的一种充电盒的结构示意图。Fig. 12 is a schematic structural diagram of a charging case provided in an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
目前,随着可穿戴设备的发展,越来越多的穿戴式设备如智能手环、耳机如无线耳机被广大消费者接受,其中,无线耳机因其小巧方便,备受青睐。无线耳机因体积较小,续航时间比短,需要配套充电盒对其进行充电。充电盒需要检测到无线耳机入盒即两者连接之后,才会开启充电电路为无线耳机进行充电。这里,在充电盒检测到无线耳机入盒,充电盒会自动和无线耳机连接上,获取无线耳机的电量,如果电量为100%,则不会充电,如果电量不足100%,就会对其进行充电。At present, with the development of wearable devices, more and more wearable devices such as smart bracelets and earphones such as wireless earphones are accepted by consumers. Among them, wireless earphones are popular because of their small size and convenience. Due to their small size and relatively short battery life, wireless earphones need a matching charging box to charge them. The charging box needs to detect that the wireless headset is in the box, that is, after the two are connected, the charging circuit will be turned on to charge the wireless headset. Here, when the charging box detects that the wireless headset is in the box, the charging box will automatically connect to the wireless headset to obtain the power of the wireless headset. If the power is 100%, it will not be charged. If the power is less than 100%, it will be checked. Charge.
这里,充电盒检测无线耳机入盒的方式包括:方式一,无线耳机和充电盒之间通过外露的引脚来检测无线耳机入盒。其中,外露的引脚一般为2个或3个的引脚,若外露的引脚包括两个,则其中一个作为通信的引脚,另外一个作为充电的引脚;若外露的引脚包括三个,则其中1个作为通信的引脚,另外2个引脚是充电的引脚。方式二,在充电盒中增加红外传感器、电容传感器、霍尔传感器等来检测无线耳机入盒接。Here, the way for the charging box to detect the entry of the wireless earphone into the box includes: Method 1, the wireless earphone and the charging box use exposed pins to detect the entry of the wireless earphone into the box. Among them, the exposed pins are generally 2 or 3 pins. If the exposed pins include two, one of them is used as a communication pin and the other is used as a charging pin; if the exposed pins include three , one of them is used as a communication pin, and the other 2 pins are used for charging. Method 2: Add infrared sensors, capacitive sensors, Hall sensors, etc. to the charging box to detect the connection of the wireless earphones into the box.
但是,方式一,需要在无线耳机和充电盒中增加检测电路,而且无线耳机和充电盒都有外露引脚,在影响外观的同时,引脚会氧化导致检测准确度降低。方式二,需要在无线耳机内部和充电盒内部同时增加传感器,这样,即不利于无线耳机的小体积大电量的设计,也会在无线耳机未入充电盒时,因无线耳机未入盒时传感器距离充电盒顶板的距离与无线耳机入盒时耳机主体距离传感器的距离相差不大,导致错误检测,降低检测无线耳机与充电盒连接的准确性。However, in the first method, a detection circuit needs to be added to the wireless earphone and the charging box, and both the wireless earphone and the charging box have exposed pins. While affecting the appearance, the pins will be oxidized and the detection accuracy will be reduced.
基于此,针对上述出现的问题,本申请实施例提供的检测方法目的是在不外露引脚且不在无线耳机中增加传感器的前提下,利用声波检测无线耳机入盒。其中,本申请实施例利用无线耳机放入充电盒子时,由于无线耳机的结构、充电盒的结构以及无线耳机放入充电盒的方式等差异,无线耳机入盒时会有特定的声音,这个声音有固定的时域波形(Timedomain,TD)和频域波形(Frequency domain,FD)。这样,先将无线耳机入盒时的声音进行录音,提取TD和FD等参数,存储于充电盒子如存储在充电盒子微控制单元(Microcontrollerunit,MCU)。在检测到充电盒的盖体和盒体相对开启时,充电盒开始获取目标音频,当检测到目标音频和预先存储的TD和FD一致时,则确定与充电盒对应的无线耳机放置于盒体内,并通过充电盒给耳机充电。Based on this, in view of the above-mentioned problems, the purpose of the detection method provided by the embodiment of the present application is to use sound waves to detect the entry of the wireless earphone into the box without exposing pins and adding sensors to the wireless earphone. Among them, when the wireless earphone is put into the charging box in the embodiment of the present application, due to the differences in the structure of the wireless earphone, the structure of the charging box, and the way the wireless earphone is placed in the charging box, there will be a specific sound when the wireless earphone is put into the box. There are fixed time domain waveforms (Timedomain, TD) and frequency domain waveforms (Frequency domain, FD). In this way, first record the sound of the wireless earphone when it is put into the box, extract parameters such as TD and FD, and store them in the charging box, such as in the charging box Microcontroller unit (MCU). When it is detected that the lid and the box of the charging box are relatively open, the charging box starts to acquire the target audio, and when the target audio is detected to be consistent with the pre-stored TD and FD, it is determined that the wireless earphone corresponding to the charging box is placed in the box , and charge the headset through the charging box.
由此,有效降低错误检测的可能性,提高检测无线耳机与充电盒连接的准确性,保证充电盒快速为其对应的无线耳机进行充电。另外,也给无线耳机的小空间大电量的设计留下了更多的电池空间,同时检测时也不需限定无线耳机有电,也不需要无线耳机和充电盒进行通讯,最大程度的保证了无线耳机设计的轻便性。Thus, the possibility of false detection is effectively reduced, the accuracy of detecting the connection between the wireless earphone and the charging box is improved, and the charging box is ensured to quickly charge its corresponding wireless earphone. In addition, it also leaves more battery space for the small space and large power design of the wireless earphones. At the same time, it is not necessary to limit the power of the wireless earphones during detection, and there is no need for the wireless earphones to communicate with the charging box. Lightweight wireless headset design.
基于此,下面结合附图1-图2,通过具体的实施例及其应用场景对本申请实施例提供的检测方法进行详细地说明。Based on this, the detection method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings 1-2.
本申请实施例提出一种检测架构,如图1所示,该检测架构可以包括充电盒和耳机包括无线耳机10或者可以有配置充电盒的设备如智能手表等可穿戴设备。其中,充电盒包括盖体101和盒体102,充电盒可以用于收纳无线耳机10,并在其电量不足100%,为其进行充电。The embodiment of the present application proposes a detection framework, as shown in FIG. 1 , the detection framework may include a charging box and earphones, including
下面分别对上述涉及的充电盒和无线耳机10分别进行说明。The charging box and the
如图2所示,本申请实施例提供了一种充电盒中电路结构示意图,如图2所示,其中,该充电盒200包括但不限于下述元件:通用串行总线(Universal serial bus,USB)20、过压保护电路(Overvoltage protection,OVP)21、电源管理单元(Power managementunit,PMU)22、电池23、低压差线性稳压器(Low dropout regulator,LDO)24、微控制单元MCU25、发光二级管(Light-emitting diode,LED)26、收音器27如麦克风(microphone)等。其中,通用串行总线20,用于规范充电盒与外部设备如充电器的连接和通讯;过压保护电路21用于保护后续电路免受甩负载或瞬间高压的破坏;电源管理单元22为控制数字平台电源功能的微控制器;电池23可以为与充电盒对应的无线耳机10进行充电;微控制单元25用于存储无线耳机10放置于盒体的音频,或者,存储无线耳机10放置于盒体的音频和盖体101和盒体102相对闭合的音频,并检测获取的第一目标音频与存储的预设音频的相似度是否满足第一预设阈值,或者,检测获取的第一目标音频与存储的预设音频的相似度是否满足第一预设阈值,以及获取的第二目标音频与存储的预设音频的相似度是否满足第二预设阈值。在检测第一目标音频与预设音频的相似度满足第一预设阈值的情况下,确定与充电盒对应的无线耳机10放置于盒体102内,且与无线耳机10连接,或者,在检测第一目标音频与预设音频的相似度满足第一预设阈值,且检测第二目标音频与预设音频的相似度满足第二预设阈值的情况下,确定盖体101和盒体102相对闭合,且无线耳机10置于充电盒内且与无线耳机10连接。在确定与无线耳机10连接时,控制电源管理单元22检测电量,并通过电池23为无线耳机10进行充电;发光二级管26可以作为提示灯为用户提示电量信息;收音器27用于拾取和传送声音,可以将声音信号转换为电信号,在本申请实施例中的收音器27可以获取无线耳机10放置于盒体102的音频和盖体101和盒体102相对闭合的音频,以及在检测到充电盒的盖体101和盒体102相对开启的情况下,获取第一目标音频(或者第一目标音频和第二目标音频),以便于微控制单元25检测第一目标音频与预设音频的相似度是否满足第一预设阈值(或者检测第一目标音频与预设音频的相似度是否满足第一预设阈值以及检测第二目标音频与预设音频的相似度是否满足第二预设阈值)。无线耳机10可以为无线蓝牙耳机(True Wireless Stereo,TWS)。As shown in FIG. 2 , the embodiment of the present application provides a schematic diagram of a circuit structure in a charging box. As shown in FIG. 2 , the charging box 200 includes but is not limited to the following components: Universal serial bus (Universal serial bus, USB) 20, overvoltage protection circuit (Overvoltage protection, OVP) 21, power management unit (Power management unit, PMU) 22, battery 23, low dropout regulator (Low dropout regulator, LDO) 24, micro control unit MCU25, A light-emitting diode (Light-emitting diode, LED) 26 and a
基于上述检测架构,本申请实施例提供的检测方法可以通过收音器27获取无线耳机10放置于盒体102的预设音频,这样,在微控制单元25检测到充电盒的盖体101和盒体102相对开启,或者检测到充电盒中未包括无线耳机10,且充电盒的盖体101和盒体102相对开启的情况下,通过收音器27获取第一目标音频;微控制单元25在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的无线耳机10放置于盒体102内,且与无线耳机10连接。或者,通过收音器27获取第一目标音频和第二目标音频;微控制单元25在第一目标音频与预设音频的相似度满足第一预设阈值,且第二目标音频与预设音频的相似度满足第二预设阈值时,确定盖体101和盒体102相对闭合,且无线耳机10放置于充电盒内,且与无线耳机10连接。然后,微控制单元25通过电源管理单元22检测无线耳机10的电量,在无线耳机10的电量小于或者等于预设电量如100%时,通过电池23为无线耳机10进行充电。Based on the above detection framework, the detection method provided by the embodiment of the present application can obtain the preset audio frequency of the
由此,在不外露引脚且不在无线耳机中增加传感器的前提下,利用声波检测无线耳机是否放置于充电盒中且与之连接。由此,有效降低错误检测的可能性,提高检测无线耳机与充电盒连接的准确性,以保证充电盒快速为其对应的无线耳机进行充电。Thus, on the premise of not exposing pins and adding sensors to the wireless earphone, the sound wave is used to detect whether the wireless earphone is placed in the charging box and connected to it. Therefore, the possibility of false detection is effectively reduced, and the accuracy of detecting the connection between the wireless earphone and the charging box is improved, so as to ensure that the charging box quickly charges its corresponding wireless earphone.
需要说明的是,基于该检测架构,对本申请实施例提供的检测方法的应用场景进行说明。其中,本申请实施例提供的检测方法处理可以应用于上述充电盒检测无线耳机入盒的场景。还可以应用于电子设备检测与充电器连接的场景如在检测到电子设备电量小于或者等于预设电量的情况下,获取第一目标音频,在第一目标音频与预设音频的相似度满足第一预设阈值时,确定电子设备和充电器连接,以便电子设备开启充电电路为其电子设备充电。基于此,本申请实施例还可以用于任何检测两个设备连接的场景中,在此不再限定。It should be noted that based on the detection framework, the application scenario of the detection method provided in the embodiment of the present application will be described. Wherein, the detection method processing provided in the embodiment of the present application can be applied to the above-mentioned scene where the charging box detects the entry of the wireless earphone into the box. It can also be applied to the scene where the electronic device detects that it is connected to the charger. For example, when it is detected that the power of the electronic device is less than or equal to the preset power, the first target audio is obtained, and the similarity between the first target audio and the preset audio satisfies the first When a preset threshold is reached, it is determined that the electronic device is connected to the charger, so that the electronic device turns on the charging circuit to charge the electronic device. Based on this, the embodiment of the present application can also be used in any scenario of detecting the connection of two devices, which is not limited here.
根据上述应用场景,下面结合图3对本申请实施例提供的检测方法进行详细说明。According to the above application scenario, the detection method provided by the embodiment of the present application will be described in detail below with reference to FIG. 3 .
图3为本申请实施例提供的一种检测方法的流程图。FIG. 3 is a flow chart of a detection method provided by an embodiment of the present application.
如图3所示,该检测方法可以应用于充电盒,基于此,具体可以包括如下步骤:As shown in Figure 3, the detection method can be applied to the charging box, based on this, it can specifically include the following steps:
首先,步骤310,在充电盒的盖体和盒体相对开启的情况下,获取第一目标音频。然后,步骤320,在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内;步骤330,通过充电盒给耳机充电,其中,预设音频为预先存储的耳机放置于盒体的音频,第一目标音频为耳机与充电盒接触的声音。First, in step 310, the first target audio is acquired when the cover and the box of the charging box are relatively open. Then, in step 320, when the similarity between the first target audio and the preset audio satisfies the first preset threshold, it is determined that the earphone corresponding to the charging box is placed in the box; in step 330, the earphone is charged through the charging box, wherein the preset Assume that the audio is the pre-stored audio of the earphones placed in the box, and the first target audio is the sound of the earphones touching the charging box.
下面对上述步骤进行详细说明,具体如下所示:The above steps are described in detail below, as follows:
首先,涉及步骤310,在一种或者多种可选的实施例中,在检测到充电盒中未包括耳机,且充电盒的盖体和盒体相对开启的情况下,获取第一目标音频。First, it involves step 310. In one or more optional embodiments, when it is detected that the charging box does not include an earphone, and the cover and box of the charging box are relatively opened, the first target audio is acquired.
这里,为保证减少充电盒的电量,可以在检测到充电盒中未包括耳机,且充电盒的盖体和盒体相对开启的情况下,获取第一目标音频,以便排除充电盒中包括耳机时开启收音器以增加充电盒耗电量的问题。Here, in order to reduce the power of the charging box, it is possible to obtain the first target audio when it is detected that the charging box does not include earphones, and the cover and box body of the charging box are relatively open, so as to exclude the case where the earphones are included in the charging box. Turn on the radio to increase the power consumption of the charging case.
需要说明的是,若耳机为两个时,充电盒中仅包括一个耳机,且充电盒的盖体和盒体相对开启的情况下,也要开启收音器以获取第一目标音频,保证充电盒检测另一个耳机与其连接的准确性。It should be noted that if there are two earphones, only one earphone is included in the charging box, and when the cover and box body of the charging box are relatively open, the receiver should also be turned on to obtain the first target audio to ensure that the charging box Check the accuracy of another headset connected to it.
然后,涉及步骤320,在一种或者多种可选的实施例中,在步骤320之前,该检测方法还可以包括:Then, step 320 is involved. In one or more optional embodiments, before step 320, the detection method may also include:
在耳机包括第一耳机和第二耳机的情况下,获取第一耳机放置于盒体的第一音频以及第二耳机放置于盒体的第二音频;In the case where the earphone includes a first earphone and a second earphone, acquire the first audio of the first earphone placed in the box and the second audio of the second earphone placed in the box;
将第一音频和第二音频确定为预设音频。The first audio and the second audio are determined as preset audio.
基于此,该步骤320具体可以包括:Based on this, the step 320 may specifically include:
提取第一目标音频中第一目标音频信号,第一目标音频信号包括除噪音信号以外的音频信号;Extracting the first target audio signal in the first target audio, the first target audio signal includes audio signals other than noise signals;
将第一目标音频信号与第一音频的第一音频信号和第二音频的第二音频信号进行匹配,得到匹配结果;Matching the first target audio signal with the first audio signal of the first audio and the second audio signal of the second audio to obtain a matching result;
在匹配结果表征第一目标音频信号与第一音频信号和第二音频信号的相似度大于或者等于第一预设阈值时,确定与充电盒对应的耳机放置于盒体内。When the matching result indicates that the similarity between the first target audio signal and the first audio signal and the second audio signal is greater than or equal to a first preset threshold, it is determined that the earphone corresponding to the charging box is placed in the box.
举例说明,提取第一目标音频中除了噪声信号以外的第一目标音频信号,该第一目标音频信号在一种可能的实施例中包括两个,即第一子目标音频信号和第二子目标音频信号。这里,确定第一子目标音频信号对应的时域波形31和频域波形32,以及第二子目标音频信号对应的时域波形33和频域波形34。For example, to extract the first target audio signal except the noise signal in the first target audio, the first target audio signal includes two in a possible embodiment, namely the first sub-target audio signal and the second sub-target audio signal. Here, the time-domain waveform 31 and the frequency-domain waveform 32 corresponding to the first sub-target audio signal, and the time-domain waveform 33 and frequency-domain waveform 34 corresponding to the second sub-target audio signal are determined.
将预存的第一音频信号对应的时域波形35和频域波形36,以及预存的第二音频信号对应的时域波形37和频域波形38,与时域波形31和频域波形32、时域波形33和频域波形34进行匹配,在时域波形31和频域波形32与时域波形35和频域波形36匹配,以及时域波形33和频域波形34与时域波形37和频域波形38匹配的情况下,确定与充电盒对应的耳机放置于盒体内。The time domain waveform 35 and the
这里,需要说明的是,第一音频信号可以是第一耳机放置于盒体的音频信号,或者,是第二耳机放置于盒体的音频信号。由此,若第一目标音频信号的时域波形和频域波形只要将其与预设的音频信号匹配上,则可以确定与充电盒对应的耳机放置于盒体内。Here, it should be noted that the first audio signal may be an audio signal of the first earphone placed in the box, or an audio signal of the second earphone placed in the box. Thus, as long as the time-domain waveform and frequency-domain waveform of the first target audio signal are matched with the preset audio signal, it can be determined that the earphone corresponding to the charging box is placed in the box.
另外,在一种或者多种可选的实施例中,该步骤320具体可以包括:In addition, in one or more optional embodiments, this step 320 may specifically include:
在预设音频还包括盖体和盒体相对闭合的第三音频的情况下,获取第二目标音频,第二目标音频为盖体和盒体相对闭合的声音;在第二目标音频的第二目标音频信号与第三音频的第三音频信号的相似度大于或者等于第二预设阈值的情况下,确定盖体和盒体相对闭合,且耳机放置于充电盒内。In the case that the preset audio also includes the third audio of the relative closure of the lid and the box body, the second target audio is obtained, and the second target audio is the sound of the relative closure of the lid and the box body; When the similarity between the target audio signal and the third audio signal of the third audio is greater than or equal to the second preset threshold, it is determined that the cover and the box are relatively closed, and the earphone is placed in the charging box.
举例说明,类似于耳机放入充电盒中,会有独特的音频信号对应的时域波形和频域波形,同理,充电盒的盖体和盒体相对闭合时也会有特殊的时域波形和频域波形。为了提升检测耳机与充电盒连接的准确性,可以结合耳机放入充电盒的过程进行三次检测即一只耳机放入检测、另一只耳机放入检测以及充电盒的盖体和盒体相对闭合检测,其具体检测过程如下:For example, similar to putting the earphones into the charging box, there will be a time-domain waveform and a frequency-domain waveform corresponding to the unique audio signal. Similarly, when the lid and the box body of the charging box are relatively closed, there will also be a special time-domain waveform. and frequency domain waveforms. In order to improve the accuracy of detecting the connection between the earphone and the charging box, three tests can be performed in combination with the process of putting the earphone into the charging box, that is, one earphone is put in for detection, the other earphone is put in for detection, and the cover and box of the charging box are relatively closed The specific detection process is as follows:
分别获取一只耳机放入的音频、另一只耳机放入的音频以及第二目标音频即充电盒的盖体和盒体相对闭合的音频。Acquire the audio input from one earphone, the audio input from the other earphone, and the audio of the second target audio, that is, the relatively closed lid and box body of the charging box.
然后将一只耳机放入的音频的第一子目标音频信号对应的时域波形31和频域波形32,另一只耳机放入的音频的第二子目标音频信号对应的时域波形33和频域波形34以及第二目标音频对应的时域波形39和频域波形40,与其预设音频的第一音频信号对应的时域波形35和频域波形36,预存的第二音频信号对应的时域波形37和频域波形38,以及预存的第三音频的第三音频信号对应的时域波形41和频域波形42。Then the time-domain waveform 31 and the frequency-domain waveform 32 corresponding to the first sub-target audio signal of the audio put in by an earphone, and the time-domain waveform 33 and the corresponding time-domain waveform 33 of the second sub-target audio signal of the audio put in by another earphone The frequency domain waveform 34 and the time domain waveform 39 and the frequency domain waveform 40 corresponding to the second target audio, the time domain waveform 35 and the
若三组对应的第一目标音频和第二目标音频与预存的三组音频的时域波形和频域波形的相似度满足预设阈值即第一预设阈值和第二预设阈值,则确定与充电盒对应的耳机放置于充电盒内。If the similarity between the first target audio and the second target audio corresponding to the three groups and the time-domain waveform and the frequency-domain waveform of the three pre-stored audio groups meet the preset threshold, that is, the first preset threshold and the second preset threshold, then determine The earphones corresponding to the charging box are placed in the charging box.
需要说明的是,获取第一目标音频和第二目标音频的间隔时间要小于或者等于预设时间段,即保证为一次的耳机放入充电盒,避免检测误差。另外,本申请实施例中的检测方法不限定检测音频和获取音频的先后顺序,即可以先获取第一目标音频之后随即对第一目标音频和预设音频进行匹配,再获取第二目标音频,并将第二目标音频和预设音频进行匹配。或者,在预设时间段内获取第一目标音频和第二目标音频,并同时将第一目标音频和第二目标音频与预设音频进行匹配,在此不再限定其先后顺序。It should be noted that the interval between acquiring the first target audio and the second target audio should be less than or equal to the preset time period, that is, to ensure that the earphone is put into the charging box for one time, so as to avoid detection errors. In addition, the detection method in the embodiment of the present application does not limit the order of audio detection and audio acquisition, that is, the first target audio can be obtained first, and then the first target audio and the preset audio can be matched, and then the second target audio can be obtained. And match the second target audio with the preset audio. Alternatively, the first target audio and the second target audio are acquired within a preset time period, and the first target audio and the second target audio are matched with the preset audio at the same time, and the sequence thereof is not limited here.
另外,本申请实施例提供的检测方法可以根据不用类型的耳机、不同类型的充电盒以及耳机放置于充电盒的位置,预设音频之间会有不同,通过图4-图10进行举例说明。In addition, the detection method provided by the embodiment of the present application may vary according to different types of earphones, different types of charging boxes, and the positions where the earphones are placed in the charging box.
如图4所示的耳机样式1对应的耳机A,如图5所示的耳机A在充电盒中的摆放方式为竖直放入。那么,图6为耳机A放入充电盒中的时域波形示意图。另外,如图7所示的耳机样式2对应的耳机B,如图8所示的耳机B在充电盒中的摆放方式为水平放入。那么,图9为耳机B放入充电盒中的时域波形示意图。将图6所示的时域波形示意图与图9所示的时域波形示意图进行波形对比,如图10所示,上方曲线为耳机A对应的曲线,下方曲线为耳机B对应的曲线,框101为耳机A的频域最大值对应的频段2~3KHz,框102为耳机B的频域最大值对应的7~9KHz。The earphone A corresponding to the earphone style 1 shown in Figure 4, and the earphone A shown in Figure 5 are placed vertically in the charging box. Then, FIG. 6 is a schematic diagram of time-domain waveforms when earphone A is put into the charging box. In addition, the earphone B corresponding to the
从上述举例可以看得出,耳机放入充电盒时,存在特定的频域波形、时域波形及时长,不同的耳机因耳机的结构、充电盒的结构、摆放方式等差异,有不同的波形及时长。通过特定波形的检测,可以确定与充电盒对应的耳机是否放置于盒体内,且与耳机连接。From the above examples, it can be seen that when the earphones are placed in the charging box, there are specific frequency domain waveforms, time domain waveforms, and duration. waveform and duration. Through the detection of specific waveforms, it can be determined whether the earphone corresponding to the charging box is placed in the box and connected to the earphone.
此外,在一种或者多种可选的实施例中,在步骤320之后,该检测方法还可以包括:检测耳机的电量;In addition, in one or more optional embodiments, after step 320, the detection method may further include: detecting the power of the earphone;
在耳机的电量小于或者等于预设电量时,对耳机进行充电。When the power of the headset is less than or equal to the preset power, the headset is charged.
然后,涉及步骤330,检测耳机的电量,在电量小于或者等于预设电量如100%时,通过充电盒耳机进行充电。Then, step 330 is involved, detecting the power of the earphone, and charging the earphone through the charging box when the power is less than or equal to a preset power such as 100%.
综上,本申请实施例中通过将获取到的第一目标音频与预先存储的耳机放置于盒体的音频的预设音频进行匹配,在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内。这样,在不外露引脚且不在耳机中增加传感器的前提下,利用声波检测耳机是否放置于充电盒中且与之连接。由此,有效降低错误检测的可能性,提高检测耳机与充电盒连接的准确性,以保证充电盒快速为其对应的耳机进行充电。To sum up, in the embodiment of the present application, by matching the acquired first target audio with the pre-stored preset audio of the earphone placed in the box, the similarity between the first target audio and the preset audio satisfies the first When the threshold is preset, it is determined that the earphone corresponding to the charging box is placed in the box. In this way, on the premise of not exposing pins and adding sensors to the earphone, the sound wave is used to detect whether the earphone is placed in the charging box and connected to it. As a result, the possibility of false detection is effectively reduced, and the accuracy of detecting the connection between the earphone and the charging box is improved, so as to ensure that the charging box quickly charges its corresponding earphone.
另外,也给耳机的小空间大电量的设计留下了更多的电池空间,同时检测时也不需限定耳机有电,也不需要耳机和充电盒进行通讯,最大程度的保证了耳机设计的轻便性。In addition, it also leaves more battery space for the small space and large power design of the earphones. At the same time, it is not necessary to limit the power of the earphones during detection, and it is not necessary for the earphones to communicate with the charging box, which ensures the earphone design to the greatest extent. Portability.
需要说明的是,本申请实施例提供的检测方法,执行主体可以为检测装置,或者该检测装置中的用于执行检测的方法的控制模块。本申请实施例中以检测装置执行检测方法为例,说明本申请实施例提供的检测的装置。基于相同的发明构思,本申请还提供了一种检测装置。具体结合图11进行详细说明。It should be noted that, the detection method provided in the embodiment of the present application may be executed by a detection device, or a control module in the detection device for executing the detection method. In the embodiment of the present application, the detection device executed by the detection device is taken as an example to illustrate the detection device provided in the embodiment of the present application. Based on the same inventive concept, the present application also provides a detection device. It will be described in detail with reference to FIG. 11 .
图11为本申请实施例提供的一种检测装置的结构示意图。FIG. 11 is a schematic structural diagram of a detection device provided by an embodiment of the present application.
如图11所示,该检测装置1100应用于充电盒,具体可以包括:As shown in Figure 11, the
获取模块1101,用于在充电盒的盖体和盒体相对开启的情况下,获取第一目标音频;An
处理模块1102,用于在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内;The
充电模块1103,用于通过充电盒给耳机充电;其中,预设音频为预先存储的耳机放置于盒体的音频,第一目标音频为耳机与充电盒接触的声音。The
在本申请实施例中,在不外露引脚且不在耳机中增加传感器的前提下,利用声波检测耳机是否放置于充电盒中且与之连接。由此,有效降低错误检测的可能性,提高检测耳机与充电盒连接的准确性,保证充电盒快速为其对应的耳机进行充电。In the embodiment of the present application, on the premise that the pins are not exposed and no sensors are added to the earphone, sound waves are used to detect whether the earphone is placed in the charging box and connected to it. Thus, the possibility of false detection is effectively reduced, the accuracy of detecting the connection between the earphone and the charging box is improved, and the charging box is ensured to quickly charge its corresponding earphone.
下面对该检测装置1100进行详细说明,具体如下所示:The
在一种或者多种可能的实施例中,该获取模块1101还用于,在耳机包括第一耳机和第二耳机的情况下,获取第一耳机放置于盒体的第一音频以及第二耳机放置于盒体的第二音频;In one or more possible embodiments, the acquiring
处理模块1102还用于,将第一音频和第二音频确定为预设音频。The
在一种或者多种可能的实施例中,处理模块1102具体用于,提取第一目标音频中第一目标音频信号,第一目标音频信号包括除噪音信号以外的音频信号;In one or more possible embodiments, the
将第一目标音频信号与第一音频的第一音频信号和第二音频的第二音频信号进行匹配,得到匹配结果;Matching the first target audio signal with the first audio signal of the first audio and the second audio signal of the second audio to obtain a matching result;
在匹配结果表征第一目标音频信号与第一音频信号和第二音频信号的相似度大于或者等于第一预设阈值时,确定与充电盒对应的耳机放置于盒体内。When the matching result indicates that the similarity between the first target audio signal and the first audio signal and the second audio signal is greater than or equal to a first preset threshold, it is determined that the earphone corresponding to the charging box is placed in the box.
在一种或者多种可能的实施例中,处理模块1102具体用于,在预设音频还包括盖体和盒体相对闭合的第三音频的情况下,获取第二目标音频,第二目标音频为盖体和盒体相对闭合的声音;在第二目标音频的第二目标音频信号与第三音频的第三音频信号的相似度大于或者等于第二预设阈值的情况下,确定盖体和盒体相对闭合,且耳机放置于充电盒内。In one or more possible embodiments, the
基于此,本申请实施例中在获取第一目标音频和第二目标音频的时间间隔小于或者等于预设时间的情况下,通过所述充电盒给所述耳机充电。Based on this, in the embodiment of the present application, when the time interval between acquiring the first target audio and the second target audio is less than or equal to a preset time, the earphone is charged through the charging box.
在一种或者多种可能的实施例中,获取模块1101具体用于,在检测到充电盒中未包括耳机,且充电盒的盖体和盒体相对开启的情况下,获取第一目标音频。In one or more possible embodiments, the acquiring
在一种或者多种可能的实施例中,充电模块1103用于检测耳机的电量;在耳机的电量小于或者等于预设电量时,通过充电盒给耳机进行充电。In one or more possible embodiments, the
本申请实施例中的检测装置可以是装置,也可以是充电盒中的部件、集成电路、或芯片,本申请实施例不作具体限定。The detection device in the embodiment of the present application may be a device, or a component in the charging box, an integrated circuit, or a chip, which is not specifically limited in the embodiment of the present application.
本申请实施例中的检测装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The detection device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的检测装置能够实现图1至图10的方法实施例实现的各个过程,为避免重复,这里不再赘述。The detection device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 10 , and details are not repeated here to avoid repetition.
在本申请实施例中,通过将获取到的第一目标音频与预先存储的耳机放置于盒体的音频的预设音频进行匹配,在第一目标音频与预设音频的相似度满足第一预设阈值时,确定与充电盒对应的耳机放置于盒体内,且与耳机连接,保证充电盒快速为其对应的耳机进行充电。这样,在不外露引脚且不在耳机中增加传感器的前提下,利用声波检测耳机是否放置于充电盒中且与之连接。In the embodiment of the present application, by matching the acquired first target audio with the pre-stored preset audio of the earphone placed in the box, when the similarity between the first target audio and the preset audio satisfies the first preset When setting the threshold, make sure that the earphones corresponding to the charging box are placed in the box and connected to the earphones to ensure that the charging box can quickly charge its corresponding earphones. In this way, on the premise of not exposing pins and adding sensors to the earphone, the sound wave is used to detect whether the earphone is placed in the charging box and connected to it.
由此,有效降低错误检测的可能性,提高检测耳机与充电盒连接的准确性,保证充电盒快速为其对应的耳机进行充电。另外,也给耳机的小空间大电量的设计留下了更多的电池空间,同时检测时也不需限定耳机有电,也不需要耳机和充电盒进行通讯,最大程度的保证了耳机设计的轻便性。Thus, the possibility of false detection is effectively reduced, the accuracy of detecting the connection between the earphone and the charging box is improved, and the charging box is ensured to quickly charge its corresponding earphone. In addition, it also leaves more battery space for the small space and large power design of the earphones. At the same time, it is not necessary to limit the power of the earphones during detection, and it is not necessary for the earphones to communicate with the charging box, which ensures the earphone design to the greatest extent. Portability.
可选的,如图12所示,本申请实施例还提供一种充电盒1200,包括收音器1201、处理器1202和存储器1203,存储在存储器1203上并可在处理器1202上运行的程序或指令,该程序或指令被处理器1202执行时实现上述检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 12 , the embodiment of the present application also provides a
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by the processor, each process of the above-mentioned detection method embodiment can be realized, and the same technical effect can be achieved , to avoid repetition, it will not be repeated here.
其中,处理器为上述实施例中的充电盒中的处理器。其中,可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the charging box in the above embodiment. Wherein, the readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
另外,本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。In addition, the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above detection method embodiments, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method of each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110276961.5A CN113038327B (en) | 2021-03-15 | 2021-03-15 | Detection method, detection device, charging box and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110276961.5A CN113038327B (en) | 2021-03-15 | 2021-03-15 | Detection method, detection device, charging box and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113038327A CN113038327A (en) | 2021-06-25 |
CN113038327B true CN113038327B (en) | 2022-12-20 |
Family
ID=76470552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110276961.5A Active CN113038327B (en) | 2021-03-15 | 2021-03-15 | Detection method, detection device, charging box and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113038327B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114488313B (en) * | 2021-07-22 | 2023-01-24 | 荣耀终端有限公司 | Earphone in-situ detection method and device |
CN113672533B (en) * | 2021-08-03 | 2024-10-29 | 维沃移动通信有限公司 | Insertion detection method, insertion detection device, electronic equipment and storage medium |
CN114679653A (en) * | 2022-03-25 | 2022-06-28 | 无锡睿勤科技有限公司 | Wireless earphone, charging box and earphone assembly |
CN115602192B (en) * | 2022-04-06 | 2023-11-14 | 荣耀终端有限公司 | Functional accessory detection system |
CN115567820A (en) * | 2022-09-26 | 2023-01-03 | 歌尔科技有限公司 | Method for detecting the state of earphones in and out of the box, state detection device, and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108810787A (en) * | 2018-05-28 | 2018-11-13 | Oppo广东移动通信有限公司 | Foreign matter detecting method and device based on audio frequency apparatus, terminal |
CN109493870A (en) * | 2018-11-28 | 2019-03-19 | 途客电力科技(天津)有限公司 | Charging pile identity identifying method, device and electronic equipment |
US10349176B1 (en) * | 2018-03-30 | 2019-07-09 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for processing signals, terminal device, and non-transitory computer-readable storage medium |
CN110429677A (en) * | 2019-07-31 | 2019-11-08 | 歌尔股份有限公司 | Charging box and wireless headset charging system |
CN111343534A (en) * | 2020-03-02 | 2020-06-26 | 昆山众赢昌盛贸易有限公司 | Wireless earphone in-ear detection method and wireless earphone |
CN112492449A (en) * | 2019-12-23 | 2021-03-12 | 无锡中感微电子股份有限公司 | Wireless earphone receiver and wireless earphone |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104105418A (en) * | 2012-07-03 | 2014-10-15 | 惠州市吉瑞科技有限公司 | Acoustic-control electronic cigarette case and electronic cigarette device |
-
2021
- 2021-03-15 CN CN202110276961.5A patent/CN113038327B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10349176B1 (en) * | 2018-03-30 | 2019-07-09 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for processing signals, terminal device, and non-transitory computer-readable storage medium |
CN108810787A (en) * | 2018-05-28 | 2018-11-13 | Oppo广东移动通信有限公司 | Foreign matter detecting method and device based on audio frequency apparatus, terminal |
CN109493870A (en) * | 2018-11-28 | 2019-03-19 | 途客电力科技(天津)有限公司 | Charging pile identity identifying method, device and electronic equipment |
CN110429677A (en) * | 2019-07-31 | 2019-11-08 | 歌尔股份有限公司 | Charging box and wireless headset charging system |
CN112492449A (en) * | 2019-12-23 | 2021-03-12 | 无锡中感微电子股份有限公司 | Wireless earphone receiver and wireless earphone |
CN111343534A (en) * | 2020-03-02 | 2020-06-26 | 昆山众赢昌盛贸易有限公司 | Wireless earphone in-ear detection method and wireless earphone |
US10939193B1 (en) * | 2020-03-02 | 2021-03-02 | Ifory Limited | In-ear detection method for a wireless earphone and a wireless earphone |
Also Published As
Publication number | Publication date |
---|---|
CN113038327A (en) | 2021-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113038327B (en) | Detection method, detection device, charging box and storage medium | |
CN110413134B (en) | Wearing state detection method and related equipment | |
WO2019062242A1 (en) | Wireless earpiece and control method therefor | |
CN108810280B (en) | Voice acquisition frequency processing method and device, storage medium and electronic equipment | |
CN109639902B (en) | Interaction control method and device of earphone box, earphone box and storage medium | |
CN105635387A (en) | Antenna control method and mobile terminal | |
US20160094906A1 (en) | Electronics interface for device headset jack | |
CN108848264A (en) | Microphone control method and device, storage medium and electronic equipment | |
CN106020510A (en) | Control method and device of terminal | |
US20240152313A1 (en) | Wearing detection method, wearable device, and storage medium | |
CN104702783B (en) | Article searching method and automatic answering system based on voice signal | |
CN104505551A (en) | Charging method and charging circuit of wearable device | |
CN105978098A (en) | Charging control method and device | |
CN107681727A (en) | The control method and device of electronic equipment | |
TW201732497A (en) | Microphone apparatus | |
CN107220163A (en) | Mobile terminal, management method thereof, and computer-readable storage medium | |
CN206272807U (en) | A bluetooth earphone and its battery power detection device | |
CN107046304A (en) | Wireless charging method, related equipment and system | |
CN108600559A (en) | Control method, device, storage medium and the electronic equipment of silent mode | |
US10129382B2 (en) | Electronic device and method for controlling electronic device using headset | |
CN110956968A (en) | Voice wake-up and method, device and terminal device for triggering voice wake-up function | |
CN203574705U (en) | Terminal | |
CN105868141A (en) | Digital interface adapter | |
CN105809002A (en) | Charging method of user terminal and user terminal | |
CN103682863A (en) | Voice reminding charging data wire and charging method of charging data wire |
Legal Events
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |