CN109121171B - Transmission link switching control method and related product - Google Patents

Transmission link switching control method and related product Download PDF

Info

Publication number
CN109121171B
CN109121171B CN201810836744.5A CN201810836744A CN109121171B CN 109121171 B CN109121171 B CN 109121171B CN 201810836744 A CN201810836744 A CN 201810836744A CN 109121171 B CN109121171 B CN 109121171B
Authority
CN
China
Prior art keywords
mobile terminal
communication link
message
wireless headset
function
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
CN201810836744.5A
Other languages
Chinese (zh)
Other versions
CN109121171A (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 CN201810836744.5A priority Critical patent/CN109121171B/en
Publication of CN109121171A publication Critical patent/CN109121171A/en
Application granted granted Critical
Publication of CN109121171B publication Critical patent/CN109121171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a transmission link switching control method and a related product, comprising the following steps: the mobile terminal receives a first message from a first wireless earphone, and executes a first preset operation and a second preset operation in parallel, the first preset operation is that a first function is forbidden, a first communication link is disconnected, the second preset operation is that a second message is sent to a second wireless earphone, wherein the first message is sent after the first wireless earphone is determined to be switched in a transmission link, the second message is used for indicating the second wireless earphone to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is that a third communication link is established with the mobile terminal, the fourth preset operation is that a second communication link is disconnected, a fourth communication link is established with the first wireless earphone, and the first function is that preset type data are transmitted to the first wireless earphone. The method and the device are favorable for improving the convenience and speed of transmission link switching in the double-wireless earphone system.

Description

Transmission link switching control method and related product
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a transmission link switching control method and a related product.
Background
With the rapid development and the increasing popularity of the technology of the intelligent terminal (such as a smart phone), the technology of the intelligent terminal is now an indispensable electronic product in the daily life of users. When a user uses the intelligent terminal to carry out conversation and other scenes, the wireless earphone can be used for assisting conversation or music, when the existing double-wireless earphone is connected with the intelligent terminal, the main earphone and the intelligent terminal generally carry out data transmission, and the slave earphone obtains the data of the intelligent terminal through the main earphone. When the double wireless earphones and the intelligent terminal carry out transmission link switching, a data transmission link needs to be interrupted and reestablished.
Disclosure of Invention
The embodiment of the application provides a transmission link switching control method and a related product, which are beneficial to improving the convenience and speed of transmission link switching in a dual-wireless earphone system.
In a first aspect, an embodiment of the present application provides a transmission link switching control method, which is applied to a mobile terminal, where the mobile terminal establishes a first communication link with a first wireless headset, and the first wireless headset establishes a second communication link with a second wireless headset, where the method includes:
the mobile terminal receives a first message from the first wireless earphone and executes a first preset operation and a second preset operation in parallel, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, wherein the first message is transmitted by the first wireless earphone after determining to perform a transmission link switch, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
In a second aspect, an embodiment of the present application provides a transmission link switching control method, which is applied to a first wireless headset, where the first wireless headset establishes a first communication link with a mobile terminal, and the first wireless headset establishes a second communication link with a second wireless headset, where the method includes:
the method comprises the steps that when a first wireless earphone determines to perform transmission link switching, a first message is sent to a mobile terminal, wherein the first message is used for indicating the mobile terminal to execute a first preset operation and a second preset operation in parallel, the first preset operation is a forbidden first function, the first communication link is disconnected, the second preset operation is used for sending a second message to a second wireless earphone, the second message is used for indicating the second wireless earphone to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is used for establishing a third communication link with the mobile terminal, the fourth preset operation is used for disconnecting the second communication link and establishing a fourth communication link with a first wireless earphone, and the first function is a function of transmitting preset type data to the first wireless earphone.
In a third aspect, an embodiment of the present application provides a transmission link switching control method, which is applied to a second wireless headset, where the second wireless headset establishes a second communication link with a first wireless headset, and the first wireless headset establishes a first communication link with a mobile terminal, where the method includes:
the second wireless earphone receives a second message from the mobile terminal and executes a third preset operation and a fourth preset operation in parallel, wherein the second message is the first message received by the mobile terminal from the first wireless headset, the first message is transmitted during a process of performing a first preset operation and a second preset operation in parallel, the first message being transmitted by the first wireless headset after determining to perform transmission link switching, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
In a fourth aspect, a mobile terminal having a first communication link established with a first wireless headset and a second communication link established with a second wireless headset comprises a processing unit and a communication unit, wherein,
the processing unit to receive a first message from the first wireless headset through the communication unit, executing a first preset operation and a second preset operation in parallel, wherein the first preset operation is to forbid the first function and disconnect the first communication link, the second preset operation is to send a second message to the second wireless earphone, wherein the first message is transmitted by the first wireless earphone after determining to perform a transmission link switch, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
In a fifth aspect, a first wireless headset having a first communication link established with a mobile terminal and a second communication link established with a second wireless headset, the first wireless headset comprising a processing unit and a communication unit, wherein,
the processing unit is used for sending a first message to the mobile terminal through the communication unit when determining to carry out transmission link switching, wherein the first message is used for instructing the mobile terminal to execute a first preset operation and a second preset operation in parallel, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
In a sixth aspect, a second wireless headset having a second communication link established with a first wireless headset having a first communication link established with a mobile terminal, the second wireless headset comprising a processing unit and a communication unit,
the processing unit is configured to receive, by the communication unit, a second message from the mobile terminal, and execute a third preset operation and a fourth preset operation in parallel, where the second message is sent by the mobile terminal in a process of executing a first preset operation and a second preset operation in parallel after receiving a first message from the first wireless headset, the first message is sent by the first wireless headset after determining to perform transmission link switching, the first preset operation is to disable a first function and disconnect the first communication link, the second preset operation is to send a second message to the second wireless headset, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link and establish a fourth communication link with the first wireless headset, the first function is a function of transmitting preset type data to the first wireless headset.
In a seventh aspect, an embodiment of the present application provides a mobile terminal, 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 program includes instructions for executing steps of any method in the first aspect of the embodiment of the present application.
In an eighth aspect, an embodiment of the present application provides a mobile terminal, 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 program includes instructions for executing the steps in any of the methods in the second aspect of the embodiment of the present application.
In a ninth aspect, an embodiment of the present application provides a mobile terminal, 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 program includes instructions for executing steps in any of the methods in the third aspect of the embodiments of the present application.
In a tenth 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 causes a computer to perform some or all of the steps described in any one of the methods of the first aspect, the second aspect, or the third aspect of the embodiments of the present application.
It can be seen that, in the embodiment of the present application, in the dual wireless headset system, the mobile terminal establishes a first communication link with the first wireless headset, the first wireless headset establishes a second communication link with the second wireless headset, after determining to perform transmission link switching, the first wireless headset first notifies the mobile terminal through a first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through a second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, wherein the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1 is a system architecture diagram of a wireless headset system;
fig. 2 is a schematic flowchart of a transmission link switching control method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of another transmission link switching control method disclosed in the embodiment of the present application;
fig. 4 is a schematic flow chart of another transmission link switching control method disclosed in the embodiment of the present application;
fig. 5 is a schematic flow chart of another transmission link switching control method disclosed in the embodiment of the present application;
fig. 6A is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
fig. 6B is a schematic structural diagram of a first wireless headset disclosed in an embodiment of the present application;
fig. 6C is a schematic structural diagram of a second wireless headset disclosed in the embodiments of the present application;
fig. 7 is a block diagram illustrating functional units of a mobile terminal according to an embodiment of the present disclosure;
fig. 8 is a block diagram of functional units of a first wireless headset according to an embodiment of the present disclosure;
fig. 9 is a block diagram of functional units of a second wireless headset according to an embodiment of the present disclosure;
fig. 10 is a system architecture diagram of a wireless headset system according to an embodiment of the present application.
Detailed description of the invention
In order to make the technical solutions better understood by those skilled in the art, 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 partial embodiments of the present application, but not all 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 following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying 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.
As shown in fig. 1, the present embodiment provides an exemplary wireless headset system 100, which includes a mobile terminal 1010, a first wireless headset 1020 and a second wireless headset 1030, wherein the mobile terminal 1010 and the first wireless headset 1020 establish a first communication link, the first wireless headset 1020 and the second wireless headset 1030 establish a second communication link, that is, a master-slave communication mechanism (specifically, a bluetooth protocol may be used) is used as a communication mechanism between the first wireless headset 1020 and the second wireless headset 1030 and the mobile terminal 1010, where the master headset is a headset that directly establishes a communication link with the mobile terminal 1010 for a preset type of data interaction, and the slave headset is a headset that relays through the master headset and then interacts with the mobile terminal 1010 for the preset type of data interaction, where the preset type of data includes media data and/or call data, where the media data is audio data and/or video data of the mobile terminal 1010 other than the call voice data Accordingly, the call data is call voice data of the mobile terminal 1010, the first wireless headset 1020 and the second wireless headset 1030 may be bluetooth wireless headsets, and the like, and the first wireless headset 1020 and the second wireless headset 1030 have decision-making and data processing capabilities, the mobile terminal 1010 is generally provided with a program operating space, which includes a user space and an operating system space, wherein the user space is running one or more applications, the one or more applications are third-party applications installed in the mobile terminal 1010, and the operating system space is running an operating system of the mobile terminal 1010. The Mobile terminal 1010 may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), etc. having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a flowchart illustrating a control method for transmission link switching according to an embodiment of the present application, which is applied to a mobile terminal, where the mobile terminal establishes a first communication link with a first wireless headset, and the first wireless headset establishes a second communication link with a second wireless headset, and the control method for transmission link switching includes:
s201, the mobile terminal receives a first message from the first wireless earphone, and executes a first preset operation and a second preset operation in parallel, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, wherein the first message is transmitted by the first wireless earphone after determining to perform a transmission link switch, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
The transmission link switching process of the first wireless headset and the second wireless headset is also referred to as a master-slave headset switching process, and the specific implementation manner of determining the transmission link switching by the first wireless headset may be various, which is only limited herein.
For example, the first wireless headset may determine to perform transmission link switching when detecting a preset operation of a user on a touch pad of the first wireless headset.
For another example, when the quality of the current link channel is detected to be lower than the preset quality during the voice call, the first wireless headset determines to perform transmission link switching.
The mobile terminal can transmit call voice data to the master earphone and receive the call voice data forwarded by the master earphone from the slave earphone when running a call application, so that the call voice data can be played by the master earphone and the slave earphone.
The first message may be a link switching notification message, and the second message may be a master-slave link establishment request message, where the master link is a communication link between the wireless headset and the mobile terminal for transmitting data of a preset type, such as the first communication link and the third communication link, and the slave link is a communication link between the wireless headset and the wireless headset for transmitting data of a preset type, such as the second communication link and the fourth communication link.
The mobile terminal can interact with the second wireless earphone through a newly established third communication link to preset type data, and the first wireless earphone can interact with the second wireless earphone through a fourth communication link to preset type data.
The mobile terminal may be paired with the first wireless headset and the second wireless headset in advance, so as to obtain device capability information of the first wireless headset and the second wireless headset in advance, where the device capability information includes a supported basic communication protocol, such as a bluetooth protocol.
It can be seen that, in the embodiment of the present application, in the dual wireless headset system, the mobile terminal establishes a first communication link with the first wireless headset, the first wireless headset establishes a second communication link with the second wireless headset, after determining to perform transmission link switching, the first wireless headset first notifies the mobile terminal through the first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through the second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, where the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, the mobile terminal disconnecting the first communication link includes: the mobile terminal deletes a first media protocol file and a first conversation protocol file stored in the local terminal, wherein the first media protocol file and the first conversation protocol file are negotiated and determined by the mobile terminal and the first wireless earphone in advance.
The media protocol file is a protocol file supporting media data transmission, and the call protocol file is a protocol file supporting call voice data transmission.
If the mobile terminal is transmitting the preset type data, if the currently running application is a call application, a music playing application or a video playing application, after deleting the first media protocol file and the first call protocol file of the mobile terminal, because the second wireless earphone does not successfully establish the third communication link with the mobile terminal at the current moment, the mobile terminal can continue to run the currently running application and simultaneously no longer transmit the preset type data before establishing the third communication link with the second wireless earphone, and the mobile terminal completes the related functions of the voice data.
It can be seen that, in this example, after receiving the first message of the first wireless headset, the mobile terminal deletes the protocol file stored at the local terminal and related to the first communication link, so as to interrupt transmission of the preset type data with the first wireless headset in time, avoid a situation that the preset type data is continuously transmitted on the link but the first wireless headset does not receive any more, and improve accuracy of controlling data transmission in the link switching process.
In one possible example, after the mobile terminal sends the second message to the second wireless headset, the method further comprises: and the mobile terminal receives a third message from the second wireless earphone, determines that transmission link switching is completed, and starts a second function, wherein the second function is a function of transmitting the preset type data to the second wireless earphone, and the third message is sent by the second wireless earphone after the fourth communication link is newly established by the first wireless earphone.
Wherein the third message may be a slave link setup response message.
As can be seen, in this example, after the third fourth communication link is established, the mobile terminal may start the second function to resume transmission of the preset type of data, so that data transmission interruption delay caused by link switching may be reduced, and link switching efficiency and speed are improved.
In one possible example, after the mobile terminal sends the second message to the second wireless headset, the method further comprises: and the mobile terminal receives a third message from the second wireless earphone and starts a second function, wherein the second function is a function of transmitting the preset type data to the second wireless earphone, and the third message is sent by the second wireless earphone after the mobile terminal establishes the third communication link newly.
As can be seen, in this example, the mobile terminal may immediately start the second function to resume transmission of the preset type data only after the third communication link is established, so that data transmission interruption time delay caused by link switching may be reduced, and the speed of resuming transmission of the preset type data in the link switching process is increased.
In one possible example, after the mobile terminal receives the first message from the first wireless headset, the method further comprises:
the mobile terminal determines the distance between the local terminal and the first wireless earphone or the second wireless earphone, when the distance is detected to be smaller than the preset distance, the preset hardware of the local terminal is started to support the function currently executed by the mobile terminal, the function comprises a playing function and/or a recording function, and the preset hardware comprises a loudspeaker matched with the playing function and/or a microphone matched with the recording function.
It can be seen that, in this example, after the mobile terminal receives the first message and determines that the link switching is started in a scene in which the function is being executed by using the wireless headset, the distance between the home terminal and the wireless headset may be determined in time to detect whether the mobile terminal is currently located near the user, and if the distance is smaller than the preset distance, it indicates that the mobile terminal is currently located near the user, the playing and recording functions may be timely switched to the home terminal to be continuously executed, so as to avoid occurrence of a situation of directly interrupting the function as much as possible, and improve stability and intelligence of the execution function of the mobile terminal.
In one possible example, after the mobile terminal receives the first message from the first wireless headset, the method further comprises:
the mobile terminal acquires state information of a home terminal, wherein the state information comprises system state information and environment state information, the system state information comprises position information and screen state information, and the environment state information comprises ambient light intensity and the like;
and the mobile terminal determines that the terminal is in a held state according to the state information, and starts preset hardware of the terminal to support the currently executed functions of the mobile terminal, wherein the functions comprise a playing function and/or a recording function, and the preset hardware comprises a loudspeaker matched with the playing function and/or a microphone matched with the recording function.
It can be seen that, in this example, after receiving the first message, the mobile terminal determines that the mobile terminal is currently located near the user by obtaining the state information for the scene in which the function is being executed by using the wireless headset, and then the playing and recording functions can be timely switched to the local terminal for continuous execution, so that the occurrence of a situation in which the function is directly interrupted is avoided as much as possible, and the stability and the intelligence of the execution function of the mobile terminal are improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a transmission link switching control method according to an embodiment of the present application, and is applied to a first wireless headset, where the first wireless headset and a mobile terminal establish a first communication link, and the first wireless headset and a second wireless headset establish a second communication link. As shown in the figure, the transmission link switching control method includes:
the method comprises the steps that S301, when determining to perform transmission link switching, a first wireless earphone sends a first message to the mobile terminal, wherein the first message is used for indicating the mobile terminal to execute a first preset operation and a second preset operation in parallel, the first preset operation is a forbidden first function, the first communication link is disconnected, the second preset operation is used for sending a second message to a second wireless earphone, the second message is used for indicating the second wireless earphone to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is used for establishing a third communication link with the mobile terminal, the fourth preset operation is used for disconnecting the second communication link and establishing a fourth communication link with the first wireless earphone, and the first function is a function of transmitting preset type data to the first wireless earphone.
It can be seen that, in the embodiment of the present application, in the dual wireless headset system, the mobile terminal establishes a first communication link with the first wireless headset, the first wireless headset establishes a second communication link with the second wireless headset, after determining to perform transmission link switching, the first wireless headset first notifies the mobile terminal through the first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through the second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, where the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, when the first wireless headset determines to perform a transmission link switch, the method further comprises: and the first wireless earphone deletes a second media protocol file and a second communication protocol file stored in the local terminal, wherein the second media protocol file and the second communication protocol file are negotiated and determined by the first wireless earphone and the mobile terminal in advance.
As can be seen, in this example, after determining to perform transmission link switching, the first wireless headset deletes the second media protocol file and the second communication protocol file stored at the local terminal, so as to avoid continuing to transmit the preset type data on the original main transmission link, and improve the accuracy of controlling data transmission in the link switching process.
In one possible example, the fourth preset operation further comprises the operations of: after the fourth communication link is newly established with the first wireless earphone, a third message is sent to the mobile terminal;
the third message is used for indicating the mobile terminal to determine that transmission link switching is completed, and starting a second function, where the second function is a function of transmitting the preset type data to the second wireless headset.
As can be seen, in this example, after the third fourth communication link is established, the mobile terminal may start the second function to resume transmission of the preset type of data, so that data transmission interruption delay caused by link switching may be reduced, and link switching efficiency and speed are improved.
In one possible example, the third preset operation further comprises the operations of: sending a third message to the mobile terminal after the third communication link is newly established with the mobile terminal;
the third message is used for indicating the mobile terminal to start a second function, and the second function is a function of transmitting the preset type data to the second wireless headset.
As can be seen, in this example, the mobile terminal may immediately start the second function to resume transmission of the preset type data only after the third communication link is established, so that data transmission interruption time delay caused by link switching may be reduced, and the speed of resuming transmission of the preset type data in the link switching process is increased.
Referring to fig. 4, fig. 4 is a schematic flowchart of a transmission link switching control method according to an embodiment of the present application, and is applied to a second wireless headset, where the second wireless headset and a first wireless headset establish a second communication link, and the first wireless headset and a mobile terminal establish a first communication link. As shown in the figure, the transmission link switching control method includes:
s401, the second wireless earphone receives a second message from the mobile terminal, and executes a third preset operation and a fourth preset operation in parallel, wherein the second message is the first message received by the mobile terminal from the first wireless headset, the first message is transmitted during a process of performing a first preset operation and a second preset operation in parallel, the first message being transmitted by the first wireless headset after determining to perform transmission link switching, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
It can be seen that, in the embodiment of the present application, in the dual wireless headset system, a first communication link is established between the mobile terminal and the first wireless headset, a second communication link is established between the first wireless headset and the second wireless headset, after the first wireless headset determines to perform transmission link switching, the first wireless headset first notifies the mobile terminal through a first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through a second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, wherein the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, the second wireless headset disconnects the second communication link, comprising: and the second wireless earphone deletes a third media protocol file and a third communication protocol file stored in the local terminal, wherein the third media protocol file and the third communication protocol file are negotiated and determined by the second wireless earphone and the first wireless earphone in advance.
Therefore, in this example, the second wireless headset may delete the third media protocol file and the third session protocol file stored at the local terminal, so as to avoid continuing to transmit the preset type data on the original slave transmission link, and improve the accuracy of controlling data transmission in the link switching process.
In one possible example, after the second wireless headset establishes the fourth communication link with the first wireless headset, the method further comprises: and the second wireless earphone sends a third message to the mobile terminal, wherein the third message is used for indicating the mobile terminal to determine that the transmission link switching is completed and start a second function, and the second function is a function of transmitting the preset type data to the second wireless earphone.
As can be seen, in this example, after the third fourth communication link is established, the mobile terminal may start the second function to resume transmission of the preset type of data, so that data transmission interruption delay caused by link switching may be reduced, and link switching efficiency and speed are improved.
In one possible example, after the second wireless headset establishes the third communication link with the mobile terminal, the method further comprises: and the second wireless earphone sends a third message to the mobile terminal, wherein the third message is used for indicating the mobile terminal to start a second function, and the second function is a function of transmitting the preset type data to the second wireless earphone.
As can be seen, in this example, the mobile terminal may immediately start the second function to resume transmission of the preset type data only after the third communication link is established, so that data transmission interruption time delay caused by link switching may be reduced, and the speed of resuming transmission of the preset type data in the link switching process is increased.
Referring to fig. 5, fig. 5 is a schematic flowchart of a transmission link switching control method provided in an embodiment of the present application, and the method is applied to a wireless headset system, where the system includes a first wireless headset, a second wireless headset, and a mobile terminal, where the second wireless headset and the first wireless headset establish a second communication link, and the first wireless headset and the mobile terminal establish a first communication link. As shown in the figure, the transmission link switching control method includes:
s501, when determining to perform transmission link switching, the first wireless earphone sends a first message to the mobile terminal, wherein the first message is used for indicating the mobile terminal to execute a first preset operation and a second preset operation in parallel, the first preset operation is a first forbidden function, the first communication link is disconnected, the second preset operation is used for sending a second message to the second wireless earphone, the second message is used for indicating the second wireless earphone to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is used for establishing a third communication link with the mobile terminal, the fourth preset operation is used for disconnecting the second communication link and establishing a fourth communication link with the first wireless earphone, and the first function is a function of transmitting preset type data to the first wireless earphone.
S502, the mobile terminal receives a first message from the first wireless earphone, and executes a first preset operation and a second preset operation in parallel, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, wherein the first message is transmitted by the first wireless earphone after determining to perform a transmission link switch, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
S503, the second wireless earphone receives the second message from the mobile terminal, and executes a third preset operation and a fourth preset operation in parallel, wherein the second message is the first message received by the mobile terminal from the first wireless headset, the first message is transmitted during a process of performing a first preset operation and a second preset operation in parallel, the first message being transmitted by the first wireless headset after determining to perform transmission link switching, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
It can be seen that, in the embodiment of the present application, in the dual wireless headset system, the mobile terminal establishes a first communication link with the first wireless headset, the first wireless headset establishes a second communication link with the second wireless headset, after determining to perform transmission link switching, the first wireless headset first notifies the mobile terminal through the first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through the second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, where the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 6A, fig. 6A is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, the mobile terminal having a first communication link with a first wireless headset, the first wireless headset having a second communication link with a second wireless headset, and the mobile terminal running one or more applications and an operating system, and as shown, the 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 executed by the processor, and the programs include instructions for performing the following steps;
receiving a first message from the first wireless earphone, and executing a first preset operation and a second preset operation in parallel, wherein the first preset operation is to disable a first function and disconnect the first communication link, the second preset operation is to send a second message to the second wireless earphone, the first message is sent after the first wireless earphone determines to perform transmission link switching, the second message is used for indicating the second wireless earphone to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link and establish a fourth communication link with the first wireless earphone, and the first function is to transmit preset type data to the first wireless earphone.
It can be seen that, in the embodiment of the present application, in the dual wireless headset system, the mobile terminal establishes a first communication link with the first wireless headset, the first wireless headset establishes a second communication link with the second wireless headset, after determining to perform transmission link switching, the first wireless headset first notifies the mobile terminal through the first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through the second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, where the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, in terms of said disconnecting said first communication link, the instructions in said program are specifically configured to perform the following operations: and deleting a first media protocol file and a first conversation protocol file stored at the local terminal, wherein the first media protocol file and the first conversation protocol file are negotiated and determined by the mobile terminal and the first wireless earphone in advance.
In one possible example, the program further includes instructions for: after the second message is sent to the second wireless headset, receiving a third message from the second wireless headset, determining that transmission link switching is completed, and enabling a second function, where the second function is a function of transmitting the preset type data to the second wireless headset, and the third message is sent by the second wireless headset after the fourth communication link is newly established by the first wireless headset.
In one possible example, the program further includes instructions for: after the second message is sent to the second wireless headset, receiving a third message from the second wireless headset, and enabling a second function, wherein the second function is a function of transmitting the preset type data to the second wireless headset, and the third message is sent by the second wireless headset after the mobile terminal newly establishes the third communication link.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 6B, where fig. 6B is a schematic structural diagram of a first wireless headset provided in an embodiment of the present application, the first wireless headset having a first communication link with a mobile terminal, the first wireless headset having a second communication link with a second wireless headset, and as shown, the first wireless headset includes 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 following steps;
when determining to perform transmission link switching, sending a first message to the mobile terminal, wherein the first message is used for indicating the mobile terminal to execute a first preset operation and a second preset operation in parallel, the first preset operation is to disable a first function and disconnect the first communication link, the second preset operation is to send a second message to the second wireless headset, the second message is used for indicating the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link and establish a fourth communication link with the first wireless headset, and the first function is to transmit preset type data to the first wireless headset.
In this embodiment, in the dual wireless headset system, after determining that the transmission link is switched, the first wireless headset first notifies the mobile terminal through a first message to execute a first preset operation and a second preset operation in parallel, the first preset operation is a disable first function, the second preset operation is a notify second wireless headset through a second message to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is a establish third communication link with the mobile terminal, the fourth preset operation is a disconnect of the second communication link, and a fourth communication link is established with the first wireless headset, wherein the first function is a function of transmitting preset type data to the first wireless headset, and thus, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, the program further includes instructions for: and when determining to perform transmission link switching, deleting a second media protocol file and a second communication protocol file stored at the local terminal, wherein the second media protocol file and the second communication protocol file are negotiated and determined by the first wireless earphone and the mobile terminal in advance.
In one possible example, the fourth preset operation further comprises the operations of: after the fourth communication link is newly established with the first wireless earphone, a third message is sent to the mobile terminal;
the third message is used for indicating the mobile terminal to determine that transmission link switching is completed, and starting a second function, where the second function is a function of transmitting the preset type data to the second wireless headset.
In one possible example, the third preset operation further comprises the operations of: sending a third message to the mobile terminal after the third communication link is newly established with the mobile terminal;
the third message is used for indicating the mobile terminal to start a second function, and the second function is a function of transmitting the preset type data to the second wireless headset.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 6C, where fig. 6C is a schematic structural diagram of a second wireless headset provided in an embodiment of the present application, the second wireless headset having a second communication link with a first wireless headset, the first wireless headset having a first communication link with a mobile terminal, and as shown, the second wireless headset includes 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 following steps;
receiving a second message from the mobile terminal, executing a third preset operation and a fourth preset operation in parallel, wherein the second message is the first message received by the mobile terminal from the first wireless headset, the first message is transmitted during a process of performing a first preset operation and a second preset operation in parallel, the first message being transmitted by the first wireless headset after determining to perform transmission link switching, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
In this embodiment, in the dual wireless headset system, after determining that the transmission link is switched, the first wireless headset first notifies the mobile terminal through a first message to execute a first preset operation and a second preset operation in parallel, the first preset operation is a disable first function, the second preset operation is a notify second wireless headset through a second message to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is a establish third communication link with the mobile terminal, the fourth preset operation is a disconnect of the second communication link, and a fourth communication link is established with the first wireless headset, wherein the first function is a function of transmitting preset type data to the first wireless headset, and thus, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, in terms of said disconnecting said second communication link, the instructions in said program are specifically configured to perform the following operations: and deleting a third media protocol file and a third communication protocol file stored at the local terminal, wherein the third media protocol file and the third communication protocol file are negotiated and determined by the second wireless earphone and the first wireless earphone in advance.
In one possible example, the program further includes instructions for: and after the fourth communication link is established with the first wireless earphone, sending a third message to the mobile terminal, wherein the third message is used for indicating the mobile terminal to determine that transmission link switching is completed and starting a second function, and the second function is a function of transmitting the preset type data to the second wireless earphone.
In one possible example, the program further includes instructions for: after the third communication link is established with the mobile terminal, sending a third message to the mobile terminal, where the third message is used to instruct the mobile terminal to enable a second function, and the second function is a function of transmitting the preset type data to the second wireless headset.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. 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 mobile terminal 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 invention, which is used to perform the method implemented by the embodiment of the method of the present invention. As shown in fig. 7, the mobile terminal has a first communication link established with a first wireless headset and a second communication link established with a second wireless headset, the mobile terminal comprises a processing unit 701 and a communication unit 702, wherein,
the processing unit 701 is configured to receive a first message from the first wireless headset via the communication unit 702, executing a first preset operation and a second preset operation in parallel, wherein the first preset operation is to forbid the first function and disconnect the first communication link, the second preset operation is to send a second message to the second wireless earphone, wherein the first message is transmitted by the first wireless earphone after determining to perform a transmission link switch, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
The mobile terminal may further include a storage unit 703 for storing program codes and data of the mobile terminal.
It can be seen that, in the embodiment of the present application, in the dual wireless headset system, the mobile terminal establishes a first communication link with the first wireless headset, the first wireless headset establishes a second communication link with the second wireless headset, after determining to perform transmission link switching, the first wireless headset first notifies the mobile terminal through the first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through the second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, where the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, in terms of the disconnecting the first communication link, the processing unit 701 is specifically configured to: and deleting a first media protocol file and a first conversation protocol file stored at the local terminal, wherein the first media protocol file and the first conversation protocol file are negotiated and determined by the mobile terminal and the first wireless earphone in advance.
In one possible example, the processing unit 701, after sending the second message to the second wireless headset through the communication unit 702, is further configured to: receiving, by the communication unit 702, a third message from the second wireless headset, determining that transmission link switching is complete, and enabling a second function, where the second function is a function of transmitting the preset type data to the second wireless headset, and the third message is sent by the second wireless headset after the fourth communication link is newly established by the first wireless headset.
In one possible example, the processing unit 701, after sending the second message to the second wireless headset through the communication unit 702, is further configured to: receiving, by the communication unit 702, a third message from the second wireless headset, and enabling a second function, the second function being a function of transmitting the preset type data to the second wireless headset, the third message being sent by the second wireless headset after the mobile terminal newly establishes the third communication link.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. As shown in fig. 8, the first wireless headset establishes a first communication link with the mobile terminal, the first wireless headset establishes a second communication link with the second wireless headset, the first wireless headset comprises a processing unit 801 and a communication unit 802, wherein,
the processing unit 801 is configured to, when determining to perform transmission link switching, send a first message to the mobile terminal through the communication unit 802, wherein the first message is used for instructing the mobile terminal to execute a first preset operation and a second preset operation in parallel, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and establishing a fourth communication link with the first wireless earphone, wherein the first function is a function of transmitting preset type data to the first wireless earphone.
Wherein the first wireless headset may further comprise a memory unit 803 for storing program codes and data of the first wireless headset.
It can be seen that, in the dual wireless headset system according to the embodiment of the present invention, after determining that the transmission link is switched, the first wireless headset first notifies the mobile terminal through the first message to execute the first preset operation and the second preset operation in parallel, the first preset operation is a disable of the first function, the second preset operation is a notify of the second wireless headset through the second message to execute the third preset operation and the fourth preset operation in parallel, the third preset operation is a establish of a third communication link with the mobile terminal, the fourth preset operation is a disconnect of the second communication link, and a fourth communication link is established with the first wireless headset, where the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, the processing unit 801, when determining to perform transmission link switching, is further configured to: and deleting a second media protocol file and a second communication protocol file stored in the local terminal, wherein the second media protocol file and the second communication protocol file are negotiated and determined by the first wireless earphone and the mobile terminal in advance.
In one possible example, the fourth preset operation further comprises the operations of: after the fourth communication link is newly established with the first wireless earphone, a third message is sent to the mobile terminal;
the third message is used for indicating the mobile terminal to determine that transmission link switching is completed, and starting a second function, where the second function is a function of transmitting the preset type data to the second wireless headset.
In one possible example, the third preset operation further comprises the operations of: sending a third message to the mobile terminal after the third communication link is newly established with the mobile terminal;
the third message is used for indicating the mobile terminal to start a second function, and the second function is a function of transmitting the preset type data to the second wireless headset.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. As shown in fig. 9, the second wireless headset establishes a second communication link with the first wireless headset, the first wireless headset establishes a first communication link with the mobile terminal, the second wireless headset comprises a processing unit 901 and a communication unit 902, wherein,
the processing unit 901 is configured to receive a second message from the mobile terminal through the communication unit 902, and execute a third preset operation and a fourth preset operation in parallel, where the second message is sent by the mobile terminal in a process of executing a first preset operation and a second preset operation in parallel after receiving a first message from the first wireless headset, the first message is sent by the first wireless headset after determining to perform transmission link switching, the first preset operation is to disable a first function and disconnect the first communication link, the second preset operation is to send a second message to the second wireless headset, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link and establish a fourth communication link with the first wireless headset, the first function is a function of transmitting preset type data to the first wireless headset.
Wherein the second wireless headset may further comprise a storage unit 903 for storing program codes and data of the second wireless headset.
It can be seen that, in the dual wireless headset system according to the embodiment of the present invention, after determining that the transmission link is switched, the first wireless headset first notifies the mobile terminal through the first message to execute the first preset operation and the second preset operation in parallel, the first preset operation is a disable of the first function, the second preset operation is a notify of the second wireless headset through the second message to execute the third preset operation and the fourth preset operation in parallel, the third preset operation is a establish of a third communication link with the mobile terminal, the fourth preset operation is a disconnect of the second communication link, and a fourth communication link is established with the first wireless headset, where the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
In one possible example, in terms of the disconnecting the second communication link, the processing unit 901 is specifically configured to: and deleting a third media protocol file and a third communication protocol file stored at the local terminal, wherein the third media protocol file and the third communication protocol file are negotiated and determined by the second wireless earphone and the first wireless earphone in advance.
In one possible example, the processing unit 901, after establishing the fourth communication link with the first wireless headset via the communication unit 902, is further configured to: sending a third message to the mobile terminal through the communication unit 902, where the third message is used to instruct the mobile terminal to determine that transmission link switching is completed, and enabling a second function, where the second function is a function of transmitting the preset type data to the second wireless headset.
In one possible example, the processing unit 901 is further configured to, after establishing the third communication link with the mobile terminal through the communication unit 902: sending a third message to the mobile terminal through the communication unit 902, where the third message is used to instruct the mobile terminal to enable a second function, and the second function is a function of transmitting the preset type data to the second wireless headset.
The Processing Unit 701, the Processing Unit 801 and the Processing Unit 901 may be a Processor or a controller, such as a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The communication unit 702, the communication unit 802, and the communication unit 803 may be a communication interface, a transmitting/receiving circuit, or the like, and the storage unit 703, the storage unit 803, and the storage unit 903 may be memories.
Referring to fig. 10, embodiments of the present application further provide a fall detection system 1000, which may include: a mobile terminal 1010, a first wireless headset 1020, a second wireless headset 1030, wherein,
the first wireless earphone 1020 is configured to send a first message to the mobile terminal 1010 when determining to perform a transmission link switch, wherein the first message is used for instructing the mobile terminal 1010 to execute a first preset operation and a second preset operation in parallel, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset 1030, the second message is used to instruct the second wireless headset 1030 to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal 1010, the fourth preset operation is to disconnect the second communication link, a fourth communication link is established with the first wireless headset 1020, and the first function is a function of transmitting preset type data to the first wireless headset 1020.
The mobile terminal 1010, for receiving a first message from the first wireless headset 1020, executing a first preset operation and a second preset operation in parallel, wherein the first preset operation is disabling the first function and disconnecting the first communication link, the second preset operation is sending a second message to the second wireless headset 1030, wherein the first message is transmitted by the first wireless earphone 1020 after determining to perform a transmission link switch, the second message is used to instruct the second wireless headset 1030 to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal 1010, the fourth preset operation is to disconnect the second communication link, a fourth communication link is established with the first wireless headset 1020, and the first function is a function of transmitting preset type data to the first wireless headset 1020.
The second wireless headset 1030 is configured to receive a second message from the mobile terminal 1010, and execute a third preset operation and a fourth preset operation in parallel, where the second message is sent by the mobile terminal 1010 in a process of executing a first preset operation and a second preset operation in parallel after receiving a first message from the first wireless headset 1020, the first message is sent by the first wireless headset 1020 after determining to perform transmission link switching, the first preset operation is to disable a first function, disconnect the first communication link, the second preset operation is to send a second message to the second wireless headset 1030, the third preset operation is to establish a third communication link with the mobile terminal 1010, the fourth preset operation is to disconnect the second communication link, and establish a fourth communication link with the first wireless headset 1020, the first function is a function of transmitting a preset type of data to the first wireless headset 1020.
It can be seen that, in the dual wireless headset system in this example, the mobile terminal establishes a first communication link with the first wireless headset, the first wireless headset establishes a second communication link with the second wireless headset, after determining to perform transmission link switching, the first wireless headset first notifies the mobile terminal through a first message to perform a first preset operation and a second preset operation in parallel, the first preset operation is to disable the first function, the second preset operation is to notify the second wireless headset through a second message to perform a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, and a fourth communication link is established with the first wireless headset, wherein the first function is a function of transmitting preset type data to the first wireless headset, so far, the mobile terminal, The first wireless earphone and the second wireless earphone complete the link switching of the master earphone and the slave earphone, and the first operation and the second operation are parallel, and the third operation and the fourth operation are parallel in the switching process, so the processing time in the link switching process can be reduced, and the efficiency and the speed of the link switching in the double wireless earphone system are improved.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
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 above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. 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 may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. 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 above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
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 Memory 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 (20)

1. A transmission link switching control method applied to a mobile terminal, wherein the mobile terminal establishes a first communication link with a first wireless headset, and the first wireless headset establishes a second communication link with a second wireless headset, the method comprising:
the mobile terminal receives a first message from the first wireless earphone and executes a first preset operation and a second preset operation in parallel, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, wherein the first message is transmitted by the first wireless earphone after determining to perform a transmission link switch, the second message is used for instructing the second wireless headset to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, establishing a fourth communication link with the first wireless headset, wherein the first function is a function of transmitting preset type data to the first wireless headset;
the third communication link is used for the mobile terminal to interact with the second wireless earphone for preset type data, and the fourth communication link is used for the first wireless earphone to interact with the second wireless earphone for preset type data.
2. The method of claim 1, wherein the mobile terminal disconnecting the first communication link comprises:
the mobile terminal deletes a first media protocol file and a first conversation protocol file stored in the local terminal, wherein the first media protocol file and the first conversation protocol file are negotiated and determined by the mobile terminal and the first wireless earphone in advance.
3. The method of claim 1 or 2, wherein after the mobile terminal sends the second message to the second wireless headset, the method further comprises:
and the mobile terminal receives a third message from the second wireless earphone, determines that transmission link switching is completed, and starts a second function, wherein the second function is a function of transmitting the preset type data to the second wireless earphone, and the third message is sent by the second wireless earphone after the fourth communication link is newly established by the first wireless earphone.
4. The method of claim 1 or 2, wherein after the mobile terminal sends the second message to the second wireless headset, the method further comprises:
and the mobile terminal receives a third message from the second wireless earphone and starts a second function, wherein the second function is a function of transmitting the preset type data to the second wireless earphone, and the third message is sent by the second wireless earphone after the mobile terminal establishes the third communication link newly.
5. The method according to claim 1 or 2, wherein the preset type data comprises: the media data are audio data and/or video data of the mobile terminal except call data.
6. A transmission link switching control method, applied to a first wireless headset, where the first wireless headset establishes a first communication link with a mobile terminal, and the first wireless headset establishes a second communication link with a second wireless headset, includes:
the method comprises the steps that when determining to perform transmission link switching, a first wireless earphone sends a first message to a mobile terminal, wherein the first message is used for indicating the mobile terminal to execute a first preset operation and a second preset operation in parallel, the first preset operation is a forbidden first function, the first communication link is disconnected, the second preset operation is used for sending a second message to a second wireless earphone, the second message is used for indicating the second wireless earphone to execute a third preset operation and a fourth preset operation in parallel, the third preset operation is used for establishing a third communication link with the mobile terminal, the fourth preset operation is used for disconnecting the second communication link and establishing a fourth communication link with a first wireless earphone, and the first function is a function of transmitting preset type data to the first wireless earphone;
the third communication link is used for the mobile terminal to interact with the second wireless earphone for preset type data, and the fourth communication link is used for the first wireless earphone to interact with the second wireless earphone for preset type data.
7. The method of claim 6, wherein when the first wireless headset determines to perform a transmission link switch, the method further comprises:
and the first wireless earphone deletes a second media protocol file and a second communication protocol file stored in the local terminal, wherein the second media protocol file and the second communication protocol file are negotiated and determined by the first wireless earphone and the mobile terminal in advance.
8. The method according to claim 6 or 7, characterized in that said fourth preset operations further comprise the following operations: after the fourth communication link is newly established with the first wireless earphone, a third message is sent to the mobile terminal;
the third message is used for indicating the mobile terminal to determine that transmission link switching is completed, and starting a second function, where the second function is a function of transmitting the preset type data to the second wireless headset.
9. The method according to claim 6 or 7, characterized in that said third preset operations further comprise the following operations: sending a third message to the mobile terminal after the third communication link is newly established with the mobile terminal;
the third message is used for indicating the mobile terminal to start a second function, and the second function is a function of transmitting the preset type data to the second wireless headset.
10. The method according to claim 6 or 7, wherein the preset type data comprises: the media data are audio data and/or video data of the mobile terminal except call data.
11. A transmission link switching control method, applied to a second wireless headset, where the second wireless headset establishes a second communication link with a first wireless headset, and the first wireless headset establishes a first communication link with a mobile terminal, the method comprising:
the second wireless earphone receives a second message from the mobile terminal and executes a third preset operation and a fourth preset operation in parallel, wherein the second message is the first message received by the mobile terminal from the first wireless headset, the first message is transmitted during a process of performing a first preset operation and a second preset operation in parallel, the first message being transmitted by the first wireless headset after determining to perform transmission link switching, the first predetermined operation is disabling a first function, disconnecting the first communication link, the second predetermined operation is sending a second message to the second wireless headset, the third preset operation is to establish a third communication link with the mobile terminal, the fourth preset operation is to disconnect the second communication link, establishing a fourth communication link with the first wireless headset, wherein the first function is a function of transmitting preset type data to the first wireless headset;
the third communication link is used for the mobile terminal to interact with the second wireless earphone for preset type data, and the fourth communication link is used for the first wireless earphone to interact with the second wireless earphone for preset type data.
12. The method of claim 11, wherein the second wireless headset disconnects the second communication link, comprising:
and the second wireless earphone deletes a third media protocol file and a third communication protocol file stored in the local terminal, wherein the third media protocol file and the third communication protocol file are negotiated and determined by the second wireless earphone and the first wireless earphone in advance.
13. The method of claim 11 or 12, wherein after the second wireless headset establishes the fourth communication link with the first wireless headset, the method further comprises:
and the second wireless earphone sends a third message to the mobile terminal, wherein the third message is used for indicating the mobile terminal to determine that the transmission link switching is completed and start a second function, and the second function is a function of transmitting the preset type data to the second wireless earphone.
14. The method of claim 11 or 12, wherein after the second wireless headset establishes the third communication link with the mobile terminal, the method further comprises:
and the second wireless earphone sends a third message to the mobile terminal, wherein the third message is used for indicating the mobile terminal to start a second function, and the second function is a function of transmitting the preset type data to the second wireless earphone.
15. The method according to claim 11 or 12, wherein the preset type data comprises: the media data are audio data and/or video data of the mobile terminal except call data.
16. A mobile terminal comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of any of claims 1-5.
17. A first wireless headset comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 6-10.
18. A second wireless headset comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 11-15.
19. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-15.
20. A wireless headset system comprising a mobile terminal according to any of claims 1-5, a first wireless headset according to any of claims 6-10 and a second wireless headset according to any of claims 11-15.
CN201810836744.5A 2018-07-26 2018-07-26 Transmission link switching control method and related product Active CN109121171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810836744.5A CN109121171B (en) 2018-07-26 2018-07-26 Transmission link switching control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810836744.5A CN109121171B (en) 2018-07-26 2018-07-26 Transmission link switching control method and related product

Publications (2)

Publication Number Publication Date
CN109121171A CN109121171A (en) 2019-01-01
CN109121171B true CN109121171B (en) 2021-05-04

Family

ID=64863627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810836744.5A Active CN109121171B (en) 2018-07-26 2018-07-26 Transmission link switching control method and related product

Country Status (1)

Country Link
CN (1) CN109121171B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3145272A1 (en) * 2015-09-18 2017-03-22 Sivantos Pte. Ltd. Selecting a communication state of a mobile terminal
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN107302628A (en) * 2017-05-27 2017-10-27 广东欧珀移动通信有限公司 The control method and Related product of application function
CN107885478A (en) * 2017-09-21 2018-04-06 广东思派康电子科技有限公司 Computer-readable recording medium, communication system
CN107894881A (en) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3145272A1 (en) * 2015-09-18 2017-03-22 Sivantos Pte. Ltd. Selecting a communication state of a mobile terminal
CN106937197A (en) * 2017-01-25 2017-07-07 北京联创志芯科技有限公司 Double-ear wireless earphone and communication control method thereof
CN107302628A (en) * 2017-05-27 2017-10-27 广东欧珀移动通信有限公司 The control method and Related product of application function
CN107885478A (en) * 2017-09-21 2018-04-06 广东思派康电子科技有限公司 Computer-readable recording medium, communication system
CN107894881A (en) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch

Also Published As

Publication number Publication date
CN109121171A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
WO2021082875A1 (en) Method and apparatus for switching master and slave bluetooth headsets, bluetooth headset, and system
EP3537734B1 (en) Method and device for connecting a bluetooth device
CN111818503B (en) Voice communication method, system, chip, electronic equipment and storage medium
JP6924783B2 (en) Bluetooth connection management methods, master bluetooth devices, and equipment
CN109041141B (en) Transmission link switching control method and related product
JP7480267B2 (en) Service processing method, information transmission method and related device
CN109151212B (en) Equipment control method and device and electronic equipment
US11425520B2 (en) Method for detecting blocking of microphone and related products
WO2020048209A1 (en) Sound effect processing method and apparatus, and electronic device and storage medium
CN109257732B (en) Equipment control method and device and electronic equipment
CN109117111B (en) Transmission link switching control method and related product
CN111556439A (en) Terminal connection control method, terminal and computer storage medium
CN114040373A (en) Audio service processing method and device, electronic equipment and storage medium
JP2021521737A (en) Access control method, message broadcasting method and related equipment
WO2020135249A1 (en) Game interference processing method and apparatus and mobile terminal
WO2024119947A1 (en) Bluetooth communication method and apparatus, electronic device, and computer-readable medium
CN104780574A (en) Method and device for network switchover
CN104023117B (en) A kind of method of information processing and electronic equipment
CN109121172B (en) Transmission link switching control method and related product
CN111182597B (en) Processing method and device
CN109121171B (en) Transmission link switching control method and related product
CN109151934B (en) Transmission link switching control method and related product
CN111182518A (en) Processing method and device
JP4642622B2 (en) Wireless communication method, wireless communication system, wireless communication terminal, and base station
WO2018058875A1 (en) Call switching method and system for terminal, terminal, and computer storage medium

Legal Events

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