Headphone connection system, method, headphone, electronic device and readable storage medium
By scanning the target broadcast signal in wireless headphones and quickly establishing a connection, the problem of too long back connection time due to uncertain device status is solved, and faster device connection and more efficient user experience is achieved.
Patent Information
- Application Number
- CN202211743615.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2042-08-23
AI Technical Summary
When existing wireless headphones are connected back to multiple electronic devices, the return time is too long because the status of other devices does not meet expectations.
The headset scans the target broadcast signal sent by the electronic device in the box-off state, determines that the device can be connected, and quickly sends the communication connection signal when opening the box, and prioritizes the establishment of a connection with the determined device to avoid sequentially returning to the connection based on historical connection records.
It greatly shortens the connection time between headphones and electronic devices, improves the connection efficiency and response speed, and reduces the waiting time of users.
Smart Images

Figure CN116133165B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application submitted to the State Intellectual Property Office on August 23, 2022, with application number 202211012343.0 and application name "Headphone connection system, method, headphone, electronic device and readable storage medium". Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to an earphone connection system, method, earphone, electronic device and readable storage medium. Background Art
[0003] At present, wireless headphones can generally connect to other electronic devices through built-in wireless communication components such as Bluetooth, establish wireless communication channels, and realize the transmission of audio and other data.
[0004] However, for a headset that can simultaneously establish wireless communication connections with two or more other electronic devices, when reconnecting with the other electronic devices, it takes too long to reconnect because the status of the other electronic devices does not meet the connection expectations. Summary of the invention
[0005] The present application provides an earphone connection system, method, earphone, electronic device and readable storage medium, which solves the problem of long reconnection time caused by the status of other electronic devices not meeting expectations.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a headset connection system is provided, which may include a headset and a first electronic device;
[0008] The first electronic device is used to send a first target broadcast signal at a first broadcast frequency after being disconnected from the headset; the headset is used to scan the first target broadcast signal at a first scanning frequency when the box is closed, and when the box is opened, 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.
[0009] Exemplarily, for headphones that can establish communication connections with multiple devices, such as dual-connection headphones, when only one electronic device is preparing to reconnect with the headphones, the headphones can determine the electronic devices that are in place and can be connected by scanning the target broadcast signal emitted by the electronic device when the connection is disconnected, and can promptly send a communication connection signal to the electronic device that is in place and emits the target broadcast signal after opening the box to quickly establish a communication connection; there is no need to make connection judgments for all devices in the historical connection information in order of historical connection based on historical connection records, thereby greatly saving the reconnection time of the headphones; at the same time, when the headphones scan that an electronic device is in place, they only need to establish a communication connection with the electronic device, and there is no need to make reconnection judgments for all connected electronic devices again after each opening of the box; while saving the reconnection time of the headphones, the connected headphones can quickly enter the operating state.
[0010] Through the above method, when the earphones are opened, they can quickly send a communication connection signal to the first electronic device based on the first target broadcast signal scanned in the closed box state, and initiate a communication connection with the electronic device; thereby, in the closed box state, the connectable electronic devices that meet the connection state are determined in advance, and there is no need to initiate a reconnection judgment for the electronic devices in the uncertain state based on the historical connection information, which causes the connection to be time-consuming, thereby improving the speed of reconnection between the earphones and the electronic device; it has strong ease of use and practicality.
[0011] In a possible implementation of the first aspect, the system also includes a second electronic device; the second electronic device is used to send a second target broadcast signal at a second broadcast frequency after being disconnected from the headset; the headset is also used to scan the second target broadcast signal at a first scanning frequency in a closed box state, and when the box is opened, send a communication connection signal to the first electronic device based on scanning the first target broadcast signal, or send a communication connection signal to the second electronic device based on scanning the second target broadcast signal, to establish a communication connection with the first electronic device or the second electronic device, respectively.
[0012] For example, when there are two electronic devices in the waiting state near the headset, both of which emit low-power Bluetooth target broadcast signals, the headset can determine the connection order of the devices to be connected based on the frequency or order of the scanned target broadcast signals; or, when the headset is unpacked, the electronic device to be connected is determined based on the first scanned target broadcast signal. This eliminates the need to verify the reconnection in sequence based on a fixed connection order each time, thereby improving the efficiency of the headset reconnection.
[0013] In a possible implementation of the first aspect, the first electronic device is further used to send a first target broadcast signal including a first encryption protocol at a first broadcast frequency after being disconnected from the headset; the headset is further used to send 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.
[0014] Exemplarily, the encryption protocol may be a known protocol content agreed upon between the headset and the electronic device, and the encryption protocol may be agreed upon and generated when the headset and the electronic device establish a connection for the first time.
[0015] Therefore, when the earphones are 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. When the earphones are opened, based on the scanned target broadcast signal, it can immediately respond and establish a backconnection with the determined electronic device.
[0016] Exemplarily, the first electronic device or the second electronic device is used to send a first target broadcast signal or a second target broadcast signal containing an encryption protocol after being disconnected from the headset; the headset is also used to determine that the device to be connected is the first electronic device or the second electronic device based on the encryption protocol in the first target broadcast signal or the second target broadcast signal; and when opening the box, a communication connection signal is sent to the first electronic device or the second electronic device based on the encryption protocol in the scanned first target broadcast signal or the encryption protocol in the second target broadcast signal, so as to establish a communication connection with the first electronic device or the second electronic device.
[0017] In a possible implementation of the first aspect, the headset 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 a box-off state, and the second scanning frequency is lower than the first scanning frequency.
[0018] For example, if the headset fails to scan the target broadcast signal with low-power Bluetooth in the closed state, the scanning frequency is reduced to save the power consumption of the headset. Correspondingly, when the target broadcast signal is scanned with the reduced scanning frequency, the scanning frequency can be increased again to respond to the scanned target broadcast signal in time when the headset is opened and establish a back connection with the electronic device.
[0019] In a second aspect, a headset connection system is provided, the system comprising a headset and a first electronic device;
[0020] The earphones are used to send out a third target broadcast signal at a third broadcast frequency when the earphones are in a closed state; the first electronic device is used to scan the third target broadcast signal at a third scanning frequency after being disconnected from the earphones, and to continue scanning at a fourth scanning frequency after scanning the third target broadcast signal; the first electronic device is also used to send a communication connection signal to the earphones after the earphones are opened, based on the scanned third target broadcast signal and the earphones' opening broadcast signal, so as to establish a communication connection with the earphones; wherein the fourth scanning frequency is greater than the third scanning frequency.
[0021] Through the above method, the earphones can also emit a third target broadcast signal of a third broadcast frequency in a closed box state, and the third target broadcast signal is used to enable the first electronic device to discover the earphones; and after the first electronic device scans the third target broadcast signal of the earphones based on the third scanning frequency, it increases the scanning frequency and continues to scan at the fourth scanning frequency, so that when the earphones are opened, the earphones' opening broadcast signal can be scanned more promptly, and a communication connection signal can be sent to the earphones in a timely manner to quickly establish a back connection with the earphones.
[0022] In a possible implementation of the second aspect, the headset is used to emit a third target broadcast signal including a third encryption protocol at a third broadcast frequency in a box-off state; the first electronic device is also used to send a communication connection signal to the headset based on the third encryption protocol when scanning an open-box broadcast signal after scanning the third target broadcast signal, thereby establishing a communication connection with the headset.
[0023] Exemplarily, the third encryption protocol contained in the third target broadcast signal may be an encryption protocol generated when the headset is paired and connected with the electronic device for the first time, that is, the headset may broadcast a third target broadcast signal containing the third encryption protocol, so as to distinguish other scanned broadcast signals. Only after the first electronic device scans the third target broadcast signal containing the third encryption protocol, it determines that the connectable headset is nearby, and responds after the headset is unboxed, and actively initiates a connection back to the headset.
[0024] Exemplarily, the system also includes a second electronic device; headphones, which are used to send a third target broadcast signal containing an expected connection sequence at a third broadcast frequency when the box is closed; the first electronic device and the second electronic device, which are used to send a communication connection signal to the headphones based on the expected connection sequence after scanning the third target broadcast signal and opening the box of the headphones, and establish communication connections with the headphones respectively.
[0025] In a third aspect, a headset connection method is provided, which is applied to a headset, and the method includes:
[0026] When the box is closed, the headset scans the first target broadcast signal at a first scanning frequency, and the first target broadcast signal is a broadcast signal emitted by the first electronic device at the first broadcast frequency; when the box is opened, the headset communicates a 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.
[0027] In a possible implementation manner of the third aspect, 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 to establish a communication connection with the first electronic device includes:
[0028] Based on the first encryption 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.
[0029] Exemplarily, the first target broadcast signal also includes an identifier of the first electronic device, and based on the first target broadcast signal, the headset can determine that the device to be connected is the first electronic device. Accordingly, in order to distinguish other broadcast signals, the first target broadcast signal also includes a first encryption protocol, and the headset can 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.
[0030] In a possible implementation manner of the third aspect, before opening the box, the method further includes:
[0031] The headset 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;
[0032] When the box is opened, the headset 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, to establish a communication connection with the first electronic device or the second electronic device.
[0033] Exemplarily, before opening the box, the method further comprises:
[0034] The headset 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 headset determines the connection order of the devices to be connected based on the order or frequency of scanning the first target broadcast signal and the second target broadcast signal. Correspondingly, the headset establishes communication connections with the first electronic device and the second electronic device respectively based on the connection order.
[0035] In a possible implementation manner of the third aspect, the method further includes:
[0036] When the headset is in the off state, if the target broadcast signal is not scanned at the first scanning frequency, the headset continues to scan at the second scanning frequency, and the second scanning frequency is lower than the first scanning frequency.
[0037] In a fourth aspect, a headphone connection method is provided, which is applied to an electronic device, and the method includes:
[0038] The electronic device sends a target broadcast signal at a preset broadcast frequency; the electronic device receives a communication connection signal sent by the headset after the box is opened, and establishes a communication connection with the headset based on the communication connection signal, wherein the communication connection signal is sent by the headset based on the scanned target broadcast signal when the box is opened.
[0039] Exemplarily, after unpacking the earphone, the method further includes:
[0040] The electronic device establishes a communication connection with the headset based on a connection sequence, where the connection sequence is determined by the headset based on an order or frequency of scanning a target broadcast signal.
[0041] Exemplarily, the target broadcast signal includes an encryption protocol and an identification of the electronic device.
[0042] In a fifth aspect, a headset connection method is provided, which is applied to a headset, and the method includes:
[0043] In the box-closed state, the headset sends out a target broadcast signal at a third broadcast frequency, and the target broadcast signal is used to instruct the electronic device to continue scanning at a fourth scanning frequency after scanning the target broadcast signal at the third scanning frequency; when the box is opened, the headset sends out a box-opening broadcast signal; after the box is opened, the headset receives a communication connection signal sent by the electronic device based on the scanned target broadcast signal and the box-opening broadcast signal, and establishes a communication connection with the electronic device; wherein the fourth scanning frequency is greater than the third scanning frequency.
[0044] In a possible implementation manner of the fifth aspect, the method further includes:
[0045] When the box is closed, the headset sends a target broadcast signal containing an encryption protocol at a third broadcast frequency; after the box is opened, the headset receives a communication connection signal sent by the electronic device based on the encryption protocol of the target broadcast signal after scanning the box opening broadcast signal, and establishes a communication connection with the electronic device.
[0046] Exemplarily, the method also includes: in a closed box state, the headset sends a target broadcast signal containing an expected connection order at a third broadcast frequency; after the box is opened, the headset receives a communication connection signal sent by the electronic device based on the expected connection order after scanning the target broadcast signal, and establishes a communication connection with the electronic device.
[0047] In a sixth aspect, a headphone connection method is provided, which is applied to an electronic device, and the method includes:
[0048] After disconnecting from the headset, the electronic device scans at a third scanning frequency for a target broadcast signal emitted by the headset at a third broadcast frequency when the headset is in a closed state; after scanning the target broadcast signal, the electronic device continues to scan at a fourth scanning frequency; after the headset is opened, the electronic device sends a communication connection signal to the headset based on the scanned target broadcast signal and the open-box broadcast signal, and establishes a communication connection with the headset.
[0049] In a possible implementation manner of the sixth aspect, the target broadcast signal includes an encryption protocol; after the headset is opened, the electronic device sends a communication connection signal to the headset based on the scanned target broadcast signal and the opening broadcast signal to establish a communication connection with the headset, including:
[0050] After the earphone is opened, the electronic device sends a communication connection signal to the earphone based on the encryption protocol in the target broadcast signal when scanning the opening broadcast signal, and establishes a communication connection with the earphone.
[0051] Exemplarily, the target broadcast signal includes an expected connection sequence; after the headset is opened, the electronic device sends a communication connection signal to the headset based on the target broadcast signal when scanning the opening broadcast signal, and establishes a communication connection with the headset, including:
[0052] After the earphone is unboxed, the electronic device sends a communication connection signal to the earphone based on the expected connection sequence when scanning the unboxing broadcast signal, and establishes a communication connection with the earphone.
[0053] In a seventh aspect, a headphone connection device is provided, the device comprising:
[0054] A first scanning unit is used to scan a first target broadcast signal at a first scanning frequency in a closed state, where the first target broadcast signal is a broadcast signal sent by a first electronic device at a first broadcast frequency;
[0055] The communication connection unit is used to send a communication connection signal to the first electronic device based on the scanned first target broadcast signal when the box is opened, so as to establish a communication connection with the first electronic device.
[0056] In an eighth aspect, a headphone connection device is provided, the device comprising:
[0057] A first broadcasting unit, used for sending a target broadcasting signal at a preset broadcasting frequency;
[0058] The first receiving unit is used to receive a communication connection signal sent by the headset after the box is opened, and establish a communication connection with the headset based on the communication connection signal, wherein the communication connection signal is sent by the headset based on a scanned target broadcast signal when the box is opened.
[0059] In a ninth aspect, a headphone connection device is provided, the device comprising:
[0060] The second broadcast unit is used to send a target broadcast signal at a third broadcast frequency in a closed state, wherein the target broadcast signal is used to instruct the electronic device to continue scanning the target broadcast signal at a fourth scanning frequency after scanning the target broadcast signal at the third scanning frequency;
[0061] The third broadcast unit is used to send a box opening broadcast signal when the box is opened;
[0062] A second receiving unit is used to receive, after opening the box, a communication connection signal sent by the electronic device based on the scanned target broadcast signal and the box opening broadcast signal, and establish a communication connection with the electronic device;
[0063] The fourth scanning frequency is greater than the third scanning frequency.
[0064] In a tenth aspect, a headphone connection device is provided, the device comprising:
[0065] The second scanning unit is used to scan the target broadcast signal emitted by the headset at the third broadcast frequency in the box-off state at the third scanning frequency after being disconnected from the headset; and continue to scan the target broadcast signal at the fourth scanning frequency after scanning the target broadcast signal;
[0066] The signal sending unit is used to send a communication connection signal to the headset based on the scanned target broadcast signal and the box opening broadcast signal after the headset is opened, so as to establish a communication connection with the headset.
[0067] In the eleventh aspect, a headset is provided, which includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method described in any one of the third aspect or the fifth aspect are implemented.
[0068] In the twelfth aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method as described in any one of the fourth aspect or the sixth aspect are implemented.
[0069] In the thirteenth aspect, a computer-readable storage medium is provided, comprising: a computer program stored therein, wherein when the computer program is executed by a processor, the steps of the method described in any one of the third aspect, fourth aspect, fifth aspect or sixth aspect are implemented.
[0070] In a fourteenth aspect, a computer program product is provided. When the computer program product is run on a terminal device, the terminal device executes the method described in any one of the third aspect, fourth aspect, fifth aspect or sixth aspect.
[0071] It can be understood that the beneficial effects of the above-mentioned second to fourteenth aspects can be found in the relevant description of the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A schematic diagram of earphone back-connection provided in an embodiment of the present application;
[0073] Figure 2 An architecture diagram of a headset connection system provided in an embodiment of the present application;
[0074] Figure 3 A schematic diagram of an interaction between a headset and an electronic device provided in an embodiment of the present application;
[0075] Figure 4 A schematic diagram of an interaction between a headset and an electronic device provided in an embodiment of the present application;
[0076] Figure 5 A schematic diagram of an interaction between an electronic device and a headset provided in an embodiment of the present application;
[0077] Figure 6 A schematic diagram of an interaction between an electronic device and a headset provided in an embodiment of the present application;
[0078] Figure 7 A schematic diagram of an interface for connecting an electronic device and a headset provided in an embodiment of the present application;
[0079] Figure 8 A schematic diagram of an interface for connecting an electronic device and a headset provided in an embodiment of the present application;
[0080] Fig. 9 A schematic diagram of the implementation flow of the headphone connection method provided in an embodiment of the present application;
[0081] Fig.10 A schematic diagram of the implementation flow of the headphone connection method provided in an embodiment of the present application;
[0082] Fig.11 A schematic diagram of the implementation flow of the headphone connection method provided in an embodiment of the present application;
[0083] Fig.12 A schematic diagram of the implementation flow of the headphone connection method provided in an embodiment of the present application;
[0084] Fig.13 A schematic diagram of the structure of an earphone connection device provided in an embodiment of the present application;
[0085] Fig.14 A schematic diagram of the structure of an earphone connection device provided in an embodiment of the present application;
[0086] Fig.15A schematic diagram of the structure of an earphone connection device provided in an embodiment of the present application;
[0087] Fig.16 A schematic diagram of the structure of an earphone connection device provided in an embodiment of the present application;
[0088] Fig.17 A system architecture diagram of an electronic device provided in an embodiment of the present application;
[0089] Fig.18 A system architecture diagram of the headset provided in an embodiment of the present application. DETAILED DESCRIPTION
[0090] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0091] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0092] 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 the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0093] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0094] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0095] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0096] Currently, dual-connection wireless Bluetooth headsets can establish wireless communication connections with two or more devices at the same time. However, due to the reconnection mechanism, after the headset is unpacked, it is necessary to reconnect to the last connected device in turn. Figure 1 As shown in Figure (a), the dual-connected electronic devices take mobile phone A and mobile phone B as an example. When mobile phone A and mobile phone B are electronic devices that have been paired and connected with the headset last time and are within the connectable range of the headset, when the headset is unboxed, based on the fixed connection sequence in the reconnection mechanism, reconnection requests are initiated to mobile phone A and mobile phone B respectively. After mobile phone A feedbacks that the reconnection is successful, the headset initiates a reconnection request to mobile phone B. After mobile phone B feedbacks that the connection is successful, the communication channel between the headset and mobile phones A and B officially starts working.
[0097] However, if Figure 1 As shown in Figure (b), a scenario where the state of a mobile phone is determined and it does not reconnect first. When the state of one of the electronic devices (such as mobile phone A) is uncertain, for example, mobile phone A is not within the connectable range of the headset or the Bluetooth is turned off, after the headset is unpacked, it is necessary to first initiate a reconnection request to mobile phone A based on the connection sequence of the original fixed reconnection mechanism, and only after waiting for the feedback timeout will the reconnection process to mobile phone A be ended; if the reconnection to mobile phone A fails, it will initiate a reconnection request to mobile phone B again, and after mobile phone B feedbacks that the connection is successful, it will start working based on the communication channel with mobile phone B. Since the waiting time for the reconnection judgment process of mobile phone A with an uncertain state is long, the reconnection time between the headset and mobile phone B is too long, resulting in a slow response to the reconnection between the headset and the electronic device, affecting the user experience.
[0098] Moreover, if Figure 1As shown in Figure (c), a scenario where the state of a mobile phone is determined and the phone reconnects first. When the state 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, the headset, after unpacking, based on the fixed connection sequence in the original reconnection mechanism, initiates a reconnection request to mobile phone B after successfully reconnecting with mobile phone A. Due to the uncertain state of mobile phone B, it is determined that mobile phone B has failed to reconnect after a timeout, and only after it is determined that mobile phone B has failed to reconnect does it start to work based on the communication connection between mobile phone A and the headset, which makes it take a long time for the headset to respond to the electronic device after reconnecting, and the response efficiency is low, which also affects the user experience.
[0099] In view of the above-mentioned 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 reconnection efficiency and work response efficiency between the earphone and the electronic device.
[0100] See also Figure 2 , Figure 2 : is a diagram of the headset connection system architecture provided by the embodiment of the present application. Figure 2 As shown, the system may include a first electronic device 10 , a headset 20 , and a second electronic device 30 .
[0101] Exemplarily, in some application scenarios, the system may also include only one electronic device and a headset, such as a first electronic device 10 and a headset 20, or a second electronic device 30 and a headset.
[0102] like Figure 2 As shown, if the first electronic device 10 and the second electronic device 30 are in a connectable state, the headset 20 can respectively establish communication connections with the first electronic device 10 and the second electronic device 30 after the box is opened. In order to improve the efficiency of the headset 20 in establishing a back connection with the electronic device, in an embodiment of the present application, the headset can scan the target broadcast signal emitted by the electronic device in the box-off state to determine the connectable device within the connection range, and quickly initiate a backconnection request to the connectable device when the box is opened. Alternatively, when the electronic device is disconnected from the headset, the headset can emit a low-power Bluetooth target broadcast signal in the box-off state, and the electronic device can actively initiate a backconnection request to the headset when the headset is opened based on the scanned target broadcast signal to establish a communication connection.
[0103] Exemplarily, the target broadcast signal is a broadcast signal that the electronic device and the headset have known and agreed upon and can recognize and respond to. For example, the target broadcast signal may include an encryption protocol agreed upon by the headset and the electronic device, and the encryption protocol may be generated when the electronic device and the headset establish a pairing connection for the first time. After the headset is unpacked, a communication connection may be established with the first electronic device and the second electronic device, respectively. Figure 2As shown, the display interface of the first electronic device and the second electronic device can also display information such as the connection status and power status of the connected headphones.
[0104] Exemplarily, the electronic device that establishes a wireless communication connection with the headset may be a terminal capable of wireless communication, such as a mobile phone, a tablet, or a laptop computer, and the type of the electronic device is not limited herein.
[0105] It should be noted that the above-mentioned target broadcast signal based on low-power Bluetooth broadcasting, scanning and identifying the target broadcast signal, and the reconnection process can be applicable to the scenario of establishing a reconnection between a single electronic device and the headset, and can also be applied to the scenario of establishing a reconnection between two or more devices and the headset; based on the above-mentioned reconnection mechanism, the defect of the original reconnection mechanism in which the waiting time is too long due to the uncertain state of the electronic device and the fixed connection sequence can be improved, thereby improving the speed of reconnection between the headset and the electronic device; there is no need to wait for the reconnection judgment of other electronic devices in uncertain states, so that the headset can quickly enter the business state.
[0106] For the scenario where the headset and the electronic device have established a paired connection and are reconnected after the communication connection is disconnected, the following specific embodiments are used to describe in detail the implementation process of quickly reconnecting the headset and the electronic device. The first electronic device is mobile phone B and the second electronic device is mobile phone A for exemplary description.
[0107] First, the headset is used as a scanning end and the electronic device is used as a broadcasting end, so that the headset and the electronic device can be connected back.
[0108] Embodiment 1
[0109] like Figure 3 As shown, the headset connection system includes a headset and a first electronic device (hereinafter described by taking mobile phone B as an example). After the mobile phone B is disconnected from the headset, it sends a first target broadcast signal at a first broadcast frequency, for example, a first target broadcast signal of low-power Bluetooth is sent every 10 seconds. When the headset is in the off 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 headset is in the off state, it wakes up once every 20 minutes and scans for 15 seconds each time.
[0110] Exemplarily, the 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 first paired and connected; the first target broadcast signal may include identification information of the electronic device that sends the broadcast, such as the model or name of mobile phone B.
[0111] In some embodiments, after the headset scans the first target broadcast signal in the closed state, it can be determined that mobile phone B is within the connectable range and is in a connectable state. When the headset is opened, it can first send a communication connection signal to mobile phone B based on the scanned first target broadcast signal, initiate a backconnect request to mobile phone B, and establish a communication connection with mobile phone B.
[0112] Exemplarily, the headset can enter a low-power Bluetooth working state when the box is turned off and the first electronic device is disconnected from the headset. For example, the headset enters a low-power Bluetooth scanning state when the box is turned off, and the first electronic device enters a low-power Bluetooth signal broadcasting state when the headset is disconnected.
[0113] For example, the first electronic device may be a terminal capable of wireless communication, such as a mobile phone, a tablet computer, or a laptop computer. The first broadcast frequency of the first electronic device may be set based on the user's usage time period, such as turning on low-power broadcasting during the day and turning it off at night; or setting different broadcast frequencies for different time periods during the day.
[0114] In one possible implementation, the above-mentioned reconnection mechanism is also applicable to mobile phone A, that is, the first electronic device can also be the electronic device that ranks first in the connection order in the historical connection information. After the headset scans the target broadcast signal emitted by mobile phone A in the closed state, it will prioritize to establish a reconnection with mobile phone A after opening the box; and when the target broadcast signal of mobile phone B is not scanned, after successfully establishing a reconnection with mobile phone A, it will not try to reconnect to mobile phone B. After successfully reconnecting with mobile phone A, it will directly enter the working state without the need to judge the reconnection with mobile phone B again. That is, no matter whether the device to be connected currently scanned by the headset is an electronic device that comes earlier or later in the original inherent connection order, when the headset scans the target broadcast signal of only one electronic device in the closed state, it will prioritize and only establish a reconnection with the scanned electronic device. After the reconnection is successful, the reconnection status of another electronic device will no longer be judged. Figure 7 As shown, in the headset setting display interface of the electronic device (mobile phone B), the dual-device connection control interface only displays one device connected to the headset; or as shown in FIG. Figure 8 As shown, the headset has established a paired connection with multiple electronic devices for the first time. When reconnecting, only one device (mobile phone B) that has established a communication connection with the headset can be highlighted, and other connected devices (mobile phone A and tablet iPad) can be displayed at the same time, but the other connected devices (mobile phone A and tablet iPad) can be displayed in grayscale to indicate that they are currently not connected.
[0115] 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 box-off state, and can determine the status of mobile phone B based on the target broadcast signal, and then initiate a reconnection request to mobile phone B in time after opening the box. 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, nor is there a need to wait for the time to make a reconnection judgment with other electronic devices in the historical connection information. Therefore, when only one electronic device is within the connectable range and in a connectable state, the reconnection speed of the dual-connected headset can be greatly improved, and after the reconnection is established, it can enter the working state immediately without waiting for the time to reconnect with other electronic devices, etc., thereby improving the response efficiency of the headset entering the business state after the reconnection is established.
[0116] Embodiment 2
[0117] like Figure 4 As shown, the headset connection system may also include a headset, a first electronic device and a second electronic device; wherein the second electronic device may also send a low-power Bluetooth signal, i.e., a second target broadcast signal, after being disconnected from the headset, and the second target broadcast signal may include a second encryption protocol and a device identifier of the second electronic device, such as a device model or name. The following is an example in which the first electronic device is mobile phone B and the second electronic device is mobile phone A.
[0118] Exemplarily, mobile phone B sends a first target broadcast signal at a first broadcast frequency, and mobile phone A sends a second target broadcast signal at a second broadcast frequency; the first broadcast frequency and the second broadcast frequency can be the same broadcast frequency or different broadcast frequencies; the headset scans the target broadcast signal at a first scanning frequency in the off state.
[0119] like Figure 4 As shown, in the current certain time period, the solid line corresponding to mobile phone B represents the target broadcast signal emitted within the scanning range of the headset; the dotted line corresponding to mobile phone A is the target broadcast signal that is not emitted within the scanning range of the headset, and the solid line portion corresponds to the target broadcast signal emitted within the scanning range of the headset, that is, the solid line portion corresponds to the target broadcast signal that can be scanned by the headset in the closed state, and the dotted line portion corresponds to the target broadcast signal that cannot be scanned by the headset.
[0120] In a possible implementation, during the scanning process in the closed box state, the headset can also record the time node when the target signal is first scanned, or record the number or frequency of scanning the target signal through a counter. For example, within a certain time period, the headset can record the time node when the mobile phone B is first scanned in the closed box state, and determine based on the time node to first initiate a reconnection request to mobile phone B after opening the box; or record the number or frequency of the target broadcast signal scanned during the scanning process, for example, if mobile phone B is always within the scanning range of the headset, then 5 target broadcast signals sent by mobile phone B can be counted, while mobile phone A is not always within the scanning range of the headset, and the headset may only scan the target broadcast signal sent by mobile phone A twice; based on the number of scanned target broadcast signals, it is determined that mobile phone B is a stable device to be connected, and a reconnection request is first initiated to mobile phone B after opening the box, that is, the headset first sends a communication connection signal to mobile phone B, and first establishes a reconnection with mobile phone B. After the reconnection is successful, a reconnection request is initiated to mobile phone A to establish a communication connection with mobile phone A.
[0121] For example, a threshold value of the number of times the target broadcast signal is scanned may be set in the headset. When the threshold value is not reached, even if the corresponding target broadcast signal is scanned in the off state, the headset will not be reconnected. Figure 4 As shown, if the headset scans the target broadcast signal of mobile phone A only once and the number of times does not reach the threshold, it is possible that mobile phone A only appeared in the connectable range of the headset for a while and then left. Therefore, only based on the scanned target broadcast signal sent by mobile phone B, a backconnection is established with mobile phone B first and only; thereby ensuring the timeliness of the backconnection and the reliability of the backconnection, reducing the probability of invalid backconnection and the time consumption caused by invalid backconnection.
[0122] Exemplarily, when the headset is unboxed, 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 scanning the second target broadcast signal, and establishes a communication connection with the first electronic device or the second electronic device respectively. When the headset has established a paired connection with multiple electronic devices, 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 only establish a back connection with one of the two electronic devices, or establish a back connection with the two electronic devices respectively based on the status of the scanned target signal.
[0123] like Figure 8 As shown, in the headset setting display interface of the electronic device (mobile phone B), the dual-device connection control interface highlights two devices connected to the headset (mobile phone A and mobile phone B, with mobile phone B being the priority connection), and other connected devices can also be displayed at the same time, but the grayscale display indicates that the other connected devices are currently not connected, such as Figure 8The tablet iPad shown in.
[0124] It should be noted that after the headset successfully reconnects to the electronic device, the headset can clear the time node recorded during the reconnection or the recorded number of scans and other information; or after a connection ends, that is, the headset is disconnected from the electronic device and returns to the off-box state, the headset can clear the time node recorded during the last reconnection or the recorded number of scans and other information; and start re-recording when the target broadcast signal is scanned in the off-box state next time.
[0125] Through the above method, the headset does not need to establish a reconnection with the connectible electronic device based on the inherent connection order in the historical connection information. In order to reduce the probability of prolonged reconnection time due to electronic devices with uncertain status, the electronic device to be connected with priority can be determined based on the status of the target broadcast signal scanned in the closed box state, thereby improving the timeliness and reliability of the reconnection between the headset and the electronic device.
[0126] Based on the implementation method of the above-mentioned embodiment one and embodiment two, the headset acts as a scanning end, wakes up regularly to scan for a period of time at a first scanning frequency. If the target broadcast signal is not scanned at the first scanning frequency, the scanning frequency is lowered, or the duration of a scan is shortened, and the scanning is continued at a second scanning frequency after the frequency is lowered or the scanning time period with the duration of a scan shortened, so as to save power consumption of the headset.
[0127] Then, the process of connecting the headset to the electronic device by using the headset as the broadcasting end and the electronic device as the scanning end is introduced.
[0128] Embodiment 3
[0129] like Figure 5 As shown, the headset connection system includes a headset and a first electronic device (hereinafter described by taking mobile phone B as an example). Among them, when the headset is in a closed state, it sends a first target broadcast signal at a third broadcast frequency, for example, a first target broadcast signal of low-power Bluetooth is sent every 10 seconds; the target broadcast signal may include a device identification of the headset, such as the model or name of the headset. After mobile phone B is disconnected from the headset, it periodically wakes up the scanning mechanism at the third scanning frequency and continuously scans the broadcast signal for a certain period of time; for example, when the first electronic device is disconnected from the headset, it wakes up the scanning mechanism every 20 minutes and scans for 15 seconds.
[0130] Exemplarily, when mobile phone B scans the target broadcast signal of the headset at the third scanning frequency, it increases the scanning frequency, wakes up the scanning mechanism periodically at the fourth scanning frequency, and continues scanning. When the headset is opened and sends out an opening broadcast signal, mobile phone B can quickly scan the opening broadcast signal, promptly discover the opening status of the headset, actively send a communication connection signal to the headset, initiate a reconnection request to the headset, and after the communication connection is established, the headset feeds back the successful reconnection information to mobile phone B, and then starts to enter the service state.
[0131] In one possible implementation, the headset is in a closed state and emits a third target broadcast signal including a third encryption protocol at a third broadcast frequency; after the first electronic device scans the third target broadcast signal, the first electronic device sends a communication connection signal to the headset based on the third encryption protocol when it scans the open broadcast signal, thereby establishing a communication connection with the headset.
[0132] Exemplarily, similar to Embodiment 1 and Embodiment 2, the target broadcast signal broadcast by the headset is also an encrypted broadcast signal containing an encryption protocol. After scanning the target broadcast signal, the electronic device can determine that the headset is within a connectable range and increase the scanning frequency to promptly detect the unboxing broadcast signal emitted by the headset when the box is opened, and quickly and actively establish a backconnection with the headset.
[0133] Exemplarily, the third encryption protocol contained in the third target broadcast signal may be an encryption protocol generated when the headset is paired and connected with the electronic device for the first time, that is, the headset may broadcast a third target broadcast signal containing the third encryption protocol, so that the first electronic device can distinguish other scanned broadcast signals. Only after scanning the third target broadcast signal containing the third encryption protocol, the first electronic device determines that the connectable headset is nearby, and after the headset is opened, responds based on the scanned opening broadcast signal, and actively initiates a connection back to the headset.
[0134] It should be noted that when mobile phone A is in a scanning state, the implementation principle is the same as that of mobile phone B, that is, the above-mentioned reconnection mechanism also applies to mobile phone A. The first electronic device can also be an electronic device that ranks first in the connection order in the historical connection information. After mobile phone A scans the target broadcast signal sent by the headset in the closed box state, it increases the scanning frequency, and after scanning the headset's open box broadcast signal, it actively establishes a reconnection with the headset; and when the target broadcast signal of mobile phone B is not scanned, after mobile phone A successfully establishes a reconnection with the headset, the headset will no longer try to reconnect to mobile phone B. After successfully reconnecting with mobile phone A, it directly enters the working state without the need to judge the reconnection with mobile phone B again; since mobile phone B is not involved in the scanning process, mobile phone B will naturally not actively initiate a reconnection request; the reconnection time between the headset and the electronic device is shortened, and the reconnection efficiency between the headset and the electronic device is improved. That is, no matter whether the electronic device that performs the scanning action is the first or the last electronic device in the original inherent connection sequence, when only one electronic device scans the target broadcast signal in the headset closed state, only this one electronic device can actively initiate a reconnection request to the headset, and after the reconnection is successful, it can enter the service state without determining the reconnection state of the other electronic device. Figure 7 As shown, in the headset setting display interface of the electronic device (mobile phone B), the dual-device connection control interface only displays one device connected to the headset; or as shown in FIG. Figure 8 As shown, the headset has established a paired connection with multiple electronic devices for the first time. When reconnecting, only one device (mobile phone B) that has established a communication connection with the headset can be highlighted, and other connected devices (mobile phone A and tablet iPad) can be displayed at the same time, but the other connected devices (mobile phone A and tablet iPad) can be displayed in grayscale to indicate that they are currently not connected.
[0135] Through the above method, after the first electronic device scans the third target broadcast signal of the headset based on the third scanning frequency, it increases the scanning frequency and continues to scan at the fourth scanning frequency, so that when the headset is opened, the headset's box opening broadcast signal can be scanned more promptly, and a communication connection signal can be sent to the headset in time to quickly establish a reconnection with the headset, without the need to judge the dual-connected devices each time the reconnection is performed and increase the reconnection time.
[0136] Embodiment 4
[0137] like Figure 6 As shown, the headset connection system may also include a headset, a first electronic device and a second electronic device; wherein, after the second electronic device is disconnected from the headset, it may also scan the target broadcast signal emitted by the headset in the closed state based on low-power Bluetooth, and the target broadcast signal may include an encryption protocol and a device identification of the headset, such as the model or name of the headset. The following is an example of the first electronic device being mobile phone B and the second electronic device being mobile phone A.
[0138] In one possible implementation, the headset is in a closed state and sends a third target broadcast signal containing an expected connection sequence at a third broadcast frequency; the first electronic device and the second electronic device scan the third target broadcast signal and, after the headset is opened, send a communication connection signal to the headset based on the expected connection sequence to establish communication connections with the headset respectively.
[0139] Exemplarily, for dual-connected headphones, the third target broadcast signal containing the third encryption protocol may also carry the expected connection order of the headphones. The expected connection order may be set based on the user's time habits or scenarios when using the headphones. For example, when the headphones and the electronic device are paired for the first time or when the electronic device and the headphones are in a connected state, the expected connection order of the headphones may be set based on the electronic device, so that the headphones receive the information of the expected connection order transmitted by the electronic device and set it according to the corresponding time or scene; thereby, when the box is turned off, the headphones may send a target broadcast signal with the expected connection order based on the corresponding time or scene.
[0140] Exemplarily, after scanning the target broadcast signal broadcast by the headset, the electronic device can also identify the expected connection sequence in the target broadcast signal, and establish a back connection with the headset based on the expected connection sequence after scanning the box opening broadcast signal.
[0141] Exemplarily, the expected connection sequence may include identifications of one or two devices to be connected.
[0142] like Figure 6 As shown, in the first case, when the expected connection sequence includes an identifier of a device to be connected, when the electronic device corresponding to the identifier scans the target broadcast signal, it quickly establishes a reconnection with the headset based on the expected connection sequence, and the headset no longer waits for another electronic device to reconnect, but directly enters a working state with the electronic device that has successfully reconnected; thereby improving the efficiency of the reconnection between the headset and the electronic device.
[0143] like Figure 6 As shown, in the second case, when the expected connection sequence includes the identifiers of two devices to be connected, the identifiers of the two devices to be connected are accompanied by serial numbers indicating the order of connection; when the electronic device scans the target broadcast signal and identifies the serial numbers of the sequential connection in the target broadcast signal, it establishes a backconnection to the headset in sequence based on the serial numbers in the expected connection sequence; after receiving the box opening broadcast signal, the electronic device with the first serial number actively initiates a backconnection to the headset based on the expected connection sequence in the target broadcast signal.
[0144] Exemplarily, if mobile phone B is the one that prioritizes establishing a communication connection in the expected connection sequence, then after scanning the headset box opening broadcast signal, mobile phone B will actively reconnect to the headset based on the expected connection sequence, and receive the successful reconnection information fed back by the headset; at the same time, the headset will initiate a reconnection to mobile phone A, and after receiving the successful reconnection information fed back by mobile phone A, it will start to enter the service state; or after the headset feeds back the successful reconnection information to mobile phone B, it feeds back the successful reconnection information to mobile phone A, and mobile phone A then actively initiates a reconnection request to the headset, and after the reconnection is successfully established, the headset feeds back the successful reconnection information to mobile phone A and enters the service state.
[0145] It should be noted that the above-mentioned fourth embodiment only represents an application scenario of dual connection that may be realized; for the headset storing the expected connection order and emitting low-power Bluetooth broadcast in the closed state, the reconnection mechanism. The expected connection order in the reconnection mechanism can be set and stored based on the use time or application scenario when the electronic device and the headset are connected. For example, during the morning driving time to work, the headset only needs to be connected to one electronic device (such as mobile phone B). Based on the above reconnection mechanism, the target broadcast signal with the expected connection order emitted by the headset can only contain the device identification information of mobile phone B; if you return home from get off work in the evening, when the user uses the headset, it may be necessary to connect two electronic devices, a tablet and a mobile phone, at the same time. The target broadcast signal with the expected connection order emitted by the headset can contain the device identification of the mobile phone and the tablet and sort them, such as the mobile phone is connected first, and the tablet is connected later; corresponding to this time period, the headset and the electronic device can be quickly reconnected based on the above reconnection mechanism.
[0146] Through the above method, there is no need to judge the dual-device reconnection status every time the headset reconnects to the electronic device. The expected connection order of the headset reconnection can be preset in advance, and the headset and the electronic device can be quickly reconnected in an appropriate application scenario or time period, thereby reducing the probability of invalid reconnection, improving the reconnection efficiency of the headset and the device, and enhancing the user experience.
[0147] See also Fig. 9 , Fig. 9 The following is a schematic diagram of the implementation process of the headphone connection method provided in the embodiment of the present application. Fig. 9 As shown, the headphone connection method is implemented by the headphone, and the implementation principle of the method is the same as that of the above embodiment, which will not be repeated here. The implementation method of the headphone connection method may include the following steps:
[0148] S901, in a closed state, the headset scans a first target broadcast signal at a first scanning frequency, where the first target broadcast signal is a broadcast signal emitted by a first electronic device at a first broadcast frequency;
[0149] S902: When the box is opened, the headset communicates a 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.
[0150] 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 to establish a communication connection with the first electronic device includes:
[0151] Based on the first encryption protocol in the scanned first target broadcast signal, the headset sends a communication connection signal to the first electronic device to establish a communication connection with the first electronic device.
[0152] In a possible implementation, before opening the box, the method further includes:
[0153] The headset 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;
[0154] When the box is opened, the headset 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, to establish a communication connection with the first electronic device or the second electronic device.
[0155] In a possible implementation, the method further includes:
[0156] When the headset is in the off state, if the target broadcast signal is not scanned at the first scanning frequency, the headset continues to scan at the second scanning frequency, and the second scanning frequency is lower than the first scanning frequency.
[0157] See also Fig.10 , Fig.10 The following is a schematic diagram of the implementation process of the headphone connection method provided in the embodiment of the present application. Fig.10 As shown, the headphone connection method is executed by an electronic device, and the implementation principle of the method is the same as that of the above embodiment, which will not be repeated here. The implementation method of the headphone connection method may include the following steps:
[0158] S1001, the electronic device sends a target broadcast signal at a preset broadcast frequency;
[0159] S1002, the electronic device receives a communication connection signal sent by the headset after the box is opened, and establishes a communication connection with the headset based on the communication connection signal, where the communication connection signal is sent by the headset based on a scanned target broadcast signal when the box is opened.
[0160] See also Fig.11 , Fig.11A schematic diagram of the implementation flow of the headset connection method provided in the embodiment of the present application; Fig.11 As shown, the headphone connection method is implemented by the headphone, and the implementation principle of the method is the same as that of the above embodiment, which will not be repeated here. The implementation method of the headphone connection method may include the following steps:
[0161] S1101, in the box-off state, the headset sends a target broadcast signal at a third broadcast frequency, the target broadcast signal being used to instruct the electronic device to continue scanning at a fourth scanning frequency after scanning the target broadcast signal at the third scanning frequency;
[0162] S1102, when opening the box, the earphone sends a box opening broadcast signal;
[0163] S1103, after opening the box, the earphone receives a communication connection signal sent by the electronic device based on the scanned target broadcast signal and the opening broadcast signal, and establishes a communication connection with the electronic device; wherein the fourth scanning frequency is greater than the third scanning frequency.
[0164] In a possible implementation, the method further includes:
[0165] When the box is closed, the headset sends a target broadcast signal containing an encryption protocol at a third broadcast frequency; after the box is opened, the headset receives a communication connection signal sent by the electronic device based on the encryption protocol of the target broadcast signal after scanning the box opening broadcast signal, and establishes a communication connection with the electronic device.
[0166] See also Fig.12 , Fig.12 A schematic diagram of the implementation flow of the headset connection method provided in the embodiment of the present application; Fig.12 As shown, the headphone connection method is executed by an electronic device, and the implementation principle of the method is the same as that of the above embodiment, which will not be repeated here. The implementation method of the headphone connection method may include the following steps:
[0167] S1201, after disconnecting from the headset, the electronic device scans, at a third scanning frequency, a target broadcast signal emitted by the headset at a third broadcast frequency in a closed state;
[0168] S1202, after scanning the target broadcast signal, the electronic device continues scanning at a fourth scanning frequency;
[0169] S1203, after the earphone is opened, the electronic device sends a communication connection signal to the earphone based on the scanned target broadcast signal and the opening broadcast signal, and establishes a communication connection with the earphone.
[0170] In a possible implementation, the target broadcast signal includes an encryption protocol; after the headset is opened, the electronic device sends a communication connection signal to the headset based on the scanned target broadcast signal and the opening broadcast signal to establish a communication connection with the headset, including:
[0171] After the earphone is opened, the electronic device sends a communication connection signal to the earphone based on the encryption protocol in the target broadcast signal when scanning the opening broadcast signal, and establishes a communication connection with the earphone.
[0172] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0173] Corresponding to the earphone connection method described in the above embodiment, Fig.13 , Fig.14 , Fig.15 and Fig.16 The structural block diagrams of the earphone connection device provided in the embodiments of the present application are respectively shown. For the convenience of explanation, only the parts related to the embodiments of the present application are shown.
[0174] See also Fig.13 , a structural block diagram of the earphone connection device provided in an embodiment of the present application. Fig.13 As shown, the earphone connection device comprises:
[0175] The first scanning unit 1301 is used to scan a first target broadcast signal at a first scanning frequency in a closed state, where the first target broadcast signal is a broadcast signal sent by a first electronic device at a first broadcast frequency;
[0176] The communication connection unit 1302 is used to send a communication connection signal to the first electronic device based on the scanned first target broadcast signal when the box is opened, so as to establish a communication connection with the first electronic device.
[0177] In one possible implementation, the first target broadcast signal includes a first encryption protocol; the communication connection unit 1302 is further used to send a communication connection signal to the first electronic device based on the first encryption protocol in the scanned first target broadcast signal to establish a communication connection with the first electronic device.
[0178] In a possible implementation, before opening the box, the first scanning unit 1301 is further used for the headset to scan the second target broadcast signal at the first scanning frequency in the box-closed state, where the second target broadcast signal is emitted by the second electronic device at the second broadcast frequency;
[0179] The communication connection unit 1302 is also used to send a communication connection signal to the first electronic device based on scanning the first target broadcast signal, or to send a communication connection signal to the second electronic device based on scanning the second target broadcast signal when the box is opened, so as to establish a communication connection with the first electronic device or the second electronic device.
[0180] In a possible implementation, the first scanning unit 1301 is further configured to, in a closed state, continue scanning at a second scanning frequency if the target broadcast signal is not scanned at the first scanning frequency, where the second scanning frequency is lower than the first scanning frequency.
[0181] See also Fig.14 , a structural block diagram of the earphone connection device provided in an embodiment of the present application. Fig.14 As shown, the earphone connection device comprises:
[0182] The first broadcast unit 1401 is used to send a target broadcast signal at a preset broadcast frequency;
[0183] The first receiving unit 1402 is used to receive a communication connection signal sent by the headset after the headset is unpacked, and establish a communication connection with the headset based on the communication connection signal, wherein the communication connection signal is sent by the headset based on a scanned target broadcast signal when the headset is unpacked.
[0184] See also Fig.15 , a structural block diagram of the earphone connection device provided in an embodiment of the present application. Fig.15 As shown, the earphone connection device comprises:
[0185] The second broadcast unit 1501 is used to send a target broadcast signal at a third broadcast frequency in a closed state, wherein the target broadcast signal is used to instruct the electronic device to continue scanning the target broadcast signal at a fourth scanning frequency after scanning the target broadcast signal at the third scanning frequency;
[0186] The third broadcast unit 1502 is used to send a box opening broadcast signal when the box is opened;
[0187] The second receiving unit 1503 is used 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.
[0188] In one possible implementation, the second broadcast unit 1501 is also used to send a target broadcast signal containing an encryption protocol at a third broadcast frequency when the box is closed; the second receiving unit 1503 is also used to receive, after the box is opened, a communication connection signal sent by the electronic device based on the encryption protocol of the target broadcast signal after scanning the box opening broadcast signal, and establish a communication connection with the electronic device.
[0189] See also Fig.16 , a structural block diagram of the earphone connection device provided in an embodiment of the present application. Fig.16 As shown, the earphone connection device comprises:
[0190] The second scanning unit 1601 is used to scan the target broadcast signal emitted by the headset at the third broadcast frequency in the box-off state at the third scanning frequency after being disconnected from the headset; and continue to scan the target broadcast signal at the fourth scanning frequency after scanning the target broadcast signal;
[0191] The signal sending unit 1602 is used to send a communication connection signal to the headset based on the scanned target broadcast signal and the box opening broadcast signal after the headset is opened, so as to establish a communication connection with the headset.
[0192] In one possible implementation, the target broadcast signal includes an encryption protocol; the signal sending unit 1602 is also used to send a communication connection signal to the headset based on the encryption protocol in the target broadcast signal when scanning the opening broadcast signal after the headset is opened, so as to establish a communication connection with the headset.
[0193] It should be noted that the broadcasting and scanning process between the headset and the electronic device based on low-power Bluetooth in the above-mentioned back-connection mechanism can be implemented at the application layer of the electronic device and the headset software architecture.
[0194] Through the embodiments of the present application, connectable electronic devices that meet the connection status can be determined in advance, without initiating a reconnection judgment for uncertain electronic devices based on historical connection information, which causes time-consuming connection, thereby improving the speed of reconnecting the headset and the electronic device.
[0195] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0196] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or 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 scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0197] The hardware structure of the electronic device involved in the embodiments of the present application is introduced below.
[0198] Fig.17 A schematic structural diagram of an electronic device 100 is shown.
[0199] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0200] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0201] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0202] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0203] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0204] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0205] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0206] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0207] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0208] The UART interface is a universal serial data bus 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, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0209] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0210] 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 processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0211] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0212] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0213] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0214] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0215] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0216] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0217] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0218] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0219] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), Bluetooth Low Energy (BLT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0220] 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 headset is disconnected from the wireless Bluetooth headset.
[0221] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0222] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0223] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0224] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0225] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0226] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0227] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0228] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0229] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0230] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0231] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. 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 disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0232] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0233] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0234] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0235] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0236] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0237] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0238] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0239] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0240] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0241] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0242] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0243] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0244] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0245] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0246] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0247] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0248] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting 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 can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0249] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0250] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0251] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0252] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0253] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0254] The hardware structure of the earphones involved in the embodiments of the present application is introduced below.
[0255] Fig.18 A schematic structural diagram of the earphone 200 is shown.
[0256] The earphone 200 includes an earphone body portion 210 and a housing portion 220 .
[0257] The earphone body 210 includes a first microprocessor, a first communication module, a mode control module, a microphone, a power supply, and an audio output module.
[0258] Among them, the first microprocessor is used to control the operating state of the headset body 210. The first communication module is used to establish a wireless communication connection with an 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 information when using the headset for a call. The power supply supplies power to the headset body 210, and the headset body can be charged by connecting to the power supply of the shell part 220. The audio output module is used to decode and output the transmitted audio signal.
[0259] The housing portion 220 includes a second microprocessor, a second communication module, a power supply, indicator lights and buttons.
[0260] Among them, the second microprocessor is used to control the operating state of the housing 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 encryption protocol when it is disconnected from the electronic device and in a closed box state, or scan the target broadcast signal sent by the electronic device when it is disconnected from the electronic device and in a closed 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 part 220 and automatically charges the earphone body 210 when the earphone body 210 returns to the housing. The indicator light can be used to indicate the power supply status, and the button can be used to restart the earphone system or when it is paired with the electronic device for the first time, the pairing connection can be achieved by pressing the button.
[0261] It should be noted that the structures of the above-mentioned electronic device and earphones are only illustrative, and may include other physical structures based on different application scenarios. The physical structures of the electronic device and earphones are not limited herein.
[0262] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0263] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0264] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0265] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0266] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0267] 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 distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0268] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A headphone connection system, characterized in that: The system includes a headset, a first electronic device, and a second electronic device. The headset includes a headset body and a housing. The headset body is located in the housing. After the headset is connected to and disconnected from the first electronic device and the second electronic device, a reconnection mechanism is provided for the headset to simultaneously establish wireless communication connections with two or more devices. The first electronic device is configured to send a first target broadcast signal at a first broadcast frequency after being disconnected from the headset; The second electronic device is used to send a second target broadcast signal at a second broadcast frequency after being disconnected from the headset; The headset is used to scan at a first scanning frequency when the box is closed, and 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; The headset is further used to broadcast a third target broadcast signal containing an expected connection sequence in a closed state, wherein the expected connection sequence is based on a user's time habit or scene setting when using the headset; The second electronic device is further configured to scan the third target broadcast signal at a fourth scanning frequency after scanning the third target broadcast signal at a third scanning frequency, and initiate a reconnection request to the headset based on the expected connection sequence in the scanned third target broadcast signal after the headset is unpacked; the fourth scanning frequency is greater than the third scanning frequency; The headset is also used to receive a reconnection request sent by the second electronic device after opening the box and after successfully reconnecting with the second electronic device, initiate a reconnection request to the first electronic device that has not scanned the third target broadcast signal based on the expected connection sequence, and establish a reconnection with the first electronic device.
2. The system according to claim 1, characterized in that The first electronic device is further configured to send the first target broadcast signal including the first encryption protocol at the first broadcast frequency after being disconnected from the headset; The headset is further used to send the communication connection signal to the first electronic device based on the first encryption protocol scanned in the first target broadcast signal when the box is opened, so as to establish a communication connection with the first electronic device.
3. The system according to claim 1 or 2, characterized in that: The headset is also used for continuing scanning at a second scanning frequency if the target broadcast signal is not scanned at the first scanning frequency in the box-off state, and the second scanning frequency is smaller than the first scanning frequency.
4. The system according to claim 1, characterized in that The system comprises a headset and a first electronic device, The earphone is used to send out a third target broadcast signal at a third broadcast frequency in a closed state; The first electronic device is configured to scan at a third scanning frequency after being disconnected from the headset, and continue scanning at a fourth scanning frequency after scanning the third target broadcast signal; The first electronic device is further configured to, after the headset is opened, send a communication connection signal to the headset based on the scanned third target broadcast signal and the headset's opening broadcast signal to establish a communication connection with the headset; The fourth scanning frequency is greater than the third scanning frequency.
5. The system according to claim 4, characterized in that The headset is used to send the third target broadcast signal including the third encryption protocol at the third broadcast frequency in a closed state; The first electronic device is further used to send the communication connection signal to the headset when the box opening broadcast signal is scanned based on the third encryption protocol after scanning the third target broadcast signal, so as to establish a communication connection with the headset.
6. The system according to claim 1, characterized in that After the headset is connected to and disconnected from the first electronic device and the second electronic device, The headset is further used to send a third target broadcast signal containing a desired connection sequence at a third broadcast frequency in a closed state; The first electronic device and the second electronic device are further configured to, upon scanning a third target broadcast signal and after the earphone is unboxed, send a communication connection signal to the earphone based on the expected connection sequence, and establish communication connections with the earphones respectively; The expected connection sequence includes identifications of one or two electronic devices to be connected.
7. A method for connecting an earphone, characterized in that: Applied to an earphone, the earphone comprises an earphone body and a shell, the earphone body is located in the shell, and after the earphone is connected to and disconnected from a first electronic device and a second electronic device, the method comprises: For the reconnection mechanism of the headset establishing wireless communication connections with two or more devices at the same time, scanning is performed at a first scanning frequency in a closed box state; When opening the box, a communication connection signal is sent to the first electronic device based on the scanned first target broadcast signal to establish a communication connection with the first electronic device, wherein the first target broadcast signal is a broadcast signal sent by the first electronic device at a first broadcast frequency; The method further comprises: In the box-off state, broadcasting a third target broadcast signal including an expected connection sequence, wherein the expected connection sequence is based on a user's time habit or scenario setting of using the headset; After opening the box, receiving a reconnection request sent by the second electronic device that scans the third target broadcast signal based on the expected connection sequence, establishing a reconnection with the second electronic device, and after successfully reconnecting with the second electronic device, initiating a reconnection request to the first electronic device that did not scan the third target broadcast signal based on the expected connection sequence, and establishing a reconnection with the first electronic device; Among them, the reconnection request sent by the second electronic device to the headset is that the second electronic device scans the third target broadcast signal at a fourth scanning frequency after scanning the third target broadcast signal at a third scanning frequency when the headset is in a closed state, and after the headset is opened, it is sent based on the expected connection order in the scanned third target broadcast signal; the fourth scanning frequency is greater than the third scanning frequency.
8. The method according to claim 7, characterized in that The first target broadcast signal includes a first encryption protocol; the sending of a communication connection signal to the first electronic device based on scanning the first target broadcast signal to establish a communication connection with the first electronic device includes: Based on the first encryption protocol in the scanned first target broadcast signal, the communication connection signal is sent to the first electronic device to establish a communication connection with the first electronic device.
9. The method according to claim 7 or 8, characterized in that: The method further comprises: In the closed box state, if the target broadcast signal is not scanned at the first scanning frequency, scanning is continued at the second scanning frequency, and the second scanning frequency is smaller than the first scanning frequency.
10. The method according to claim 9, characterized in that The method comprises: In the closed box state, a target broadcast signal is sent at a third broadcast frequency, wherein the target broadcast signal is used to instruct the electronic device to continue scanning at a fourth scanning frequency after scanning the target broadcast signal at the third scanning frequency; When the box is opened, a box opening broadcast signal is sent; After opening the box, receiving a communication connection signal sent by the electronic device based on the scanned target broadcast signal and the box opening broadcast signal, and establishing a communication connection with the electronic device; The fourth scanning frequency is greater than the third scanning frequency.
11. The method according to claim 10, characterized in that The method further comprises: In the closed box state, the target broadcast signal including the encryption protocol is sent out at the third broadcast frequency; After the box is opened, the communication connection signal sent by the electronic device based on the encryption protocol in the target broadcast signal after the electronic device scans the box opening broadcast signal is received, and a communication connection is established with the electronic device.
12. The method according to claim 7, characterized in that After the headset is connected to the first electronic device and the second electronic device and then disconnected, the method further includes: In the box-off state, a third target broadcast signal including a desired connection sequence is sent at a third broadcast frequency; The third target broadcast signal is used to instruct the first electronic device and / or the second electronic device to scan the third target broadcast signal and send a communication connection signal to the headset based on the expected connection sequence after the headset is opened, so as to establish a communication connection with the headset respectively; The expected connection sequence includes identifications of one or two electronic devices to be connected.
13. A method for connecting an earphone, characterized in that: Applied to a first electronic device, the first electronic device and the second electronic device are respectively connected to the headset, the headset comprises a headset body and a shell, the headset body is located in the shell, and after the first electronic device and the second electronic device are respectively disconnected from the headset, the method comprises: A back-connection mechanism for the headset to simultaneously establish wireless communication connections with two or more devices, sending a target broadcast signal at a preset broadcast frequency; receiving a communication connection signal sent by the headset after the headset is unpacked, and establishing a communication connection with the headset based on the communication connection signal, wherein the communication connection signal is sent by the headset based on the target broadcast signal scanned when the headset is unpacked; The method further comprises: When the first electronic device does not scan the third target broadcast signal sent by the headset, it receives a first reconnection request sent by the headset and establishes a reconnection with the headset; the first reconnection request is sent by the headset after the headset is unpacked and successfully reconnects with the second electronic device based on the expected connection sequence in the third target broadcast signal based on the expected connection sequence; Among them, the second electronic device is a device that scans the third target broadcast signal broadcast by the headset in a closed state at a third scanning frequency and then scans the third target broadcast signal at a fourth scanning frequency, and after the headset is opened, sends a second reconnection request to the headset based on the expected connection order in the scanned third target broadcast signal; the fourth scanning frequency is greater than the third scanning frequency; and the expected connection order is based on the user's time habits or scene settings when using the headset.
14. The method according to claim 13, characterized in that The method comprises: After disconnecting from the headset, scanning is performed at the third scanning frequency; After scanning the target broadcast signal, continue scanning at the fourth scanning frequency; the target broadcast signal is sent by the headset at the third broadcast frequency in the off state; After the headset is opened, a communication connection signal is sent to the headset based on the scanned target broadcast signal and the headset's opening broadcast signal to establish a communication connection with the headset.
15. The method according to claim 14, characterized in that The target broadcast signal includes an encryption protocol; after the headset is opened, a communication connection signal is sent to the headset based on the scanned target broadcast signal and the headset's opening broadcast signal to establish a communication connection with the headset, including: After the headset is opened, when the opening broadcast signal is scanned, the communication connection signal is sent to the headset based on the encryption protocol in the target broadcast signal to establish a communication connection with the headset.
16. An earphone, characterized in that: The headset comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the method according to any one of claims 7 to 12 when executing the computer program.
17. An electronic device, characterized in that: The headset comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the method according to any one of claims 13 to 15 when executing the computer program.
18. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 7 to 12 or claims 13 to 15 are implemented.
