CN115119336B - Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium - Google Patents
Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN115119336B CN115119336B CN202211012343.0A CN202211012343A CN115119336B CN 115119336 B CN115119336 B CN 115119336B CN 202211012343 A CN202211012343 A CN 202211012343A CN 115119336 B CN115119336 B CN 115119336B
- Authority
- CN
- China
- Prior art keywords
- earphone
- broadcast signal
- electronic device
- target broadcast
- communication connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/40—Connection management for selective distribution or broadcast
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Telephone Function (AREA)
- Headphones And Earphones (AREA)
Abstract
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种耳机连接系统、方法、耳机、电子设备及可读存储介质。The present application relates to the field of terminal technology, and in particular to an earphone connection system and method, an earphone, electronic equipment, and a readable storage medium.
背景技术Background technique
目前,无线耳机一般可以通过自带的蓝牙等无线通信组件与其他电子设备连接,建立无线通信通道,实现音频等数据的传输。At present, wireless earphones can generally be connected with other electronic devices through built-in wireless communication components such as Bluetooth to establish a wireless communication channel to realize the transmission of audio and other data.
然而,可以与两个或多个其他电子设备同时建立无线通信连接的耳机,在与其他电子设备回连时,由于其他电子设备的状态不符合连接预期,而导致回连耗时过长。However, an earphone that can simultaneously establish a wireless communication connection with two or more other electronic devices, when reconnecting with other electronic devices, because the state of the other electronic devices does not meet the connection expectations, the reconnection takes too long.
发明内容Contents of the invention
本申请提供一种耳机连接系统、方法、耳机、电子设备及可读存储介质,解决了由于其他电子设备的状态不符合预期,而导致回连时间过长的问题。The present application provides an earphone connection system and method, an earphone, an electronic device and a readable storage medium, which solves the problem that the reconnection time is too long due to the unexpected status of other electronic devices.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,提供一种耳机连接系统,该系统可以包括耳机和第一电子设备,In a first aspect, an earphone connection system is provided, the system may include an earphone and a first electronic device,
第一电子设备,用于在与耳机断开连接后,以第一广播频率发出第一目标广播信号;耳机,用于在关盒状态以第一扫描频率扫描第一目标广播信号,并在开盒时,基于扫描到的第一目标广播信号向第一电子设备发送通信连接信号,与第一电子设备建立通信连接。The first electronic device is used to send out the first target broadcast signal with the first broadcast frequency after being disconnected from the earphone; the earphone is used to scan the first target broadcast signal with the first scanning frequency in the closed state, and box, send a communication connection signal to the first electronic device based on the scanned first target broadcast signal, and establish a communication connection with the first electronic device.
示例性的,针对可以与多个设备建立通信连接的耳机,例如双连接耳机,当只有一个电子设备在准备与耳机回连时,可以在断开连接的时候,耳机通过扫描电子设备发出的目标广播信号可以确定在位且可以连接的电子设备,在开盒后可以及时向该在位且发出目标广播信号的电子设备发出通信连接信号,以快速建立通信连接;而无需基于历史的连接记录,对历史连接信息中的所有设备按历史连接顺序再依次进行连接判断,从而大大节省了耳机的回连时间;同时,耳机在扫描到一个电子设备在位时,只与该电子设备建立通信连接即可,也无需每次开盒后都对所有连接过的电子设备再次进行回连判断;节省耳机回连时间的同时,使建立连接的耳机可以快速进入作业状态。Exemplarily, for earphones that can establish communication connections with multiple devices, such as dual-connection earphones, when only one electronic device is preparing to connect back to the earphone, the earphone can scan the target sent by the electronic device when the connection is disconnected. The broadcast signal can determine the electronic device that is in place and can be connected, and can send a communication connection signal to the electronic device that is in place and sends out the target broadcast signal in time after opening the box, so as to quickly establish a communication connection; without the need for historical connection records, All the devices in the historical connection information are connected in sequence according to the historical connection order, which greatly saves the connection time of the headset; at the same time, when the headset scans an electronic device, it only establishes a communication connection with the electronic device. Yes, there is no need to re-judgment all connected electronic devices every time after opening the box; while saving the time for reconnecting the earphones, the connected earphones can quickly enter the working state.
通过上述方式,耳机在开盒时,可以基于在关盒状态扫描到的第一目标广播信号快速向第一电子设备发送通信连接信号,发起与电子设备的通信连接;从而在关盒状态提前确定符合连接状态的可连接电子设备,无需基于历史连接信息对不确定状态的电子设备发起回连判断,而造成连接的耗时,提高耳机与电子设备回连的速度;具有较强的易用性与实用性。Through the above method, when the headset is opened, it can quickly send a communication connection signal to the first electronic device based on the first target broadcast signal scanned in the closed state, and initiate a communication connection with the electronic device; thus, it can be determined in advance in the closed state Connectable electronic devices that meet the connection status do not need to initiate a connection back judgment for electronic devices in an uncertain state based on historical connection information, resulting in time-consuming connection and improving the speed of connection back between the headset and electronic devices; it has strong usability and practicality.
在第一方面的一种可能的实现方式中,该系统还包括第二电子设备;第二电子设备,用于在与耳机断开连接后,以第二广播频率发出第二目标广播信号;耳机,还用于在关盒状态以第一扫描频率扫描第二目标广播信号,并在开盒时,基于扫描到第一目标广播信号向第一电子设备发送通信连接信号,或者基于扫描到的第二目标广播信号向第二电子设备发送通信连接信号,分别与第一电子设备或第二电子设备建立通信连接。In a possible implementation manner of the first aspect, the system further includes a second electronic device; the second electronic device is configured to send a second target broadcast signal at a second broadcast frequency after being disconnected from the earphone; the earphone , and is also used to scan the second target broadcast signal with the first scanning frequency in the closed state, and when the box is opened, send a communication connection signal to the first electronic device based on the scanned first target broadcast signal, or based on the scanned first target broadcast signal The two-target broadcast signal sends a communication connection signal to the second electronic device, and respectively establishes a communication connection with the first electronic device or the second electronic device.
示例性的,当耳机附近存在两台处于待连接状态的电子设备,均发出低功耗蓝牙的目标广播信号时,耳机可以基于扫描到的目标广播信号的频次或顺序确定待连接设备的连接顺序;或者,耳机在开盒时,基于首次扫描到的目标广播信号确定优先建立连接的电子设备。从而无需每次均基于固定连接顺序依次验证回连,提高耳机回连的效率。Exemplarily, when there are two electronic devices that are waiting to be connected near the earphone and both send out the target broadcast signal of Bluetooth low energy consumption, the earphone can determine the connection order of the devices to be connected based on the frequency or order of the scanned target broadcast signal ; Or, when the earphone is unpacked, determine the electronic device that preferentially establishes the connection based on the target broadcast signal scanned for the first time. Therefore, it is not necessary to sequentially verify the connection back based on the fixed connection sequence each time, thereby improving the efficiency of the connection back of the earphone.
在第一方面的一种可能的实现方式中,第一电子设备,还用于在与耳机断开连接后,以第一广播频率发出包含第一加密协议的第一目标广播信号;耳机,还用于在开盒时,基于扫描到的第一目标广播信号中的第一加密协议向第一电子设备发送通信连接信号,与第一电子设备建立通信连接。In a possible implementation manner of the first aspect, the first electronic device is further configured to, after being disconnected from the earphone, send the first target broadcast signal containing the first encryption protocol at the first broadcast frequency; the earphone is also configured to: It is used for sending a communication connection signal to the first electronic device based on the first encryption protocol in the scanned first target broadcast signal when the box is opened, so as to establish a communication connection with the first electronic device.
示例性的,该加密协议可以为耳机与电子设备约定已知的协议内容,该加密协议可以是在耳机与电子设备首次建立连接时约定并生成的。Exemplarily, the encryption protocol may specify known protocol content for the earphone and the electronic device, and the encryption protocol may be agreed upon and generated when the earphone and the electronic device establish a connection for the first time.
从而在耳机与电子设备断开连接的状态,通过扫描到包含加密协议的目标广播信号即可确定待连接的电子设备位于可连接范围内,并在耳机开盒时,基于扫描到的目标广播信号,即刻响应并与确定的该电子设备建立回连。Therefore, in the state where the headset is disconnected from the electronic device, by scanning the target broadcast signal containing the encryption protocol, it can be determined that the electronic device to be connected is within the connectable range, and when the headset is unpacked, based on the scanned target broadcast signal , respond immediately and establish a connection back with the identified electronic device.
示例性的,第一电子设备或第二电子设备,用于在与耳机断开连接后,发出包含加密协议的第一目标广播信号或第二目标广播信号;所述耳机,还用于基于第一目标广播信号或第二目标广播信号中的加密协议,确定待连接设备为第一电子设备或第二电子设备;并在开盒时,基于扫描到的第一目标广播信号中加密协议或第二目标广播信号中的加密协议向第一电子设备或第二电子设备发送通信连接信号,与第一电子设备或第二电子设备建立通信连接。Exemplarily, the first electronic device or the second electronic device is configured to send out the first target broadcast signal or the second target broadcast signal containing an encryption protocol after being disconnected from the earphone; The encryption protocol in the first target broadcast signal or the second target broadcast signal determines that the device to be connected is the first electronic device or the second electronic device; and when the box is opened, based on the scanned encryption protocol or the second target broadcast signal The encryption protocol in the two-target broadcast signal sends a communication connection signal to the first electronic device or the second electronic device, and establishes a communication connection with the first electronic device or the second electronic device.
在第一方面的一种可能的实现方式中,耳机,还用于在关盒状态若以第一扫描频率未扫描到目标广播信号,则以第二扫描频率继续扫描,第二扫描频率小于第一扫描频率。In a possible implementation manner of the first aspect, the earphone is further configured to continue scanning at a second scanning frequency if the target broadcast signal is not scanned at the first scanning frequency in the closed state, and the second scanning frequency is lower than the first scanning frequency. a scanning frequency.
示例性的,若耳机在关盒状态以低功耗蓝牙未扫描到目标广播信号,则降低扫描的频率,以节省耳机功耗。相应的,在以降低后的扫描频率扫描到目标广播信号时,还可以再次提高扫描频率,以在耳机开盒时及时响应扫描到的目标广播信号,与电子设备建立回连。Exemplarily, if the earphone does not scan the target broadcast signal with the Bluetooth low energy consumption in the closed state, the scanning frequency is reduced to save power consumption of the earphone. Correspondingly, when the target broadcast signal is scanned at the reduced scan frequency, the scan frequency can also be increased again, so as to respond to the scanned target broadcast signal in time when the earphone is unpacked, and establish a connection back with the electronic device.
第二方面,提供一种耳机连接系统,该系统包括耳机和第一电子设备,In a second aspect, an earphone connection system is provided, the system includes an earphone and a first electronic device,
耳机,用于在关盒状态,以第三广播频率发出第三目标广播信号;第一电子设备,用于在与耳机断开连接后,以第三扫描频率扫描第三目标广播信号,并在扫描到第三目标广播信号后,以第四扫描频率继续扫描;第一电子设备,还用于在耳机开盒后,基于扫描到的第三目标广播信号和耳机的开盒广播信号,向耳机发送通信连接信号,与耳机建立通信连接;其中,第四扫描频率大于第三扫描频率。The earphone is used to send the third target broadcast signal with the third broadcast frequency in the closed state; the first electronic device is used to scan the third target broadcast signal with the third scan frequency after disconnecting the earphone, and After scanning to the third target broadcast signal, continue scanning with the fourth scanning frequency; the first electronic device is also used to send the headset to the headset based on the scanned third target broadcast signal and the headset’s unbox broadcast signal after the headset is unpacked. A communication connection signal is sent to establish a communication connection with the earphone; wherein, the fourth scanning frequency is greater than the third scanning frequency.
通过上述方式,耳机在关盒状态还可以发出第三广播频率的第三目标广播信号,该第三目标广播信号用于使第一电子设备发现耳机;并且在第一电子设备基于第三扫描频率扫描到耳机的第三目标广播信号后,提高扫描频率,继续以第四扫描频率扫描,从而在耳机开盒时,可以更加及时地扫描到耳机的开盒广播信号,并及时向耳机发送通信连接信号,与耳机快速建立回连。Through the above method, the earphone can also send out the third target broadcast signal of the third broadcast frequency in the closed state, and the third target broadcast signal is used to make the first electronic device discover the earphone; and when the first electronic device based on the third scanning frequency After scanning the third target broadcast signal of the earphone, increase the scanning frequency and continue to scan at the fourth scanning frequency, so that when the earphone is unpacked, the unboxing broadcast signal of the earphone can be scanned in a more timely manner, and the communication connection can be sent to the earphone in time signal, quickly establish a connection with the headset.
在第二方面的一种可能的实现方式中,耳机,用于在关盒状态,以第三广播频率发出包含第三加密协议的第三目标广播信号;第一电子设备,还用于在扫描到第三目标广播信号后,基于第三加密协议在扫描到开盒广播信号时向耳机发送通信连接信号,与耳机建立通信连接。In a possible implementation of the second aspect, the earphone is configured to send a third target broadcast signal containing a third encryption protocol at a third broadcast frequency in the closed state; the first electronic device is also configured to scan After receiving the third target broadcast signal, based on the third encryption protocol, when the box-opening broadcast signal is scanned, a communication connection signal is sent to the earphone to establish a communication connection with the earphone.
示例性的,第三目标广播信号所包含的第三加密协议可以为耳机与电子设备首次配对连接时,生成的加密协议,即耳机可以广播包含该第三加密协议的第三目标广播信号,从而可以区分扫描到的其他广播信号,第一电子设备只有在扫描到包含该第三加密协议的第三目标广播信号后,确定可连接的耳机在附近,并待耳机开盒后,做出响应,主动向耳机发起回连。Exemplarily, the third encryption protocol included in the third target broadcast signal may be an encryption protocol generated when the headset and the electronic device are paired and connected for the first time, that is, the headset may broadcast the third target broadcast signal containing the third encryption protocol, thereby It is possible to distinguish other scanned broadcast signals, and the first electronic device determines that the connectable earphone is nearby only after scanning the third target broadcast signal containing the third encryption protocol, and responds after the earphone is unpacked, Actively initiate a connection back to the headset.
示例性的,该系统还包括第二电子设备;耳机,用于在关盒状态,以第三广播频率发出包含期望连接顺序的第三目标广播信号;第一电子设备与第二电子设备,用于在扫描到第三目标广播信号,并在耳机开盒后,基于期望连接顺序向耳机发送通信连接信号,并分别与所述耳机建立通信连接。Exemplarily, the system further includes a second electronic device; an earphone, configured to send a third target broadcast signal containing an expected connection sequence at a third broadcast frequency in a closed state; the first electronic device and the second electronic device use After the third target broadcast signal is scanned and the earphones are unpacked, a communication connection signal is sent to the earphones based on the desired connection sequence, and communication connections are respectively established with the earphones.
第三方面,提供一种耳机连接方法,应用于耳机,该方法包括:In a third aspect, a headphone connection method is provided, which is applied to a headphone, and the method includes:
在关盒状态,耳机以第一扫描频率扫描第一目标广播信号,该第一目标广播信号为第一电子设备以第一广播频率发出的广播信号;在开盒时,耳机基于扫描到的第一目标广播信号向第一电子设备通信连接信号,与第一电子设备建立通信连接。In the closed state, the earphone scans the first target broadcast signal with the first scanning frequency, and the first target broadcast signal is a broadcast signal sent by the first electronic device at the first broadcast frequency; A target broadcast signal communicates a connection signal to the first electronic device, and establishes a communication connection with the first electronic device.
在第三方面的一种可能的实现方式中,第一目标广播信号包括第一加密协议;基于扫描到第一目标广播信号向第一电子设备发送通信连接信号,与第一电子设备建立通信连接,包括:In a possible implementation manner of the third aspect, the first target broadcast signal includes a first encryption protocol; based on scanning the first target broadcast signal, a communication connection signal is sent to the first electronic device, and a communication connection is established with the first electronic device ,include:
基于扫描到的第一目标广播信号中的第一加密协议,向第一电子设备发送通信连接信号,与第一电子设备建立通信连接。Based on the first encrypted protocol in the scanned first target broadcast signal, a communication connection signal is sent to the first electronic device to establish a communication connection with the first electronic device.
示例性的,第一目标广播信号中还包括第一电子设备的标识,基于该第一目标广播信号,耳机可以确定待连接设备为第一电子设备。相应的,为了区分其他的广播信号,第一目标广播信号还包含第一加密协议,耳机还可以基于第一目标广播信号中的第一加密协议,确定待连接设备为第一电子设备。Exemplarily, the first target broadcast signal further includes the identifier of the first electronic device, and based on the first target broadcast signal, the earphone can determine that the device to be connected is the first electronic device. Correspondingly, in order to distinguish other broadcast signals, the first target broadcast signal further includes a first encryption protocol, and the headset may also determine that the device to be connected is the first electronic device based on the first encryption protocol in the first target broadcast signal.
在第三方面的一种可能的实现方式中,在开盒之前,该方法还包括:In a possible implementation manner of the third aspect, before unpacking, the method further includes:
耳机在关盒状态以第一扫描频率扫描第二目标广播信号,第二目标广播信号为第二电子设备以第二广播频率发出的;The earphone scans the second target broadcast signal at the first scanning frequency in the closed state, and the second target broadcast signal is sent by the second electronic device at the second broadcast frequency;
在开盒时,耳机基于扫描到第一目标广播信号向第一电子设备发送通信连接信号,或者基于扫描到的第二目标广播信号向第二电子设备发送通信连接信号,与第一电子设备或第二电子设备建立通信连接。When the box is opened, the earphone sends a communication connection signal to the first electronic device based on the scanned first target broadcast signal, or sends a communication connection signal to the second electronic device based on the scanned second target broadcast signal, and communicates with the first electronic device or The second electronic device establishes a communication connection.
示例性的,在开盒之前,该方法还包括:Exemplarily, before unpacking, the method further includes:
耳机在关盒状态以第一扫描频率扫描第二目标广播信号,第二目标广播信号为第二电子设备以第二广播频率发出的;耳机基于扫描到第一目标广播信号和第二目标广播信号的顺序或频次确定待连接设备的连接顺序。相应的,耳机基于连接顺序与第一电子设备、第二电子设备分别建立通信连接。The earphone scans the second target broadcast signal at the first scanning frequency in the closed state, and the second target broadcast signal is sent by the second electronic device at the second broadcast frequency; the earphone scans the first target broadcast signal and the second target broadcast signal The sequence or frequency determines the connection sequence of the devices to be connected. Correspondingly, the earphone establishes communication connections with the first electronic device and the second electronic device respectively based on the connection sequence.
在第三方面的一种可能的实现方式中,该方法还包括:In a possible implementation of the third aspect, the method further includes:
耳机在关盒状态,若以第一扫描频率未扫描到目标广播信号,则以第二扫描频率继续扫描,第二扫描频率小于第一扫描频率。When the earphone is in the closed state, if the target broadcast signal is not scanned at the first scanning frequency, the scanning is continued at the second scanning frequency, and the second scanning frequency is lower than the first scanning frequency.
第四方面,提供一种耳机连接方法,应用于电子设备,该方法包括:In a fourth aspect, a headphone connection method is provided, which is applied to electronic equipment, and the method includes:
电子设备以预设的广播频率发出目标广播信号;电子设备接收耳机在开盒后发送的通信连接信号,并基于通信连接信号与耳机建立通信连接,通信连接信号为耳机在开盒时基于扫描到的目标广播信号发送的。The electronic device sends a target broadcast signal at a preset broadcast frequency; the electronic device receives the communication connection signal sent by the earphone after opening the box, and establishes a communication connection with the earphone based on the communication connection signal. The target broadcast signal is sent.
示例性的,在耳机开盒后,该方法还包括:Exemplarily, after the headset is unpacked, the method further includes:
电子设备基于连接顺序与耳机建立通信连接,该连接顺序为耳机基于扫描到目标广播信号的顺序或频次确定的。The electronic device establishes a communication connection with the earphone based on the connection order, and the connection order is determined by the earphone based on the order or frequency of scanning target broadcast signals.
示例性的,目标广播信号中包含加密协议和电子设备的标识。Exemplarily, the target broadcast signal includes the encryption protocol and the identification of the electronic device.
第五方面,提供一种耳机连接方法,应用于耳机,该方法包括:In the fifth aspect, there is provided a method for connecting earphones, which is applied to earphones, and the method includes:
在关盒状态,耳机以第三广播频率发出目标广播信号,目标广播信号用于指示电子设备在以第三扫描频率扫描到目标广播信号后,继续以第四扫描频率扫描;在开盒时,耳机发出开盒广播信号;在开盒后,耳机接收电子设备基于扫描到的目标广播信号和开盒广播信号发送的通信连接信号,与电子设备建立通信连接;其中,第四扫描频率大于第三扫描频率。In the closed state, the earphone sends a target broadcast signal with the third broadcast frequency, and the target broadcast signal is used to instruct the electronic device to continue scanning with the fourth scan frequency after scanning the target broadcast signal with the third scan frequency; when the box is opened, The earphone sends out a broadcast signal for opening the box; after the box is opened, the earphone receives the communication connection signal sent by the electronic device based on the scanned target broadcast signal and the broadcast signal for opening the box, and establishes a communication connection with the electronic device; wherein, the fourth scanning frequency is greater than the third scanning frequency.
在第五方面的一种可能的实现方式中,该方法还包括:In a possible implementation manner of the fifth aspect, the method further includes:
在关盒状态,耳机以第三广播频率发出包含加密协议的目标广播信号;在开盒后,耳机接收电子设备在扫描到开盒广播信号后基于目标广播信号的加密协议发送的通信连接信号,与电子设备建立通信连接。In the closed state, the earphone sends out the target broadcast signal containing the encryption protocol at the third broadcast frequency; after the box is opened, the earphone receives the communication connection signal sent by the electronic device based on the encryption protocol of the target broadcast signal after scanning the open box broadcast signal, Establish a communication link with an electronic device.
示例性的,该方法还包括:在关盒状态,耳机以第三广播频率发出包含期望连接顺序的目标广播信号;在开盒后,耳机接收电子设备在扫描到目标广播信号后基于期望连接顺序发送的通信连接信号,并与电子设备建立通信连接。Exemplarily, the method further includes: in the closed state, the earphone sends a target broadcast signal containing the desired connection sequence with a third broadcast frequency; after the box is opened, the earphone receives the electronic device based on the desired connection sequence after scanning the target broadcast signal Send the communication connection signal and establish a communication connection with the electronic device.
第六方面,提供一种耳机连接方法,应用于电子设备,该方法包括:In a sixth aspect, a headphone connection method is provided, which is applied to an electronic device, and the method includes:
在与耳机断开连接后,电子设备以第三扫描频率扫描耳机在关盒状态以第三广播频率发出的目标广播信号;在扫描到目标广播信号后,电子设备以第四扫描频率继续扫描;在耳机开盒后,电子设备基于扫描到的目标广播信号和开盒广播信号向耳机发送通信连接信号,与耳机建立通信连接。After being disconnected from the earphone, the electronic device scans the target broadcast signal sent by the earphone at the third broadcast frequency in the closed state with the third scan frequency; after scanning the target broadcast signal, the electronic device continues to scan with the fourth scan frequency; After the earphone is unpacked, the electronic device sends a communication connection signal to the earphone based on the scanned target broadcast signal and the unbox broadcast signal, and establishes a communication connection with the earphone.
在第六方面的一种可能的实现方式中,目标广播信号包括加密协议;在耳机开盒后,电子设备基于扫描到的目标广播信号和开盒广播信号向耳机发送通信连接信号,与耳机建立通信连接,包括:In a possible implementation of the sixth aspect, the target broadcast signal includes an encryption protocol; after the earphone is unpacked, the electronic device sends a communication connection signal to the earphone based on the scanned target broadcast signal and the unpacked broadcast signal, and establishes a communication connection with the earphone. Communication connections, including:
在耳机开盒后,电子设备在扫描到开盒广播信号时基于目标广播信号中的加密协议向耳机发送通信连接信号,与耳机建立通信连接。After the earphone is unpacked, the electronic device sends a communication connection signal to the earphone based on the encryption protocol in the target broadcast signal when scanning the unpacked broadcast signal, and establishes a communication connection with the earphone.
示例性的,目标广播信号包括期望连接顺序;在耳机开盒后,电子设备在扫描到开盒广播信号时基于目标广播信号向耳机发送通信连接信号,与耳机建立通信连接,包括:Exemplarily, the target broadcast signal includes an expected connection sequence; after the headset is unpacked, the electronic device sends a communication connection signal to the headset based on the target broadcast signal when scanning the unbox broadcast signal, and establishes a communication connection with the headset, including:
在耳机开盒后,电子设备在扫描到开盒广播信号时基于期望连接顺序向耳机发送通信连接信号,并与耳机建立通信连接。After the headset is unpacked, the electronic device sends a communication connection signal to the headset based on the desired connection sequence when scanning the unpacking broadcast signal, and establishes a communication connection with the headset.
第七方面,提供一种耳机连接装置,该装置包括:In a seventh aspect, there is provided an earphone connection device, which includes:
第一扫描单元,用于在关盒状态,以第一扫描频率扫描第一目标广播信号,第一目标广播信号为第一电子设备以第一广播频率发出的广播信号;The first scanning unit is configured to scan the first target broadcast signal at the first scanning frequency in the closed state, where the first target broadcast signal is a broadcast signal sent by the first electronic device at the first broadcast frequency;
通信连接单元,用于在开盒时,基于扫描到的第一目标广播信号向第一电子设备发送通信连接信号,与第一电子设备建立通信连接。The communication connection unit is configured to send a communication connection signal to the first electronic device based on the scanned first target broadcast signal to establish a communication connection with the first electronic device when the box is opened.
第八方面,提供一种耳机连接装置,该装置包括:In an eighth aspect, an earphone connection device is provided, the device comprising:
第一广播单元,用于以预设的广播频率发出目标广播信号;a first broadcast unit, configured to send a target broadcast signal at a preset broadcast frequency;
第一接收单元,用于接收耳机在开盒后发送的通信连接信号,并基于通信连接信号与耳机建立通信连接,通信连接信号为耳机在开盒时基于扫描到的目标广播信号发送的。The first receiving unit is used to receive the communication connection signal sent by the headset after unpacking, and establish a communication connection with the headset based on the communication connection signal. The communication connection signal is sent by the headset based on the scanned target broadcast signal when unpacking.
第九方面,提供一种耳机连接装置,该装置包括:In a ninth aspect, there is provided an earphone connection device, which includes:
第二广播单元,用于在关盒状态,以第三广播频率发出目标广播信号,目标广播信号用于指示电子设备在以第三扫描频率扫描到目标广播信号后,继续以第四扫描频率扫描目标广播信号;The second broadcast unit is configured to send out a target broadcast signal at a third broadcast frequency in the closed state, and the target broadcast signal is used to instruct the electronic device to continue scanning at a fourth scan frequency after scanning the target broadcast signal at the third scan frequency target broadcast signal;
第三广播单元,用于在开盒时,发出开盒广播信号;The third broadcasting unit is used for sending out a box-opening broadcast signal when the box is opened;
第二接收单元,用于在开盒后,接收电子设备基于扫描到的目标广播信号和开盒广播信号发送的通信连接信号,与电子设备建立通信连接;The second receiving unit is configured to receive a communication connection signal sent by the electronic device based on the scanned target broadcast signal and the box-opening broadcast signal after the box is opened, and establish a communication connection with the electronic device;
其中,第四扫描频率大于第三扫描频率。Wherein, the fourth scanning frequency is greater than the third scanning frequency.
第十方面,提供一种耳机连接装置,该装置包括:In a tenth aspect, an earphone connection device is provided, the device comprising:
第二扫描单元,用于在与耳机断开连接后,以第三扫描频率扫描耳机在关盒状态以第三广播频率发出的目标广播信号;在扫描到目标广播信号后,以第四扫描频率继续扫描目标广播信号;The second scanning unit is used to scan the target broadcast signal sent by the earphone at the third broadcast frequency in the closed state with the third scan frequency after being disconnected from the earphone; after scanning the target broadcast signal, use the fourth scan frequency Continue to scan the target broadcast signal;
信号发送单元,用于在耳机开盒后,基于扫描到的目标广播信号和开盒广播信号向耳机发送通信连接信号,与耳机建立通信连接。The signal sending unit is configured to send a communication connection signal to the earphone based on the scanned target broadcast signal and the unbox broadcast signal after the earphone is unpacked, so as to establish a communication connection with the earphone.
第十一方面,提供了一种耳机,该耳机包括存储器、处理器,所述存储器上存储有可在处理器上运行的计算机程序,处理器执行计算机程序时实现第三方面或第五方面中任一项所述方法的步骤。In an eleventh aspect, an earphone is provided, the earphone includes a memory and a processor, the memory stores a computer program that can run on the processor, and when the processor executes the computer program, the third aspect or the fifth aspect is implemented. The steps of any one of the methods.
第十二方面,提供了一种电子设备,所述电子设备包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第四方面或第六方面中任一项所述方法的步骤。In a twelfth aspect, an electronic device is provided, the electronic device includes a memory and a processor, the memory stores a computer program that can run on the processor, and when the processor executes the computer program The steps of the method described in any one of the fourth aspect or the sixth aspect are realized.
第十三方面,提供了一种计算机可读存储介质,包括:存储有计算机程序,所述计算机程序被处理器执行时实现如上述第三方面、第四方面、第五方面或第六方面中任一项所述方法的步骤。In a thirteenth aspect, there is provided a computer-readable storage medium, including: storing a computer program, and when the computer program is executed by a processor, the above-mentioned third aspect, fourth aspect, fifth aspect or sixth aspect can be implemented. The steps of any one of the methods.
第十四方面,提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第三方面、第四方面、第五方面或第六方面中任一项所述方法。In a fourteenth aspect, a computer program product is provided. When the computer program product runs on a terminal device, the terminal device executes any one of the third aspect, the fourth aspect, the fifth aspect, or the sixth aspect. method.
可以理解的是,上述第二方面至第十四方面的有益效果可以参见第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the above-mentioned second aspect to the fourteenth aspect, reference can be made to the relevant description in the first aspect, and details are not repeated here.
附图说明Description of drawings
图1为本申请实施例提供的耳机回连的示意图;FIG. 1 is a schematic diagram of an earphone connection provided by an embodiment of the present application;
图2为本申请实施例提供的耳机连接系统架构图;FIG. 2 is an architecture diagram of an earphone connection system provided by an embodiment of the present application;
图3为本申请实施例提供的耳机向电子设备发起连接的交互示意图;FIG. 3 is an interactive schematic diagram of an earphone initiating a connection to an electronic device according to an embodiment of the present application;
图4为本申请实施例提供的耳机向电子设备发起连接的交互示意图;FIG. 4 is an interactive schematic diagram of an earphone initiating a connection to an electronic device according to an embodiment of the present application;
图5为本申请实施例提供的电子设备向耳机发起连接的交互示意图;FIG. 5 is an interactive schematic diagram of an electronic device initiating a connection to an earphone according to an embodiment of the present application;
图6为本申请实施例提供的电子设备向耳机发起连接的交互示意图;FIG. 6 is an interactive schematic diagram of an electronic device initiating a connection to a headset provided in an embodiment of the present application;
图7为本申请实施例提供的电子设备与耳机连接的界面示意图;FIG. 7 is a schematic diagram of an interface for connecting an electronic device to an earphone according to an embodiment of the present application;
图8为本申请实施例提供的电子设备与耳机连接的界面示意图;FIG. 8 is a schematic diagram of an interface for connecting an electronic device to an earphone according to an embodiment of the present application;
图9为本申请实施例提供的耳机连接方法的实现流程示意图;FIG. 9 is a schematic diagram of an implementation flow of the earphone connection method provided by the embodiment of the present application;
图10为本申请实施例提供的耳机连接方法的实现流程示意图;FIG. 10 is a schematic diagram of an implementation flow of the earphone connection method provided by the embodiment of the present application;
图11为本申请实施例提供的耳机连接方法的实现流程示意图;FIG. 11 is a schematic diagram of the implementation flow of the earphone connection method provided by the embodiment of the present application;
图12为本申请实施例提供的耳机连接方法的实现流程示意图;FIG. 12 is a schematic diagram of an implementation flow of the earphone connection method provided by the embodiment of the present application;
图13为本申请实施例提供的耳机连接装置的结构示意图;FIG. 13 is a schematic structural diagram of an earphone connection device provided by an embodiment of the present application;
图14为本申请实施例提供的耳机连接装置的结构示意图;FIG. 14 is a schematic structural diagram of an earphone connection device provided by an embodiment of the present application;
图15为本申请实施例提供的耳机连接装置的结构示意图;FIG. 15 is a schematic structural diagram of an earphone connection device provided by an embodiment of the present application;
图16为本申请实施例提供的耳机连接装置的结构示意图;FIG. 16 is a schematic structural diagram of an earphone connection device provided by an embodiment of the present application;
图17为本申请实施例提供的电子设备的系统架构图;FIG. 17 is a system architecture diagram of an electronic device provided by an embodiment of the present application;
图18为本申请实施例提供的耳机的系统架构图。FIG. 18 is a system architecture diagram of an earphone provided by an embodiment of the present application.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in this application, specific examples are used below to illustrate.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
目前,针对双连接的无线蓝牙耳机,可以同时与两个或多个设备建立无线通信连接。然而,由于回连机制中,在耳机开盒后需要依次向上次连接过的设备进行回连判断。如图1中的(a)图所示,双连接的电子设备以手机A和手机B为例,当手机A和手机B为上次与耳机进行过配对连接的电子设备,且位于耳机的可连接范围内,当耳机开盒后,则基于回连机制中固定的连接顺序,分别依次向手机A和手机B发起回连请求,在手机A反馈回连成功后,耳机才向手机B发起回连请求,在手机B反馈连接成功后,耳机与手机A、手机B的通信通道才正式开始工作。Currently, for a dual-connection wireless Bluetooth headset, wireless communication connections can be established with two or more devices at the same time. However, due to the connection-back mechanism, after the headset is unpacked, it is necessary to make a connection-back judgment to the device that was connected last time. As shown in (a) of Figure 1, mobile phone A and mobile phone B are examples of dual-connected electronic devices. Within the connection range, when the earphone is opened, it will send back connection requests to mobile phone A and mobile phone B respectively based on the fixed connection sequence in the back connection mechanism. According to the request, after the mobile phone B reports that the connection is successful, the communication channel between the headset and mobile phone A and mobile phone B officially starts to work.
然而,如图1中的(b)图所示,一个手机状态确定且不首先回连的场景。当其中一个电子设备(例如手机A)的状态不确定时,例如手机A不在耳机的可连接范围内或者蓝牙关闭等状态,耳机在开盒后,还需要基于原固定的回连机制的连接顺序,首先向手机A发起回连请求,并在等待反馈超时后,才会结束对手机A的回连过程;在回连手机A失败的情况下才会再向手机B发起回连请求,并在手机B反馈连接成功后,开始基于与手机B的通信通道开始工作。由于状态不确定的手机A回连判断过程的等待时间较长,导致耳机与手机B的回连时间过长,使得耳机与电子设备回连响应较慢,影响用户使用的体验感。However, as shown in (b) of Figure 1, a scenario where the status of the mobile phone is determined and does not connect back first. When the state of one of the electronic devices (such as mobile phone A) is uncertain, such as mobile phone A is not within the connectable range of the headset or the Bluetooth is turned off, after the headset is unpacked, it still needs to be based on the connection sequence of the original fixed connection mechanism , first initiate a connection back request to mobile phone A, and wait for the feedback to time out before ending the connection back process to mobile phone A; only when the connection back to mobile phone A fails will it initiate a connection back request to mobile phone B, and then After the mobile phone B reports that the connection is successful, it starts to work based on the communication channel with the mobile phone B. Due to the long waiting time in the judgment process of mobile phone A with an uncertain state, the connection time between the headset and mobile phone B is too long, which makes the response of the headset and electronic equipment slow, which affects the user experience.
而且,如图1中的(c)图所示,一个手机状态确定且首先回连场景。当手机B的状态不确定时,例如手机B不在耳机的可连接范围内或手机B的蓝牙关闭,耳机在开盒后,基于原回连机制中固定的连接顺序,在与手机A回连成功后,向手机B发起回连请求,由于手机B的状态不确定,等待超时后才确定手机B回连失败,且在确定手机B回连失败后才开始基于手机A与耳机的通信连接开始工作,使得耳机与电子设备回连后进行工作响应的耗时较长,响应效率较低,同样影响用户使用的体验感。Moreover, as shown in (c) in Figure 1, a mobile phone status is determined and the scene is connected back first. When the status of mobile phone B is uncertain, for example, mobile phone B is not within the connectable range of the headset or the Bluetooth of mobile phone B is turned off, after the headset is opened, it will successfully reconnect with mobile phone A based on the fixed connection sequence in the original connection mechanism. Finally, initiate a connection back request to mobile phone B. Since the status of mobile phone B is uncertain, it is determined that mobile phone B has failed to connect back after waiting for a timeout, and it will start working based on the communication connection between mobile phone A and the headset after it is determined that mobile phone B has failed to connect back. , making it take a long time to respond to the work after the earphone is connected back to the electronic device, and the response efficiency is low, which also affects the user experience.
针对上述缺陷,本申请提供了一种耳机回连系统,可以缩短耳机与电子设备的回连时间,提高耳机与电子设备的回连效率以及工作响应效率。In view of the above defects, the present application provides an earphone reconnection system, which can shorten the reconnection time between the earphone and the electronic device, and improve the efficiency of the reconnection between the earphone and the electronic device and the work response efficiency.
请参见图2,图2是本申请实施例提供的耳机连接系统架构图。如图2所示,该系统可以包括第一电子设备10、耳机20和第二电子设备30。Please refer to FIG. 2 . FIG. 2 is a structural diagram of an earphone connection system provided by an embodiment of the present application. As shown in FIG. 2 , the system may include a first
示例性的,在一些应用场景下,该系统还可以只包括一个电子设备和耳机,例如第一电子设备10和耳机20,或者第二电子设备30和耳机。Exemplarily, in some application scenarios, the system may only include one electronic device and an earphone, such as the first
如图2所示,若第一电子设备10和第二电子设备30处于可连接状态,耳机20在开盒后可以分别与第一电子设备10和第二电子设备30建立通信连接。为提高耳机20与电子设备建立回连的效率,本申请实施例中,在耳机关盒状态可以扫描电子设备发出的目标广播信号,以确定位于连接范围内的可连接设备,并在开盒时快速向可连接设备发起回连请求。或者,电子设备与耳机断开连接时,耳机在关盒状态可以发出低功耗蓝牙的目标广播信号,电子设备可以基于扫描到的该目标广播信号,在耳机开盒时,主动向耳机发起回连请求,以建立通信连接。As shown in FIG. 2 , if the first
示例性的,该目标广播信号为电子设备和耳机已知约定且可识别响应的广播信号,例如该目标广播信号中可以包含耳机和电子设备约定的加密协议,该加密协议可以为电子设备和耳机首次建立配对连接时生成的。在耳机开盒后,可以与第一电子设备和第二电子设备分别建立通信连接,如图2所示,在第一电子设备和第二电子设备的显示界面还可以显示已连接耳机的连接状态及电量状态等信息。Exemplarily, the target broadcast signal is a broadcast signal that the electronic device and the earphone have known and can identify and respond to. For example, the target broadcast signal may contain an encryption protocol agreed upon by the earphone and the electronic device. Generated when the pairing connection is established for the first time. After the headset is unpacked, communication connections can be established with the first electronic device and the second electronic device respectively, as shown in Figure 2, the connection status of the connected headset can also be displayed on the display interface of the first electronic device and the second electronic device and battery status information.
示例性的,与耳机建立无线通信连接的电子设备可以是手机、平板、笔记本电脑等可以无线通信的终端,在此不对电子设备的类型进行限定。Exemplarily, the electronic device establishing a wireless communication connection with the earphone may be a terminal capable of wireless communication such as a mobile phone, a tablet, and a notebook computer, and the type of the electronic device is not limited here.
需要说明的是,上述基于低功耗蓝牙广播的目标广播信号、对目标广播信号的扫描识别以及回连的过程可以适用于单个电子设备与耳机建立回连的场景,也可以适用于两个或多个设备与耳机建立回连的场景;基于上述回连机制,可以改善原回连机制中由于电子设备的状态不确定而基于固定的连接顺序所导致等待时间过长的缺陷,提高了耳机与电子设备回连的速度;无需等待其他不确定状态的电子设备的回连判断,使得耳机可以快速进入业务状态。It should be noted that the above-mentioned target broadcast signal based on low-power Bluetooth broadcast, scanning and identification of the target broadcast signal, and the process of connecting back can be applied to the scene where a single electronic device establishes a connection back with the headset, or can be applied to two or more The scene where multiple devices establish a connection back with the earphone; based on the above connection back mechanism, it can improve the defect that the original connection back mechanism has too long waiting time due to the uncertain state of the electronic device based on the fixed connection sequence, and improves the connection between the earphone and the headset. The speed of the connection back of the electronic device; there is no need to wait for the connection back judgment of other electronic devices in an uncertain state, so that the headset can quickly enter the business state.
针对耳机与电子设备已经建立过配对连接,通信连接断开后再次回连的场景,下面通过具体实施例,详细介绍耳机与电子设备快速建立回连的实现过程。以第一电子设备为手机B,第二电子设备为手机A进行示例性说明。Aiming at the scene where the earphone and the electronic device have already established a pairing connection, and the communication connection is disconnected and reconnects again, the implementation process of quickly establishing a reconnection between the earphone and the electronic device will be introduced in detail through specific embodiments below. The mobile phone B is the first electronic device, and the mobile phone A is the second electronic device.
首先介绍耳机作为扫描端,电子设备作为广播端,使得耳机与电子设备实现回连的过程。Firstly, the earphone is used as the scanning end, and the electronic device is used as the broadcasting end, so that the earphone and the electronic device are connected back.
实施例一Embodiment one
如图3所示,该耳机连接系统包括耳机和第一电子设备(以下以手机B为例进行描述)。其中,手机B在与耳机断开连接后,以第一广播频率发出第一目标广播信号,例如,每10秒发送一个低功耗蓝牙的第一目标广播信号。耳机在关盒状态,以第一扫描频率定时醒来,持续扫描一定时间的目标广播信号;例如,耳机在关盒状态时,每20分钟醒来一次,一次扫描15秒。As shown in FIG. 3 , the earphone connection system includes an earphone and a first electronic device (the mobile phone B is taken as an example for description below). Wherein, after the mobile phone B is disconnected from the earphone, it sends out the first target broadcast signal with the first broadcast frequency, for example, sends a first target broadcast signal of Bluetooth Low Energy every 10 seconds. When the earphone is in the closed state, it wakes up regularly at the first scanning frequency, and continuously scans the target broadcast signal for a certain period of time; for example, when the earphone is in the closed state, it wakes up every 20 minutes and scans for 15 seconds.
示例性的,上述第一目标广播信号可以为包含加密协议的加密广播。该加密协议可以为耳机与电子设备首次配对连接时约定生成的;该第一目标广播信号中可以包含发出广播的电子设备的标识信息,例如手机B的型号或名称等。Exemplarily, the above-mentioned first target broadcast signal may be an encrypted broadcast including an encryption protocol. The encryption protocol may be generated by agreement when the headset and the electronic device are paired and connected for the first time; the first target broadcast signal may include identification information of the electronic device that sends out the broadcast, such as the model or name of mobile phone B, and the like.
在一些实施例中,耳机在关盒状态扫描到第一目标广播信号后,可以确定手机B在可连接范围内并处于可连接状态。耳机在开盒时可以基于扫描到的第一目标广播信号首先向手机B发送通信连接信号,向手机B发起回连请求,与手机B建立通信连接。In some embodiments, after the earphone scans the first target broadcast signal in the closed state, it can be determined that the mobile phone B is within a connectable range and is in a connectable state. When the earphone is unpacked, it can first send a communication connection signal to the mobile phone B based on the scanned first target broadcast signal, initiate a connection back request to the mobile phone B, and establish a communication connection with the mobile phone B.
示例性的,耳机在关盒状态以及第一电子设备在与耳机断开连接时可以进入低功耗的蓝牙工作状态,例如耳机在关盒状态时进入低功耗蓝牙的扫描状态,第一电子设备在与耳机断开连接时进入低功耗蓝牙的信号广播状态。Exemplarily, when the earphone is in the closed state and the first electronic device is disconnected from the earphone, it can enter the Bluetooth low energy working state, for example, when the earphone is in the closed state The device enters the signal broadcast state of Bluetooth low energy when it is disconnected from the headset.
示例性的,第一电子设备可以是手机、平板电脑或笔记本电脑等可无线通信的终端。第一电子设备的第一广播频率可以基于用户的使用时间段的习惯进行设定,例如白天开启低功耗的广播,晚上则关闭;又或者针对白天不同的时间段设置不同的广播频率等。Exemplarily, the first electronic device may be a wireless communication terminal such as a mobile phone, a tablet computer, or a notebook computer. The first broadcast frequency of the first electronic device can be set based on the user's usage time period habits, for example, the low-power broadcast is turned on during the day and turned off at night; or different broadcast frequencies are set for different time periods during the day.
在一种可能的实现方式中,上述回连机制同样适用于手机A,即第一电子设备也可以是历史连接信息中连接顺序排在首位的电子设备,耳机在关盒状态扫描到手机A发出的目标广播信号后,在开盒后优先与手机A建立回连;且在没有扫描到手机B的目标广播信号时,在与手机A建立回连成功后,不会再去尝试回连手机B,在与手机A回连成功后,直接进入作业状态,无需再次进行与手机B回连的判断。即无论耳机当前扫描到的待连接设备为原固有连接顺序中的在先或在后的电子设备,在耳机关盒状态仅扫描到一个电子设备的目标广播信号时,仅优先并且只与扫描到的该一个电子设备建立回连,回连成功后,不再判断另一个电子设备的回连状态。如图7所示,在电子设备(手机B)的耳机设置显示界面,双设备连接控制界面,仅显示自己一个与耳机连接的设备;或者如图8所示,耳机与多个电子设备建立过配对的首次连接,在回连时也可以只高亮显示自己一个与耳机建立通信连接的设备(手机B),同时可以显示其他连接过的设备(手机A和平板iPad),但可以通过灰度显示表示其他连接过的设备(手机A和平板iPad)当前处于未连接状态。In a possible implementation, the above connection-back mechanism is also applicable to mobile phone A, that is, the first electronic device may also be the electronic device that ranks first in the connection sequence in the historical connection information, and the earphone scans when the mobile phone A is in the closed state. After opening the box, it will first establish a connection back with mobile phone A after opening the box; and when the target broadcast signal of mobile phone B is not scanned, it will not try to connect back to mobile phone B after successfully establishing a connection with mobile phone A , after the successful reconnection with mobile phone A, it will directly enter the working state, and there is no need to judge the reconnection with mobile phone B again. That is, regardless of whether the device to be connected currently scanned by the headset is the first or last electronic device in the original inherent connection sequence, when the headset is closed and only scans the target broadcast signal of one electronic device, it will only be prioritized and only connected to the scanned The one electronic device establishes a connection back, and after the connection back is successful, the connection back status of the other electronic device is no longer judged. As shown in Figure 7, on the headset setting display interface of the electronic device (mobile phone B), only the device connected to the headset is displayed on the dual-device connection control interface; or as shown in Figure 8, the headset has been established with multiple electronic devices For the first connection of pairing, you can only highlight one of your own devices (mobile phone B) that has established a communication connection with the headset when you connect back, and you can also display other connected devices (mobile phone A and tablet iPad), but you can pass the grayscale The display indicates that other connected devices (mobile phone A and tablet iPad) are currently not connected.
通过上述方式,耳机与电子设备断开连接后,耳机在关盒状态扫描到手机B发出的目标广播信号,可以基于该目标广播信号确定手机B的状态,进而在开盒后可以及时向手机B发起回连请求,无需基于历史连接信息中与其他电子设备连接的顺序确认手机B是否为第一位连接的顺序,也无需等待与历史连接信息中其他电子设备进行回连判断的时间,从而在只有一个电子设备在可连接范围并处于可连接状态时,可以大大提高双连接耳机的回连速度,且在建立回连后,可以立刻进入工作状态,无需等待与其他电子设备回连的时间等,提高建立回连后耳机进入业务状态的响应效率。Through the above method, after the headset is disconnected from the electronic device, the headset scans the target broadcast signal sent by mobile phone B in the closed state, and the status of mobile phone B can be determined based on the target broadcast signal, and then the mobile phone B can be sent to mobile phone B in time after the box is opened. When initiating a connection back request, there is no need to confirm whether mobile phone B is the first connection order based on the order of connection with other electronic devices in the historical connection information, and there is no need to wait for the time to judge the connection back with other electronic devices in the historical connection information. When only one electronic device is in the connectable range and in a connectable state, the connection speed of the dual-connection headset can be greatly improved, and after the connection is established, it can immediately enter the working state without waiting for the time to connect back to other electronic devices, etc. , to improve the response efficiency of the headset entering the business state after the connection is established.
实施例二Embodiment two
如图4所示,该耳机连接系统还可以包括耳机、第一电子设备及第二电子设备;其中,第二电子设备在与耳机断开连接后,也可以发出低功耗蓝牙信号,即第二目标广播信号,该第二目标广播信号可以包含第二加密协议以及第二电子设备的设备标识,例如设备型号或名称等信息。下面以第一电子设备为手机B、第二电子设备为手机A为例进行说明。As shown in Figure 4, the earphone connection system may also include an earphone, a first electronic device, and a second electronic device; wherein, after the second electronic device is disconnected from the earphone, it may also send a low-power bluetooth signal, that is, the first Two target broadcast signals, the second target broadcast signal may include the second encryption protocol and the device identification of the second electronic device, such as device model or name and other information. In the following, the mobile phone B as the first electronic device and the mobile phone A as the second electronic device are used as an example for illustration.
示例性的,手机B以第一广播频率发出第一目标广播信号,手机A以第二广播频率发出第二目标广播信号;第一广播频率与第二广播频率可以为相同的广播频率,也可以为不同的广播频率;耳机在关盒状态以第一扫描频率扫描目标广播信号。Exemplarily, mobile phone B sends a first target broadcast signal with a first broadcast frequency, and mobile phone A sends a second target broadcast signal with a second broadcast frequency; the first broadcast frequency and the second broadcast frequency may be the same broadcast frequency, or may be are different broadcasting frequencies; the earphone scans the target broadcasting signal at the first scanning frequency in the closed state.
如图4所示,在当前一定时间段内,手机B对应的实线表示为在耳机的可扫描范围内发出的目标广播信号;手机A对应的虚线部分则不在耳机的可扫描范围内发出的目标广播信号,实线部分对应的为在耳机的可扫描范围内发出的目标广播信号,即实线部分对应耳机在关盒状态可扫描到的目标广播信号,虚线部分对应的为耳机扫描不到的目标广播信号。As shown in Figure 4, in the current certain period of time, the solid line corresponding to mobile phone B represents the target broadcast signal sent within the scannable range of the earphone; the dotted line part corresponding to mobile phone A is not sent within the scannable range of the earphone The target broadcast signal, the solid line part corresponds to the target broadcast signal sent within the scannable range of the earphone, that is, the solid line part corresponds to the target broadcast signal that the earphone can scan in the closed state, and the dotted line part corresponds to the target broadcast signal that the earphone cannot scan target broadcast signal.
在一种可能的实现方式中,耳机在关盒状态的扫描过程中,还可以记录首次扫描到目标信号的时间节点,或者通过计数器记录扫描到目标信号的次数或频次。例如在当前一定时间段内,耳机可以记录在关盒状态首次扫描到的手机B的时间节点,并基于该时间节点确定开盒后首先向手机B发起回连请求;或者记录扫描过程中扫描到的目标广播信号的次数或频次,例如手机B一直处于耳机的可扫描范围内,则可以统计到手机B发出的5次目标广播信号,而手机A并没有一直在耳机的可扫描范围内,耳机可能只扫描到两次手机A发出的目标广播信号;基于扫描到的目标广播信号的次数确定手机B为状态稳定的待连接设备,在开盒后首先向手机B发起回连请求,即耳机向手机B首先发出通信连接信号,与手机B先建立回连,回连成功后,再向手机A发起回连请求,与手机A建立通信连接。In a possible implementation manner, during the scanning process of the earphone in the closed state, the time node when the target signal is scanned for the first time may also be recorded, or the number or frequency of the target signal scanned is recorded by a counter. For example, within a certain period of time, the headset can record the time node of mobile phone B scanned for the first time in the off-box state, and determine based on this time node to initiate a connection back request to mobile phone B after opening the box; or record the time node scanned during the scanning process. The number or frequency of the target broadcast signal, for example, mobile phone B is always within the scannable range of the earphone, then you can count 5 target broadcast signals sent by mobile phone B, while mobile phone A is not always within the scannable range of the earphone, the earphone The target broadcast signal sent by mobile phone A may only be scanned twice; based on the number of scanned target broadcast signals, it is determined that mobile phone B is a device to be connected in a stable state. Mobile phone B first sends out a communication connection signal, establishes a connection back with mobile phone B first, and then initiates a connection back request to mobile phone A to establish a communication connection with mobile phone A after the connection is successful.
示例性的,耳机内还可以设置扫描到目标广播信号的次数的阈值,当未达到该阈值,即使在关盒状态扫描到相应的目标广播信号,也不进行回连;如图4所示,如果耳机只扫描到手机A的一次目标广播信号,次数未达到阈值,则可能手机A仅在耳机的可连接范围内出现了一下又离开的场景,因此仅基于扫描到的手机B发出的目标广播信号,优先并且只与手机B建立回连;从而保证回连及时性的同时,保证回连的可靠性,降低无效回连的概率以及无效回连造成的耗时。Exemplarily, the headset can also set a threshold for the number of times the target broadcast signal is scanned. When the threshold is not reached, even if the corresponding target broadcast signal is scanned in the off-box state, no reconnection is performed; as shown in Figure 4, If the headset only scans the target broadcast signal of mobile phone A once, and the number of times does not reach the threshold, it is possible that mobile phone A only appears in the connectable range of the headset and then leaves the scene, so it is only based on the scanned target broadcast from mobile phone B The signal is prioritized and only establishes a connection with mobile phone B; thereby ensuring the timeliness of the connection and at the same time ensuring the reliability of the connection, reducing the probability of invalid connection and the time-consuming caused by invalid connection.
示例性的,耳机在开盒时,基于扫描到第一目标广播信号向第一电子设备发送通信连接信号,或者基于扫描到的第二目标广播信号向第二电子设备发送通信连接信号,分别与第一电子设备或第二电子设备建立通信连接。当耳机与多个电子设备建立过配对连接,第一电子设备和第二电子设备为多个电子设备中的其中两个,在耳机扫描到第一目标广播信号或第二目标广播信号时,可以只与两个中的一个电子设备建立回连,或者基于扫描到的目标信号的状态分别与两个电子设备建立回连。Exemplarily, when the headset is unpacked, it sends a communication connection signal to the first electronic device based on scanning the first target broadcast signal, or sends a communication connection signal to the second electronic device based on the scanned second target broadcast signal, respectively. The first electronic device or the second electronic device establishes a communication connection. When the headset has established a pairing connection with multiple electronic devices, and the first electronic device and the second electronic device are two of the multiple electronic devices, when the headset scans the first target broadcast signal or the second target broadcast signal, it can Establish a return connection with only one of the two electronic devices, or establish a return connection with two electronic devices based on the status of the scanned target signal.
如图8所示的,在电子设备(手机B)的耳机设置显示界面,双设备连接控制界面,通过高亮显示两个与耳机连接的设备(手机A和手机B,手机B作为优先连接),同时还可以显示其他连接过的设备,但通过灰度显示表示其他连接过的设备当前处于未连接状态,如图8中所示的平板iPad。As shown in Figure 8, on the headset setting display interface of the electronic device (mobile phone B), the dual-device connection control interface, by highlighting two devices connected to the headset (mobile phone A and mobile phone B, mobile phone B is the priority connection) , and other connected devices can also be displayed at the same time, but the grayscale display indicates that other connected devices are currently not connected, as shown in FIG. 8 , the tablet iPad.
需要说明的是,在耳机与电子设备回连成功后,耳机可以清除该次回连时记录的时间节点或记录的扫描到的次数等信息;或者在一次连接结束,即耳机与电子设备断开连接回到关盒状态后,耳机可以清除上一次回连时记录的时间节点或记录的扫描到的次数等信息;并在下一次关盒状态扫描到目标广播信号时开始重新记录。It should be noted that after the headset is successfully connected back to the electronic device, the headset can clear the information such as the time node or the number of times of scanning recorded during the connection back; or after a connection ends, that is, the headset is disconnected from the electronic device After returning to the off-box state, the headset can clear the time node or the number of scanned times recorded during the last connection back; and start recording again when the target broadcast signal is scanned in the next off-box state.
通过上述方式,耳机无需基于历史连接信息中的固有的连接顺序与可连接的电子设备建立回连,为了降低由于状态不确定的电子设备而延长的回连时间的概率,可以基于在关盒状态扫描到的目标广播信号的状态,确定优先连接的电子设备,提高耳机与电子设备回连的及时性及可靠性。Through the above method, the headset does not need to establish a connection back with the electronic device that can be connected based on the inherent connection order in the historical connection information. The status of the scanned target broadcast signal determines the electronic device that is connected with priority, and improves the timeliness and reliability of the connection between the earphone and the electronic device.
基于上述实施例一和实施例二的实现方式,耳机作为扫描端,以第一扫描频率,定时醒来扫描一段时间,若以第一扫描频率未扫描到目标广播信号,则降低扫描频率,或者缩短一次扫描的时长,以降低频率后的第二扫描频率或者缩短一次扫描时长的扫描时间段继续扫描,以节省耳机的功耗。Based on the implementation of the first and second embodiments above, the earphone is used as the scanning end, and wakes up regularly at the first scanning frequency to scan for a period of time. If the target broadcast signal is not scanned at the first scanning frequency, then reduce the scanning frequency, or The duration of one scan is shortened, and the scan is continued with the second scan frequency after the frequency is reduced or the scan time period of one scan is shortened, so as to save the power consumption of the earphone.
然后介绍耳机作为广播端,电子设备作为扫描端,使得耳机与电子设备实现回连的过程。Then introduce the earphone as the broadcasting end, and the electronic device as the scanning end, so that the earphone and the electronic device realize the process of connecting back.
实施例三Embodiment three
如图5所示,该耳机连接系统包括耳机和第一电子设备(以下以手机B为例进行描述)。其中,耳机在关盒状态,以第三广播频率发出第一目标广播信号,例如,每10秒发送一个低功耗蓝牙的第一目标广播信号;该目标广播信号可以包含耳机的设备标识,例如耳机的型号或名称等信息。手机B在与耳机断开连接后,以第三扫描频率定时唤醒扫描机制,持续扫描一定时间的广播信号;例如,第一电子设备与耳机断开连接时,每20分钟唤醒扫描机制,扫描15秒。As shown in FIG. 5 , the earphone connection system includes an earphone and a first electronic device (hereinafter, a mobile phone B is taken as an example for description). Wherein, the headset is in the closed state, and sends the first target broadcast signal with the third broadcast frequency, for example, sending a first target broadcast signal of Bluetooth low power consumption every 10 seconds; the target broadcast signal may contain the device identification of the headset, for example Information such as the model or name of the headset. After the mobile phone B is disconnected from the earphone, it wakes up the scanning mechanism regularly at the third scanning frequency, and continuously scans broadcast signals for a certain period of time; for example, when the first electronic device is disconnected from the earphone, it wakes up the scanning mechanism every 20 minutes and scans for 15 Second.
示例性的,当手机B以第三扫描频率扫描到耳机的目标广播信号后,提高扫描频率,以第四扫描频率定时唤醒扫描机制,继续扫描,在耳机开盒发出开盒广播信号时,以便手机B能够快速扫描到该开盒广播信号,及时发现耳机开盒状态,主动向耳机发送通信连接信号,向耳机发起回连请求,并在建立通信连接后,耳机向手机B反馈回连成功的信息,进而开始进入业务状态。Exemplarily, when the mobile phone B scans the target broadcast signal of the earphone at the third scanning frequency, increase the scanning frequency, wake up the scanning mechanism regularly at the fourth scanning frequency, and continue scanning. Mobile phone B can quickly scan the unboxing broadcast signal, discover the unpacking status of the earphone in time, actively send a communication connection signal to the earphone, initiate a connection back request to the earphone, and after the communication connection is established, the earphone will report back to mobile phone B successfully. Information, and then start to enter the business state.
在一种可能的实现方式中,耳机在关盒状态,以第三广播频率发出包含第三加密协议的第三目标广播信号;第一电子设备在扫描到第三目标广播信号后,基于第三加密协议在扫描到开盒广播信号时向耳机发送通信连接信号,与耳机建立通信连接。In a possible implementation manner, the earphone sends out a third target broadcast signal containing a third encryption protocol at a third broadcast frequency in the closed state; after the first electronic device scans the third target broadcast signal, based on the third The encryption protocol sends a communication connection signal to the earphone to establish a communication connection with the earphone when an open-box broadcast signal is scanned.
示例性的,与实施例一和实施例二相同的是,耳机广播的目标广播信号同样为包含加密协议的加密广播信号,电子设备在扫描到目标广播信号后,可以确定耳机位于可连接的范围内,并提高扫描频率,以及时发现耳机在开盒时发出的开盒广播信号,快速主动与耳机建立回连。Exemplarily, the same as Embodiment 1 and Embodiment 2, the target broadcast signal broadcast by the headset is also an encrypted broadcast signal containing an encryption protocol, and the electronic device can determine that the headset is within a connectable range after scanning the target broadcast signal and increase the scanning frequency to timely discover the unpacking broadcast signal sent by the headset when it is unpacked, and quickly and proactively establish a connection with the headset.
示例性的,第三目标广播信号所包含的第三加密协议可以为耳机与电子设备首次配对连接时,生成的加密协议,即耳机可以广播包含该第三加密协议的第三目标广播信号,从而第一电子设备可以区分扫描到的其他广播信号,第一电子设备只有在扫描到包含该第三加密协议的第三目标广播信号后,确定可连接的耳机在附近,并待耳机开盒后,基于扫描到的开盒广播信号做出响应,主动向耳机发起回连。Exemplarily, the third encryption protocol included in the third target broadcast signal may be an encryption protocol generated when the headset and the electronic device are paired and connected for the first time, that is, the headset may broadcast the third target broadcast signal containing the third encryption protocol, thereby The first electronic device can distinguish other scanned broadcast signals, and only after scanning the third target broadcast signal containing the third encryption protocol, the first electronic device determines that the earphones that can be connected are nearby, and after the earphones are unpacked, Respond based on the scanned open-box broadcast signal, and actively initiate a connection back to the headset.
需要说明的是,当手机A处于扫描状态,与手机B的实现原理相同,即上述回连机制同样适用于手机A。第一电子设备也可以是历史连接信息中连接顺序排在首位的电子设备,手机A扫描到耳机在关盒状态发出的目标广播信号后,提高扫描频率,并在扫描到耳机的开盒广播信号后,主动与耳机建立回连;且在没有扫描到手机B的目标广播信号时,在手机A与耳机建立回连成功后,耳机也不会再去尝试回连手机B,在与手机A回连成功后,直接进入作业状态,无需再次进行与手机B回连的判断;由于扫描过程中没有手机B的参与,自然手机B也不会主动发起回连请求;缩短了耳机与电子设备的回连时间,提高了耳机与电子设备的回连效率。即无论执行扫描动作的电子设备为原固有连接顺序中的在先或在后的电子设备,在耳机关盒状态仅存在一个电子设备扫描到目标广播信号时,可以仅由该一个电子设备主动向耳机发起回连请求,并在回连成功后,不再判断另一个电子设备的回连状态即可进入业务状态。如图7所示,在电子设备(手机B)的耳机设置显示界面,双设备连接控制界面,仅显示自己一个与耳机连接的设备;或者如图8所示,耳机与多个电子设备建立过配对的首次连接,在回连时也可以只高亮显示自己一个与耳机建立通信连接的设备(手机B),同时可以显示其他连接过的设备(手机A和平板iPad),但可以通过灰度显示表示其他连接过的设备(手机A和平板iPad)当前处于未连接状态。It should be noted that when the mobile phone A is in the scanning state, the implementation principle is the same as that of the mobile phone B, that is, the above connection mechanism is also applicable to the mobile phone A. The first electronic device may also be the electronic device with the highest connection order in the historical connection information. After the mobile phone A scans the target broadcast signal sent by the earphone in the closed state, it increases the scanning frequency, and scans the open-box broadcast signal of the earphone. After that, take the initiative to establish a connection back with the headset; and when the target broadcast signal of mobile phone B is not scanned, after the connection between mobile phone A and the headset is successfully established, the headset will not try to connect back to mobile phone B again. After the connection is successful, it will directly enter the working state, and there is no need to judge the connection with mobile phone B again; since mobile phone B does not participate in the scanning process, mobile phone B will not initiate a connection request; shortening the connection between the earphone and the electronic device The connection time is improved, and the efficiency of the connection between the earphone and the electronic device is improved. That is to say, regardless of whether the electronic device performing the scanning action is the first or the last electronic device in the original intrinsic connection sequence, when there is only one electronic device that scans the target broadcast signal when the headset is closed, only this one electronic device can actively send the broadcast signal to the target broadcast signal. The headset initiates a connection-back request, and after the connection-back is successful, it enters the business state without judging the connection-back status of another electronic device. As shown in Figure 7, on the headset setting display interface of the electronic device (mobile phone B), only the device connected to the headset is displayed on the dual-device connection control interface; or as shown in Figure 8, the headset has been established with multiple electronic devices For the first connection of pairing, you can only highlight one of your own devices (mobile phone B) that has established a communication connection with the headset when you connect back, and you can also display other connected devices (mobile phone A and tablet iPad), but you can pass the grayscale The display indicates that other connected devices (mobile phone A and tablet iPad) are currently not connected.
通过上述方式,在第一电子设备基于第三扫描频率扫描到耳机的第三目标广播信号后,提高扫描频率,继续以第四扫描频率扫描,从而在耳机开盒时,可以更加及时地扫描到耳机的开盒广播信号,并及时向耳机发送通信连接信号,与耳机快速建立回连,无需每次回连均对双连接的设备进行判断而增加回连时长。Through the above method, after the first electronic device scans the third target broadcast signal of the earphone based on the third scanning frequency, it increases the scanning frequency and continues to scan at the fourth scanning frequency, so that when the earphone is unpacked, it can be scanned in a more timely manner. When the headset is opened, the broadcast signal is sent, and the communication connection signal is sent to the headset in time, and the connection with the headset is quickly established, without the need to judge the dual-connection device for each connection and increase the connection time.
实施例四Embodiment Four
如图6所示,该耳机连接系统还可以包括耳机、第一电子设备及第二电子设备;其中,第二电子设备在与耳机断开连接后,也可以基于低功耗蓝牙扫描耳机在关盒状态发出的目标广播信号,该目标广播信号可以包含加密协议以及耳机的设备标识,例如耳机型号或名称等信息。下面以第一电子设备为手机B、第二电子设备为手机A为例进行说明。As shown in Figure 6, the earphone connection system may also include an earphone, a first electronic device, and a second electronic device; wherein, after the second electronic device is disconnected from the earphone, it may also scan the earphone when the earphone is turned off based on low-power bluetooth. The target broadcast signal sent by the box state, the target broadcast signal may contain the encryption protocol and the device identification of the headset, such as the model or name of the headset and other information. In the following, the mobile phone B as the first electronic device and the mobile phone A as the second electronic device are used as an example for illustration.
在一种可能的实现方式中,耳机在关盒状态,以第三广播频率发出包含期望连接顺序的第三目标广播信号;第一电子设备与第二电子设备在扫描到第三目标广播信号,并在耳机开盒后,基于期望连接顺序向耳机发送通信连接信号,分别与所述耳机建立通信连接。In a possible implementation, the headset is in the closed state, and sends out a third target broadcast signal containing the desired connection sequence at a third broadcast frequency; when the first electronic device and the second electronic device scan the third target broadcast signal, And after the earphones are unpacked, a communication connection signal is sent to the earphones based on the desired connection sequence, and communication connections are respectively established with the earphones.
示例性的,针对双连接的耳机,上述包含第三加密协议的第三目标广播信号中还可以携带耳机的期望连接顺序,该期望连接顺序可以基于用户使用耳机的时间习惯或场景进行设定,例如可以在耳机与电子设备在首次进行配对连接或在电子设备与耳机的连接状态时,基于电子设备对耳机的期望连接顺序进行设定,从而耳机接收通过电子设备传输的期望连接顺序的信息,并按对应的时间或场景进行设定;从而在关盒状态时,耳机可以基于对应的时间或场景发出带有期望连接顺序的目标广播信号。Exemplarily, for dual-connection earphones, the above-mentioned third target broadcast signal including the third encryption protocol may also carry the expected connection order of the earphones, and the expected connection order may be set based on the user's time habit or scene of using the earphones, For example, when the headset and the electronic device are paired and connected for the first time or when the electronic device and the headset are connected, the desired connection sequence of the headset can be set based on the electronic device, so that the headset receives the information of the desired connection sequence transmitted by the electronic device, And set according to the corresponding time or scene; so that when the box is closed, the earphone can send out the target broadcast signal with the desired connection sequence based on the corresponding time or scene.
示例性的,电子设备在扫描到耳机广播的目标广播信号后,还可以识别出该目标广播信号中的期望连接顺序,并在扫描到开盒广播信号后基于该期望连接顺序与耳机建立回连。Exemplarily, after the electronic device scans the target broadcast signal broadcast by the earphone, it can also identify the expected connection sequence in the target broadcast signal, and establish a connection back with the earphone based on the expected connection sequence after scanning the open-box broadcast signal .
示例性的,该期望连接顺序中可以包含一个或两个待连接设备的标识。Exemplarily, the expected connection sequence may include the identifiers of one or two devices to be connected.
如图6所示,第一种情况,当该期望连接顺序包含一个待连接设备的标识时,当与该标识对应的电子设备扫描到该目标广播信号后,基于该期望连接顺序快速与耳机建立回连,耳机不再等待另一个电子设备的回连,而直接与已回连成功的电子设备进入工作状态;从而提高耳机与电子设备回连的效率。As shown in Figure 6, in the first case, when the expected connection sequence contains an identifier of a device to be connected, after the electronic device corresponding to the identifier scans the target broadcast signal, it quickly establishes a connection with the earphone based on the expected connection sequence Connect back, the headset no longer waits for another electronic device to connect back, but directly enters the working state with the electronic device that has been successfully connected back; thus improving the efficiency of the connection between the headset and the electronic device.
如图6所示,第二种情况,当该期望连接顺序包含两个待连接设备的标识,该两个待连接设备的标识并带有用于指示先后连接的序号;当电子设备扫描到该目标广播信号并识别出目标广播信号中的先后连接的序号后,基于该期望连接顺序中的序号依次向耳机建立回连;序号排在首位的电子设备在收到开盒广播信号后,基于目标广播信号中的期望连接顺序优先向耳机主动发起回连。As shown in Figure 6, in the second case, when the expected connection sequence contains the identifications of two devices to be connected, the identifications of the two devices to be connected have serial numbers used to indicate successive connections; when the electronic device scans the target After broadcasting the signal and identifying the sequence numbers of successive connections in the target broadcast signal, establish a connection back to the earphones based on the sequence numbers in the expected connection sequence; after receiving the unpacking broadcast signal, the electronic device with the first serial number broadcasts The expected connection order in the signal prioritizes the initiative to initiate a connection back to the headset.
示例性的,若期望连接顺序中优先建立通信连接的为手机B,则手机B在扫描到耳机开盒广播信号后,基于该期望连接顺序主动回连耳机,并接收耳机反馈的回连成功的信息;同时,耳机会向手机A发起回连,并接收手机A反馈的回连成功的信息后开始进入业务状态;或者耳机向手机B反馈回连成功的信息后,向手机A反馈与手机B回连成功的信息,手机A再主动向耳机发起回连请求,并在建立回连成功后,耳机向手机A反馈回连成功的信息,进入业务状态。Exemplarily, if the mobile phone B is the first to establish a communication connection in the desired connection sequence, after scanning the broadcast signal of the headset opening box, the mobile phone B actively reconnects the headset based on the desired connection sequence, and receives feedback from the headset that the connection is successful. At the same time, the earphone will initiate a connection back to mobile phone A, and start to enter the business state after receiving the information of successful connection back from mobile phone A; When the connection back is successful, mobile phone A initiates a connection back request to the headset, and after the connection is successfully established, the headset feeds back the connection success information to mobile phone A and enters the business state.
需要说明的是,上述实施例四仅代表一种可能实现的双连接的应用场景;针对耳机中存储有期望连接顺序并在关盒状态发出低功耗蓝牙广播时的回连机制。该回连机制中的期望连接顺序可以为电子设备与耳机连接状态时基于使用时间或应用场景设定并存储的,例如早上开车上班的时间段,仅需要耳机与一台电子设备(例如手机B)连接,则基于上述回连机制,耳机发出的带有期望连接顺序的目标广播信号则可以仅包含手机B的设备标识信息;若晚上下班回到家,在用户使用耳机时,可能需要同时连接平板和手机两台电子设备,耳机发出的带有期望连接顺序的目标广播信号则可以包含手机和平板的设备标识并进行了排序,例如手机优先连接,平板后连接;对应此时间段则可以基于上述回连机制快速实现耳机与电子设备的回连。It should be noted that the fourth embodiment above only represents a possible dual-connection application scenario; it is aimed at the reconnection mechanism when the desired connection sequence is stored in the headset and the low-power Bluetooth broadcast is sent out in the closed state. The expected connection sequence in the connection-back mechanism can be set and stored based on usage time or application scenarios when the electronic device is connected to the earphone. For example, when driving to work in the morning, only the earphone and an electronic device (such as mobile phone B ) connection, based on the above connection mechanism, the target broadcast signal with the expected connection sequence sent by the earphone may only contain the device identification information of mobile phone B; if the user returns home from get off work at night, the user may need to connect to the tablet at the same time when using the earphone For two electronic devices, the mobile phone and the mobile phone, the target broadcast signal with the expected connection order sent by the earphone can contain the device identification of the mobile phone and the tablet and sort them, for example, the mobile phone is connected first, and the tablet is connected after; the corresponding time period can be based on the above The connection mechanism quickly realizes the connection between the earphone and the electronic device.
通过上述方式,无需耳机每次回连电子设备时均进行双设备回连状态的判断,可以提前预设耳机回连的期望连接顺序,在相适应的应用场景或时间段实现耳机与电子设备快速的回连,降低出现无效回连的概率,提高耳机与设备的回连效率,提升用户使用的体验感。Through the above method, it is not necessary to judge the dual-device connection status every time the headset is connected back to the electronic device, and the expected connection sequence of the headset connection can be preset in advance, and the headset and the electronic device can be quickly connected in a suitable application scenario or time period. Reconnection reduces the probability of invalid reconnection, improves the efficiency of reconnection between earphones and devices, and improves user experience.
请参见图9,图9为本申请实施例提供的耳机连接方法的实现流程示意图。如图9所示,该耳机连接方法的执行主体为耳机,该方法实现原理与上述实施例相同,此处不再赘述。该耳机连接方法的实现方式可以包括以下步骤:Please refer to FIG. 9 . FIG. 9 is a schematic flowchart of an implementation of a method for connecting an earphone provided in an embodiment of the present application. As shown in FIG. 9 , the headphone connection method is executed by the headphone, and the implementation principle of the method is the same as that of the above-mentioned embodiment, so details are not repeated here. The implementation of the headset connection method may include the following steps:
S901,在关盒状态,耳机以第一扫描频率扫描第一目标广播信号,该第一目标广播信号为第一电子设备以第一广播频率发出的广播信号;S901. In the box-closed state, the earphone scans a first target broadcast signal at a first scanning frequency, where the first target broadcast signal is a broadcast signal sent by a first electronic device at a first broadcast frequency;
S902,在开盒时,耳机基于扫描到的第一目标广播信号向第一电子设备通信连接信号,与第一电子设备建立通信连接。S902. When the box is opened, the earphone sends a communication connection signal to the first electronic device based on the scanned first target broadcast signal, and establishes a communication connection with the first electronic device.
在一种可能的实现方式中,第一目标广播信号包括第一加密协议;基于扫描到第一目标广播信号向第一电子设备发送通信连接信号,与第一电子设备建立通信连接,包括:In a possible implementation, the first target broadcast signal includes a first encryption protocol; sending a communication connection signal to the first electronic device based on scanning the first target broadcast signal, and establishing a communication connection with the first electronic device, including:
基于扫描到的第一目标广播信号中的第一加密协议,耳机向第一电子设备发送通信连接信号,与第一电子设备建立通信连接。Based on the first encrypted protocol in the scanned first target broadcast signal, the earphone sends a communication connection signal to the first electronic device to establish a communication connection with the first electronic device.
在一种可能的实现方式中,在开盒之前,该方法还包括:In a possible implementation, before unpacking, the method further includes:
耳机在关盒状态以第一扫描频率扫描第二目标广播信号,第二目标广播信号为第二电子设备以第二广播频率发出的;The earphone scans the second target broadcast signal at the first scanning frequency in the closed state, and the second target broadcast signal is sent by the second electronic device at the second broadcast frequency;
在开盒时,耳机基于扫描到第一目标广播信号向第一电子设备发送通信连接信号,或者基于扫描到的第二目标广播信号向第二电子设备发送通信连接信号,与第一电子设备或第二电子设备建立通信连接。When the box is opened, the earphone sends a communication connection signal to the first electronic device based on the scanned first target broadcast signal, or sends a communication connection signal to the second electronic device based on the scanned second target broadcast signal, and communicates with the first electronic device or The second electronic device establishes a communication connection.
在一种可能的实现方式中,该方法还包括:In a possible implementation, the method also includes:
耳机在关盒状态,若以第一扫描频率未扫描到目标广播信号,则以第二扫描频率继续扫描,第二扫描频率小于第一扫描频率。When the earphone is in the closed state, if the target broadcast signal is not scanned at the first scanning frequency, the scanning is continued at the second scanning frequency, and the second scanning frequency is lower than the first scanning frequency.
请参见图10,图10为本申请实施例提供的耳机连接方法的实现流程示意图。如图10所示,该耳机连接方法的执行主体为电子设备,该方法实现原理与上述实施例相同,此处不再赘述。该耳机连接方法的实现方式可以包括以下步骤:Please refer to FIG. 10 . FIG. 10 is a schematic diagram of an implementation flow of the earphone connection method provided by the embodiment of the present application. As shown in FIG. 10 , the execution subject of the headphone connection method is an electronic device, and the implementation principle of the method is the same as that of the above-mentioned embodiment, and details will not be repeated here. The implementation of the headset connection method may include the following steps:
S1001,电子设备以预设的广播频率发出目标广播信号;S1001, the electronic device sends out a target broadcast signal with a preset broadcast frequency;
S1002,电子设备接收耳机在开盒后发送的通信连接信号,并基于通信连接信号与耳机建立通信连接,通信连接信号为耳机在开盒时基于扫描到的目标广播信号发送的。S1002. The electronic device receives a communication connection signal sent by the earphone after unpacking, and establishes a communication connection with the earphone based on the communication connection signal. The communication connection signal is sent by the earphone based on the scanned target broadcast signal when unpacking.
请参见图11,图11为本申请实施例提供的耳机连接方法的实现流程示意图;如图11所示,该耳机连接方法的执行主体为耳机,该方法实现原理与上述实施例相同,此处不再赘述。该耳机连接方法的实现方式可以包括以下步骤:Please refer to Fig. 11, Fig. 11 is a schematic diagram of the implementation process of the earphone connection method provided by the embodiment of the present application; No longer. The implementation of the headset connection method may include the following steps:
S1101,在关盒状态,耳机以第三广播频率发出目标广播信号,目标广播信号用于指示电子设备在以第三扫描频率扫描到目标广播信号后,继续以第四扫描频率扫描;S1101, in the closed state, the earphone sends out a target broadcast signal with the third broadcast frequency, and the target broadcast signal is used to instruct the electronic device to continue scanning with the fourth scan frequency after scanning the target broadcast signal with the third scan frequency;
S1102,在开盒时,耳机发出开盒广播信号;S1102, when the box is opened, the headset sends out a broadcast signal for opening the box;
S1103,在开盒后,耳机接收电子设备基于扫描到的目标广播信号和开盒广播信号发送的通信连接信号,与电子设备建立通信连接;其中,第四扫描频率大于第三扫描频率。S1103. After unpacking, the earphone receives the communication connection signal sent by the electronic device based on the scanned target broadcast signal and the unpacking broadcast signal, and establishes a communication connection with the electronic device; wherein, the fourth scanning frequency is greater than the third scanning frequency.
在一种可能的实现方式中,该方法还包括:In a possible implementation, the method further includes:
在关盒状态,耳机以第三广播频率发出包含加密协议的目标广播信号;在开盒后,耳机接收电子设备在扫描到开盒广播信号后基于目标广播信号的加密协议发送的通信连接信号,与电子设备建立通信连接。In the closed state, the earphone sends out the target broadcast signal containing the encryption protocol at the third broadcast frequency; after the box is opened, the earphone receives the communication connection signal sent by the electronic device based on the encryption protocol of the target broadcast signal after scanning the open box broadcast signal, Establish a communication link with an electronic device.
请参见图12,图12为本申请实施例提供的耳机连接方法的实现流程示意图;如图12所示,该耳机连接方法的执行主体为电子设备,该方法实现原理与上述实施例相同,此处不再赘述。该耳机连接方法的实现方式可以包括以下步骤:Please refer to Figure 12. Figure 12 is a schematic diagram of the implementation flow of the earphone connection method provided by the embodiment of the present application; I won't repeat them here. The implementation of the headset connection method may include the following steps:
S1201,在与耳机断开连接后,电子设备以第三扫描频率扫描耳机在关盒状态以第三广播频率发出的目标广播信号;S1201. After the earphone is disconnected, the electronic device scans the target broadcast signal sent by the earphone at the third broadcast frequency in the closed state with the third scanning frequency;
S1202,在扫描到目标广播信号后,电子设备以第四扫描频率继续扫描;S1202. After scanning the target broadcast signal, the electronic device continues to scan with the fourth scanning frequency;
S1203,在耳机开盒后,电子设备基于扫描到的目标广播信号和开盒广播信号向耳机发送通信连接信号,与耳机建立通信连接。S1203. After the earphone is unpacked, the electronic device sends a communication connection signal to the earphone based on the scanned target broadcast signal and the unbox broadcast signal, and establishes a communication connection with the earphone.
在一种可能的实现方式中,目标广播信号包括加密协议;在耳机开盒后,电子设备基于扫描到的目标广播信号和开盒广播信号向耳机发送通信连接信号,与耳机建立通信连接,包括:In a possible implementation, the target broadcast signal includes an encryption protocol; after the earphone is unpacked, the electronic device sends a communication connection signal to the earphone based on the scanned target broadcast signal and the unpacked broadcast signal, and establishes a communication connection with the earphone, including :
在耳机开盒后,电子设备在扫描到开盒广播信号时基于目标广播信号中的加密协议向耳机发送通信连接信号,与耳机建立通信连接。After the earphone is unpacked, the electronic device sends a communication connection signal to the earphone based on the encryption protocol in the target broadcast signal when scanning the unpacked broadcast signal, and establishes a communication connection with the earphone.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
对应于上文实施例所述的耳机连接方法,图13、图14、图15和图16分别示出了本申请实施例提供的耳机连接装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the headphone connection method described in the above embodiments, Fig. 13, Fig. 14, Fig. 15 and Fig. 16 respectively show the structural block diagrams of the headphone connection device provided by the embodiment of the present application. Parts related to the embodiments of this application.
请参见图13,本申请实施例提供的耳机连接装置的结构框图。如图13所示,该耳机连接装置包括:Please refer to FIG. 13 , which is a structural block diagram of an earphone connection device provided by an embodiment of the present application. As shown in Figure 13, the headphone connection device includes:
第一扫描单元1301,用于在关盒状态,以第一扫描频率扫描第一目标广播信号,第一目标广播信号为第一电子设备以第一广播频率发出的广播信号;The
通信连接单元1302,用于在开盒时,基于扫描到的第一目标广播信号向第一电子设备发送通信连接信号,与第一电子设备建立通信连接。The
在一种可能的实现方式中,第一目标广播信号包括第一加密协议;通信连接单元1302,还用于基于扫描到的第一目标广播信号中的第一加密协议,向第一电子设备发送通信连接信号,与第一电子设备建立通信连接。In a possible implementation manner, the first target broadcast signal includes a first encryption protocol; the
在一种可能的实现方式中,在开盒之前,第一扫描单元1301,还用于耳机在关盒状态以第一扫描频率扫描第二目标广播信号,第二目标广播信号为第二电子设备以第二广播频率发出的;In a possible implementation, before opening the box, the
通信连接单元1302,还用于在开盒时,基于扫描到第一目标广播信号向第一电子设备发送通信连接信号,或者基于扫描到的第二目标广播信号向第二电子设备发送通信连接信号,与第一电子设备或第二电子设备建立通信连接。The
在一种可能的实现方式中,第一扫描单元1301,还用于在关盒状态,若以第一扫描频率未扫描到目标广播信号,则以第二扫描频率继续扫描,第二扫描频率小于第一扫描频率。In a possible implementation, the
请参见图14,本申请实施例提供的耳机连接装置的结构框图。如图14所示,该耳机连接装置包括:Please refer to FIG. 14 , which is a structural block diagram of an earphone connection device provided by an embodiment of the present application. As shown in Figure 14, the headphone connection device includes:
第一广播单元1401,用于以预设的广播频率发出目标广播信号;The
第一接收单元1402,用于接收耳机在开盒后发送的通信连接信号,并基于通信连接信号与耳机建立通信连接,通信连接信号为耳机在开盒时基于扫描到的目标广播信号发送的。The
请参见图15,本申请实施例提供的耳机连接装置的结构框图。如图15所示,该耳机连接装置包括:Please refer to FIG. 15 , which is a structural block diagram of an earphone connection device provided by an embodiment of the present application. As shown in Figure 15, the headphone connection device includes:
第二广播单元1501,用于在关盒状态,以第三广播频率发出目标广播信号,目标广播信号用于指示电子设备在以第三扫描频率扫描到目标广播信号后,继续以第四扫描频率扫描目标广播信号;The
第三广播单元1502,用于在开盒时,发出开盒广播信号;The
第二接收单元1503,用于在开盒后,接收电子设备基于扫描到的目标广播信号和开盒广播信号发送的通信连接信号,与电子设备建立通信连接;其中,第四扫描频率大于第三扫描频率。The
在一种可能的实现方式中,第二广播单元1501,还用于在关盒状态,以第三广播频率发出包含加密协议的目标广播信号;第二接收单元1503,还用于在开盒后,接收电子设备在扫描到开盒广播信号后基于目标广播信号的加密协议发送的通信连接信号,与电子设备建立通信连接。In a possible implementation, the
请参见图16,本申请实施例提供的耳机连接装置的结构框图。如图16所示,该耳机连接装置包括:Please refer to FIG. 16 , which is a structural block diagram of an earphone connection device provided by an embodiment of the present application. As shown in Figure 16, the headphone connection device includes:
第二扫描单元1601,用于在与耳机断开连接后,以第三扫描频率扫描耳机在关盒状态以第三广播频率发出的目标广播信号;在扫描到目标广播信号后,以第四扫描频率继续扫描目标广播信号;The
信号发送单元1602,用于在耳机开盒后,基于扫描到的目标广播信号和开盒广播信号向耳机发送通信连接信号,与耳机建立通信连接。The
在一种可能的实现方式中,目标广播信号包括加密协议;信号发送单元1602,还用于在耳机开盒后,在扫描到开盒广播信号时基于目标广播信号中的加密协议向耳机发送通信连接信号,与耳机建立通信连接。In a possible implementation, the target broadcast signal includes an encryption protocol; the
需要说明的是,上述回连机制中耳机与电子设备基于低功耗蓝牙的广播及扫描的过程在电子设备和耳机软件架构的应用层即可实现。It should be noted that the broadcasting and scanning process between the earphone and the electronic device based on Bluetooth low energy in the above connection mechanism can be realized at the application layer of the software architecture of the electronic device and the earphone.
通过本申请实施例,可以提前确定符合连接状态的可连接电子设备,无需基于历史连接信息对不确定的电子设备发起回连判断,而造成连接的耗时,提高耳机与电子设备回连的速度。Through the embodiment of the present application, it is possible to determine in advance the connectable electronic devices that meet the connection status, and there is no need to initiate a reconnection judgment for uncertain electronic devices based on historical connection information, which will result in time-consuming connection and increase the speed of reconnection between the earphone and the electronic device .
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat them here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
下面介绍本申请实施例所涉及的电子设备的硬件结构。The following describes the hardware structure of the electronic device involved in the embodiment of the present application.
图17示出了电子设备100的结构示意图。FIG. 17 shows a schematic structural diagram of the
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments,
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments,
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A,
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),低功耗蓝牙(BluetoothLowEnergy,BLT),全球导航卫星系统(globalnavigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The
其中,低功耗蓝牙BLT用于在与无线蓝牙耳机断开连接时,通过扫描或广播低功耗蓝牙信号,与耳机建立回连。Among them, the low-power Bluetooth BLT is used to establish a connection with the headset by scanning or broadcasting low-power Bluetooth signals when the wireless Bluetooth headset is disconnected.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC ,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system ,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The
ISP 用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The
NPU为神经网络(neural-network ,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D may be the USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The
下面介绍本申请实施例所涉及的耳机的硬件结构。The following describes the hardware structure of the earphone involved in the embodiment of the present application.
图18示出了耳机200的结构示意图。FIG. 18 shows a schematic structural diagram of the earphone 200 .
耳机200包括耳机机身部分210和壳体部分220。The earphone 200 includes an earphone body portion 210 and a housing portion 220 .
耳机机身部分210包括第一微处理器、第一通信模组、模式控制模组、麦克风、电源以及音频输出模组。The earphone body part 210 includes a first microprocessor, a first communication module, a mode control module, a microphone, a power supply and an audio output module.
其中,第一微处理器用于控制耳机机身210的运行状态。第一通信模组用于与电子设备建立无线通信连接,进行无线信号的传输。模式控制模组用于控制耳机的工作模式,例如降噪模式、透传模式以及测量体温模式等。麦克风用于在使用耳机通话时接收语音信息。电源为耳机机身210供电,通过与壳体部分220的电源接通,可以实现对耳机机身的充电。音频输出模组用于对传输的音频信号进行解码输出。Wherein, the first microprocessor is used to control the running state of the earphone body 210 . The first communication module is used to establish a wireless communication connection with the electronic device to transmit wireless signals. The mode control module is used to control the working mode of the headset, such as noise reduction mode, transparent transmission mode, and body temperature measurement mode. The microphone is used to receive voice messages when talking on the headset. The power supply supplies power to the earphone body 210 , and the earphone body can be charged by being connected to the power supply of the shell part 220 . The audio output module is used to decode and output the transmitted audio signal.
壳体部分220包括第二微处理器、第二通信模组、电源以及指示灯和按键。The housing part 220 includes a second microprocessor, a second communication module, a power supply, indicator lights and buttons.
其中,第二微处理器用于控制壳体部分220的运行状态。第二通信模组还包括低功耗蓝牙模块BLT和经典蓝牙模块BT;低功耗蓝牙模块用于在与电子设备断开连接并处于关盒状态时发出带有加密协议的目标广播信号,或者在与电子设备断开连接并处于关盒状态时扫描电子设备发出的目标广播信号;经典蓝牙模块BT可以用于广播开盒广播信号或与电子设备建立无线通信连接时传输数据。电源为壳体部分220供电,并在耳机机身210回到壳体内时自动为耳机机身210充电。指示灯可以用于指示电源情况,按键可以用于重启耳机系统或者在与电子设备首次进行配对连接时,可以通过按键实现配对连接。Wherein, the second microprocessor is used to control the operating state of the casing part 220 . The second communication module also includes a low-power bluetooth module BLT and a classic bluetooth module BT; the low-power bluetooth module is used to send a target broadcast signal with an encrypted protocol when it is disconnected from the electronic device and is in a closed state, or Scan the target broadcast signal sent by the electronic device when it is disconnected from the electronic device and in the off-box state; the classic Bluetooth module BT can be used to broadcast the open-box broadcast signal or transmit data when establishing a wireless communication connection with the electronic device. The power supply supplies power to the housing portion 220 and automatically charges the earphone body 210 when the earphone body 210 is returned to the housing. The indicator light can be used to indicate the power supply condition, and the button can be used to restart the headset system or when pairing and connecting with the electronic device for the first time, the pairing connection can be realized through the button.
需要说明的是,上述电子设备及耳机的结构仅示例性说明,基于不同的应用场景,还可以包括其他实体结构,在此不对电子设备和耳机的实体结构进行限定。It should be noted that the above structures of the electronic device and the earphone are only illustrative, and may also include other physical structures based on different application scenarios, and the physical structures of the electronic device and the earphone are not limited here.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/network device and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that: the above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered by this application. within the scope of the application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
Claims (16)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211743615.4A CN116133165B (en) | 2022-08-23 | 2022-08-23 | Headset connection system, method, headset, electronic device, and readable storage medium |
CN202211012343.0A CN115119336B (en) | 2022-08-23 | 2022-08-23 | Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211012343.0A CN115119336B (en) | 2022-08-23 | 2022-08-23 | Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211743615.4A Division CN116133165B (en) | 2022-08-23 | 2022-08-23 | Headset connection system, method, headset, electronic device, and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115119336A CN115119336A (en) | 2022-09-27 |
CN115119336B true CN115119336B (en) | 2023-01-13 |
Family
ID=83335441
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211743615.4A Active CN116133165B (en) | 2022-08-23 | 2022-08-23 | Headset connection system, method, headset, electronic device, and readable storage medium |
CN202211012343.0A Active CN115119336B (en) | 2022-08-23 | 2022-08-23 | Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211743615.4A Active CN116133165B (en) | 2022-08-23 | 2022-08-23 | Headset connection system, method, headset, electronic device, and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN116133165B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116074986B (en) * | 2023-01-28 | 2023-08-29 | 荣耀终端有限公司 | Bluetooth connection method, device and system |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A bluetooth connection method, device and system |
CN110996405A (en) * | 2019-12-16 | 2020-04-10 | 上海传英信息技术有限公司 | Earphone connection method, terminal, earphone box and computer readable storage medium |
CN112449259A (en) * | 2019-09-02 | 2021-03-05 | 华为技术有限公司 | Earphone pairing method and terminal |
CN112469010A (en) * | 2019-09-06 | 2021-03-09 | 华为技术有限公司 | Bluetooth connection method and related device |
CN112866857A (en) * | 2021-01-07 | 2021-05-28 | 深圳市博陆科电子科技有限公司 | Automatic Bluetooth headset reconnection method, Bluetooth headset charging box and readable storage medium |
CN113099342A (en) * | 2021-03-31 | 2021-07-09 | 深圳市睿耳电子有限公司 | Wireless earphone uncovering and reconnection method and related equipment |
CN113286282A (en) * | 2021-05-18 | 2021-08-20 | Oppo广东移动通信有限公司 | Prompting method, prompting device, electronic equipment, target equipment, connection system and medium |
WO2021174843A1 (en) * | 2020-03-05 | 2021-09-10 | 珠海市杰理科技股份有限公司 | Wireless control method, device, ble apparatus, chip, and storage medium |
CN113873589A (en) * | 2021-09-18 | 2021-12-31 | 深圳市爱都科技有限公司 | Bluetooth connection switching method, Bluetooth headset and computer readable storage medium |
WO2022006949A1 (en) * | 2020-07-09 | 2022-01-13 | 瑞声声学科技(深圳)有限公司 | Earbud charging apparatus and electronic device |
CN114650524A (en) * | 2022-04-14 | 2022-06-21 | 西安闻泰电子科技有限公司 | Connection method and device of wireless Bluetooth headset, electronic equipment and storage medium |
WO2022135303A1 (en) * | 2020-12-25 | 2022-06-30 | 华为技术有限公司 | Tws earphone connection method and device |
CN114764970A (en) * | 2021-12-28 | 2022-07-19 | 深圳市杰理微电子科技有限公司 | Bluetooth headset retrieving method and device, headset and system |
CN114915957A (en) * | 2022-07-13 | 2022-08-16 | 荣耀终端有限公司 | Bluetooth headset reconnection control method and control device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10375741B2 (en) * | 2017-09-28 | 2019-08-06 | Apple Inc. | Establishing a short-range communication pathway |
WO2020107485A1 (en) * | 2018-11-30 | 2020-06-04 | 华为技术有限公司 | Bluetooth connection method and device |
CN112399390B (en) * | 2019-08-14 | 2021-10-15 | 华为技术有限公司 | Method and related device for Bluetooth back-up connection |
CN113015049B (en) * | 2019-12-19 | 2022-06-14 | Oppo广东移动通信有限公司 | Switch detection method, wireless earphone, earphone box and storage medium |
CN113395685B (en) * | 2020-03-10 | 2023-07-11 | 华为技术有限公司 | Bluetooth communication system and wireless communication system |
CN111935689B (en) * | 2020-07-29 | 2023-08-11 | 歌尔科技有限公司 | Earphone device, message reminding method of mobile device and storage medium |
CN113395687B (en) * | 2021-05-19 | 2023-01-20 | 深圳Tcl新技术有限公司 | Reconnection method, reconnection device, electronic equipment and storage medium |
-
2022
- 2022-08-23 CN CN202211743615.4A patent/CN116133165B/en active Active
- 2022-08-23 CN CN202211012343.0A patent/CN115119336B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A bluetooth connection method, device and system |
CN112449259A (en) * | 2019-09-02 | 2021-03-05 | 华为技术有限公司 | Earphone pairing method and terminal |
CN112469010A (en) * | 2019-09-06 | 2021-03-09 | 华为技术有限公司 | Bluetooth connection method and related device |
CN110996405A (en) * | 2019-12-16 | 2020-04-10 | 上海传英信息技术有限公司 | Earphone connection method, terminal, earphone box and computer readable storage medium |
WO2021174843A1 (en) * | 2020-03-05 | 2021-09-10 | 珠海市杰理科技股份有限公司 | Wireless control method, device, ble apparatus, chip, and storage medium |
WO2022006949A1 (en) * | 2020-07-09 | 2022-01-13 | 瑞声声学科技(深圳)有限公司 | Earbud charging apparatus and electronic device |
WO2022135303A1 (en) * | 2020-12-25 | 2022-06-30 | 华为技术有限公司 | Tws earphone connection method and device |
CN112866857A (en) * | 2021-01-07 | 2021-05-28 | 深圳市博陆科电子科技有限公司 | Automatic Bluetooth headset reconnection method, Bluetooth headset charging box and readable storage medium |
CN113099342A (en) * | 2021-03-31 | 2021-07-09 | 深圳市睿耳电子有限公司 | Wireless earphone uncovering and reconnection method and related equipment |
CN113286282A (en) * | 2021-05-18 | 2021-08-20 | Oppo广东移动通信有限公司 | Prompting method, prompting device, electronic equipment, target equipment, connection system and medium |
CN113873589A (en) * | 2021-09-18 | 2021-12-31 | 深圳市爱都科技有限公司 | Bluetooth connection switching method, Bluetooth headset and computer readable storage medium |
CN114764970A (en) * | 2021-12-28 | 2022-07-19 | 深圳市杰理微电子科技有限公司 | Bluetooth headset retrieving method and device, headset and system |
CN114650524A (en) * | 2022-04-14 | 2022-06-21 | 西安闻泰电子科技有限公司 | Connection method and device of wireless Bluetooth headset, electronic equipment and storage medium |
CN114915957A (en) * | 2022-07-13 | 2022-08-16 | 荣耀终端有限公司 | Bluetooth headset reconnection control method and control device |
Non-Patent Citations (1)
Title |
---|
基于CSR BC5-MME嵌入式蓝牙耳机设计与实现;沈明合等;《现代电子技术》;20100715(第14期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN116133165A (en) | 2023-05-16 |
CN115119336A (en) | 2022-09-27 |
CN116133165B (en) | 2024-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112351322B (en) | Terminal device, method and system for realizing touch screen projection through remote controller | |
CN110784830B (en) | Data processing method, Bluetooth module, electronic device and readable storage medium | |
CN114710768B (en) | A bluetooth connection back method and related device | |
CN112312366B (en) | Method, electronic equipment and system for realizing functions through NFC (near field communication) tag | |
CN111405681B (en) | Wi-Fi Aware link building methods, systems, electronic devices and storage media | |
CN111369988A (en) | Voice awakening method and electronic equipment | |
CN112334860B (en) | Touch control method for wearable device, wearable device and system | |
CN114079893B (en) | Bluetooth communication method, terminal device and computer-readable storage medium | |
CN111262975A (en) | Bright screen control method and electronic device | |
CN112399390A (en) | Bluetooth connection method and related device | |
CN114554012B (en) | Methods for answering incoming calls, electronic equipment and storage media | |
CN112492193A (en) | Method and device for processing callback stream | |
CN113973398B (en) | Wireless network connection method, electronic device and chip system | |
CN113676339B (en) | Multicast method, device, terminal equipment and computer readable storage medium | |
WO2022089000A1 (en) | File system check method, electronic device, and computer readable storage medium | |
WO2022152167A1 (en) | Network selection method and device | |
CN115119336B (en) | Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium | |
CN112996066B (en) | Network residing method and related equipment | |
CN114125805B (en) | Bluetooth connection method and terminal device | |
CN115019803B (en) | Audio processing method, electronic device and storage medium | |
CN114500725B (en) | Target content transfer method, master device, slave device and storage medium | |
CN116382728B (en) | Propagation name display method and terminal equipment | |
WO2023024945A1 (en) | Interference elimination method, electronic device and storage medium | |
WO2024055881A1 (en) | Clock synchronization method, electronic device, system, and storage medium | |
WO2024255371A1 (en) | Network connection control method, and terminal device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |