WO2019237491A1 - Wireless earphone pairing method and device and wireless earphones - Google Patents

Wireless earphone pairing method and device and wireless earphones Download PDF

Info

Publication number
WO2019237491A1
WO2019237491A1 PCT/CN2018/100355 CN2018100355W WO2019237491A1 WO 2019237491 A1 WO2019237491 A1 WO 2019237491A1 CN 2018100355 W CN2018100355 W CN 2018100355W WO 2019237491 A1 WO2019237491 A1 WO 2019237491A1
Authority
WO
WIPO (PCT)
Prior art keywords
pairing
wireless
wireless headset
headset
information
Prior art date
Application number
PCT/CN2018/100355
Other languages
French (fr)
Chinese (zh)
Inventor
赵艳丽
刘朝
杨宗旭
徐强
Original Assignee
歌尔科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2019237491A1 publication Critical patent/WO2019237491A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • An object of the present invention is to provide a method, device, wireless headset, and computer-readable storage medium for wireless earphone pairing, which can enable a user to participate in the process of wireless earphone pairing through a terminal, and further understand the pairing process through the terminal, thereby improving the user. Participation.
  • detecting the preset event by scanning to start a paired broadcast includes:
  • FIG. 1 is a flowchart of a wireless earphone pairing method according to an embodiment of the present invention. The method includes:
  • the BLE pairing broadcast is turned on.
  • the first wireless headset detects a preset event that triggers a pairing operation, it is necessary to enable BLE pairing broadcast.
  • the purpose is to be able to establish a BLE connection with the terminal, and then accept the pairing command from the terminal to complete the entire pairing operation.
  • a sending unit configured to send the pairing accurate and ready information to the terminal
  • This embodiment does not limit the timing when the terminal starts scanning. For example, when the user wants to pair wireless headphones, the terminal is controlled to start scanning.
  • the embodiment does not limit the specific form of the selection information, for example, it can be voice selection information (the user inputs the first two wireless headphones in the selection list as the wireless headphones that need to be paired) to determine the wireless headphones that need to be paired, of course, it can also be a click Information, the user determines the selected wireless headset to be paired by clicking on the terminal screen.
  • voice selection information the user inputs the first two wireless headphones in the selection list as the wireless headphones that need to be paired
  • click Information the user determines the selected wireless headset to be paired by clicking on the terminal screen.
  • the first wireless headset and the second wireless headset that need to be paired are determined according to the input selection information; according to the BLE paired broadcast, respectively Initiate a BLE connection request to the first wireless headset and the second wireless headset to establish a BLE connection; obtain the wireless addresses of the first wireless headset and the second wireless headset, and establish pairing interaction information according to the wireless addresses; use the BLE connection to the first wireless headset, respectively.
  • the headset and the second wireless headset send pairing interaction information, so that the first wireless headset and the second wireless headset complete a pairing operation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to the technical field of portable listening devices, and disclosed thereby is a wireless earphone pairing method, which is used to solve the problems in existing wireless earphone pairing processes of user participation level being low and the progress of pairing being unknown. The method comprises: when a first wireless earphone detects a preset event for triggering a pairing operation, turning on a BLE pairing broadcast; when receiving a BLE connection request sent by a terminal according to the BLE pairing broadcast, establishing a BLE connection to the terminal; receiving pairing interaction information sent by the terminal by means of the BLE connection, wherein, the pairing interaction information comprises wireless addresses of two wireless earphones; and using the pairing interaction information to perform a pairing operation; in the present method, a user may participate in the process of pairing with wireless earphones by means of a terminal, and may further understand the pairing process by means of the terminal, which increases user participation. Also disclosed by the present invention are a wireless earphone pairing device, wireless earphones and a computer readable storage medium, which have the described beneficial effects.

Description

一种无线耳机配对的方法、装置及无线耳机Method and device for wireless earphone pairing and wireless earphone
本申请要求于2018年06月14号提交中国专利局、申请号为201810613242.6、发明名称为“一种无线耳机配对的方法、装置及无线耳机”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed with the Chinese Patent Office on June 14, 2018, with application number 201810613242.6, and the invention name is "A Method, Device, and Wireless Headphone Pairing for Wireless Earphones", the entire contents of which are incorporated by reference Incorporated in this application.
技术领域Technical field
本发明涉及便携式收听设备技术领域,特别涉及一种无线耳机配对的方法、装置、无线耳机及计算机可读存储介质。The present invention relates to the technical field of portable listening devices, and in particular, to a method and device for pairing wireless headphones, wireless headphones, and a computer-readable storage medium.
背景技术Background technique
TWS(True Wireless Stereo)耳机由于其使用方便,越来越受到大众的青睐。其中,TWS耳机由第一无线耳机以及第二无线耳机构成。现有TWS耳机通过蓝牙技术,将手机的音频信号通过蓝牙链路传输给第一无线耳机,第一无线耳机再将音频数据传输给第二无线耳机,以此达到双耳同时播放的目的。TWS (True Wireless Stereo) headphones are more and more popular due to their convenience. The TWS headset is composed of a first wireless headset and a second wireless headset. The existing TWS headset transmits the audio signal of the mobile phone to the first wireless headset through the Bluetooth link, and the first wireless headset transmits the audio data to the second wireless headset, so as to achieve the purpose of simultaneous binaural playback.
现有的TWS耳机想要实现双耳同时播放,首先需要进行对耳之间的配对操作。对于已经配对过的两只无线耳机,由于已经存在了对耳的连接信息,可以在再次使用时直接进行对耳之间的回连即可。但是由于TWS耳机为纯无线耳机,若其中一只丢失又重新购买了一只耳机作为配件,或者几对无线耳机放在一起混淆了,这时就需要进行对耳机之间的重新配对操作。现有技术中通常都是由充电盒发起重新配对的动作和交互配对信息的内容。但是,这样的重新配对方式用户通常不能了解配对的进程,且不能参与到配对过程中,降低了用户参与度。For existing TWS headsets to achieve simultaneous playback of both ears, the pairing operation between the ears must first be performed. For the two wireless headphones that have been paired, since the connection information of the ears already exists, the earphones can be directly connected back when they are used again. However, since the TWS headset is a pure wireless headset, if one of them is lost and a new headset is purchased as an accessory, or several pairs of wireless headsets are put together and confused, then a pairing operation between the headsets is required. In the prior art, recharging actions initiated by a charging box and contents of interactive pairing information are usually used. However, in such a re-pairing manner, users generally cannot understand the progress of pairing and cannot participate in the pairing process, which reduces user participation.
发明内容Summary of the Invention
本发明的目的是提供一种无线耳机配对的方法、装置、无线耳机以及计算机可读存储介质,能够使用户通过终端参与到无线耳机配对的过程中,进而可以通过终端了解配对进程,提高了用户参与度。An object of the present invention is to provide a method, device, wireless headset, and computer-readable storage medium for wireless earphone pairing, which can enable a user to participate in the process of wireless earphone pairing through a terminal, and further understand the pairing process through the terminal, thereby improving the user. Participation.
为解决上述技术问题,本发明提供一种无线耳机配对的方法,包括:To solve the above technical problems, the present invention provides a method for pairing wireless headphones, including:
第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;When the first wireless headset detects a preset event that triggers a pairing operation, the BLE pairing broadcast is turned on;
当接收到终端根据所述BLE配对广播发送的BLE连接请求时,建立与所述终端的BLE连接;When receiving a BLE connection request sent by the terminal according to the BLE pairing broadcast, establishing a BLE connection with the terminal;
通过所述BLE连接接收所述终端发送的配对交互信息;其中,所述配对交互信息包含所述第一无线耳机和与所述第一无线耳机配对的第二无线耳机的无线地址;Receiving pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes wireless addresses of the first wireless headset and a second wireless headset paired with the first wireless headset;
利用所述配对交互信息执行配对操作。Use the pairing interaction information to perform a pairing operation.
可选的,无线耳机配对的方法还包括:Optionally, the method for pairing the wireless headset further includes:
通过扫描到启动配对广播来检测所述预设事件。The preset event is detected by scanning to start a paired broadcast.
可选的,通过扫描到启动配对广播来检测所述预设事件,包括:Optionally, detecting the preset event by scanning to start a paired broadcast includes:
通过扫描到充电设备发起的启动配对广播来检测所述预设事件。The preset event is detected by scanning to start a pairing broadcast initiated by the charging device.
可选的,利用所述配对交互信息执行配对操作,包括:Optionally, performing the pairing operation by using the pairing interaction information includes:
通过解析所述配对交互信息获取所述第一无线耳机的无线地址以及对应的角色信息和所述第二无线耳机的无线地址以及对应的角色信息;Obtaining the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset by analyzing the pairing interaction information;
识别所述第一无线耳机的角色信息;Identifying role information of the first wireless headset;
若所述第一无线耳机的角色信息为从耳机时,开启配对连接广播;If the role information of the first wireless headset is a slave headset, enabling pairing connection broadcasting;
若所述第一无线耳机的角色信息为主耳机时,当扫描到所述第二无线耳机发出的所述配对连接广播时,与所述第二无线耳机建立配对连接。If the role information of the first wireless headset is the primary headset, when the paired connection broadcast from the second wireless headset is scanned, a paired connection is established with the second wireless headset.
可选的,获取所述第一无线耳机的无线地址以及对应的角色信息和所述第二无线耳机的无线地址以及对应的角色信息之后,还包括:Optionally, after acquiring the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset, the method further includes:
向所述终端发送配对准确就绪信息;Sending the pairing accurate and ready information to the terminal;
当接收到所述终端发送的执行配对操作命令时,执行识别所述第一无线耳机的角色信息的步骤。When a pairing operation command sent by the terminal is received, a step of identifying role information of the first wireless headset is performed.
本发明还提供一种无线耳机配对的装置,包括:The invention also provides a device for pairing wireless headphones, including:
BLE配对广播模块,用于第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;The BLE pairing broadcast module is configured to enable the BLE pairing broadcast when the first wireless headset detects a preset event that triggers a pairing operation;
BLE连接模块,用于当接收到终端根据所述BLE配对广播发送的BLE连接请求时,建立与所述终端的BLE连接;A BLE connection module, configured to establish a BLE connection with the terminal when a BLE connection request sent by the terminal according to the BLE pairing broadcast is received;
接收模块,用于通过所述BLE连接接收所述终端发送的配对交互信息; 其中,所述配对交互信息包含所述第一无线耳机和与所述第一无线耳机配对的第二无线耳机的无线地址;A receiving module, configured to receive pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes wireless information of the first wireless headset and a second wireless headset paired with the first wireless headset address;
配对模块,用于利用所述配对交互信息执行配对操作。A pairing module is configured to perform a pairing operation by using the pairing interaction information.
可选的,无线耳机配对的装置还包括:Optionally, the wireless earphone pairing device further includes:
预设事件检测模块,用于通过扫描到启动配对广播来检测所述预设事件。A preset event detection module is configured to detect the preset event by scanning to start a paired broadcast.
可选的,所述配对模块,包括:Optionally, the pairing module includes:
解析单元,用于通过解析所述配对交互信息获取所述第一无线耳机的无线地址以及对应的角色信息和所述第二无线耳机的无线地址以及对应的角色信息;A parsing unit, configured to obtain the wireless address of the first wireless headset and corresponding role information and the wireless address of the second wireless headset and corresponding role information by analyzing the pairing interaction information;
识别单元,用于识别所述第一无线耳机的角色信息;An identification unit, configured to identify role information of the first wireless headset;
配对单元,用于若所述第一无线耳机的角色信息为从耳机时,开启配对连接广播;若所述第一无线耳机的角色信息为主耳机时,当扫描到所述第二无线耳机发出的所述配对连接广播时,与所述第二无线耳机建立配对连接。A pairing unit configured to enable pairing connection broadcasting if the role information of the first wireless headset is a slave headset; if the role information of the first wireless headset is a master headset, when the second wireless headset is scanned When the paired connection broadcast is performed, a paired connection is established with the second wireless headset.
可选的,所述配对模块,还包括:Optionally, the pairing module further includes:
发送单元,用于向所述终端发送配对准确就绪信息;A sending unit, configured to send the pairing accurate ready information to the terminal;
所述识别单元具体用于当接收到所述终端发送的执行配对操作命令时,识别所述第一无线耳机的角色信息。The identifying unit is specifically configured to identify role information of the first wireless headset when a pairing operation command sent by the terminal is received.
本发明还提供一种无线耳机,包括:通讯接口、存储器、处理器;其中,所述存储器,用于存储计算机程序,所述处理器用于执行所述计算机程序时实现如上述所述的无线耳机配对的方法的步骤。The present invention also provides a wireless headset, including: a communication interface, a memory, and a processor; wherein the memory is used to store a computer program, and the processor is configured to implement the wireless headset as described above when the computer program is executed. Steps of the pairing method.
本发明还提供一种无线耳机配对的方法,包括:The invention also provides a method for pairing wireless headphones, including:
终端扫描到各无线耳机的BLE配对广播时,根据输入的选取信息确定需要配对的第一无线耳机和第二无线耳机;When the terminal scans the BLE pairing broadcast of each wireless headset, it determines the first wireless headset and the second wireless headset that need to be paired according to the input selection information;
根据所述BLE配对广播,分别向所述第一无线耳机和所述第二无线耳机发起BLE连接请求,建立BLE连接;Initiating a BLE connection request to the first wireless headset and the second wireless headset according to the BLE pairing broadcast to establish a BLE connection;
获取所述第一无线耳机和所述第二无线耳机的无线地址,并根据所述无线地址组建配对交互信息;Acquiring wireless addresses of the first wireless headset and the second wireless headset, and establishing pairing interaction information according to the wireless addresses;
利用所述BLE连接分别向所述第一无线耳机和所述第二无线耳机发送所述配对交互信息,以使所述第一无线耳机和所述第二无线耳机完成配对操作。Sending the pairing interaction information to the first wireless headset and the second wireless headset using the BLE connection, so that the first wireless headset and the second wireless headset complete a pairing operation.
可选的,获取所述第一无线耳机和所述第二无线耳机的无线地址,并根据所述无线地址组建配对交互信息,包括:Optionally, acquiring wireless addresses of the first wireless headset and the second wireless headset, and establishing pairing interaction information according to the wireless addresses includes:
提取所述BLE配对广播中所述第一无线耳机和所述第二无线耳机的无线地址;Extracting wireless addresses of the first wireless headset and the second wireless headset in the BLE paired broadcast;
根据所述选取信息的顺序确定所述第一无线耳机和所述第二无线耳机的角色信息;Determining role information of the first wireless headset and the second wireless headset according to the order of the selected information;
将所述无线地址、所述角色信息以及配对命令信息组成配对交互信息。The wireless address, the role information, and the pairing command information constitute pairing interaction information.
可选的,无线耳机配对的方法还包括:Optionally, the method for pairing the wireless headset further includes:
当接收到所述第一无线耳机和所述第二无线耳机发送的配对完成信息时,输出所述配对完成信息。When the pairing completion information sent by the first wireless headset and the second wireless headset is received, the pairing completion information is output.
本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述所述的无线耳机配对的方法的步骤。The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for pairing a wireless headset as described above are implemented.
本发明所提供的一种无线耳机配对的方法,包括:第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;当接收到终端根据BLE配对广播发送的BLE连接请求时,建立与终端的BLE连接;通过BLE连接接收终端发送的配对交互信息;其中,配对交互信息包含第一无线耳机和与第一无线耳机配对的第二无线耳机的无线地址;利用配对交互信息执行配对操作。A method for wireless earphone pairing provided by the present invention includes: when a first wireless earphone detects a preset event that triggers a pairing operation, turning on a BLE pairing broadcast; when receiving a BLE connection request sent by a terminal according to the BLE pairing broadcast, Establish a BLE connection with the terminal; receive pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes the wireless addresses of the first wireless headset and the second wireless headset paired with the first wireless headset; use the pairing interaction information to perform pairing operating.
可见,该方法中用户可以通过终端确定需要进行BLE连接进行配对的无线耳机,并且通过终端确定配对交互信息;即用户可以通过终端参与配对交互信息的确定;因此用户可以通过终端参与到无线耳机配对的过程中,进而可以通过参与过程了解无线耳机配对的进程,提高了用户参与度。本发明还提供了一种无线耳机配对的装置、无线耳机以及计算机可读存储介质,具有上述有益效果,在此不再赘述。It can be seen that in this method, the user can determine the wireless headset that requires BLE connection for pairing through the terminal, and determine the pairing interaction information through the terminal; that is, the user can participate in the determination of the pairing interaction information through the terminal; therefore, the user can participate in the wireless headset pairing through the terminal. In the process, the process of wireless headset pairing can be understood through the participation process, which improves user participation. The present invention also provides a wireless earphone pairing device, a wireless earphone, and a computer-readable storage medium, which have the above-mentioned beneficial effects, and are not repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述 中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without paying creative labor.
图1为本发明实施例所提供的无线耳机配对的方法的流程图;FIG. 1 is a flowchart of a wireless earphone pairing method according to an embodiment of the present invention; FIG.
图2为本发明实施例所提供的利用配对交互信息执行配对操作的流程图;2 is a flowchart of performing a pairing operation using pairing interaction information according to an embodiment of the present invention;
图3为本发明实施例所提供的一种无线耳机配对的装置的结构框图;3 is a structural block diagram of a wireless earphone pairing apparatus according to an embodiment of the present invention;
图4为本发明实施例所提供的另一无线耳机配对的方法的流程图。FIG. 4 is a flowchart of another wireless earphone pairing method according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
现有技术中在进行无线耳机配对时,均由充电盒发起配对的动作和交互配对信息的内容。即充电盒来充当需要配对的两个无线耳机的桥梁,发起配对的动作和交互配对信息以指挥两个无线耳机完成配对操作;且需要配对的两个无线耳机都必须放置在充电盒中,充电盒完成对这两个无线耳机的配对。通过上述描述可以看到用户并不能参与到无线耳机配对的过程中,同时也没有办法了解无线耳机配对的进程,因此用户参与感低,体验不好。本实施例中用户可以通过终端参与到无线耳机配对的过程中,进而可以了解到无线耳机配对进程,以提高用户参与度。具体请参考图1,图1为本发明实施例所提供的无线耳机配对的方法的流程图;包括:In the prior art, when performing wireless earphone pairing, the charging box initiates the pairing action and exchanges the content of the pairing information. That is, the charging box acts as a bridge between the two wireless headphones that need to be paired, initiates the pairing action and exchanges the pairing information to direct the two wireless headphones to complete the pairing operation; and the two wireless headphones that need to be paired must be placed in the charging box and charged The box completes the pairing of these two wireless headphones. From the above description, it can be seen that the user cannot participate in the process of wireless headset pairing, and at the same time, there is no way to understand the process of wireless headset pairing, so the user's sense of participation is low and the experience is not good. In this embodiment, the user can participate in the wireless headset pairing process through the terminal, and then can understand the wireless headset pairing process to improve user participation. For details, please refer to FIG. 1. FIG. 1 is a flowchart of a wireless earphone pairing method according to an embodiment of the present invention. The method includes:
S100、第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播。S100. When the first wireless headset detects a preset event that triggers a pairing operation, the BLE pairing broadcast is turned on.
本实施例的执行主体是第一无线耳机,其中,需要配对的无线耳机中任何一个无线耳机都可以是第一无线耳机,可以理解为本申请中第二无线耳机也会执行本实施例中的各个步骤。例如当TWS耳机包含主无线耳机和从无线耳机时,即可以是主无线耳机作为第一无线耳机,也可以是从无线耳机作为第一无线耳机。第二无线耳机即与第一无线耳机配对的无线耳机。The execution subject of this embodiment is the first wireless headset, and any of the wireless headsets that need to be paired can be the first wireless headset. It can be understood that the second wireless headset in this application will also execute the Each step. For example, when the TWS headset includes a master wireless headset and a slave wireless headset, the master wireless headset may be the first wireless headset, or the slave wireless headset may be the first wireless headset. The second wireless headset is a wireless headset paired with the first wireless headset.
本实施例并不对预设事件进行限定,用户可以根据实际情况进行设定。例如可以是扫描到启动配对广播;或者是第一无线耳机开机;或者是第一无线耳机不存在配对过的无线耳机的配对信息等。进一步,本实施例并不对预设事件的检测方法进行限定,用户可以根据设定的预设事件进行相应设置。例如当预设事件为扫描到启动配对广播时,对应的预设事件的检测方法可以是开启第一无线耳机的BLE扫描,判断是否扫描到启动配对广播(如启动配对BLE广播)。例如当预设事件为第一无线耳机开机时,对应的预设事件的检测方法可以是检测第一无线耳机开机键是否处于开机位置来确定预设事件。或者是通过确定第一无线耳机从未工作状态转换为工作状态的变化来检测预设事件。This embodiment does not limit the preset event, and the user can set it according to the actual situation. For example, it can be scanned to start pairing broadcast; or the first wireless headset is turned on; or the pairing information of the paired wireless headset does not exist in the first wireless headset. Further, this embodiment does not limit the detection method of the preset event, and the user can make corresponding settings according to the set preset event. For example, when the preset event is scanning to start the paired broadcast, the detection method of the corresponding preset event may be to turn on the BLE scan of the first wireless headset to determine whether the start of the paired broadcast is scanned (eg, the paired BLE broadcast is started). For example, when the preset event is that the first wireless headset is powered on, the detection method of the corresponding preset event may be to detect whether the first wireless headset power-on button is in a power-on position to determine the preset event. Alternatively, the preset event is detected by determining that the first wireless headset changes from the non-working state to the working state.
进一步,为了提高用户参与度,只有在用户确定需要进行配对时才执行配对操作。因此可以通过启动配对广播作为预设事件来触发发配对操作。具体的,通过扫描到启动配对广播来检测预设事件。本实施例并不限定启动配对广播的发起者。例如可以是终端,或者是充电设备。一般情况下,同时放置在充电设备(例如充电盒)中的无线耳机即为需要进行配对的无线耳机。因此当充电设备中放置了需要配对的无线耳机时,可以通过充电设备发起启动配对广播,当需要配对的无线耳机(即第一无线耳机和第二无线耳机)扫描到充电设备发起的启动配对广播来检测预设事件。本实施例并不限定触发充电设备发起启动配对广播条件,用户可以根据实际情况进行设置。例如可以是充电设备的预设按键被按下。当充电设备发起的启动配对广播后,需要配对的无线耳机(如第一无线耳机)想要扫描到该启动配对广播,必须要开启扫描功能。因此,为了保证第一无线耳机以及第二无线耳机能够及时扫描该启动配对广播,可以在充电设备发起启动配对广播之前开启扫描功能。本实施例并不限定第一无线耳机以及第二无线耳机开启扫描功能的时机,只要在充电设备发起启动配对广播之前开启扫描功能即可,例如需要配对的无线耳机检测到充电设备开盖就直接开启扫描功能。本实施例并不对无线耳机检测充电设备是否开盖的方法进行限定。例如无线耳机可以通过自身是否正在充电来判断充电设备是否开盖。具体的,当充电设备Vbus5V引脚被拉高。则充电设备处于充电状态,此时充电设备未开盖。Further, in order to improve user participation, the pairing operation is performed only when the user determines that pairing is required. Therefore, a pairing operation can be triggered by starting a pairing broadcast as a preset event. Specifically, a preset event is detected by scanning to start a paired broadcast. This embodiment is not limited to the initiator who starts the paired broadcast. For example, it can be a terminal or a charging device. Generally, a wireless headset that is simultaneously placed in a charging device (such as a charging case) is a wireless headset that needs to be paired. Therefore, when wireless headphones that need to be paired are placed in the charging device, the pairing broadcast can be initiated through the charging device. When the wireless headphones that need to be paired (that is, the first wireless headset and the second wireless headset) are scanned, the pairing broadcast initiated by the charging device is scanned. To detect preset events. This embodiment is not limited to triggering a charging device to initiate a pairing broadcast condition, and the user can set it according to actual conditions. For example, it may be that a preset button of the charging device is pressed. After the pairing broadcast is initiated by the charging device, the wireless headset (such as the first wireless headset) that needs to be paired, and the scanning function must be turned on to scan the pairing broadcast. Therefore, in order to ensure that the first wireless headset and the second wireless headset can scan the start-up pairing broadcast in time, the scanning function may be enabled before the charging device initiates the start-up pairing broadcast. This embodiment does not limit the timing of enabling the scanning function of the first wireless headset and the second wireless headset, as long as the scanning function is enabled before the pairing broadcast is initiated by the charging device, for example, the paired wireless headset directly detects the opening of the charging device. Turn on the scan function. This embodiment does not limit the method for detecting whether the charging device is opened by the wireless headset. For example, a wireless headset can determine whether the charging device is opened by checking whether it is charging. Specifically, when the Vbus5V pin of the charging device is pulled high. The charging device is in a charging state, and the charging device is not opened at this time.
下面以充电设备为例说明该过程:The following uses charging equipment as an example to illustrate this process:
需要进行配对的第一无线耳机和第二无线耳机都放置在充电设备内,充电设备打开,两个无线耳机检测到充电设备打开盒盖,进行一段时间(例如10s,本实施例并不对该时间进行限定)的BLE扫描;当充电设备按下按键的时间超过预设值(本实施例并不对该触发条件进行限定),充电设备通过启动配对BLE广播(例如5s,本实施例并不对该时间进行限定)通知无线耳机进行配对;无线耳机扫描到该启动配对BLE广播时,停止BLE扫描,并进行BLE配对广播。Both the first wireless headset and the second wireless headset that need to be paired are placed in the charging device, the charging device is turned on, and the two wireless headphones detect that the charging device opens the cover and perform a period of time (for example, 10s, this embodiment does not BLE scan for limited); when the charging device presses the button for a longer time than the preset value (the trigger condition is not limited in this embodiment), the charging device starts pairing BLE broadcast (for example, 5s, this embodiment does not limit the time) Limiting) Notify the wireless headset to perform pairing; when the wireless headset scans to start the paired BLE broadcast, stop the BLE scanning and perform the BLE pairing broadcast.
当第一无线耳机检测到触发配对操作的预设事件时,需要开启BLE配对广播。目的是为了能够与终端建立BLE连接,进而可以接受终端的配对命令,完成整个配对操作。When the first wireless headset detects a preset event that triggers a pairing operation, it is necessary to enable BLE pairing broadcast. The purpose is to be able to establish a BLE connection with the terminal, and then accept the pairing command from the terminal to complete the entire pairing operation.
本实施例并不限定BLE配对广播的具体内容,其可以根据需要进行设置。一般情况下,由于后续需要与终端建立BLE连接,因此需要包含请求BLE连接的字段(具体字段内容可以参考现有技术中BLE连接所需要的参数)。当然还可以包含后续配对所必须包含的参数,例如无线地址(如蓝牙地址即BT地址)。This embodiment does not limit the specific content of the BLE paired broadcast, which can be set as required. In general, since it is necessary to establish a BLE connection with the terminal in the future, it is necessary to include a field requesting the BLE connection (for specific field content, refer to the parameters required by the BLE connection in the prior art). Of course, it may also include parameters that must be included in subsequent pairings, such as a wireless address (such as a Bluetooth address or a BT address).
S110、当接收到终端根据BLE配对广播发送的BLE连接请求时,建立与终端的BLE连接。S110. When receiving a BLE connection request sent by the terminal according to the BLE pairing broadcast, establish a BLE connection with the terminal.
具体的,当第一无线耳机接收到终端根据BLE配对广播发送的BLE连接请求时,说明终端根据接收到的BLE配对广播的内容(例如可以是无线耳机的名称等可以标识该无线耳机身份的信息)选取需要配对的无线耳机,此时第一无线耳机和第二无线耳机即为用户所选取的需要进行配对的无线耳机。也就是说用户可以通过终端选取其希望进行配对的无线耳机。即用户可以通过该过程参与到无线耳机配对的过程(选取需要配对的无线耳机)。本实施例并不对用户选取操作进行限定,例如可以是语音或者是点击。进一步,同一个时刻需要配对的无线耳机都会与终端建立BLE连接。也就是说终端可以同时与多个无线耳机建立BLE连接,但是终端只能同时与一个无线耳机建立BT连接,因此本实施例在实现无线耳机配对的过程中需要无线耳机与终端建立BLE连接。Specifically, when the first wireless headset receives the BLE connection request sent by the terminal according to the BLE pairing broadcast, it indicates that the terminal according to the content of the received BLE pairing broadcast (for example, it may be information such as the name of the wireless headset that can identify the identity of the wireless headset) ) Select the wireless earphones that need to be paired. At this time, the first wireless earphone and the second wireless earphones are the wireless earphones selected by the user that need to be paired. In other words, the user can select the wireless headset that he wants to pair through the terminal. That is, the user can participate in the wireless headset pairing process (select the wireless headset that needs to be paired) through this process. This embodiment does not limit the user's selection operation, for example, it can be a voice or a click. Further, a wireless headset that needs to be paired at the same time will establish a BLE connection with the terminal. That is to say, the terminal can establish a BLE connection with multiple wireless headsets at the same time, but the terminal can only establish a BT connection with one wireless headset at the same time. Therefore, in this embodiment, the wireless headset needs to establish a BLE connection with the terminal.
本实施例中并不限定需要配对的无线耳机的数量,例如用户可以选择四个 无线耳机进行配对,其中一个为主耳机,剩余三个为从耳机。此时终端将数据发送给主耳机,主耳机可以转发给三个从耳机,这样就可以两个人同步使用,且听到同步的数据(例如同时听同一首歌)。The number of wireless earphones to be paired is not limited in this embodiment. For example, a user may select four wireless earphones for pairing, one of which is a master earphone and the remaining three are slave earphones. At this time, the terminal sends data to the master earphone, and the master earphone can be forwarded to three slave earphones, so that two people can use it synchronously and hear the synchronized data (for example, listening to the same song at the same time).
下面以手机为例说明该过程:The following uses mobile phone as an example to explain the process:
用户打开手机,点击BLE扫描按钮进行BLE扫描,在扫描到的BLE配对广播中的无线耳机的名称选择需要进行配对的无线耳机,然后点击连接按钮就可以发送BLE连接请求。The user turns on the mobile phone, clicks the BLE scan button to perform BLE scan, selects the wireless headset to be paired in the scanned BLE paired broadcast name, and then clicks the connection button to send a BLE connection request.
本实施例并不限定在第一无线耳机接收到该BLE连接请求后,执行建立与终端的BLE连接操作的执行主体。例如可以是第一无线耳机首先向终端发出开始建立BLE连接的第一个操作;当然也可以是终端向第一无线耳机发出开始建立BLE连接的第一个操作。本实施例并不对建立BLE连接的具体过程进行限定,可以参考当前建立BLE连接的具体过程。This embodiment is not limited to the execution subject that performs the operation of establishing a BLE connection with the terminal after the first wireless headset receives the BLE connection request. For example, the first wireless headset may first send a first operation to the terminal to establish a BLE connection; of course, the first wireless headset may send a first operation to the first wireless headset to start establishing a BLE connection. This embodiment does not limit the specific process of establishing a BLE connection, and may refer to the current specific process of establishing a BLE connection.
本实施例并不对终端进行限定,例如终端可以是手机,笔记本电脑,平板等移动终端,也可以是电脑等固定终端。由于其需要与无线耳机建立BLE连接实现数据交互,因此终端需要具有BLE功能;又由于用户需要通过终端参与到无线耳机配对过程,因此其需要具有输入和输出的功能(例如显示屏)。只要具备上述功能以及具备一定处理能力的终端都可以理解为本实施例中的终端。This embodiment does not limit the terminal. For example, the terminal may be a mobile terminal such as a mobile phone, a laptop, a tablet, or a fixed terminal such as a computer. Because it needs to establish a BLE connection with the wireless headset to implement data interaction, the terminal needs to have BLE function; and because the user needs to participate in the wireless headset pairing process through the terminal, it needs to have input and output functions (such as a display screen). As long as a terminal having the above functions and a certain processing capability can be understood as the terminal in this embodiment.
S120、通过BLE连接接收终端发送的配对交互信息;其中,配对交互信息包含第一无线耳机和与第一无线耳机配对的第二无线耳机的无线地址。S120. Receive the pairing interaction information sent by the terminal through the BLE connection. The pairing interaction information includes wireless addresses of the first wireless headset and the second wireless headset paired with the first wireless headset.
本实施例并不对配对交互信息的具体内容进行限定,只要需要配对的无线耳机可以根据配对交互信息实现配对操作即可。其内容可以参考现有配对操作需要使用的参数。例如地址参数,如第一无线耳机和第二无线耳机的无线地址;还可以有配对命令,例如是否需要返回配对进度,或者是否需要返回配对成功或者失败的信息,或者何时开始执行配对操作等;还可以有需要配对的无线耳机的主从关系,例如用户第一个选取的无线耳机为主耳机(其后续在配对过程中执行主耳机对应的操作),剩下的无线耳机为从耳机(其后续在配对过程中执行从耳机对应的操作)。用户可以参与上述配对交互信息的内容的确定。例如由用户确定需要配对的无线耳机的主从关系,或者由用户确定配对命令的具 体内容,设置何时生成该配对交互信息等。This embodiment does not limit the specific content of the pairing interaction information, as long as the wireless headset that needs to be paired can implement the pairing operation according to the pairing interaction information. Its content can refer to the parameters needed for the existing pairing operation. For example, address parameters, such as the wireless address of the first wireless headset and the second wireless headset; there can also be pairing commands, such as whether to return the pairing progress, or whether to return information about the success or failure of pairing, or when to start the pairing operation. ; There may also be a master-slave relationship of the wireless headset that needs to be paired, for example, the user first selects the wireless headset as the master headset (which subsequently performs the operation corresponding to the master headset during the pairing process), and the remaining wireless headsets are slave headsets It subsequently performs operations corresponding to the headset during the pairing process). The user may participate in determining the content of the pairing interaction information. For example, the user determines the master-slave relationship of the wireless headset that needs to be paired, or the user determines the specific content of the pairing command, and sets when to generate the pairing interaction information.
下面以手机为例说明配对交互信息的生成过程:The following uses a mobile phone as an example to describe the process of generating pairing interaction information:
根据用户选取的需要配对的无线耳机的顺序,确定需要配对的各个无线耳机的主从角色信息,终端根据BLE连接需要配对的各个无线耳机获取各自的无线地址或者是根据BLE配对广播确定需要配对的各个无线耳机的无线地址,根据用户想要参与的配对的程度确定所需要的配对命令(例如选取需要返回配对成功或者失败的信息的配对命令),最后终端将这些信息组建成配对交互信息,以使各无线耳机根据该配对交互信息执行对应的配对操作。According to the order of wireless earphones selected by the user, the master and slave role information of each wireless earphone that needs to be paired is determined. The terminal obtains its own wireless address according to the wireless earphones that need to be paired according to the BLE connection, or determines that it needs to be paired according to the BLE pairing broadcast The wireless address of each wireless headset determines the required pairing command according to the degree of pairing that the user wants to participate in (such as selecting a pairing command that needs to return information about successful or failed pairing), and finally the terminal groups these information into pairing interaction information to Each wireless headset is caused to perform a corresponding pairing operation according to the pairing interaction information.
S130、利用配对交互信息执行配对操作。S130. Perform a pairing operation by using the pairing interaction information.
具体的,第一无线耳机在接收到该配对交互信息后,按照配对交互信息的要求执行配对操作,进而完成无线耳机配对过程。本实施例中终端通过BLE同时与需要配对的无线耳机建立连接,同时向需要配对的无线耳机进行配对命令的下发等操作,使得无线耳机配对过程用户参与度高,从而提高了无线耳机配对的适应性以及可靠性。Specifically, after receiving the pairing interaction information, the first wireless headset performs a pairing operation according to the requirements of the pairing interaction information, thereby completing the wireless headset pairing process. In this embodiment, the terminal simultaneously establishes a connection with the wireless headset that needs to be paired through BLE, and issues a pairing command to the wireless headset that needs to be paired at the same time, so that the wireless headset pairing process has high user participation, thereby improving the wireless headset pairing. Adaptability and reliability.
可选的,请参考图2,利用配对交互信息执行配对操作可以包括:Optionally, referring to FIG. 2, performing pairing operations using pairing interaction information may include:
S200、通过解析配对交互信息获取第一无线耳机的无线地址以及对应的角色信息和第二无线耳机的无线地址以及对应的角色信息。S200. Obtain the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset by analyzing the pairing interaction information.
具体的,解析配对交互信息能够得到第一无线耳机的无线地址以及对应的角色信息和第二无线耳机的无线地址以及对应的角色信息。进一步,为了后续交互,或者再次回连的方便,可以存储第二无线耳机的无线地址,例如将第二无线耳机的无线地址存储在flash中。由于无线耳机的角色信息不仅关系到后续配对操作的相关执行动作的发起者的判定,还关系到后续与终端进行数据交互的角色的确定。因此可以存储第一无线耳机和第二无线耳机的角色信息。例如将第一无线耳机和第二无线耳机的角色信息存储在flash中。Specifically, parsing the pairing interaction information can obtain the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset. Further, for the convenience of subsequent interaction or reconnection, the wireless address of the second wireless headset may be stored, for example, the wireless address of the second wireless headset is stored in a flash. Because the role information of the wireless headset is not only related to the determination of the initiator of the related execution action of the subsequent pairing operation, but also the determination of the subsequent role of data interaction with the terminal. Therefore, the role information of the first wireless headset and the second wireless headset can be stored. For example, role information of the first wireless headset and the second wireless headset is stored in the flash.
S210、识别第一无线耳机的角色信息。S210. Identify role information of the first wireless headset.
S220、若第一无线耳机的角色信息为从耳机时,开启配对连接广播。S220. If the role information of the first wireless headset is a slave headset, enable pairing connection broadcasting.
S230、若第一无线耳机的角色信息为主耳机时,当扫描到第二无线耳机发出的配对连接广播时,与第二无线耳机建立配对连接。S230. If the role information of the first wireless headset is the primary headset, when a pairing connection broadcast from the second wireless headset is scanned, a pairing connection is established with the second wireless headset.
具体的,通过确定第一无线耳机的角色,可以确定后续第一无线耳机所需 要执行的配对动作。具体的,第一无线耳机的角色信息为从耳机时,开启配对连接广播;第一无线耳机的角色信息为主耳机时,当扫描到第二无线耳机发出的配对连接广播时,与第二无线耳机建立配对连接。本实施例并不限定执行与第二无线耳机建立配对连接的执行主体。例如可以是第一无线耳机首先向第二无线耳机发出开始建立配对连接的第一个操作;当然也可以是第二无线耳机首先向第一无线耳机发出开始建立配对连接的第一个操作。本实施例并不对建立配对连接的具体过程进行限定,可以参考当前建立配对连接的具体过程。Specifically, by determining the role of the first wireless headset, a pairing action to be performed by the subsequent first wireless headset may be determined. Specifically, when the role information of the first wireless headset is the slave headset, the pairing connection broadcast is turned on; when the role information of the first wireless headset is the master headset, when the pairing connection broadcast from the second wireless headset is scanned, the second wireless headset is connected with the second wireless headset. The headset establishes a pairing connection. This embodiment is not limited to an execution subject that establishes a pairing connection with the second wireless headset. For example, the first wireless headset may first issue a first operation to the second wireless headset to start establishing a pairing connection; of course, the second wireless headset may first issue the first operation to the first wireless headset to start establishing a pairing connection. This embodiment does not limit the specific process of establishing a paired connection, and may refer to the current specific process of establishing a paired connection.
优选的,为了提高用户体验,本实施例还可以在第一无线耳机完成配对操作时,向终端发送配对完成信息。本实施例并不限定配对完成信息的具体内容,只要用户可以根据该配对完成信息了解到配对操作已经完成即可。例如,第一无线耳机已成功与第二无线耳机完成配对。本实施例也不限定配对完成信息的发送时机,例如可以是第一无线耳机完成最后一个配对操作后发送,也可以是接收到第二无线耳机发送的完成配对的信息之后发送。Preferably, in order to improve the user experience, this embodiment may also send pairing completion information to the terminal when the first wireless headset completes the pairing operation. This embodiment does not limit the specific content of the pairing completion information, as long as the user can know that the pairing operation has been completed according to the pairing completion information. For example, the first wireless headset has been successfully paired with the second wireless headset. This embodiment also does not limit the sending timing of the pairing completion information, for example, it may be sent after the first wireless headset completes the last pairing operation, or it may be sent after receiving the pairing completion information sent by the second wireless headset.
进一步,为了提高用户参与无线耳机配对过程的程度,优选的,在获取第一无线耳机的无线地址以及对应的角色信息和第二无线耳机的无线地址以及对应的角色信息之后还可以包括:Further, in order to increase the degree of user participation in the wireless headset pairing process, preferably, after acquiring the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset, it may further include:
向终端发送配对准确就绪信息;Send pairing accurate and ready information to the terminal;
当接收到终端发送的执行配对操作命令时,执行识别第一无线耳机的角色信息的步骤。When the pairing operation command sent by the terminal is received, the step of identifying role information of the first wireless headset is performed.
具体的,本实施例并不限定配对准确就绪信息的具体内容,只要用户可以根据该配对准确就绪信息了解到配对操作可以开始即可。例如,第一无线耳机已准备就绪。本实施例也不限定配对准确就绪信息的发送时机,例如可以是第一无线耳机完成解析配对交互信息后发送,也可以是接收到第二无线耳机发送的完成配对交互信息之后发送。Specifically, this embodiment does not limit the specific content of the accurate and ready information for pairing, as long as the user can know that the pairing operation can be started according to the accurate and ready information for pairing. For example, the first wireless headset is ready. This embodiment does not limit the timing of sending the pairing accurate and ready information, for example, it may be sent after the first wireless headset finishes parsing the pairing interaction information, or it may be sent after receiving the pairing completion interaction information sent by the second wireless headset.
终端在接收到配对准确就绪信息后,可以根据用户输入信息确定是否发送执行配对操作命令,以及何时发送执行配对操作命令。因此,本实施例并不限定执行配对操作命令生成的时间和条件。例如只有当用户点击执行配对操作的按钮时,生成并立刻向需要配对的无线耳机发送执行配对操作命令。After receiving the pairing accurate and ready information, the terminal can determine whether to send the pairing operation command and when to send the pairing operation command according to the user input information. Therefore, the embodiment does not limit the time and conditions for generating the pairing operation command. For example, only when a user clicks a button for performing a pairing operation, a pairing operation command is generated and immediately sent to a wireless headset that needs to be paired.
下面使用手机APP通过连接一对无线耳机进行对耳配对的命令以及蓝牙 地址的下发,以实现无线耳机配对;具体过程可以如下:The following uses the mobile phone APP to connect a pair of wireless headsets to perform pairing commands and the Bluetooth address to issue wireless headset pairing. The specific process can be as follows:
1、充电盒开盖且按键2s后,通过BLE通知需要配对的无线耳机进行BLE扫描,然后充电盒通过BLE通知上述耳机进行对耳配对,该耳机收到该消息后停止BLE扫描并开始BLE配对广播,准备进行与手机的BLE连接。1. After the charging box is opened and the button is pressed for 2 seconds, the wireless headset that requires pairing is notified via BLE for BLE scanning, and then the charging box is notified via BLE for pairing with the ear. After receiving the message, the headset stops BLE scanning and starts BLE pairing. Broadcast, ready for BLE connection with mobile phone.
2、打开手机APP,点击BLE扫描按钮进行BLE扫描,扫描到耳机后,点击设备名称选择需要进行配对的无线耳机,然后向需要配对的耳机发送BLE连接请求,与需要配对的耳机建立BLE连接,连接成功后,点击“开始对耳配对”按钮,此时APP向每个需要配对的耳机发送配对交互信息,包含两个耳机的蓝牙地址、主从角色等。2. Open the mobile phone app and click the BLE scan button for BLE scanning. After scanning the headset, click the device name to select the wireless headset that needs to be paired, then send a BLE connection request to the headset that needs to be paired, and establish a BLE connection with the headset that needs to be paired. After the connection is successful, click the "Start Pairing" button. At this time, the APP sends pairing interaction information to each headset that needs to be paired, including the Bluetooth address of the two headsets, the master and slave roles, and so on.
3、耳机解析手机发来的配对交互信息,检测到其中一个蓝牙地址为本身的蓝牙地址,并另一个蓝牙地址作为需要与之配对的对耳的蓝牙地址保存到flash中,并保存各自的角色信息,然后向手机发送准备就绪的消息;3. The headset parses the pairing interaction information sent by the mobile phone, detects that one of the Bluetooth addresses is its own Bluetooth address, and the other Bluetooth address is stored in the flash as the Bluetooth address of the opposite ear to be paired with, and saves their respective roles. Information, and then send a ready message to the phone;
4、手机APP通知需要配对的耳机开始进行配对操作;4. The mobile phone app notifies the headset that needs to be paired to start the pairing operation;
5、需要配对的耳机收到手机发来的开始对耳配对命令后,进行配对操作,配对完成后通知手机APP,手机APP显示配对完成的消息;从而完成无线耳机配对过程。5. After receiving the pairing start command from the mobile phone, the paired headset needs to perform the pairing operation. After the pairing is completed, the mobile phone APP is notified, and the mobile phone APP displays the message that the pairing is completed; thereby completing the wireless headset pairing process.
基于上述技术方案,本发明实施例提供的无线耳机配对的方法,该方法中用户可以通过终端确定需要进行BLE连接进行配对的无线耳机,并且通过终端确定配对交互信息,即用户可以通过终端参与配对交互信息的确定;因此用户可以通过终端参与到无线耳机配对的过程中,进而可以通过参与过程了解无线耳机配对的进程,提高了用户参与度。Based on the above technical solution, the wireless earphone pairing method provided by the embodiment of the present invention. In this method, the user can determine the wireless earphone that needs BLE connection for pairing through the terminal, and determine the pairing interaction information through the terminal, that is, the user can participate in pairing through the terminal The determination of the interactive information; therefore, the user can participate in the wireless headset pairing process through the terminal, and then can understand the wireless headset pairing process through the participation process, which improves user participation.
下面对本发明实施例提供的无线耳机配对的装置、无线耳机以及计算机可读存储介质进行介绍,下文描述的无线耳机配对的装置、无线耳机以及计算机可读存储介质与上文描述的无线耳机配对的方法可相互对应参照。The wireless earphone pairing device, wireless earphone, and computer-readable storage medium provided in the embodiments of the present invention are described below. The wireless earphone pairing device, wireless earphone, and computer-readable storage medium described below are paired with the wireless earphone described above. Methods can be cross-referenced.
请参考图3,图3为本发明实施例所提供的一种无线耳机配对的装置的结构框图;该装置可以包括:Please refer to FIG. 3, which is a structural block diagram of a wireless headset pairing apparatus according to an embodiment of the present invention; the apparatus may include:
BLE配对广播模块100,用于第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;The BLE pairing broadcast module 100 is configured to enable the BLE pairing broadcast when the first wireless headset detects a preset event that triggers a pairing operation;
BLE连接模块200,用于当接收到终端根据BLE配对广播发送的BLE连接请求时,建立与终端的BLE连接;The BLE connection module 200 is configured to establish a BLE connection with the terminal when a BLE connection request sent by the terminal according to the BLE pairing broadcast is received;
接收模块300,用于通过BLE连接接收终端发送的配对交互信息;其中,配对交互信息包含第一无线耳机和与第一无线耳机配对的第二无线耳机的无线地址;The receiving module 300 is configured to receive pairing interaction information sent by a terminal through a BLE connection, where the pairing interaction information includes wireless addresses of a first wireless headset and a second wireless headset paired with the first wireless headset;
配对模块400,用于利用配对交互信息执行配对操作。The pairing module 400 is configured to perform a pairing operation by using pairing interaction information.
基于上述实施例,该装置还可以包括:Based on the above embodiment, the apparatus may further include:
预设事件检测模块,用于通过扫描到启动配对广播来检测预设事件。The preset event detection module is configured to detect a preset event by scanning to start a paired broadcast.
基于上述任意实施例,配对模块400可以包括:Based on any of the above embodiments, the pairing module 400 may include:
解析单元,用于通过解析配对交互信息获取第一无线耳机的无线地址以及对应的角色信息和第二无线耳机的无线地址以及对应的角色信息;A parsing unit, configured to obtain the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset by analyzing the pairing interaction information;
识别单元,用于识别第一无线耳机的角色信息;A recognition unit, configured to identify role information of the first wireless headset;
配对单元,用于若第一无线耳机的角色信息为从耳机时,开启配对连接广播;若第一无线耳机的角色信息为主耳机时,当扫描到第二无线耳机发出的配对连接广播时,与第二无线耳机建立配对连接。A pairing unit is used to enable pairing connection broadcasting if the role information of the first wireless headset is a slave headset; if the role information of the first wireless headset is a master headset, when the pairing connection broadcast from the second wireless headset is scanned, Establish a pairing connection with the second wireless headset.
基于上述实施例,配对模块400可以包括:Based on the above embodiment, the pairing module 400 may include:
发送单元,用于向终端发送配对准确就绪信息;A sending unit, configured to send the pairing accurate and ready information to the terminal;
识别单元具体用于当接收到终端发送的执行配对操作命令时,识别第一无线耳机的角色信息。The identifying unit is specifically configured to identify role information of the first wireless headset when a pairing operation command sent by the terminal is received.
需要说明的是,基于上述任意实施例,所述装置可以是基于可编程逻辑器件实现的,可编程逻辑器件包括FPGA,CPLD,单片机等。这些可编程逻辑器件可以设置在第一无线耳机中。It should be noted that, based on any of the foregoing embodiments, the device may be implemented based on a programmable logic device, and the programmable logic device includes an FPGA, a CPLD, a single-chip microcomputer, and the like. These programmable logic devices may be provided in the first wireless headset.
本发明实施例还提供一种无线耳机,包括:通讯接口、存储器、处理器;其中,存储器,用于存储计算机程序,处理器用于执行计算机程序时实现上述任意实施例所述的无线耳机配对的方法的步骤。如处理器用于执行计算机程序时实现第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;当接收到终端根据BLE配对广播发送的BLE连接请求时,建立与终端的BLE连接;通过BLE连接接收终端发送的配对交互信息;其中,配对交互信息包 含第一无线耳机和与第一无线耳机配对的第二无线耳机的无线地址;利用配对交互信息执行配对操作。An embodiment of the present invention further provides a wireless headset, including: a communication interface, a memory, and a processor; wherein the memory is used to store a computer program, and the processor is configured to implement the wireless headset pairing according to any of the foregoing embodiments when the computer program is executed. Method steps. For example, when the processor is used to execute a computer program to enable the first wireless headset to detect a preset event that triggers a pairing operation, the BLE pairing broadcast is turned on; when a BLE connection request sent by the terminal according to the BLE pairing broadcast is received, a BLE connection with the terminal is established Receiving the pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes the wireless addresses of the first wireless headset and the second wireless headset paired with the first wireless headset; and performing the pairing operation using the pairing interaction information.
请参考图4,图4为本发明实施例所提供的另一无线耳机配对的方法的流程图;该方法可以包括:Please refer to FIG. 4. FIG. 4 is a flowchart of another method for pairing wireless earphones according to an embodiment of the present invention. The method may include:
S300、终端扫描到各无线耳机的BLE配对广播时,根据输入的选取信息确定需要配对的第一无线耳机和第二无线耳机。S300. When the terminal scans the BLE paired broadcast of each wireless headset, it determines the first wireless headset and the second wireless headset that need to be paired according to the input selection information.
本实施例并不限定终端开启扫描的时机,例如可以是用户想要进行无线耳机配对时,控制终端开启扫描。This embodiment does not limit the timing when the terminal starts scanning. For example, when the user wants to pair wireless headphones, the terminal is controlled to start scanning.
本实施例并不限定第一无线耳机和第二无线耳机的数量,例如当第一无线耳机是主耳机时,可以有至少一个第二无线耳机。This embodiment does not limit the number of the first wireless headset and the second wireless headset. For example, when the first wireless headset is the main headset, there may be at least one second wireless headset.
其中,本实施例并不限定选取信息的具体形式,例如可以是语音选取信息(用户输入选取列表中前两个无线耳机作为需要配对的无线耳机)确定需要配对的无线耳机,当然也可以是点击信息,用户通过点击终端屏幕确定所选择的需要配对的无线耳机。The embodiment does not limit the specific form of the selection information, for example, it can be voice selection information (the user inputs the first two wireless headphones in the selection list as the wireless headphones that need to be paired) to determine the wireless headphones that need to be paired, of course, it can also be a click Information, the user determines the selected wireless headset to be paired by clicking on the terminal screen.
S310、根据BLE配对广播,分别向第一无线耳机和第二无线耳机发起BLE连接请求,建立BLE连接。S310. According to the BLE pairing broadcast, a BLE connection request is initiated to the first wireless headset and the second wireless headset to establish a BLE connection.
进一步,为了提高用户参与度,可以在接收到用户发出的发送指令时,再分别向第一无线耳机和第二无线耳机发起BLE连接请求,建立BLE连接。Further, in order to improve user participation, when receiving a sending instruction from the user, a BLE connection request may be initiated to the first wireless headset and the second wireless headset, respectively, to establish a BLE connection.
S320、获取第一无线耳机和第二无线耳机的无线地址,并根据无线地址组建配对交互信息。S320. Obtain the wireless addresses of the first wireless headset and the second wireless headset, and establish pairing interaction information according to the wireless addresses.
当然,本实施例中也可以是在接收到用户发出的组建指令时根据无线地址组建配对交互信息。具体的,获取第一无线耳机和第二无线耳机的无线地址,并根据无线地址组建配对交互信息可以包括:Of course, in this embodiment, the pairing interaction information may also be set up according to the wireless address when the set-up instruction sent by the user is received. Specifically, acquiring the wireless addresses of the first wireless headset and the second wireless headset and establishing pairing interaction information according to the wireless addresses may include:
提取BLE配对广播中第一无线耳机和第二无线耳机的无线地址;Extracting the wireless addresses of the first wireless headset and the second wireless headset in the BLE paired broadcast;
根据选取信息的顺序确定第一无线耳机和第二无线耳机的角色信息;Determining role information of the first wireless headset and the second wireless headset according to an order of selecting information;
将无线地址、角色信息以及配对命令信息组成配对交互信息。The wireless address, role information, and pairing command information constitute pairing interaction information.
当然,终端也可以通过BLE连接来获取第一无线耳机和第二无线耳机的无线地址。Of course, the terminal may also obtain the wireless addresses of the first wireless headset and the second wireless headset through a BLE connection.
S330、利用BLE连接分别向第一无线耳机和第二无线耳机发送配对交互信息,以使第一无线耳机和第二无线耳机完成配对操作。S330. Use a BLE connection to send pairing interaction information to the first wireless headset and the second wireless headset, respectively, so that the first wireless headset and the second wireless headset complete a pairing operation.
基于上述实施例,为了使得用户可以及时知道配对操作完成,本实施例还可以包括:当接收到第一无线耳机和第二无线耳机发送的配对完成信息时,输出配对完成信息。Based on the above embodiment, in order to enable the user to know that the pairing operation is completed in time, this embodiment may further include: when receiving the pairing completion information sent by the first wireless headset and the second wireless headset, outputting the pairing completion information.
当然,也可以是只接收到任一个无线耳机发送的配对完成信息,都可以输出配对完成信息。Of course, only pairing completion information sent by any wireless headset may be received, and pairing completion information may be output.
进一步,本实施例并不限定配对完成信息的输出形式,例如可以是语音输出,也可以是文字输出,也可以是指示灯输出。Further, this embodiment does not limit the output form of the pairing completion information, for example, it can be a voice output, a text output, or an indicator light output.
本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述任意实施例所述的无线耳机配对的方法的步骤。如计算机程序被处理器执行时实现第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;当接收到终端根据BLE配对广播发送的BLE连接请求时,建立与终端的BLE连接;通过BLE连接接收终端发送的配对交互信息;其中,配对交互信息包含第一无线耳机和与第一无线耳机配对的第二无线耳机的无线地址;利用配对交互信息执行配对操作。和/或,如计算机程序被处理器执行时实现终端扫描到各无线耳机的BLE配对广播时,根据输入的选取信息确定需要配对的第一无线耳机和第二无线耳机;根据BLE配对广播,分别向第一无线耳机和第二无线耳机发起BLE连接请求,建立BLE连接;获取第一无线耳机和第二无线耳机的无线地址,并根据无线地址组建配对交互信息;利用BLE连接分别向第一无线耳机和第二无线耳机发送配对交互信息,以使第一无线耳机和第二无线耳机完成配对操作。The present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the method for pairing a wireless headset according to any of the foregoing embodiments are implemented. For example, when the computer program is executed by the processor, when the first wireless headset detects a preset event that triggers a pairing operation, the BLE pairing broadcast is turned on; when a BLE connection request is received from the terminal according to the BLE pairing broadcast, a BLE connection with the terminal is established. Receiving the pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes the wireless addresses of the first wireless headset and the second wireless headset paired with the first wireless headset; and performing the pairing operation using the pairing interaction information. And / or, for example, when the computer program is executed by the processor to enable the terminal to scan the BLE paired broadcast of each wireless headset, the first wireless headset and the second wireless headset that need to be paired are determined according to the input selection information; according to the BLE paired broadcast, respectively Initiate a BLE connection request to the first wireless headset and the second wireless headset to establish a BLE connection; obtain the wireless addresses of the first wireless headset and the second wireless headset, and establish pairing interaction information according to the wireless addresses; use the BLE connection to the first wireless headset, respectively. The headset and the second wireless headset send pairing interaction information, so that the first wireless headset and the second wireless headset complete a pairing operation.
该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc. The medium.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实 施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part may refer to the description of the method.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the hardware and software, Interchangeability. In the above description, the composition and steps of each example have been described generally in terms of functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the method or algorithm described in connection with the embodiments disclosed herein may be directly implemented by hardware, a software module executed by a processor, or a combination of the two. Software modules can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or in technical fields Any other form of storage medium is known.
以上对本发明所提供的一种无线耳机配对的方法、装置、无线耳机以及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method, device, wireless headset, and computer-readable storage medium for wireless earphone pairing provided by the present invention have been described in detail above. Specific examples are used herein to explain the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (14)

  1. 一种无线耳机配对的方法,其特征在于,包括:A method for wireless earphone pairing, comprising:
    第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;When the first wireless headset detects a preset event that triggers a pairing operation, the BLE pairing broadcast is turned on;
    当接收到终端根据所述BLE配对广播发送的BLE连接请求时,建立与所述终端的BLE连接;When receiving a BLE connection request sent by the terminal according to the BLE pairing broadcast, establishing a BLE connection with the terminal;
    通过所述BLE连接接收所述终端发送的配对交互信息;其中,所述配对交互信息包含所述第一无线耳机和与所述第一无线耳机配对的第二无线耳机的无线地址;Receiving pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes wireless addresses of the first wireless headset and a second wireless headset paired with the first wireless headset;
    利用所述配对交互信息执行配对操作。Use the pairing interaction information to perform a pairing operation.
  2. 根据权利要求1所述的无线耳机配对的方法,其特征在于,还包括:The method for pairing a wireless headset according to claim 1, further comprising:
    通过扫描到启动配对广播来检测所述预设事件。The preset event is detected by scanning to start a paired broadcast.
  3. 根据权利要求2所述的无线耳机配对的方法,其特征在于,通过扫描到启动配对广播来检测所述预设事件,包括:The method for pairing a wireless headset according to claim 2, wherein detecting the preset event by scanning to start a pairing broadcast comprises:
    通过扫描到充电设备发起的启动配对广播来检测所述预设事件。The preset event is detected by scanning to start a pairing broadcast initiated by the charging device.
  4. 根据权利要求1所述的无线耳机配对的方法,其特征在于,利用所述配对交互信息执行配对操作,包括:The method for pairing wireless headphones according to claim 1, wherein performing the pairing operation by using the pairing interaction information comprises:
    通过解析所述配对交互信息获取所述第一无线耳机的无线地址以及对应的角色信息和所述第二无线耳机的无线地址以及对应的角色信息;Obtaining the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset by analyzing the pairing interaction information;
    识别所述第一无线耳机的角色信息;Identifying role information of the first wireless headset;
    若所述第一无线耳机的角色信息为从耳机时,开启配对连接广播;If the role information of the first wireless headset is a slave headset, enabling pairing connection broadcasting;
    若所述第一无线耳机的角色信息为主耳机时,当扫描到所述第二无线耳机发出的所述配对连接广播时,与所述第二无线耳机建立配对连接。If the role information of the first wireless headset is the primary headset, when the paired connection broadcast from the second wireless headset is scanned, a paired connection is established with the second wireless headset.
  5. 根据权利要求4所述的无线耳机配对的方法,其特征在于,获取所述第一无线耳机的无线地址以及对应的角色信息和所述第二无线耳机的无线地址以及对应的角色信息之后,还包括:The method for pairing a wireless headset according to claim 4, wherein after acquiring the wireless address and corresponding role information of the first wireless headset and the wireless address and corresponding role information of the second wireless headset, include:
    向所述终端发送配对准确就绪信息;Sending the pairing accurate and ready information to the terminal;
    当接收到所述终端发送的执行配对操作命令时,执行识别所述第一无线耳机的角色信息的步骤。When a pairing operation command sent by the terminal is received, a step of identifying role information of the first wireless headset is performed.
  6. 一种无线耳机配对的装置,其特征在于,包括:A device for pairing wireless earphones, comprising:
    BLE配对广播模块,用于第一无线耳机检测到触发配对操作的预设事件时,开启BLE配对广播;The BLE pairing broadcast module is configured to enable the BLE pairing broadcast when the first wireless headset detects a preset event that triggers a pairing operation;
    BLE连接模块,用于当接收到终端根据所述BLE配对广播发送的BLE连接请求时,建立与所述终端的BLE连接;A BLE connection module, configured to establish a BLE connection with the terminal when a BLE connection request sent by the terminal according to the BLE pairing broadcast is received;
    接收模块,用于通过所述BLE连接接收所述终端发送的配对交互信息;其中,所述配对交互信息包含所述第一无线耳机和与所述第一无线耳机配对的第二无线耳机的无线地址;A receiving module, configured to receive pairing interaction information sent by the terminal through the BLE connection; wherein the pairing interaction information includes wireless information of the first wireless headset and a second wireless headset paired with the first wireless headset address;
    配对模块,用于利用所述配对交互信息执行配对操作。A pairing module is configured to perform a pairing operation by using the pairing interaction information.
  7. 根据权利要求6所述的无线耳机配对的装置,其特征在于,还包括:The device for pairing a wireless headset according to claim 6, further comprising:
    预设事件检测模块,用于通过扫描到启动配对广播来检测所述预设事件。A preset event detection module is configured to detect the preset event by scanning to start a paired broadcast.
  8. 根据权利要求6所述的无线耳机配对的装置,其特征在于,所述配对模块,包括:The device for pairing a wireless headset according to claim 6, wherein the pairing module comprises:
    解析单元,用于通过解析所述配对交互信息获取所述第一无线耳机的无线地址以及对应的角色信息和所述第二无线耳机的无线地址以及对应的角色信息;A parsing unit, configured to obtain the wireless address of the first wireless headset and corresponding role information and the wireless address of the second wireless headset and corresponding role information by analyzing the pairing interaction information;
    识别单元,用于识别所述第一无线耳机的角色信息;An identification unit, configured to identify role information of the first wireless headset;
    配对单元,用于若所述第一无线耳机的角色信息为从耳机时,开启配对连接广播;若所述第一无线耳机的角色信息为主耳机时,当扫描到所述第二无线耳机发出的所述配对连接广播时,与所述第二无线耳机建立配对连接。A pairing unit configured to enable pairing connection broadcasting if the role information of the first wireless headset is a slave headset; if the role information of the first wireless headset is a master headset, when the second wireless headset is scanned When the paired connection broadcast is performed, a paired connection is established with the second wireless headset.
  9. 根据权利要求8所述的无线耳机配对的装置,其特征在于,所述配对模块,还包括:The device for pairing a wireless headset according to claim 8, wherein the pairing module further comprises:
    发送单元,用于向所述终端发送配对准确就绪信息;A sending unit, configured to send the pairing accurate ready information to the terminal;
    所述识别单元具体用于当接收到所述终端发送的执行配对操作命令时,识别所述第一无线耳机的角色信息。The identifying unit is specifically configured to identify role information of the first wireless headset when a pairing operation command sent by the terminal is received.
  10. 一种无线耳机,其特征在于,包括:通讯接口、存储器、处理器;其中,所述存储器,用于存储计算机程序,所述处理器用于执行所述计算 机程序时实现如权利要求1至5任一项所述的无线耳机配对的方法的步骤。A wireless headset, comprising: a communication interface, a memory, and a processor; wherein the memory is used to store a computer program, and the processor is used to implement any one of claims 1 to 5 when the computer program is executed. Steps of a method for pairing wireless headphones.
  11. 一种无线耳机配对的方法,其特征在于,包括:A method for wireless earphone pairing, comprising:
    终端扫描到各无线耳机的BLE配对广播时,根据输入的选取信息确定需要配对的第一无线耳机和第二无线耳机;When the terminal scans the BLE pairing broadcast of each wireless headset, it determines the first wireless headset and the second wireless headset that need to be paired according to the input selection information;
    根据所述BLE配对广播,分别向所述第一无线耳机和所述第二无线耳机发起BLE连接请求,建立BLE连接;Initiating a BLE connection request to the first wireless headset and the second wireless headset according to the BLE pairing broadcast to establish a BLE connection;
    获取所述第一无线耳机和所述第二无线耳机的无线地址,并根据所述无线地址组建配对交互信息;Acquiring wireless addresses of the first wireless headset and the second wireless headset, and establishing pairing interaction information according to the wireless addresses;
    利用所述BLE连接分别向所述第一无线耳机和所述第二无线耳机发送所述配对交互信息,以使所述第一无线耳机和所述第二无线耳机完成配对操作。Sending the pairing interaction information to the first wireless headset and the second wireless headset using the BLE connection, so that the first wireless headset and the second wireless headset complete a pairing operation.
  12. 根据权利要求11所述的无线耳机配对的方法,其特征在于,获取所述第一无线耳机和所述第二无线耳机的无线地址,并根据所述无线地址组建配对交互信息,包括:The method for pairing wireless headphones according to claim 11, wherein acquiring wireless addresses of the first wireless headphones and the second wireless headphones and establishing pairing interaction information according to the wireless addresses comprises:
    提取所述BLE配对广播中所述第一无线耳机和所述第二无线耳机的无线地址;Extracting wireless addresses of the first wireless headset and the second wireless headset in the BLE paired broadcast;
    根据所述选取信息的顺序确定所述第一无线耳机和所述第二无线耳机的角色信息;Determining role information of the first wireless headset and the second wireless headset according to the order of the selected information;
    将所述无线地址、所述角色信息以及配对命令信息组成配对交互信息。The wireless address, the role information, and the pairing command information constitute pairing interaction information.
  13. 根据权利要求11所述的无线耳机配对的方法,其特征在于,还包括:The method for pairing wireless headphones according to claim 11, further comprising:
    当接收到所述第一无线耳机和所述第二无线耳机发送的配对完成信息时,输出所述配对完成信息。When the pairing completion information sent by the first wireless headset and the second wireless headset is received, the pairing completion information is output.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的无线耳机配对的方法的步骤;和/或,所述计算机程序被处理器执行时实现如权利要求11至13任一项所述的无线耳机配对的方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the wireless headset pairing according to any one of claims 1 to 5 is realized And / or, when the computer program is executed by a processor, the steps of the method for pairing a wireless headset according to any one of claims 11 to 13.
PCT/CN2018/100355 2018-06-14 2018-08-14 Wireless earphone pairing method and device and wireless earphones WO2019237491A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810613242.6A CN108811182B (en) 2018-06-14 2018-06-14 Wireless earphone pairing method and device and wireless earphone
CN201810613242.6 2018-06-14

Publications (1)

Publication Number Publication Date
WO2019237491A1 true WO2019237491A1 (en) 2019-12-19

Family

ID=64085877

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/100355 WO2019237491A1 (en) 2018-06-14 2018-08-14 Wireless earphone pairing method and device and wireless earphones

Country Status (2)

Country Link
CN (1) CN108811182B (en)
WO (1) WO2019237491A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112105010A (en) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 Method for address exchange between Bluetooth devices, communication system and Bluetooth headset

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561414B (en) * 2018-12-21 2022-10-11 歌尔科技有限公司 Wireless earphone pairing method and device and wireless earphone
CN109600694B (en) * 2019-01-16 2020-08-11 歌尔科技有限公司 Wireless earphone pairing method and device, terminal and charging box
CN110149620B (en) * 2019-05-17 2022-11-08 北京增强智能科技有限公司 Control method and device of intelligent earphone, intelligent earphone and storage medium
CN112449328B (en) * 2019-08-30 2023-08-22 华为技术有限公司 Bluetooth searching method, system and related device
CN110809243B (en) * 2019-10-30 2022-03-25 歌尔科技有限公司 Wireless earphone, wireless earphone pairing method, terminal and system
CN110933616B (en) * 2019-11-21 2022-05-17 昆山泰芯微电子有限公司 Wireless earphone pairing method and system
CN110891261A (en) * 2019-12-10 2020-03-17 湖南国声声学科技股份有限公司 Bluetooth headset pairing method and system, Bluetooth headset and computer readable storage medium
CN111132116B (en) * 2019-12-31 2022-03-25 联想(北京)有限公司 Control method and device
CN111882846B (en) * 2020-03-05 2021-07-06 珠海市杰理科技股份有限公司 Wireless control method and device, BLE equipment, chip and storage medium
CN111885501B (en) * 2020-03-05 2022-07-22 珠海市杰理科技股份有限公司 Bluetooth technology-based equipment control method and related equipment
CN111464993B (en) * 2020-04-08 2023-05-02 昆山泰芯微电子有限公司 Bluetooth headset pairing method and wireless headset for Bluetooth headset
WO2021253221A1 (en) * 2020-06-16 2021-12-23 深圳市大疆创新科技有限公司 Role control method, apparatus and device
CN112020048B (en) * 2020-09-04 2022-06-21 歌尔科技有限公司 Bluetooth device pairing method, device and storage medium
CN115022957B (en) * 2022-05-31 2024-04-09 歌尔科技有限公司 State synchronization method and device of earphone device, earphone device and storage medium
CN117319975A (en) * 2022-06-23 2023-12-29 Oppo广东移动通信有限公司 Bluetooth device configuration method and device, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792493A (en) * 2017-03-09 2017-05-31 北京小米移动软件有限公司 The matching method of bluetooth equipment, device and bluetooth equipment
CN107257516A (en) * 2017-07-17 2017-10-17 湖南海翼电子商务股份有限公司 Wireless headset and its matching method
CN107809696A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to establish the wireless headset interacted with Earphone box
CN107809697A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to be used to establish the Earphone box interacted with wireless headset

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185339A1 (en) * 2016-04-29 2017-11-02 高翔 Wireless connection method, apparatus and system
CN106028264B (en) * 2016-05-20 2019-05-03 珠海市杰理科技股份有限公司 Electronic equipment Bluetooth pairing methods and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792493A (en) * 2017-03-09 2017-05-31 北京小米移动软件有限公司 The matching method of bluetooth equipment, device and bluetooth equipment
CN107257516A (en) * 2017-07-17 2017-10-17 湖南海翼电子商务股份有限公司 Wireless headset and its matching method
CN107809696A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to establish the wireless headset interacted with Earphone box
CN107809697A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to be used to establish the Earphone box interacted with wireless headset

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112105010A (en) * 2020-09-22 2020-12-18 深圳市汇顶科技股份有限公司 Method for address exchange between Bluetooth devices, communication system and Bluetooth headset
CN112105010B (en) * 2020-09-22 2024-04-26 深圳市汇顶科技股份有限公司 Method for address exchange among Bluetooth devices, communication system and Bluetooth headset

Also Published As

Publication number Publication date
CN108811182A (en) 2018-11-13
CN108811182B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
WO2019237491A1 (en) Wireless earphone pairing method and device and wireless earphones
CN109600694B (en) Wireless earphone pairing method and device, terminal and charging box
CN107277754B (en) Bluetooth connection method and Bluetooth peripheral equipment
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
WO2017101517A1 (en) Method and device for device binding
WO2019015488A1 (en) Wireless earphone and pairing method thereof
WO2019237494A1 (en) Pairing method and device for wireless headsets, and wireless headsets
WO2018000156A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
EP3709614A1 (en) Media-content handover between a mobile device and an external device
WO2019237463A1 (en) Method for establishing bt connection, and wireless headset and tws headset
WO2017084389A1 (en) Wireless device matching method, apparatus and system
US20160255521A1 (en) Method and apparatus for testing a smart device
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
WO2018201944A1 (en) Apparatus control method and device
CN111132111B (en) BLE-based audio sharing method, system and computer readable storage medium
US20200027469A1 (en) Content streaming apparatus and method
WO2017101297A1 (en) Method and device for video messaging, terminal, and server
WO2021042612A1 (en) Wireless screen projection method and apparatus, device and storage medium
RU2670096C2 (en) Method and device for ending video communication
CN114500730A (en) Popup window function control method, device and computer readable storage medium
WO2018000570A1 (en) Bluetooth pairing method, apparatus and system
CN110602683A (en) Bluetooth control method, device, mobile terminal and storage medium
CN111988693B (en) Earphone control method and system based on earphone charging box and readable storage medium
WO2018201943A1 (en) Device control method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18922526

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18922526

Country of ref document: EP

Kind code of ref document: A1