CN108541080B - Method for realizing loop connection between first electronic equipment and second electronic equipment and related product - Google Patents

Method for realizing loop connection between first electronic equipment and second electronic equipment and related product Download PDF

Info

Publication number
CN108541080B
CN108541080B CN201810369091.4A CN201810369091A CN108541080B CN 108541080 B CN108541080 B CN 108541080B CN 201810369091 A CN201810369091 A CN 201810369091A CN 108541080 B CN108541080 B CN 108541080B
Authority
CN
China
Prior art keywords
electronic device
wearable device
data type
connection
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810369091.4A
Other languages
Chinese (zh)
Other versions
CN108541080A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810369091.4A priority Critical patent/CN108541080B/en
Publication of CN108541080A publication Critical patent/CN108541080A/en
Application granted granted Critical
Publication of CN108541080B publication Critical patent/CN108541080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The embodiment of the application discloses a method for realizing loop connection between first electronic equipment and second electronic equipment and a related product, wherein the method comprises the following steps: a first electronic device receives a reconnection request signal sent from a second electronic device, wherein the reconnection request signal is generated by the second electronic device when an input aiming at the second electronic device is detected; the first electronic equipment acquires the data type of audio data sent to the second electronic equipment before the wireless connection is disconnected; the first electronic equipment queries a reconnection strategy matched with the data type from a reconnection strategy library according to the data type; and the first electronic equipment is in loop connection with the second electronic equipment according to the loop connection strategy. The embodiment of the application is beneficial to realizing active connection of the first electronic device when the first electronic device is disconnected from the second electronic device.

Description

Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method for performing a loopback connection between a first electronic device and a second electronic device and a related product.
Background
A wearable device is a portable electronic product that can be worn directly on the body or integrated into the clothing or accessories of a user. Wearable equipment is not only a hardware equipment, can realize powerful function through software support and data interaction, high in the clouds interaction more, and wearable equipment has brought huge transition for people's life, perception.
Present wearable equipment is mainly with intelligent wrist-watch, intelligent bracelet more. With the rapid development of earphone technology, wireless earphones, especially bluetooth earphones, are more and more widely used. The user can listen to music, carry out audio-video conversation and the like through the wireless earphone.
Disclosure of Invention
The embodiment of the application provides a method for realizing the active reconnection of first electronic equipment and second electronic equipment and a related product, so that when the first electronic equipment is disconnected from the second electronic equipment, the first electronic equipment is actively reconnected.
In a first aspect, an embodiment of the present application provides a mobile electronic device, including a communication interface and a processor, where:
a communication interface to receive a reconnect request signal transmitted from a wearable device upon detecting a disconnection of a wireless connection with the wearable device, the reconnect request signal generated by the wearable device upon detecting an input to the wearable device;
a processor to obtain a data type of audio data sent to the wearable device prior to disconnecting a wireless connection; querying a reconnection strategy matched with the data type from a reconnection strategy library according to the data type;
the processor is further configured to perform a loopback with the wearable device according to the loopback policy.
In a second aspect, an embodiment of the present application provides a wearable device, including: processor, touch-control board and communication interface, wherein:
the processor is used for detecting whether the mobile electronic equipment is disconnected;
the touch pad is used for acquiring input operation aiming at the wearable device when the processor detects that the mobile electronic device is disconnected;
the processor is further configured to generate a loopback request signal when the touchpad detects the input operation;
the communication interface is used for sending the reconnection request signal to mobile electronic equipment, and the reconnection request signal is used for triggering the mobile electronic equipment to be reconnected with the wearable equipment.
In a third aspect, an embodiment of the present application provides a method for a first electronic device to perform a backhaul connection with a second electronic device, including:
the method comprises the steps that when a first electronic device detects that wireless connection with a second electronic device is disconnected, a first electronic device receives a connection back request signal sent by the second electronic device, wherein the connection back request signal is generated when the second electronic device detects input aiming at the second electronic device;
the first electronic equipment acquires the data type of audio data sent to the second electronic equipment before the wireless connection is disconnected;
the first electronic equipment queries a reconnection strategy matched with the data type from a reconnection strategy library according to the data type;
and the first electronic equipment is in loop connection with the second electronic equipment according to the loop connection strategy.
In a fourth aspect, embodiments of the present application provide a mobile electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps of any of the methods in the second aspect of the embodiments of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a sixth aspect, 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 perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that in the method for performing a loop back connection between a first electronic device and a second electronic device provided in the embodiment of the present application, when detecting that a wireless connection with the second electronic device is disconnected, the first electronic device receives a loop back connection request signal sent from the second electronic device, where the loop back connection request signal is generated when the second electronic device detects an input to the second electronic device, and the first electronic device obtains a data type of audio data sent to the second electronic device before the wireless connection is disconnected, queries a loop back connection policy adapted to the data type from a loop back connection policy library according to the data type, and finally performs a loop back connection with the second electronic device according to the loop back connection policy. Therefore, when the first electronic device detects that the first electronic device is disconnected from the second electronic device, the first electronic device can be connected back with the second electronic device based on the connection back request signal sent by the second electronic device and the adaptive connection back strategy, and therefore the communication connection between the first electronic device and the second electronic device can be rapidly recovered.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture for a first electronic device and a second electronic device to be connected back to each other according to an embodiment of the present disclosure;
fig. 2A is a schematic structural diagram of a mobile electronic device disclosed in an embodiment of the present application;
fig. 2B is a schematic structural diagram of a mobile electronic device disclosed in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a wearable device disclosed in an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for a first electronic device to connect back to a second electronic device according to an embodiment of the disclosure;
fig. 5 is a schematic flowchart of another method for a first electronic device to connect back to a second electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of another method for a first electronic device to connect back to a second electronic device according to an embodiment of the present disclosure;
FIG. 7 is a block diagram of the components of a loopback device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The first Mobile electronic device may include various handheld devices, vehicle-mounted devices, computing devices or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so forth. For convenience of description, the above-mentioned devices are collectively referred to as a first mobile electronic device.
The second electronic device may comprise any portable electronic product that can be worn directly on the body or integrated into the user's clothing or accessories. Such as glasses, sunglasses, smart watches, smart bands, and wireless headsets, among others. For convenience of description, the above-mentioned devices are collectively referred to as a second mobile electronic device.
As used herein, the terms "wear," "wear state," and "wear" may be used to refer to various ways in which a user's body may be wearable or otherwise associated with in one or more ways that allow the use of wearable technology.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture for a first electronic device and a second electronic device to perform a loop connection according to an embodiment of the present disclosure. In the network architecture shown in fig. 1, a first electronic device and a second electronic device may be included. In the embodiment of the present application, the first electronic device is taken as a mobile phone 100, and the second electronic device is taken as a wireless headset 200. The wireless headset 200 may be communicatively coupled to the handset 100 via a wireless network (e.g., bluetooth, infrared, or WiFi). It should be noted that the number of the wireless headsets 200 may be one or two, and the embodiment of the present application is not limited. In the network architecture shown in fig. 1, when the wireless headset 200 and the mobile phone 100 are successfully connected within a certain distance, the mobile phone 100 and the wireless headset 200 may be disconnected in some abnormal situations, for example, a user mistakenly connects the mobile phone to another device, drops the dual-headset, and the like. According to the embodiment of the application, after the mobile phone 100 is disconnected from the wireless headset 200 in the abnormal scene, the mobile phone 100 can actively connect back with the wireless headset 200 based on the connection request signal sent by the wireless headset 200 and the connection strategy prestored in the mobile phone 100. The embodiment of the present application is not limited to the above abnormal situation.
In order to better understand a method for performing a loop connection between a first electronic device and a second electronic device and a related product disclosed in the embodiments of the present application, the embodiments of the present application are described in detail below.
Referring to fig. 2A, fig. 2A is a schematic structural diagram of a mobile electronic device according to an embodiment of the present disclosure, and as shown in fig. 2A, the mobile electronic device according to the embodiment of the present disclosure includes a communication interface 210 and a processor 220, where:
a communication interface 210 to receive, upon detecting a wireless connection disconnection from a wearable device, a reconnect request signal transmitted from the wearable device, the reconnect request signal generated by the wearable device upon detecting an input to the wearable device;
a processor 220 for obtaining a data type of audio data transmitted to the wearable device prior to disconnection of the wireless connection; querying a reconnection strategy matched with the data type from a reconnection strategy library according to the data type;
the processor 220 is further configured to perform a loopback with the wearable device according to the loopback policy.
In the embodiment of the present application, the communication interface 210 includes, but is not limited to, an antenna, an Amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
The processor 220 is a control center of the mobile electronic device, and is connected to various parts of the mobile electronic device through various interfaces and lines, and performs various functions of the mobile electronic device and processes data, thereby performing overall monitoring of the mobile electronic device. Optionally, the processor 220 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
In one embodiment, the mobile electronic device may detect whether a connection is made between the mobile electronic device and the wearable device, and detect a connection signal strength between the mobile electronic device and the wearable device. If the mobile electronic device is connected with the wearable device through the Bluetooth, the mobile electronic device can detect whether the Bluetooth connection is established between the mobile electronic device and the wearable device, and detect the Bluetooth connection signal strength between the mobile electronic device and the wearable device.
The method and the device for controlling the Bluetooth of the wearable device are applicable to other devices which are connected with the mobile electronic device by the user by mistake and are out of the wearable device, magnetic field interference occurs, or the wearable device is in a Bluetooth shutdown state due to system faults, or the mobile electronic device is restarted, crashed and the like, so that the mobile electronic device is disconnected from the wearable device.
In the embodiment of the application, the wearable device receives an input from a user after detecting that the wearable device is disconnected from the mobile electronic device, for example, the input may be a touch click operation, a long press operation, or the like for a touchpad of the wearable device, and the wearable device generates a reconnection request signal in response to the input from the user and broadcasts the reconnection request signal.
The mobile electronic device receives a reconnection request signal broadcasted from the wearable device and acquires the data type of audio data sent to the wearable device before the wireless connection is disconnected, wherein the data type can comprise a call data type or a music data type. The mobile electronic equipment is pre-stored with a reconnection policy library, and the reconnection policy library comprises at least one data type and a reconnection policy mapping relation. The mobile electronic equipment inquires a reconnection strategy matched with the data type from a reconnection strategy library according to the data type, and actively performs reconnection with the wearable equipment according to the reconnection strategy.
It can be seen that, according to the mobile electronic device provided in the embodiment of the present application, when it is detected that the wearable device is disconnected from a wireless connection, a reconnection request signal sent from the wearable device is received, where the reconnection request signal is generated by the wearable device when an input to the wearable device is detected, the mobile electronic device obtains a data type of audio data sent to the wearable device before the wireless connection is disconnected, queries a reconnection policy adapted to the data type from a reconnection policy library according to the data type, and finally performs reconnection with the wearable device according to the reconnection policy. Therefore, when the mobile electronic device detects that the mobile electronic device is disconnected from the wearable device, the mobile electronic device can be connected back with the wearable device based on the connection back request signal sent by the wearable device and the adapted connection back strategy, so that the communication connection between the mobile electronic device and the wearable device can be quickly recovered.
In one embodiment, the data type comprises a telephony data type, the mobile electronic device further comprises a speaker 230, and the processor 220 is further configured to:
controlling the output audio signal to be switched from being played by the wearable device to being played by a speaker of the mobile electronic device upon detecting a wireless connection disconnection from the wearable device.
When configured to perform a loopback with the wearable device according to the loopback policy, the processor 220 is specifically configured to:
performing loopback with the wearable device according to the loopback strategy;
controlling the output audio signal to continue to be played by the speaker 230 of the mobile electronic device within a preset time; when successful connection with the wearable device is detected, controlling the output audio signal to be played by the speaker 230 of the mobile electronic device to be switched to be played by the wearable device.
It is understood that the data type may include a call data type or a music data type, the call data type may include an audio call, a video call, and the like, and the music data type may include playing local music, playing music in a network, and the like, and the embodiments of the present application are not limited.
When the data type comprises a call data type, the processor controls the output audio signal to be played by a loudspeaker of the mobile electronic device when the mobile electronic device is disconnected from the wearable device and the wearable device cannot communicate. After the mobile electronic device actively performs the reconnection with the wearable device according to the reconnection strategy, because a certain time is required for the connection between the mobile electronic device and the wearable device, if the mobile electronic device actively performs the reconnection with the wearable device according to the reconnection strategy, the playing of the speaker of the mobile electronic device is stopped, and at this time, because the connection between the mobile electronic device and the wearable device is not successful, the call information is lost in the time. In order to avoid the loss of the call information, in the embodiment of the present application, the processor 220 controls the output audio signal to continue to be played by the speaker 230 of the mobile electronic device within a preset time, and when it is detected that the connection with the wearable device is successful, controls the output audio signal to be played by the speaker 230 of the mobile electronic device and switched to be played by the wearable device. Wherein the preset time is greater than or equal to the connection time of the mobile electronic device and the wearable device.
In an embodiment, the data type includes a music data type, and when the processor 220 is configured to perform a loopback with the wearable device according to the loopback policy, the processor is specifically configured to:
performing loopback with the wearable device according to the loopback strategy;
controlling an audio signal to be played by the wearable device upon detecting a successful connection with the wearable device.
When the data type includes a music data type, the mobile electronic device typically pauses the playing of music data when the mobile electronic device is wirelessly disconnected from the wearable device, and then manually pauses the playing of music data when the mobile electronic device is connected back to the wearable device and successfully connected. In the embodiment of the application, when detecting that the connection with the wearable device is successful, the processor 220 may automatically control the audio signal to continue to be played by the wearable device, and the user does not need to manually open the wearable device, thereby facilitating the user operation.
In one embodiment, the communication interface 210 is further configured to receive a wearing status of the wearable device, the wearing status indicating whether the wearable device is worn by a user, the wearing status of the wearable device being determined by the wearable device based on the received signal;
the processor 220 is further configured to determine a connection status with the wearable device; and controlling the wearable equipment to output corresponding audio information based on the wearing state and the connection state.
In an embodiment of the application, a mobile electronic device may determine a connection state with the wearable device. The mobile electronic device can cause the change of the prompt information output by the mobile electronic device based on the change of the wearing state of either or both of the wearable devices and the connection state of the wearable devices, so that the user can know the connection state and the wearing state of the wearable devices conveniently.
Referring to fig. 2B, fig. 2B is a schematic structural diagram of another mobile electronic device according to an embodiment of the present disclosure, and as shown in fig. 2B, the mobile electronic device 100 according to the embodiment of the present disclosure may include a control circuit, which may include the storage and processing circuit 30. The storage and processing circuitry 30 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry 30 may be used to control the operation of the mobile electronic device 100. The processing circuitry may 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 circuitry 30 may be used to run software in the mobile electronic device 100 such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and the like. Such software may be used to perform control operations such as camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the mobile electronic device 100, to name a few, embodiments of the present application are not limited.
The mobile electronic device 100 may also include input-output circuitry 42. The input-output circuitry 42 may be used to enable the mobile electronic device 100 to enable input and output of data, i.e. to allow the mobile electronic device 100 to receive data from external devices and also to allow the mobile electronic device 100 to output data from the mobile electronic device 100 to external devices. The input-output circuitry 42 may further include the sensor 32. The sensors 32 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry 42 may also include one or more displays, such as a touch-sensitive display screen 14. The display may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 14 may include an array of touch sensors (i.e., the display may be a touch display screen 14). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The mobile electronic device 100 may also include an audio component 36. The audio component 36 may be used to provide audio input and output functionality for the mobile electronic device 100. The audio components 36 in the mobile electronic device 100 may include a speaker, microphone, buzzer, tone generator, and other components for generating and detecting sound.
The communication circuit 38 may be used to provide the mobile electronic device 100 with the capability to communicate with external devices. The communication circuit 38 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 circuitry in communication circuitry 38 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 38 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuitry 38 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 38 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The mobile electronic device 100 may further include a battery, power management circuitry, and other input-output units 40. The input and output unit 40 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
A user may input commands through the input-output circuitry 42 to control operation of the mobile electronic device 100 and may use output data of the input-output circuitry 42 to enable receipt of status information and other outputs from the mobile electronic device 100.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a wearable device according to an embodiment of the present disclosure, and as shown in fig. 3, the wearable device according to the embodiment of the present disclosure includes: a processor 310, a touch pad 320, and a communication interface 330, wherein:
the processor 310 is configured to detect whether a connection with a mobile electronic device is disconnected;
the touch pad 320 is used for acquiring an input operation aiming at the wearable device when the processor detects that the mobile electronic device is disconnected;
the processor 310 is further configured to generate a loopback request signal when the touchpad detects the input operation;
the communication interface 330 is configured to send the reconnection request signal to the mobile electronic device, where the reconnection request signal is used to trigger the mobile electronic device to reconnect with the wearable device.
In one embodiment, the wearable device further comprises:
a sensor 340 for determining a wearing status of the wearable device, the wearing status indicating whether the wearable device is worn by a user;
the communication interface 330 is further configured to send the wearing status of the wearable device to the mobile electronic device.
Where the wearable device is a wireless headset, the sensors can be any number and any type of sensors that detect when the wireless headset is placed in the user's ear. For example, the sensor 340 may include any or all of an optical proximity sensor, a pressure sensor, a thermal sensor, a moisture sensor, and the like. In addition, the sensor 340 may be of a single type or multiple types.
Taking the wearable device as an example of a wireless headset, the method may further include: audio output, memory, battery, and microphone, etc. In the embodiment of the present application, the wireless headset may be a wireless headset, and may also be coupled with another wireless headset to form a pair of cordless wireless headsets. In some cases, one of the coupled wireless headsets serves a primary role and the other of the coupled wireless headsets serves a secondary role, where the former may be referred to as a primary wireless headset and the latter may be referred to as a secondary wireless headset. The primary wireless headset may perform a number of actions, including: (i) pairing with a mobile electronic device; (ii) receiving audio data from a mobile electronic device; (iii) transmitting audio data to the auxiliary wireless headset; (iv) receiving in-ear status information from the auxiliary wireless headset; and (v) transmitting data regarding the in-ear status of the primary wireless headset and/or the secondary wireless headset to the mobile electronic device.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another method for performing a loop connection between a first electronic device and a second electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the method for performing a loopback connection between a first electronic device and a second electronic device includes the following steps:
s401, when detecting that wireless connection with a second electronic device is disconnected, a first electronic device receives a reconnection request signal sent by the second electronic device, wherein the reconnection request signal is generated when the second electronic device detects input aiming at the second electronic device;
s402, the first electronic equipment acquires the data type of the audio data sent to the second electronic equipment before the wireless connection is disconnected;
s403, the first electronic device queries a reconnection strategy matched with the data type from a reconnection strategy library according to the data type;
s404, the first electronic device is connected back with the second electronic device according to the connection back strategy.
In one embodiment, the first electronic device comprises a mobile electronic device and the second electronic device comprises a wireless headset.
In one embodiment, the input to the second electronic device comprises a touch operation to a touch pad of the second electronic device.
In one embodiment, the data type includes a call data type, and when the first electronic device detects that the wireless connection with the second electronic device is disconnected, the method further includes:
the audio signal controlled and output by the first electronic equipment is switched from playing of the second electronic equipment to playing of a loudspeaker of the first electronic equipment;
the first electronic device performs a loopback operation with the second electronic device according to the loopback strategy, including:
the first electronic equipment is connected with the second electronic equipment in a loop mode;
within a preset time, the first electronic equipment controls the output audio signal to continue to be played by a loudspeaker of the first electronic equipment;
and when the first electronic equipment detects that the first electronic equipment is successfully connected with the second electronic equipment, controlling the output audio signal to be played by the second electronic equipment from the loudspeaker of the first electronic equipment.
In one embodiment, the data types include music data types, and the first electronic device performs a loopback connection with the second electronic device according to the loopback connection policy, including:
the first electronic equipment is connected with the second electronic equipment in a loop mode;
and when the first electronic equipment detects that the first electronic equipment is successfully connected with the second electronic equipment, controlling an audio signal to be played by the second electronic equipment.
In one embodiment, after the first electronic device performs the loopback with the second electronic device according to the loopback policy, the method further includes:
the first electronic device receiving a wearing state of the wearable device, the wearing state indicating whether a user wears the wearable device, the wearing state of the wearable device being determined by the wearable device based on the received signal;
the first electronic device determining a connection state with the second electronic device;
and the first electronic equipment controls the second electronic equipment to output corresponding audio information based on the wearing state and the connection state.
It can be seen that in the method for performing a loop back connection between a first electronic device and a second electronic device provided in the embodiment of the present application, when detecting that a wireless connection with the second electronic device is disconnected, the first electronic device receives a loop back connection request signal sent from the second electronic device, where the loop back connection request signal is generated when the second electronic device detects an input to the second electronic device, and the first electronic device obtains a data type of audio data sent to the second electronic device before the wireless connection is disconnected, queries a loop back connection policy adapted to the data type from a loop back connection policy library according to the data type, and finally performs a loop back connection with the second electronic device according to the loop back connection policy. Therefore, when the first electronic device detects that the first electronic device is disconnected from the second electronic device, the first electronic device can be connected back with the second electronic device based on the connection back request signal sent by the second electronic device and the adaptive connection back strategy, and therefore the communication connection between the first electronic device and the second electronic device can be rapidly recovered.
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for a first electronic device to connect back to a second electronic device according to an embodiment of the present disclosure, which is consistent with the embodiment illustrated in fig. 4. As shown in fig. 5, the method for performing a loopback connection between a first electronic device and a second electronic device includes the following steps:
s501, when detecting that wireless connection with a second electronic device is disconnected, a first electronic device receives a reconnection request signal sent by the second electronic device, wherein the reconnection request signal is generated when the second electronic device detects input aiming at the second electronic device;
s502, switching the audio signal controlled and output by the first electronic equipment from playing of the second electronic equipment to playing of a loudspeaker of the first electronic equipment;
s503, the first electronic equipment acquires the data type of the audio data sent to the second electronic equipment before the wireless connection is disconnected;
s504, the first electronic device inquires a loop connection strategy matched with the data type from a loop connection strategy library according to the data type;
and S505, the first electronic device and the second electronic device are connected back.
S506, in a preset time, the first electronic device controls the output audio signal to continue to be played by a loudspeaker of the first electronic device;
and S507, when the first electronic device detects that the connection with the second electronic device is successful, controlling the output audio signal to be switched from the loudspeaker playing of the first electronic device to the second electronic device playing.
S508, the first electronic device receives a wearing state of the wearable device, wherein the wearing state is used for indicating whether a user wears the wearable device, and the wearing state of the wearable device is determined by the wearable device based on the received signals;
s509, the first electronic device determines a connection state with the second electronic device;
and S510, the first electronic equipment controls the second electronic equipment to output corresponding audio information based on the wearing state and the connection state.
It can be seen that in the method for performing a loop back connection between a first electronic device and a second electronic device provided in the embodiment of the present application, when detecting that a wireless connection with the second electronic device is disconnected, the first electronic device receives a loop back connection request signal sent from the second electronic device, where the loop back connection request signal is generated when the second electronic device detects an input to the second electronic device, and the first electronic device obtains a data type of audio data sent to the second electronic device before the wireless connection is disconnected, queries a loop back connection policy adapted to the data type from a loop back connection policy library according to the data type, and finally performs a loop back connection with the second electronic device according to the loop back connection policy. Therefore, when the first electronic device detects that the first electronic device is disconnected from the second electronic device, the first electronic device can be connected back with the second electronic device based on the connection back request signal sent by the second electronic device and the adaptive connection back strategy, and therefore the communication connection between the first electronic device and the second electronic device can be rapidly recovered.
Referring to fig. 6, in accordance with the embodiments shown in fig. 4 and fig. 5, fig. 6 is a flowchart illustrating another method for a first electronic device to connect back to a second electronic device according to an embodiment of the present disclosure. As shown in fig. 6, the method for performing a loopback connection between a first electronic device and a second electronic device includes the following steps:
s601, when detecting that wireless connection with a second electronic device is disconnected, a first electronic device receives a reconnection request signal sent by the second electronic device, wherein the reconnection request signal is generated when the second electronic device detects input aiming at the second electronic device;
s602, the first electronic equipment acquires the data type of the audio data sent to the second electronic equipment before the wireless connection is disconnected;
s603, the first electronic equipment queries a reconnection strategy matched with the data type from a reconnection strategy library according to the data type;
s604, the first electronic device and the second electronic device are connected back to each other.
And S605, when the first electronic device detects that the connection with the second electronic device is successful, controlling an audio signal to be played by the second electronic device.
S606, the first electronic device receives a wearing state of the wearable device, wherein the wearing state is used for indicating whether a user wears the wearable device, and the wearing state of the wearable device is determined by the wearable device based on the received signals;
s607, the first electronic device determines the connection state with the second electronic device;
and S608, the first electronic device controls the second electronic device to output corresponding audio information based on the wearing state and the connection state.
It can be seen that in the method for performing a loop back connection between a first electronic device and a second electronic device provided in the embodiment of the present application, when detecting that a wireless connection with the second electronic device is disconnected, the first electronic device receives a loop back connection request signal sent from the second electronic device, where the loop back connection request signal is generated when the second electronic device detects an input to the second electronic device, and the first electronic device obtains a data type of audio data sent to the second electronic device before the wireless connection is disconnected, queries a loop back connection policy adapted to the data type from a loop back connection policy library according to the data type, and finally performs a loop back connection with the second electronic device according to the loop back connection policy. Therefore, when the first electronic device detects that the first electronic device is disconnected from the second electronic device, the first electronic device can be connected back with the second electronic device based on the connection back request signal sent by the second electronic device and the adaptive connection back strategy, and therefore the communication connection between the first electronic device and the second electronic device can be rapidly recovered.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present application, which is used to execute the method implemented by the embodiment of the method of the present application. Referring to fig. 7, fig. 7 is a block diagram of a unit composition of a loopback apparatus disclosed in an embodiment of the present application, and as shown in fig. 7, the loopback apparatus may include a receiving unit 701, an obtaining unit 702, an inquiring unit 703 and a loopback unit 704, where:
a receiving unit 701, configured to receive a reconnection request signal sent from a second electronic device when it is detected that a wireless connection with the second electronic device is disconnected, where the reconnection request signal is generated by the second electronic device when an input to the second electronic device is detected;
an obtaining unit 702, configured to obtain a data type of audio data sent to the second electronic device before the wireless connection is disconnected;
a query unit 703, configured to query, according to the data type, a reconnection policy adapted to the data type from a reconnection policy library;
a reconnection unit 704, configured to perform reconnection with the second electronic device according to the reconnection policy.
In one embodiment, the means for reconnecting may be for a mobile electronic device, the second electronic device comprising a wireless headset.
In one embodiment, the input to the second electronic device comprises a touch operation to a touch pad of the second electronic device.
In one embodiment, the data type includes a call data type, and the backhaul apparatus further includes:
the switching unit 705 is configured to control, when the first electronic device detects that the first electronic device is disconnected from the second electronic device, the playing of the output audio signal to be switched from the playing of the second electronic device to the playing of the speaker of the first electronic device;
the reconnection unit 704 is specifically configured to: performing a loop connection with the second electronic device; controlling the output audio signal to be continuously played by a loudspeaker of the first electronic equipment within a preset time; and when detecting that the connection with the second electronic equipment is successful, controlling the output audio signal to be switched from the loudspeaker playing of the first electronic equipment to the second electronic equipment.
In an embodiment, the data types include music data types, and the concatenation unit 704 is specifically configured to:
performing a loop connection with the second electronic device; and when detecting that the connection with the second electronic equipment is successful, controlling the audio signal to be played by the second electronic equipment.
In one embodiment of the present invention,
the receiving unit 701 is further configured to receive a wearing status of the wearable device, where the wearing status is used to indicate whether a user wears the wearable device, and the wearing status of the wearable device is determined by the wearable device based on the received signal;
the reconnecting device further comprises:
a determining unit 706 configured to determine a connection state with the second electronic device;
an output unit 707, configured to control the second electronic device to output corresponding audio information based on the wearing state and the connection state.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 4 to fig. 6, which is not repeated herein.
It should be noted that the loopback device described in the device embodiment of the present application is in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
It can be seen that, in the reconnection device provided in the embodiment of the present application, when it is detected that the wireless connection with the second electronic device is disconnected, a reconnection request signal sent from the second electronic device is received, where the reconnection request signal is generated by the second electronic device when an input to the second electronic device is detected, and the reconnection device obtains a data type of audio data sent to the second electronic device before the wireless connection is disconnected, queries, according to the data type, a reconnection policy adapted to the data type from a reconnection policy library, and finally performs reconnection with the second electronic device according to the reconnection policy. Therefore, when the reconnection device detects that the wireless connection with the second electronic equipment is disconnected, the reconnection device can perform reconnection with the second electronic equipment based on the reconnection request signal sent by the second electronic equipment and the adapted reconnection strategy, so that the communication connection between the reconnection device and the second electronic equipment is quickly recovered.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a mobile electronic device 800 according to an embodiment of the present disclosure. The mobile electronic device 800 comprises a processor 801, a memory 802, a communication interface 803, and one or more programs, wherein the one or more programs are stored in the memory 802 and configured to be executed by the processor 801, the programs comprising instructions for performing the steps of:
upon detecting a wireless connection disconnection from a second electronic device, receiving a reconnect request signal transmitted from the second electronic device, the reconnect request signal being generated by the second electronic device upon detecting an input to the second electronic device;
acquiring the data type of audio data sent to the second electronic equipment before the wireless connection is disconnected;
querying a reconnection strategy matched with the data type from a reconnection strategy library according to the data type;
and performing loop connection with the second electronic equipment according to the loop connection strategy.
In one embodiment, the first electronic device comprises a mobile electronic device and the second electronic device comprises a wireless headset.
In one embodiment, the input to the second electronic device comprises a touch operation to a touch pad of the second electronic device.
In one embodiment, the data types include a call data type, the program further comprising instructions for:
when the wireless connection with second electronic equipment is detected to be disconnected, controlling the playing of the output audio signal to be switched to the playing of a loudspeaker of the first electronic equipment from the playing of the second electronic equipment;
in terms of performing a loopback with the second electronic device according to the loopback policy, the instructions in the program are specifically configured to:
performing a loop connection with the second electronic device;
controlling the output audio signal to be continuously played by a loudspeaker of the first electronic equipment within a preset time;
and when detecting that the connection with the second electronic equipment is successful, controlling the output audio signal to be switched from the loudspeaker playing of the first electronic equipment to the second electronic equipment.
In an embodiment, the data type includes a music data type, and the instructions in the program are specifically configured to, in performing a loopback with the second electronic device according to the loopback policy, perform the following operations:
performing a loop connection with the second electronic device;
and when detecting that the connection with the second electronic equipment is successful, controlling the audio signal to be played by the second electronic equipment.
In one embodiment, the program further comprises instructions for:
after being reconnected with the second electronic device according to the reconnection strategy, receiving a wearing state of the wearable device, wherein the wearing state is used for indicating whether a user wears the wearable device, and the wearing state of the wearable device is determined by the wearable device based on the received signals;
determining a connection state with the second electronic device;
and controlling the second electronic equipment to output corresponding audio information based on the wearing state and the connection state.
The communication interface 803 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, an LNA (Low noise amplifier), a duplexer, and the like. The memory 802 includes at least one of: random access memory, non-volatile memory, and external memory.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 4 to fig. 6, which is not repeated herein.
It can be seen that, in the mobile electronic device provided in the embodiment of the present application, when it is detected that the wireless connection with the second electronic device is disconnected, a reconnection request signal sent from the second electronic device is received, where the reconnection request signal is generated by the second electronic device when an input to the second electronic device is detected, the first electronic device obtains a data type of audio data sent to the second electronic device before the wireless connection is disconnected, queries, according to the data type, a reconnection policy adapted to the data type from a reconnection policy library, and finally performs reconnection with the second electronic device according to the reconnection policy. Therefore, when the mobile electronic device detects that the mobile electronic device is disconnected from the second electronic device, the mobile electronic device can be connected back with the second electronic device based on the connection back request signal sent by the second electronic device and the adaptive connection back strategy, so that the communication connection between the mobile electronic device and the second electronic device can be quickly recovered.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operable to cause a computer to perform part or all of the steps of any one of the methods of the first electronic device and the second electronic device for loop-back connection as set forth in the above method embodiments.
The present application further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the methods described in the above method embodiments for a first electronic device to perform a loopback connection with a second electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disks, read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A mobile electronic device comprising a communication interface and a processor, wherein:
a communication interface to receive a reconnect request signal broadcast from a wearable device upon detecting a disconnection of a wireless connection from the wearable device, the reconnect request signal generated by the wearable device upon detecting an input to the wearable device, the wearable device being a wireless headset;
a processor to obtain a data type of audio data sent to the wearable device prior to disconnecting a wireless connection; inquiring a reconnection strategy adaptive to the data type from a reconnection strategy library according to the data type, wherein the data type of the audio data comprises a call data type or a music data type, and the reconnection strategy library comprises at least one mapping relation between the data type and the reconnection strategy;
the processor is further configured to perform a loopback with the wearable device according to a loopback policy adapted to the data type;
wherein the content of the first and second substances,
in the event that the data type comprises a telephony data type, the mobile electronic device further comprising a speaker, the processor is further configured to:
controlling an output audio signal to be switched from being played by the wearable device to being played by a speaker of the mobile electronic device when the wireless connection with the wearable device is detected to be disconnected;
when configured to reconnect with the wearable device according to the reconnect policy, the processor is specifically configured to: performing loopback with the wearable device according to the loopback strategy; controlling the output audio signal to be continuously played by a loudspeaker of the mobile electronic equipment within a preset time; when the connection with the wearable device is detected to be successful, controlling the output audio signal to be switched from the loudspeaker playing of the mobile electronic device to the wearable device playing, wherein the preset time is longer than or equal to the connection time of the mobile electronic device and the wearable device;
in a case that the data type includes a music data type, the processor is specifically configured to, when configured to perform a loopback with the wearable device according to the loopback policy: performing loopback with the wearable device according to the loopback strategy; controlling an audio signal to be played by the wearable device upon detecting a successful connection with the wearable device.
2. The device of claim 1, wherein the processor is further to:
the communication interface is further used for receiving a wearing state of the wearable device, wherein the wearing state is used for indicating whether a user wears the wearable device, and the wearing state of the wearable device is determined by the wearable device based on the received signals;
the processor is further configured to determine a connection status with the wearable device; and controlling the wearable equipment to output corresponding audio information based on the wearing state and the connection state.
3. A wearable device, comprising: processor, touch-control board and communication interface, wherein:
the processor is used for detecting whether the mobile electronic equipment is disconnected;
the touchpad is used for acquiring input operation aiming at the wearable device when the processor detects that the mobile electronic device is disconnected, and the wearable device is a wireless earphone;
the processor is further configured to generate a loopback request signal when the touchpad detects the input operation;
the communication interface is used for broadcasting and sending the reconnection request signal to the mobile electronic equipment, wherein the reconnection request signal is used for triggering the mobile electronic equipment to acquire the data type of the audio data sent to the wearable equipment before the wireless connection is disconnected; inquiring a reconnection strategy adaptive to the data type from a reconnection strategy library according to the data type, wherein the data type of the audio data comprises a call data type or a music data type, and the reconnection strategy library comprises at least one mapping relation between the data type and the reconnection strategy; performing a loopback with the wearable device according to a loopback strategy adapted to the data type;
wherein, in the case that the data type comprises a call data type and the mobile electronic device further comprises a speaker, the mobile electronic device is further configured to control the output audio signal to be switched from being played by the wearable device to being played by the speaker of the mobile electronic device when the disconnection of the wireless connection from the wearable device is detected;
wherein the content of the first and second substances,
reconnecting with the wearable device according to the reconnecting policy comprises: performing loopback with the wearable device according to the loopback strategy; controlling the output audio signal to be continuously played by a loudspeaker of the mobile electronic equipment within a preset time; when the connection with the wearable device is detected to be successful, controlling the output audio signal to be switched from the loudspeaker playing of the mobile electronic device to the wearable device playing, wherein the preset time is greater than or equal to the connection time of the mobile electronic device and the wearable device;
in a case that the data type includes a music data type, reconnecting with the wearable device according to the reconnecting policy includes: performing loopback with the wearable device according to the loopback strategy; controlling an audio signal to be played by the wearable device upon detecting a successful connection with the wearable device.
4. The wearable device of claim 3, further comprising:
a sensor for determining a wearing state of the wearable device, the wearing state indicating whether a user wears the wearable device;
the communication interface is further used for sending the wearing state of the wearable device to the mobile electronic device.
5. A method for a first electronic device to connect back to a second electronic device, comprising:
the method comprises the steps that when a first electronic device detects that wireless connection with a second electronic device is disconnected, a first electronic device receives a connection back request signal sent by the second electronic device in a broadcast mode, wherein the connection back request signal is generated when the second electronic device detects input aiming at the second electronic device;
the first electronic equipment acquires the data type of audio data sent to the second electronic equipment before the wireless connection is disconnected;
the first electronic equipment inquires a loop back connection strategy matched with the data type from a loop back connection strategy library according to the data type, wherein the data type of the audio data comprises a call data type or a music data type, and the loop back connection strategy library comprises at least one mapping relation between the data type and the loop back connection strategy;
the first electronic equipment is connected back with the second electronic equipment according to a back connection strategy adaptive to the data type;
wherein the first electronic device comprises a mobile electronic device and the second electronic device comprises a wireless headset;
wherein the content of the first and second substances,
when the data type comprises a call data type and the first electronic device detects that the wireless connection with the second electronic device is disconnected, the method further comprises the following steps: the audio signal controlled and output by the first electronic equipment is switched from playing of the second electronic equipment to playing of a loudspeaker of the first electronic equipment;
wherein the first electronic device performing the loopback with the second electronic device according to the loopback policy comprises: the first electronic equipment is connected with the second electronic equipment in a loop mode; within a preset time, the first electronic equipment controls the output audio signal to continue to be played by a loudspeaker of the first electronic equipment; when the first electronic device detects that the first electronic device is successfully connected with the second electronic device, controlling the output audio signal to be switched from the loudspeaker playing of the first electronic device to the second electronic device playing, wherein the preset time is greater than or equal to the connection time of the mobile electronic device and the wearable device;
when the data type includes a music data type, the first electronic device performs a loopback with the second electronic device according to the loopback policy, including: the first electronic equipment is connected with the second electronic equipment in a loop mode; and when the first electronic equipment detects that the first electronic equipment is successfully connected with the second electronic equipment, controlling an audio signal to be played by the second electronic equipment.
6. The method of claim 5, wherein the input to the second electronic device comprises a touch operation to a trackpad of the second electronic device.
7. The method of any of claims 5-6, wherein after the first electronic device has made a loopback connection with the second electronic device in accordance with the loopback policy, the method further comprises:
the first electronic device receiving a wearing state of the second electronic device, the second electronic device being a wearable device, the wearing state indicating whether a user wears the wearable device, the wearing state of the wearable device being determined by the wearable device based on the received signal;
the first electronic device determining a connection state with the second electronic device;
and the first electronic equipment controls the second electronic equipment to output corresponding audio information based on the wearing state and the connection state.
8. A mobile electronic device, comprising:
a processor, a memory, and a communication interface, wherein the one or more programs are stored in the memory, the programs being executable by the processor to implement the method of any of claims 5 to 7.
9. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 5 to 7.
CN201810369091.4A 2018-04-23 2018-04-23 Method for realizing loop connection between first electronic equipment and second electronic equipment and related product Active CN108541080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810369091.4A CN108541080B (en) 2018-04-23 2018-04-23 Method for realizing loop connection between first electronic equipment and second electronic equipment and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810369091.4A CN108541080B (en) 2018-04-23 2018-04-23 Method for realizing loop connection between first electronic equipment and second electronic equipment and related product

Publications (2)

Publication Number Publication Date
CN108541080A CN108541080A (en) 2018-09-14
CN108541080B true CN108541080B (en) 2020-09-22

Family

ID=63479247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810369091.4A Active CN108541080B (en) 2018-04-23 2018-04-23 Method for realizing loop connection between first electronic equipment and second electronic equipment and related product

Country Status (1)

Country Link
CN (1) CN108541080B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125354A (en) * 2019-02-27 2022-03-01 华为技术有限公司 Method for cooperation of intelligent sound box and electronic equipment
CN110602672B (en) * 2019-07-29 2021-10-08 深圳市万普拉斯科技有限公司 Bluetooth device reconnection method, device, terminal and computer readable storage medium
US11743958B2 (en) * 2020-10-29 2023-08-29 Vocollect, Inc. Enabling workers to use a personal mobile device with a wearable electronic device
CN114827687B (en) * 2021-01-29 2024-04-09 华为技术有限公司 Communication method, mobile device, electronic device, and computer-readable storage medium
CN113660650B (en) * 2021-04-12 2023-01-10 荣耀终端有限公司 Method and related device for device reconnection
CN117814788A (en) * 2022-09-27 2024-04-05 华为技术有限公司 Hearing detection method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105392115A (en) * 2015-12-03 2016-03-09 上海卓易科技股份有限公司 Automatic Bluetooth reconnection method
CN105636004A (en) * 2015-12-25 2016-06-01 惠州Tcl移动通信有限公司 Bluetooth automatic reconnection method and system based on low power consumption Bluetooth
CN107197346A (en) * 2017-05-27 2017-09-22 深圳Tcl新技术有限公司 Television terminal and bluetooth equipment return even method and computer-readable recording medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108419226B (en) * 2012-09-27 2020-12-25 华为终端有限公司 Method for connecting Bluetooth devices and Bluetooth devices
CN104281431B (en) * 2014-09-17 2018-04-27 小米科技有限责任公司 The method and device that audio plays
CN106445448B (en) * 2016-08-29 2020-10-09 北京元心科技有限公司 Audio device control method and system of terminal and mobile terminal
CN106375563A (en) * 2016-08-30 2017-02-01 珠海市魅族科技有限公司 Method and device for controlling audio output of terminal
CN106788789B (en) * 2016-12-27 2021-03-09 歌尔科技有限公司 Reconnection test equipment for Bluetooth development board
CN107770758A (en) * 2017-09-21 2018-03-06 深圳市汉普电子技术开发有限公司 The bluetooth of Baffle Box of Bluetooth returns even method, Baffle Box of Bluetooth and storage medium
CN107770759B (en) * 2017-10-17 2020-09-29 Oppo广东移动通信有限公司 Bluetooth voice link establishing method and device, storage medium and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105392115A (en) * 2015-12-03 2016-03-09 上海卓易科技股份有限公司 Automatic Bluetooth reconnection method
CN105636004A (en) * 2015-12-25 2016-06-01 惠州Tcl移动通信有限公司 Bluetooth automatic reconnection method and system based on low power consumption Bluetooth
CN107197346A (en) * 2017-05-27 2017-09-22 深圳Tcl新技术有限公司 Television terminal and bluetooth equipment return even method and computer-readable recording medium

Also Published As

Publication number Publication date
CN108541080A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN109040887B (en) Master-slave earphone switching control method and related product
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
CN109068206B (en) Master-slave earphone switching control method and related product
US11102697B2 (en) Method for controlling earphone switching and earphone
US10805708B2 (en) Headset sound channel control method and system, and related device
CN109639367B (en) Electromagnetic interference adjusting method and related product
CN108966067B (en) Play control method and related product
CN108777827B (en) Wireless earphone, volume adjusting method and related product
CN109104203B (en) Communication method, electronic device, and computer-readable storage medium
CN109348055B (en) Display control method, display control device, electronic apparatus, and readable storage medium
CN109150221B (en) Master-slave switching method for wearable equipment and related product
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
WO2020007174A1 (en) Communication connection establishment method and related device
CN108600539B (en) Mobile terminal, position detection method and related product
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN107135305B (en) Message reminding method, device and terminal
WO2022033176A1 (en) Audio play control method and apparatus, and electronic device and storage medium
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN108668018B (en) Mobile terminal, volume control method and related product
CN110415495B (en) Equipment loss processing method and related equipment
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN108566221B (en) Call control method and related equipment
CN108683800B (en) Mobile terminal, position detection method and related product
WO2020118496A1 (en) Audio path switching method and device, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant