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

Communication control method, electronic equipment and earphone Download PDF

Info

Publication number
CN113271376B
CN113271376B CN202110504454.2A CN202110504454A CN113271376B CN 113271376 B CN113271376 B CN 113271376B CN 202110504454 A CN202110504454 A CN 202110504454A CN 113271376 B CN113271376 B CN 113271376B
Authority
CN
China
Prior art keywords
earphone
target application
identification information
communication
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110504454.2A
Other languages
Chinese (zh)
Other versions
CN113271376A (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

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: and determining target application programs with earphone communication requirements from the running multiple application programs, and respectively setting different communication identification information for the target application programs under the condition that the number of the target application programs is not less than 2, and controlling the target application programs 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 play audio data. In some scenarios, multiple Applications (APP) in the electronic device need to communicate with the headset at the same time, and at this time, the electronic device may select, according to priorities of the multiple applications, an Application with a highest priority to communicate with the headset. For example, when an audio APP playing audio and a video APP playing video are simultaneously running, the audio APP playing audio and the video APP playing video need to communicate with the headphones at the same time, and the electronic device selects one of the audio APP or the video APP to communicate with the headphones according to priorities of the audio APP and the video APP.
In the prior art, when a plurality of application programs need to communicate with the earphone at the same time, the electronic device selects one of the application programs to communicate with the earphone, so that other application programs cannot communicate with the earphone, and a user cannot use functions provided by the other application programs.
Disclosure of Invention
The embodiment of the application aims to provide a communication control method, electronic equipment and a headset, which can solve the problem that when a plurality of application programs need to be communicated with the headset at the same time, the functions of part of the application programs 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, where the method includes:
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 programs 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 the earphone with the same communication identification information.
In a second aspect, an embodiment of the present application provides another communication control method, including:
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 under the condition that the number of the target application programs with earphone communication requirements is not less than 2 in a plurality of running application programs;
Controlling the headset to communicate with the target application having the same communication identification information.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a first determining module, configured to determine a target application program having a headset communication requirement from a plurality of running application programs;
a setting module, configured to set different communication identification information for the target application programs, respectively, when 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 earphone with the same communication identification information.
In a fourth aspect, an embodiment of the present application provides an earphone, including:
the determining module is used for 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 under the condition that the number of the target application programs with earphone communication requirements is not less than 2 in a plurality of running application programs;
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, an embodiment of the present application provides an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first or second aspect when executed by the processor.
In a sixth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions 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 where the processor is configured to execute a program or instructions to implement a method according to the first aspect or the second aspect.
In the embodiment of the application, the electronic equipment determines the target application program with the earphone communication requirement from a plurality of running application programs, and sets 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, and controls the target application programs to communicate with the earphone with the same communication identification information. When a plurality of application programs need to be communicated with the earphone at the same time, the application programs are controlled to be respectively communicated with the corresponding earphone through the communication identification information, so that the application programs can work at the same time, and the problem that functions of part of the application programs cannot be used can be solved.
Drawings
FIG. 1 is a flow chart of steps of a communication control method provided in accordance with an exemplary embodiment;
FIG. 2 is a flowchart of steps of another communication control method 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 diagram of another earphone selection interface provided in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram of a communication setup process provided in accordance with an exemplary embodiment;
FIG. 7 is a schematic diagram of an application selection interface provided in accordance with an exemplary embodiment;
fig. 8 is a flow chart of steps of yet another communication control method provided in accordance with an exemplary embodiment
FIG. 9 is a schematic diagram of a chat interface provided in accordance with an exemplary embodiment;
FIG. 10 is a flow chart of 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 exemplary embodiment;
fig. 12 is a schematic diagram of a headset according to an exemplary embodiment;
FIG. 13 is a schematic diagram of another electronic device provided in accordance with an exemplary embodiment;
Fig. 14 is a schematic diagram of a hardware structure of an electronic device according to an exemplary embodiment.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The communication control method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
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 earphone 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 terminal device such as a mobile phone, a computer, and a tablet computer. The electronic equipment and the earphone can be connected in a wireless connection mode, and the electronic equipment can execute a communication control method to control a plurality of target application programs in the electronic equipment to respectively communicate with the corresponding earphone.
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 primary headset and the second bluetooth headset being configured as a secondary headset. In the first communication mode, the electronic device may establish a communication connection with the main headset through the bluetooth module integrated therein, and the main 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, and when the auxiliary earphone sends the communication data to the electronic equipment, the auxiliary earphone can send the communication data to the main earphone, and the main earphone forwards the communication data to the electronic equipment. In the second communication mode, the main earphone is responsible for pairing with the electronic device, pairing information is set to establish a communication connection between the main earphone and the electronic device, and communication data is received or sent 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 manner between the detachable bluetooth headset and the electronic device may include, but is not limited to, the two communication manners, and any communication manner known or unknown in the art may be applied in the present embodiment. It should be noted that, when the bluetooth headset is multiple, the bluetooth headset may also be a stand-alone bluetooth headset, and each bluetooth headset may respectively establish communication connection with the electronic device.
The target application program is an application program with earphone communication requirements, wherein the earphone communication requirements comprise audio output requirements or audio input requirements, or both the audio input requirements and the audio output requirements, among a plurality of application programs running at present. In combination with the above example, when the headset is a bluetooth headset, the target application may be an audio APP for playing music, a video APP for playing video, and a call APP for a call, the audio APP, the video APP, and the call APP may all communicate with the bluetooth headset, and audio data is output through the bluetooth headset. 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 connects to the headset, the target application may be determined from the plurality of applications currently running, so as to control the target application to communicate with the headset. In combination with the above example, after determining that the bluetooth headset is connected, the electronic device may determine that the application is a target application with headset communication requirements if the application needs to output audio data after monitoring that the application is started. The specific process of determining the target application program by the electronic device may be set according to the requirement, which is not limited in this embodiment.
Step 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 determining 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 respectively, so as to control the target application programs to communicate with headphones having the same communication identification information according to the communication identification information of the target application programs.
For example, the user may preset a priority of each target application for all target applications in the electronic device, and the electronic device may set communication identification information of the target application according to the priority of the target application. In combination with the above example, the user may preset the priority of the call APP to 2, the priority of the video APP to 5, and the priority of the audio APP to 7. After determining that the target application program comprises the audio APP, the video APP and the call APP, the electronic equipment can set communication identification information of the call APP as A, communication identification information of the video APP as B and communication identification information of the audio APP as C according to priority orders of the audio APP, the video APP and the call 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 need, which is not limited in this embodiment.
Step 103, the control target application program communicates with the earphone 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 main headset to 1 and the priority of the sub-headset to 2 in advance. The master earphone may set the communication identification information of the master earphone as a and the communication identification information of the slave earphone as B according to the priority order. Or, the master earphone may randomly set the communication identification information of one bluetooth earphone as a, and the communication identification information of the other bluetooth earphone as B. At this time, the communication identification information of the main earphone and the communication identification information of the communication APP are the same, and the communication identification information of the auxiliary earphone and the communication identification information of the video APP are the same.
In another embodiment, the master earphone and the slave earphone may also negotiate with each other, and the master earphone and the slave earphone are respectively provided with different communication identification information. When the plurality of Bluetooth headsets are independent Bluetooth headsets, the plurality of Bluetooth headsets can negotiate and set up that each Bluetooth headset has different communication identification information respectively. The specific negotiation process may be set according to requirements, which is not limited in this embodiment.
Alternatively, step 103 may be implemented as follows:
when communication data sent by the earphone is received, the communication data is transmitted 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 into 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.
For example, when the electronic device communicates with the separate bluetooth headset in the first communication mode, the electronic device may first package to generate a data packet including the audio data and the communication identification information a after the call APP outputs the audio data, and then transmit the data packet to the master headset. Correspondingly, after receiving the data packet, the master earphone can determine that the communication identification information A in the data packet is the same as the communication identification information A of the master earphone, and at the moment, the master earphone can directly play the audio data in the data packet. Similarly, after the video APP outputs the audio data, the electronic device may first package to generate a data packet including the audio data and the communication identification information B, and then send the data packet to the master earphone. Accordingly, after receiving the data packet, the master earphone can determine that the communication identification information B in the data packet is different from the communication identification information of the master earphone, and at this time, the master earphone can send audio data in the data packet to the slave earphone, and the slave earphone can receive and play the audio data forwarded by the master earphone.
After receiving the user operation and generating the control instruction, the master earphone may package and generate a data packet including the control instruction and the communication identification information a, and send the data packet to the electronic device. Correspondingly, after receiving the data packet, the electronic device can determine that the communication identification information A in the data packet is the same as the communication identification information A of the call APP, and then can forward the control instruction in the data packet to the call APP. Similarly, after receiving the user operation and generating the control instruction, the auxiliary earphone may send the control instruction to the main earphone. After receiving the control instruction sent by the auxiliary earphone, the main earphone packages to generate a data packet comprising the control instruction and communication identification information B, and sends the data packet to the electronic equipment. Correspondingly, after receiving the data packet, the electronic device can 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 can 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 headset may determine that the communication identification information B in the data packet is identical to the communication identification information B of the headset itself when receiving the data including the communication identification information B, and may play the audio data in the data packet, whereas when the data packet including the communication identification information a is received, it may determine that the communication identification information a in the data packet is different from the communication identification information B of the headset itself, 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, so that 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 package the audio APP to generate a data packet including the audio data and the communication identification information C, and then send the data packet including the communication identification information C to the master earphone. At this time, since the communication identification information in the data packet is different from the communication identification information of the master earphone and the slave earphone, the data packet is discarded by the master earphone and the slave earphone.
In another embodiment, a third bluetooth headset may also be included in the separate bluetooth headset. In combination with the above example, the communication identification information of the third bluetooth headset may be set to C, and at this time, the electronic device may control the audio APP to communicate with the third bluetooth headset. Or the electronic equipment can firstly communicate with the main earphone to determine the number of the earphone, and when the number of the target application programs is larger than that of the Bluetooth earphone, the audio APP with low priority can be controlled to stop outputting the audio data according to the priority of the target application programs. The number of the earphones in the separated bluetooth earphone can be set according to requirements, and the embodiment is not limited to this.
In some application scenarios, when an electronic device connects multiple headphones simultaneously, each headphone may be used by a different user, respectively. For example, when the electronic device is connected to a separate bluetooth headset, the main headset may be worn by user a and the auxiliary headset may be worn by user B. At this time, if the electronic device stops audio APP and video APP according to the priorities of the call APP, audio APP and video APP, control call APP and bluetooth headset communication, audio APP and video APP can not provide corresponding functions for the user. By using the communication control method provided by the embodiment, the electronic device can control the communication between the communication APP and the main earphone, control the communication between the video APP and the auxiliary earphone, and enable the user A to answer the call through the main earphone and enable the user B to 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 headphones.
In summary, in this embodiment, the electronic device determines, from a plurality of running application programs, a target application program having a headset communication requirement, and sets different communication identification information for the target application program when the number of the target application programs is not less than 2, and controls the target application program to communicate with a headset having the same communication identification information. When a plurality of application programs need to be communicated with the earphone at the same time, the application programs are controlled to be respectively communicated with the corresponding earphone through the communication identification information, so that the application programs can work at the same time, and the problem that functions of part of the application programs cannot be used can be solved.
Optionally, the method may include:
setting communication identification information of the target application program under the condition that the number of the target application programs is determined to be one, and controlling the target application program to communicate with the earphone with the same communication identification information; alternatively, in the case where the number of target applications is determined to be one, the target applications are controlled to communicate with all headphones.
In this embodiment, when it is determined that there is only one target application, the electronic device may also execute steps 101 to 103 to control the target application to communicate with the same headset as the communication identification information. Alternatively, the electronic device may not set the communication identification information of the target application program, and the communication identification information of the target application program may not be added when transmitting the communication data to the headset. At this time, all the headphones can receive and process the communication data sent by the electronic device. Likewise, the electronic device may forward all communication data sent by the headset to the target application.
Referring to fig. 2, fig. 2 is a flowchart of steps of another communication control method provided according to an exemplary embodiment, the method may include:
step 201, the electronic device determines a target application program with earphone communication requirements from a plurality of running application programs.
Step 202, the electronic device sets 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.
Optionally, the method may further include:
displaying an earphone selection interface;
receiving a first input in a headset selection interface;
responding to the first input, and determining a headset corresponding to the target application program;
and sending the communication identification information of the corresponding target application program to the earphone so that the communication identification information of the earphone is the same as the communication identification information of the corresponding target application program.
Accordingly, the earphone can receive communication identification information of the target application program sent by the electronic equipment;
the communication identification information of the headset is set to be the same as the communication identification information of the at least one target application.
In this embodiment, when the electronic device determines that the number of target application programs is not less than 2, the communication identification information of the target application programs may be sent to the headset in advance, where the communication identification information is the target information of the target application programs, and the headset sets the communication identification information of itself to be the same as the communication identification information of one or more of the target application programs through the communication identification information.
For example, the user may set different modes for the target application in advance, and the electronic device may set different communication identification information for the target application based on the mode information or the mode information. As shown in fig. 3, fig. 3 is a schematic diagram of a mode setting provided according to an exemplary embodiment, in which application icons of a call APP, an audio APP, and a video APP are displayed on a desktop of an electronic device, a user may press an application icon 301 of the call APP for a long time, and the electronic device displays a mode selection interface 302 in response to a long press operation of the user. The mode selection interface 302 includes a mode selection control 303 corresponding to the call mode, and mode selection controls for the song listening mode and the video mode. The user may click on the mode selection control 303, and the electronic device may set the call APP to the call mode in response to the click operation of the user. Likewise, a video APP may be set to a video mode, and an audio APP may be set to a song listening mode. The mode setting method may be set according to requirements, which is not limited in this embodiment.
Optionally, the user may set that different modes have different mode levels, the different modes correspond to different priorities, and the electronic device may determine the priority of the application according to the mode of the target application. As shown in fig. 3, the mode level of the talk mode is 2, the mode level of the listen mode is 7, 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 a headset to which the target application corresponds. And the electronic equipment can display a headset selection interface under the condition that the number of the target application programs is not less than two, receive a first input of a user based on the headset selection interface, and respond to the first input to determine the headset corresponding to the target application programs. As shown in fig. 4, fig. 4 is a schematic diagram of an earphone selection interface according to an exemplary embodiment, and in combination with the foregoing examples, the earphone selection interface may include a first target image 401 corresponding to a main earphone, a second target image 402 corresponding to a secondary earphone, 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. The first input, for example, drag operation, may be that the user presses the first control 403 and drags the first control, and if the first control 403 is dragged onto the first target image 401 by the user, the electronic device may establish a correspondence between the main earphone and the call APP in response to the drag operation of the user, and send a data packet including mode information of the call mode and identification information of the main earphone to the main earphone, where the mode information in the data packet is the target information of the call APP sent by the electronic device to the main earphone. Similarly, if the second control 405 is dragged onto the second target icon 402 by the user, the electronic device may establish a correspondence between the video APP and the secondary earphone, and send a data packet including mode information of the video mode and identification information of the secondary earphone to the primary earphone. The specific form of the first input may be set according to the requirement, which is not limited in this embodiment.
Correspondingly, after receiving 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 main earphone receives the data packet, if the data packet includes the identification information of the auxiliary earphone, the auxiliary earphone can be set to be in a video mode according to the mode information in the data packet. At this time, 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 communication identification information of the target application and the corresponding earphone are the same.
The electronic device may communicate with the main earphone in advance to obtain the identification information of the main earphone and the auxiliary earphone, or the electronic device may default to use 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 of 1 as a call mode and the slave earphone with the priority of 2 as a video mode according to the priority in the data packet. The specific form of the mode information and the identification information may be set according to the need, and the embodiment is not limited thereto.
In one embodiment, the electronic device may control the target application to communicate with all headphones with less than two target applications. And displaying a headset selection interface when the number of the target application programs is determined to be greater than or equal to two, wherein a target image corresponding to the newly added target application program can be displayed in the headset selection interface. As shown in fig. 5, fig. 5 is a schematic diagram of another earphone selection interface according to an exemplary embodiment, and in combination with the foregoing example, if the currently running target application is a video APP, the electronic device may control the video APP to simultaneously communicate with the main earphone and the auxiliary earphone. At this time, if the electronic device receives the incoming call notification, the call APP is started, and the electronic device may display an earphone selection interface, where the earphone selection interface includes a first control 403 corresponding to the newly added call APP, a first target image 401 corresponding to the main earphone, and a second target image 402 corresponding to the auxiliary earphone. 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, a corresponding relationship between the main earphone and the call APP is established, and the mode information of the call APP is sent to the main earphone. Meanwhile, the auxiliary earphone corresponding to the second target image 402 can be automatically set to correspond to the video APP, a corresponding relation between the auxiliary earphone and the video APP is established, and mode information of the video APP is sent to the auxiliary earphone.
In another embodiment, the electronic device may further establish a correspondence between the target application program and the plurality of headphones based on the headphone selection interface, and send mode information, that is, target information, corresponding to the target application program to each of the headphones, so that the communication identification information of the target application program and the plurality of headphones may be the same. As shown in fig. 5, the earphone selection interface may further include a third target image 406, where the third target image 406 corresponds to both the main earphone and the auxiliary earphone. 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 sub-headset at the same time, and send a data packet including mode information of the call APP, identification information of the main headset and the sub-headset to the headset. Accordingly, after receiving the data packet, the main earphone and the auxiliary earphone can be set to be in a communication mode according to the identification information of the main earphone and the auxiliary earphone. At this time, the mode information of the communication APP, the main earphone and the auxiliary earphone is the same, and further the communication APP, the main earphone and the auxiliary earphone can be set to have the same communication identification information, and the communication APP can be simultaneously communicated with the main earphone and the auxiliary earphone.
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 not less than two, and the user can manually select the earphone corresponding to the target application programs through the earphone selection interface, so that the user can conveniently select the corresponding target application programs 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.
Wherein the audio output module is a module with audio output function such as a microphone and a speaker integrated in the electronic device.
In this embodiment, the second input is used to determine an audio output module corresponding to the target application program, and the electronic device may further receive the second input of the user based on the earphone selection interface, establish a correspondence between the target application program and the audio output module in response to the second input, and control the target application program to communicate with the corresponding audio output module. As shown in fig. 5, the earphone selection interface may further include a fourth target image 407 corresponding to the audio output module, where the fourth target image 407 corresponds to a speaker integrated in the electronic device. A second input, such as a drag operation, when the user drags the first control 403 over the fourth target image 407, the electronic device may determine that the call APP corresponds to the speaker, establishing a correspondence between the call APP and the speaker. At this time, after the call 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 in 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 call APP corresponds to a speaker, the video APP and the audio APP may be stopped. Alternatively, the electronic device may continue to control other targeted applications to communicate with the corresponding headphones. For example, when it is determined that the video APP corresponds to the speaker, the conversation APP corresponds to the master earphone, the conversation APP may be continuously controlled to communicate with the master earphone. At this time, the user can watch the video played by the video APP through the speaker and talk through the main earphone.
In practical application, the electronic device establishes a corresponding relation between the target application program and the audio output module based on the earphone selection interface, and controls the target application program to communicate with the audio output module, so that a user can flexibly operate the electronic device. The specific process of determining the audio output module corresponding to the target application program based on the earphone selection interface may be set according to the requirement, which is not limited in this embodiment.
In one embodiment, the earphone selection interface may further include an operation control corresponding to the target application program, so that the user can quickly operate the target application program. As shown in fig. 5, the earphone selection interface may include a sms reply control 408, where the sms reply control 408 corresponds to the call APP. After the user clicks the sms reply control 408, the electronic device may enter a sms editing interface in response to the clicking operation of the user, edit the sms, and send the sms to the user who has arrived. The specific content included in the earphone selection interface may be set according to requirements, which is not limited in this embodiment.
Optionally, the method may further include:
and sending the target information of the target application program to the earphone so that the earphone outputs the indication information corresponding to the target application program, and enabling the communication identification information of the earphone to be identical with 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 headset may receive target information of a target application program sent by the electronic device; based on the target information, the communication identification information of the headset is set to be the same as the communication identification information of the at least one target application.
In one embodiment, the electronic device may send the target information of the target application program to the headset, so that the headset outputs the indication information corresponding to the target application program, and when receiving the user operation corresponding to the indication information, the communication identification information of the headset is set to be the same as the communication identification information of the target application program to which the indication information belongs. In combination with the above example, 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 master earphone. Accordingly, after receiving the mode information, the master earphone may control the master earphone and the slave earphone to output corresponding indication information. For example, for the mode information of the talk APP, the master earphone may control the master earphone and the slave earphone to simultaneously output the first voice "please double-click the pause key, and set the earphone to the talk mode. At this time, if the user double-clicks a pause key in the main earphone, the main earphone may set the main earphone to a talk mode in response to the double-click operation of the user. At this time, the electronic device and the master earphone can use the mode information as communication identification information at the same time, so that the communication APP and the master earphone have the same communication identification information.
Wherein, when the main earphone and the auxiliary earphone both receive the operation of double-clicking the pause key by the user, the main earphone and the auxiliary earphone can be set into a communication mode. After the first voice is output, the main earphone can control the main earphone and the auxiliary earphone to simultaneously output the second voice, namely ' please click a pause key ', the earphone is set to be in a video mode ', and if the user clicks the pause key in the main earphone, the main earphone can respond to the clicking operation of the user, and the main earphone is set to be in the video mode. When both the main earphone and the sub-earphone receive the operation of clicking the pause key by the user, both the main earphone and the sub-earphone are set to 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 the indication information corresponding to the target application program, and instructs the user to operate the earphone to set the communication identification information of the earphone so as to determine the target application program corresponding to the earphone, so that the user using the earphone can conveniently select the target application program corresponding to the earphone according to the requirement.
Step 203, the earphone determines communication identification information of the earphone.
The earphone is connected with the electronic equipment in a wireless mode, and the electronic equipment is used for configuring different communication identification information for target application programs respectively under the condition that the target application programs in the currently operated application programs are not less than two.
Step 204, the target application program communicates with the earphone with the same communication identification information.
Optionally, the method may further include:
and under the condition that the communication data sent by the earphone comprises the control instruction, 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, determining that the control instruction is an invalid instruction.
In this embodiment, the electronic device may set, according to the priority of the target application, the control instruction received by the target application with a lower priority as the invalidation instruction, so as to avoid that a plurality of headphones control 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 device receives the data packet sent by the earphone, if the data packet includes a control instruction sent by the auxiliary earphone and mode information of a video mode, the electronic device can determine that the priority of the video APP is lower than the priority of the call APP according to the priorities of the video APP and the call APP, set the control instruction as an invalid instruction, and the electronic device 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 with the main earphone, and the user B is watching the video screen with the sub-earphone, only the user a wearing the main earphone can operate the electronic device through the earphone because the control command sent by the sub-earphone is set to be invalid.
In practical application, the electronic device can set the control instruction received by the target application program with lower priority as an invalid instruction according to the priority of the target application program, so that the situation that a plurality of headphones 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 instruction, if the control instruction is not matched with other target application programs except the target application program corresponding to the earphone, determining that the control instruction is an invalid instruction.
In this embodiment, after receiving a control instruction pertaining to a certain application program, the electronic device may determine, according to the influence of the control instruction on other target application programs, that the control instruction having an influence on other target application programs is invalid, so as to avoid mutual interference when a plurality of headphones control the electronic device at the same time. In combination with the above example, after receiving the data packet sent by the headset, the electronic device may first determine that the control instruction belongs to the video APP if the data packet includes the control instruction sent by the headset and the mode information of the video mode. At this time, the electronic device may determine whether the execution of the control instruction may affect the call APP, for example, the electronic device may determine an operation object corresponding to the control instruction, 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 determine that the execution of the control instruction may affect the operation of the call APP, that is, may affect a normal call, and determine that the control instruction is not matched with the call APP, and determine 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 affected. The specific method for determining that the control command does not match the target application program may be set according to the requirement, which is not limited in this embodiment.
In practical application, after receiving a control instruction sent by the earphone, if the control instruction is not matched with other target application programs except for the target application program corresponding to the earphone, the electronic device determines that the control instruction is 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. In contrast, the control instruction can be normally executed, so that the user can conveniently operate the application program to which the control instruction belongs.
In summary, in this embodiment, the electronic device determines, from a plurality of running application programs, a target application program having a headset communication requirement, and sets different communication identification information for the target application program when the number of the target application programs is not less than 2, and controls the target application program to communicate with a headset having the same communication identification information. When a plurality of application programs need to be communicated with the earphone at the same time, the application programs are controlled to be respectively communicated with the corresponding earphone through the communication identification information, so that the application programs can work at the same time, and the problem that functions of part of the application programs cannot be used can be solved.
Optionally, the method may further include:
Establishing a communication connection with a new earphone;
determining a target application program corresponding to the new earphone;
the target application corresponding to the new earpiece is controlled to communicate with the new earpiece.
In this embodiment, the electronic device may establish a communication connection with the new earphone while controlling the target application to communicate with the corresponding earphone, so as to control one of the target applications to communicate with the new earphone. The new headset may be, for example, a newly added third bluetooth headset.
As shown in fig. 6, fig. 6 is a schematic diagram of a communication setup process provided in an exemplary embodiment, in a process of controlling a communication APP by an electronic device to communicate with a main headset and controlling a communication APP by a video APP with a sub-headset, that is, a user a is talking using a first bluetooth headset, a user B is watching a video using a second bluetooth headset, and a user C may operate a third bluetooth headset, send a communication request to the electronic device, requesting pairing with the electronic device, to access a communication process between one of target applications and the headset. After receiving the communication request, the electronic device may output notification information to notify a master user controlling the electronic device, where the master user may be user a or user B. The electronic device may display a pairing interface in response to an operation of the master user clicking on the notification information. If the master user agrees that the electronic device is paired with the third Bluetooth headset, a 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 main user clicking the confirm button. Otherwise, if the master user does not agree with the access of the third Bluetooth headset, the electronic device can be operated, and the communication request of the third Bluetooth headset is refused. The specific process of the electronic device establishing a communication connection with the new earphone may be set according to requirements, which is not limited in this embodiment.
In one embodiment, the electronic device may select a corresponding target application for the new headset based on the application selection interface. Referring to fig. 7, fig. 7 is a schematic diagram of an application selection interface provided according to an exemplary embodiment, in combination with the foregoing example, if a host user agrees to access by the user C, the host user may operate the electronic device, so that the electronic device displays the application selection interface shown in fig. 7, the application selection interface includes target images of a plurality of target applications currently running and a fourth control 701 corresponding to a third bluetooth headset, and if the host 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 drag operation of the host user. At this time, the electronic device may send the mode information of the call APP to the third bluetooth headset, and after receiving the mode information, the third bluetooth headset may output a corresponding third voice "whether to agree to access the call". If the user C agrees to access, the confirmation key in the Bluetooth headset can be clicked, and the third Bluetooth headset can respond to the clicking operation to set the mode of the third Bluetooth headset as a call mode, namely, the communication identification information of the third Bluetooth headset is set to be the same as the communication identification information of the call APP. At this time, the communication identification information of the first bluetooth headset and the communication identification information of the third bluetooth headset are the same as the communication identification information of the communication APP, and the electronic equipment can control the communication APP to communicate with the first bluetooth headset and the third column headset at the same time, so that the user A wearing the first bluetooth headset and the user C wearing the third bluetooth headset can answer the phone at the same time. Otherwise, if the user C does not agree to access, the earphone can be controlled to refuse to access the communication process of the communication APP and the first Bluetooth earphone.
In another embodiment, after the communication connection with the electronic device is established, 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 host 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 target application program is currently running, the electronic device can directly determine that the third Bluetooth headset corresponds to the call APP. Alternatively, the electronic device may output notification information notifying the user a. If the user A agrees to the user C to access, the user A can click a determination button to determine that the third Bluetooth headset corresponds to the call APP. If there are no fewer than two currently running target applications, 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 the requirement, which is not specifically limited in this embodiment. In practical application, the electronic device can establish communication connection with the unconnected earphone in the process of controlling the target application program to communicate with the earphone, so as to add a new earphone, control the new earphone to communicate with the target application program, and facilitate the user to expand the number of the earphone.
Alternatively, when the target application program communicates with a plurality of headphones at the same time, the electronic device may add the identification information of the headphones to the communication data when receiving the communication data sent by the headphones. For example, when receiving audio data sent by the 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 call APP can determine the source of the audio data according to the identification information in the audio data, so that the call APP can perform different processing on the audio data according to the source of the audio data, for example, the call APP can store the audio data of different sources according to the source of the audio data.
Optionally, for the control instruction sent by the earphone, the user can set different modes, and the control instruction has different functions.
For example, as shown in fig. 3, the user may set the call mode, and the double click command functions to activate the auxiliary input function in the target program. For example, when the electronic device controls the call APP to communicate with the main earphone, if the main earphone receives an operation of double-clicking a key by a user, a double-clicking instruction may be generated, and a data packet including the double-clicking instruction is sent to the electronic device. When the electronic equipment forwards the double-click instruction to the call APP, the call APP can respond to the double-click instruction to start an auxiliary input function of the call APP. At this time, during the process of using the main earphone to talk by the user a, the talk APP may perform voice recognition on the talk content, and if it is recognized that the user a needs to input the number "1", the keyboard input 1 in the electronic device may be automatically controlled. For another example, the user may set the listening mode, and the double click command is used to collect the currently playing music. When the electronic equipment controls the audio APP to communicate with the earphone, if the earphone receives the operation of double-click keys of a user, a double-click instruction can be generated, and a data packet comprising the double-click instruction is sent to the electronic equipment. When the electronic equipment forwards the double-click instruction to the audio APP, the audio APP can respond to the double-click instruction to start a collection function to collect currently played music.
In practical application, the user can set different modes for the application program and set different functions of the control instructions under 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 of steps of yet another communication control method provided in accordance with an exemplary embodiment, the method may include:
step 801, determining communication identification information of the earphone.
Step 802, controlling the headset to communicate with a target application program having the same communication identification information.
Alternatively, step 802 may be implemented as follows:
processing communication data transmitted by a target application program having the same communication identification information based on the communication identification information included in the communication data in the case of receiving the communication data transmitted by the electronic device;
and transmitting communication data comprising the communication identification information to the electronic device, so that the electronic device forwards the communication data to a 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 embodiment, 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 having the same communication identification information based on the communication identification information of the headset. When a plurality of application programs need to be communicated with the earphone at the same time, the application programs are controlled to be respectively communicated with the corresponding earphone through the communication identification information, so that the application programs can work at the same time, and the problem that functions of part of the application programs cannot be used can be solved.
In one embodiment, the user may set different commands to have different effects for different commands sent by the headset, for example, a first command is used to play the voice information, and a second command is used to reply to the currently played voice information. The first instruction, e.g., a single click instruction, and the second instruction, e.g., a double click instruction, may be other forms of instructions.
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 flowchart of a voice playing process provided according to an exemplary embodiment, where when an electronic device controls a chat APP to communicate with one of bluetooth headphones, the chat APP may output a prompt message when receiving first voice information 901. The electronic equipment can send the prompt message to the Bluetooth headset, and the Bluetooth headset outputs the prompt message at the moment 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 command forwarded by the electronic device, the chat APP may play the received first voice information 901 in response to the click command. At this time, if the user B double clicks the key in the bluetooth headset, the bluetooth headset may generate a double click command. After receiving the double-click instruction forwarded by the electronic device, the chat APP can be controlled to start replying to the first voice information 901 which is currently played, the user B can input the second voice information 902 through the bluetooth headset, and when receiving the second voice information 902 sent by the bluetooth headset, the chat APP can send the second voice information 902 to the user a. When the user B double-clicks the key again, the first voice information 901 of the user a may be replied again, and the third voice information 903 may be generated and sent to the user a.
In another embodiment, the electronic device may continuously play the received voice information after receiving the click command sent by the bluetooth headset. As shown in fig. 9, after the first voice information 901 is played, the chat APP continuously transmits the second voice information 902 and the third voice information 903 to the user a. At this time, the chat APP may 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, the fifth voice information 905 is continuously played. And so on 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 period, the last voice message is replied. Otherwise, if the double-click instruction sent by the Bluetooth headset is not received after waiting for the preset time, whether voice messages sent by other users are received is continuously determined, if the voice messages of the other users are received, the voice messages of the other users are continuously played, and if the voice messages of the other users are not received, the playing of the voice messages is ended.
When the chat APP plays the voice information, the voice information can be marked according to the received single click command and double click command, and the voice information is divided. Referring to fig. 9, when the first voice information 901 sent by the user a is played, the user B replies to the second voice information 902 and the third voice information 903 continuously, and then the first voice information 901, the second voice information 902 and the third voice information 903 may be determined as the first topic, and the first voice information 901 is marked to determine that the user B replies to the first voice information 901. Similarly, when the fourth voice information 904 and the fifth voice information 905 transmitted by the user a are played, the user B replies to the fifth voice information 905 and replies to the sixth voice information 906 and the seventh voice information 907 successively. At this time, the fifth voice information 905 may be marked, determining that the user B replied to the fifth voice information 905, and simultaneously, determining the fourth voice information 904, the fifth voice information 905, the sixth voice information 906, and the seventh voice information 907 as the second topic. When the voice information in the second topic is played, the fifth voice information added with the mark can be played, the fourth voice information is ignored, and a user can conveniently and quickly determine specific contents 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 information 904 and the fifth voice information 905 sent by the user a, the chat APP sequentially plays the fourth voice information 904 and the fifth voice information 905, and if the user B double clicks the bluetooth headset to reply to the fourth voice information 904 and reply to the sixth voice information 906 while playing the fourth voice information 905, the chat APP can determine that the sixth voice information 906 is located between the fourth voice information 904 and the fifth voice information 905. In storing the voice information, the fourth voice information 904, the sixth voice information 906, and the fifth voice information 906 may be sequentially stored as 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, so that the consistency of the voice content may be maintained.
In one embodiment, the user may manually manipulate the voice information to group the voice information. As shown in fig. 9, if the user plays the eighth voice information 908 after playing the seventh voice information 907 and receives the ninth voice information 909 transmitted by the user a, the user B may manually drag the eighth voice information 908 to divide the eighth voice information 908 and the ninth voice information 909 into one voice topic. The specific process of manually operating the voice information by the user can be set according to the requirement, and the implementation is not limited to this.
In practical application, the 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 search the voice information in the future.
It should be noted that, in the communication control method provided by the embodiment of the present application, the execution body may be an earphone, or a control module in the earphone for executing the communication control method. In the embodiment of the application, an earphone executing communication control method is taken as an example, and the earphone provided by the embodiment of the application is described.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device provided according to an exemplary embodiment, and an electronic device 1100 may include:
a first determining module 1101 is configured to determine a target application program having a headset communication requirement from a plurality of running application programs.
A setting module 1102, configured to set different communication identification information for the target application programs respectively when the number of the target application programs is not less than 2.
A communication module 1103 for controlling the target application program to communicate with the earphone 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.
And the receiving module is used for receiving the 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.
And the first sending module is used for sending the communication identification information of the corresponding target application program to the earphone so that the communication identification information of the earphone is the same as the communication identification information of the corresponding 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 identical with 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, when receiving communication data sent by the headset, transfer 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 into 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, when the communication data sent by the headset includes a 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 priority of other target applications.
In summary, in this embodiment, the electronic device determines, from a plurality of running application programs, a target application program having a headset communication requirement, and sets different communication identification information for the target application program when the number of the target application programs is not less than 2, and controls the target application program to communicate with a headset having the same communication identification information. When a plurality of application programs need to be communicated with the earphone at the same time, the application programs are controlled to be respectively communicated with the corresponding earphone through the communication identification information, so that the application programs can work at the same time, and the problem that 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 an earphone provided according to an exemplary embodiment, and an earphone 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 the number of target application programs with earphone communication requirements in a plurality of running application programs is not less than 2;
A communication module 1202 for controlling the headset to communicate with a target application having the same communication identification information.
Optionally, the earphone 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, that the communication identification information of the headset is the same as the communication identification information of the at least one target application.
In summary, the communication identification information of the headset is determined, and the headset is controlled to communicate with the target application program having the same communication identification information. When a plurality of application programs need to be communicated with the earphone at the same time, the application programs are controlled to be respectively communicated with the corresponding earphone through the communication identification information, so that the application programs can work at the same time, and the problem that functions of part of the application programs cannot be used can be solved.
The earphone in the embodiment of the application can be a device, a component in a terminal, an integrated circuit or a chip. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The earphone in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The earphone provided by the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 2, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 13, fig. 13 is a schematic structural diagram of another electronic device provided according to an exemplary embodiment, and further provides an electronic device 1300, including 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, where the program or the instruction implements each process of the foregoing embodiment of the communication control method when executed by the processor 1301, and the process may achieve the same technical effect, and is not repeated herein.
Optionally, the embodiment of the present application further provides an earphone, including a processor and a memory, where the program or the instruction stored in the memory and capable of running on the processor is executed by the processor to implement each process of the communication control method executed by the earphone, and the process can achieve the same technical effect, so that repetition is avoided, and details are not repeated here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 14 is a schematic diagram of a hardware structure of an electronic device according to an exemplary embodiment.
The electronic device 1400 includes, but is not limited to: radio frequency 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 also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1410 by a power management system to perform functions such as managing charging, discharging, and power consumption by 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 1410 is configured to determine a target application program having a headset communication requirement from a plurality of running application programs; 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;
A network module 1402 for controlling the target application to communicate with a headset having the same communication identification information.
In summary, in this embodiment, the electronic device determines, from a plurality of running application programs, a target application program having a headset communication requirement, and sets different communication identification information for the target application program when the number of the target application programs is not less than 2, and controls the target application program to communicate with a headset having the same communication identification information. When a plurality of application programs need to be communicated with the earphone at the same time, the application programs are controlled to be respectively communicated with the corresponding earphone through the communication identification information, so that the application programs can work at the same time, and the problem that functions of part of the application programs cannot be used can be solved.
Optionally, a display unit 1406 is configured to display a headset selection interface; receiving a first input in a headset selection interface; responding to the first input, and determining a headset corresponding to the target application program;
the network module 1402 is configured to send communication identification information of the corresponding target application to the headset, so that the communication identification information of the headset is the same as the communication identification information of the corresponding 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 not less than two, and the user can manually select the earphone corresponding to the target application programs through the earphone selection interface, so that the user can conveniently select the corresponding target application programs 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 the indication information corresponding to the target application, and when receiving a user operation corresponding to the indication information, makes communication identification information of the headset be the same as communication identification information of the target application to which the indication information belongs.
In practical application, the earphone outputs the indication information corresponding to the target application program, and instructs the user to operate the earphone to set the communication identification information of the earphone so as to determine the target application program corresponding to the earphone, so that the user using the earphone can conveniently select the target application program corresponding to the earphone according to the requirement.
Optionally, the network module 1402 is configured to, when receiving communication data sent by the headset, transfer the communication data to a target application to which the communication identification information in the communication data belongs;
And adding the communication identification information of the target application program into 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, so that 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 where the communication data sent by the headset includes a 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 priority of the other target application.
In practical application, the electronic device can set the control instruction received by the target application program with lower priority as an invalid instruction according to the priority of the target application program, so that the situation that a plurality of headphones control the electronic device simultaneously to influence the normal use of the electronic device by a user can be avoided.
It should be appreciated that in embodiments of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, with the graphics processor 14041 processing image data of still pictures or video obtained by an image capturing device (e.g., 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. The touch panel 14071 is also referred to as a touch screen. The touch panel 14071 may include two parts, 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, a joystick, and so forth, which are not described in detail herein. Memory 1409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 1410 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1410.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned communication control method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the communication control method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (12)

1. A communication control method applied to an electronic device wirelessly connected to a headset, the method comprising:
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 programs respectively under the condition that the number of the target application programs is not less than 2;
displaying an earphone selection interface;
receiving a first input in the earphone selection interface;
determining the earphone corresponding to the target application program in response to the first input;
transmitting communication identification information of a corresponding target application program to the earphone so that the communication identification information of the earphone is identical with the communication identification information of the corresponding target application program;
controlling the target application program to communicate with the earphone with the same communication identification information;
the communication identification information is set according to the priority of the target application program or the mode information of the target application program; the headset communication requirements include audio output requirements and/or audio input requirements.
2. The method of claim 1, further comprising, after said determining a target application having headset communication requirements from the plurality of applications running:
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 communication identification information of the earphone to be identical with communication identification information of the target application program to which the indication information belongs under the condition that user operation corresponding to the indication information is received.
3. The method of any of claims 1-2, wherein the controlling the target application to communicate with a headset having the same communication identification information comprises:
when communication data sent by the earphone is received, the communication data is transmitted to the target application program to which the communication identification information in the communication data belongs;
and adding communication identification information of the target application program into 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.
4. A method according to claim 3, further comprising:
and under the condition that the communication data sent by the earphone comprises a control instruction, 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, determining that the control instruction is an invalid instruction.
5. A communication control method, characterized by comprising:
the method comprises the steps that 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 under the condition that the number of the target application programs with earphone communication requirements is not less than 2 in a plurality of running application programs;
displaying an earphone selection interface;
receiving a first input in the earphone selection interface;
determining the earphone corresponding to the target application program in response to the first input;
transmitting communication identification information corresponding to a target application program to the earphone; the earphone receives the communication identification information and determines the communication identification information of the earphone so that the communication identification information of the earphone is identical with the communication identification information of the corresponding target application program;
the earphone controls the earphone to communicate with the target application program with the same communication identification information;
the communication identification information is set according to the priority of the target application program or the mode information of the target application program;
the headset communication requirements include audio output requirements and/or audio input requirements.
6. The method of claim 5, further comprising, prior to said determining communication identification information for the headset:
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:
based on the target information, setting the communication identification information of the earphone to be the same as the communication identification information of at least one target application program.
7. An electronic device, comprising:
a first determining module, configured to determine a target application program having a headset communication requirement from a plurality of running application programs;
a setting module, configured to set different communication identification information for the target application programs, respectively, when the number of the target application programs is not less than 2;
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 determining 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 of the corresponding target application program to the earphone so that the communication identification information of the earphone is the same as the communication identification information of the corresponding target application program;
the communication module is used for controlling the target application program to communicate with the earphone with the same communication identification information;
The communication identification information is set according to the priority of the target application program or the mode information of the target application program; the headset communication requirements include audio output requirements and/or audio input requirements.
8. The electronic device of claim 7, further comprising:
and the second sending module is used for sending the target information of the target application program to the earphone so that the earphone outputs the indication information corresponding to the target application program, and when receiving the user operation corresponding to the indication information, the communication identification information of the earphone is identical with the communication identification information of the target application program to which the indication information belongs.
9. The electronic device according to any of the claims 7-8, wherein the communication module is specifically configured to, in case of receiving communication data sent by the headset, transfer the communication data to the target application to which the communication identification information in the communication data belongs; and adding communication identification information of the target application program into 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.
10. The electronic device of claim 9, wherein the communication module is further configured to, in a case where the communication data sent by the headset includes a control instruction, 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 a priority of other target applications.
11. An earphone, comprising:
the determining module is used for determining communication identification information which is sent by the earphone receiving electronic equipment and corresponds to a target application program with earphone communication requirements; 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 under the condition that the number of the target application programs with earphone communication requirements is not less than 2 in a plurality of running application programs; the electronic equipment is also used for displaying an earphone selection interface; receiving a first input in the earphone selection interface; determining the earphone corresponding to the target application program in response to the first input; transmitting communication identification information of a corresponding target application program to the earphone so that the communication identification information of the earphone is identical with the communication identification information of the corresponding target application program;
The communication module is used for controlling the earphone to communicate with the target application program with the same communication identification information;
the communication identification information is set according to the priority of the target application program or the mode information of the target application program; the headset communication requirements include audio output requirements and/or audio input requirements.
12. The headset of claim 11, further comprising: the receiving module is used for receiving 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 communication identification information of the headset is the same as communication identification information of at least one target application program.
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 CN113271376A (en) 2021-08-17
CN113271376B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271376B (en) * 2021-05-08 2023-08-22 维沃移动通信有限公司 Communication control method, electronic equipment and earphone
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

Also Published As

Publication number Publication date
WO2022237609A1 (en) 2022-11-17
CN113271376A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US10938756B2 (en) Task management based on instant message
WO2016184302A1 (en) Message forwarding method and electronic device
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
CN108390816B (en) Network communication method and device
CN106533711B (en) Multimedia conference method and device
CN106973330B (en) Screen live broadcasting method, device and system
CN111447074A (en) Reminding method, device, equipment and medium in group session
CN113271376B (en) Communication control method, electronic equipment and earphone
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
EP4318199A1 (en) Method for interaction between electronic devices and electronic device
CN110673770B (en) Message display method and terminal equipment
WO2024055494A1 (en) Call method and apparatus based on bluetooth earphone, and storage medium
KR20220104236A (en) Synchronization methods and electronic devices
WO2022156662A1 (en) Method and apparatus for switching audio playing mode, and electronic device and storage medium
KR20140137736A (en) Method and apparatus for displaying group message
WO2020007300A1 (en) Incoming call processing method and device, readable storage medium, and mobile terminal
CN112822433A (en) Control method and related device in video conference
WO2022206651A1 (en) Instant communication method and apparatus, electronic device, and storage medium
WO2020015534A1 (en) Mobile terminal, and method and device for realizing instant communication with fixed terminal
EP4207750A1 (en) Device control system
WO2015078349A1 (en) Microphone sound-reception status switching method and apparatus
KR101876394B1 (en) Method and device for playing media data on a terminal
WO2021052333A1 (en) Message reply method, device, and mobile terminal
WO2023241455A1 (en) Group chat operation processing method and apparatus, electronic device, and storage medium
WO2023071932A1 (en) Message sending method and electronic device

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