WO2018023846A1 - 一种与终端建立连接的方法及耳机 - Google Patents

一种与终端建立连接的方法及耳机 Download PDF

Info

Publication number
WO2018023846A1
WO2018023846A1 PCT/CN2016/097146 CN2016097146W WO2018023846A1 WO 2018023846 A1 WO2018023846 A1 WO 2018023846A1 CN 2016097146 W CN2016097146 W CN 2016097146W WO 2018023846 A1 WO2018023846 A1 WO 2018023846A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
connection
earphone
strength
bluetooth
Prior art date
Application number
PCT/CN2016/097146
Other languages
English (en)
French (fr)
Inventor
潘非
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018023846A1 publication Critical patent/WO2018023846A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present invention relates to the field of terminals, and in particular, to a method for establishing a connection with a terminal and an earphone.
  • terminals such as smart phones, tablets, etc.
  • terminals have become an indispensable part of people's daily lives.
  • the functions of music, video and other functions in the terminal are relatively common functions, but in some public occasions, it is often necessary to wear headphones for audio and video listening to prevent influence on others.
  • the previous wired headsets have gradually been replaced by wireless headsets. Since the current wireless headsets are Bluetooth headsets, the audio and video transmitted by the terminal can be received within a preset range.
  • the receiving quality of the Bluetooth headset is strongly related to the distance of the terminal, that is, when the terminal is fixed at a certain position, and the user wears a Bluetooth headset to move, when the user is farther away from the terminal, the received sound is received.
  • the weaker the video signal the more it affects the user.
  • the embodiment of the invention provides a method for establishing a connection with a terminal and an earphone, which can determine whether to switch to another better connection mode according to the signal strength of the connection mode between the earphone and the terminal, thereby ensuring the quality of the audio received by the earphone.
  • a first aspect of the embodiments of the present invention discloses a method for establishing a connection with a terminal, where the method includes: when detecting that the headset is turned on, determining a connection manner between the headset and the terminal; Determining a Bluetooth signal strength between the earphone and the terminal when the connection mode between the terminals is an automatic switching mode; when the Bluetooth signal strength is greater than a first preset strength, the earphone passes the Bluetooth and the Establishing a connection; when detecting that the strength of the Bluetooth signal is less than the first preset When the intensity of the wireless fidelity signal is greater than the second preset strength, the earphone interrupts the Bluetooth connection with the terminal, and establishes a connection with the terminal through wireless fidelity.
  • the method further includes: when detecting that the wireless fidelity is less than When the second preset intensity and the strength of the communication radio frequency signal is greater than the third preset strength, the earphone interrupts the wireless fidelity connection with the terminal, and establishes a connection with the terminal by using a radio frequency signal.
  • the method further includes: when detecting the location When the radio frequency signal is less than the third preset strength, the earphone interrupts communication with the radio frequency signal between the terminals.
  • the method includes: when detecting the When the Bluetooth signal is greater than the first preset strength, the earphone interrupts radio frequency signal communication with the terminal, and establishes a connection with the terminal through the Bluetooth.
  • the method further includes: when detecting the location When the Bluetooth signal is less than the first preset strength and the wireless fidelity signal strength is greater than the second preset strength, the earphone interrupts radio frequency signal communication with the terminal, through the wireless fidelity and the The terminal establishes a connection.
  • the wireless fidelity and the terminal After the connection is established, the method further includes: when detecting that the strength of the Bluetooth signal is greater than the first preset strength, the headset interrupts a wireless fidelity connection with the terminal, by using the Bluetooth and The terminal establishes a connection.
  • a second aspect of the present invention discloses an earphone, the earphone comprising: a determining unit, configured to determine a connection manner between the earphone and the terminal when detecting that the earphone is turned on; the determining unit is further configured to Determining a Bluetooth signal strength between the earphone and the terminal when a connection mode between the earphone and the terminal is an automatic switching mode; a Bluetooth connection unit configured to be the Bluetooth signal When the intensity is greater than the first preset strength, the headset establishes a connection with the terminal through Bluetooth; and the interruption unit is configured to detect that the strength of the Bluetooth signal is less than the first preset strength and the strength of the wireless fidelity signal When the second preset intensity is greater, the earphone interrupts the Bluetooth connection with the terminal; the wireless fidelity connection unit is further configured to establish a connection with the terminal by wireless fidelity.
  • the earphone further includes a radio frequency connection unit, and the interruption unit is further configured to: when detecting that the wireless fidelity is less than the When the intensity of the communication RF signal is greater than the third preset strength, the earphone interrupts the wireless fidelity connection with the terminal; the radio frequency connection unit is configured to establish with the terminal by using a radio frequency signal connection.
  • the interrupting unit is configured to: when detecting that the radio frequency signal is less than the third preset strength The earphone interrupts communication with the radio frequency signal between the terminals.
  • the interrupting unit is configured to: when detecting that the Bluetooth signal is greater than the first preset strength, The earphone interrupts radio frequency signal communication with the terminal; the Bluetooth connection unit is configured to establish a connection with the terminal through the Bluetooth.
  • the interrupting unit is configured to: when detecting that the Bluetooth signal is smaller than the first preset strength When the wireless fidelity signal strength is greater than the second preset strength, the earphone interrupts radio frequency signal communication with the terminal; the wireless fidelity connection unit is configured to pass the wireless fidelity and the terminal establish connection.
  • the headset interrupts a wireless fidelity connection with the terminal;
  • the Bluetooth connection unit is configured to establish a connection with the terminal through the Bluetooth .
  • the headset when detecting that the earphone is turned on, determining a connection manner between the earphone and the terminal; when the connection mode between the earphone and the terminal is automatic cutting Determining a Bluetooth signal strength between the headset and the terminal when the mode is changed; when the Bluetooth signal strength is greater than the first preset strength, the headset establishes a connection with the terminal through Bluetooth; when detecting the When the strength of the Bluetooth signal is less than the first preset strength and the strength of the wireless fidelity signal is greater than the second preset strength, the headset interrupts the Bluetooth connection with the terminal, and establishes with the terminal through wireless fidelity. connection. Therefore, by implementing the technical solution provided by the present invention, it is possible to determine whether to switch to another better connection mode according to the signal strength of the connection mode between the earphone and the terminal, thereby ensuring the quality of the audio received by the earphone.
  • FIG. 1 is a schematic flowchart of a method for establishing a connection with a terminal according to an embodiment of the present disclosure
  • FIG. 1a is a schematic structural diagram of an earphone according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of another method for establishing a connection with a terminal according to an embodiment of the present invention
  • FIG. 2a is a schematic diagram of a connection mode switching between a headset and a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a physical device of a terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for establishing a connection with a terminal and an earphone, which can determine whether to switch to another better connection mode according to the signal strength of the connection mode between the earphone and the terminal, thereby ensuring the quality of the audio received by the earphone.
  • a method for cleaning a memory comprising: detecting a size of available memory in a terminal; and if the available memory is less than a first preset threshold, an application that is in a running state Matches the whitelist; determines the target application that failed the match; terminates the run of the target application.
  • FIG. 1 is a schematic flowchart diagram of a method for establishing a connection with a terminal according to an embodiment of the present invention. As shown in FIG. 1 , a method for establishing a connection with a terminal according to an embodiment of the present invention includes the following content:
  • connection mode between the earphone and the terminal may be a certain connection mode selected by the user, or an automatic switching mode in which the earphone selects according to a specific scene.
  • Figure 1a depicts a specific earphone structure.
  • the headset includes a communication module, a GNSS (Global Navigation Satellite System) positioning module, and an audio module.
  • GNSS Global Navigation Satellite System
  • the communication module includes Bluetooth (BT), Wireless Fidelity (WIFI), and Radio Frequency (RF).
  • BT is a wireless technology standard that enables short-distance data exchange between fixed devices, mobile devices, and personal area networks (UHF radio waves in the ISM band of 2.4-2.485 GHz);
  • WIFI is a PCs, handheld devices (such as pads, mobile phones) and other terminals have been wirelessly connected to each other;
  • RF is a communication RF, based on 2G/3G/4G communication.
  • the GNSS positioning module supports GPS in the United States, GLONASS in Russia, and BDS in China.
  • the audio module includes a speaker and a microphone, and the headset can perform the following functions:
  • the GNSS positioning module can receive the location information in real time, and share the location information with the terminal through the communication module;
  • the audio module can receive and transmit audio signals, and establish data transmission between the communication module and the terminal;
  • the communication connection mode between the earphone and the terminal can be selected according to the user's customization, or can be automatically selected and switched according to the actual application scenario.
  • S102 Determine a Bluetooth signal strength between the earphone and the terminal when a connection mode between the earphone and the terminal is an automatic switching mode.
  • BT signal strength can be defined as strong, medium, and weak.
  • the definitions of BT signal strength are as follows:
  • RSSI_bt The signal strength of BT, the size of RSSI_bt will vary with the environment
  • UL_bt the upper limit of the signal strength of BT, which is a theoretically calculated value and is a fixed value
  • DL_bt the lower limit of the signal strength of BT, which is a theoretically calculated value, which is a fixed value, and this value needs to be greater than the sensitivity of BT;
  • MUL_bt the upper limit of the signal strength when the signal strength of BT is medium, which is the boundary condition of the strong and intermediate BT signal strength, which is a theoretical calculation value and is a fixed value;
  • MDL_bt The lower limit of the signal strength when the signal strength of BT is medium. This value is the boundary condition of the BT signal strength and the weak boundary condition. It is a theoretical calculation value and is a fixed value.
  • the headset When the Bluetooth signal strength is greater than the first preset strength, the headset establishes a connection with the terminal by using Bluetooth.
  • the first preset strength may be any one of DL_bt, MUL_bt, and MDL_bt. This embodiment does not limit the first preset strength here.
  • the headset When detecting that the strength of the Bluetooth signal is less than the first preset strength and the strength of the wireless fidelity signal is greater than the second preset strength, the headset interrupts the Bluetooth connection with the terminal, and wirelessly Fidelity establishes a connection with the terminal.
  • the WIFI signal strength can be defined as strong, medium, and weak.
  • the definitions of WIFI signal strength are as follows:
  • RSSI_WIFI The signal strength of WIFI, the size of RSSI_WIFI value will vary with the environment;
  • UL_WIFI the upper limit of the signal strength of WIFI, which is a theoretically calculated value and is a fixed value
  • DL_WIFI the lower limit of the signal strength of WIFI, the lower limit is the theoretical calculated value, which is a fixed value, and this value needs to be greater than the sensitivity of WIFI;
  • MUL_WIFI The upper limit of the signal strength when the signal strength of WIFI is medium. This value is the boundary condition of the strong and medium WIFI signal strength, which is the theoretical calculation value and is a fixed value;
  • MDL_WIFI The lower limit of the signal strength when the signal strength of WIFI is medium. This value is the boundary condition of the WIFI signal strength and the weak boundary condition. It is a theoretical calculation value and is a fixed value.
  • the signal strength of the WIFI is weak, it is necessary to ensure that the DL_WIFI is greater than the sensitivity of the WIFI, otherwise the data transmitted by the headset through the WIFI has a high bit error rate, poor call quality, and even disconnection.
  • the second preset strength may be any one of DL_WIFI, MUL_WIFI, and MDL_WIFI. This embodiment does not limit the second preset strength here.
  • the headset when detecting that the earphone is turned on, determining a connection mode between the earphone and the terminal; when the connection mode between the earphone and the terminal is an automatic switching mode Determining a Bluetooth signal strength between the earphone and the terminal; when the Bluetooth signal strength is greater than a first preset strength, the headset establishes a connection with the terminal through Bluetooth; when the Bluetooth signal is detected When the strength is less than the first preset strength and the strength of the wireless fidelity signal is greater than the second preset strength, the headset interrupts the Bluetooth connection with the terminal, and establishes a connection with the terminal through wireless fidelity. Therefore, by implementing the technical solution provided by the present invention, it is possible to determine whether to switch to another better connection mode according to the signal strength of the connection mode between the earphone and the terminal, thereby ensuring The quality of the audio received by the headset.
  • FIG. 2 is a schematic flowchart diagram of another method for establishing a connection with a terminal according to an embodiment of the present invention.
  • another method for establishing a connection with a terminal provided by an embodiment of the present invention may include the following content:
  • S202 Determine a Bluetooth signal strength between the earphone and the terminal when a connection mode between the earphone and the terminal is an automatic switching mode.
  • the headset When the Bluetooth signal strength is greater than the first preset strength, the headset establishes a connection with the terminal by using Bluetooth.
  • the headset interrupts the Bluetooth connection with the terminal, and wirelessly Fidelity establishes a connection with the terminal.
  • the headset When detecting that the strength of the Bluetooth signal is greater than the first preset strength, the headset interrupts a wireless fidelity connection with the terminal, and establishes a connection with the terminal by using the Bluetooth.
  • the earphone When detecting that the wireless fidelity intensity is less than the second preset strength and the strength of the communication radio frequency signal is greater than a third preset strength, the earphone interrupts a wireless fidelity connection with the terminal. A connection is established with the terminal through a radio frequency signal.
  • the RF signal strength can be defined as strong, medium, and weak, and the RF signal strengths are defined as follows:
  • RSSI_rf The signal strength of the RF, the size of the RSSI_rf value will vary with the environment;
  • UL_rf the upper limit of the signal strength of the RF, which is a theoretically calculated value and is a fixed value;
  • DL_rf the lower limit of the signal strength of RF, which is a theoretically calculated value, which is a fixed value, and this value needs to be greater than the sensitivity of RF;
  • MUL_rf The upper limit of the signal strength when the signal strength of the RF is medium. This value is the RF signal strength.
  • the boundary conditions of strong and medium are theoretical calculations and are fixed values;
  • MDL_rf The lower limit of the signal strength when the signal strength of RF is medium. This value is the neutral boundary condition of the RF signal strength and is a theoretical calculation value, which is a fixed value.
  • the signal strength of the RF is weak, it is necessary to ensure that the DL_rf is greater than the sensitivity of the RF. Otherwise, the data transmitted by the earphone through the RF has a high bit error rate, poor call quality, and even disconnection.
  • the third preset strength may be any one of DL_rf, MUL_rf, and MDL_rf. This embodiment does not limit the third preset strength here.
  • the radio frequency signal needs to be considered to be smaller than the third preset strength, as shown in S207.
  • the Bluetooth signal is detected to be smaller than the first preset strength and the wireless fidelity signal strength is greater than the second preset.
  • the strength please see S209.
  • the earphone When detecting that the radio frequency signal is less than the third preset strength, the earphone interrupts radio frequency signal communication with the terminal.
  • the headset When detecting that the Bluetooth signal is greater than the first preset strength, the headset interrupts radio frequency signal communication with the terminal, and establishes a connection with the terminal by using the Bluetooth.
  • the headset When detecting that the Bluetooth signal is less than the first preset strength and the wireless fidelity signal strength is greater than a second preset strength, the headset interrupts radio frequency signal communication with the terminal, Wireless fidelity establishes a connection with the terminal.
  • connection mode can be switched according to the signal strength, thereby ensuring the earphone.
  • the quality of the received audio is a simple digitized value
  • the user does not customize The way the headset is connected to the mobile terminal defaults to the automatic selection mode.
  • the automatic selection mode follows the following rules:
  • WIFI is preferentially used as the connection mode
  • the earphone can monitor the WIFI/BT signal.
  • the signal strength of WIFI/BT is greater than the lower limit of the weak signal, it can be switched to WIFI or BT as the connection mode, and BT is preferred as the connection mode;
  • the earphone can detect the signal of BT. When the signal strength of BT is greater than the lower limit of the weak signal, it can be switched to BT as the connection mode.
  • the user can customize the connection manner between the headset and the mobile terminal, and the user customization can be divided into two types: full customization and semi-customization:
  • the user specifies one of BT/WIFI/RF as the connection mode between the earphone and the mobile terminal, and the earphone can switch the connection mode according to the application scenario.
  • the algorithm flow chart for automatically selecting the headset and switching the connection between the headset and the mobile terminal is as follows:
  • the headset is placed in the Auto state, and the headset automatically selects and switches the connection mode between the headset and the mobile terminal;
  • the headset preferentially determines the signal state of the BT between the headset and the mobile terminal
  • RSSI_bt>DL_bt select BT as the connection between the headset and the mobile terminal
  • RSSI_bt ⁇ DL_bt, does not select BT as the connection method between the headset and the mobile terminal;
  • the signal state of the WIFI between the earphone and the mobile terminal is preferentially determined.
  • RSSI_WIFI ⁇ DL_WIFI, do not select WIFI as the connection between the headset and the mobile terminal formula
  • RF is selected as the connection method, ie
  • RSSI_WIFI ⁇ DL_WIFI&&RSSI_rf>DL_rf, select RF as the connection between the headset and the mobile terminal
  • the earphone can intermittently search for the signal state of the BT between the earphone and the mobile terminal.
  • the earphone can intermittently search for the BT/WIFI signal state between the earphone and the mobile terminal.
  • RSSI_WIFI ⁇ DL_WIFI, keeping the RF as the connection between the headset and the mobile terminal;
  • the semicircular ABE of Fig. 2a is the signal coverage area of BT, in which the signal strength of BT is as follows:
  • BT can be used as the connection mode between the headset and the mobile terminal, which can ensure the communication quality
  • the strength of the BT signal and the signal strength of the WIFI are as follows:
  • the BCDE area is defined as a WIFI signal area, and WIFI can be used as a connection mode between the earphone and the mobile terminal in this area, which can ensure communication quality;
  • This area is defined as an RF signal. In this area, only RF can be used as the connection method between the headset and the mobile terminal. If BT or WIFI is used as the connection method, the communication quality cannot be guaranteed.
  • FIG. 3 is a schematic structural diagram of an earphone according to an embodiment of the present invention.
  • an embodiment of the present invention provides an earphone 300.
  • the terminal 300 includes a determining unit 301, a Bluetooth connecting unit 302, an interrupting unit 303, and a wireless fidelity connecting unit 304.
  • the determining unit 301 is configured to determine a connection manner between the earphone and the terminal when detecting that the earphone is turned on;
  • the determining unit 301 is further configured to determine a Bluetooth signal strength between the earphone and the terminal when a connection mode between the earphone and the terminal is an automatic switching mode;
  • the Bluetooth connection unit 302 is configured to establish, when the Bluetooth signal strength is greater than the first preset strength, the headset establishes a connection with the terminal by using Bluetooth;
  • the interrupting unit 303 is configured to: when detecting that the intensity of the Bluetooth signal is less than the first preset intensity and the intensity of the wireless fidelity signal is greater than the second preset strength, the headset interrupts the Bluetooth between the terminal and the terminal connection;
  • the wireless fidelity connection unit 304 is further configured to establish a connection with the terminal by wireless fidelity.
  • the determining unit 301, the Bluetooth connection unit 302, the interruption unit 303, and the wireless fidelity connection unit 304 may be configured to perform the methods described in steps S101 to S104 in Embodiment 1, and the specific description is shown in Embodiment 1 for the method. Description, no longer repeat here.
  • FIG. 4 is a schematic structural diagram of an earphone according to an embodiment of the present invention.
  • an embodiment of the present invention provides an earphone 400, wherein the earphone 400 includes a determining unit 401, a Bluetooth connecting unit 402, an interrupting unit 403, a wireless fidelity connecting unit 404, and a radio frequency connecting unit. 405.
  • the determining unit 401 is configured to determine a connection manner between the earphone and the terminal when detecting that the earphone is turned on;
  • the determining unit 401 is further configured to determine a Bluetooth signal strength between the earphone and the terminal when a connection mode between the earphone and the terminal is an automatic switching mode;
  • the Bluetooth connection unit 402 is configured to establish, when the Bluetooth signal strength is greater than the first preset strength, the headset establishes a connection with the terminal by using Bluetooth;
  • the interrupting unit 403 is configured to: when detecting that the intensity of the Bluetooth signal is less than the first preset intensity and the intensity of the wireless fidelity signal is greater than the second preset strength, the headset interrupts the Bluetooth between the terminal and the terminal connection;
  • the wireless fidelity connection unit 404 is further configured to establish a connection with the terminal by wireless fidelity.
  • the interrupting unit 403 is further configured to: when detecting that the wireless fidelity intensity is less than the second preset intensity and the strength of the communication radio frequency signal is greater than the third preset intensity, the earphone is interrupted and the terminal is Wireless fidelity connection;
  • the radio frequency connection unit 405 is configured to establish a connection with the terminal by using a radio frequency signal.
  • the interrupting unit 403 is configured to interrupt the radio frequency signal communication with the terminal when detecting that the radio frequency signal is less than the third preset intensity.
  • the interrupting unit 403 is configured to: when detecting that the Bluetooth signal is greater than the first preset strength, the earphone interrupts radio frequency signal communication with the terminal;
  • the Bluetooth connection unit 402 is configured to establish a connection with the terminal through the Bluetooth.
  • the interrupting unit 403 is configured to: when detecting that the Bluetooth signal is less than the first preset strength and the wireless fidelity signal strength is greater than a second preset strength, the headset is interrupted and the terminal is Radio frequency signal communication;
  • the wireless fidelity connection unit 404 is configured to establish a connection with the terminal through the wireless fidelity.
  • the interrupting unit 403 is configured to: when detecting that the strength of the Bluetooth signal is greater than the first preset strength, the earphone interrupts a wireless fidelity connection with the terminal; the Bluetooth connection unit 402, It is arranged to establish a connection with the terminal through the Bluetooth.
  • the determination unit 401, the Bluetooth connection unit 402, the interruption unit 403, the wireless fidelity connection unit 404, and the radio frequency connection unit 405 may be configured to perform the methods described in steps S201 to S209 in Embodiment 2. For details, see Embodiment 2 The description of the method will not be repeated here.
  • an earphone 500 is provided.
  • the earphone 500 includes hardware such as a CPU 501, a memory 502, a bus 503, a display screen 504, and the like.
  • the CPU 501 executes a program that is stored in the memory 502 in advance, and the execution process specifically includes:
  • the headset When the Bluetooth signal strength is greater than the first preset strength, the headset establishes a connection with the terminal through Bluetooth;
  • the headset When it is detected that the strength of the Bluetooth signal is less than the first preset strength and the strength of the wireless fidelity signal is greater than the second preset strength, the headset interrupts the Bluetooth connection with the terminal, and is wirelessly fidelity Establishing a connection with the terminal.
  • the performing process further includes:
  • the earphone When detecting that the wireless fidelity intensity is less than the second preset strength and the strength of the communication radio frequency signal is greater than the third preset strength, the earphone interrupts the wireless fidelity connection with the terminal, and passes the radio frequency A signal establishes a connection with the terminal.
  • the performing process further includes:
  • the earphone When detecting that the radio frequency signal is less than the third preset strength, the earphone interrupts communication with a radio frequency signal between the terminals.
  • the performing process further includes:
  • the earphone When detecting that the Bluetooth signal is greater than the first preset strength, the earphone interrupts radio frequency signal communication with the terminal, and establishes a connection with the terminal through the Bluetooth.
  • the performing process further includes:
  • the earphone When detecting that the Bluetooth signal is less than the first preset strength and the wireless fidelity signal strength is greater than a second preset strength, the earphone interrupts radio frequency signal communication with the terminal, by using the wireless Fidelity establishes a connection with the terminal.
  • the performing process further includes:
  • the earphone When detecting that the strength of the Bluetooth signal is greater than the first preset strength, the earphone interrupts a wireless fidelity connection with the terminal, and establishes a connection with the terminal through the Bluetooth.
  • the headset when detecting that the earphone is turned on, determining a connection mode between the earphone and the terminal; when the connection mode between the earphone and the terminal is an automatic switching mode Determining a Bluetooth signal strength between the earphone and the terminal; when the Bluetooth signal is strong When the degree is greater than the first preset strength, the headset establishes a connection with the terminal through Bluetooth; when detecting that the strength of the Bluetooth signal is less than the first preset strength and the strength of the wireless fidelity signal is greater than the second preset In case of intensity, the earphone interrupts the Bluetooth connection with the terminal, and establishes a connection with the terminal through wireless fidelity. Therefore, by implementing the technical solution provided by the present invention, it is possible to determine whether to switch to another better connection mode according to the signal strength of the connection mode between the earphone and the terminal, thereby ensuring the quality of the audio received by the earphone.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种与终端建立连接的方法及耳机。所述方法包括:当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。从而可知,通过实施本发明提供的技术方案,能够根据耳机与终端之间的连接方式的信号强度确定是否切换到另一种更优的连接方式,从而确保耳机接收音频的质量。

Description

一种与终端建立连接的方法及耳机
本申请要求于2016年8月1日提交中国专利局,申请号为201610621104.3、发明名称为“一种与终端建立连接的方法及耳机”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及终端领域,具体涉及了一种与终端建立连接的方法及耳机。
背景技术
近年来,随着终端(例如智能手机、平板电脑等)的发展与普及,终端在人们日常生活中已经成为不可或缺的一部分。终端中的音乐、视频等功能都是较为常用的功能,但是在一些公开场合往往需要佩戴耳机进行音视频收听以防止影响他人。
随着科技的进步,以往的有线耳机逐步被无线耳机所替代,由于现在的无线耳机为蓝牙耳机,可以在预设范围内接收终端传输的音视频。
但是,蓝牙耳机的接收质量与终端的距离强相关,也就是说,当终端固定在某个位置,而用户佩戴蓝牙耳机进行移动,当该用户离终端距离越来越远时,接收到的音视频信号就越弱,从而会影响用户的使用。
发明内容
本发明实施例提供了一种与终端建立连接的方法及耳机,能够根据耳机与终端之间的连接方式的信号强度确定是否切换到另一种更优的连接方式,从而确保耳机接收音频的质量。
本发明实施例第一方面公开了一种与终端建立连接的方法,所述方法包括:当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;当检测到所述蓝牙信号的强度小于所述第一预设 强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。
结合第一方面,在第一方面的第一种可能的实现方式中,所述通过无线保真与所述终端建立连接之后,所述方法还包括:当检测到所述无线保真的强度小于所述第二预设强度且通信射频信号的强度大于第三预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过射频信号与所述终端建立连接。
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述通过射频信号与所述终端建立连接之后,所述方法还包括:当检测到所述射频信号小于所述第三预设强度时,所述耳机中断与所述终端之间的射频信号通讯。
结合第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,,所述通过射频信号与所述终端建立连接之后,所述方法包括:当检测所述蓝牙信号大于所述第一预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述蓝牙与所述终端建立连接。
结合第一方面的第一种可能的实现方式,在第一方面的第四种可能的实现方式中,所述通过射频信号与所述终端建立连接之后,所述方法还包括:当检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述无线保真与所述终端建立连接。
结合第一方面至第一方面的第四种可能的实现方式中的任意一种可能的实现方式,在第一方面的第五种可能的实现方式中,所述通过无线保真与所述终端建立连接之后,所述方法还包括:当检测到所述蓝牙信号的强度大于所述第一预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过所述蓝牙与所述终端建立连接。
本发明第二方面公开了一种耳机,所述耳机包括:确定单元,设置为当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;所述确定单元,还设置为当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;蓝牙连接单元,设置为当所述蓝牙信号 强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;中断单元,设置为当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接;无线保真连接单元,还设置为通过无线保真与所述终端建立连接。
结合第二方面,在第二方面的第一种可能的实现方式中,所述耳机还包括射频连接单元;所述中断单元,还设置为当检测到所述无线保真的强度小于所述第二预设强度且通信射频信号的强度大于第三预设强度时,所述耳机中断与所述终端之间的无线保真连接;所述射频连接单元,设置为通过射频信号与所述终端建立连接。
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述中断单元,设置为当检测到所述射频信号小于所述第三预设强度时,所述耳机中断与所述终端之间的射频信号通讯。
结合第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,所述中断单元,设置为当检测所述蓝牙信号大于所述第一预设强度时,所述耳机中断与所述终端之间的射频信号通信;所述蓝牙连接单元,设置为通过所述蓝牙与所述终端建立连接。
结合第二方面的第一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述中断单元,设置为当检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度时,所述耳机中断与所述终端之间的射频信号通信;所述无线保真连接单元,设置为通过所述无线保真与所述终端建立连接。
结合第二方面至第二方面的第四种可能的实现方式中的任意一种可能的实现方式,在第二方面的第五种可能的实现方式中,所述中断单元,设置为当检测到所述蓝牙信号的强度大于所述第一预设强度时,所述耳机中断与所述终端之间的无线保真连接;所述蓝牙连接单元,设置为通过所述蓝牙与所述终端建立连接。
可以看出,本发明实施例的方案中,当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;当所述耳机与所述终端之间的连接方式为自动切 换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。从而可知,通过实施本发明提供的技术方案,能够根据耳机与终端之间的连接方式的信号强度确定是否切换到另一种更优的连接方式,从而确保耳机接收音频的质量。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种与终端建立连接的方法的流程示意图;
图1a为本发明实施例提供的一种耳机结构示意图;
图2为本发明实施例提供的另一种与终端建立连接的方法的流程示意图;
图2a为本发明实施例提供的一种耳机与移动终端之间的连接方式切换示意图;
图3为本发明实施例提供的一种终端的结构示意图;
图4为本发明实施例提供的另一种终端的结构示意图;
图5为本发明实施例提供的一种终端的实体装置结构示意图。
具体实施方式
本发明实施例提供了一种与终端建立连接的方法及耳机,能够根据耳机与终端之间的连接方式的信号强度确定是否切换到另一种更优的连接方式,从而确保耳机接收音频的质量。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施 例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本发明的一个实施例中公开了一种清理内存的方法,所述方法包括:检测终端中可用内存的大小;若所述可用内存小于第一预设阈值时,将处于运行状态的应用程序与白名单进行匹配;确定匹配失败的目标应用程序;终止所述目标应用程序的运行。
请参阅图1,图1是本发明一个实施例提供的一种与终端建立连接的方法的流程示意图。其中,如图1所示,本发明的一个实施例提供的一种与终端建立连接的方法包括以下内容:
S101、当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式。
其中,需要指出的是,耳机与终端之间的连接方式可以是用户选定的某种连接方式,也可以耳机根据具体场景进行选择的自动切换模式。
如图1a所示,该图1a描述一种具体的耳机结构。该耳机包括通信模块、GNSS(Global Navigation Satellite System,全球卫星导航系统)定位模块和音频模块。
其中,通信模块包括蓝牙(Bluetooth,BT),无线保真(Wireless Fidelity,WIFI)以及射频(Radio Frequency,RF)。具体的,BT是一种无线技术标准,可实现固定设备、移动设备和个人域网之间的短距离数据交换(使用2.4-2.485GHz的ISM波段的UHF无线电波);WIFI是一种可以将个人电脑、手持设备(如pad、手机)等终端已无线互相连接的技术;RF是一种通信射频,是基于2G/3G/4G的通信。
GNSS定位模块支持美国的GPS、俄罗斯的GLONASS和中国的BDS。
音频模块包括喇叭和麦克,该耳机可以实现如下功能:
(1)与终端共享位置信息,GNSS定位模块可以实时接收位置信息,并通过通信模块将位置信息与终端共享;
(2)耳机与终端语言数据的传输,音频模块可以接收和发射音频的信号,通过通信模块与终端之间建立数据传输;
(3)耳机与终端之间的通信连接方式可以根据用户自定义来选择,也可以根据实际的应用场景来进行自动选择和切换。
S102、当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度。
举例来说,BT信号强度可以定义为强、中、弱,BT信号强度的定义分别如下:
RSSI_bt:BT的信号强度,RSSI_bt值的大小会随环境而变化;
UL_bt:BT的信号强度的上限,该上限值为理论计算值,是定值;
DL_bt:BT的信号强度的下限,该下限值为理论计算值,是定值,且这个值需要大于BT的灵敏度;
MUL_bt:BT的信号强度为中时,信号强度的上限,该值是BT信号强度强和中的边界条件,为理论计算值,是定值;
MDL_bt:BT的信号强度为中时,信号强度的下限,该值是BT信号强度中和弱的边界条件,为理论计算值,是定值。
MUL_bt<RSSI_bt<=UL_bt时,BT的信号强度为强;
MDL_bt<RSSI_bt<=MUL_bt时,BT的信号强度为中;
DL_bt<RSSI_bt<=MDL_bt时,BT的信号强度为弱。
BT的信号强度为弱时,需要保证DL_bt大于BT的灵敏度,否则导致耳机通过BT传输的数据误码率高,通话质量差,甚至断线。
S103、当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接。
其中,需要指出的是,第一预设强度可以是DL_bt、MUL_bt、MDL_bt中的任何一个值。本实施例在此对第一预设强度不做限制。
S104、当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。
举例来说,WIFI信号强度可以定义为强、中、弱,WIFI信号强度的定义分别如下:
RSSI_WIFI:WIFI的信号强度,RSSI_WIFI值的大小会随环境而变化;
UL_WIFI:WIFI的信号强度的上限,该上限值为理论计算值,是定值;
DL_WIFI:WIFI的信号强度的下限,该下限值为理论计算值,是定值,且这个值需要大于WIFI的灵敏度;
MUL_WIFI:WIFI的信号强度为中时,信号强度的上限,该值是WIFI信号强度强和中的边界条件,为理论计算值,是定值;
MDL_WIFI:WIFI的信号强度为中时,信号强度的下限,该值是WIFI信号强度中和弱的边界条件,为理论计算值,是定值。
MUL_WIFI<RSSI_WIFI<=UL_WIFI时,WIFI的信号强度为强;
MDL_WIFI<RSSI_WIFI<=MUL_WIFI时,WIFI的信号强度为中;
DL_WIFI<RSSI_WIFI<=MDL_WIFI时,WIFI的信号强度为弱。
WIFI的信号强度为弱时,需要保证DL_WIFI大于WIFI的灵敏度,否则导致耳机通过WIFI传输的数据误码率高,通话质量差,甚至断线。
其中,需要指出的是,第二预设强度可以是DL_WIFI、MUL_WIFI、MDL_WIFI中的任何一个值。本实施例在此对第二预设强度不做限制。
可以看出,本发明实施例的方案中,当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。从而可知,通过实施本发明提供的技术方案,能够根据耳机与终端之间的连接方式的信号强度确定是否切换到另一种更优的连接方式,从而确 保耳机接收音频的质量。
请参阅图2,图2是本发明的一个实施例提供的另一种与终端建立连接的方法的流程示意图。其中,如图2所示,本发明的一个实施例提供的另一种与终端建立连接的方法可以包括以下内容:
S201、当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式。
S202、当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度。
S203、当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接。
S204、当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。
其中,需要指出的是,通过无线保真与所述终端建立连接之后,还要考虑所述蓝牙信号的强度大于所述第一预设强度的情况,请见S205;
其中,需要指出的是,所述通过无线保真与所述终端建立连接之后,还需要考虑无线保真的强度小于所述第二预设强度的情况,请见S206。
S205、当检测到所述蓝牙信号的强度大于所述第一预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过所述蓝牙与所述终端建立连接。
S206、当检测到所述无线保真的强度小于所述第二预设强度且通信射频信号的强度大于第三预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过射频信号与所述终端建立连接。
其中,举例来说,RF信号强度可以定义为强、中、弱,RF信号强度的定义分别如下:
RSSI_rf:RF的信号强度,RSSI_rf值的大小会随环境而变化;
UL_rf:RF的信号强度的上限,该上限值为理论计算值,是定值;
DL_rf:RF的信号强度的下限,该下限值为理论计算值,是定值,且这个值需要大于RF的灵敏度;
MUL_rf:RF的信号强度为中时,信号强度的上限,该值是RF信号强度 强和中的边界条件,为理论计算值,是定值;
MDL_rf:RF的信号强度为中时,信号强度的下限,该值是RF信号强度中和弱的边界条件,为理论计算值,是定值。
MUL_rf<RSSI_rf<=UL_rf时,RF的信号强度为强;
MDL_rf<RSSI_rf<=MUL_rf时,RF的信号强度为中;
DL_rf<RSSI_rf<=MDL_rf时,RF的信号强度为弱。
RF的信号强度为弱时,需要保证DL_rf大于RF的灵敏度,否则导致耳机通过RF传输的数据误码率高,通话质量差,甚至断线。
其中,需要指出的是,第三预设强度可以是DL_rf、MUL_rf、MDL_rf中的任何一个值。本实施例在此对第三预设强度不做限制。
其中,需要指出的是,所述通过射频信号与所述终端建立连接之后,还需要考虑所述射频信号小于所述第三预设强度的情况,请见S207。
其中,需要指出的是,所述通过射频信号与所述终端建立连接之后,还需要考虑所述蓝牙信号大于所述第一预设强度的情况,请见S208。
其中,需要指出的是,所述通过射频信号与所述终端建立连接之后,还需要考虑检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度的情况,请见S209。
S207、当检测到所述射频信号小于所述第三预设强度时,所述耳机中断与所述终端之间的射频信号通讯。
S208、当检测到所述蓝牙信号大于所述第一预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述蓝牙与所述终端建立连接。
S209、当检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述无线保真与所述终端建立连接。
可以看出,本发明实施例的方案中扩充了根据具体场景实现WIFI、BT与RF之间切换的步骤,通过实施本发明提供的技术方案,能够根据信号强度进行连接方式的切换,从而保证耳机接收到的音频的质量。
可选的,在本发明的另一个实施例中,耳机开启后,用户没有进行自定义 耳机与移动终端的连接方式,则默认为自动选择模式,自动选择模式遵循下面的规则:
(1)优先使用BT作为连接方式;
(2)若BT信号强度为弱时,且RSSI_bt<=DL_bt时,优先使用WIFI作为连接方式;
(3)若WIFI信号强度为弱时,且RSSI_WIFI<=DL_WIFI时,使用RF作为连接方式;
(4)使用RF作为连接方式时,耳机可以监测WIFI/BT的信号,WIFI/BT的信号强度大于弱信号的下限时,可以切换到WIFI或者BT作为连接方式,优先选择BT作为连接方式;
(5)使用WIFI作为连接方式时,耳机可以检测BT的信号,BT的信号强度大于弱信号的下限时,可以切换到BT作为连接方式。
可选的,在本发明的另一个实施例中,耳机开后,用户可以自定义耳机与移动终端之间的连接方式,用户自定义可以分为全自定义和半自定义两种:
(1)全自定义,用户指定BT/WIFI/RF其中一种作为耳机与移动终端之间的连接方式,且不可切换;
(2)半自定义,用户指定BT/WIFI/RF其中一种作为耳机与移动终端之间的连接方式,耳机可以根据应用场景来切换连接方式。
耳机自动选择、切换耳机与移动终端之间的连接方式的算法流程图如下:
(1)耳机置于Auto状态,耳机自动选择、切换耳机与移动终端之间的连接方式;
(2)耳机优先判断耳机与移动终端之间BT的信号状态,
RSSI_bt>DL_bt,选择BT作为耳机与移动终端之间的连接方式,
RSSI_bt<=DL_bt,不选择BT作为耳机与移动终端之间的连接方式;
(3)若BT不能作为耳机与移动终端之间的连接方式,优先判断耳机与移动终端之间WIFI的信号状态,
RSSI_WIFI>DL_WIFI,选择WIFI作为耳机与移动终端之间的连接方式,
RSSI_WIFI<=DL_WIFI,不选择WIFI作为耳机与移动终端之间的连接方 式;
若WIFI不能作为耳机与移动终端之间的连接方式,则选择RF作为连接方式,即
RSSI_WIFI<=DL_WIFI&&RSSI_rf>DL_rf,选择RF作为耳机与移动终端之间的连接方式
(4)若RSSI_rf<=DL_rf,则耳机不可用;
(5)若选择了WIFI作为耳机与移动终端之间的连接方式,此时耳机可以间歇式地去搜索判断耳机与移动终端之间BT的信号状态,
RSSI_bt>DL_bt,切换耳机与移动终端之间的连接方式为BT,
RSSI_bt<=DL_bt,仍然保持WIFI作为耳机与移动终端之间的连接方式;
(6)若选择了RF作为耳机与移动终端之间的连接方式,此时耳机可以间歇式地区搜索判断耳机与移动终端之间BT/WIFI的信号状态,
RSSI_WIFI>DL_WIFI,切换耳机与移动终端之间的连接方式为WIFI,
RSSI_WIFI<=DL_WIFI,保持RF作为耳机与移动终端之间的连接方式;
RSSI_bt>DL_bt,切换耳机与移动终端之间的连接方式为BT,
RSSI_bt<=DL_bt,仍然保持RF作为耳机与移动终端之间的连接方式。
如图2a所示,在本发明的另一个实施例中,图2a中半圆形ABE是BT的信号覆盖区,在此区域里,BT的信号强度如下:
DL_bt<RSSI_bt<=UL_bt
在这个区域可以使用BT作为耳机与移动终端的连接方式,可以保证通信质量;
矩形BCDE区域,BT信号的强度和WIFI的信号强度如下:
RSSI_bt<=DL_bt
DL_WIFI<RSSI_WIFI<=UL_WIFI
将BCDE区域定义为WIFI信号区,在这个区域可以使用WIFI作为耳机与移动终端的连接方式,可以保证通信质量;
剩下的区域里,BT/WIFI/RF的信号强度如下:
RSSI_bt<=DL_bt
RSSI_WIFI<=DL_WIFI
DL_rf<RSSI_rf<=UL_rf
将该区域定义为RF信号去,在这个区域内只能使用RF作为耳机与移动终端的连接方式,若使用BT或者WIFI作为连接方式,则无法保证通信质量。
请参阅图3,图3是本发明的一个实施例提供的一种耳机的结构示意图。其中,如图3所示,本发明的一个实施例提供的一种耳机300。该终端300包括确定单元301、蓝牙连接单元302、中断单元303以及无线保真连接单元304。
确定单元301,设置为当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;
确定单元301,还设置为当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;
蓝牙连接单元302,设置为当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;
中断单元303,设置为当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接;
无线保真连接单元304,还设置为通过无线保真与所述终端建立连接。
其中,确定单元301、蓝牙连接单元302、中断单元303以及无线保真连接单元304可以设置为执行实施例1中步骤S101至S104所述的方法,具体描述详见实施例1对所述方法的描述,在此不再赘述。
请参阅图4,图4是本发明的一个实施例提供的一种耳机的结构示意图。其中,如图4所示,本发明的一个实施例提供的一种耳机400,其中,该耳机400包括确定单元401、蓝牙连接单元402、中断单元403、无线保真连接单元404以及射频连接单元405。
确定单元401,设置为当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;
确定单元401,还设置为当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;
蓝牙连接单元402,设置为当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;
中断单元403,设置为当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接;
无线保真连接单元404,还设置为通过无线保真与所述终端建立连接。
中断单元403,还设置为当检测到所述无线保真的强度小于所述第二预设强度且通信射频信号的强度大于第三预设强度时,所述耳机中断与所述终端之间的无线保真连接;
射频连接单元405,设置为通过射频信号与所述终端建立连接。
中断单元403,设置为当检测到所述射频信号小于所述第三预设强度时,所述耳机中断与所述终端之间的射频信号通讯。
可选的,中断单元403,设置为当检测所述蓝牙信号大于所述第一预设强度时,所述耳机中断与所述终端之间的射频信号通信;
蓝牙连接单元402,设置为通过所述蓝牙与所述终端建立连接。
可选的,中断单元403,设置为当检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度时,所述耳机中断与所述终端之间的射频信号通信;
无线保真连接单元404,设置为通过所述无线保真与所述终端建立连接。
可选的,中断单元403,设置为当检测到所述蓝牙信号的强度大于所述第一预设强度时,所述耳机中断与所述终端之间的无线保真连接;蓝牙连接单元402,设置为通过所述蓝牙与所述终端建立连接。
其中,确定单元401、蓝牙连接单元402、中断单元403、无线保真连接单元404以及射频连接单元405可以设置为执行实施例2中步骤S201至S209所述的方法,具体描述详见实施例2对所述方法的描述,在此不再赘述。
请参阅图5,在本发明的另一个实施例中,提供一种耳机500。所述耳机500包括CPU501、存储器502、总线503,显示屏504等硬件。其中,CPU501执行预先存储在存储器502中的程序,该执行过程具体包括:
当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;
当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;
当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;
当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。
可选的,所述通过无线保真与所述终端建立连接之后,该执行过程还包括:
当检测到所述无线保真的强度小于所述第二预设强度且通信射频信号的强度大于第三预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过射频信号与所述终端建立连接。
可选的,所述通过射频信号与所述终端建立连接之后,该执行过程还包括:
当检测到所述射频信号小于所述第三预设强度时,所述耳机中断与所述终端之间的射频信号通讯。
可选的,所述通过射频信号与所述终端建立连接之后,该执行过程还包括:
当检测到所述蓝牙信号大于所述第一预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述蓝牙与所述终端建立连接。
可选的,所述通过射频信号与所述终端建立连接之后,该执行过程还包括:
当检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述无线保真与所述终端建立连接。
可选的,所述通过无线保真与所述终端建立连接之后,该执行过程还包括:
当检测到所述蓝牙信号的强度大于所述第一预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过所述蓝牙与所述终端建立连接。
可以看出,本发明实施例的方案中,当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;当所述蓝牙信号强 度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。从而可知,通过实施本发明提供的技术方案,能够根据耳机与终端之间的连接方式的信号强度确定是否切换到另一种更优的连接方式,从而确保耳机接收音频的质量。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (12)

  1. 一种与终端建立连接的方法,其特征在于,所述方法包括:
    当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;
    当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;
    当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;
    当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接,通过无线保真与所述终端建立连接。
  2. 根据权利要求1所述的方法,其特征在于,所述通过无线保真与所述终端建立连接之后,所述方法还包括:
    当检测到所述无线保真的强度小于所述第二预设强度且通信射频信号的强度大于第三预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过射频信号与所述终端建立连接。
  3. 根据权利要求2所述的方法,其特征在于,所述通过射频信号与所述终端建立连接之后,所述方法还包括:
    当检测到所述射频信号小于所述第三预设强度时,所述耳机中断与所述终端之间的射频信号通讯。
  4. 根据权利要求2所述的方法,其特征在于,所述通过射频信号与所述终端建立连接之后,所述方法还包括:
    当检测到所述蓝牙信号大于所述第一预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述蓝牙与所述终端建立连接。
  5. 根据权利要求2所述的方法,其特征在于,所述通过射频信号与所述终端建立连接之后,所述方法还包括:
    当检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度时,所述耳机中断与所述终端之间的射频信号通信,通过所述无线保真与所述终端建立连接。
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述通过无线保真与所述终端建立连接之后,所述方法还包括:
    当检测到所述蓝牙信号的强度大于所述第一预设强度时,所述耳机中断与所述终端之间的无线保真连接,通过所述蓝牙与所述终端建立连接。
  7. 一种耳机,其特征在于,所述耳机包括:
    确定单元,设置为当检测到耳机开启时,确定所述耳机与所述终端之间的连接方式;
    所述确定单元,还设置为当所述耳机与所述终端之间的连接方式为自动切换模式时,确定所述耳机与所述终端之间的蓝牙信号强度;
    蓝牙连接单元,设置为当所述蓝牙信号强度大于第一预设强度时,所述耳机通过蓝牙与所述终端建立连接;
    中断单元,设置为当检测到所述蓝牙信号的强度小于所述第一预设强度且无线保真信号的强度大于第二预设强度时,所述耳机中断与所述终端之间的蓝牙连接;
    无线保真连接单元,还设置为通过无线保真与所述终端建立连接。
  8. 根据权利要求7所述的耳机,其特征在于,所述耳机还包括射频连接单元;
    所述中断单元,还设置为当检测到所述无线保真的强度小于所述第二预设强度且通信射频信号的强度大于第三预设强度时,所述耳机中断与所述终端之间的无线保真连接;
    所述射频连接单元,设置为通过射频信号与所述终端建立连接。
  9. 根据权利要求8所述的耳机,其特征在于,
    所述中断单元,设置为当检测到所述射频信号小于所述第三预设强度时,所述耳机中断与所述终端之间的射频信号通讯。
  10. 根据权利要求8所述的耳机,其特征在于,
    所述中断单元,设置为当检测所述蓝牙信号大于所述第一预设强度时,所述耳机中断与所述终端之间的射频信号通信;
    所述蓝牙连接单元,设置为通过所述蓝牙与所述终端建立连接。
  11. 根据权利要求8所述的耳机,其特征在于,所述中断单元,设置为当检测到所述蓝牙信号小于所述第一预设强度且所述无线保真信号强度大于第二预设强度时,所述耳机中断与所述终端之间的射频信号通信;
    所述无线保真连接单元,设置为通过所述无线保真与所述终端建立连接。
  12. 根据权利要求7至11任一所述的耳机,其特征在于,
    所述中断单元,设置为当检测到所述蓝牙信号的强度大于所述第一预设强度时,所述耳机中断与所述终端之间的无线保真连接;
    所述蓝牙连接单元,设置为通过所述蓝牙与所述终端建立连接。
PCT/CN2016/097146 2016-08-01 2016-08-29 一种与终端建立连接的方法及耳机 WO2018023846A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610621104.3 2016-08-01
CN201610621104.3A CN106101991A (zh) 2016-08-01 2016-08-01 一种与终端建立连接的方法及耳机

Publications (1)

Publication Number Publication Date
WO2018023846A1 true WO2018023846A1 (zh) 2018-02-08

Family

ID=57479904

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097146 WO2018023846A1 (zh) 2016-08-01 2016-08-29 一种与终端建立连接的方法及耳机

Country Status (2)

Country Link
CN (1) CN106101991A (zh)
WO (1) WO2018023846A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329387A (zh) * 2021-06-18 2021-08-31 英华达(上海)科技有限公司 蓝牙耳机通信方法及装置
CN113473429A (zh) * 2021-06-29 2021-10-01 北京紫光展锐通信技术有限公司 网络连接方法、装置、介质、程序产品及Wi-Fi耳机
CN115866803A (zh) * 2023-03-03 2023-03-28 深圳市迈斯高科技有限公司 一种利用无线耳机传输音频信息的方法及装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108257240A (zh) * 2018-01-16 2018-07-06 南宁学院 一种多功能考勤系统
CN109257732B (zh) * 2018-09-30 2022-04-19 Oppo广东移动通信有限公司 设备控制方法、装置以及电子设备
CN109347581B (zh) 2018-09-30 2020-11-27 Oppo广东移动通信有限公司 蓝牙耳机连接方法、装置、电子设备及存储介质
CN112732215A (zh) * 2019-10-14 2021-04-30 瑞昱半导体股份有限公司 网络数据播放系统与方法
CN111224693B (zh) * 2019-11-27 2021-08-06 展讯通信(上海)有限公司 用于无线耳机的音频数据传输方法及装置、存储介质、终端
CN110830973B (zh) * 2020-01-09 2020-03-31 易兆微电子(杭州)有限公司 一种利用无线耳机传输音频信息的方法
CN113242495B (zh) * 2021-06-10 2022-08-05 东莞立讯精密工业有限公司 一种真无线立体耳机组件及其控制方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626106A (zh) * 2009-08-05 2010-01-13 中兴通讯股份有限公司南京分公司 Fm接收机的内置天线和外置天线的切换方法及终端
CN101754300A (zh) * 2008-11-28 2010-06-23 英业达股份有限公司 切换无线信号方法
US20110269502A1 (en) * 2010-04-28 2011-11-03 Plantronics, Inc. Multiple RF Band Operation in Mobile Devices
CN103079246A (zh) * 2011-10-25 2013-05-01 英华达(上海)科技有限公司 一种无线网卡及实现最优无线网络路径切换的方法
CN104053253A (zh) * 2014-07-21 2014-09-17 深圳奇沃智联科技有限公司 可互连之Wi-Fi智能耳机组件及其所架构之互连网络

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856993B (zh) * 2012-12-06 2016-08-31 腾讯科技(深圳)有限公司 一种无线通信方法和装置
CN103607780B (zh) * 2013-11-19 2018-03-20 惠州Tcl移动通信有限公司 移动设备及其网络连接方法
CN104363557B (zh) * 2014-11-12 2018-04-27 北京国承万通信息科技有限公司 第一设备及其与第二设备通信的方法以及通信系统
CN104574899B (zh) * 2014-12-15 2019-08-23 惠州Tcl移动通信有限公司 一种智能控制方法及其终端
CN105188098B (zh) * 2015-09-30 2020-09-01 努比亚技术有限公司 一种移动终端的网络切换装置和网络切换方法
CN105491635A (zh) * 2015-11-19 2016-04-13 广州视睿电子科技有限公司 一种无线设备的匹配方法、装置及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754300A (zh) * 2008-11-28 2010-06-23 英业达股份有限公司 切换无线信号方法
CN101626106A (zh) * 2009-08-05 2010-01-13 中兴通讯股份有限公司南京分公司 Fm接收机的内置天线和外置天线的切换方法及终端
US20110269502A1 (en) * 2010-04-28 2011-11-03 Plantronics, Inc. Multiple RF Band Operation in Mobile Devices
CN103079246A (zh) * 2011-10-25 2013-05-01 英华达(上海)科技有限公司 一种无线网卡及实现最优无线网络路径切换的方法
CN104053253A (zh) * 2014-07-21 2014-09-17 深圳奇沃智联科技有限公司 可互连之Wi-Fi智能耳机组件及其所架构之互连网络

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329387A (zh) * 2021-06-18 2021-08-31 英华达(上海)科技有限公司 蓝牙耳机通信方法及装置
CN113473429A (zh) * 2021-06-29 2021-10-01 北京紫光展锐通信技术有限公司 网络连接方法、装置、介质、程序产品及Wi-Fi耳机
CN115866803A (zh) * 2023-03-03 2023-03-28 深圳市迈斯高科技有限公司 一种利用无线耳机传输音频信息的方法及装置

Also Published As

Publication number Publication date
CN106101991A (zh) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2018023846A1 (zh) 一种与终端建立连接的方法及耳机
US9860932B2 (en) Master device for using connection attribute of electronic accessories connections to facilitate locating an accessory
US9113239B2 (en) Electronic device and method for selecting microphone by detecting voice signal strength
EP3591988A1 (en) Method for controlling earphone switching, earphone, and earphone system
US10514884B2 (en) Multi source wireless headphone and audio switching device
WO2021008614A1 (zh) 一种建立通信连接的方法及可穿戴设备
KR101963424B1 (ko) 메시지 송신 방법, 메시지 수신 방법 및 장치
US20150195649A1 (en) Method for proximity based audio device selection
CN110650408B (zh) 一种耳机及防丢方法、系统、计算机可读存储介质
CN108541080B (zh) 第一电子设备与第二电子设备进行回连的方法及相关产品
CN112839303B (zh) 设备回连的方法及相关装置
US20170102914A1 (en) Electronic device and audio ouputting method thereof
US20140004799A1 (en) Communication method, communication device, and computer program product
WO2020007173A1 (zh) 通信连接建立方法及相关设备
WO2020007174A1 (zh) 通信连接建立方法及相关设备
WO2020007172A1 (zh) 通信连接建立方法及相关设备
US20150326969A1 (en) Multimedia playing system and sound channel control method thereof
US11792868B2 (en) Proximity-based connection for Bluetooth devices
US11937159B2 (en) Proximity-based connection for Bluetooth devices
WO2020082387A1 (zh) 音频通道更换方法及相关设备
US10083600B1 (en) Mobile computing device wireless data transmission
CN109155803B (zh) 音频数据处理方法、终端设备和存储介质
JP2012191611A (ja) 通信装置及び切替方法
JP6234496B2 (ja) 音声出力装置、その接続方法、無線端末装置、その応答方法、音声出力システム、及びコンピュータが実行可能なプログラム
CN111277930B (zh) 多耳蓝牙耳机的单耳远离检测方法以及蓝牙耳机

Legal Events

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

Ref document number: 16911441

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16911441

Country of ref document: EP

Kind code of ref document: A1