





技术领域technical field
本申请涉及无线设备技术领域,具体涉及一种耳机连接方法、存储介质、无线耳机、装置及移动终端。The present application relates to the technical field of wireless equipment, and in particular to an earphone connection method, a storage medium, a wireless earphone, a device, and a mobile terminal.
背景技术Background technique
随着无线技术的应用日益扩大,支持无线连接的无线设备种类也日益增多。例如TWS(True Wireless Stereo,真无线立体声)耳机,TWS耳机的左右两只耳机相互独立、无需线缆相连,即可实现左右声道的无线分离。越来越多的用户为自己的智能手机、平板电脑、笔记本电脑等移动终端配备无线耳机来播放音频。As the use of wireless technology expands, so do the types of wireless devices that support wireless connections. For example, TWS (True Wireless Stereo, True Wireless Stereo) earphones, the left and right earphones of the TWS earphones are independent of each other, and there is no need for cables to connect, so that the wireless separation of the left and right channels can be realized. More and more users equip mobile terminals such as their smartphones, tablet computers, and laptops with wireless earphones to play audio.
现有的TWS蓝牙耳机,为了方便快捷的操作,提供了弹窗功能,但是只要在手机的一定距离范围内,开启蓝牙功能的TWS耳机都会被扫描到,这样即使不是用户自己的TWS耳机,也会进行弹窗提示,容易受到他人的蓝牙设备的干扰。The existing TWS Bluetooth headsets provide a pop-up window function for convenient and quick operation, but as long as they are within a certain distance from the mobile phone, the TWS headsets with the Bluetooth function turned on will be scanned. There will be pop-up prompts, which are easily interfered by other people's Bluetooth devices.
发明内容Contents of the invention
本申请实施例提供一种耳机连接方法、存储介质、无线耳机、装置及移动终端,能够避免他人的蓝牙耳机弹窗的打扰。Embodiments of the present application provide an earphone connection method, a storage medium, a wireless earphone, a device, and a mobile terminal, which can avoid being disturbed by pop-up windows of other people's Bluetooth earphones.
第一方面,本申请实施例提供一种耳机连接方法,应用于无线耳机,所述方法包括:In the first aspect, the embodiment of the present application provides a headphone connection method, which is applied to a wireless headphone, and the method includes:
当检测到耳机启动事件时,开启无线连接功能;When the headphone startup event is detected, the wireless connection function is turned on;
获取第一生物特征,并基于所述第一生物特征生成无线广播信号;acquiring a first biometric feature, and generating a wireless broadcast signal based on the first biometric feature;
发送所述无线广播信号,使得接收到所述无线广播信号的移动终端在具有与所述第一生物特征匹配的第二生物特征时,在显示界面上显示连接提示信息。The wireless broadcast signal is sent so that the mobile terminal receiving the wireless broadcast signal displays connection prompt information on a display interface when it has a second biometric feature matching the first biometric feature.
第二方面,本申请实施例提供一种耳机连接方法,应用于移动终端,所述方法包括:In a second aspect, an embodiment of the present application provides a method for connecting a headset, which is applied to a mobile terminal, and the method includes:
接收无线耳机发送的无线广播信号;Receive the wireless broadcast signal sent by the wireless headset;
获取所述无线广播信号携带的第一生物特征和耳机标识信息;Acquiring the first biological feature and earphone identification information carried by the wireless broadcast signal;
获取第二生物特征,并检测所述第一生物特征与所述第二生物特征是否匹配;acquiring a second biometric feature, and detecting whether the first biometric feature matches the second biometric feature;
若所述第一生物特征与所述第二生物特征匹配,则基于所述耳机标识信息生成连接提示信息,并在显示界面上显示所述连接提示信息。If the first biometric feature matches the second biometric feature, generating connection prompt information based on the earphone identification information, and displaying the connection prompt information on a display interface.
第三方面,本申请实施例提供一种耳机连接装置,应用于无线耳机,所述装置包括:In a third aspect, an embodiment of the present application provides an earphone connection device, which is applied to a wireless earphone, and the device includes:
特征获取模块,用于获取第一生物特征;A feature acquisition module, configured to acquire a first biometric feature;
信号生成模块,用于生成携带有所述第一生物特征的无线广播信号;A signal generating module, configured to generate a wireless broadcast signal carrying the first biological feature;
信号发送模块,用于发送所述无线广播信号,使得接收到所述无线广播信号的移动终端在具有与所述第一生物特征匹配的第二生物特征时,进行可连接所述无线耳机的提示。A signal sending module, configured to send the wireless broadcast signal, so that when the mobile terminal receiving the wireless broadcast signal has a second biometric feature matching the first biometric feature, it will prompt that the wireless earphone can be connected .
第四方面,本申请实施例提供一种耳机连接装置,应用于移动终端,所述装置包括:In a fourth aspect, an embodiment of the present application provides an earphone connection device, which is applied to a mobile terminal, and the device includes:
信号接收模块,用于接收无线耳机发送的无线广播信号;The signal receiving module is used to receive the wireless broadcast signal sent by the wireless earphone;
信息获取模块,用于获取所述无线广播信号携带的第一生物特征和耳机标识信息;An information acquisition module, configured to acquire the first biological feature and earphone identification information carried by the wireless broadcast signal;
特征匹配模块,用于获取第二生物特征,并检测所述第一生物特征与所述第二生物特征是否匹配;A feature matching module, configured to acquire a second biological feature, and detect whether the first biological feature matches the second biological feature;
连接提示模块,用于若所述第一生物特征与所述第二生物特征匹配,则基于所述耳机标识信息进行可连接所述无线耳机的提示。A connection prompting module, configured to prompt that the wireless earphone can be connected based on the earphone identification information if the first biometric feature matches the second biometric feature.
第五方面,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的耳机连接方法。In the fifth aspect, the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run on the computer, the computer is made to execute the computer program as provided in any embodiment of the present application. Headphone connection method.
第六方面,本申请实施例还提供一种无线耳机,包括处理器、存储器和第一无线连接模块,所述存储器存储有计算机程序,所述处理器通过调用所述计算机程序,用于执行:In the sixth aspect, the embodiment of the present application also provides a wireless headset, including a processor, a memory, and a first wireless connection module, the memory stores a computer program, and the processor invokes the computer program to execute:
获取第一生物特征;obtain a first biometric;
生成携带有所述第一生物特征的无线广播信号;generating a wireless broadcast signal carrying the first biometric feature;
通过所述第一无线连接模块发送所述无线广播信号,使得接收到所述无线广播信号的移动终端在具有与所述第一生物特征匹配的第二生物特征时,进行可连接所述无线耳机的提示。Sending the wireless broadcast signal through the first wireless connection module, so that the mobile terminal receiving the wireless broadcast signal can connect to the wireless earphone when it has a second biometric feature matching the first biometric feature tips.
第七方面,本申请实施例还提供一种耳机装置,所述耳机装置包括本申请实施例提供的无线耳机,以及用于承载所述无线耳机的耳机盒,所述耳机盒与所述无线耳机电连接,所述耳机盒设置有生物特征采集模块;In the seventh aspect, the embodiment of the present application further provides an earphone device, the earphone device includes the wireless earphone provided in the embodiment of the present application, and an earphone box for carrying the wireless earphone, and the earphone box and the wireless earphone Electrically connected, the earphone box is provided with a biometric collection module;
所述生物特征采集模块,用于当检测到第一生物特征时,将所述第一生物特征发送至所述无线耳机。The biological feature collection module is configured to send the first biological feature to the wireless earphone when the first biological feature is detected.
第八方面,本申请实施例还提供一种移动终端,包括处理器、存储器和第二无线连接模块,所述存储器存储有计算机程序,所述处理器通过调用所述计算机程序,用于执行:In an eighth aspect, the embodiment of the present application also provides a mobile terminal, including a processor, a memory, and a second wireless connection module, the memory stores a computer program, and the processor invokes the computer program to execute:
通过所述第二无线连接模块接收无线耳机发送的无线广播信号;receiving a wireless broadcast signal sent by the wireless earphone through the second wireless connection module;
获取所述无线广播信号携带的第一生物特征和耳机标识信息;Acquiring the first biological feature and earphone identification information carried by the wireless broadcast signal;
获取第二生物特征,并检测所述第一生物特征与所述第二生物特征是否匹配;acquiring a second biometric feature, and detecting whether the first biometric feature matches the second biometric feature;
若所述第一生物特征与所述第二生物特征匹配,则基于所述耳机标识信息进行可连接所述无线耳机的提示。If the first biometric feature matches the second biometric feature, a prompt that the wireless earphone can be connected is given based on the earphone identification information.
本申请实施例提供的技术方案,获取第一生物特征,基于该第一生物特征生成无线广播信号并发送该无线广播信号,使得接收到该无线广播信号的移动终端在具有与该第一生物特征匹配的第二生物特征时,进行可连接该无线耳机的提示,采用本申请实施例的方案,移动终端在检测到该无线广播信号后,获取到其中携带的第一生物特征,将该第一生物特征与终端上存储的第二生物特征进行匹配,只有在匹配成功时,才会进行连接提示信息的显示,也就是说,可以通过生物特征匹配来判断检测到的无线广播信号对应的无线耳机是否为需要连接的耳机,若不是则不会进行提示,避免移动终端受到他人的不相关无线耳机的干扰。The technical solution provided by the embodiment of the present application acquires the first biological feature, generates a wireless broadcast signal based on the first biological feature, and sends the wireless broadcast signal, so that the mobile terminal receiving the wireless broadcast signal has the same first biological feature When matching the second biometric feature, a reminder that the wireless headset can be connected is given. Using the solution of the embodiment of the present application, after the mobile terminal detects the wireless broadcast signal, it acquires the first biometric feature carried in it, and the first The biometric feature is matched with the second biometric feature stored on the terminal. Only when the matching is successful, the connection prompt information will be displayed. That is to say, the wireless earphone corresponding to the detected wireless broadcast signal can be judged through the biometric feature matching. Whether it is an earphone that needs to be connected, if not, no prompt will be given to prevent the mobile terminal from being interfered by other people's irrelevant wireless earphones.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本申请实施例提供的耳机连接方法的第一种流程示意图。FIG. 1 is a schematic flowchart of a first method for connecting an earphone provided by an embodiment of the present application.
图2为本申请实施例提供的耳机连接方法的应用场景示意图。FIG. 2 is a schematic diagram of an application scenario of the headphone connection method provided by the embodiment of the present application.
图3为本申请实施例提供的耳机连接方法的第二种流程示意图。FIG. 3 is a schematic flowchart of a second earphone connection method provided by an embodiment of the present application.
图4为本申请实施例提供的耳机连接方法的第三种流程示意图。FIG. 4 is a schematic flowchart of a third earphone connection method provided by an embodiment of the present application.
图5为本申请实施例提供的耳机连接装置的结构示意图。FIG. 5 is a schematic structural diagram of an earphone connection device provided by an embodiment of the present application.
图6为本申请实施例提供的移动终端的结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of this application.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本申请实施例提供一种耳机连接方法,该耳机连接方法应用于无线耳机。请参阅图1,图1为本申请实施例提供的耳机连接方法的第一种流程示意图。本申请实施例提供的耳机连接方法的具体流程可以如下:An embodiment of the present application provides an earphone connection method, and the earphone connection method is applied to a wireless earphone. Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a first earphone connection method provided by an embodiment of the present application. The specific flow of the earphone connection method provided in the embodiment of the present application may be as follows:
101、获取第一生物特征。101. Acquire a first biometric feature.
102、生成携带有第一生物特征的无线广播信号。102. Generate a wireless broadcast signal carrying a first biometric feature.
103、发送无线广播信号,使得接收到无线广播信号的移动终端在具有与第一生物特征匹配的第二生物特征时,进行可连接无线耳机的提示。103. Send a wireless broadcast signal, so that a mobile terminal receiving the wireless broadcast signal will prompt that a wireless earphone can be connected when it has a second biological feature that matches the first biological feature.
本申请实施例可以应用于无线耳机,该无线耳机可以通过容置该无线耳机的耳机盒来获取第一生物特征。The embodiment of the present application may be applied to a wireless earphone, and the wireless earphone may obtain the first biometric feature through an earphone box accommodating the wireless earphone.
例如,在一实施例中,获取第一生物特征,包括:获取基于对耳机盒的开盖操作检测到的第一生物特征,其中,耳机盒用于容置无线耳机。For example, in an embodiment, acquiring the first biometric feature includes: acquiring the first biometric feature detected based on an operation of opening a cover of an earphone box, where the earphone box is used to accommodate a wireless earphone.
其中,耳机盒与无线耳机之间可以是有线连接或无线连接,耳机盒可以通过有线传输或者无线传输的方式将检测到的第一生物特征传输给无线耳机。比如,耳机盒和无线耳机上分别设置有连接触点,当无线耳机放置于耳机盒内时,通过连接触点与耳机盒建立电连接,耳机盒可以通过连接触点为耳机充电,也可以通过连接触点与无线耳机之间进行信息的传递。Wherein, the earphone box and the wireless earphone may be wired or wirelessly connected, and the earphone box may transmit the detected first biometric feature to the wireless earphone through wired transmission or wireless transmission. For example, the earphone box and the wireless earphone are respectively provided with connecting contacts. When the wireless earphone is placed in the earphone box, an electrical connection is established with the earphone box through the connecting contacts. The earphone box can charge the earphone through the connecting contacts, or can Information is transmitted between the connection contacts and the wireless earphone.
耳机盒包括盒体,以及与盒体活动连接的盒盖。耳机盒还设置有盖传感器,该盖传感器盖,被配置为当盒盖从闭合状态切换为打开状态时生成开盖信号,耳机盒可以将该开盖信号发送给无线耳机。The earphone box includes a box body and a box cover movably connected with the box body. The earphone box is also provided with a cover sensor, and the cover sensor cover is configured to generate a cover-opening signal when the cover is switched from a closed state to an open state, and the earphone box can send the cover-opening signal to the wireless earphone.
对于无线耳机来说,可以通过检测开盖信号来检测耳机盒的开盖操作。也就是说,当无线耳机接收到耳机盒发送的开盖信号时,判定耳机盒进行了开盖操作。该实施例中,通过开盖操作触发无线耳机启动第一无线连接模块。具体地,当用户开启耳机盒的盒盖,无线耳机检测到开盖信号,开启无线耳机的第一无线连接模块,例如,启动无线耳机的蓝牙芯片。For wireless earphones, the cover-opening operation of the earphone box can be detected by detecting the cover-opening signal. That is to say, when the wireless earphone receives the cover opening signal sent by the earphone box, it is determined that the earphone box has been opened. In this embodiment, the wireless earphone is triggered to activate the first wireless connection module by opening the cover. Specifically, when the user opens the cover of the earphone box, the wireless earphone detects the cover opening signal, and turns on the first wireless connection module of the wireless earphone, for example, activates the Bluetooth chip of the wireless earphone.
可以理解的,可以设置无线耳机在确定耳机盒开盖后发送蓝牙广播,例如蓝牙低功耗(BLE,Bluetooth Low Energy)广播形式或经典蓝牙广播形式,在该蓝牙广播中加入第一生物特征信息。可以设置在确定耳机盒首次开盖后发送该蓝牙广播,也可以在每次确定耳机盒开盖时发送该蓝牙广播。It can be understood that the wireless headset can be set to send a Bluetooth broadcast after it is determined that the headset box is opened, such as a Bluetooth Low Energy (BLE, Bluetooth Low Energy) broadcast or a classic Bluetooth broadcast, and the first biometric information is added to the Bluetooth broadcast . It can be set to send the Bluetooth broadcast after it is determined that the headphone box is opened for the first time, or it can be set to send the Bluetooth broadcast every time it is determined that the earphone box is opened.
本申请实施例中的生物特征包括表征指纹、声纹或虹膜的信息。下文中以表征指纹的信息为例对本申请实施例的方案进行详细说明。其中,第一生物特征为第一指纹信息,第二生物特征为第二指纹信息。The biometrics in this embodiment of the present application include information representing fingerprints, voiceprints or irises. The solution of the embodiment of the present application will be described in detail below by taking the information characterizing the fingerprint as an example. Wherein, the first biometric feature is first fingerprint information, and the second biometric feature is second fingerprint information.
第一指纹信息可以基于对耳机盒的开盖操作获取,也可以是预先存储在无线耳机中的。The first fingerprint information may be obtained based on the operation of opening the earphone box, or may be pre-stored in the wireless earphone.
例如,在一实施例中,获取第一生物特征,包括:获取基于对耳机盒的开盖操作检测到的第一生物特征,其中,耳机盒用于容置无线耳机。For example, in an embodiment, acquiring the first biometric feature includes: acquiring the first biometric feature detected based on an operation of opening a cover of an earphone box, where the earphone box is used to accommodate a wireless earphone.
该实施例中,通过设置在耳机盒上的指纹检测模块来检测第一指纹信息。例如,在耳机盒的盒盖上设置指纹检测模块。当用户打开盒盖时,手指会按压在盒盖上,耳机盒可以检测到该手指的第一指纹信息,将该第一指纹信息发送至无线耳机。或者,在耳机盒的盒体上设置按钮,并且该按钮表面设置有指纹检测模块,当用户按压该按钮时,可以触发开盖指令,盒盖自动弹开,由闭合状态切换为打开状态。该按钮在检测按压操作的同时,基于指纹检测模块检测第一指纹信息。从而可以获取到当前使用该耳机盒的用户的第一生物特征。In this embodiment, the first fingerprint information is detected by a fingerprint detection module arranged on the earphone box. For example, a fingerprint detection module is provided on the cover of the earphone box. When the user opens the box cover, the finger will press on the box cover, and the earphone box can detect the first fingerprint information of the finger, and send the first fingerprint information to the wireless earphone. Alternatively, a button is provided on the body of the earphone box, and a fingerprint detection module is provided on the surface of the button. When the user presses the button, an instruction to open the cover can be triggered, and the cover automatically pops open, switching from the closed state to the open state. The button detects the first fingerprint information based on the fingerprint detection module while detecting the pressing operation. Therefore, the first biometric feature of the user currently using the earphone box can be acquired.
无线耳机获取到该第一指纹信息后,基于该第一指纹信息生成无线广播信号,并发送该无线广播信号。若无线耳机使用的无线连接方式为蓝牙连接,则生成蓝牙广播信号,请参阅图2,图2为本申请实施例提供的耳机连接方法的应用场景示意图。该蓝牙广播信号中携带有第一指纹信息和该无线耳机的耳机标识信息,耳机标识信息可以为无线耳机的名称等。After the wireless earphone acquires the first fingerprint information, it generates a wireless broadcast signal based on the first fingerprint information, and sends the wireless broadcast signal. If the wireless connection mode used by the wireless headset is Bluetooth connection, a Bluetooth broadcast signal is generated, please refer to FIG. 2 , which is a schematic diagram of an application scenario of the headset connection method provided by the embodiment of the present application. The bluetooth broadcast signal carries the first fingerprint information and the earphone identification information of the wireless earphone, and the earphone identification information may be the name of the wireless earphone or the like.
或者,在另一实施例中,获取第一生物特征之前,该方法还包括:当接收到耳机盒发送的第一生物特征时,存储第一生物特征;获取第一生物特征,包括:获取预先存储的第一生物特征。Or, in another embodiment, before acquiring the first biological feature, the method further includes: when receiving the first biological feature sent by the earphone box, storing the first biological feature; acquiring the first biological feature includes: acquiring the first biological feature The stored first biometric.
该实施例中,对于指纹检测模块的设置位置没有限制,指纹检测模块可以在盒体、盒盖上的任意位置,比如,设置在盒体的多功能按键上。可以在耳机盒处于闭合状态或者开盖状态时,进行指纹信息的预先采集。例如,在耳机盒的盒体上设置按钮,并且该按钮表面设置有指纹检测模块,用户通过长按该按钮录入指纹,当指纹录入成功时,可以通过耳机盒上的指示灯提醒用户指纹录入成功,耳机盒将录入的第一指纹信息发送至无线耳机进行存储。In this embodiment, there is no restriction on the location of the fingerprint detection module, and the fingerprint detection module can be located at any position on the box body or the box cover, for example, it can be set on the multi-function button of the box body. The pre-collection of fingerprint information can be performed when the earphone box is in a closed state or an open state. For example, a button is set on the body of the earphone box, and the surface of the button is provided with a fingerprint detection module. The user can enter the fingerprint by long pressing the button. When the fingerprint is successfully entered, the indicator light on the earphone box can remind the user that the fingerprint is successfully entered. , the earphone box sends the recorded first fingerprint information to the wireless earphone for storage.
在指纹信息录入完成后,当用户再次进行开盖时,无线耳机检测到开盖操作后,可以直接获取存储的第一指纹信息,基于该第一指纹信息生成无线广播信号。After the fingerprint information entry is completed, when the user opens the cover again, the wireless earphone can directly obtain the stored first fingerprint information after detecting the cover opening operation, and generate a wireless broadcast signal based on the first fingerprint information.
需要说明的是,为了区分无线耳机侧检测到的指纹信息和移动终端检测到的指纹信息。将无线耳机的耳机盒侧采集的指纹信息记为“第一指纹信息”,将移动终端侧采集并存储的指纹信息记为“第二指纹信息”。用户可以为自己的移动终端和无线耳机采集同一手指的指纹信息,以进行无线耳机与移动终端之间的校验。当然,“第一指纹信息”和“第二指纹信息”都可以通过无线耳机的耳机盒来进行采集,例如保留历史配对成功的指纹信息作为第二指纹信息,或者通过耳机盒端采集发送给移动终端存储,从而确定出第二指纹信息的集合。It should be noted that, in order to distinguish the fingerprint information detected by the wireless earphone side from the fingerprint information detected by the mobile terminal. The fingerprint information collected on the earphone box side of the wireless earphone is recorded as "first fingerprint information", and the fingerprint information collected and stored on the mobile terminal side is recorded as "second fingerprint information". The user can collect the fingerprint information of the same finger for his mobile terminal and the wireless earphone, so as to verify between the wireless earphone and the mobile terminal. Of course, both "first fingerprint information" and "second fingerprint information" can be collected through the earphone box of the wireless earphone, for example, retain the fingerprint information that has been successfully paired in history as the second fingerprint information, or collect and send it to the mobile phone through the earphone box terminal. The terminal stores and determines the set of second fingerprint information.
对应地,在移动终端侧,由于无线耳机发送的无线广播信号是不定向的,任何位于该无线耳机一定距离范围内的移动终端只要开启了蓝牙功能,都可以接收到该无线广播信号。移动终端接收到无线耳机发送的蓝牙广播信号后,从该蓝牙广播信号中获取其携带的第一指纹信息和耳机标识信息。然后,移动终端获取预先存储的第二指纹信息,并检测该第一指纹信息与第二指纹信息是否匹配,若是,则说明当前的无线耳机是移动终端的用户自己打开的设备,可以基于该耳机标识信息进行可连接无线耳机的提示,以提示用户当前有可用的无线耳机可供连接。Correspondingly, on the mobile terminal side, since the wireless broadcast signal sent by the wireless headset is non-directional, any mobile terminal located within a certain distance from the wireless headset can receive the wireless broadcast signal as long as the Bluetooth function is turned on. After receiving the Bluetooth broadcast signal sent by the wireless earphone, the mobile terminal acquires the first fingerprint information and earphone identification information carried by it from the Bluetooth broadcast signal. Then, the mobile terminal obtains the pre-stored second fingerprint information, and detects whether the first fingerprint information matches the second fingerprint information. If so, it indicates that the current wireless earphone is a device opened by the user of the mobile terminal. The identification information prompts that a wireless headset can be connected, so as to remind the user that there are currently available wireless headsets available for connection.
例如,在一实施例中,移动终端基于耳机标识信息生成用于提示可连接无线耳机的信息,并在当前显示界面上通过信息提示窗口显示信息。其中,若移动终端原本就处于亮屏状态,则无论当前显示界面上显示的是什么内容,都可以将该信息显示在上面。比如,可以以弹窗的形式显示连接提示信息,同时在弹窗中显示耳机标识信息,并提供给用户连接耳机或者不连接耳机的选择控件。若移动终端原本处于熄屏状态,则控制移动终端亮屏,并将以弹窗的形式该信息显示当前的显示界面上。For example, in an embodiment, the mobile terminal generates information for prompting that a wireless earphone can be connected based on the earphone identification information, and displays the information through an information prompt window on the current display interface. Wherein, if the mobile terminal is originally in a bright screen state, no matter what content is currently displayed on the display interface, the information can be displayed on it. For example, the connection prompt information can be displayed in the form of a pop-up window, and at the same time, the earphone identification information can be displayed in the pop-up window, and the user can be provided with a selection control to connect the earphone or not to connect the earphone. If the mobile terminal is originally in the state of turning off the screen, the mobile terminal is controlled to turn on the screen, and the information will be displayed on the current display interface in the form of a pop-up window.
可以理解的是,若检测到第一指纹信息与第二指纹信息不匹配,则说明该无线耳机不是该移动终端的用户自己打开的设备,无需进行任何提示,继续监听无线广播信号即可。基于此,可以避免无关耳机在启动时产生的弹窗干扰。It can be understood that if it is detected that the first fingerprint information does not match the second fingerprint information, it means that the wireless earphone is not a device opened by the user of the mobile terminal, and there is no need to give any prompt, just continue to monitor the wireless broadcast signal. Based on this, it is possible to avoid pop-up interference generated by unrelated earphones when starting up.
在一实施例中,移动终端将耳机标识信息排列在无线设备列表的首位,并将无线耳机标记为关联设备。In an embodiment, the mobile terminal arranges the headset identification information at the top of the wireless device list, and marks the wireless headset as an associated device.
该实施例中,若指纹匹配成功,移动终端将该无线耳机的耳机标识信息排列在无线设备列表的首位,并将该无线耳机标记为关联设备。当用户进入无线设备列表界面进行查看时,可以快速的找到自己要连接的无线耳机。In this embodiment, if the fingerprint matching is successful, the mobile terminal arranges the earphone identification information of the wireless earphone at the top of the wireless device list, and marks the wireless earphone as an associated device. When the user enters the wireless device list interface to view, he can quickly find the wireless headset he wants to connect.
在一些实施例中,获取第一生物特征之前,还包括:In some embodiments, before obtaining the first biometric feature, it also includes:
在第一无线连接模块启动后,获取设备连接记录;After the first wireless connection module is started, obtain the device connection record;
当设备连接记录为空时,执行获取第一生物特征;When the device connection record is empty, execute obtaining the first biometric feature;
当设备连接记录不为空时,从设备连接记录中获取最新存储的蓝牙地址,并基于蓝牙地址发起连接请求。When the device connection record is not empty, obtain the latest stored Bluetooth address from the device connection record, and initiate a connection request based on the Bluetooth address.
该实施例中,无线耳机发送无线广播之后,如果成功地与移动终端建立了无线通讯连接,比如,进行了蓝牙配对连接,则存储该移动终端的蓝牙地址。In this embodiment, after the wireless earphone sends the wireless broadcast, if a wireless communication connection with the mobile terminal is successfully established, for example, a Bluetooth pairing connection is performed, the Bluetooth address of the mobile terminal is stored.
对于无线耳机来说,在启动第一无线连接模块后,先从本端获取存储的设备连接记录,若设备连接记录不为空,可以判定本次连接不是首次连接,而是回连,从设备连接记录中获取最新存储的蓝牙地址,基于该蓝牙地址发起连接请求,直接与蓝牙地址对应的移动终端建立无线连接,可以无需再发送上述包括第一生物特征的无线广播信号,当然也可以继续发送,在移动终端处进行相应的提示控制。For wireless earphones, after starting the first wireless connection module, first obtain the stored device connection record from the local end. If the device connection record is not empty, it can be determined that this connection is not the first connection, but a reconnection. Obtain the latest stored Bluetooth address in the connection record, initiate a connection request based on the Bluetooth address, and directly establish a wireless connection with the mobile terminal corresponding to the Bluetooth address, without sending the above-mentioned wireless broadcast signal including the first biometric feature, and of course continue to send , and perform corresponding prompt control at the mobile terminal.
反之,若设备连接记录为空,可以判定本次连接是首次连接,则获取第一指纹信息,基于该第一指纹信息生成无线广播信号并发送,当有移动终端检测到该无线广播信号,则可以与该无线耳机建立无线连接。Conversely, if the device connection record is empty, it can be determined that this connection is the first connection, then obtain the first fingerprint information, generate and send a wireless broadcast signal based on the first fingerprint information, and when a mobile terminal detects the wireless broadcast signal, then A wireless connection can be established with this wireless headset.
在一些实施例中,耳机盒上还可以设置有多功能按键,用户通过长按该多功能按键触发清除指令,无线耳机在检测到该清除指令后,将本端存储的设备连接记录清空。设备连接记录被清空之后,无线耳机处于被发现状态,类似于首次连接之前的状态,若此时需要建立无线连接,可以同样获取指纹,并发送携带有指纹的无线广播信号。In some embodiments, the earphone box may also be provided with a multi-function button, and the user triggers a clear command by long pressing the multi-function key. After the wireless earphone detects the clear command, it clears the device connection record stored locally. After the device connection record is cleared, the wireless headset is in the discovered state, similar to the state before the first connection. If a wireless connection needs to be established at this time, the fingerprint can also be obtained and a wireless broadcast signal carrying the fingerprint can be sent.
上文的实施例中,生物特征为表征指纹的信息,故在耳机盒上设置了指纹检测模块。可以理解的是,在其他实施例中,当生物特征为其他信息时,同样可以在耳机盒上设置对应的生物特征采集模块。比如,生物特征为表征声纹的信息,则在耳机盒上设置麦克风,以采集用户的声音信号。用户可以通过语音指令触发开盖操作,即耳机盒在接收到开盖的语音指令时,控制盒盖由闭合状态切换为打开状态,同时采集该语音指令中的表征声纹的信息,将开盖信号和表征声纹的信息发送至无线耳机。In the above embodiments, the biometric feature is the information representing the fingerprint, so a fingerprint detection module is set on the earphone box. It can be understood that, in other embodiments, when the biological feature is other information, a corresponding biological feature collection module can also be provided on the earphone box. For example, if the biometric feature is information representing the voiceprint, a microphone is provided on the earphone box to collect the user's voice signal. The user can trigger the opening operation through the voice command, that is, when the earphone box receives the voice command to open the cover, the control box cover will switch from the closed state to the open state, and at the same time, the information representing the voiceprint in the voice command will be collected, and the cover will be opened. The signal and information characterizing the voiceprint are sent to the wireless earphones.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and some steps may be performed in other orders or simultaneously in the case of no conflict.
由上可知,本申请实施例提供的耳机连接方法,获取第一生物特征,基于该第一生物特征生成无线广播信号并发送该无线广播信号,使得接收到该无线广播信号的移动终端在具有与该第一生物特征匹配的第二生物特征时,进行可连接该无线耳机的提示,采用本申请实施例的方案,移动终端在检测到该无线广播信号后,获取到其中携带的第一生物特征,将该第一生物特征与移动终端上存储的第二生物特征进行匹配,只有在匹配成功时,才会进行连接提示信息的显示,也就是说,可以通过生物特征匹配来判断检测到的无线广播信号对应的无线耳机是否为需要连接的耳机,若不是则不会进行提示,避免移动终端受到他人的不相关无线耳机的干扰。It can be seen from the above that the headphone connection method provided by the embodiment of the present application acquires the first biometric feature, generates a wireless broadcast signal based on the first biometric feature, and sends the wireless broadcast signal, so that the mobile terminal receiving the wireless broadcast signal has the same When the first biological feature matches the second biological feature, a reminder that the wireless headset can be connected is given. Using the solution of the embodiment of the application, the mobile terminal acquires the first biological feature carried in it after detecting the wireless broadcast signal. , match the first biometric feature with the second biometric feature stored on the mobile terminal, and only when the matching is successful, the connection prompt information will be displayed, that is, the biometric feature matching can be used to judge the detected wireless Whether the wireless headset corresponding to the broadcast signal is a headset that needs to be connected, if not, no prompt will be given, so as to prevent the mobile terminal from being interfered by other people's irrelevant wireless headsets.
根据前面实施例所描述的方法,以下将举例作进一步详细说明。According to the methods described in the previous embodiments, examples will be given below for further detailed description.
请参阅图3,图3为本发明实施例提供的耳机连接方法的第二流程示意图。方法包括:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a second earphone connection method provided by an embodiment of the present invention. Methods include:
201、在第一无线连接模块启动后,获取设备连接记录。201. After the first wireless connection module is started, obtain a device connection record.
无线耳机在启动第一无线连接模块后,先从本端获取存储的设备连接记录。After the wireless earphone starts the first wireless connection module, it first obtains the stored device connection record from the local end.
当设备连接记录为空时,执行202;当设备连接记录不为空时,执行205。When the device connection record is empty, execute 202; when the device connection record is not empty, execute 205.
202、获取基于对耳机盒的开盖操作检测到的第一生物特征。202. Acquire a first biological feature detected based on an operation of opening the earphone box.
无线耳机发送无线广播之后,如果成功地与移动终端建立了无线通讯连接,比如,进行了蓝牙配对连接,则存储该移动终端的蓝牙地址。After the wireless earphone sends the wireless broadcast, if a wireless communication connection with the mobile terminal is successfully established, for example, a Bluetooth pairing connection is performed, the Bluetooth address of the mobile terminal is stored.
对于无线耳机来说,在启动第一无线连接模块后,先从本端获取存储的设备连接记录,若设备连接记录不为空,可以判定本次连接不是首次连接,而是回连,从设备连接记录中获取最新存储的蓝牙地址,基于该蓝牙地址发起连接请求,直接与蓝牙地址对应的移动终端建立无线连接,可以无需再发送包括第一生物特征的无线广播信号,当然也可以继续发送,在移动终端处进行相应的提示控制。For wireless earphones, after starting the first wireless connection module, first obtain the stored device connection record from the local end. If the device connection record is not empty, it can be determined that this connection is not the first connection, but a reconnection. Obtain the latest stored Bluetooth address in the connection record, initiate a connection request based on the Bluetooth address, and directly establish a wireless connection with the mobile terminal corresponding to the Bluetooth address, without sending the wireless broadcast signal including the first biometric feature, and of course continue to send, Perform corresponding prompt control at the mobile terminal.
反之,若设备连接记录为空,可以判定本次连接是首次连接,则获取第一指纹信息。Conversely, if the device connection record is empty, it can be determined that this connection is the first connection, and the first fingerprint information is obtained.
该实施例中,通过设置在耳机盒上的指纹检测模块来检测第一指纹信息。例如,在耳机盒的盒盖上设置指纹检测模块。当用户打开盒盖时,手指会按压在盒盖上,耳机盒可以检测到该手指的第一指纹信息,将该第一指纹信息发送至无线耳机。或者,在耳机盒的盒体上设置按钮,并且该按钮表面设置有指纹检测模块,当用户按压该按钮时,可以触发开盖指令,盒盖自动弹开,由闭合状态切换为打开状态。该按钮在检测按压操作的同时,基于指纹检测模块检测第一指纹信息。In this embodiment, the first fingerprint information is detected by a fingerprint detection module arranged on the earphone box. For example, a fingerprint detection module is provided on the cover of the earphone box. When the user opens the box cover, the finger will press on the box cover, and the earphone box can detect the first fingerprint information of the finger, and send the first fingerprint information to the wireless earphone. Alternatively, a button is provided on the body of the earphone box, and a fingerprint detection module is provided on the surface of the button. When the user presses the button, an instruction to open the cover can be triggered, and the cover automatically pops open, switching from the closed state to the open state. The button detects the first fingerprint information based on the fingerprint detection module while detecting the pressing operation.
203、生成携带有第一生物特征的无线广播信号。203. Generate a wireless broadcast signal carrying the first biological feature.
204、发送无线广播信号,使得接收到无线广播信号的移动终端在具有与第一生物特征匹配的第二生物特征时,进行可连接无线耳机的提示。204. Send a wireless broadcast signal, so that when a mobile terminal receiving the wireless broadcast signal has a second biological feature matching the first biological feature, it prompts that a wireless earphone can be connected.
205、从设备连接记录中获取最新存储的蓝牙地址,并基于蓝牙地址发起连接请求。205. Obtain the latest stored Bluetooth address from the device connection record, and initiate a connection request based on the Bluetooth address.
无线耳机获取到第一指纹信息后,基于该第一指纹信息生成无线广播信号并发送,以便当有移动终端检测到该无线广播信号,可以在移动终端基于从该无线广播信号中提取的第一指纹信息匹配成功时进行可连接该无线耳机的提示,例如采用提示弹窗的形式,以方便用户与该无线耳机建立无线连接。After the wireless headset acquires the first fingerprint information, it generates and sends a wireless broadcast signal based on the first fingerprint information, so that when a mobile terminal detects the wireless broadcast signal, the mobile terminal can use the first fingerprint information extracted from the wireless broadcast signal. When the fingerprint information is successfully matched, a prompt that the wireless earphone can be connected is given, for example, in the form of a prompt pop-up window, so as to facilitate the user to establish a wireless connection with the wireless earphone.
移动终端接收到无线耳机发送的蓝牙广播信号后,从该蓝牙广播信号中获取其携带的第一指纹信息和耳机标识信息。然后,移动终端获取预先存储的第二指纹信息,并检测该第一指纹信息与第二指纹信息是否匹配,若是,则说明当前的无线耳机是移动终端的用户自己打开的设备,可以基于该耳机标识信息进行可连接无线耳机的提示,以提示用户当前有可用的无线耳机可供连接。After receiving the Bluetooth broadcast signal sent by the wireless earphone, the mobile terminal acquires the first fingerprint information and earphone identification information carried by it from the Bluetooth broadcast signal. Then, the mobile terminal obtains the pre-stored second fingerprint information, and detects whether the first fingerprint information matches the second fingerprint information. If so, it indicates that the current wireless earphone is a device opened by the user of the mobile terminal. The identification information prompts that a wireless headset can be connected, so as to remind the user that there are currently available wireless headsets available for connection.
由上可知,本发明实施例提出的耳机连接方法,可以通过指纹匹配来判断检测到的无线广播信号对应的无线耳机是否为需要连接的耳机,若不是则不会进行提示,避免移动终端受到他人的不相关无线耳机的干扰。It can be seen from the above that the earphone connection method proposed by the embodiment of the present invention can judge whether the wireless earphone corresponding to the detected wireless broadcast signal is an earphone that needs to be connected through fingerprint matching. interference from unrelated wireless headphones.
本申请实施例还提供一种应用于移动终端的耳机连接方法,请参阅图4,图4为本申请实施例提供的耳机连接方法的第三种流程示意图。该方法包括:The embodiment of the present application also provides an earphone connection method applied to a mobile terminal, please refer to FIG. 4 , which is a schematic flowchart of a third earphone connection method provided in the embodiment of the present application. The method includes:
301、接收无线耳机发送的无线广播信号;301. Receive a wireless broadcast signal sent by a wireless headset;
302、获取无线广播信号携带的第一生物特征和耳机标识信息;302. Acquire the first biometric feature and earphone identification information carried by the wireless broadcast signal;
303、获取第二生物特征,并检测第一生物特征与第二生物特征是否匹配;303. Acquire a second biological feature, and detect whether the first biological feature matches the second biological feature;
304、若第一生物特征与第二生物特征匹配,则基于耳机标识信息进行可连接无线耳机的提示。304. If the first biometric feature matches the second biometric feature, perform a prompt that a wireless earphone can be connected based on the earphone identification information.
在一些实施例中,基于耳机标识信息进行可连接无线耳机的提示,包括:In some embodiments, the prompting of a connectable wireless headset based on the headset identification information includes:
基于耳机标识信息,生成用于提示可连接无线耳机的信息;Based on the headset identification information, generate information for prompting that the wireless headset can be connected;
在当前显示界面上通过信息提示窗口显示信息。Information is displayed on the current display interface through an information prompt window.
在一些实施例中,基于耳机标识信息进行可连接无线耳机的提示,包括:In some embodiments, the prompting of a connectable wireless headset based on the headset identification information includes:
将耳机标识信息排列在无线设备列表的首位,并将无线耳机标记为关联设备。Arranges the headset identification information at the top of the wireless device list and marks the wireless headset as an associated device.
在一些实施例中,检测第一生物特征与第二生物特征是否匹配之后,还包括:In some embodiments, after detecting whether the first biological feature matches the second biological feature, it further includes:
若第一生物特征与第二生物特征不匹配,则继续监听无线广播信号。If the first biometric feature does not match the second biometric feature, continue to monitor the wireless broadcast signal.
可以理解的是,上述无线广播信号可以是蓝牙广播信号,例如BLE广播或经典蓝牙广播。It can be understood that the above wireless broadcast signal may be a Bluetooth broadcast signal, such as a BLE broadcast or a classic Bluetooth broadcast.
其中该实施例的具体实现方式请参照上文中的实施例,在此不再赘述。For the specific implementation manner of this embodiment, please refer to the above embodiments, which will not be repeated here.
在一实施例中还提供一种耳机连接装置,该装置应用于无线耳机。请参阅图5,图5为本申请实施例提供的耳机连接装置400的结构示意图。其中该耳机连接装置400应用于无线耳机,该耳机连接装置400包括特征获取模块401、信号生成模块402以及信号发送模块403,如下:In an embodiment, an earphone connection device is also provided, and the device is applied to a wireless earphone. Please refer to FIG. 5 , which is a schematic structural diagram of an
特征获取模块401,用于获取第一生物特征;A
信号生成模块402,用于生成携带有第一生物特征的无线广播信号;A
信号发送模块403,用于发送无线广播信号,使得接收到无线广播信号的移动终端在具有与第一生物特征匹配的第二生物特征时,进行可连接无线耳机的提示。The
应当说明的是,本申请实施例提供的耳机连接装置与上文实施例中的应用于无线耳机的耳机连接方法属于同一构思,通过该耳机连接装置可以实现应用于无线耳机的耳机连接方法实施例中提供的任一方法,其具体实现过程详见耳机连接方法实施例,此处不再赘述。It should be noted that the headphone connection device provided in the embodiment of the present application belongs to the same idea as the headphone connection method applied to wireless headphones in the above embodiments, and the embodiment of the headphone connection method applied to wireless headphones can be realized through the headphone connection device For any method provided in , see the embodiment of the earphone connection method for the specific implementation process, and details are not repeated here.
由上可知,本申请实施例提出的耳机连接装置,获取第一生物特征,基于该第一生物特征生成无线广播信号并发送该无线广播信号,使得接收到该无线广播信号的移动终端在具有与该第一生物特征匹配的第二生物特征时,进行可连接该无线耳机的提示,采用本申请实施例的方案,移动终端在检测到该无线广播信号后,获取到其中携带的第一生物特征,将该第一生物特征与终端上存储的第二生物特征进行匹配,只有在匹配成功时,才会进行连接提示信息的显示,也就是说,可以通过生物特征匹配来判断检测到的无线广播信号对应的无线耳机是否为需要连接的耳机,若不是则不会进行提示,避免移动终端受到他人的不相关无线耳机的干扰。It can be seen from the above that the headphone connection device proposed in the embodiment of the present application acquires the first biometric feature, generates a wireless broadcast signal based on the first biometric feature and sends the wireless broadcast signal, so that the mobile terminal receiving the wireless broadcast signal has the same When the first biological feature matches the second biological feature, a reminder that the wireless headset can be connected is given. Using the solution of the embodiment of the application, the mobile terminal acquires the first biological feature carried in it after detecting the wireless broadcast signal. , match the first biometric feature with the second biometric feature stored on the terminal, and only when the matching is successful, the connection prompt information will be displayed, that is, the detected wireless broadcasting can be judged through the biometric feature matching Whether the wireless headset corresponding to the signal is a headset that needs to be connected, if not, no prompt will be given to prevent the mobile terminal from being interfered by other people's irrelevant wireless headsets.
在一实施例中还提供一种耳机连接装置,该装置应用于移动终端。该耳机连接装置包括:In an embodiment, an earphone connection device is also provided, and the device is applied to a mobile terminal. The headphone connection kit consists of:
信号接收模块,用于接收无线耳机发送的无线广播信号;The signal receiving module is used to receive the wireless broadcast signal sent by the wireless earphone;
信息获取模块,用于获取无线广播信号携带的第一生物特征和耳机标识信息;An information acquisition module, configured to acquire the first biometric and earphone identification information carried by the wireless broadcast signal;
特征匹配模块,用于获取第二生物特征,并检测第一生物特征与第二生物特征是否匹配;A feature matching module, configured to acquire a second biological feature, and detect whether the first biological feature matches the second biological feature;
连接提示模块,用于若第一生物特征与第二生物特征匹配,则基于耳机标识信息进行可连接无线耳机的提示。The connection prompting module is configured to prompt that the wireless earphone can be connected based on the earphone identification information if the first biometric feature matches the second biometric feature.
应当说明的是,本申请实施例提供的耳机连接装置与上文实施例中的应用于移动终端的耳机连接方法属于同一构思,通过该耳机连接装置可以实现应用于移动终端的耳机连接方法实施例中提供的任一方法,其具体实现过程详见耳机连接方法实施例,此处不再赘述。It should be noted that the headphone connection device provided in the embodiment of the present application belongs to the same idea as the headphone connection method applied to the mobile terminal in the above embodiments, and the embodiment of the headphone connection method applied to the mobile terminal can be realized through the headphone connection device For any method provided in , see the embodiment of the earphone connection method for the specific implementation process, and details are not repeated here.
由上可知,本申请实施例提出的耳机连接装置,在检测到无线耳机发送的无线广播信号后,获取到其中携带的第一生物特征,将该第一生物特征与终端上存储的第二生物特征进行匹配,只有在匹配成功时,才会进行可连接无线耳机的提示,也就是说,可以通过指纹匹配来判断检测到的无线广播信号对应的无线耳机是否为需要连接的耳机,若不是则不会进行提示,避免移动终端受到他人的不相关无线耳机的干扰。It can be seen from the above that the headphone connection device proposed in the embodiment of the present application, after detecting the wireless broadcast signal sent by the wireless headphone, obtains the first biometric feature carried therein, and combines the first biometric feature with the second biometric feature stored on the terminal. Only when the matching is successful, will there be a prompt to connect the wireless earphone, that is to say, it can be judged through fingerprint matching whether the wireless earphone corresponding to the detected wireless broadcast signal is an earphone that needs to be connected, if not, then There will be no prompts to prevent the mobile terminal from being interfered by other people's irrelevant wireless earphones.
本申请实施例还提供一种无线耳机,该无线耳机包括处理器、存储器和第一无线连接模块,存储器存储有计算机程序,其特征在于,处理器通过调用计算机程序,用于执行:The embodiment of the present application also provides a wireless earphone, the wireless earphone includes a processor, a memory and a first wireless connection module, the memory stores a computer program, and it is characterized in that the processor invokes the computer program to execute:
获取第一生物特征;obtain a first biometric;
生成携带有第一生物特征的无线广播信号;generating a wireless broadcast signal carrying a first biometric feature;
通过第一无线连接模块发送无线广播信号,使得接收到无线广播信号的移动终端在具有与第一生物特征匹配的第二生物特征时,进行可连接无线耳机的提示。The wireless broadcast signal is sent through the first wireless connection module, so that when the mobile terminal receiving the wireless broadcast signal has the second biometric feature matching the first biometric feature, it prompts that the wireless earphone can be connected.
其中,第一无线连接模块可以为蓝牙芯片等等具有近场通信功能的无线信号收发器。Wherein, the first wireless connection module may be a wireless signal transceiver with a near field communication function such as a Bluetooth chip.
应当说明的是,本申请实施例提供的无线耳机与上文实施例中的应用于无线耳机的耳机连接方法属于同一构思,通过该无线耳机可以实现应用于无线耳机的耳机连接方法实施例中提供的任一方法,其具体实现过程详见耳机连接方法实施例,此处不再赘述。It should be noted that the wireless earphone provided in the embodiment of the present application belongs to the same idea as the earphone connection method applied to the wireless earphone in the above embodiments, and the earphone connection method applied to the wireless earphone can be realized through the wireless earphone provided in the embodiment. For any method, its specific implementation process can be found in the embodiment of the earphone connection method, and will not be repeated here.
本申请实施例还提供一种耳机装置,该耳机装置包括本申请实施例提供的无线耳机,以及用于承载无线耳机的耳机盒,耳机盒与无线耳机电连接,耳机盒设置有生物特征采集模块;The embodiment of the present application also provides an earphone device, the earphone device includes the wireless earphone provided in the embodiment of the present application, and an earphone box for carrying the wireless earphone, the earphone box is electrically connected with the wireless earphone, and the earphone box is provided with a biometrics collection module ;
生物特征采集模块,用于当检测到第一生物特征时,将第一生物特征发送至无线耳机。The biometric feature collection module is configured to send the first biometric feature to the wireless earphone when the first biometric feature is detected.
本申请实施例还提供一种移动终端,该移动终端可以为智能手机、平板电脑、笔记本电脑、触控屏幕、游戏机、等移动终端设备。如图6所示,图6为本申请实施例提供的移动终端的结构示意图。该移动终端500包括有一个或者一个以上处理核心的处理器501、有一个或一个以上计算机可读存储介质的存储器502及存储在存储器502上并可在处理器上运行的计算机程序。其中,处理器501与存储器502电性连接。本领域技术人员可以理解,图中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The embodiment of the present application also provides a mobile terminal, which may be a mobile terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, or the like. As shown in FIG. 6 , FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application. The
处理器501是移动终端500的控制中心,利用各种接口和线路连接整个移动终端500的各个部分,通过运行或加载存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行移动终端500的各种功能和处理数据,从而对移动终端500进行整体监控。The
该移动终端500还包括第二无线连接模块510,第二无线连接模块510可以为蓝牙芯片、WIFI连接模块等具有近场通信功能的无线信号收发器。第二无线连接模块510用于接收无线耳机发送的无线广播信号。The
在本申请实施例中,移动终端500中的处理器501会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能:In this embodiment of the application, the
通过第二无线连接模块510接收无线广播信号;Receive wireless broadcast signals through the second
获取无线广播信号中携带的第一生物特征和耳机标识信息;Obtain the first biometric feature and earphone identification information carried in the wireless broadcast signal;
获取第二生物特征,并检测第一生物特征与第二生物特征是否匹配;Acquiring a second biometric feature, and detecting whether the first biometric feature matches the second biometric feature;
若第一生物特征与第二生物特征匹配,则基于耳机标识信息进行可连接无线耳机的提示。If the first biometric feature matches the second biometric feature, a prompt that the wireless earphone can be connected is performed based on the earphone identification information.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
可选的,如图6所示,移动终端500还包括:触控显示屏503、射频电路504、音频电路505、输入单元506以及电源507。其中,处理器501分别与触控显示屏503、射频电路504、音频电路505、输入单元506以及电源507电性连接。本领域技术人员可以理解,图6中示出的移动终端结构并不构成对移动终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Optionally, as shown in FIG. 6 , the
触控显示屏503可用于显示图形用户界面以及接收用户作用于图形用户界面产生的操作指令。触控显示屏503可以包括显示面板和触控面板。其中,显示面板可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。触控面板可用于收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并生成相应的操作指令,且操作指令执行对应程序。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器501,并能接收处理器501发来的命令并加以执行。触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器501以确定触摸事件的类型,随后处理器501根据触摸事件的类型在显示面板上提供相应的视觉输出。在本申请实施例中,可以将触控面板与显示面板集成到触控显示屏503而实现输入和输出功能。但是在某些实施例中,触控面板与触控面板可以作为两个独立的部件来实现输入和输出功能。即触控显示屏503也可以作为输入单元506的一部分实现输入功能。The
射频电路504可用于收发射频信号,以通过无线通信与网络设备或其他移动终端建立无线通讯,与网络设备或其他移动终端之间收发信号。The
音频电路505可以用于通过扬声器、传声器提供用户与移动终端之间的音频接口。音频电路505可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路505接收后转换为音频数据,再将音频数据输出处理器501处理后,经射频电路504以发送给比如另一移动终端,或者将音频数据输出至存储器502以便进一步处理。音频电路505还可能包括耳塞插孔,以提供外设耳机与移动终端的通信。The
输入单元506可用于接收输入的数字、字符信息或用户特征信息(例如指纹、虹膜、面部信息等),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The
电源507用于给移动终端500的各个部件供电。可选的,电源507可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源507还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The
尽管图6中未示出,移动终端500还可以包括摄像头、传感器、无线保真模块、蓝牙模块等,在此不再赘述。Although not shown in FIG. 6 , the
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
由上可知,本实施例提供的移动终端,在检测到无线耳机发送的无线广播信号后,获取到其中携带的第一生物特征,将该第一生物特征与终端上存储的第二生物特征进行匹配,只有在匹配成功时,才会进行可连接无线耳机的提示,也就是说,可以通过指纹匹配来判断检测到的无线广播信号对应的无线耳机是否为需要连接的耳机,若不是则不会进行提示,避免移动终端受到他人的不相关无线耳机的干扰。It can be seen from the above that, after the mobile terminal provided in this embodiment detects the wireless broadcast signal sent by the wireless earphone, it acquires the first biometric feature carried therein, and compares the first biometric feature with the second biometric feature stored on the terminal. Matching, only when the matching is successful, will the prompt that the wireless headset can be connected, that is to say, it can be judged through fingerprint matching whether the wireless headset corresponding to the detected wireless broadcast signal is the headset that needs to be connected, if not, it will not Make a prompt to avoid the mobile terminal being interfered by other people's irrelevant wireless headsets.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, and the instructions can be stored in a computer-readable storage medium, and is loaded and executed by the processor.
为此,本申请实施例提供一种计算机可读存储介质,其中存储有多条计算机程序,该计算机程序能够被处理器进行加载,以执行本申请实施例所提供的任一种应用于无线耳机的耳机连接方法中的步骤。例如,该计算机程序可以执行如下步骤:To this end, an embodiment of the present application provides a computer-readable storage medium, which stores a plurality of computer programs, and the computer programs can be loaded by a processor to execute any one of the wireless earphones provided in the embodiments of the present application. Steps in the headphone connection method of . For example, the computer program can perform the following steps:
获取第一生物特征;obtain a first biometric;
生成携带有第一生物特征的无线广播信号;generating a wireless broadcast signal carrying a first biometric feature;
发送无线广播信号,使得接收到无线广播信号的移动终端在具有与第一生物特征匹配的第二生物特征时,进行可连接无线耳机的提示。The wireless broadcast signal is sent, so that when the mobile terminal receiving the wireless broadcast signal has the second biometric feature matching the first biometric feature, it will prompt that the wireless earphone can be connected.
或者,在其他实施例中,该计算机程序能够被处理器进行加载,以执行本申请实施例所提供的任一种应用于移动终端的耳机连接方法中的步骤。例如,该计算机程序可以执行如下步骤:Or, in other embodiments, the computer program can be loaded by the processor to execute the steps in any headphone connection method applied to a mobile terminal provided in the embodiments of the present application. For example, the computer program can perform the following steps:
接收无线耳机发送的无线广播信号;Receive the wireless broadcast signal sent by the wireless headset;
获取无线广播信号携带的第一生物特征和耳机标识信息;Acquiring the first biological feature and earphone identification information carried by the wireless broadcast signal;
获取第二生物特征,并检测第一生物特征与第二生物特征是否匹配;Acquiring a second biometric feature, and detecting whether the first biometric feature matches the second biometric feature;
若第一生物特征与第二生物特征匹配,则基于耳机标识信息进行可连接无线耳机的提示。If the first biometric feature matches the second biometric feature, a prompt that the wireless earphone can be connected is performed based on the earphone identification information.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。由于该存储介质中所存储的计算机程序,可以执行本申请实施例所提供的任一种耳机连接方法中的步骤,因此,可以实现本申请实施例所提供的任一种耳机连接方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like. Since the computer program stored in the storage medium can execute the steps in any earphone connection method provided by the embodiment of the present application, it can realize any earphone connection method provided by the embodiment of the present application. For the beneficial effects, see the previous embodiments for details, and will not be repeated here.
以上对本申请实施例所提供的一种耳机连接方法、存储介质、无线耳机、装置及移动终端进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。A headphone connection method, a storage medium, a wireless headphone, a device, and a mobile terminal provided by the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The above embodiments The description is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, this The content of the description should not be understood as limiting the application.
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN202110540995.0ACN115379533A (en) | 2021-05-18 | 2021-05-18 | Earphone connection method, storage medium, wireless earphone, device and mobile terminal | 
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN202110540995.0ACN115379533A (en) | 2021-05-18 | 2021-05-18 | Earphone connection method, storage medium, wireless earphone, device and mobile terminal | 
| Publication Number | Publication Date | 
|---|---|
| CN115379533Atrue CN115379533A (en) | 2022-11-22 | 
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN202110540995.0APendingCN115379533A (en) | 2021-05-18 | 2021-05-18 | Earphone connection method, storage medium, wireless earphone, device and mobile terminal | 
| Country | Link | 
|---|---|
| CN (1) | CN115379533A (en) | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN116016751A (en)* | 2022-12-26 | 2023-04-25 | Oppo广东移动通信有限公司 | Device display method, broadcasting method, device, electronic device, and storage medium | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| US20150026580A1 (en)* | 2013-07-19 | 2015-01-22 | Samsung Electronics Co., Ltd. | Method and device for communication | 
| CN105703807A (en)* | 2014-11-28 | 2016-06-22 | 华为技术有限公司 | Bluetooth pairing method, device and system | 
| CN106559721A (en)* | 2015-09-30 | 2017-04-05 | 苹果公司 | Wireless pairing of earbuds and case | 
| CN106851546A (en)* | 2017-03-23 | 2017-06-13 | 维沃移动通信有限公司 | A kind of Bluetooth connecting method and terminal | 
| CN109495850A (en)* | 2018-11-01 | 2019-03-19 | Oppo广东移动通信有限公司 | Headphone and terminal connection method, device and headphone box | 
| CN109788441A (en)* | 2017-11-13 | 2019-05-21 | 北京小鸟听听科技有限公司 | A kind of information processing method, terminal and computer storage medium | 
| CN110245483A (en)* | 2019-06-10 | 2019-09-17 | Oppo广东移动通信有限公司 | biometric identification method and related product | 
| CN110536273A (en)* | 2018-05-25 | 2019-12-03 | 九阳股份有限公司 | A kind of connection matching method of smart machine | 
| CN110602671A (en)* | 2018-10-17 | 2019-12-20 | 深圳市文鼎创数据科技有限公司 | Bluetooth search result display method and device, terminal equipment and storage medium | 
| CN110944326A (en)* | 2019-12-10 | 2020-03-31 | 上海闻泰信息技术有限公司 | Bluetooth headset pairing method and device, computer equipment and storage medium | 
| CN110996405A (en)* | 2019-12-16 | 2020-04-10 | 上海传英信息技术有限公司 | Earphone connection method, terminal, earphone box and computer readable storage medium | 
| CN111405405A (en)* | 2020-03-23 | 2020-07-10 | 深圳传音控股股份有限公司 | Control method, mobile terminal and computer storage medium | 
| CN112105010A (en)* | 2020-09-22 | 2020-12-18 | 深圳市汇顶科技股份有限公司 | Method for address exchange between Bluetooth devices, communication system and Bluetooth headset | 
| CN112165704A (en)* | 2020-09-21 | 2021-01-01 | 上海闻泰信息技术有限公司 | Information sharing method, earphone box and computer readable storage medium | 
| WO2021037208A1 (en)* | 2019-08-30 | 2021-03-04 | 华为技术有限公司 | Bluetooth connection method and electronic apparatus | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| US20150026580A1 (en)* | 2013-07-19 | 2015-01-22 | Samsung Electronics Co., Ltd. | Method and device for communication | 
| CN105703807A (en)* | 2014-11-28 | 2016-06-22 | 华为技术有限公司 | Bluetooth pairing method, device and system | 
| CN106559721A (en)* | 2015-09-30 | 2017-04-05 | 苹果公司 | Wireless pairing of earbuds and case | 
| CN109769168A (en)* | 2015-09-30 | 2019-05-17 | 苹果公司 | Wireless pairing of earbuds and case | 
| CN106851546A (en)* | 2017-03-23 | 2017-06-13 | 维沃移动通信有限公司 | A kind of Bluetooth connecting method and terminal | 
| CN109788441A (en)* | 2017-11-13 | 2019-05-21 | 北京小鸟听听科技有限公司 | A kind of information processing method, terminal and computer storage medium | 
| CN110536273A (en)* | 2018-05-25 | 2019-12-03 | 九阳股份有限公司 | A kind of connection matching method of smart machine | 
| CN110602671A (en)* | 2018-10-17 | 2019-12-20 | 深圳市文鼎创数据科技有限公司 | Bluetooth search result display method and device, terminal equipment and storage medium | 
| CN109495850A (en)* | 2018-11-01 | 2019-03-19 | Oppo广东移动通信有限公司 | Headphone and terminal connection method, device and headphone box | 
| CN110245483A (en)* | 2019-06-10 | 2019-09-17 | Oppo广东移动通信有限公司 | biometric identification method and related product | 
| WO2021037208A1 (en)* | 2019-08-30 | 2021-03-04 | 华为技术有限公司 | Bluetooth connection method and electronic apparatus | 
| CN110944326A (en)* | 2019-12-10 | 2020-03-31 | 上海闻泰信息技术有限公司 | Bluetooth headset pairing method and device, computer equipment and storage medium | 
| CN110996405A (en)* | 2019-12-16 | 2020-04-10 | 上海传英信息技术有限公司 | Earphone connection method, terminal, earphone box and computer readable storage medium | 
| CN111405405A (en)* | 2020-03-23 | 2020-07-10 | 深圳传音控股股份有限公司 | Control method, mobile terminal and computer storage medium | 
| CN112165704A (en)* | 2020-09-21 | 2021-01-01 | 上海闻泰信息技术有限公司 | Information sharing method, earphone box and computer readable storage medium | 
| CN112105010A (en)* | 2020-09-22 | 2020-12-18 | 深圳市汇顶科技股份有限公司 | Method for address exchange between Bluetooth devices, communication system and Bluetooth headset | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN116016751A (en)* | 2022-12-26 | 2023-04-25 | Oppo广东移动通信有限公司 | Device display method, broadcasting method, device, electronic device, and storage medium | 
| Publication | Publication Date | Title | 
|---|---|---|
| CN109739669B (en) | A kind of unread message prompting method and mobile terminal | |
| CN108319442B (en) | A control method for audio playback and mobile terminal | |
| CN107870674B (en) | A program starting method and mobile terminal | |
| WO2016119580A1 (en) | Method, device and terminal for starting voice input function of terminal | |
| WO2022127802A1 (en) | Electronic device, display control method and apparatus | |
| CN107580143A (en) | A display method and mobile terminal | |
| CN107808084A (en) | A kind of touch operation method and mobile terminal | |
| CN107635073A (en) | Method for operating a mobile terminal and the mobile terminal | |
| CN109446775A (en) | A kind of acoustic-controlled method and electronic equipment | |
| CN110442437A (en) | Application switching method and mobile terminal | |
| CN109814799A (en) | Screen response control method and terminal device | |
| CN107609363B (en) | An unlocking method and mobile terminal | |
| CN110213686A (en) | A kind of detection method and terminal of earphone socket | |
| CN110673725A (en) | Wearable device control method, wearable device, and computer-readable storage medium | |
| CN110308834A (en) | Application icon display mode setting method and terminal | |
| CN111580911A (en) | Operation prompting method and device for terminal, storage medium and terminal | |
| WO2020173343A1 (en) | Terminal and wireless charging control method | |
| CN111313114B (en) | Charging method and electronic equipment | |
| CN109788114B (en) | A call processing method and terminal | |
| CN111475066A (en) | Background switching method of application program and electronic equipment | |
| CN108594952B (en) | Method and terminal device for anti-charging interference | |
| CN110764650A (en) | Button trigger detection method and electronic device | |
| CN115379533A (en) | Earphone connection method, storage medium, wireless earphone, device and mobile terminal | |
| CN110545351A (en) | An incoming call processing method and electronic device | |
| CN108718360A (en) | A charging method and mobile terminal | 
| 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 |