Data processing method, device, equipment and storage medium
By automatically switching the connection state between the headset and the multi -device, the problem of complex operating the user in existing technologies has been solved, and more efficient and convenient multi -device communication interactions are realized.
Patent Information
- Application Number
- CN201910708574.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-01
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2039-08-01
AI Technical Summary
In multi-device connection scenarios, existing Bluetooth headsets are difficult to automatically switch and optimize communication status, resulting in complex user operations and inefficient efficiency.
By detecting the signal status of different communication objects, the headset can automatically switch between the connection status between it and each communication object, switch from dormant state to working state, or vice versa to optimize communication interaction.
The automatic switching and optimization of the headset in the multi -device connection scenario simplifies user operations and improves use efficiency and convenience.
Smart Images

Figure CN112312368B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method and device, an electronic device and a storage medium. Background Art
[0002] A Bluetooth headset is a headset that uses Bluetooth communication technology for communication connection. The Bluetooth headset can communicate with the device wirelessly, so that it can be connected to the device without the need for a headphone wire, providing convenience to the user. Summary of the invention
[0003] An embodiment of the present application provides a data processing method to provide connection interaction between headphones and multiple devices.
[0004] Correspondingly, an embodiment of the present application also provides a data processing device, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0005] In order to solve the above problems, an embodiment of the present application discloses a data processing method, in which the connection state between the headset and the first communication object is a sleep state, and the connection state between the headset and the second communication object is a working state. The method includes: detecting a signal corresponding to the first communication object, and in response to the signal, sending an instruction to the second communication object to switch the connection state between the second communication object and the headset to a sleep state; switching the connection state between the first communication object and the headset to a working state to perform communication interaction.
[0006] An embodiment of the present application also discloses a data processing method, which is applied to headphones, wherein the headphones communicate with a headphone accessory having a wireless communication module based on the BLE protocol, and the headphones communicate with a terminal device based on the BLE protocol and the A2DP protocol. The method includes: receiving voice data, and identifying a signal corresponding to the headphone accessory based on the voice data; in response to the signal, sending an instruction to the terminal device to disconnect the communication between the headphone and the terminal device based on the A2DP protocol; establishing communication based on the A2DP protocol between the headphone accessory and the headphones, and communicating audio data with the headphone accessory.
[0007] An embodiment of the present application also discloses a data processing method, which is applied to an earphone accessory with a wireless communication module, wherein the earphone accessory communicates with the earphone based on the BLE protocol, and the method includes: after establishing communication between the earphone accessory and the earphone based on the A2DP protocol, receiving a query message from the earphone; executing a query operation corresponding to the query message through the wireless communication module, and determining a corresponding query response message; and sending the query response message to the earphone.
[0008] An embodiment of the present application also discloses a data processing method, which is applied to a terminal device, wherein the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol. The method comprises: detecting a call message; in response to the call message, sending an instruction to the headset accessory to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; after establishing communication based on the HFP protocol between the terminal device and the headset, connecting the call corresponding to the call message; sending voice data corresponding to the call to the headset, and / or receiving voice data from the headset.
[0009] An embodiment of the present application also discloses a data processing method, which is applied to a terminal device, wherein the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol. The method comprises: detecting a call message; sending the call message to the headset so that the headset sends an instruction to the headset accessory in a working state to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; after establishing communication based on the HFP protocol between the terminal device and the headset, connecting the call corresponding to the call message; sending voice data corresponding to the call to the headset, and / or receiving voice data from the headset.
[0010] An embodiment of the present application also discloses a data processing method, which is applied to a terminal device, wherein the terminal device communicates with a headset based on a BLE protocol, and the headset communicates with a headset accessory based on a BLE protocol and an A2DP protocol. The method comprises: detecting an audio playback message; in response to the audio playback message, sending an instruction to the headset accessory to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; after establishing communication based on the A2DP protocol between the terminal device and the headset, transmitting audio data corresponding to the audio playback message to play the audio data through the headset.
[0011] An embodiment of the present application also discloses a data processing method, which is applied to a terminal device, wherein the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol. The method comprises: detecting an audio playback message; sending the audio playback message to the headset so that the headset sends an instruction to the headset accessory in a working state to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; after establishing communication based on the A2DP protocol between the terminal device and the headset, transmitting audio data corresponding to the audio playback message to play the audio data through the headset.
[0012] An embodiment of the present application also discloses a data processing method, in which the headset communicates with a first communication object based on a first protocol, and the headset communicates with a second communication object based on the first protocol and a second protocol, and the second protocol includes a protocol that supports audio data interaction; the method includes: detecting a signal corresponding to the first communication object, and in response to the signal, sending an instruction to the second communication object to disconnect the communication between the second communication object and the headset based on the second protocol; establishing communication based on the second protocol between the headset and the first communication object, and interacting audio data.
[0013] An embodiment of the present application also discloses a data processing device, in which the connection state between the headset and the first communication object is a sleep state, and the connection state between the headset and the second communication object is a working state. The device includes: a switching sleep state module, which is used to detect a signal corresponding to the first communication object, and in response to the signal, sends an instruction to the second communication object to switch the connection state between the second communication object and the headset to a sleep state; and a switching communication module, which is used to switch the connection state between the first communication object and the headset to a working state for communication interaction.
[0014] An embodiment of the present application also discloses a data processing device, which is applied to headphones. The headphones communicate with a headphone accessory with a wireless communication module based on the BLE protocol, and the headphones communicate with a terminal device based on the BLE protocol and the A2DP protocol. The device includes: a processing module, which is used to receive voice data and identify a signal corresponding to the headphone accessory based on the voice data; a communication module, which is used to respond to the signal and send an instruction to the terminal device to disconnect the communication between the headphone and the terminal device based on the A2DP protocol; establish communication based on the A2DP protocol between the headphone accessory and the headphones, and communicate audio data with the headphone accessory.
[0015] An embodiment of the present application also discloses a data processing device, which is applied to an earphone accessory with a wireless communication module, wherein the earphone accessory communicates with the earphone based on the BLE protocol, and the device includes: a receiving module, which is used to receive a query message of the earphone after the connection state of establishing communication between the earphone accessory and the earphone based on the A2DP protocol is switched to a working state; a query module, which is used to execute a query operation corresponding to the query message through the wireless communication module and determine a corresponding query response message; and a feedback module, which is used to send the query response message to the earphone.
[0016] An embodiment of the present application also discloses a data processing device, which is applied to a terminal device, wherein the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol. The device includes: a call processing module, which is used to detect a call message; in response to the call message, send an instruction to the headset accessory to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; a call module, which is used to connect the call corresponding to the call message after establishing communication based on the HFP protocol between the terminal device and the headset; send voice data corresponding to the call to the headset, and / or receive voice data from the headset.
[0017] An embodiment of the present application also discloses a data processing device, which is applied to a terminal device, wherein the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol. The device includes: a call detection module, which is used to detect a call message; send the call message to the headset so that the headset sends an instruction to the headset accessory in a working state to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; a call communication module, which is used to connect the call corresponding to the call message after establishing communication based on the HFP protocol between the terminal device and the headset; send voice data corresponding to the call to the headset, and / or receive voice data from the headset.
[0018] An embodiment of the present application also discloses a data processing device, which is applied to a terminal device, wherein the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol. The device includes: an audio processing module, which is used to detect an audio playback message; in response to the audio playback message, sending an instruction to the headset accessory to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; and an audio interaction module, which is used to transmit audio data corresponding to the audio playback message after establishing communication based on the A2DP protocol between the terminal device and the headset, so as to play the audio data through the headset.
[0019] An embodiment of the present application also discloses a data processing device, which is applied to a terminal device, wherein the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol. The device includes: an audio detection module, which is used to detect an audio playback message; sending the audio playback message to the headset so that the headset sends an instruction to the headset accessory in a working state to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; and an audio communication module, which is used to transmit audio data corresponding to the audio playback message after establishing communication based on the A2DP protocol between the terminal device and the headset, so as to play the audio data through the headset.
[0020] An embodiment of the present application also discloses a data processing device, in which an earphone communicates with a first communication object based on a first protocol, and the earphone communicates with a second communication object based on the first protocol and a second protocol, and the second protocol includes a protocol supporting audio data interaction; the device includes: a protocol disconnection module, which is used to detect a signal corresponding to the first communication object, and in response to the signal, sends an instruction to the second communication object to disconnect the communication between the second communication object and the earphone based on the second protocol; a protocol communication module, which is used to establish communication based on the second protocol between the earphone and the first communication object, and interact audio data.
[0021] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method as described in one or more of the embodiments of the present application.
[0022] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in one or more of the embodiments of the present application.
[0023] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method as described in one or more of the embodiments of the present application.
[0024] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in one or more of the embodiments of the present application.
[0025] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method as described in one or more of the embodiments of the present application.
[0026] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in one or more of the embodiments of the present application.
[0027] An embodiment of the present application further discloses an electronic device, comprising: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method described in the embodiment of the present application.
[0028] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in the embodiments of the present application.
[0029] An embodiment of the present application further discloses an electronic device, comprising: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method described in the embodiment of the present application.
[0030] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in the embodiments of the present application.
[0031] An embodiment of the present application further discloses an electronic device, comprising: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method described in the embodiment of the present application.
[0032] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in the embodiments of the present application.
[0033] An embodiment of the present application further discloses an electronic device, comprising: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method described in the embodiment of the present application.
[0034] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in the embodiments of the present application.
[0035] An embodiment of the present application further discloses an electronic device, comprising: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the data processing method described in the embodiment of the present application.
[0036] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the data processing method as described in the embodiments of the present application.
[0037] Compared with the prior art, the embodiments of the present application have the following advantages:
[0038] In an embodiment of the present application, the headset is connected to a first communication object and a second communication object, the connection state of the headset and the first communication object is a dormant state, and the connection state of the headset and the second communication object is a working state, a signal corresponding to the first communication object is detected, and in response to the signal, an instruction is sent to the second communication object to switch the connection state of the second communication object and the headset to a dormant state, and to switch the connection state of the first communication object and the headset to a working state for communication interaction, so that the headset can support interactive communication of multiple communication objects, and can automatically switch between different communication objects connected to the headset, and the user can use the headset to conveniently perform required processing through different communication objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1A is a schematic diagram of an example of earphone connection according to an embodiment of the present application;
[0040] Figure 1B is a schematic diagram of another example of earphone connection according to an embodiment of the present application;
[0041] Figure 2 is a flowchart of steps of an embodiment of a data processing method of the present application;
[0042] Figure 3 is an interactive schematic diagram of an embodiment of a data processing method of the present application;
[0043] Figure 4 is an interactive schematic diagram of another data processing method embodiment of the present application;
[0044] Figure 5 is an interactive schematic diagram of another data processing method embodiment of the present application;
[0045] Figure 6 is a structural block diagram of an embodiment of a data processing device of the present application;
[0046] Figure 7is a structural block diagram of an optional embodiment of a data processing device of the present application;
[0047] Figure 8 is a structural block diagram of an embodiment of a data processing device applied to headphones of the present application;
[0048] Fig. 9 is a structural block diagram of an embodiment of a data processing device applied to earphone accessories of the present application;
[0049] Fig.10 is a structural block diagram of an embodiment of a data processing device applied to a terminal device of the present application;
[0050] Fig.11 is a structural block diagram of another embodiment of a data processing device applied to a terminal device of the present application;
[0051] Fig.12 is a structural block diagram of another embodiment of a data processing device applied to a terminal device of the present application;
[0052] Fig.13 is a structural block diagram of another embodiment of a data processing device applied to a terminal device of the present application;
[0053] Fig.14 is a structural block diagram of another data processing device embodiment of the present application;
[0054] Fig.15 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0056] In the embodiment of the present application, the headset includes a Bluetooth headset, or other headsets capable of wireless communication, such as a headset based on near field communication (NFC) technology. A Bluetooth headset is a headset that uses Bluetooth communication technology for communication connection. Bluetooth is a wireless technology standard that can realize short-distance data exchange. The Bluetooth headset and the communication object can be connected via Bluetooth technology, and then communicate with the communication object. Among them, when the headset and the communication object communicate based on Bluetooth technology, the headset and the communication object can maintain communication based on a first protocol, and the first protocol is a protocol that supports communication between the headset and the communication object via Bluetooth, such as Bluetooth Low Energy (BLE) protocol. Audio data can also be transmitted between the headset and the communication object, so the headset and the communication object can also communicate based on a second protocol, and the second protocol includes a protocol that supports audio data communication, such as Bluetooth audio transmission model protocol (Advanced Audio Distribution Profile, A2DP), Bluetooth hands-free protocol (Hands-free Profile, HFP), etc.
[0057] Among them, the BLE protocol is a personal area network technology designed and sold by the Bluetooth Technology Alliance. Compared with classic Bluetooth, low-power Bluetooth aims to significantly reduce power consumption and cost while maintaining the same communication range; the A2DP protocol is a protocol that defines the transmission of high-quality audio information such as mono or stereo on an asynchronous connectionless (ACL) channel, which can support the transmission of stereo audio, such as supporting Bluetooth stereo headphones to play music; the HFP protocol allows Bluetooth devices to control mobile terminal calls, such as answering, hanging up, rejecting, voice dialing and other call operations, and can provide Bluetooth headphones with a high-fidelity call mode.
[0058] When the headset communicates with the communication object through the first protocol and the second protocol, the connection state between the headset and the communication object is a working state; and when the headset and the communication object only communicate through the first protocol, the connection state between the headset and the communication object is a dormant state. Accordingly, by disconnecting / connecting the communication between the headset and the communication object based on the second protocol, it is possible to switch between the dormant state and the communication object.
[0059] In an embodiment of the present application, the headset can be connected to two or more communication objects wirelessly, and the headset can switch communication between more than one communication objects connected, and each communication object can also preempt communication, which is convenient for users. Among them, the communication object refers to the object connected and communicating with the headset, which may include various terminal devices such as mobile phones, tablet computers, laptops, televisions, etc., and may also include headset accessories such as headset boxes, charging boxes, and headset charging boxes, and may also include devices such as smart speakers. In an embodiment of the present application, the headset also includes an audio input / output unit, etc. Among them, the first communication object and the second communication object connected to the headset may be the same type of communication object, or different types of communication objects, such as both are mobile phones, or one communication object is a mobile phone, and the other communication object is a headset accessory, a smart speaker, a tablet computer, etc., so as to facilitate communication with multiple communication objects through the headset, and also facilitate users to use multiple devices through one headset, and can directly switch freely between different devices.
[0060] In an embodiment of the present application, for devices such as laptop computers and smart speakers, the headset can also be charged. After the headset is connected to a communication object with a charging function, the headset can be charged. It can be charged via wired / wireless methods, which is convenient for users to use and can improve the battery life of the headset.
[0061] A schematic diagram of an example of earphone connection in an embodiment of the present application is as follows Figure 1A and Figure 1B shown.
[0062] In this example, the headset is connected to two communication objects as an example, one of which is a terminal device, and the other is a headset accessory, such as a headset charging box. Among them, the headset 10 is connected to the first communication object 20 and the second communication object 30, and the headset can be connected to the first communication object 20 and the second communication object 30 respectively through wireless communication technologies such as Bluetooth and can communicate. Among them, the second communication object 30 is a headset accessory with a wireless communication module, such as a headset box, a headset charging box and other containers, and accessories such as headset ear hooks, frames, brackets, and conversion heads. Among them, the wireless communication module of the headset accessory includes a module that supports short-range wireless communication, such as a Bluetooth communication module, so that it can be connected to the headset through the Bluetooth communication module, and can also include a network communication module such as a wifi module and / or a mobile communication module. The mobile communication module can communicate based on mobile communication technology, such as based on the fourth generation mobile communication technology (the 4th Generation mobile communication technology, 4G), the fifth generation mobile communication technology (the 5th Generation mobile communication technology, 5G) and other mobile communication technologies. Therefore, when the earphone accessories are connected to the earphones via wireless communication technologies such as Bluetooth, they can also be connected to the Internet through the network communication module to provide users with network-related data and provide users with more convenient services.
[0063] In an optional example of the present application, the headset accessory with a wireless communication module may also include components such as a battery, a power management chip, a radio frequency antenna, and a mainboard, wherein the wireless communication module may realize its wireless communication function based on the support of modules such as a Bluetooth module, a mobile communication module (such as a 4G chip, a 5G chip, etc.), and a wifi module. For the mobile communication module, it may be combined with a Subscriber Identification Module (SIM) card, such as a 4G card, a 5G card, etc., and then realize the Internet access capability based on the operator's mobile communication Internet access function, providing users with network services such as query and audio playback.
[0064] In the embodiments of the present application, headphone accessories such as headphone boxes, headphone charging boxes, etc. may also be configured with display units, such as display screens, touch display screens, etc., so as to facilitate users to display various required information when querying through the headphone accessories and using the headphone accessories to communicate, such as displaying query results such as weather conditions through the display unit, and when playing music through the headphone box connected to the Internet, lyrics, MV and other content can be displayed through the display unit of the headphone box, so as to facilitate users to use the headphone accessories.
[0065] In some other embodiments, the headset itself may be configured with a network communication module such as a wifi module and / or a mobile communication module. For example, a headset with a network communication module can be used as a communication object to query network information and perform functions related to audio input and output, such as querying the weather and routes, and playing audio such as music.
[0066] In one example, if Figure 1A As shown, the earphone communicates with the earphone charging box with a wireless communication module through the BLE protocol, that is, the connection state of the earphone and the earphone charging box is a dormant state, and the earphone communicates with the mobile phone through the BLE protocol and the A2DP protocol, that is, the connection state of the earphone and the mobile phone is a working state. If the earphone and the mobile phone communicate based on the A2DP protocol and transmit music, audio of the video played on the mobile phone, etc., the user says "search today's weather", etc., the audio input unit such as the microphone of the earphone can receive voice data and recognize the received voice data, and determine it as a signal between the earphone and the earphone accessory according to the recognition result, such as the above-mentioned "search today's weather" can be recognized as a signal such as query information for the earphone accessory to search for weather, and in response to the signal, the instruction of switching state can be determined, so as to send an instruction to the mobile phone, and based on the instruction, the communication between the earphone and the mobile phone based on the A2DP protocol is disconnected, so that the connection state of the mobile phone and the earphone is switched to a dormant state, and the earphone and the earphone charging box establish communication based on the A2DP protocol, so that the connection state of the earphone and the earphone charging box is switched to a working state. Then the earphones and the earphone charging box communicate based on the A2DP protocol, wherein the voice data of the identified query message can be sent to the earphone charging box through the A2DP protocol, and the earphone charging box can perform a query operation based on the query message through the built-in wireless communication module, and send a weather query message to the server, which can carry parameters such as positioning data. After the server queries the corresponding weather information, it can generate a query response message and return it to the earphone charging box. After receiving the query response message, the earphone charging box can send the audio data of the query response message to the earphone through the A2DP protocol, and the earphone outputs the audio data of the query response message.
[0067] In another example, Figure 1BAs shown, the earphone communicates with the earphone charging box with a wireless communication module through the BLE protocol and the A2DP protocol, that is, the connection state between the earphone and the earphone charging box is the working state, and the earphone communicates with the mobile phone through the BLE protocol, that is, the connection state between the earphone and the mobile phone is the dormant state. For example, the earphone is connected to the earphone charging box and outputs music and other audio based on the A2DP protocol communication. In this case, if the mobile phone receives a call message such as an incoming call / outgoing call, in response to the communication message, an instruction to switch the state can be determined, so as to send an instruction to the earphone charging box. In one example, the earphone can send an instruction to the earphone charging box to switch the connection state. In other examples, the mobile phone can also send an instruction to the earphone charging box to switch the connection state. Based on the instruction, the communication between the earphone charging box and the earphone based on the A2DP protocol is disconnected, so that the connection state is switched from the working state to the dormant state, and the communication between the mobile phone and the earphone based on the HFP protocol is established, so that the connection state is switched from the dormant state to the working state. Then the headset communicates with the mobile phone based on the HFP protocol. The headset can control the mobile phone to connect the call based on the HFP protocol, and output the voice data sent by the mobile phone through the HFP protocol headset. The headset can also send voice data to the mobile phone, and the mobile phone transmits the corresponding voice data to the communication peer.
[0068] Based on the above headset connection example, the embodiment of the present application also provides a data processing method, which enables the headset to switch between connected communication objects, so that each communication object can communicate with the headset. Take the example of the headset connecting to two communication objects at the same time, where the communication objects include a first communication object and a second communication object.
[0069] Reference Figure 2 , showing a step flow chart of an embodiment of a data processing method of the present application.
[0070] Step 202: The headset establishes connections with two communication partners respectively, and determines the connection status corresponding to each communication respectively.
[0071] In an embodiment of the present application, the headset and the communication object can be connected via Bluetooth or other means, wherein the connection state of the communication object and the headset may include a working state and a dormant state. For example, if the headset communicates with the first communication object via the first protocol, the connection state of the two is a dormant state, and the headset communicates with the second communication object via the first protocol and the second protocol, then the connection state of the two is a working state. The working state refers to a state in which audio data communication is in progress between the headset and the communication object, and the dormant state refers to a state in which the headset and the communication object are connected but no audio data communication is occurring. Among them, the headset can determine the connection state with each communication object, and the communication object can also know the connection state between itself and the headset. In some examples, some communication objects can also know the connection state of the headset with other communication objects, such as terminal devices such as mobile phones can know the connection state of the headset with communication objects such as headset accessories and other terminal devices.
[0072] As in the above example, the communication objects connected to the headset include a terminal device and a headset accessory with a wireless communication module, etc. In one example, the headset and the terminal device communicate through a first protocol (such as a BLE protocol) and a second protocol (such as an A2DP protocol or an HFP protocol), and the connection state of the two may be a working state. Correspondingly, the headset and the headset accessory with a wireless communication module communicate through the first protocol (such as a BLE protocol), and the connection state of the two is a sleep state; in another example, the headset and the headset accessory with a wireless communication module communicate through a first protocol (such as a BLE protocol) and a second protocol (such as an A2DP protocol), and the connection state of the two is a working state. Correspondingly, the headset and the terminal device communicate through the first protocol (such as a BLE protocol), and the connection state of the two is a sleep state.
[0073] In an embodiment of the present application, the headset can determine object information such as the object identifier of the connected communication object, thereby being able to determine each connected communication object. By interacting with each communication object, the communication object that performs audio data interaction can be determined, that is, the second communication object whose connection status is the working status, while the other connected communication objects are the first communication objects whose connection status is the dormant status.
[0074] In some other examples, an application corresponding to the headset can be installed on the communication object of the headset, such as a terminal device, so that object information such as the object identifier of the communication object to which the headset is connected can be determined through this application, and a second communication object that is performing data interaction with the headset and a first communication object whose connection status with the headset is in a dormant state can be determined.
[0075] Step 204: Detect a signal corresponding to the first communication object, and in response to the signal, send an instruction to the second communication object to switch the connection state between the second communication object and the headset to a dormant state.
[0076] During the interaction between the headset and the second communication object, if a signal from the first communication object is received, the first communication object may perform communication preemption to process the signal in a timely manner. In response to the signal, an instruction may be determined, and the instruction is used to switch the connection state. For example, the instruction is used to instruct the communication object to suspend communication, and the instruction may be sent to the second communication object, so that the communication between the headset and the second communication object based on the second protocol is suspended and disconnected according to the instruction, thereby switching the connection state between the headset and the second communication object from the working state to the dormant state.
[0077] In the embodiment of the present application, the signal of the first communication object is a signal corresponding to the headset, such as a message that needs to be processed by the headset, or a message, instruction, or other signal obtained by processing the headset. In one example, the instruction may come from the first communication object, and the signal needs to be processed by the headset, such as a call or other message that requires the headset to input / output audio; in another example, the signal may be received, identified, processed, etc. by the headset, and the signal is determined to be a signal that needs to be processed by the first communication object, such as a message or instruction for Internet query, and the query result of the signal needs to be played by the headset, etc.
[0078] In an optional embodiment, voice data is received and the voice data is recognized; if the recognition result includes a setting word, a signal of the first communication object is generated based on the recognition result and the setting word. The headset or the communication object with the application installed can receive the voice data and recognize the voice data to obtain a recognition result, and then analyze the recognition result to determine the content of the user's voice, such as the user singing along with the music, or the user indicating certain content, etc. If a setting word is recognized from the recognition result, the setting word is used to instruct the communication object to perform a setting operation, such as setting the communication object to the first communication object, and then a signal of the first communication object can be generated based on the recognition result and the setting word. Among them, the operation to be performed can also be determined based on the setting word, such as a query operation, and then the corresponding keyword can be determined based on the recognition result, and a corresponding query message can be generated based on the keyword and the recognized query operation.
[0079] Based on the above example, the user can instruct the headset to switch through voice, such as speaking a setting word or other scenarios in which the headset recognizes that the communication partner needs to be switched. Figure 1AIn the example, the headset communicates with the mobile phone based on the A2DP protocol and transmits music, audio of the video played on the mobile phone, etc. The user says "search today's weather" to disconnect the communication with the mobile phone based on the A2DP protocol, and the headset communicates with the headset charging box based on the A2DP protocol to perform a weather search operation. In some other examples, the user can also directly indicate the communication object to be switched by voice. For example, if the mobile phone is the first communication object, the user says "switch to the mobile phone", the connection with the second communication object such as the headset box based on the second protocol can be disconnected, and the headset and the mobile phone establish communication based on the second protocol. After that, the headset can communicate with the mobile phone to transmit audio data, such as interacting with the mobile phone based on the A2DP protocol and playing music through the mobile phone, and interacting with the mobile phone based on the HFP protocol and making calls through the mobile phone. Among them, a name can also be set for each communication object, so that the user can identify the communication object to be switched when actively switching the communication object.
[0080] Step 206: Switch the connection state between the first communication object and the headset to a working state to perform communication interaction.
[0081] After receiving the signal, the first communication object wants to seize the communication of the second communication object. In this case, the communication between the headset and the first communication object based on the second protocol can be established, and the connection state between the headset and the first communication object is switched from the dormant state to the working state. Then the first communication object can perform audio communication with the headset and perform the operation corresponding to the signal. For example, the query operation corresponding to the query message is performed, and the incoming call corresponding to the signal is answered, music is played, etc.
[0082] In an optional embodiment, the signal includes a query message; the step of performing communication interaction includes: the headset sends the query message to the first communication object so that the first communication object performs a query operation according to the query message and determines a corresponding query response message; receives the query response message, and plays the query response message through the headset. For a query message that requires the first communication object to perform a query, the query message can be sent to the first communication object based on the second protocol, such as the headset sends the query message obtained by voice processing to the headset accessories, etc., and then the first communication object can generate a query request based on the query message, the query request includes keywords, and send the query request to the server for query, and then receive the query response message returned by the server, and then send the query response message to the headset based on the second protocol, and the headset can play the query response message.
[0083] In one example of the present application, a headset accessory such as a headset box with a wireless communication module has a network communication module, and the network communication function of the network communication module can realize the service access of Internet content. Among them, the user can speak the required Internet service content, and the audio input unit such as the microphone of the headset can receive the user's voice data, and then identify and analyze the voice data to determine that it is to be queried through the headset accessory, and then generate a query message to send to the headset accessory. The headset accessory can send a query request to the communication object such as the server on the other end of the Internet based on the connection to the Internet of the network communication module, so as to search for the corresponding query response message in the Internet communication object, and then return it to the headset accessory. The headset accessory can send the query response message to the headset based on the A2DP protocol, and the headset can play the response message to the user through the audio output unit, so as to facilitate the user to quickly obtain the required message by voice, such as querying the weather, time, etc. Therefore, in this process, if the headset accessory is the first communication object, it can seize the communication of the second communication object, and then quickly query the message required by the user to provide services for the user.
[0084] In another optional embodiment, the signal includes a call message, and the step of performing communication interaction includes: connecting the call of the first communication object; outputting the voice data sent by the first communication object through the headset, and / or sending the received voice data to the first communication object. The first communication object can be a communication object with a SIM card, such as a mobile phone or a tablet computer. Such communication objects can receive call messages such as voice / video from a mobile phone. In other examples, communication objects such as terminal devices installed with various instant messaging applications can also receive network video / voice call messages. For the first communication object that receives the call message, the communication between the second communication object and the headset can be preempted. Thereby, communication based on the second protocol is established between the headset and the first communication object, and the connection state between the headset and the first communication object can be switched from a dormant state to a connected state, and then the communication object and the headset can communicate based on the second protocol. Among them, the call corresponding to the call message of the first communication object can be connected, the voice data of the call partner can be received by the first communication object, and then sent to the headset through the second protocol, the headset outputs the voice data through the audio output unit, the voice data of the user at the communication end can be received by the audio input unit of the headset, and then sent to the first communication object through the second protocol, and then sent to the communication partner by the first communication object.
[0085] In an optional embodiment of the present application, it also includes: after the communication interaction corresponding to the message of the first communication object is completed, the communication between the first communication object and the headset based on the second protocol is disconnected, so that the connection state of the two is switched from the working state to the dormant state, and the communication between the second communication object and the headset based on the second protocol is established, so that the connection state of the two is switched from the dormant state to the working state, and the second communication object continues to communicate and interact with the headset. In the embodiment of the present application, based on the message of the first communication object, the first communication object preempts the communication interaction between the headset and the second communication object, and then after the first communication object and the headset complete the communication interaction corresponding to the message, such as the query message corresponding to the query response message is played, the call message corresponds to the call end, etc., the communication based on the second protocol can be re-established and automatically switched back to the original state, wherein the service of the first communication object is completed, the first communication object can be switched from the working state to the previous dormant state, and the second communication object can be switched from the dormant state to the working state, so that the second communication object continues to communicate and interact with the headset, and continues the communication before being preempted, such as listening to music before, then it can be based on listening to music.
[0086] In summary, the headset is connected to a first communication object and a second communication object, the connection state of the headset and the first communication object is a sleep state, and the connection state of the headset and the second communication object is a working state. A signal corresponding to the first communication object is detected, and in response to the signal, an instruction is sent to the second communication object to switch the connection state of the second communication object and the headset to a sleep state, and to switch the connection state of the first communication object and the headset to a working state for communication interaction, so that the headset can support interactive communication of multiple communication objects, and can automatically switch between different communication objects connected to the headset, and the user can use the headset to conveniently perform required processing through different communication objects.
[0087] In an optional embodiment of the present application, taking the example of a headset connected to a terminal device and a headset accessory with a wireless communication module, the connection state of the headset and the first communication object is a dormant state, and the connection state of the headset and the second communication object is a working state, then it is assumed that the terminal device is the second communication object, the headset and the terminal device communicate based on the BLE protocol and the A2DP protocol, the headset accessory is the first communication object, the headset and the headset accessory with a wireless communication module communicate based on the BLE protocol, and the headset accessory can also provide users with Internet-related information query services based on the network communication module. For example, the user's headset is connected to a mobile phone and a headset box with a wireless communication module, and the headset box also has functions such as charging the headset. At this time, the user is using the headset to listen to the music played on the mobile phone.
[0088] Reference Figure 3, showing an interactive schematic diagram of an embodiment of a data processing method of the present application.
[0089] Step 302: The earphone receives voice data.
[0090] Step 304: The headset recognizes a signal corresponding to the headset accessory based on the voice data.
[0091] Among them, the audio input unit of the headset can receive voice data and recognize the voice data; if the recognition result includes a setting word, a signal of the headset accessory is generated based on the recognition result and the setting word. For example, in the process of listening to music, the user can sing along with the music. At this time, the headset recognition result for the voice data does not include the setting word, so the headset box will not be woken up. If the user says the name A of the headset box with the setting word, such as "A, how is the weather today", the recognized A can be determined as a setting word, and the headset box needs to be queried. The keyword "weather" can also be determined from the recognition result, so that a weather query message can be generated.
[0092] Step 306: Send an instruction to the terminal device in response to the signal.
[0093] Step 308: The connection state between the headset and the terminal device is switched from the working state to the dormant state. Based on the instruction, the communication between the headset and the terminal device based on the A2DP protocol is disconnected.
[0094] Step 310: The connection state between the headset and the headset accessory is switched from the dormant state to the working state, and communication based on the A2DP protocol is established between the headset accessory and the headset.
[0095] Step 312: The headset sends the query message to the headset accessory. The headset can send the audio of the query message, such as received voice data, to the headset accessory based on the A2DP protocol.
[0096] Step 314: the headset accessory sends a query response message to the server, and receives a query response message returned by the server.
[0097] As in the above example, the earphone box receives a weather query message and sends it to the server. The server can determine the location based on the physical address of the earphone box and query the weather at the corresponding location, or carry location information in the query message, or return a location query message when the location cannot be determined, so that the earphone can play a voice prompt such as "Which weather do you want to query" to obtain the location. The earphone box can obtain the query response message such as the weather conditions returned by the server, and then send the query response message to the earphone.
[0098] Step 316: The headphone accessory sends a query response message to the headphone, wherein the headphone accessory can send the audio of the query response message to the headphone based on the A2DP protocol.
[0099] Step 318: The headset plays the voice corresponding to the query response message.
[0100] The query response message may be voice data, which can be played, or may be a non-voice message such as text, which can be converted into voice data through analysis and played.
[0101] Step 320: After the query response message is played, the headset disconnects the communication with the headset accessory based on the A2DP protocol, so that the connection state between the two is switched to a dormant state.
[0102] Step 322, establish communication between the headset and the terminal device based on the A2DP protocol, so that the connection state of the two is switched to a working state, so that the mobile communication object continues to communicate and interact with the headset, such as continuing to play music.
[0103] Therefore, the communication object in dormant state can be awakened based on voice, and the communication of the headset can be preempted, so that the communication object can execute the required query service and play the corresponding results through the headset, and then switch back to the previous communication. The user no longer needs to manually switch the communication object, and the operation is simpler, more convenient and more efficient.
[0104] In another optional embodiment of the present application, taking the earphone connected to the terminal device and the earphone accessory with a wireless communication module as an example, assuming that the earphone accessory is the second communication object, the earphone and the earphone accessory communicate based on the BLE protocol and the A2DP protocol, and the terminal device is the first communication object, then the earphone and the terminal device communicate based on the BLE protocol, and the earphone accessory can also provide users with Internet-related information query services based on the network communication module, and the terminal device can make voice and video calls, etc. For example, the user's earphone is connected to a mobile phone and an earphone box with a wireless communication module, and the earphone box also has the function of charging the earphone. At this time, the user is using the earphone to listen to music, crosstalk, etc. played in the earphone box.
[0105] Reference Figure 4 , shows an interactive schematic diagram of another data processing method embodiment of the present application.
[0106] Step 402: The terminal device receives a signal, such as a call message or an audio playback message. In this case, the call message received by the terminal device may be an audio / video call message of a fixed telephone or a mobile phone, or an audio / video call message of an instant messaging application in a mobile phone; the audio playback message may be a message for playing music or video, etc.
[0107] Step 404: In response to the signal, the terminal device sends an instruction to the headphone accessory.
[0108] Step 406, disconnecting the communication between the headphone accessory and the headphone based on the A2DP protocol, so that the connection state between the two is switched to a dormant state, and suspending the communication interaction of audio data with the headphone.
[0109] Step 408, establish communication between the terminal device and the headset based on the second protocol, so that the connection status of the two is switched to the working state. For call messages, such as audio / video call messages of fixed phones and mobile phones, communication based on the HFP protocol can be established between the terminal device and the headset; for audio playback messages, communication based on the A2DP protocol can be established between the terminal device and the headset; for audio / video call messages of instant messaging applications, communication based on the HFP or A2DP protocol can be established between the terminal device and the headset, so that audio data can be transmitted between the headset and the terminal device, such as the prompt tone corresponding to the call message can be played through the headset.
[0110] Step 410: audio data is transmitted between the terminal device and the headset. For example, the call corresponding to the call message is connected; the voice data sent by the terminal device is output through the headset, and / or the received voice data is sent to the terminal device, so that the user can answer the call and make the call through the headset. For another example, the audio data corresponding to the audio play message is transmitted, so that the audio data is played through the headset, such as playing music.
[0111] Step 412: After the call is over, the communication between the headset and the terminal device based on the second protocol is disconnected, and the connection state between the two is switched to a dormant state.
[0112] Step 414, re-establishing the communication between the earphone and the earphone accessory based on the A2DP protocol, so that the connection status of the two is switched back to the working state, so that the earphone accessory can continue to communicate and interact with the earphone, such as continuing to play music, crosstalk, etc.
[0113] In summary, after a mobile phone or other communication object is connected to the headset, even if it is in sleep mode, it can still seize the headset's communication for signals such as calls that require the headset, make calls through the headset, and switch back to the previous communication after the call ends, which is convenient for users.
[0114] Wireless communication modules are provided on accessories such as earphone boxes, so that users can obtain the required services through the Internet even when they do not have or are inconvenient to use terminal devices such as mobile phones, which provides users with traversal and new types of services.
[0115] In another optional embodiment of the present application, taking the earphone connected to the terminal device and the earphone accessory with a wireless communication module as an example, assuming that the earphone accessory is the second communication object, the earphone and the earphone accessory communicate based on the BLE protocol and the A2DP protocol, and the terminal device is the first communication object, then the earphone and the terminal device communicate based on the BLE protocol, and the earphone accessory can also provide users with Internet-related information query services based on the network communication module, and the terminal device can make voice and video calls, etc. For example, the user's earphone is connected to a mobile phone and an earphone box with a wireless communication module, and the earphone box also has the function of charging the earphone. At this time, the user is using the earphone to listen to music, crosstalk, etc. played in the earphone box.
[0116] Reference Figure 5 , showing an interactive schematic diagram of yet another data processing method embodiment of the present application.
[0117] Step 502: The terminal device receives a signal, such as a call message or an audio playback message, and sends the signal to the headset. In this case, the call message received by the terminal device may be an audio / video call message of a fixed telephone or a mobile phone, or an audio / video call message of an instant messaging application in a mobile phone; the audio playback message may be a message for playing music or video, etc.
[0118] Step 504: In response to the signal, the headset sends a command to the headset accessory.
[0119] Step 506, disconnecting the communication between the headphone accessory and the headphone based on the A2DP protocol, so that the connection state between the two is switched to a dormant state, and suspending the communication interaction with the headphone.
[0120] Step 508: establish communication between the terminal device and the headset based on the second protocol, so that the connection status of the two is switched to the working state. For call messages, such as audio / video call messages of fixed phones and mobile phones, communication based on the HFP protocol can be established between the terminal device and the headset; for audio playback messages, communication based on the A2DP protocol can be established between the terminal device and the headset; for audio / video call messages of instant messaging applications, communication based on the HFP or A2DP protocol can be established between the terminal device and the headset, so that audio data can be transmitted between the headset and the terminal device, such as the prompt tone corresponding to the call message can be played through the headset.
[0121] Step 510: audio data is transmitted between the terminal device and the headset. For example, the call of the terminal device corresponding to the call message is connected; the voice data sent by the terminal device is output through the headset, and / or the received voice data is sent to the terminal device, so that the user can answer the call and make the call through the headset. For another example, the audio data corresponding to the audio play message is transmitted, so that the audio data is played through the headset, such as playing music.
[0122] Step 512: After the call is over, the communication between the headset and the terminal device based on the second protocol is disconnected, and the connection state between the two is switched to a dormant state.
[0123] Step 514, re-establishing the communication between the earphone and the earphone accessory based on the A2DP protocol, so that the connection status of the two is switched back to the working state, so that the earphone accessory can continue to communicate and interact with the earphone, such as continuing to play music, crosstalk, etc.
[0124] In summary, after a mobile phone or other communication object is connected to the headset, even if it is in sleep mode, it can still seize the headset's communication for signals such as calls that require the headset, make calls through the headset, and switch back to the previous communication after the call ends, which is convenient for users.
[0125] Wireless communication modules are provided on accessories such as earphone boxes, so that users can obtain the required services through the Internet even when they do not have or are inconvenient to use terminal devices such as mobile phones, which provides users with traversal and new types of services.
[0126] Based on the above embodiments, the present application also provides a data processing method, in which the headset communicates with a first communication object based on a first protocol, and the headset communicates with a second communication object based on a first protocol and a second protocol, and the second protocol includes a protocol that supports audio data interaction; the method includes: detecting a signal corresponding to the first communication object, and in response to the signal, sending an instruction to the second communication object to disconnect the communication between the second communication object and the headset based on the second protocol; establishing communication based on the second protocol between the headset and the first communication object, and interacting audio data.
[0127] In an optional embodiment, the audio input unit of the headset receives voice data and recognizes the voice data; if the recognition result includes a setting word, a signal of the first communication object is generated based on the recognition result and the setting word.
[0128] In an optional embodiment, the signal includes a query message; the step of conducting communication interaction includes: the headset sends the query message to the first communication object based on the second protocol, so that the first communication object performs a query operation according to the query message and determines a corresponding query response message; receives the query response message based on the second protocol, and plays the query response message through the headset.
[0129] In another optional embodiment, the signal includes a call message, and the step of conducting communication interaction includes: the headset connects the call of the first communication object based on the second protocol; and outputs the voice data sent by the first communication object through the headset, and / or sends the received voice data to the first communication object.
[0130] In some other optional embodiments, after the signal corresponding communication interaction of the first communication object is completed, the communication based on the second protocol between the first communication object and the headset is disconnected, so that the connection state between the two is switched from the working state to the sleep state, and the communication based on the second protocol between the second communication object and the headset is re-established, so that the connection state between the two is switched from the sleep state to the working state, and the audio data communication interaction with the headset continues.
[0131] In some examples, the first communication object includes an earphone accessory having a wireless communication module, the wireless communication module includes a Bluetooth communication module and a network communication module. The earphone accessory includes an earphone container, the earphone container includes an earphone charging box. The first protocol includes a Bluetooth low energy BLE protocol, and the second protocol includes a Bluetooth audio transmission model protocol A2DP.
[0132] In some other examples, the second communication object includes an earphone accessory having a wireless communication module, and the wireless communication module includes a Bluetooth communication module and a network communication module. The earphone accessory includes an earphone container, and the earphone container includes an earphone charging box. The first protocol includes the BLE protocol, and the second protocol includes the A2DP protocol or the Bluetooth hands-free protocol HFP.
[0133] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0134] On the basis of the above embodiment, this embodiment further provides a data processing device, which is applied to electronic devices such as terminal equipment, earphones, earphone accessories with wireless communication modules, etc. The earphones are connected to a first communication object and a second communication object, the connection state of the earphones and the first communication object is a dormant state, and the connection state of the earphones and the second communication object is a working state.
[0135] Reference Figure 6 , shows a structural block diagram of a data processing device embodiment of the present application, which may specifically include the following modules:
[0136] The switching sleep module 602 is used to detect a signal corresponding to the first communication object, and in response to the signal, send an instruction to the second communication object to switch the connection state between the second communication object and the headset to a sleep state.
[0137] The switching communication module 604 is used to switch the connection state between the first communication object and the headset to a working state for communication interaction.
[0138] In summary, the headset is connected to a first communication object and a second communication object, the connection state of the headset and the first communication object is a sleep state, and the connection state of the headset and the second communication object is a working state. A signal corresponding to the first communication object is detected, and in response to the signal, an instruction is sent to the second communication object to switch the connection state of the second communication object and the headset to a sleep state, and to switch the connection state of the first communication object and the headset to a working state for communication interaction, so that the headset can support interactive communication of multiple communication objects, and can automatically switch between different communication objects connected to the headset, and the user can use the headset to conveniently perform required processing through different communication objects.
[0139] Reference Figure 7 , shows a structural block diagram of an optional embodiment of a data processing device of the present application, which may specifically include the following modules:
[0140] The voice processing module 606 is used to receive voice data and recognize the voice data; if the recognition result includes a setting word, generate a signal of the first communication object according to the recognition result and the setting word.
[0141] The switching sleep module 602 is used to detect a signal corresponding to the first communication object, and in response to the signal, send an instruction to the second communication object to switch the connection state between the second communication object and the headset to a sleep state.
[0142] The switching communication module 604 is used to switch the connection state between the first communication object and the headset to a working state for communication interaction.
[0143] The working state is a state in which the headset communicates with the communication object based on a first protocol and a second protocol, the dormant state is a state in which the headset communicates with the communication object based on the first protocol, and the second protocol includes a protocol supporting audio data communication.
[0144] The switching sleep module 602 is used to detect a signal corresponding to the first communication object, and in response to the signal, send an instruction to the second communication object to disconnect the communication between the second communication object and the headset based on the second protocol.
[0145] The switching communication module 604 is used to establish communication based on the second protocol between the headset and the first communication object, and to communicate audio data.
[0146] The signal includes a query message; the switching communication module 604 is used to send the query message to the first communication object, so that the first communication object performs a query operation based on the query message and determines a corresponding query response message; receives the query response message, and plays the query response message through the headset.
[0147] The signal includes a call message, and the switching communication module 604 is used to connect the call of the first communication object; output the voice data sent by the first communication object through the earphone, and / or send the received voice data to the first communication object.
[0148] The switching communication module 604 is also used to switch the connection state between the first communication object and the headset from the working state to the dormant state after the signal corresponding to the communication interaction of the first communication object is completed, and switch the connection state between the second communication object and the headset from the dormant state to the working state, and continue to communicate and interact with the headset. Wherein, the switching communication module 604 is used to disconnect the communication between the first communication object and the headset based on the second protocol after the signal corresponding to the communication interaction of the first communication object is completed, so that the connection state of the two is switched from the working state to the dormant state, and re-establish the communication between the second communication object and the headset based on the second protocol, so that the connection state of the two is switched from the dormant state to the working state, and continue to communicate and interact with the headset for audio data.
[0149] In an optional embodiment, the first communication object includes an earphone accessory having a wireless communication module, and the wireless communication module includes a Bluetooth communication module and a network communication module. The earphone accessory includes an earphone container, and the earphone container includes an earphone charging box. The first protocol includes a Bluetooth low energy BLE protocol, and the second protocol includes a Bluetooth audio transmission model protocol A2DP.
[0150] In another optional embodiment, the second communication object includes an earphone accessory having a wireless communication module, and the wireless communication module includes a Bluetooth communication module and a network communication module. The earphone accessory includes an earphone container, and the earphone container includes an earphone charging box. The first protocol includes a BLE protocol, and the second protocol includes an A2DP protocol or a Bluetooth hands-free protocol HFP.
[0151] On the basis of the above embodiment, this embodiment further provides a data processing device, which is applied to an electronic device such as a headset. The headset communicates with a headset accessory having a wireless communication module based on the BLE protocol, and the connection state of the two is a dormant state. The headset communicates with a terminal device based on the BLE protocol and the A2DP protocol, and the connection state of the two is a working state.
[0152] Reference Figure 8 , shows a structural block diagram of an embodiment of a data processing device for headphones of the present application, which may specifically include the following modules:
[0153] The processing module 802 is used to receive voice data and identify a signal corresponding to the headphone accessory based on the voice data.
[0154] The communication module 804 is used to respond to the signal and send an instruction to the terminal device to disconnect the communication between the headset and the terminal device based on the A2DP protocol, so that the connection state is switched to a sleep state; establish communication based on the A2DP protocol between the headset accessory and the headset, so that the connection state is switched to a working state, and communicate and interact audio data with the headset accessory.
[0155] Wherein, the earphone accessories include an earphone container, and the earphone container includes an earphone charging box.
[0156] The signal includes a query message; the communication module 804 is used for the headset to send the query message to the headset accessory, so that the headset accessory performs a query operation based on the query message through the built-in wireless communication module; receives a query response message corresponding to the query operation, and plays the query response message through the headset.
[0157] The wireless communication module includes a Bluetooth communication module and a network communication module. The earphone accessory is connected to the earphone via the Bluetooth communication module, and the earphone accessory performs a query operation via the network communication module.
[0158] On the basis of the above embodiments, this embodiment further provides a data processing device, which is applied to an earphone accessory with a wireless communication module. The earphone accessory communicates with the earphone based on the BLE protocol, and the connection state between the two is a sleep state.
[0159] Reference Fig. 9 , shows a structural block diagram of an embodiment of a data processing device for earphone accessories of the present application, which may specifically include the following modules:
[0160] The receiving module 902 is used to receive a query message from the headset after establishing communication between the headset accessory and the headset based on the A2DP protocol.
[0161] The query module 904 is used to perform a query operation corresponding to the query message through the wireless communication module to determine a corresponding query response message.
[0162] The feedback module 906 is configured to send the query response message to the headset.
[0163] The wireless communication module includes a Bluetooth communication module and a network communication module, the earphone accessory is connected to the earphone via the Bluetooth communication module, and the earphone accessory performs a query operation via the network communication module. The earphone accessory includes an earphone container, and the earphone container includes an earphone charging box.
[0164] Based on the above embodiments, this embodiment also provides a data processing device, which is applied to a terminal device. The terminal device communicates with the headset based on the BLE protocol, and the connection state between the two is a sleep state. The headset and the headset accessory communicate based on the BLE protocol and the A2DP protocol, and the connection state between the two is a working state.
[0165] Reference Fig.10 , shows a structural block diagram of an embodiment of a data processing device applied to a terminal device of the present application, which may specifically include the following modules:
[0166] The call processing module 1002 is used to detect a call message; in response to the call message, send an instruction to the earphone accessory to disconnect the communication between the earphone accessory and the earphone based on the A2DP protocol, so that the connection state of the two is switched to a dormant state.
[0167] The call module 1004 is used to connect the call corresponding to the call message after establishing communication based on the HFP protocol between the terminal device and the headset (the connection status of the two is switched to the working state); send the voice data corresponding to the call to the headset, and / or receive the voice data of the headset.
[0168] Based on the above embodiments, this embodiment also provides a data processing device, which is applied to a terminal device. The terminal device communicates with the headset based on the BLE protocol, and the connection state between the two is a sleep state. The headset and the headset accessory communicate based on the BLE protocol and the A2DP protocol, and the connection state between the two is a working state.
[0169] Reference Fig.11 , shows a structural block diagram of another data processing device embodiment of the present application applied to a terminal device, which may specifically include the following modules:
[0170] The call detection module 1102 is used to detect a call message; send the call message to the headset so that the headset sends an instruction to the headset accessory in the working state, disconnects the communication between the headset accessory and the headset based on the A2DP protocol, and switches the connection state between the two to a dormant state.
[0171] The call communication module 1104 is used to establish a communication based on the HFP protocol between the terminal device and the headset (the connection status of the two is switched to the working state), connect the call corresponding to the call message; send the voice data corresponding to the call to the headset, and / or receive the voice data of the headset.
[0172] Based on the above embodiments, this embodiment also provides a data processing device, which is applied to a terminal device. The terminal device communicates with the headset based on the BLE protocol, and the connection state between the two is a sleep state. The headset and the headset accessory communicate based on the BLE protocol and the A2DP protocol, and the connection state between the two is a working state.
[0173] Reference Fig.12 , shows a structural block diagram of another embodiment of a data processing device applied to a terminal device of the present application, which may specifically include the following modules:
[0174] The audio processing module 1202 is used to detect an audio play message; in response to the audio play message, send an instruction to the headphone accessory to disconnect the communication between the headphone accessory and the headphone based on the A2DP protocol, so that the connection state of the two is switched to a sleep state.
[0175] The audio interaction module 1204 is used to transmit the audio data corresponding to the audio playback message after establishing communication based on the A2DP protocol between the terminal device and the headset (the connection status of the two is switched to the working state), so as to play the audio data through the headset.
[0176] Based on the above embodiments, this embodiment also provides a data processing device, which is applied to a terminal device. The terminal device communicates with the headset based on the BLE protocol, and the connection state between the two is a sleep state. The headset and the headset accessory communicate based on the BLE protocol and the A2DP protocol, and the connection state between the two is a working state.
[0177] Reference Fig.13, shows a structural block diagram of another embodiment of a data processing device applied to a terminal device of the present application, which may specifically include the following modules:
[0178] The audio detection module 1302 is used to detect an audio playback message; send the audio playback message to the headset so that the headset sends instructions to the headset accessory in a working state, disconnects the communication between the headset accessory and the headset based on the A2DP protocol, and switches the connection state between the two to a sleep state.
[0179] The audio communication module 1304 is used to transmit the audio data corresponding to the audio playback message after establishing communication based on the A2DP protocol between the terminal device and the headset (the connection status of the two is switched to the working state), so as to play the audio data through the headset.
[0180] On the basis of the above embodiment, this embodiment further provides a data processing device, which is applied to electronic devices such as terminal equipment, earphones, earphone accessories with wireless communication modules, etc. Among them, the earphone is connected to a first communication object and a second communication object, and the earphone communicates with the first communication object based on a first protocol, and the connection state of the two is a dormant state, and the earphone communicates with the second communication object based on the first protocol and the second protocol, and the connection state of the two is a working state, and the second protocol includes a protocol that supports audio data interaction.
[0181] Reference Fig.14 , shows a structural block diagram of another data processing device embodiment of the present application, which may specifically include the following modules:
[0182] The protocol disconnection module 1402 is used to detect a signal corresponding to the first communication object, and in response to the signal, send an instruction to the second communication object to disconnect the communication between the second communication object and the headset based on the second protocol.
[0183] The protocol communication module 1404 is used to establish communication based on the second protocol between the headset and the first communication object, and to interact with audio data.
[0184] The embodiment of the present application can wake up the first communication object based on voice, seize the communication of the headset, so that the communication object executes the required query service and plays the corresponding results through the headset, and then switches back to the previous communication. The user no longer needs to manually switch the communication object, and the operation is simpler, more convenient and more efficient.
[0185] After a mobile phone or other communication object is connected to the headset, even if it is in sleep mode, it can still preempt the headset's communication for calls and other messages that require the headset, and make calls through the headset. After the call ends, it can switch back to the previous communication, which is convenient for users.
[0186] Wireless communication modules are provided on accessories such as earphone boxes, so that users can obtain the required services through the Internet even when they do not have or are inconvenient to use terminal devices such as mobile phones, which provides users with traversal and new types of services.
[0187] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0188] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes a device corresponding to the communication object, such as a terminal device, an earphone accessory, a smart speaker, a television, and other types of devices.
[0189] The embodiments of the present disclosure may be implemented as an apparatus that uses any appropriate hardware, firmware, software, or any combination thereof to perform the desired configuration, and the apparatus may include devices corresponding to the communication object, such as terminal devices, headphone accessories, smart speakers, televisions, and other types of electronic devices. Fig.15 An exemplary apparatus 1500 that can be used to implement various embodiments described in this application is schematically illustrated.
[0190] For one embodiment, Fig.15 An exemplary apparatus 1500 is shown having one or more processors 1502, a control module (chip set) 1504 coupled to at least one of the (one or more) processors 1502, a memory 1506 coupled to the control module 1504, a non-volatile memory (NVM) / storage device 1508 coupled to the control module 1504, one or more input / output devices 1510 coupled to the control module 1504, and a network interface 1512 coupled to the control module 1504.
[0191] The processor 1502 may include one or more single-core or multi-core processors, and the processor 1502 may include any combination of general-purpose processors or dedicated processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 1500 can be used as a device corresponding to the communication object described in the embodiments of the present application, such as various types of devices such as terminal devices, headphone accessories, smart speakers, and televisions.
[0192] In some embodiments, the apparatus 1500 may include one or more computer-readable media (e.g., memory 1506 or NVM / storage device 1508) having instructions 1514 and one or more processors 1502 combined with the one or more computer-readable media and configured to execute the instructions 1514 to implement a module to perform the actions described in the present disclosure.
[0193] For one embodiment, the control module 1504 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 1502 and / or any suitable device or component in communication with the control module 1504 .
[0194] The control module 1504 may include a memory controller module to provide an interface to the memory 1506. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0195] The memory 1506 may be used, for example, to load and store data and / or instructions 1514 for the device 1500. For one embodiment, the memory 1506 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 1506 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0196] For one embodiment, control module 1504 may include one or more input / output controllers to provide an interface to NVM / storage device 1508 and input / output device(s) 1510 .
[0197] For example, NVM / storage 1508 may be used to store data and / or instructions 1514. NVM / storage 1508 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0198] NVM / storage device 1508 may include storage resources that are physically part of the device on which apparatus 1500 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 1508 may be accessed via input / output device(s) 1510 over a network.
[0199] (One or more) input / output devices 1510 may provide an interface for the apparatus 1500 to communicate with any other appropriate device, and the input / output device 1510 may include a communication component, an audio component, a sensor component, etc. The network interface 1512 may provide an interface for the apparatus 1500 to communicate through one or more networks, and the apparatus 1500 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0200] For one embodiment, at least one of the processor(s) 1502 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 1504. For one embodiment, at least one of the processor(s) 1502 may be packaged together with the logic of one or more controllers of the control module 1504 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1502 may be integrated on the same die with the logic of one or more controllers of the control module 1504. For one embodiment, at least one of the processor(s) 1502 may be integrated on the same die with the logic of one or more controllers of the control module 1504 to form a system-on-chip (SoC).
[0201] In various embodiments, the device 1500 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.), and may also include various devices such as headphones, headphone accessories, smart speakers, and televisions. In various embodiments, the device 1500 may have more or fewer components and / or different architectures. For example, in some embodiments, the device 1500 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0202] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0203] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0204] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0205] The present application embodiment is described with reference to the flowchart and / or block diagram of the method, terminal device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0206] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0207] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0208] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0209] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0210] The data processing method and device, an electronic device and a storage medium provided by the present application are introduced in detail above. The principles and implementation methods of the present application are explained in this article using specific examples. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data processing method, characterized in that: The connection state between the headset and the first communication object is a dormant state, and the connection state between the headset and the second communication object is a working state. The method includes: The audio input unit of the headset receives voice data and recognizes the voice data; If the recognition result includes a setting word, a signal of the first communication object is generated according to the recognition result and the setting word, wherein the signal is used for communication preemption, and the communication object includes a headset accessory having a wireless communication module; detecting a signal corresponding to the first communication object, and in response to the signal, sending an instruction to the second communication object to switch the connection state between the second communication object and the headset to a dormant state; Switching the connection state between the first communication object and the headset to a working state to perform communication interaction; After the signal corresponding to the communication interaction of the first communication object is completed, the connection state between the first communication object and the headset is switched from the working state to the sleep state, and the connection state between the second communication object and the headset is switched from the sleep state to the working state, and the communication interaction with the headset continues.
2. The method according to claim 1, characterized in that The working state is a state in which the headset communicates with the communication object based on the first protocol and the second protocol, the dormant state is a state in which the headset communicates with the communication object based on the first protocol, and the second protocol includes a protocol supporting audio data communication.
3. The method according to claim 1, characterized in that The signal includes a query message; the step of performing communication interaction includes: The headset sends the query message to the first communication object, so that the first communication object performs a query operation according to the query message and determines a corresponding query response message; The query response message is received, and the query response message is played through the earphone.
4. The method according to claim 1, characterized in that: The signal includes a call message, and the step of performing communication interaction includes: Connecting the call with the first communication partner; The voice data sent by the first communication partner is output through the earphone, and / or the received voice data is sent to the first communication partner.
5. The method according to claim 2, characterized in that: Switching the connection state between the second communication object and the headset to a dormant state includes: disconnecting the communication between the second communication object and the headset based on the second protocol.
6. The method according to claim 2, characterized in that Switching the connection state between the first communication object and the headset to a working state to perform communication interaction includes: Communication based on a second protocol is established between the headset and the first communication object, and audio data is communicated.
7. The method according to claim 2, characterized in that The first communication object includes an earphone accessory having a wireless communication module, and the wireless communication module includes a Bluetooth communication module and a network communication module.
8. The method according to claim 7, characterized in that The earphone accessory comprises an earphone container, and the earphone container comprises an earphone charging box.
9. The method according to claim 8, characterized in that The first protocol includes a Bluetooth low energy BLE protocol, and the second protocol includes a Bluetooth audio transmission profile protocol A2DP.
10. The method according to any one of claims 1, 4-6, characterized in that: The second communication object includes an earphone accessory having a wireless communication module, and the wireless communication module includes a Bluetooth communication module and a network communication module.
11. The method according to claim 10, characterized in that The earphone accessory comprises an earphone container, and the earphone container comprises an earphone charging box.
12. The method according to claim 8, characterized in that The first protocol includes the BLE protocol, and the second protocol includes the A2DP protocol or the Bluetooth Hands-Free Protocol HFP.
13. A data processing method, characterized in that: Applied to an earphone, the earphone communicates with an earphone accessory having a wireless communication module based on the BLE protocol, and the earphone communicates with a terminal device based on the BLE protocol and the A2DP protocol, and the method includes: receiving voice data, and identifying a signal corresponding to the headphone accessory according to the voice data, wherein the signal is generated based on the identified setting word, and the signal is used for communication preemption; In response to the signal, sending an instruction to the terminal device to disconnect the communication between the headset and the terminal device based on the A2DP protocol; Establishing communication based on the A2DP protocol between the headphone accessory and the headphone, and performing audio data communication with the headphone accessory; After the signal corresponding to the communication interaction of the earphone accessory is completed, the communication based on the A2DP protocol between the earphone accessory and the earphone is disconnected, and the communication based on the A2DP protocol is established between the terminal device and the earphone, and the communication interaction with the terminal device continues.
14. The method according to claim 13, characterized in that The earphone accessory comprises an earphone container, and the earphone container comprises an earphone charging box.
15. The method according to claim 13, characterized in that The signal includes a query message; and the communication interaction with the earphone accessory includes: The headset sends the query message to the headset accessory, so that the headset accessory performs a query operation through a built-in wireless communication module according to the query message; A query response message corresponding to the query operation is received, and the query response message is played through the earphone.
16. The method according to claim 15, characterized in that The wireless communication module includes a Bluetooth communication module and a network communication module. The earphone accessory is connected to the earphone via the Bluetooth communication module, and the earphone accessory performs a query operation via the network communication module.
17. A data processing method, characterized in that: Applied to an earphone accessory having a wireless communication module, the earphone accessory communicates with the earphone based on the BLE protocol, and the method includes: After establishing communication between the headphone accessory and the headphone based on the A2DP protocol, receiving a query message from the headphone, the query message being used for communication preemption, the query message being generated based on a keyword and a recognized query operation, the keyword being determined by a recognition result of voice data received by the headphone, and the query operation being determined based on a setting word in the recognition result, wherein the headphone, in response to a signal corresponding to the query message, sends an instruction to a corresponding terminal device to disconnect the communication between the headphone and the terminal device based on the A2DP protocol, establish communication between the headphone accessory and the headphone based on the A2DP protocol, and communicate audio data with the headphone accessory; Execute the query operation corresponding to the query message through the wireless communication module, and determine the corresponding query response message; The query response message is sent to the headset. After the headset completes the communication interaction corresponding to the signal of the headset accessory, the headset disconnects the communication based on the A2DP protocol between the headset accessory and the headset, and establishes communication based on the A2DP protocol between the terminal device and the headset, and continues to communicate and interact with the terminal device.
18. The method according to claim 17, characterized in that The wireless communication module includes a Bluetooth communication module and a network communication module. The earphone accessory is connected to the earphone via the Bluetooth communication module, and the earphone accessory performs a query operation via the network communication module.
19. The method according to claim 18, characterized in that The earphone accessory comprises an earphone container, and the earphone container comprises an earphone charging box.
20. A data processing method, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the method includes: A call message is detected, the call message is used for communication preemption, the call message is determined based on a signal of a terminal device recognized by the headset, the signal is generated based on a recognition result and a setting word, the recognition result is obtained by recognizing voice data received by the headset, and the recognition result includes the setting word; In response to the call message, sending an instruction to the earphone accessory to disconnect the communication between the earphone accessory and the earphone based on the A2DP protocol; After establishing communication based on the HFP protocol between the terminal device and the headset, connecting the call corresponding to the call message; Sending voice data corresponding to the call to the headset, and / or receiving voice data from the headset; After the call corresponding to the call message is completed, the communication based on the A2DP protocol between the terminal device and the headset is disconnected, and the communication based on the A2DP protocol is established between the headset accessory and the headset, and communication interaction with the headset accessory continues.
21. A data processing method, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the method includes: A call message is detected, the call message is used for communication preemption, the call message is determined based on a signal of a terminal device recognized by the headset, the signal is generated based on a recognition result and a setting word, the recognition result is obtained by recognizing voice data received by the headset, and the recognition result includes the setting word; Sending the call message to the headset, so that the headset sends an instruction to the headset accessory in a working state to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; After establishing communication based on the HFP protocol between the terminal device and the headset, connecting the call corresponding to the call message; The voice data corresponding to the call is sent to the headset, and / or the voice data of the headset is received. After the call corresponding to the call message is completed, the headset disconnects the communication based on the A2DP protocol between the terminal device and the headset, and establishes communication based on the A2DP protocol between the headset accessory and the headset, and continues to communicate and interact with the headset accessory.
22. A data processing method, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the method includes: An audio play message is detected, the audio play message is used for communication preemption, the audio play message is determined based on a signal of a terminal device recognized by the headset, the signal is generated based on a recognition result and a setting word, the recognition result is obtained by recognizing voice data received by the headset, and the recognition result includes the setting word; In response to the audio play message, sending an instruction to the headphone accessory to disconnect the communication between the headphone accessory and the headphone based on the A2DP protocol; After establishing communication based on the A2DP protocol between the terminal device and the headset, transmitting audio data corresponding to the audio play message to play the audio data through the headset; After the communication corresponding to the audio playback message is completed, the communication based on the A2DP protocol between the terminal device and the headset is disconnected, and the communication based on the A2DP protocol is established between the headset accessory and the headset, and communication interaction with the headset accessory continues.
23. A data processing method, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the method includes: An audio play message is detected, the audio play message is used for communication preemption, the audio play message is determined based on a signal of a terminal device recognized by the headset, the signal is generated based on a recognition result and a setting word, the recognition result is obtained by recognizing voice data received by the headset, and the recognition result includes the setting word; Sending the audio play message to the headset, so that the headset sends an instruction to the headset accessory in a working state, and disconnects the communication between the headset accessory and the headset based on the A2DP protocol; After establishing communication based on the A2DP protocol between the terminal device and the headset, the audio data corresponding to the audio playback message is transmitted to play the audio data through the headset. After the communication corresponding to the audio playback message is completed, the headset disconnects the communication based on the A2DP protocol between the terminal device and the headset, and establishes communication based on the A2DP protocol between the headset accessory and the headset, and continues to communicate and interact with the headset accessory.
24. A data processing method, characterized in that: The headset communicates with the first communication object based on a first protocol, and the headset communicates with the second communication object based on the first protocol and the second protocol, wherein the second protocol includes a protocol supporting audio data interaction; the method includes: The audio input unit of the headset receives voice data and recognizes the voice data; If the recognition result includes a setting word, a signal of the first communication object is generated according to the recognition result and the setting word, wherein the signal is used for communication preemption, and the communication object includes a headset accessory having a wireless communication module; detecting a signal corresponding to the first communication object, and sending an instruction to the second communication object in response to the signal to disconnect the communication between the second communication object and the headset based on the second protocol; Establishing communication based on a second protocol between the headset and the first communication object, and exchanging audio data; After the signal corresponding to the communication interaction of the first communication object is completed, the connection state between the first communication object and the headset is switched from the working state to the sleep state, and the connection state between the second communication object and the headset is switched from the sleep state to the working state, and the communication interaction with the headset continues.
25. A data processing device, characterized in that: The connection state between the headset and the first communication object is a dormant state, and the connection state between the headset and the second communication object is a working state. The device includes: A switching dormancy module, which is used for the audio input unit of the headset to receive voice data and recognize the voice data; if the recognition result includes a setting word, a signal of the first communication object is generated according to the recognition result and the setting word, and the signal is used for communication preemption, and the communication object includes a headset accessory with a wireless communication module; a signal corresponding to the first communication object is detected, and in response to the signal, an instruction is sent to the second communication object to switch the connection state between the second communication object and the headset to a dormant state; after the communication interaction corresponding to the signal of the first communication object is completed, the connection state between the first communication object and the headset is switched from a working state to a dormant state, and the connection state between the second communication object and the headset is switched from a dormant state to a working state, and the communication interaction with the headset is continued; The switching communication module is used to switch the connection state between the first communication object and the headset to a working state for communication interaction.
26. A data processing device, characterized in that: Applied to earphones, the earphones communicate with an earphone accessory having a wireless communication module based on the BLE protocol, and the earphones communicate with a terminal device based on the BLE protocol and the A2DP protocol. The device comprises: A processing module, configured to receive voice data, and identify a signal corresponding to the earphone accessory according to the voice data, wherein the signal is generated based on the identified setting word, and the signal is used for communication preemption, wherein the communication object includes the earphone accessory having a wireless communication module; A communication module is used to respond to the signal and send an instruction to the terminal device to disconnect the communication based on the A2DP protocol between the headset and the terminal device; establish communication based on the A2DP protocol between the headset accessory and the headset, and communicate audio data with the headset accessory; after the signal corresponding to the communication interaction of the headset accessory is completed, disconnect the communication based on the A2DP protocol between the headset accessory and the headset, and establish communication based on the A2DP protocol between the terminal device and the headset, and continue to communicate and interact with the terminal device.
27. A data processing device, characterized in that: Applicable to an earphone accessory having a wireless communication module, the earphone accessory communicates with the earphone based on the BLE protocol, and the device includes: A receiving module, configured to receive a query message from the headset after the connection state of establishing the communication based on the A2DP protocol between the headset accessory and the headset is switched to a working state, the query message being used for communication preemption, the query message being generated based on a keyword and a recognized query operation, the keyword being determined by a recognition result of the voice data received by the headset, and the query operation being determined based on a setting word in the recognition result, wherein the headset, in response to a signal corresponding to the query message, sends an instruction to a corresponding terminal device to disconnect the communication based on the A2DP protocol between the headset and the terminal device, establish communication based on the A2DP protocol between the headset accessory and the headset, and communicate audio data with the headset accessory; A query module, used to perform a query operation corresponding to the query message through a wireless communication module, and determine a corresponding query response message; A feedback module is used to send the query response message to the headset. After the headset completes the communication interaction corresponding to the signal of the headset accessory, the headset disconnects the communication based on the A2DP protocol between the headset accessory and the headset, and establishes communication based on the A2DP protocol between the terminal device and the headset, and continues to communicate and interact with the terminal device.
28. A data processing device, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the device includes: a call processing module, configured to detect a call message, the call message being used for communication preemption, the call message being determined based on a signal of a terminal device recognized by the headset, the signal being generated based on a recognition result and a setting word, the recognition result being obtained by recognizing voice data received by the headset, the recognition result including the setting word; in response to the call message, sending an instruction to the headset accessory to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; A call module is used to connect the call corresponding to the call message after establishing communication based on the HFP protocol between the terminal device and the headset; send the voice data corresponding to the call to the headset, and / or receive the voice data of the headset; after the call corresponding to the call message is completed, disconnect the communication based on the A2DP protocol between the terminal device and the headset, and establish communication based on the A2DP protocol between the headset accessory and the headset, and continue to communicate and interact with the headset accessory.
29. A data processing device, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the device includes: A call detection module, configured to detect a call message, wherein the call message is used for communication preemption, the call message is determined based on a signal of a terminal device recognized by the headset, the signal is generated based on a recognition result and a setting word, the recognition result is obtained by recognizing voice data received by the headset, and the recognition result includes a setting word; sending the call message to the headset so that the headset sends an instruction to the headset accessory in a working state to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; A call communication module is used to connect the call corresponding to the call message after establishing communication based on the HFP protocol between the terminal device and the headset; send the voice data corresponding to the call to the headset, and / or receive the voice data of the headset, and after the call corresponding to the call message is completed, the headset disconnects the communication based on the A2DP protocol between the terminal device and the headset, and establishes communication based on the A2DP protocol between the headset accessory and the headset, and continues to communicate and interact with the headset accessory.
30. A data processing device, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the device includes: an audio processing module, configured to detect an audio play message, the audio play message being used for communication preemption, the audio play message being determined based on a signal of a terminal device recognized by the headset, the signal being generated based on a recognition result and a setting word, the recognition result being obtained by recognizing voice data received by the headset, the recognition result including the setting word; in response to the audio play message, sending an instruction to the headset accessory to disconnect the communication between the headset accessory and the headset based on the A2DP protocol; An audio interaction module is used to, after establishing communication based on the A2DP protocol between the terminal device and the headset, transmit the audio data corresponding to the audio playback message so as to play the audio data through the headset; after the communication corresponding to the audio playback message is completed, disconnect the communication based on the A2DP protocol between the terminal device and the headset, and establish communication based on the A2DP protocol between the headset accessory and the headset, and continue to communicate and interact with the headset accessory.
31. A data processing device, characterized in that: Applied to a terminal device, the terminal device communicates with a headset based on the BLE protocol, and the headset communicates with a headset accessory based on the BLE protocol and the A2DP protocol, and the device includes: An audio detection module is used to detect an audio playback message, the audio playback message is used to perform communication preemption, the audio playback message is determined based on a signal of a terminal device recognized by the headset, the signal is generated based on a recognition result and a setting word, the recognition result is obtained by recognizing voice data received by the headset, and the recognition result includes a setting word; sending the audio playback message to the headset so that the headset sends an instruction to the headset accessory in a working state, and disconnects the communication between the headset accessory and the headset based on the A2DP protocol; An audio communication module is used to transmit the audio data corresponding to the audio playback message after establishing communication based on the A2DP protocol between the terminal device and the headset, so as to play the audio data through the headset; after the communication corresponding to the audio playback message is completed, the headset disconnects the communication based on the A2DP protocol between the terminal device and the headset, and establishes communication based on the A2DP protocol between the headset accessory and the headset, and continues to communicate and interact with the headset accessory.
32. A data processing device, characterized in that: The headset communicates with the first communication object based on a first protocol, and the headset communicates with the second communication object based on the first protocol and the second protocol, wherein the second protocol includes a protocol supporting audio data interaction; the device includes: A protocol disconnection module, used for the audio input unit of the headset to receive voice data and recognize the voice data; if the recognition result includes a setting word, a signal of the first communication object is generated according to the recognition result and the setting word, the signal is used for communication preemption, and the communication object includes a headset accessory with a wireless communication module; a signal corresponding to the first communication object is detected, and in response to the signal, an instruction is sent to the second communication object to disconnect the communication between the second communication object and the headset based on the second protocol; A protocol communication module is used to establish communication based on a second protocol between the headset and the first communication object, and to interact with audio data; after the signal corresponding to the communication interaction of the first communication object is completed, the connection state between the first communication object and the headset is switched from a working state to a dormant state, and the connection state between the second communication object and the headset is switched from a dormant state to a working state, and the communication interaction with the headset continues.
33. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the data processing method as claimed in one or more of claims 1-12.
34. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to one or more of claims 1-12.
35. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the data processing method as described in one or more of claims 13-16.
36. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to one or more of claims 13-16.
37. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the data processing method as described in one or more of claims 17-19.
38. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to one or more of claims 17-19.
39. An electronic device, characterized in that: include: processor; and A memory having executable codes stored therein, which, when executed, causes the processor to execute the data processing method according to claim 20.
40. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to claim 20.
41. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the data processing method according to claim 21.
42. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to claim 21.
43. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the data processing method according to claim 22.
44. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to claim 22.
45. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the data processing method according to claim 23.
46. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to claim 23.
47. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the data processing method according to claim 24.
48. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the data processing method according to claim 24.
Citation Information
Patent Citations
Method, apparatus and system for terminal to connect Bluetooth device, and device
CN108377482A
Bluetooth earphone switching method, Bluetooth earphone and terminal
CN109890021A