WO2020007174A1 - 通信连接建立方法及相关设备 - Google Patents

通信连接建立方法及相关设备 Download PDF

Info

Publication number
WO2020007174A1
WO2020007174A1 PCT/CN2019/090959 CN2019090959W WO2020007174A1 WO 2020007174 A1 WO2020007174 A1 WO 2020007174A1 CN 2019090959 W CN2019090959 W CN 2019090959W WO 2020007174 A1 WO2020007174 A1 WO 2020007174A1
Authority
WO
WIPO (PCT)
Prior art keywords
headset
distance
mobile terminal
communication connection
determining
Prior art date
Application number
PCT/CN2019/090959
Other languages
English (en)
French (fr)
Inventor
龚金华
李宝提
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020007174A1 publication Critical patent/WO2020007174A1/zh
Priority to US17/138,837 priority Critical patent/US11399088B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/7156Arrangements for sequence synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0009Control or signalling for completing the hand-off for a plurality of users or terminals, e.g. group communication or moving wireless networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/00837Determination of triggering parameters for hand-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W68/00User notification, e.g. alerting and paging, for incoming communication, change of service or the like
    • H04W68/02Arrangements for increasing efficiency of notification or paging channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/7156Arrangements for sequence synchronisation
    • H04B2001/71563Acquisition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/00837Determination of triggering parameters for hand-off
    • H04W36/008375Determination of triggering parameters for hand-off based on historical data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a method for establishing a communication connection and related equipment.
  • the communication connection with the wireless device A is sometimes changed to the communication connection with the wireless device B.
  • a series of manual operations by the user are often required during the switching process. For example, the user disconnects the old communication connection first, and then manually establishes a new communication connection. The switching process is cumbersome.
  • the embodiments of the present application provide a method for establishing a communication connection and related equipment, which are used to intelligently establish a new communication connection without manual operation by a user, thereby improving the efficiency of the communication connection.
  • an embodiment of the present application provides a method for establishing a communication connection, which is applied to a mobile terminal.
  • the mobile terminal is in communication connection with a first headset of a wireless headset, and the first headset communicates with a second headset of the wireless headset. Connection, the method includes:
  • first distance is greater than the second distance, and the third distance is greater than or equal to a first threshold, disconnecting the communication connection with the first headset;
  • an embodiment of the present application provides a device for establishing a communication connection, which is applied to a mobile terminal.
  • the mobile terminal is in communication connection with a first headset of a wireless headset, and the first headset communicates with a second headset of the wireless headset.
  • Connection, the communication connection establishment device includes:
  • a distance determining unit configured to determine a first distance between the mobile terminal and the first headset, a second distance between the mobile terminal and the second headset, and a distance between the first headset and the second headset Third distance
  • a communication connection disconnection unit configured to disconnect the communication connection with the first headset when the first distance is greater than the second distance and the third distance is greater than or equal to a first threshold
  • a communication connection establishing unit is configured to establish a communication connection with the second headset.
  • an embodiment of the present application provides a mobile terminal including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the foregoing.
  • the program is executed by a computer, and the program includes instructions for executing steps in the method according to the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute a computer program as described in the first embodiment of the present application.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the implementation of the present application.
  • the mobile terminal is first connected to the first headset.
  • the first distance between the mobile terminal and the first headset is greater than the second distance between the mobile terminal and the second headset.
  • the mobile terminal disconnects from the first headset by itself, and then establishes a connection with the second headset by itself, which realizes the intelligent establishment of a new communication connection without manual operation by the user, which improves communication Connection efficiency.
  • FIG. 1 is a schematic structural diagram of a communication connection establishment system according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a communication connection establishment method according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another method for establishing a communication connection according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a communication connection establishment device according to an embodiment of the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is clearly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • FIG. 1 is a schematic structural diagram of a communication connection establishment system according to an embodiment of the present application.
  • the communication connection establishment system includes a mobile terminal and a wireless headset, and the wireless headset includes a first headset. And second headphones.
  • the wireless headset communicates with the mobile terminal through wireless technologies such as Bluetooth and infrared.
  • the mobile terminal may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (User Equipment, UE), mobile Station (Mobile Station, MS), terminal device (terminal), and so on.
  • UE User Equipment
  • MS Mobile Station
  • terminal terminal
  • the working principle of the communication connection establishing system in the embodiment of the present application is as follows: first, the mobile terminal is communicatively connected with the first headset, and the first headset is communicatively connected with the second headset; and then the mobile terminal determines the first distance between the mobile terminal and the first headset, The second distance between the mobile terminal and the second headset, and the third distance between the first headset and the second headset; finally, when the first distance is greater than the second distance, and the third distance is greater than or equal to the first threshold, the mobile terminal Disconnecting the communication connection with the first headset on its own and establishing the communication connection with the second headset on its own realizes the intelligent establishment of a new communication connection without manual operation by the user, which improves the efficiency of the communication connection.
  • FIG. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • the mobile terminal includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
  • the control circuit may include a storage and processing circuit.
  • the storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static Or dynamic random access memory, etc.), this embodiment is not limited.
  • the processing circuit in the storage and processing circuit can be used to control the operation of the mobile terminal.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
  • the storage and processing circuit can be used to run software in a mobile terminal, such as a communication processing application, a data transmission application, a distance determination application, a received signal strength indicator (RSSI) value determination application, and a media file playback application Programs, Voice over Internet Protocol (VOIP) telephone calling applications, operating system functions, etc.
  • a communication processing application such as a Wi-Fi Protected Access (WPA)
  • a data transmission application such as a distance determination application, a received signal strength indicator (RSSI) value determination application, and a media file playback application Programs, Voice over Internet Protocol (VOIP) telephone calling applications, operating system functions, etc.
  • RSSI received signal strength indicator
  • VOIP Voice over Internet Protocol
  • These software can be used to perform some control operations, such as establishing a communication connection, disconnecting a communication connection, determining the distance between the mobile terminal and the first headset of the wireless headset, determining the distance between the mobile terminal and the second headset of the wireless headset, determining the first The distance between the headset and the second headset, determining the RSSI value of the first headset and the mobile terminal, determining the RSSI value of the first headset and the second headset, determining the RSSI value of the second headset and the mobile terminal, playing a media file, and making a voice phone call
  • the embodiments of the present application are not limited.
  • the input-output circuit can be used to enable the mobile terminal to implement data input and output, that is, to allow the mobile terminal to receive data from an external device and to allow the mobile terminal to output data from the mobile terminal to the external device.
  • the input-output circuit may further include a sensor.
  • the sensor may include an ambient light sensor, an infrared proximity sensor based on light and capacitance, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used as a Touch sensor structure is used independently), acceleration sensor, gravity sensor, and other sensors.
  • the input-output circuit may also include one or more display screens.
  • the display screen may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies.
  • the display screen may include a touch sensor array (ie, the display screen may be a touch display screen).
  • the touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the input-output circuit may further include an audio component.
  • the audio component can be used to provide audio input and output functions for the mobile terminal.
  • the audio component in the mobile terminal may include an ultrasonic transceiver, a buzzer, a tone generator, and other components for generating and detecting sound.
  • the ultrasonic transceiver may be a microphone, and the microphone has a sound emitting and sound receiving function.
  • the input-output circuit may further include a communication circuit that can be used to provide the mobile terminal with the ability to communicate with external devices.
  • the communication circuit may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
  • the wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit may include a circuit for supporting near field communication (NFC) by transmitting and receiving a near field coupled electromagnetic signal.
  • the communication circuit may include a near field communication antenna and a near field communication transceiver.
  • Communication circuits may also include cellular phone transceivers and antennas, wireless LAN transceiver circuits and antennas, and the like.
  • the input-output circuit may further include other input-output units.
  • the input-output unit may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
  • the mobile terminal may further include a battery (not shown), and the battery is used to provide power to the mobile terminal.
  • FIG. 3 is a schematic flowchart of a method for establishing a communication connection according to an embodiment of the present application. The method is applied to the foregoing mobile terminal.
  • the mobile terminal communicates with a first headset of a wireless headset.
  • Two headset communication connections the method includes:
  • Step 301 The mobile terminal determines a first distance between the mobile terminal and the first headset, a second distance between the mobile terminal and the second headset, and a third distance between the first headset and the second headset.
  • the mobile terminal determines a specific implementation of a first distance between the mobile terminal and the first headset, a second distance between the mobile terminal and the second headset, and a third distance between the first headset and the second headset.
  • the mobile terminal determines a first position of the first headset, a second position of the second headset, and a third position of the mobile terminal; the mobile terminal determines a first distance between the mobile terminal and the first headset according to the first position and the third position;
  • the mobile terminal determines a second distance between the mobile terminal and the second headset according to the second position and the third position; the mobile terminal determines a third distance between the first headset and the second headset according to the first position and the second position.
  • the mobile terminal can directly determine its own position through the wifi positioning technology, but the position of the first headset and the position of the second headset cannot be obtained by the mobile terminal itself.
  • the specific implementation manners of the mobile terminal determining the position of the first headset and the position of the second headset include: the second headset determines the position of the second headset through wifi positioning, and the second headset periodically reports the second headset to the first headset After receiving the position of the second headset reported by the second headset, the first headset determines the position of the first headset through wifi positioning, and the first headset reports the position of the first headset and the second headset to the mobile terminal. The position of the first headset and the position of the second headset reported by the mobile terminal from the first headset.
  • a specific implementation manner of the mobile terminal determining the third position of the mobile terminal includes: after receiving the position of the first headset and the position of the second headset reported by the first headset, the mobile terminal determines the position of the mobile terminal through wifi positioning .
  • the mobile terminal may also determine the third position before determining the first position and the second position, which is not limited herein.
  • the wireless access points used by the mobile terminal for wifi positioning, the first headset for wifi positioning, and the second headset for wifi positioning are the same.
  • the position of the mobile terminal, the position of the first headset, and the position of the second headset are all position coordinates. When the positions of the two points are known, determining the distance between the two points is the prior art, and will not be described here.
  • the mobile terminal determines a specific implementation of a first distance between the mobile terminal and the first headset, a second distance between the mobile terminal and the second headset, and a third distance between the first headset and the second headset.
  • the mobile terminal determines a first RSSI value between the first headset and the mobile terminal, and determines the first distance according to the first RSSI value;
  • the mobile terminal confirms that the second headset and the mobile terminal A second RSSI value, and determining the second distance according to the second RSSI value;
  • a mobile terminal determining a third RSSI value of the first headset and the second headset, and determining a third RSSI value according to the third RSSI value Mentioned third distance.
  • the mobile terminal since the mobile terminal is connected to the first headset, the mobile terminal can directly obtain the first RSSI value of the mobile terminal and the first headset, but the mobile terminal cannot directly obtain the second RSSI value of the mobile terminal and the second headset and the first headset.
  • the third RSSI value with the second headset since the mobile terminal is connected to the first headset, the mobile terminal can directly obtain the first RSSI value of the mobile terminal and the first headset, but the mobile terminal cannot directly obtain the second RSSI value of the mobile terminal and the second headset and the first headset.
  • the third RSSI value with the second headset since the mobile terminal is connected to the first headset, the mobile terminal can directly obtain the first RSSI value of the mobile terminal and the first headset, but the mobile terminal cannot directly obtain the second RSSI value of the mobile terminal and the second headset and the first headset. The third RSSI value with the second headset.
  • the specific implementation manner of the mobile terminal determining the third RSSI value of the first headset and the second headset is as follows: the first headset determines the third RSSI value of the first headset and the second headset, and the first headset sends the third RSSI value to Mobile terminal, the mobile terminal receives the third RSSI value sent by the first headset; or, the mobile terminal sends an RSSI value acquisition request to the first headset, and after receiving the RSSI value acquisition request, the first headset determines the first headset and the second headset The third RSSI value of the headset, the first headset sends the third RSSI value to the mobile terminal, and the mobile terminal receives the third RSSI value sent by the first headset.
  • the specific implementation manners of the mobile terminal determining the second RSSI value of the mobile terminal and the second headset include: the second headset periodically sends a BLE broadcast to the mobile terminal through a Bluetooth Low Energy (BLE) broadcast method; mobile After receiving the BLE broadcast sent by the second headset, the terminal can obtain the second RSSI value of the second headset and the mobile terminal.
  • BLE Bluetooth Low Energy
  • a specific implementation manner for the mobile terminal to determine the distance according to the RSSI value includes: the mobile terminal determines the distance corresponding to the RSSI value according to the mapping relationship between the RSSI value and the distance.
  • the RSSI value is inversely proportional to the distance. The larger the RSSI value, the smaller the distance, and the smaller the RSSI value, the larger the distance.
  • the order in which the mobile terminal determines the first distance, the second distance, and the third distance may specifically include: after receiving the BLE broadcast sent by the second headset, the mobile terminal obtains a second RSSI value, and the mobile terminal firstly based on the second The RSSI value determines the second distance; then the mobile terminal sends an RSSI value acquisition request to the first headset.
  • the first headset determines the third RSSI value and sends the third RSSI value to the mobile
  • the terminal receives the third RSSI value sent by the first headset, and the mobile terminal first determines a third distance based on the third RSSI value; finally, the mobile terminal determines the first RSSI value, and then determines the first distance based on the first RSSI value.
  • the mobile terminal may also determine the first distance, then the second distance, and finally the third distance, or may determine the third distance, then the first distance, and finally the second distance. limited.
  • Step 302 When the first distance is greater than the second distance and the third distance is greater than or equal to the first threshold, the mobile terminal disconnects the communication connection with the first headset.
  • the first distance is greater than or equal to the second threshold, and the second distance is less than the second threshold.
  • the first threshold and the second threshold may be user-defined or mobile terminal-defined, which are not limited herein.
  • the specific implementation manner of the mobile terminal disconnecting the communication connection with the first headset is: the mobile terminal sends a communication connection disconnection request to the first headset; after receiving the communication connection disconnection request, the first headset responds to the communication The connection disconnection request sends a connection disconnection response to the mobile terminal; the mobile terminal receives the connection disconnection response to disconnect the communication connection with the first headset.
  • Step 303 The mobile terminal establishes a communication connection with the second headset.
  • a specific implementation manner for the mobile terminal to establish a communication connection with the second headset includes: the mobile terminal sends a first paging request on a set frequency band; the mobile terminal receives the second headset for A first paging response sent on the set frequency band by the first paging request; the mobile terminal sends a second paging request to the second headset on the set frequency band, and the second search
  • the call request carries frequency hopping sequence information and a clock phase of the mobile terminal.
  • the frequency hopping sequence information is used to adjust a frequency band where the second headset is located, and the clock phase is used to adjust a time frequency where the second headset is located.
  • Position the mobile terminal receives a second paging response sent by the second headset on the set frequency band for the second paging request, and completes the communication connection.
  • the set frequency band is a frequency band in which the second headset is currently located, or a frequency band that the second headset can monitor, or a frequency band agreed between the second headset and the mobile terminal, which is not limited herein.
  • the frequency hopping sequence information refers to the address code sequence used to control the carrier frequency hopping.
  • the frequency hopping sequence information is mainly used to control the frequency hopping of the carriers in the frequency band. Information is the only indication that distinguishes users.
  • the clock phase is mainly used to indicate the start and end time of sending data and reading data.
  • the mobile terminal is first connected to the first headset.
  • the first distance between the mobile terminal and the first headset is greater than the second distance between the mobile terminal and the second headset.
  • the third distance is greater than or equal to a certain value, the mobile terminal disconnects itself from the first headset, and then establishes a connection with the second headset without manual operation by the user, which improves the efficiency of establishing a communication connection.
  • the method before the mobile terminal disconnects the communication connection with the first headset, the method further includes: the mobile terminal determines that an RSSI value of the mobile terminal and the first headset is less than or equal to the first Three thresholds.
  • the third threshold may be user-defined or mobile terminal-defined, which is not limited herein.
  • the method further includes: the mobile terminal sends audio data to the second headset; the second headset receives all data sent by the mobile terminal. Said audio data; if the third distance is less than or equal to the first threshold, the second headset copies the audio data, and sends the copied audio data to the first headset.
  • the method further includes:
  • the mobile terminal disconnects the communication connection with the first headset.
  • the mobile terminal may directly disconnect the communication connection with the first headset. There is also no need to establish a communication connection with the second headset, which reduces the power consumption of the mobile terminal.
  • the method further includes:
  • the mobile terminal sends prompt information to the first headset, and the prompt information is used to prompt the user that the distance between the mobile terminal and the first headset and the second headset is relatively long, and the mobile terminal does not currently have audio data to send to the first headset.
  • the information sends a confirmation instruction to the mobile terminal; when the mobile terminal receives the confirmation instruction, the mobile terminal disconnects the communication connection with the first headset.
  • the mobile terminal before the mobile terminal disconnects the communication connection with the first headset, it first asks the user whether the user needs to be disconnected, which improves the human-computer interaction function, thereby further improving the user experience.
  • the method further includes:
  • the mobile terminal sends first prompt information to the first headset, where the first prompt information is used to prompt the user that the distance between the first headset and the mobile terminal is far away, and the distance between the first headset and the mobile terminal needs to be adjusted closer; After the prompt information, the first headset performs a voice prompt operation based on the prompt information.
  • a voice prompt is provided through the first headset to indicate that the current distance between the first headset and the mobile terminal is relatively long.
  • the distance between the first headset and the mobile terminal needs to be adjusted closer, so that the effect of data transmission can be guaranteed.
  • the method before the mobile terminal sends prompt information to the first headset, the method further includes: the mobile terminal determines that the first headset is in a wearing state.
  • the specific implementation of the mobile terminal determining the wearing state of the first headset includes: the mobile terminal sends a first wearing state acquisition request to the first headset; after the first headset receives the first wearing state acquisition request, the first headset determines The wearing state of the first headset is then sent to the mobile terminal for the first wearing state acquisition request; the mobile terminal receives the wearing state sent by the first headset.
  • the first earphone includes a heart rate sensor and a body temperature sensor.
  • the heart rate detected by the heart rate sensor during the first period is the human heart rate
  • the body temperature detected by the body temperature sensor during the second period is In the case of human body temperature, it is determined that the first headset is in a wearing state, otherwise, it is determined that the first headset is in a non-wearing state.
  • the voice prompt is performed only when the headset is worn, improving the efficiency of the prompt being received by the user.
  • the method further includes:
  • the mobile terminal determines the wearing state of the second earphone; when the second earphone is in a wearing state, the mobile terminal sends a second to the second earphone Prompt information, the second prompt information is used to prompt a user to adjust a distance between the first headset and the mobile terminal closer.
  • the specific implementation of the mobile terminal determining the wearing state of the second headset includes: the mobile terminal sends a second wearing state acquisition request to the second headset; after the second headset receives the second wearing state acquiring request, the second headset determines The wearing state of the second headset is then sent to the mobile terminal for the second wearing state acquisition request; the mobile terminal receives the wearing state sent by the second headset.
  • the second headset includes a heart rate sensor and a body temperature sensor.
  • the heart rate detected by the heart rate sensor during the third period is the human heart rate
  • / or the body temperature detected by the body temperature sensor during the fourth period is In the case of human body temperature, it is determined that the second headset is in a wearing state, otherwise, it is determined that the second headset is in a non-wearing state.
  • the voice prompt is performed only when the headset is worn, improving the efficiency of the prompt being received by the user.
  • the method is applied to a mobile terminal.
  • the mobile terminal is in communication connection with a first headset of a wireless headset, and the first headset is in The second headset communication connection of the headset, the method includes:
  • Step 401 The mobile terminal determines a first RSSI value between the first headset and the mobile terminal, and determines the first distance according to the first RSSI value.
  • Step 402 The mobile terminal determines a second RSSI value between the second headset and the mobile terminal, and determines the second distance according to the second RSSI value.
  • Step 403 The mobile terminal determines a third RSSI value of the first headset and the second headset, and determines the third distance according to the third RSSI value.
  • Step 404 When the first distance is greater than the second distance, the third distance is greater than or equal to a first threshold, the first distance is greater than or equal to a second threshold, and the second distance is less than the second In the case of a threshold, the mobile terminal determines that the RSSI value of the mobile terminal and the first headset is less than or equal to a third threshold.
  • Step 405 The mobile terminal disconnects the communication connection with the first headset.
  • Step 406 The mobile terminal sends a first paging request on a set frequency band.
  • Step 407 The mobile terminal receives a first paging response sent by the second headset on the set frequency band for the first paging request.
  • Step 408 The mobile terminal sends a second paging request to the second headset on the set frequency band, the second paging request carries frequency hopping sequence information and a clock phase of the mobile terminal, and the frequency hopping
  • the sequence information is used to adjust a frequency band where the second earphone is located
  • the clock phase is used to adjust a time-frequency position where the second earphone is located.
  • Step 409 The mobile terminal receives a second paging response sent by the second headset on the set frequency band for the second paging request, and completes a communication connection with the second headset.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • the mobile terminal is in communication connection with a first headset of a wireless headset.
  • the first earphone is communicatively connected with the second earphone of the wireless earphone.
  • the mobile terminal includes a processor, a memory, a communication interface, and one or more programs.
  • the one or more programs are Stored in the memory and configured to be executed by the processor, the program includes instructions for performing the following steps:
  • the first distance is greater than or equal to a second threshold, and the second distance is smaller than the second threshold.
  • the foregoing program includes instructions specifically for performing the following steps:
  • the second paging request carries frequency hopping sequence information and a clock phase of the mobile terminal, and the frequency hopping sequence information is used for adjustment A frequency band where the second earphone is located, and the clock phase is used to adjust a time-frequency position where the second earphone is located;
  • the above program includes instructions specifically for performing the following steps:
  • Determining the first distance based on the first position and the third position, determining the second distance based on the second position and the third position, and determining the second distance based on the first position and the second position The position determines the third distance.
  • the above program includes instructions specifically for performing the following steps:
  • the foregoing program includes instructions for further performing the following steps:
  • the above-mentioned program includes instructions for further performing the following steps:
  • the first distance and the second distance are both greater than or equal to the second threshold, and there is currently data to be sent to the first headset, Sending first prompt information to the first headset, where the first prompt information is used to prompt a user to adjust the distance between the first headset and the mobile terminal closer.
  • the above program before sending the prompt information to the first headset, includes an instruction further for performing the following steps: determining that the first headset is in a wearing state.
  • the above-mentioned program includes instructions for further performing the following steps:
  • the second headset When the second headset is in a wearing state, send second prompt information to the second headset, and the second prompt information is used to prompt a user to adjust a distance between the first headset and the mobile terminal closer. .
  • FIG. 6 is a communication connection establishing device provided in an embodiment of the present application, which is applied to a mobile terminal.
  • the mobile terminal is in communication connection with a first headset of a wireless headset, and the first headset and the wireless headset
  • a second headset communication connection the communication connection establishment device includes:
  • the distance determining unit 601 is configured to determine a first distance between the mobile terminal and the first headset, a second distance between the mobile terminal and the second headset, and the first headset and the second headset The third distance
  • a communication connection disconnection unit 602 configured to disconnect the communication connection with the first headset if the first distance is greater than the second distance and the third distance is greater than or equal to a first threshold;
  • a communication connection establishing unit 603 is configured to establish a communication connection with the second headset.
  • the first distance is greater than or equal to a second threshold, and the second distance is smaller than the second threshold.
  • the communication connection establishing unit 603 in establishing a communication connection with the second headset, is specifically configured to:
  • the second paging request carries frequency hopping sequence information and a clock phase of the mobile terminal, and the frequency hopping sequence information is used for adjustment A frequency band where the second earphone is located, and the clock phase is used to adjust a time-frequency position where the second earphone is located;
  • the distance determining unit 601 in determining a first distance between the mobile terminal and the first earphone, a second distance between the mobile terminal and the second earphone, and the first earphone and the In the third distance aspect of the second headset, is specifically configured to:
  • Determining the first distance based on the first position and the third position, determining the second distance based on the second position and the third position, and determining the second distance based on the first position and the second position The position determines the third distance.
  • the distance determining unit 601 in determining a first distance between the mobile terminal and the first earphone, a second distance between the mobile terminal and the second earphone, and the first earphone and the In the third distance aspect of the second headset, is specifically configured to:
  • the communication connection establishing apparatus further includes:
  • a first determining unit 604 is configured to determine that an RSSI value of the mobile terminal and the first headset is less than or equal to a third threshold.
  • the communication connection establishing apparatus further includes:
  • the communication unit 605 is configured to: when the first distance is greater than the second distance, both the first distance and the second distance are greater than or equal to the second threshold, and there is currently data to be sent to the first In the case of an earphone, first prompt information is sent to the first earphone, and the first prompt information is used to prompt a user to adjust the distance between the first earphone and the mobile terminal closer.
  • the communication connection establishing apparatus further includes:
  • the second determining unit 606 is configured to determine that the first headset is in a wearing state before sending prompt information to the first headset.
  • the second determining unit 606 is further configured to determine a wearing state of the second headset when the first headset is in a non-wearing state;
  • the communication unit 605 is further configured to send a second prompt message to the second headset when the second headset is in a wearing state, and the second prompt information is used to prompt a user to use the first headset The distance to the mobile terminal is adjusted closer.
  • each “unit” may be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware.
  • the program's processor shared, dedicated, or chipset
  • memory combinational logic circuits, and / or other suitable components that provide the functions described above.
  • the distance determination unit 601, the first determination unit 604, and the second determination unit 606 may be control circuits or processors, and the communication connection disconnection unit 602, the communication connection establishment unit 603, and the communication unit 605 may be communication interfaces or input-outputs. Circuit.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to perform part or all of the steps of any method described in the foregoing method embodiments
  • the computer includes a mobile terminal.
  • An embodiment of the present application further provides a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any of the methods described in the foregoing method embodiments. Some or all steps of a method.
  • the computer program product may be a software installation package, and the computer includes a mobile terminal.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the above units is only a logical function division.
  • multiple units or components may be combined or integrated.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, the indirect coupling or communication connection of the device or unit, and may be electrical or other forms.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the foregoing memories include: U disks, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disks, magnetic disks, or optical disks, which can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as ROM), random access device (English: Random Access Memory, referred to as RAM), magnetic disk or optical disk, etc.
  • ROM Read-only memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种通信连接建立方法及相关设备,应用于移动终端,移动终端与无线耳机的第一耳机通信连接,第一耳机与无线耳机的第二耳机通信连接,方法包括:确定移动终端与第一耳机的第一距离,移动终端与第二耳机的第二距离,以及第一耳机与第二耳机的第三距离;在第一距离大于第二距离,以及第三距离大于或等于第一阈值的情况下,断开与第一耳机的通信连接;建立与第二耳机的通信连接。采用本申请实施例可提升了通信连接效率。

Description

通信连接建立方法及相关设备 技术领域
本申请涉及电子技术领域,尤其涉及一种通信连接建立方法及相关设备。
背景技术
随着无线技术的应用日益扩大,支持无线连接的无线设备种类也日益增多。在实际应用中,有时会从与无线设备A的通信连接换到与无线设备B的通信连接。目前,在切换过程中往往需要通过用户的一系列手动操作,比如,用户先断开旧的通信连接,然后再手动建立新的通信连接,切换过程较繁琐。
发明内容
本申请实施例提供一种通信连接建立方法及相关设备,用于智能地建立新的通信连接,无需用户手动操作,提升了通信连接效率。
第一方面,本申请实施例提供一种通信连接建立方法,应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述方法包括:
确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离;
在所述第一距离大于所述第二距离,且所述第三距离大于或等于第一阈值的情况下,断开与所述第一耳机的通信连接;
建立与所述第二耳机的通信连接。
第二方面,本申请实施例提供一种通信连接建立装置,应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述通信连接建立装置包括:
距离确定单元,用于确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离;
通信连接断开单元,用于在所述第一距离大于所述第二距离,且所述第三距离大于或等于第一阈值的情况下,断开与所述第一耳机的通信连接;
通信连接建立单元,用于建立与所述第二耳机的通信连接。
第三方面,本申请实施例提供一种移动终端,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面所述的方法中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面所述的方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面所述的方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
可见,在本申请实施例中,移动终端先与第一耳机连接,在移动终端与第一耳机的第一距离大于移动终端与第二耳机的第二距离,且第一耳机与第二耳机的第三距离大于或等于一定值时,移动终端自行断开与第一耳机的连接,然后自行建立与第二耳机的连接,实现了智能地建立新的通信连接,无需用户手动操作,提升了通信连接效率。
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种通信连接建立系统的结构示意图;
图2是本申请实施例提供的一种移动终端的结构示意图;
图3是本申请实施例提供的一种通信连接建立方法的流程示意图;
图4是本申请实施例提供的另一种通信连接建立方法的流程示意图;
图5是本申请实施例提供的另一种移动终端的结构示意图;
图6是本申请实施例提供的一种通信连接建立装置的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。
以下分别进行详细说明。
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
请参阅图1,图1是本申请实施例提供了一种通信连接建立系统的结构示意图,在本申请实施例中,该通信连接建立系统包括:移动终端和无线耳机,无线耳机包括第一耳机和第二耳机。无线耳机通过蓝牙、红外等无线技术与移动终端通信连接。
其中,移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。
本申请实施例的通信连接建立系统的工作原理为:首先,移动终端与第一耳机通信连接,第一耳机与第二耳机通信连接;然后移动终端确定移动终端与第一耳机的第一距离,移动终端与第二耳机的第二距离,以及第一耳机与第二耳机的第三距离;最后在第一距离大于第二距离,且第三距离大于或等于第一阈值的情况下,移动终端自行断开与第一耳机的通信连接,以及自行建立与第二耳机的通信连接,实现了智能地建立新的通信连接,无需用户手动操作,提升了通信连接效率。
请参阅图2,图2是本申请实施例提供了一种移动终端的结构示意图,移动终端包括控制电路和输入-输出电路,输入输出电路与控制电路连接。
其中,控制电路可以包括存储和处理电路。该存储和处理电路中的存储电路可以是存 储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路中的处理电路可以用于控制移动终端的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。
存储和处理电路可用于运行移动终端中的软件,例如通信处理应用程序、数据传输应用程序、距离确定应用程序、接收信号强度指示(Received Signal Strength Indicator,RSSI)值确定应用程序、播放媒体文件应用程序、互联网协议语音(Voice over Internet Protocol,VOIP)电话呼叫应用程序、操作系统功能等。这些软件可以用于执行一些控制操作,例如,建立通信连接、断开通信连接、确定移动终端与无线耳机的第一耳机的距离、确定移动终端与无线耳机的第二耳机的距离、确定第一耳机与第二耳机的距离、确定第一耳机与移动终端的RSSI值、确定第一耳机与第二耳机的RSSI值、确定第二耳机与移动终端的RSSI值、播放媒体文件、进行语音电话呼叫以及移动终端中的其它功能等,本申请实施例不作限制。
其中,输入-输出电路可用于使移动终端实现数据的输入和输出,即允许移动终端从外部设备接收数据和允许移动终端将数据从移动终端输出至外部设备。
输入-输出电路可以进一步包括传感器。传感器可以包括环境光传感器,基于光和电容的红外接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。
输入-输出电路还可以包括一个或多个显示屏。显示屏可以包括液晶显示屏,有机发光二极管显示屏,电子墨水显示屏,等离子显示屏,使用其它显示技术的显示屏中一种或者几种的组合。显示屏可以包括触摸传感器阵列(即,显示屏可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。
输入-输出电路还可以进一步包括音频组件。音频组件可以用于为移动终端提供音频输入和输出功能。移动终端中的音频组件可以包括超声波收发器,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件,超声波收发器可以是麦克风,该麦克风具有发声和收声功能。
输入-输出电路还可以进一步包括通信电路可以用于为移动终端提供与外部设备通信的能力。通信电路可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路可以包括近场通信天线和近场通信收发器。通信电路还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
输入-输出电路还可以进一步包括其它输入-输出单元。输入-输出单元可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。
其中,移动终端还可以进一步包括电池(未图示),电池用于给移动终端提供电能。
请参阅图3,图3是本申请实施例提供的一种通信连接建立方法的流程示意图,应用于上述移动终端,移动终端与无线耳机的第一耳机通信连接,第一耳机与无线耳机的第二 耳机通信连接,该方法包括:
步骤301:移动终端确定移动终端与第一耳机的第一距离,移动终端与第二耳机的第二距离,以及第一耳机与第二耳机的第三距离。
在本申请的一实现方式中,移动终端确定移动终端与第一耳机的第一距离,移动终端与第二耳机的第二距离,以及第一耳机与第二耳机的第三距离的具体实现方式有:移动终端确定第一耳机的第一位置、第二耳机的第二位置以及移动终端的第三位置;移动终端根据第一位置和第三位置确定移动终端与第一耳机的第一距离;移动终端根据第二位置和第三位置确定移动终端与第二耳机的第二距离;移动终端根据第一位置和第二位置确定第一耳机与第二耳机的第三距离。
具体地,移动终端可直接通过wifi定位技术确定自己的位置,但是第一耳机的位置和第二耳机的位置移动终端自己无法通过wifi定位技术得到。
其中,移动终端确定第一耳机的位置和第二耳机的位置的具体实现方式有:第二耳机通过wifi定位确定第二耳机的位置,以及第二耳机周期性的向第一耳机上报第二耳机的位置;第一耳机在接收第二耳机上报的第二耳机的位置之后,第一耳机通过wifi定位确定第一耳机的位置,以及第一耳机向移动终端上报第一耳机的位置和第二耳机的位置;移动终端接收第一耳机上报的第一耳机的位置和第二耳机的位置。
进一步地,移动终端确定移动终端的第三位置的具体实现方式有:在接收到第一耳机上报的第一耳机的位置和第二耳机的位置之后,移动终端再通过wifi定位确定移动终端的位置。
需要说明的是,在本申请中,移动终端也可以先确定第三位置再确定第一位置和第二位置,在此不作限定。移动终端进行wifi定位、第一耳机进行wifi定位和第二耳机进行wifi定位所使用的无线接入点是相同的。上述移动终端的位置、第一耳机的位置和第二耳机的位置均是位置坐标。在知道两点的位置的情况下,确定两点的距离是现有技术,在此不作叙述。
在本申请的一实现方式中,移动终端确定移动终端与第一耳机的第一距离,移动终端与第二耳机的第二距离,以及第一耳机与第二耳机的第三距离的具体实现方式有:移动终端确定所述第一耳机与所述移动终端的第一RSSI值,以及根据所述第一RSSI值确定所述第一距离;移动终端确实所述第二耳机与所述移动终端的第二RSSI值,以及根据所述第二RSSI值确定所述第二距离;移动终端确定所述第一耳机与所述第二耳机的第三RSSI值,以及根据所述第三RSSI值确定所述第三距离。
具体地,由于移动终端与第一耳机连接,移动终端可直接得到移动终端与第一耳机的第一RSSI值,但是移动终端无法直接得到移动终端与第二耳机的第二RSSI值和第一耳机与第二耳机的第三RSSI值。
其中,移动终端确定第一耳机与第二耳机的第三RSSI值的具体实现方式有:第一耳机确定第一耳机与第二耳机的第三RSSI值,第一耳机将第三RSSI值发送给移动终端,移动终端接收第一耳机发送的第三RSSI值;或者,移动终端向第一耳机发送RSSI值获取请求,在接收到该RSSI值获取请求之后,第一耳机确定第一耳机与第二耳机的第三RSSI值,第一耳机将第三RSSI值发送给移动终端,移动终端接收第一耳机发送的第三RSSI值。
其中,移动终端确定移动终端与第二耳机的第二RSSI值的具体实现方式有:第二耳机通过蓝牙低功耗(Blluetooth Low Energy,BLE)广播方式周期性的向移动终端发送BLE广播;移动终端接收到第二耳机发送的BLE广播后,可得到第二耳机与移动终端的第二RSSI值。
移动终端根据RSSI值确定距离的具体实现方式有:移动终端根据RSSI值与距离的映射关系确定该RSSI值对应的距离。在RSSI值与距离的映射关系中,RSSI值与距离成反比, RSSI值越大对应的距离越小,RSSI值越小对应的距离越大。
进一步地,移动终端确定第一距离、第二距离和第三距离的顺序具体可以有:移动终端在接收到第二耳机发送的BLE广播后,得到了第二RSSI值,移动终端先基于第二RSSI值确定第二距离;然后移动终端向第一耳机发送RSSI值获取请求,第一耳机在接收到该RSSI获取请求之后,第一耳机确定第三RSSI值,以及将第三RSSI值发送给移动终端,接收第一耳机发送的第三RSSI值,移动终端先基于第三RSSI值确定第三距离;最后移动终端确定第一RSSI值,然后基于第一RSSI值确定第一距离。
当然,在本申请中,移动终端也可以先确定第一距离、然后第二距离,最后第三距离,或者可以先确定第三距离、再确定第一距离、最后确定第二距离,在此不作限定。
步骤302:在第一距离大于第二距离,且第三距离大于或等于第一阈值的情况下,移动终端断开与第一耳机的通信连接。
进一步地,第一距离大于或等于第二阈值,第二距离小于第二阈值。
其中,第一阈值和第二阈值可以是用户自定义的,也可以是移动终端自定义的,在此不作限定。
具体地,移动终端断开与第一耳机的通信连接的具体实现方式有:移动终端向第一耳机发送通信连接断开请求;第一耳机在接收到该通信连接断开请求之后,针对该通信连接断开请求向移动终端发送连接断开响应;移动终端接收该连接断开响应,以断开与第一耳机的通信连接。
步骤303:移动终端建立与所述第二耳机的通信连接。
在本申请的一实现方式中,移动终端建立与所述第二耳机的通信连接的具体实现方式有:移动终端在设定频段上发送第一寻呼请求;移动终端接收所述第二耳机针对所述第一寻呼请求而在所述设定频段上发送的第一寻呼响应;移动终端在所述设定频段上向所述第二耳机发送第二寻呼请求,所述第二寻呼请求携带所述移动终端的跳频序列信息和时钟相位,所述跳频序列信息用于调整所述第二耳机所在的频段,所述时钟相位用于调整所述第二耳机所在的时频位置;移动终端接收所述第二耳机针对所述第二寻呼请求而在所述设定频段上发送的第二寻呼响应,完成通信连接。
其中,设定频段是第二耳机当前所在的频段,或是第二耳机能监听到的频段,或是第二耳机与移动终端约定的频段,在此不作限定。
其中,跳频序列信息是指用于控制载波频率跳变的地址码序列,跳频序列信息主要用于控制频段内的载波进行频率跳变,在同一频段内进行频率跳变时,跳频序列信息是对用户进行区分的唯一标示。时钟相位主要用于表示发送数据与读取数据的开始及结束时间。
可见,在本申请实施例中,移动终端先与第一耳机连接,在移动终端与第一耳机的第一距离大于移动终端与第二耳机的第二距离,且第一耳机与第二耳机的第三距离大于或等于一定值时,移动终端自行断开与第一耳机的连接,然后建立与第二耳机的连接,无需用户手动操作,提升了通信连接建立效率。
在本申请的一实现方式中,移动终端断开与所述第一耳机的通信连接之前,所述方法还包括:移动终端确定所述移动终端与所述第一耳机的RSSI值小于或等于第三阈值。
其中,第三阈值可以是用户自定义的,也可以是移动终端自定义的,在此不作限定。
具体地,在第一耳机与移动终端的距离较大的情况下,不一定表示移动终端与第一耳机之间的传输效率不行,因此在断开移动终端与第一耳机的通信连接之前,再确认断开通信连接的必要性,进而提升建立新的通信连接的准确性。
在本申请的一实现方式中,移动终端建立与所述第二耳机的通信连接之后,所述方法还包括:移动终端向所述第二耳机发送音频数据;第二耳机接收移动终端发送的所述音频数据;在第三距离小于或等于所述第一阈值的情况下,第二耳机复制所述音频数据,以及 将复制的音频数据发送给所述第一耳机。
在本申请的一实现方式中,所述方法还包括:
在所述第一距离大于所述第二距离,所述第一距离和所述第二距离均大于或等于所述第二阈值,以及移动终端当前没有数据需要发送给所述第一耳机的情况下,移动终端断开与所述第一耳机的通信连接。
可见,在本申请实施例中,在两个耳机与移动终端的距离都较大且移动终端当前没有数据需要发送给第一耳机的情况下,移动终端可直接断开与第一耳机的通信连接,也不需要建立与第二耳机的通信连接,降低了移动终端的功耗。
进一步地,移动终端断开与所述第一耳机的通信连接之前,该方法还包括:
移动终端向第一耳机发送提示信息,该提示信息用于提示用户移动终端与第一耳机和第二耳机的距离均较远,且移动终端当前没有音频数据给第一耳机发送,是否需要断开移动终端与第一耳机的通信连接;第一耳机接收该提示信息,以及根据该提示信息进行语音提示;在接收到用户针对该提示信息而输入的确认操作的情况下,第一耳机针对该提示信息向移动终端发送确认指令;在动终端接收所述确认指令的情况下,移动终端断开与所述第一耳机的通信连接。
可见,在本申请实施例中,移动终端在断开与第一耳机的通信连接之前,先询问用户是否需要断开,提升了人机交互功能,进而提升了用户体验。
进一步地,所述方法还包括:
在所述第一距离大于所述第二距离,所述第一距离和所述第二距离均大于或等于所述第二阈值,以及移动终端当前有数据需要发送给所述第一耳机的情况下,移动终端向第一耳机发送第一提示信息,所述第一提示信息用于提示用户当前第一耳机与移动终端的距离较远需要将第一耳机与移动终端的距离调近;在接收到该提示信息之后,第一耳机基于该提示信息进行语音提示操作。
可见,在两个耳机与移动终端的距离都较大且移动终端当前有数据需要发送给第一耳机的情况下,通过第一耳机进行语音提示,提示当前第一耳机与移动终端的距离较远需要将第一耳机与移动终端的距离调近,这样可保证数据传输的效果。
在本申请的一实现方式中,在移动终端向所述第一耳机发送提示信息之前,所述方法还包括:移动终端确定所述第一耳机处于佩戴状态。
其中,移动终端确定第一耳机的佩戴状态的具体实现方式有:移动终端向第一耳机发送第一佩戴状态获取请求;第一耳机在接收到该第一佩戴状态获取请求之后,第一耳机确定第一耳机的佩戴状态,然后针对该第一佩戴状态获取请求将确定的佩戴状态发送给移动终端;移动终端接收第一耳机发送的佩戴状态。
其中,第一耳机中包括心率传感器和体温传感器,当在第一时段内心率传感器检测到的心率均是人体心率的情况下,和/或在第二段时间内体温传感器检测到的体温均是人体体温的情况下,确定第一耳机处于佩戴状态,否则,确定第一耳机处于非佩戴状态。
可见,在本申请中,在耳机被佩戴的情况下,才进行语音提示,提升提示被用户接收到的效率。
在本申请的一实现方式中,所述方法还包括:
在所述第一耳机处于非佩戴状态的情况下,移动终端确定所述第二耳机的佩戴状态;在所述第二耳机处于佩戴状态的情况下,移动终端向所述第二耳机发送第二提示信息,所述第二提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
其中,移动终端确定第二耳机的佩戴状态的具体实现方式有:移动终端向第二耳机发送第二佩戴状态获取请求;第二耳机在接收到该第二佩戴状态获取请求之后,第二耳机确定第二耳机的佩戴状态,然后针对该第二佩戴状态获取请求将确定的佩戴状态发送给移动 终端;移动终端接收第二耳机发送的佩戴状态。
其中,第二耳机中包括心率传感器和体温传感器,当在第三时段内心率传感器检测到的心率均是人体心率的情况下,和/或在第四段时间内体温传感器检测到的体温均是人体体温的情况下,确定第二耳机处于佩戴状态,否则,确定第二耳机处于非佩戴状态。
可见,在本申请中,在耳机被佩戴的情况下,才进行语音提示,提升提示被用户接收到的效率。
本申请实施例还提供了另一更为详细的方法流程,如图4所示,应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,该方法包括:
步骤401:移动终端确定所述第一耳机与所述移动终端的第一RSSI值,以及根据所述第一RSSI值确定所述第一距离。
步骤402:移动终端确实所述第二耳机与所述移动终端的第二RSSI值,以及根据所述第二RSSI值确定所述第二距离。
步骤403:移动终端确定所述第一耳机与所述第二耳机的第三RSSI值,以及根据所述第三RSSI值确定所述第三距离。
步骤404:在所述第一距离大于所述第二距离,所述第三距离大于或等于第一阈值,所述第一距离大于或等于第二阈值,所述第二距离小于所述第二阈值的情况下,移动终端确定所述移动终端与所述第一耳机的RSSI值小于或等于第三阈值。
步骤405:移动终端断开与所述第一耳机的通信连接。
步骤406:移动终端在设定频段上发送第一寻呼请求。
步骤407:移动终端接收所述第二耳机针对所述第一寻呼请求而在所述设定频段上发送的第一寻呼响应。
步骤408:移动终端在所述设定频段上向所述第二耳机发送第二寻呼请求,所述第二寻呼请求携带所述移动终端的跳频序列信息和时钟相位,所述跳频序列信息用于调整所述第二耳机所在的频段,所述时钟相位用于调整所述第二耳机所在的时频位置。
步骤409:移动终端接收所述第二耳机针对所述第二寻呼请求而在所述设定频段上发送的第二寻呼响应,完成与第二耳机的通信连接。
需要说明的是,图4所示的方法的各个步骤的具体实现过程可参见所述方法所述的具体实现过程,在此不再叙述。
与上述图3和图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种移动终端的结构示意图,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,如图所示,该移动终端包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:
确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离;
在所述第一距离大于所述第二距离,以及所述第三距离大于或等于第一阈值的情况下,断开与所述第一耳机的通信连接;
建立与所述第二耳机的通信连接。
在本申请的一实现方式中,所述第一距离大于或等于第二阈值,所述第二距离小于所述第二阈值。
在本申请的一实现方式中,在建立与所述第二耳机的通信连接方面,上述程序包括具 体用于执行以下步骤的指令:
在设定频段上发送第一寻呼请求;
接收所述第二耳机针对所述第一寻呼请求而在所述设定频段上发送的第一寻呼响应;
在所述设定频段上向所述第二耳机发送第二寻呼请求,所述第二寻呼请求携带所述移动终端的跳频序列信息和时钟相位,所述跳频序列信息用于调整所述第二耳机所在的频段,所述时钟相位用于调整所述第二耳机所在的时频位置;
接收所述第二耳机针对所述第二寻呼请求而在所述设定频段上发送的第二寻呼响应,完成通信连接。
在本申请的一实现方式中,在确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离方面,上述程序包括具体用于执行以下步骤的指令:
确定所述第一耳机的第一位置、所述第二耳机的第二位置以及所述移动终端的第三位置;
根据所述第一位置和所述第三位置确定所述第一距离,根据所述第二位置和所述第三位置确定所述第二距离,以及根据所述第一位置和所述第二位置确定所述第三距离。
在本申请的一实现方式中,在确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离方面,上述程序包括具体用于执行以下步骤的指令:
确定所述第一耳机与所述移动终端的第一接收信号强度指示RSSI值,以及根据所述第一RSSI值确定所述第一距离;
确实所述第二耳机与所述移动终端的第二RSSI值,以及根据所述第二RSSI值确定所述第二距离;
确定所述第一耳机与所述第二耳机的第三RSSI值,以及根据所述第三RSSI值确定所述第三距离。
在本申请的一实现方式中,在断开与所述第一耳机的通信连接之前,上述程序包括还用于执行以下步骤的指令:
确定所述移动终端与所述第一耳机的RSSI值小于或等于第三阈值。
在本申请的一实现方式中,上述程序包括还用于执行以下步骤的指令:
在所述第一距离大于所述第二距离,所述第一距离和所述第二距离均大于或等于所述第二阈值,以及当前有数据需要发送给所述第一耳机的情况下,向所述第一耳机发送第一提示信息,所述第一提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
在本申请的一实现方式中,在向所述第一耳机发送提示信息之前,上述程序包括还用于执行以下步骤的指令:确定所述第一耳机处于佩戴状态。
在本申请的一实现方式中,上述程序包括还用于执行以下步骤的指令:
在所述第一耳机处于非佩戴状态的情况下,确定所述第二耳机的佩戴状态;
在所述第二耳机处于佩戴状态的情况下,向所述第二耳机发送第二提示信息,所述第二提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
需要说明的是,本实施例的具体实现过程可参见上述方法实施例所述的具体实现过程,在此不再叙述。
请参阅图6,图6是本申请实施例提供的一种通信连接建立装置,应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述通信连接建立装置包括:
距离确定单元601,用于确定所述移动终端与所述第一耳机的第一距离,所述移动终 端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离;
通信连接断开单元602,用于在所述第一距离大于所述第二距离,且所述第三距离大于或等于第一阈值的情况下,断开与所述第一耳机的通信连接;
通信连接建立单元603,用于建立与所述第二耳机的通信连接。
在本申请的一实现方式中,所述第一距离大于或等于第二阈值,所述第二距离小于所述第二阈值。
在本申请的一实现方式中,在建立与所述第二耳机的通信连接方面,通信连接建立单元603具体用于:
在设定频段上发送第一寻呼请求;
接收所述第二耳机针对所述第一寻呼请求而在所述设定频段上发送的第一寻呼响应;
在所述设定频段上向所述第二耳机发送第二寻呼请求,所述第二寻呼请求携带所述移动终端的跳频序列信息和时钟相位,所述跳频序列信息用于调整所述第二耳机所在的频段,所述时钟相位用于调整所述第二耳机所在的时频位置;
接收所述第二耳机针对所述第二寻呼请求而在所述设定频段上发送的第二寻呼响应,完成通信连接。
在本申请的一实现方式中,在确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离方面,距离确定单元601具体用于:
确定所述第一耳机的第一位置、所述第二耳机的第二位置以及所述移动终端的第三位置;
根据所述第一位置和所述第三位置确定所述第一距离,根据所述第二位置和所述第三位置确定所述第二距离,以及根据所述第一位置和所述第二位置确定所述第三距离。
在本申请的一实现方式中,在确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离方面,距离确定单元601具体用于:
确定所述第一耳机与所述移动终端的第一接收信号强度指示RSSI值,以及根据所述第一RSSI值确定所述第一距离;
确实所述第二耳机与所述移动终端的第二RSSI值,以及根据所述第二RSSI值确定所述第二距离;
确定所述第一耳机与所述第二耳机的第三RSSI值,以及根据所述第三RSSI值确定所述第三距离。
在本申请的一实现方式中,所述通信连接建立装置还包括:
第一确定单元604,用于确定所述移动终端与所述第一耳机的RSSI值小于或等于第三阈值。
在本申请的一实现方式中,所述通信连接建立装置还包括:
通信单元605,用于在所述第一距离大于所述第二距离,所述第一距离和所述第二距离均大于或等于所述第二阈值,以及当前有数据需要发送给所述第一耳机的情况下,向所述第一耳机发送第一提示信息,所述第一提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
在本申请的一实现方式中,所述通信连接建立装置还包括:
第二确定单元606,用于在向所述第一耳机发送提示信息之前,确定所述第一耳机处于佩戴状态。
在本申请的一实现方式中,所述第二确定单元606,还用于在所述第一耳机处于非佩戴状态的情况下,确定所述第二耳机的佩戴状态;
所述通信单元605,还用于在所述第二耳机处于佩戴状态的情况下,向所述第二耳机发送第二提示信息,所述第二提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
需要注意的是,本申请实施例所描述的可穿戴设备是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
其中,距离确定单元601、第一确定单元604和第二确定单元606可以是控制电路或处理器,通信连接断开单元602、通信连接建立单元603和通信单元605可以是通信接口或输入-输出电路。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括移动终端。
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括移动终端。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代 码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实现方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种通信连接建立方法,其特征在于,应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述方法包括:
    确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离;
    在所述第一距离大于所述第二距离,以及所述第三距离大于或等于第一阈值的情况下,断开与所述第一耳机的通信连接;
    建立与所述第二耳机的通信连接。
  2. 根据权利要求1所述的方法,其特征在于,所述第一距离大于或等于第二阈值,所述第二距离小于所述第二阈值。
  3. 根据权利要求1或2所述的方法,其特征在于,所述建立与所述第二耳机的通信连接,包括:
    在设定频段上发送第一寻呼请求;
    接收所述第二耳机针对所述第一寻呼请求而在所述设定频段上发送的第一寻呼响应;
    在所述设定频段上向所述第二耳机发送第二寻呼请求,所述第二寻呼请求携带所述移动终端的跳频序列信息和时钟相位,所述跳频序列信息用于调整所述第二耳机所在的频段,所述时钟相位用于调整所述第二耳机所在的时频位置;
    接收所述第二耳机针对所述第二寻呼请求而在所述设定频段上发送的第二寻呼响应,完成通信连接。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离,包括:
    确定所述第一耳机的第一位置、所述第二耳机的第二位置以及所述移动终端的第三位置;
    根据所述第一位置和所述第三位置确定所述第一距离,根据所述第二位置和所述第三位置确定所述第二距离,以及根据所述第一位置和所述第二位置确定所述第三距离。
  5. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离,包括:
    确定所述第一耳机与所述移动终端的第一接收信号强度指示RSSI值,以及根据所述第一RSSI值确定所述第一距离;
    确实所述第二耳机与所述移动终端的第二RSSI值,以及根据所述第二RSSI值确定所述第二距离;
    确定所述第一耳机与所述第二耳机的第三RSSI值,以及根据所述第三RSSI值确定所述第三距离。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述断开与所述第一耳机的通信连接之前,所述方法还包括:
    确定所述移动终端与所述第一耳机的RSSI值小于或等于第三阈值。
  7. 根据权利要求2-6任一项所述的方法,其特征在于,所述方法还包括:
    在所述第一距离大于所述第二距离,所述第一距离和所述第二距离均大于或等于所述第二阈值,以及当前有数据需要发送给所述第一耳机的情况下,向所述第一耳机发送第一提示信息,所述第一提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
  8. 根据权利要求7所述的方法,其特征在于,所述向所述第一耳机发送提示信息之前, 所述方法还包括:确定所述第一耳机处于佩戴状态。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    在所述第一耳机处于非佩戴状态的情况下,确定所述第二耳机的佩戴状态;
    在所述第二耳机处于佩戴状态的情况下,向所述第二耳机发送第二提示信息,所述第二提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
  10. 一种通信连接建立装置,其特征在于,应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述通信连接建立装置包括:
    距离确定单元,用于确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离;
    通信连接断开单元,用于在所述第一距离大于所述第二距离,且所述第三距离大于或等于第一阈值的情况下,断开与所述第一耳机的通信连接;
    通信连接建立单元,用于建立与所述第二耳机的通信连接。
  11. 根据权利要求10所述的装置,其特征在于,所述第一距离大于或等于第二阈值,所述第二距离小于所述第二阈值。
  12. 根据权利要求10或11所述的装置,其特征在于,在建立与所述第二耳机的通信连接方面,所述通信连接建立单元具体用于:
    在设定频段上发送第一寻呼请求;
    接收所述第二耳机针对所述第一寻呼请求而在所述设定频段上发送的第一寻呼响应;
    在所述设定频段上向所述第二耳机发送第二寻呼请求,所述第二寻呼请求携带所述移动终端的跳频序列信息和时钟相位,所述跳频序列信息用于调整所述第二耳机所在的频段,所述时钟相位用于调整所述第二耳机所在的时频位置;
    接收所述第二耳机针对所述第二寻呼请求而在所述设定频段上发送的第二寻呼响应,完成通信连接。
  13. 根据权利要求10-12任一项所述的装置,其特征在于,在确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离方面,所述距离确定单元具体用于:确定所述第一耳机的第一位置、所述第二耳机的第二位置以及所述移动终端的第三位置;根据所述第一位置和所述第三位置确定所述第一距离,根据所述第二位置和所述第三位置确定所述第二距离,以及根据所述第一位置和所述第二位置确定所述第三距离。
  14. 根据权利要求10-12任一项所述的装置,其特征在于,在确定所述移动终端与所述第一耳机的第一距离,所述移动终端与所述第二耳机的第二距离,以及所述第一耳机与所述第二耳机的第三距离方面,所述距离确定单元具体用于:确定所述第一耳机与所述移动终端的第一接收信号强度指示RSSI值,以及根据所述第一RSSI值确定所述第一距离;确实所述第二耳机与所述移动终端的第二RSSI值,以及根据所述第二RSSI值确定所述第二距离;确定所述第一耳机与所述第二耳机的第三RSSI值,以及根据所述第三RSSI值确定所述第三距离。
  15. 根据权利要求10-14任一项所述的装置,其特征在于,所述装置还包括:
    第一确定单元,用于在断开与所述第一耳机的通信连接之前,确定所述移动终端与所述第一耳机的RSSI值小于或等于第三阈值。
  16. 根据权利要求11-15任一项所述的装置,其特征在于,所述装置还包括:
    通信单元,用于在所述第一距离大于所述第二距离,所述第一距离和所述第二距离均大于或等于所述第二阈值,以及当前有数据需要发送给所述第一耳机的情况下,向所述第一耳机发送第一提示信息,所述第一提示信息用于提示用户将所述第一耳机与所述移动终 端的距离调近。
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括:
    第二确定单元,用于在向所述第一耳机发送提示信息之前,确定所述第一耳机处于佩戴状态。
  18. 根据权利要求17所述的装置,其特征在于,所述第二确定单元,还用于在所述第一耳机处于非佩戴状态的情况下,确定所述第二耳机的佩戴状态;
    所述通信单元,还用于在所述第二耳机处于佩戴状态的情况下,向所述第二耳机发送第二提示信息,所述第二提示信息用于提示用户将所述第一耳机与所述移动终端的距离调近。
  19. 一种移动终端,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2019/090959 2018-07-02 2019-06-12 通信连接建立方法及相关设备 WO2020007174A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/138,837 US11399088B2 (en) 2018-07-02 2020-12-30 Method for establishing communication connection and related products

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810707332.1 2018-07-02
CN201810707332.1A CN108934083A (zh) 2018-07-02 2018-07-02 通信连接建立方法及相关设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/138,837 Continuation US11399088B2 (en) 2018-07-02 2020-12-30 Method for establishing communication connection and related products

Publications (1)

Publication Number Publication Date
WO2020007174A1 true WO2020007174A1 (zh) 2020-01-09

Family

ID=64447559

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090959 WO2020007174A1 (zh) 2018-07-02 2019-06-12 通信连接建立方法及相关设备

Country Status (3)

Country Link
US (1) US11399088B2 (zh)
CN (1) CN108934083A (zh)
WO (1) WO2020007174A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022050946A1 (en) * 2020-09-03 2022-03-10 Hewlett-Packard Development Company, L.P. Inverted sound patterns based on ambient noise
WO2023046993A1 (de) 2021-09-27 2023-03-30 Robert Bosch Gmbh Silanol-basierte kompositzusammensetzung

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277930B (zh) * 2020-03-05 2022-08-23 展讯通信(上海)有限公司 多耳蓝牙耳机的单耳远离检测方法以及蓝牙耳机
JP7480544B2 (ja) 2020-03-24 2024-05-10 株式会社Jvcケンウッド 音入出力制御装置、音入出力制御方法、及びプログラム

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080220825A1 (en) * 2007-03-05 2008-09-11 Unigrand Ltd. Bluetooth earphone with multiple audio gateways
CN106257898A (zh) * 2015-06-19 2016-12-28 联想(新加坡)私人有限公司 确定呈现电话通信的音频的装置
CN107071618A (zh) * 2017-04-26 2017-08-18 歌尔科技有限公司 一种连接双耳蓝牙耳机的方法和装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206350153U (zh) 2016-12-07 2017-07-21 歌尔科技有限公司 一种主设备与从设备的运行切换系统
CN106998511B (zh) * 2017-04-14 2020-01-31 广东思派康电子科技有限公司 无线耳机组件,无线耳机组件中的收纳盒以及无线耳机
CN107145330A (zh) * 2017-04-26 2017-09-08 歌尔科技有限公司 一种连接双耳蓝牙耳机的方法和装置
CN107205192B (zh) * 2017-07-28 2019-10-11 广州黑格智能科技有限公司 一种双耳无线耳机及双耳无线耳机的音频播放方法
CN107885478A (zh) * 2017-09-21 2018-04-06 广东思派康电子科技有限公司 计算机可读存储介质、通信系统
US10176698B1 (en) * 2017-09-25 2019-01-08 International Business Machines Corporation Preventing the loss of wireless accessories for mobile devices
US10375741B2 (en) * 2017-09-28 2019-08-06 Apple Inc. Establishing a short-range communication pathway
CN107819922B (zh) * 2017-10-09 2019-10-15 维沃移动通信有限公司 一种无线耳机的中继调整方法、无线耳机及移动终端
CN107708014B (zh) * 2017-11-08 2020-07-28 深圳市沃特沃德股份有限公司 无线耳机主从关系自动切换的方法、装置及无线耳机
US10542574B1 (en) * 2017-11-15 2020-01-21 Amazon Technologies, Inc. Wireless device connection handover
CN108600897B (zh) * 2018-07-20 2018-11-23 恒玄科技(上海)有限公司 实现低频切换的一拖二蓝牙耳机及通信方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080220825A1 (en) * 2007-03-05 2008-09-11 Unigrand Ltd. Bluetooth earphone with multiple audio gateways
CN106257898A (zh) * 2015-06-19 2016-12-28 联想(新加坡)私人有限公司 确定呈现电话通信的音频的装置
CN107071618A (zh) * 2017-04-26 2017-08-18 歌尔科技有限公司 一种连接双耳蓝牙耳机的方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022050946A1 (en) * 2020-09-03 2022-03-10 Hewlett-Packard Development Company, L.P. Inverted sound patterns based on ambient noise
WO2023046993A1 (de) 2021-09-27 2023-03-30 Robert Bosch Gmbh Silanol-basierte kompositzusammensetzung

Also Published As

Publication number Publication date
US11399088B2 (en) 2022-07-26
US20210120118A1 (en) 2021-04-22
CN108934083A (zh) 2018-12-04

Similar Documents

Publication Publication Date Title
US11043980B2 (en) Method for controlling earphone switching, earphone, and earphone system
US11102697B2 (en) Method for controlling earphone switching and earphone
WO2020007174A1 (zh) 通信连接建立方法及相关设备
CN111698672B (zh) 无线耳机的音频同步方法及无线耳机
WO2019090726A1 (zh) 选择蓝牙设备的方法、终端和系统
US9113239B2 (en) Electronic device and method for selecting microphone by detecting voice signal strength
WO2020098388A1 (zh) 电磁干扰的调整方法及相关产品
CN108886653B (zh) 一种耳机声道控制方法、相关设备及系统
WO2020007173A1 (zh) 通信连接建立方法及相关设备
CN108541080B (zh) 第一电子设备与第二电子设备进行回连的方法及相关产品
WO2020019820A1 (zh) 麦克风堵孔检测方法及相关产品
WO2020073852A1 (zh) 显示控制方法及相关产品
CN109150221B (zh) 一种可穿戴设备主从切换方法及相关产品
WO2022033176A1 (zh) 音频播放控制方法、装置、电子设备及存储介质
WO2020119230A1 (zh) 电磁干扰控制方法及相关产品
WO2020007172A1 (zh) 通信连接建立方法及相关设备
CN108834013B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2020025033A1 (zh) 基于音量的主从切换方法及相关产品
CN108882084B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2020019775A1 (zh) 网络连接方法及相关产品
CN110415495B (zh) 设备丢失处理方法及相关设备
WO2020082387A1 (zh) 音频通道更换方法及相关设备
CN109618062B (zh) 语音交互方法、装置、设备以及计算机可读存储介质
WO2020019822A1 (zh) 麦克风堵孔检测方法及相关产品
WO2020107169A1 (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: 19829986

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: 19829986

Country of ref document: EP

Kind code of ref document: A1