CN113271376A - Communication control method, electronic equipment and earphone - Google Patents

Communication control method, electronic equipment and earphone Download PDF

Info

Publication number
CN113271376A
CN113271376A CN202110504454.2A CN202110504454A CN113271376A CN 113271376 A CN113271376 A CN 113271376A CN 202110504454 A CN202110504454 A CN 202110504454A CN 113271376 A CN113271376 A CN 113271376A
Authority
CN
China
Prior art keywords
earphone
target application
identification information
communication
communication identification
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.)
Granted
Application number
CN202110504454.2A
Other languages
Chinese (zh)
Other versions
CN113271376B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110504454.2A priority Critical patent/CN113271376B/en
Publication of CN113271376A publication Critical patent/CN113271376A/en
Priority to PCT/CN2022/090912 priority patent/WO2022237609A1/en
Application granted granted Critical
Publication of CN113271376B publication Critical patent/CN113271376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a communication control method, electronic equipment and an earphone, and belongs to the technical field of communication. The method comprises the following steps: determining a target application program with earphone communication requirements from a plurality of running application programs, setting different communication identification information for the target application program respectively under the condition that the number of the target application programs is not less than 2, and controlling the target application program to communicate with earphones with the same communication identification information.

Description

Communication control method, electronic equipment and earphone
Technical Field
The application belongs to the technical field of communication, and particularly relates to a communication control method, electronic equipment and an earphone.
Background
The earphone is used as a peripheral of the electronic equipment, and can assist the electronic equipment to realize the playing of audio data. In some scenarios, multiple Applications (APPs) in the electronic device need to communicate with the headset at the same time, and at this time, the electronic device may select an Application with the highest priority to communicate with the headset according to priorities of the multiple applications. For example, when an audio APP for playing audio and a video APP for playing video run simultaneously, the audio APP for playing audio and the video APP for playing video need to communicate with the headset at the same time, and the electronic device may select one of the audio APP or the video APP to communicate with the headset according to the priority of the audio APP and the video APP.
In the prior art, when a plurality of applications need to communicate with the headset at the same time, the electronic device selects one of the applications to communicate with the headset, which may cause other applications to fail to communicate with the headset, and thus cause a user to fail to use functions provided by other applications.
Disclosure of Invention
An object of the embodiments of the present application is to provide a communication control method, an electronic device, and a headset, which can solve a problem that when a plurality of applications need to communicate with the headset at the same time, functions of some applications cannot be used.
In a first aspect, an embodiment of the present application provides a communication control method, which is applied to an electronic device wirelessly connected to an earphone, and the method includes:
determining a target application program with earphone communication requirements from a plurality of running application programs;
under the condition that the number of the target application programs is not less than 2, respectively setting different communication identification information for the target application programs;
and controlling the target application program to communicate with the earphones with the same communication identification information.
In a second aspect, an embodiment of the present application provides another communication control method, where the method includes:
determining communication identification information of the headset; the earphone is in wireless connection with the electronic equipment, and the electronic equipment is used for setting different communication identification information for target application programs respectively under the condition that not less than 2 target application programs with earphone communication requirements in a plurality of running application programs are determined;
and controlling the earphone to communicate with the target application program with the same communication identification information.
In a third aspect, an embodiment of the present application provides an electronic device, including:
the earphone communication device comprises a first determination module, a second determination module and a third determination module, wherein the first determination module is used for determining a target application program with earphone communication requirements from a plurality of running application programs;
the setting module is used for setting different communication identification information for the target application program respectively under the condition that the number of the target application programs is not less than 2;
and the communication module is used for controlling the target application program to communicate with the earphones with the same communication identification information.
In a fourth aspect, an embodiment of the present application provides a headset, including:
a determination module for determining communication identification information of the headset; the earphone is in wireless connection with the electronic equipment, and the electronic equipment is used for setting different communication identification information for target application programs respectively under the condition that not less than 2 target application programs with earphone communication requirements in a plurality of running application programs are determined;
and the communication module is used for controlling the earphone to communicate with the target application program with the same communication identification information.
In a fifth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect or the second aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first or second aspect.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect or the second aspect.
In the embodiment of the application, the electronic equipment determines a target application program with earphone communication requirements from a plurality of running application programs, sets different communication identification information for the target application program respectively under the condition that the number of the target application programs is not less than 2, and controls the target application program to communicate with earphones with the same communication identification information. When a plurality of application programs need to communicate with the earphones at the same time, the plurality of application programs are controlled to communicate with the corresponding earphones respectively through the communication identification information, so that the plurality of application programs can work at the same time, and the problem that the functions of part of the application programs cannot be used can be solved.
Drawings
FIG. 1 is a flow chart of steps of a method of communication control provided in accordance with an exemplary embodiment;
FIG. 2 is a flow chart of steps of another method of communication control provided in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram of a mode setting provided in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram of a headset selection interface provided in accordance with an exemplary embodiment;
FIG. 5 is a schematic illustration of another headset selection interface provided in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram of a communication establishment procedure provided in accordance with an exemplary embodiment;
FIG. 7 is a schematic illustration of an application selection interface provided in accordance with an exemplary embodiment;
FIG. 8 is a flowchart illustrating steps of yet another method for communication control according to an exemplary embodiment
FIG. 9 is a diagram of a chat interface provided in accordance with an exemplary embodiment;
FIG. 10 is a flow chart illustrating a voice playback provided in accordance with an exemplary embodiment;
FIG. 11 is a schematic diagram of an electronic device provided in accordance with an example embodiment;
fig. 12 is a schematic diagram of a structure of a headset according to an exemplary embodiment;
FIG. 13 is a schematic block diagram of another electronic device provided in accordance with an exemplary embodiment;
fig. 14 is a hardware structure diagram of an electronic device according to an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The communication control method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a communication control method according to an exemplary embodiment, where the method is applied to an electronic device wirelessly connected to a headset, and may include:
step 101, determining a target application program with headset communication requirements from a plurality of running application programs.
In this embodiment, the communication control method may be executed by an electronic device, such as a mobile phone, a computer, a tablet computer, and other terminal devices. The electronic device and the earphone can be connected in a wireless connection mode, and the electronic device can execute a communication control method to control a plurality of target application programs in the electronic device to respectively communicate with the corresponding earphones.
Illustratively, the headset includes a first bluetooth headset and a second bluetooth headset, which may be a set of separate bluetooth headsets, the first bluetooth headset being configured as a master headset and the second bluetooth headset being configured as a slave headset. In the first communication mode, the electronic device may establish a communication connection with a host headset through an internal integrated bluetooth module, and the host headset may receive communication data sent by the electronic device or send communication data to the electronic device. Meanwhile, the main earphone can forward the received communication data to the auxiliary earphone, the auxiliary earphone can send the communication data to the main earphone when sending the communication data to the electronic equipment, and the main earphone forwards the communication data to the electronic equipment. In a second communication mode, the main headset is responsible for pairing with the electronic device, pairing information is set so as to establish a communication connection between the main headset and the electronic device, and communication data is received or transmitted to the electronic device based on the established communication connection. Meanwhile, the main earphone can send the pairing information to the auxiliary earphone, and the auxiliary earphone can imitate the main earphone according to the pairing information so as to receive communication data sent by the electronic equipment or send the communication data to the electronic equipment. The specific communication method between the separated bluetooth headset and the electronic device may include, but is not limited to, the above two communication methods, and any communication method known or unknown in the art may be applied in this embodiment. It should be noted that, when there are a plurality of bluetooth headsets, the plurality of bluetooth headsets may also be independent bluetooth headsets, and each bluetooth headset may establish communication connection with the electronic device.
The target application program is an application program with earphone communication requirements in a plurality of currently running application programs, wherein the earphone communication requirements comprise audio output requirements or audio input requirements or comprise both the audio input requirements and the audio output requirements. In combination with the above example, when the earphone is a bluetooth earphone, the target application program can be an audio APP for playing music, a video APP for playing video, and a conversation APP for conversation, and the audio APP, the video APP and the conversation APP can all communicate with the bluetooth earphone, and output audio data through the bluetooth earphone. Or, the bluetooth headset may generate a control instruction in response to a user operation, and send the control instruction to the corresponding APP.
In this embodiment, after the electronic device is connected to the headset, the target application may be determined from a plurality of applications currently running, so as to control the target application to communicate with the headset. With reference to the foregoing example, after the electronic device determines that the bluetooth headset is connected, and after it is monitored that the application program is started, if the application program needs to output audio data, it may be determined that the application program is a target application program with a headset communication requirement. The specific process of determining the target application program by the electronic device may be set according to requirements, which is not limited in this embodiment.
And 102, setting different communication identification information for the target application programs respectively under the condition that the number of the target application programs is not less than 2.
In this embodiment, when it is determined that the number of the target application programs is greater than or equal to two, the electronic device may set different communication identification information for the target application programs, so as to control the target application programs to communicate with the earphones having the same communication identification information according to the communication identification information of the target application programs.
For example, the user may set the priority of each target application in advance for all target applications in the electronic device, and the electronic device may set the communication identification information of the target application according to the priority of the target application. In combination with the above example, the user may set the priority of the conversation APP to be 2, the priority of the video APP to be 5, and the priority of the audio APP to be 7 in advance. After determining that the target application program comprises an audio APP, a video APP and a conversation APP, the electronic equipment can set communication identification information of the conversation APP to be A, communication identification information of the video APP to be B and communication identification information of the audio APP to be C according to priority sequences of the audio APP, the video APP and the conversation APP. The specific form of the communication identification information and the specific setting method of the communication identification information may be set according to the requirement, which is not limited in this embodiment.
And 103, controlling the target application program to communicate with the earphones with the same communication identification information.
In one embodiment, the headset may set the communication identification information of the headset according to a method of setting the communication identification information of the electronic device. In combination with the above example, when the headset is a separate bluetooth headset, the user may set the priority of the primary headset to 1 and the priority of the secondary headset to 2 in advance. The primary earphone may set the communication identification information of the primary earphone to be a and the communication identification information of the secondary earphone to be B in order of priority. Or, the master earphone may randomly set the communication identification information of one of the bluetooth earphones as a and the communication identification information of the other bluetooth earphone as B. At this time, the main earphone is the same as the communication identification information of the conversation APP, and the auxiliary earphone is the same as the communication identification information of the video APP.
In another embodiment, the primary earphone and the secondary earphone may also negotiate with each other, and the primary earphone and the secondary earphone are set to have different communication identification information respectively. When the plurality of Bluetooth earphones are independent Bluetooth earphones, different communication identification information of each Bluetooth earphone can be negotiated among the plurality of Bluetooth earphones. The specific negotiation process may be set according to the requirement, which is not limited in this embodiment.
Alternatively, step 103 may be implemented as follows:
under the condition of receiving the communication data sent by the earphone, transmitting the communication data to a target application program to which the communication identification information in the communication data belongs;
and adding the communication identification information of the target application program in the communication data sent by the target application program, and sending the communication data added with the communication identification information to the earphone so that the earphone processes the communication data according to the communication identification information in the communication data.
Illustratively, when the electronic device communicates with the separate bluetooth headset in the first communication mode, after the audio data is output by the call APP, the electronic device may first generate a packet including the audio data and the communication identification information a by packetizing, and then transmit the packet to the main headset. Accordingly, after receiving the data packet, the master earphone may determine that the communication identification information a in the data packet is the same as the communication identification information a of itself, and at this time, the master earphone may directly play the audio data in the data packet. Similarly, after the video APP outputs the audio data, the electronic device may first packetize and generate a data packet including the audio data and the communication identification information B, and then transmit the data packet to the main headset. Correspondingly, after receiving the data packet, the main earphone can determine that the communication identification information B in the data packet is different from the communication identification information of the main earphone, at this time, the main earphone can send the audio data in the data packet to the auxiliary earphone, and the auxiliary earphone can receive and play the audio data forwarded by the main earphone.
After receiving the user operation and generating the control instruction, the master earphone may generate a data packet including the control instruction and the communication identification information a by packaging, and transmit the data packet to the electronic device. Correspondingly, after receiving the data packet, the electronic device may determine that the communication identification information a in the data packet is the same as the communication identification information a of the conversation APP, and may forward the control instruction in the data packet to the conversation APP. Similarly, the auxiliary earphone can send the control instruction to the main earphone after receiving the user operation and generating the control instruction. After receiving the control command sent by the auxiliary earphone, the main earphone generates a data packet comprising the control command and the communication identification information B in a packaging mode, and sends the data packet to the electronic equipment. Correspondingly, after receiving the data packet, the electronic device may determine that the communication identification information B in the data packet is the same as the communication identification information B of the video APP, and may forward the control instruction in the data packet to the video APP.
In another embodiment, when the electronic device communicates with the separate bluetooth headset in the second communication mode, the sub-headset may determine that the communication identification information B in the data packet is the same as the communication identification information B of the sub-headset and may play the audio data in the data packet when receiving the data including the communication identification information B, and may determine that the communication identification information a in the data packet is different from the communication identification information B of the sub-headset when receiving the data including the communication identification information a, and discard the data packet. Similarly, the master earphone plays the audio data in the data packet when receiving the data packet including the communication identification information a, and discards the data packet when receiving the data packet including the communication identification information B.
In practical application, when the electronic device controls the target application program to communicate with the corresponding earphone, the corresponding relation between the earphone and the target application program is determined according to the communication identification information in the communication data, and the target application program can be accurately controlled to communicate with the corresponding earphone.
After the audio APP outputs the audio data, the electronic device may also generate a data packet including the audio data and the communication identification information C by packetizing, and then send the data packet including the communication identification information C to the main headset. At this time, since the communication identification information in the packet is different from the communication identification information of the main earphone and the sub-earphone, the packet is discarded by the main earphone and the sub-earphone.
In another embodiment, a third bluetooth headset may be included in the separate bluetooth headset. Combine above-mentioned example, the communication identification information of third bluetooth headset can set up to C, and electronic equipment can control audio frequency APP and third bluetooth headset and communicate this moment. Or, the electronic device may first communicate with the main headset, determine the number of the headsets, and control the low-priority audio APP to stop outputting audio data according to the priority of the target application when the number of the target application is greater than the number of the bluetooth headsets. The number of the earphones in the separated Bluetooth earphone can be set according to requirements, and the embodiment does not limit the number of the earphones.
In some application scenarios, when the electronic device connects multiple headsets simultaneously, each headset may be used by a different user, respectively. For example, when the electronic device is connected to a separate bluetooth headset, the primary headset may be worn by user a and the secondary headset may be worn by user B. At this moment, if electronic equipment stops audio frequency APP and video APP according to conversation APP, audio frequency APP and video APP's priority, control conversation APP and bluetooth headset communication, audio frequency APP and video APP can't provide corresponding function for the user. By using the communication control method provided by the embodiment, the electronic device can control the communication between the conversation APP and the main earphone and the communication between the video APP and the auxiliary earphone, the user A can answer the call through the main earphone, and the user B can watch the video through the auxiliary earphone. When the user A needs to watch the video and the user B needs to talk, the user A and the user B can exchange earphones.
In summary, in this embodiment, the electronic device determines a target application having a headset communication requirement from a plurality of running applications, and sets different communication identification information for the target application when the number of the target application is not less than 2, and controls the target application to communicate with a headset having the same communication identification information. When a plurality of application programs need to communicate with the earphones at the same time, the plurality of application programs are controlled to communicate with the corresponding earphones respectively through the communication identification information, so that the plurality of application programs can work at the same time, and the problem that the functions of part of the application programs cannot be used can be solved.
Optionally, the method may comprise:
under the condition that the number of the target application programs is determined to be one, setting communication identification information of the target application programs, and controlling the target application programs to communicate with earphones with the same communication identification information; or, in the case that the number of the target applications is determined to be one, controlling the target applications to communicate with all of the earphones.
In this embodiment, when the electronic device determines that there is only one target application, step 101 to step 103 may be executed in the same manner, and the target application is controlled to communicate with the headset with the same communication identification information. Alternatively, the electronic device may not set the communication identification information of the target application, and the communication identification information of the target application is not added when transmitting the communication data to the headset. At this time, all the earphones can receive and process the communication data sent by the electronic equipment. Likewise, the electronic device can forward communication data sent by all of the headsets to the target application.
Referring to fig. 2, fig. 2 is a flow chart illustrating steps of another communication control method provided according to an example embodiment, which may include:
step 201, the electronic device determines a target application program with headset communication requirements from a plurality of running application programs.
Step 202, the electronic device sets different communication identification information for the target application program respectively under the condition that the number of the target application programs is not less than 2.
Optionally, the method may further include:
displaying an earphone selection interface;
receiving a first input in a headset selection interface;
in response to the first input, determining a headset corresponding to the target application program;
and sending the communication identification information corresponding to the target application program to the earphone so that the communication identification information of the earphone is the same as the communication identification information corresponding to the target application program.
Correspondingly, the earphone can receive communication identification information of the target application program sent by the electronic equipment;
the communication identification information of the set headset is identical to the communication identification information of the at least one target application.
In this embodiment, when the electronic device determines that the number of the target applications is not less than 2, the electronic device may send communication identification information of the target applications to the headset in advance, where the communication identification information is target information of the target applications, and the headset sets the communication identification information of the headset to be the same as the communication identification information of one or more target applications.
For example, the user may set different modes for the target application in advance, and the electronic device may use mode information of the target application as communication identification information or set different communication identification information for the target application based on the mode information. As shown in fig. 3, fig. 3 is a schematic diagram of mode setting provided according to an exemplary embodiment, application icons of a call APP, an audio APP and a video APP are displayed in a desktop of an electronic device, a user can hold down an application icon 301 of the call APP, and the electronic device displays a mode selection interface 302 in response to a hold-down operation of the user. The mode selection interface 302 includes a mode selection control 303 corresponding to a call mode, and mode selection controls of a song listening mode and a video mode. The user can click the mode selection control 303, and the electronic device can respond to the click operation of the user and set the conversation APP to be in a conversation mode. Similarly, the video APP can be set to be in a video mode, and the audio APP can be set to be in a song listening mode. The mode setting method may be set according to requirements, and this embodiment does not limit this.
Optionally, the user may set different modes to have different mode levels, the different modes correspond to different priorities, and the electronic device may determine the priority of the application program according to the mode of the target application program. As shown in fig. 3, the mode level of the call mode is 2, the mode level of the song listening mode is 7, and the mode level of the video mode is 5, and the electronic device may determine the priority of the target application according to the mode level of the target application.
In one embodiment, the first input is used to determine the headset to which the target application corresponds. The electronic device may display a headset selection interface when the number of the target application programs is determined to be not less than two, receive a first input of a user based on the headset selection interface, and determine a headset corresponding to the target application program in response to the first input. As shown in fig. 4, fig. 4 is a schematic diagram of a headset selection interface according to an exemplary embodiment, and in combination with the above example, the headset selection interface may include a first target image 401 corresponding to a main headset, a second target image 402 corresponding to a sub-headset, a first control 403 corresponding to a call APP, a second control 404 corresponding to a video APP, and a third control 405 corresponding to an audio APP. For example, in a first input operation, a user may press and drag the first control 403, and if the first control 403 is dragged onto the first target image 401 by the user, the electronic device may respond to the dragging operation of the user, establish a corresponding relationship between the main headset and the call APP, and send a data packet including mode information of the call mode and identification information of the main headset to the main headset, where the mode information in the data packet is target information of the call APP sent by the electronic device to the main headset. Similarly, if the second control 405 is dragged onto the second target icon 402 by the user, the electronic device may establish a corresponding relationship between the video APP and the auxiliary headset, and send a data packet including mode information of the video mode and identification information of the auxiliary headset to the main headset. The specific form of the first input may be set according to the requirement, and this embodiment does not limit this.
Correspondingly, after the main earphone receives the data packet sent by the electronic device, if the data packet includes the identification information of the main earphone, the main earphone can be set to be in a call mode according to the mode information in the data packet. Similarly, after the primary earphone receives the data packet, if the data packet includes the identification information of the secondary earphone, the secondary earphone can be set to be in the video mode according to the mode information in the data packet. In this case, the electronic device may use the mode information of the target application as the communication identification information, and the master earphone may use the mode information of the earphone as the communication identification information, so that the target application is identical to the communication identification information of the corresponding earphone.
The electronic device may communicate with the primary earphone in advance to obtain the identification information of the primary earphone and the secondary earphone, or the electronic device may default the priority as the identification information of the earphone, and at this time, in the process of displaying the earphone selection interface, the electronic device may display the target images corresponding to the priority 1 and the priority 2 in the earphone selection interface. The master earphone can set the master earphone with the priority level of 1 as a call mode and the auxiliary earphone with the priority level of 2 as a video mode according to the priority level in the data packet. The specific form of the mode information and the identification information may be set according to the requirement, which is not limited in this embodiment.
In one embodiment, the electronic device may control the target application to communicate with all of the headsets if the number of target applications is less than two. And displaying a headset selection interface under the condition that the number of the target application programs is determined to be greater than or equal to two, wherein the target images corresponding to the newly added target application programs can be displayed in the headset selection interface. As shown in fig. 5, fig. 5 is a schematic diagram of another earphone selection interface provided according to an exemplary embodiment, and in combination with the above example, if the currently running target application is a video APP, the electronic device may control the video APP to communicate with the main earphone and the auxiliary earphone at the same time. At this time, if the electronic device receives the incoming call notification, the call APP starts, and the electronic device may display a headset selection interface, where the headset selection interface includes a first control 403 corresponding to the newly added call APP, a first target image 401 corresponding to the main headset, and a second target image 402 corresponding to the auxiliary headset. At this time, the user may press and drag the first control 403, and if the first control 403 is dragged onto the first target image 401, the corresponding relationship between the main earphone and the conversation APP is established, and the mode information of the conversation APP is sent to the main earphone. Meanwhile, the sub-earphone corresponding to the second target image 402 can be automatically set to correspond to the video APP, the corresponding relation between the sub-earphone and the video APP is established, and the mode information of the video APP is sent to the sub-earphone.
In another embodiment, the electronic device may further establish a corresponding relationship between the target application and the plurality of earphones based on the earphone selection interface, and send mode information, i.e., target information, of the corresponding target application to each earphone, so that the communication identification information of the target application and the plurality of earphones may be the same. As shown in fig. 5, a third target image 406 may also be included in the headphone selection interface, the third target image 406 corresponding to both the primary headphone and the secondary headphone. When the user drags the first control 403 over the third target image 406, the electronic device may determine that the call APP corresponds to the main headset and the auxiliary headset at the same time, and send a data packet including mode information of the call APP and identification information of the main headset and the auxiliary headset to the headset. Correspondingly, after the main earphone receives the data packet, the modes of the main earphone and the auxiliary earphone can be set to be a call mode according to the identification information of the main earphone and the auxiliary earphone. At this moment, conversation APP, main earphone and auxiliary earphone three's mode information is the same, and further can set up conversation APP, main earphone and auxiliary earphone and have the same communication identification information, and conversation APP can communicate with main earphone and auxiliary earphone simultaneously.
It should be noted that the specific form of the earphone selection interface and the interaction manner between the user and the earphone selection interface may be set according to the requirement, which is not limited in this embodiment. In practical application, the electronic device displays the earphone selection interface under the condition that the number of the target application programs is determined to be not less than two, and a user can manually select the earphone corresponding to the target application program through the earphone selection interface, so that the user can conveniently select the corresponding target application program for the worn earphone.
Optionally, the method may further include:
receiving a second input in the earphone selection interface;
responding to the second input, and determining an audio output module integrated in the electronic equipment corresponding to the target application program;
the control target application communicates with the corresponding audio output module.
Among them, an audio output module is a module having an audio output function, such as a microphone and a speaker integrated in an electronic device.
In this embodiment, the second input is used to determine an audio output module corresponding to the target application, and the electronic device may further receive the second input of the user based on the earphone selection interface, establish a corresponding relationship between the target application and the audio output module in response to the second input, and control the target application to communicate with the corresponding audio output module. As shown in fig. 5, a fourth target image 407 corresponding to the audio output module may be further included in the headphone selection interface, and the fourth target image 407 corresponds to a speaker integrated in the electronic device. When the user drags the first control 403 onto the fourth target image 407, the electronic device may determine that the call APP corresponds to the speaker, and establish a corresponding relationship between the call APP and the speaker. At this time, after the conversation APP outputs the audio data, the electronic device may forward the audio data to the speaker, and play the audio data through the speaker. The specific form of the second input may be set according to the requirement, which is not limited by this embodiment.
In one embodiment, when the electronic device determines that a certain target application corresponds to the audio output module, the electronic device may stop other target applications. For example, when it is determined that the conversation APP corresponds to a speaker, the video APP and the audio APP may be stopped. Alternatively, the electronic device may continue to control other target applications to communicate with the corresponding headset. For example, when determining that the video APP corresponds to the speaker and the conversation APP corresponds to the main headset, the conversation APP may continue to be controlled to communicate with the main headset. At this moment, the user can watch the video played by the video APP through the loudspeaker and converse through the main earphone.
In practical application, the electronic equipment establishes a corresponding relation between the target application program and the audio output module based on the earphone selection interface, controls the target application program to communicate with the audio output module, and can facilitate flexible operation of the electronic equipment by a user. The specific process of determining the audio output module corresponding to the target application based on the earphone selection interface may be set according to requirements, which is not limited in this embodiment.
In an embodiment, an operation control corresponding to the target application program may be further included in the earphone selection interface, so that the user can operate the target application program quickly. As shown in fig. 5, the earphone selection interface may include a short message reply control 408, and the short message reply control 408 corresponds to the conversation APP. After the user clicks the short message reply control 408, the electronic device may enter the short message editing interface in response to the user's click operation, edit the short message, and send the short message to the user of the incoming call. The specific content included in the earphone selection interface may be set according to the requirement, which is not limited in this embodiment.
Optionally, the method may further include:
and transmitting target information of the target application program to the earphone so that the earphone outputs instruction information corresponding to the target application program, and enabling the communication identification information of the earphone to be the same as the communication identification information of the target application program to which the instruction information belongs when receiving user operation corresponding to the instruction information.
Optionally, the earphone may receive target information of the target application program sent by the electronic device; and setting the communication identification information of the earphone to be the same as the communication identification information of the at least one target application program based on the target information.
In one embodiment, the electronic device may send target information of a target application to the headset so that the headset outputs indication information corresponding to the target application, and in a case where a user operation corresponding to the indication information is received, the communication identification information of the headset is set to be the same as the communication identification information of the target application to which the indication information belongs. In combination with the above examples, the electronic device may send the mode information of the call APP, the mode information of the audio APP, and the mode information of the video APP to the main headset. Accordingly, after the primary earphone receives the mode information, the primary earphone and the secondary earphone can be controlled to output corresponding indication information. For example, for the mode information of the conversation APP, the primary earphone may control the primary earphone and the secondary earphone to simultaneously output a first voice, "please double click the pause key, and set the earphones to the conversation mode". At this time, if the user double-clicks the pause key in the main headset, the main headset may set the main headset to the talk mode in response to the double-click operation of the user. At this time, the electronic device and the main earphone can simultaneously use the mode information as the communication identification information, so that the conversation APP and the main earphone have the same communication identification information.
When the main earphone and the auxiliary earphone both receive the operation of double-clicking the pause key by the user, both the main earphone and the auxiliary earphone can be set to a call mode. After the first voice is output, the main earphone can control the main earphone and the auxiliary earphone to simultaneously output a second voice ' please click a pause key ', the earphone is set to be in a video mode ', and if a user clicks the pause key in the main earphone, the main earphone can respond to the clicking operation of the user and set the main earphone to be in the video mode. And when the main earphone and the auxiliary earphone both receive the operation of clicking the pause key by the user, setting the main earphone and the auxiliary earphone into the video mode. The specific type and the output mode of the indication information can be set according to requirements, and after the mode of the earphone is set for the first time, if the user operation corresponding to the indication information is received for the second time, the mode of the earphone can be continuously changed.
In practical application, the earphone outputs indication information corresponding to the target application program, and indicates a user to operate the earphone to set communication identification information of the earphone so as to determine the target application program corresponding to the earphone, and the user using the earphone can conveniently select the target application program corresponding to the earphone according to requirements.
Step 203, the headset determines the communication identification information of the headset.
The earphone is wirelessly connected with the electronic equipment, and the electronic equipment is used for configuring different communication identification information for the target application programs respectively under the condition that the number of the target application programs in the currently running application programs is not less than two.
And step 204, the target application program communicates with the earphone with the same communication identification information.
Optionally, the method may further include:
when the communication data sent by the earphone comprises the control command, if the priority of the target application program with the same communication identification information as the earphone is lower than the priority of other target application programs, the control command is determined to be an invalid command.
In this embodiment, the electronic device may set the control instruction received by the target application program with a lower priority as an invalid instruction according to the priority of the target application program, so as to prevent the plurality of earphones from controlling the electronic device at the same time. In combination with the above example, the electronic device may determine the priority of the target application according to the mode level of the target application. After the electronic equipment receives the data packet sent by the earphone, if the data packet comprises the control instruction sent by the auxiliary earphone and the mode information of the video mode, the electronic equipment can determine that the priority of the video APP is lower than that of the conversation APP according to the priorities of the video APP and the conversation APP, the control instruction is set to be an invalid instruction, and the electronic equipment can not transmit the control instruction to the video APP or control the video APP not to execute the control instruction. At this time, if the user a is talking on the main earphone and the user B is watching the screen on the auxiliary earphone, only the user a wearing the main earphone can operate the electronic device through the earphone because the control instruction sent by the auxiliary earphone is set to be invalid.
In practical application, the electronic device can set the control instruction received by the target application program with a lower priority as an invalid instruction according to the priority of the target application program, so that the situation that a plurality of earphones control the electronic device simultaneously to influence the normal use of the electronic device by a user can be avoided.
Optionally, the method may further include:
and under the condition that the communication data sent by the earphone comprises the control command, if the control command is not matched with other target application programs except the target application program corresponding to the earphone, determining that the control command is an invalid command.
In this embodiment, after receiving a control instruction belonging to a certain application program, the electronic device may determine, according to an influence of the control instruction on another target application program, that the control instruction influencing the other target application program is invalid, so as to avoid mutual interference when a plurality of earphones control the electronic device simultaneously. With reference to the foregoing example, after receiving a data packet sent by a headset, if the data packet includes a control instruction and mode information of a video mode sent by a sub-headset, the electronic device may first determine that the control instruction belongs to a video APP. At this moment, the electronic device may determine whether execution of the control instruction may affect the conversation APP, for example, the electronic device may determine an operation object corresponding to the control instruction, and if the operation object corresponding to the control instruction is a hardware module such as a keyboard and a display screen in the electronic device, it may be determined that execution of the control instruction may affect operation of the conversation APP, that is, normal conversation may be affected, and then it is determined that the control instruction is not matched with the conversation APP, and it is determined that the control instruction is an invalid instruction. At this time, the control instruction is not executed, and the normal call of the user is not influenced. The specific method for determining that the control instruction is not matched with the target application program may be set according to requirements, which is not limited in this embodiment.
In practical application, after the electronic device receives the control instruction sent by the earphone, if the control instruction is not matched with other target application programs except the target application program corresponding to the earphone, the control instruction is determined to be invalid, so that the influence on user operation caused by mutual interference when a plurality of earphones control the electronic device at the same time can be avoided. On the contrary, the control instruction can be executed normally, so that the user can operate the application program to which the control instruction belongs conveniently.
In summary, in this embodiment, the electronic device determines a target application having a headset communication requirement from a plurality of running applications, and sets different communication identification information for the target application when the number of the target application is not less than 2, and controls the target application to communicate with a headset having the same communication identification information. When a plurality of application programs need to communicate with the earphones at the same time, the plurality of application programs are controlled to communicate with the corresponding earphones respectively through the communication identification information, so that the plurality of application programs can work at the same time, and the problem that the functions of part of the application programs cannot be used can be solved.
Optionally, the method may further include:
establishing a communication connection with the new headset;
determining a target application program corresponding to the new earphone;
and controlling the target application program corresponding to the new earphone to communicate with the new earphone.
In this embodiment, the electronic device may establish a communication connection with a new headset while controlling the target application program to communicate with the corresponding headset, so as to control one of the target application programs to communicate with the new headset. The new headset may be, for example, a newly added third bluetooth headset.
Illustratively, as shown in fig. 6, fig. 6 is a schematic diagram of a communication establishment process provided according to an exemplary embodiment, in the process of controlling the call APP to communicate with the primary headset and controlling the video APP to communicate with the secondary headset, that is, a user a is using a first bluetooth headset for calling, a user B is using a second bluetooth headset for watching video, and a user C may operate a third bluetooth headset to send a communication request to the electronic device to request pairing with the electronic device to access a communication process between one of the target applications and the headset. The electronic device may output notification information notifying a master user, who may be user a or user B, controlling the electronic device after receiving the communication request. The electronic device may display a pairing interface in response to an operation of the master user clicking the notification information. If the master user agrees that the electronic device is paired with the third Bluetooth headset, the confirmation button in the pairing interface can be clicked. The electronic device may establish a communication connection with the third bluetooth headset in response to an operation of the master user clicking the confirmation key. Otherwise, if the master user does not agree with the access of the third Bluetooth headset, the electronic equipment can be operated, and the communication request of the third Bluetooth headset is rejected. The specific process of establishing the communication connection between the electronic device and the new headset may be set according to the requirement, and this embodiment does not limit this.
In one embodiment, the electronic device may select a corresponding target application for the new headset based on the application selection interface. As shown in fig. 7, fig. 7 is a schematic diagram of an application selection interface according to an exemplary embodiment, and in combination with the above example, if the master user agrees to access the user C, the master user may operate the electronic device to enable the electronic device to display the application selection interface shown in fig. 7, the application selection interface includes target images of a plurality of currently running target applications, and a fourth control 701 corresponding to a third bluetooth headset, and if the master user drags the fourth control 701 corresponding to the third bluetooth headset onto the target image 702 of the call APP, the electronic device may determine that the call APP corresponds to the third bluetooth headset in response to a dragging operation of the master user. At this time, the electronic device may send mode information of the call APP to the third bluetooth headset, and the third bluetooth headset may output corresponding third voice "whether to agree to access the call" after receiving the mode information. If user C agrees to access, can click the confirmation button in the bluetooth headset, and the third bluetooth headset can respond to click operation, and the mode that sets up the third bluetooth headset is the conversation mode, sets up the communication identification information of third bluetooth headset promptly and the communication identification information of conversation APP the same. At this moment, the communication identification information of first bluetooth headset and third bluetooth headset all is the same with the communication identification information of conversation APP, and electronic equipment can control the conversation APP and communicate with first bluetooth headset and third fence earphone simultaneously, consequently wears user A of first bluetooth headset and wears user C of third bluetooth headset and can answer the call simultaneously. Otherwise, if the user C does not agree with the access, the earphone can be controlled to refuse to access the communication process of the conversation APP and the first Bluetooth earphone.
In another embodiment, after establishing the communication connection with the electronic device, the user C using the third bluetooth headset may actively operate the third bluetooth headset and send an access request to the electronic device, so that the electronic device sets a target application corresponding to the third bluetooth headset. As shown in fig. 6, in a case where the primary user does not select the target application for the third bluetooth headset, the user C may double-click a pause key in the third bluetooth headset, and the third bluetooth headset may transmit an access request to the electronic device in response to the double-click operation of the user C. When the electronic device determines that only one currently running target application program exists, it can be directly determined that the third bluetooth headset corresponds to the conversation APP. Alternatively, the electronic device may output notification information to notify the user a. If the user A agrees to access the user C, the user A can click the determining button to determine that the third Bluetooth headset corresponds to the conversation APP. If the number of currently running target applications is not less than two, the electronic device may display an application selection interface as shown in fig. 7, and configure a corresponding target application for the third bluetooth headset.
It should be noted that the access process of the third bluetooth headset may be set according to requirements, and this embodiment does not specifically limit this. In practical application, in the process of controlling the target application program to communicate with the earphones, the electronic device can establish communication connection with the earphones which are not connected, so that new earphones are added, the new earphones are controlled to communicate with the target application program, and the number of the earphones can be conveniently expanded by a user.
Alternatively, when the target application program communicates with a plurality of earphones at the same time, the electronic device may add identification information of the earphones to the communication data when receiving the communication data sent by the earphones. For example, when the electronic device receives audio data sent by a first bluetooth headset, the electronic device may add identification information of the first bluetooth headset to the audio data, and forward the audio data to the call APP. Similarly, when the electronic device receives the audio data sent by the third bluetooth headset, the electronic device may add the identification information of the third bluetooth headset to the audio data, and forward the audio data to the call APP. At this time, the conversation APP may determine the source of the audio data according to the identification information in the audio data, so that the conversation APP performs different processing on the audio data according to the source of the audio data, for example, the conversation APP may store the audio data of different sources respectively according to the source of the audio data.
Optionally, for the control instruction sent by the headset, the user may set the function of the control instruction to be different in different modes.
For example, as shown in fig. 3, the user may set a call mode, and the double-click command functions to activate an assistance input function in the target program. For example, when the electronic device controls the communication between the call APP and the main headset, if the main headset receives a double-click operation of the user, a double-click instruction may be generated, and a data packet including the double-click instruction is sent to the electronic device. When the electronic equipment forwards the double-click command to the conversation APP, the conversation APP can respond to the double-click command and start the auxiliary input function of the conversation APP. At this moment, in the process that the user A uses the main earphone to make a call, the call APP can perform voice recognition on the call content, and if the user A is recognized to need to input the number "1", the keyboard input 1 in the electronic device can be automatically controlled. For another example, the user may set a listening mode in which the double-click command is used to collect the currently played music. When the electronic equipment controls the audio APP to communicate with the earphone, if the earphone receives the operation of double-click of a user, a double-click command can be generated, and a data packet comprising the double-click command is sent to the electronic equipment. When the electronic equipment forwards the double-click command to the audio APP, the audio APP can respond to the double-click command, start the collection function and collect the currently played music.
In practical application, a user can set different modes for application programs, and set different functions of control instructions in different modes, so that the user can conveniently control the electronic equipment to realize different functions when using different application programs.
Referring to fig. 8, fig. 8 is a flowchart illustrating steps of a further communication control method according to an exemplary embodiment, which may include:
step 801, determining communication identification information of the headset.
And step 802, controlling the earphone to communicate with the target application program with the same communication identification information.
Alternatively, step 802 may be implemented as follows:
in the case of receiving communication data sent by the electronic equipment, processing the communication data sent by a target application program with the same communication identification information based on the communication identification information included in the communication data;
and sending communication data including the communication identification information to the electronic equipment so that the electronic equipment forwards the communication data to the target application program with the same communication identification information according to the communication identification information.
Step 801 and step 802 may be performed by the earphone in the above embodiments, which is not described in detail in this embodiment.
In summary, the communication identification information of the headset is determined, and the headset is controlled to communicate with the target application program with the same communication identification information based on the communication identification information of the headset. When a plurality of application programs need to communicate with the earphones at the same time, the plurality of application programs are controlled to communicate with the corresponding earphones respectively through the communication identification information, so that the plurality of application programs can work at the same time, and the problem that the functions of part of the application programs cannot be used can be solved.
In one embodiment, the user can set different instructions to have different functions for different instructions sent by the headset, for example, a first instruction is used for playing voice information, and a second instruction is used for replying to the currently played voice information. The first instruction is a single click instruction, the second instruction is a double click instruction, and the first instruction and the second instruction can be other types of instructions.
Illustratively, as shown in fig. 9 and fig. 10, fig. 9 is a schematic diagram of a chat interface provided according to an exemplary embodiment, and fig. 10 is a schematic diagram of a voice playing process provided according to an exemplary embodiment, and when the electronic device controls a chat APP to communicate with one of the bluetooth headsets, and the chat APP receives first voice information 901, prompt information may be output. The electronic equipment can send the prompt message to the Bluetooth headset, and the Bluetooth headset outputs the prompt message to prompt the user B wearing the Bluetooth headset to receive the voice message. If the user B clicks a play key in the Bluetooth headset, the Bluetooth headset can generate a clicking instruction and send the clicking instruction to the electronic equipment. After receiving the click instruction forwarded by the electronic device, the chat APP can play the received first voice message 901 in response to the click instruction. At this time, if the user B double-clicks a key in the bluetooth headset, the bluetooth headset may generate a double-click command. After receiving the double-click command forwarded by the electronic device, the chat APP can be controlled to start replying to the currently played first voice message 901, the user B can input the second voice message 902 through the bluetooth headset, and when receiving the second voice message 902 sent by the bluetooth headset, the chat APP can send the second voice message 902 to the user a. When the user B double-clicks the key again, the first voice message 901 of the user a may be replied again, and a third voice message 903 may be generated and sent to the user a.
In another embodiment, the electronic device can continuously play the received voice information after receiving the single-click command sent by the bluetooth headset. As shown in fig. 9, after playing the first voice information 901, the chat APP continuously sends the second voice information 902 and the third voice information 903 to the user a. At this point, the chat APP can continue to send the fourth voice information 904 to the bluetooth headset, so that the bluetooth headset plays the fourth voice information 904. After playing the fourth voice message 904, the chat APP may wait for a preset duration, for example, 2 seconds. If the double-click command sent by the bluetooth headset is not received within the preset time length, the fifth voice message 905 is continuously played. And repeating the steps until the last piece of voice information is played. After the last voice message is played, if a double-click command is received within a preset time length, the last voice message is replied. Otherwise, if the double-click command sent by the Bluetooth headset is not received after waiting for the preset duration, whether the voice message sent by the other user is received or not is continuously determined, if the voice message of the other user is received, the voice message of the other user is continuously played, and if the voice message of the other user is not received, the playing of the voice message is ended.
When the chat APP plays the voice information, the voice information can be marked according to the received click command and the double click command, and the voice information is divided. As shown in fig. 9, when the first voice message 901 sent by the user a is played, and the user B continuously replies the second voice message 902 and the third voice message 903, the first voice message 901, the second voice message 902, and the third voice message 903 may be determined as the first topic, and the first voice message 901 is marked at the same time to determine that the user B replies the first voice message 901. Similarly, when the fourth voice message 904 and the fifth voice message 905 transmitted by the user a are played, the user B replies to the fifth voice message 905 and continuously replies to the sixth voice message 906 and the seventh voice message 907. At this time, the fifth speech information 905 may be marked to determine that the user B replies to the fifth speech information 905, and the fourth speech information 904, the fifth speech information 905, the sixth speech information 906, and the seventh speech information 907 may be determined as the second topic. When the voice information in the second topic is played, the playing can be started from the fifth voice information added with the mark, and the fourth voice information is ignored, so that the user can conveniently and quickly determine the specific content in the voice information.
In this embodiment, the chat APP may store the voice information sequentially according to the reply process of the voice information. As shown in fig. 9, after the chat APP continuously receives the fourth voice message 904 and the fifth voice message 905 sent by the user a, the chat APP sequentially plays the fourth voice message 904 and the fifth voice message 905, and if the user B double-clicks the bluetooth headset while playing the fourth voice message 905, replies to the fourth voice message 904 and replies to the sixth voice message 906, the chat APP may determine that the sixth voice message 906 is located between the fourth voice message 904 and the fifth voice message 905. In the process of storing the voice information, the fourth voice information 904, the sixth voice information 906, and the fifth voice information 906 may be stored in order of the fourth voice information 904, the sixth voice information 906, and the fifth voice information 805. At this time, when the user plays the voice information for the second time, the chat APP may play the voice sequence in the order of the fourth voice information 904, the sixth voice information 906, and the fifth voice information 905, and may maintain the continuity of the voice content.
In one embodiment, a user may manually manipulate voice information to group the voice information. As shown in fig. 9, if the user plays the eighth voice message 908 after playing the seventh voice message 907 and receives the ninth voice message 909 sent by the user a, the user B may manually drag the eighth voice message 908 to divide the eighth voice message 908 and the ninth voice message 909 into one voice topic. The specific process of manually operating the voice information by the user may be set according to the requirement, which is not limited in this embodiment.
In practical application, a user manually operates the voice information to divide the voice topics, so that the user can conveniently classify the voice information according to the voice content, and the user can conveniently and quickly find the voice information in the future.
It should be noted that, in the communication control method provided in the embodiment of the present application, the execution main body may be an earphone, or a control module in the earphone for executing the communication control method. In the embodiment of the present application, an example of a method for performing communication control by using an earphone is described.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device according to an exemplary embodiment, and the electronic device 1100 may include:
a first determining module 1101, configured to determine a target application having a headset communication requirement from a plurality of running applications.
A setting module 1102, configured to set different communication identification information for the target applications respectively when the number of the target applications is not less than 2.
A communication module 1103, configured to control the target application to communicate with the earphones having the same communication identification information.
Optionally, the electronic device 1100 may further include:
and the display module is used for displaying the earphone selection interface.
The receiving module is used for receiving a first input in the earphone selection interface.
And the second determining module is used for responding to the first input and determining the earphone corresponding to the target application program.
The first sending module is used for sending the communication identification information corresponding to the target application program to the earphone so that the communication identification information of the earphone is the same as the communication identification information corresponding to the target application program.
Optionally, the electronic device 1100 may further include:
and the second sending module is used for sending the target information of the target application program to the earphone so as to enable the earphone to output the indication information corresponding to the target application program, and enabling the communication identification information of the earphone to be the same as the communication identification information of the target application program to which the indication information belongs under the condition that the user operation corresponding to the indication information is received.
Optionally, the communication module 1103 is specifically configured to, in a case that communication data sent by the headset is received, deliver the communication data to a target application program to which communication identification information in the communication data belongs; and adding the communication identification information of the target application program in the communication data sent by the target application program, and sending the communication data added with the communication identification information to the earphone so that the earphone processes the communication data according to the communication identification information in the communication data.
Optionally, the communication module 1103 is further configured to, in a case that the communication data sent by the headset includes the control instruction, determine that the control instruction is an invalid instruction if the priority of the target application having the same communication identification information as the headset is lower than the priorities of the other target applications.
In summary, in this embodiment, the electronic device determines a target application having a headset communication requirement from a plurality of running applications, and sets different communication identification information for the target application when the number of the target application is not less than 2, and controls the target application to communicate with a headset having the same communication identification information. When a plurality of application programs need to communicate with the earphones at the same time, the plurality of application programs are controlled to communicate with the corresponding earphones respectively through the communication identification information, so that the plurality of application programs can work at the same time, and the problem that the functions of part of the application programs cannot be used can be solved.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a headset according to an exemplary embodiment, where the headset 1200 may include:
a determining module 1201, configured to determine communication identification information of the headset; the earphone is in wireless connection with the electronic equipment, and the electronic equipment is used for setting different communication identification information for target application programs respectively under the condition that not less than 2 target application programs with earphone communication requirements in a plurality of running application programs are determined;
and a communication module 1202 for controlling the headset to communicate with the target application program having the same communication identification information.
Optionally, the headset 1200 may include: the receiving module is used for receiving target information of a target application program sent by the electronic equipment;
the determining module 1201 is specifically configured to set, based on the target information, communication identification information of the headset to be the same as communication identification information of the at least one target application.
In conclusion, the communication identification information of the earphone is determined, and the earphone is controlled to communicate with the target application program with the same communication identification information. When a plurality of application programs need to communicate with the earphones at the same time, the plurality of application programs are controlled to communicate with the corresponding earphones respectively through the communication identification information, so that the plurality of application programs can work at the same time, and the problem that the functions of part of the application programs cannot be used can be solved.
The earphone in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The headset in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The earphone provided by the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 2, and is not described here again to avoid repetition.
Optionally, as shown in fig. 13, fig. 13 is a schematic structural diagram of another electronic device provided according to an exemplary embodiment, and an embodiment of the present application further provides an electronic device 1300, which includes a processor 1301, a memory 1302, and a program or an instruction stored in the memory 1302 and capable of running on the processor 1301, and when the program or the instruction is executed by the processor 1301, the program or the instruction implements each process of the communication control method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
Optionally, an embodiment of the present application further provides an earphone, which includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction, when executed by the processor, implements each process of the communication control method executed by the earphone, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 14 is a hardware structure diagram of an electronic device according to an exemplary embodiment.
The electronic device 1400 includes, but is not limited to: radio unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
Those skilled in the art will appreciate that the electronic device 1400 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1410 is used for determining a target application program with headset communication requirements from a plurality of running application programs; under the condition that the number of the target application programs is not less than 2, respectively setting different communication identification information for the target application programs;
and a network module 1402 for controlling the target application to communicate with the headset having the same communication identification information.
In summary, in this embodiment, the electronic device determines a target application having a headset communication requirement from a plurality of running applications, and sets different communication identification information for the target application when the number of the target application is not less than 2, and controls the target application to communicate with a headset having the same communication identification information. When a plurality of application programs need to communicate with the earphones at the same time, the plurality of application programs are controlled to communicate with the corresponding earphones respectively through the communication identification information, so that the plurality of application programs can work at the same time, and the problem that the functions of part of the application programs cannot be used can be solved.
Optionally, the display unit 1406 is configured to display a headphone selection interface; receiving a first input in a headset selection interface; in response to the first input, determining a headset corresponding to the target application program;
the network module 1402 is configured to send communication identification information corresponding to the target application to the headset, so that the communication identification information of the headset is the same as the communication identification information corresponding to the target application.
In practical application, the electronic device displays the earphone selection interface under the condition that the number of the target application programs is determined to be not less than two, and a user can manually select the earphone corresponding to the target application program through the earphone selection interface, so that the user can conveniently select the corresponding target application program for the worn earphone.
Optionally, the network module 1402 is configured to send target information of the target application to the headset, so that the headset outputs indication information corresponding to the target application, and in a case that a user operation corresponding to the indication information is received, the communication identification information of the headset is the same as the communication identification information of the target application to which the indication information belongs.
In practical application, the earphone outputs indication information corresponding to the target application program, and indicates a user to operate the earphone to set communication identification information of the earphone so as to determine the target application program corresponding to the earphone, and the user using the earphone can conveniently select the target application program corresponding to the earphone according to requirements.
Optionally, the network module 1402 is configured to, in a case that communication data sent by the headset is received, deliver the communication data to a target application program to which communication identification information in the communication data belongs;
and adding the communication identification information of the target application program in the communication data sent by the target application program, and sending the communication data added with the communication identification information to the earphone so that the earphone processes the communication data according to the communication identification information in the communication data.
In practical application, when the electronic device controls the target application program to communicate with the corresponding earphone, the corresponding relation between the earphone and the target application program is determined according to the communication identification information in the communication data, and the target application program can be accurately controlled to communicate with the corresponding earphone.
Optionally, the processor 1410 is further configured to, in a case that the communication data sent by the headset includes the control instruction, determine that the control instruction is an invalid instruction if the priority of the target application having the same communication identification information as the headset is lower than the priorities of the other target applications.
In practical application, the electronic device can set the control instruction received by the target application program with a lower priority as an invalid instruction according to the priority of the target application program, so that the situation that a plurality of earphones control the electronic device simultaneously to influence the normal use of the electronic device by a user can be avoided.
It should be understood that in the embodiment of the present application, the input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, and the Graphics processor 14041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1407 includes a touch panel 14071 and other input devices 14072. Touch panel 14071, also referred to as a touch screen. The touch panel 14071 may include two parts of a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1409 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 1410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the communication control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the communication control method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A communication control method is applied to an electronic device wirelessly connected with a headset, and the method comprises the following steps:
determining a target application program with earphone communication requirements from a plurality of running application programs;
under the condition that the number of the target application programs is not less than 2, respectively setting different communication identification information for the target application programs;
and controlling the target application program to communicate with the earphones with the same communication identification information.
2. The method of claim 1, further comprising, prior to the controlling the target application to communicate with headsets having the same communication identification information:
displaying an earphone selection interface;
receiving a first input in the headset selection interface;
in response to the first input, determining the headset corresponding to the target application;
and sending communication identification information corresponding to the target application program to the earphone so that the communication identification information of the earphone is the same as the communication identification information corresponding to the target application program.
3. The method of claim 1, further comprising, after determining the target application having headset communication requirements from the running plurality of applications:
and sending target information of the target application program to the earphone so that the earphone outputs indication information corresponding to the target application program, and enabling the communication identification information of the earphone to be the same as the communication identification information of the target application program to which the indication information belongs when user operation corresponding to the indication information is received.
4. The method of any of claims 1-3, wherein the controlling the target application to communicate with headsets having the same communication identification information comprises:
in the case of receiving communication data sent by the earphone, transferring the communication data to the target application program to which the communication identification information in the communication data belongs;
and adding the communication identification information of the target application program in the communication data sent by the target application program, and sending the communication data added with the communication identification information to the earphone so that the earphone processes the communication data according to the communication identification information in the communication data.
5. The method of claim 4, further comprising:
and under the condition that the communication data sent by the earphone comprises a control instruction, if the priority of a target application program with the same communication identification information as the earphone is lower than the priority of other target application programs, determining that the control instruction is an invalid instruction.
6. A communication control method, comprising:
determining communication identification information of the earphone; the earphone is in wireless connection with the electronic equipment, and the electronic equipment is used for setting different communication identification information for target application programs respectively under the condition that not less than 2 target application programs with earphone communication requirements in a plurality of running application programs are determined;
and controlling the earphone to communicate with the target application program with the same communication identification information.
7. The method of claim 6, prior to the determining communication identification information of the headset, further comprising:
receiving target information of the target application program sent by the electronic equipment;
the determining communication identification information of the earphone comprises the following steps:
and setting the communication identification information of the earphone to be the same as the communication identification information of at least one target application program based on the target information.
8. An electronic device, comprising:
the earphone communication device comprises a first determination module, a second determination module and a third determination module, wherein the first determination module is used for determining a target application program with earphone communication requirements from a plurality of running application programs;
the setting module is used for setting different communication identification information for the target application program respectively under the condition that the number of the target application programs is not less than 2;
and the communication module is used for controlling the target application program to communicate with the earphones with the same communication identification information.
9. The electronic device of claim 8, further comprising:
the display module is used for displaying the earphone selection interface;
the receiving module is used for receiving a first input in the earphone selection interface;
a second determination module, configured to determine, in response to the first input, the headset corresponding to the target application;
the first sending module is used for sending the communication identification information corresponding to the target application program to the earphone so that the communication identification information of the earphone is the same as the communication identification information corresponding to the target application program.
10. The electronic device of claim 8, further comprising:
and the second sending module is used for sending the target information of the target application program to the earphone so as to enable the earphone to output the indication information corresponding to the target application program, and enabling the communication identification information of the earphone to be the same as the communication identification information of the target application program to which the indication information belongs under the condition that the user operation corresponding to the indication information is received.
11. The electronic device according to any one of claims 8 to 10, wherein the communication module is specifically configured to, in a case where communication data sent by the headset is received, deliver the communication data to the target application to which communication identification information in the communication data belongs; and adding the communication identification information of the target application program in the communication data sent by the target application program, and sending the communication data added with the communication identification information to the earphone so that the earphone processes the communication data according to the communication identification information in the communication data.
12. The electronic device according to claim 11, wherein the communication module is further configured to, in a case where a control instruction is included in the communication data sent by the headset, determine that the control instruction is an invalid instruction if a priority of a target application having the same communication identification information as the headset is lower than priorities of other target applications.
13. An earphone, comprising:
a determination module for determining communication identification information of the headset; the earphone is in wireless connection with the electronic equipment, and the electronic equipment is used for setting different communication identification information for target application programs respectively under the condition that not less than 2 target application programs with earphone communication requirements in a plurality of running application programs are determined;
and the communication module is used for controlling the earphone to communicate with the target application program with the same communication identification information.
14. The headset of claim 13, further comprising: the receiving module is used for receiving the target information of the target application program sent by the electronic equipment;
the determining module is specifically configured to set, based on the target information, that the communication identification information of the headset is the same as the communication identification information of the at least one target application.
CN202110504454.2A 2021-05-08 2021-05-08 Communication control method, electronic equipment and earphone Active CN113271376B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110504454.2A CN113271376B (en) 2021-05-08 2021-05-08 Communication control method, electronic equipment and earphone
PCT/CN2022/090912 WO2022237609A1 (en) 2021-05-08 2022-05-05 Communication control method, electronic device and earphones

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110504454.2A CN113271376B (en) 2021-05-08 2021-05-08 Communication control method, electronic equipment and earphone

Publications (2)

Publication Number Publication Date
CN113271376A true CN113271376A (en) 2021-08-17
CN113271376B CN113271376B (en) 2023-08-22

Family

ID=77230236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110504454.2A Active CN113271376B (en) 2021-05-08 2021-05-08 Communication control method, electronic equipment and earphone

Country Status (2)

Country Link
CN (1) CN113271376B (en)
WO (1) WO2022237609A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022237609A1 (en) * 2021-05-08 2022-11-17 维沃移动通信有限公司 Communication control method, electronic device and earphones

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116761156B (en) * 2023-08-23 2023-11-14 腾讯科技(深圳)有限公司 Audio processing method, device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180124180A (en) * 2017-05-10 2018-11-21 주식회사 비즈모델라인 Method for Providing Transaction by using Bluetooth Ear Set
CN109194827A (en) * 2018-08-28 2019-01-11 维沃移动通信有限公司 A kind of terminal device, audio frequency signal output and system
CN109445740A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and storage medium
CN111884908A (en) * 2020-06-23 2020-11-03 维沃移动通信有限公司 Contact person identification display method and device and electronic equipment
CN112351507A (en) * 2020-10-30 2021-02-09 维沃移动通信有限公司 Interaction control method, interaction control device, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10492001B1 (en) * 2018-05-10 2019-11-26 Microchip Technology Incorporated Data packet compensation in multi-device media systems
CN108769431A (en) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 Audio play control method, device, storage medium and mobile terminal
CN110381485B (en) * 2019-06-14 2021-01-29 华为技术有限公司 Bluetooth communication method, TWS (two way communication system) Bluetooth headset and terminal
CN111459456B (en) * 2020-04-07 2023-03-14 维沃移动通信有限公司 Audio control method and electronic equipment
CN113271376B (en) * 2021-05-08 2023-08-22 维沃移动通信有限公司 Communication control method, electronic equipment and earphone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180124180A (en) * 2017-05-10 2018-11-21 주식회사 비즈모델라인 Method for Providing Transaction by using Bluetooth Ear Set
CN109194827A (en) * 2018-08-28 2019-01-11 维沃移动通信有限公司 A kind of terminal device, audio frequency signal output and system
CN109445740A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and storage medium
CN111884908A (en) * 2020-06-23 2020-11-03 维沃移动通信有限公司 Contact person identification display method and device and electronic equipment
CN112351507A (en) * 2020-10-30 2021-02-09 维沃移动通信有限公司 Interaction control method, interaction control device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022237609A1 (en) * 2021-05-08 2022-11-17 维沃移动通信有限公司 Communication control method, electronic device and earphones

Also Published As

Publication number Publication date
WO2022237609A1 (en) 2022-11-17
CN113271376B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US11604572B2 (en) Multi-screen interaction method and apparatus, and storage medium
CN111913628B (en) Sharing method and device and electronic equipment
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
CN111083684B (en) Method for controlling electronic equipment and electronic equipment
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
WO2022237609A1 (en) Communication control method, electronic device and earphones
EP4318199A1 (en) Method for interaction between electronic devices and electronic device
CN112751971A (en) Voice playing method and device and electronic equipment
US9444927B2 (en) Methods for voice management, and related devices
WO2022156662A1 (en) Method and apparatus for switching audio playing mode, and electronic device and storage medium
CN110597974B (en) Instant messaging method and device, computer equipment and terminal equipment
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
WO2020242726A1 (en) Enhanced controls for a computer based on states communicated with a peripheral device
KR20140137736A (en) Method and apparatus for displaying group message
CN112286483A (en) Audio playing control method and device and electronic equipment
WO2022206651A1 (en) Instant communication method and apparatus, electronic device, and storage medium
EP4207750A1 (en) Device control system
JP2021531519A (en) Touch signal processing methods, devices and media
CN114064173A (en) Method, device, medium and equipment for creating instant session page
WO2021052333A1 (en) Message reply method, device, and mobile terminal
WO2015078349A1 (en) Microphone sound-reception status switching method and apparatus
CN112702468A (en) Call control method and device
US20150015514A1 (en) Method and apparatus for group communications
CN113840033B (en) Audio data playing method and device
CN111158929B (en) Application processing method and electronic equipment

Legal Events

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