CN112312368A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112312368A
CN112312368A CN201910708574.7A CN201910708574A CN112312368A CN 112312368 A CN112312368 A CN 112312368A CN 201910708574 A CN201910708574 A CN 201910708574A CN 112312368 A CN112312368 A CN 112312368A
Authority
CN
China
Prior art keywords
headset
communication
earphone
protocol
accessory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910708574.7A
Other languages
Chinese (zh)
Inventor
王欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910708574.7A priority Critical patent/CN112312368A/en
Publication of CN112312368A publication Critical patent/CN112312368A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections

Abstract

The embodiment of the application provides a data processing method, a data processing device, equipment and a storage medium, so that connection interaction between an earphone and multiple pieces of equipment is provided. The connection state of the earphone and the first communication object is a dormant state, and the connection state of the earphone and the second communication object is a working state, wherein the method comprises the following steps: detecting a signal corresponding to the first communication object, responding to the signal, and sending an instruction to the second communication object so as to switch the connection state of the second communication object and an earphone into a dormant state; and switching the connection state of the first communication object and the earphone into a working state so as to carry out communication interaction. The earphone can support interactive communication of multiple communication objects, switching between different communication objects connected with the earphone can be achieved automatically, and a user can use the earphone to conveniently execute required processing through different communication objects.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
The Bluetooth headset is a headset which is in communication connection by using a Bluetooth communication technology, and the Bluetooth headset and equipment can communicate in a wireless mode, so that the Bluetooth headset can be connected with the equipment without an earphone wire, and convenience is provided for a user.
Disclosure of Invention
The embodiment of the application provides a data processing method, so that connection interaction between an earphone and multiple devices is provided.
Correspondingly, the embodiment of the application also provides a data processing device, an electronic device and a storage medium, which are used for ensuring the implementation and application of the method.
In order to solve the above problem, an embodiment of the present application discloses a data processing method, where a connection state between an earphone and a first communication object is a dormant state, and a connection state between the earphone and a second communication object is an operating state, the method including: detecting a signal corresponding to the first communication object, responding to the signal, and sending an instruction to the second communication object so as to switch the connection state of the second communication object and an earphone into a dormant state; and switching the connection state of the first communication object and the earphone into a working state so as to carry out communication interaction.
The embodiment of the application also discloses a data processing method, which is applied to an earphone, wherein the earphone and an earphone accessory with a wireless communication module communicate based on a BLE protocol, the earphone and a terminal device communicate based on the BLE protocol and an A2DP protocol, and the method comprises the following steps: receiving voice data, and identifying a signal corresponding to the earphone accessory according to the voice data; 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; communication based on the A2DP protocol is established between the headset accessory and the headset, and audio data is communicated with the headset accessory.
The embodiment of the application also discloses a data processing method, which is applied to an earphone accessory with a wireless communication module, wherein the earphone accessory and the earphone are communicated based on a BLE protocol, and the method comprises the following steps: receiving a headset query message after establishing communication between the headset accessory and the headset based on an A2DP protocol; executing the query operation corresponding to the query message through a wireless communication module, and determining a corresponding query response message; and sending the inquiry response message to the earphone.
The embodiment of the application also discloses a data processing method, which is applied to terminal equipment, the terminal equipment and an earphone are communicated based on a BLE protocol, the earphone and an earphone accessory are communicated based on the BLE protocol and an A2DP protocol, and the method comprises the following steps: detecting a call message; in response to the talk message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol; after communication based on an HFP protocol is established between the terminal equipment and the earphone, a call corresponding to the call message is connected; and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
The embodiment of the application also discloses a data processing method, which is applied to terminal equipment, the terminal equipment and an earphone are communicated based on a BLE protocol, the earphone and an earphone accessory are communicated based on the BLE protocol and an A2DP protocol, and the method comprises the following steps: detecting a call message; sending the call message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol; after communication based on an HFP protocol is established between the terminal equipment and the earphone, a call corresponding to the call message is connected; and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
The embodiment of the application also discloses a data processing method, which is applied to terminal equipment, the terminal equipment and an earphone are communicated based on a BLE protocol, the earphone and an earphone accessory are communicated based on the BLE protocol and an A2DP protocol, and the method comprises the following steps: detecting an audio play message; in response to the audio playback message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol; after communication based on an A2DP protocol is established between the terminal device and the earphone, audio data corresponding to the audio playing message is transmitted, so that the audio data is played through the earphone.
The embodiment of the application also discloses a data processing method, which is applied to terminal equipment, the terminal equipment and an earphone are communicated based on a BLE protocol, the earphone and an earphone accessory are communicated based on the BLE protocol and an A2DP protocol, and the method comprises the following steps: detecting an audio play message; sending the audio playing message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol; after communication based on an A2DP protocol is established between the terminal device and the earphone, audio data corresponding to the audio playing message is transmitted, so that the audio data is played through the earphone.
The embodiment of the application also discloses a data processing method, wherein the earphone and a first communication object communicate based on a first protocol, the earphone and a second communication object communicate based on the first protocol and a second protocol, and the second protocol comprises a protocol supporting audio data interaction; the method comprises the following steps: detecting a signal corresponding to the first communication object, and sending an instruction to the second communication object in response to the signal so as to disconnect the communication between the second communication object and the earphone based on a second protocol; and establishing communication based on a second protocol between the earphone and the first communication object, and performing interaction of audio data.
The embodiment of the present application further discloses a data processing apparatus, where a connection state between the earphone and the first communication object is a dormant state, and a connection state between the earphone and the second communication object is a working state, the apparatus includes: the switching dormancy module is used for detecting a signal corresponding to the first communication object, responding to the signal, and sending an instruction to the second communication object so as to switch the connection state of the second communication object and the earphone into a dormancy state; and the switching communication module is used for switching the connection state of the first communication object and the earphone into a working state so as to carry out communication interaction.
The embodiment of the present application further discloses a data processing device, which is applied to an earphone, the earphone communicates with an earphone accessory having a wireless communication module based on a BLE protocol, the earphone communicates with a terminal device based on the BLE protocol and an A2DP protocol, and the device includes: the processing module is used for receiving voice data and identifying a signal corresponding to the earphone accessory according to the voice data; the communication module is used for responding to the signal and sending an instruction to the terminal equipment so as to disconnect the communication between the earphone and the terminal equipment based on the A2DP protocol; communication based on the A2DP protocol is established between the headset accessory and the headset, and audio data is communicated with the headset accessory.
The embodiment of the present application further discloses a data processing device, is applied to the headset accessory that has wireless communication module, headset accessory and headset communicate based on BLE protocol, the device includes: a receiving module, configured to receive an inquiry message of the headset after a connection state of communication based on an A2DP protocol between the headset accessory and the headset is switched to a working state; the query module is used for executing query operation corresponding to the query message through the wireless communication module and determining a corresponding query response message; and the feedback module is used for sending the inquiry response message to the earphone.
The embodiment of the present application further discloses a data processing device, is applied to terminal equipment, terminal equipment and earphone are based on BLE protocol communication, earphone and earphone accessory are based on BLE protocol and A2DP protocol communication, the device includes: the call processing module is used for detecting a call message; in response to the talk message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol; the communication module is used for connecting the communication corresponding to the communication message after the communication based on the HFP protocol is established between the terminal equipment and the earphone; and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
The embodiment of the present application further discloses a data processing device, is applied to terminal equipment, terminal equipment and earphone are based on BLE protocol communication, earphone and earphone accessory are based on BLE protocol and A2DP protocol communication, the device includes: the call detection module is used for detecting a call message; sending the call message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol; the communication module is used for connecting the communication corresponding to the communication message after the communication based on the HFP protocol is established between the terminal equipment and the earphone; and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
The embodiment of the present application further discloses a data processing device, is applied to terminal equipment, terminal equipment and earphone are based on BLE protocol communication, earphone and earphone accessory are based on BLE protocol and A2DP protocol communication, the device includes: the audio processing module is used for detecting an audio playing message; in response to the audio playback message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol; and the audio interaction module is used for transmitting audio data corresponding to the audio playing message after communication based on an A2DP protocol is established between the terminal equipment and the earphone, so that the audio data is played through the earphone.
The embodiment of the present application further discloses a data processing device, is applied to terminal equipment, terminal equipment and earphone are based on BLE protocol communication, earphone and earphone accessory are based on BLE protocol and A2DP protocol communication, the device includes: the audio detection module is used for detecting an audio playing message; sending the audio playing message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol; and the audio communication module is used for transmitting audio data corresponding to the audio playing message after communication based on an A2DP protocol is established between the terminal equipment and the earphone, so that the audio data can be played through the earphone.
The embodiment of the application also discloses a data processing device, wherein the earphone and a first communication object communicate based on a first protocol, the earphone and a second communication object communicate based on the first protocol and a second protocol, and the second protocol comprises a protocol supporting audio data interaction; the device comprises: the protocol disconnection module is used for detecting a signal corresponding to the first communication object and sending an instruction to the second communication object in response to the signal so as to disconnect the communication between the second communication object and the earphone based on a second protocol; and the protocol communication module is used for establishing communication based on a second protocol between the earphone and the first communication object and carrying out interaction of audio data.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in one or more of the embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in one or more of the embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in one or more of the embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a data processing method as described in embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a data processing method as described in embodiments of the present application are also disclosed.
Compared with the prior art, the embodiment of the application has the following advantages:
in this application embodiment, the earphone is connected with first communication object and second communication object, and the connection state of earphone and first communication object is dormant state, the connection state of earphone and second communication object is operating condition, detects the signal that first communication object corresponds, respond to the signal, send instruction give the second communication object, in order to with the connection state of second communication object and earphone switches into dormant state, and will the connection state of first communication object and earphone switches into operating condition, and is interactive for carrying out the communication, thereby makes the earphone can support the interactive communication of many communication objects to can switch between the different communication objects that the earphone is connected automatically, the user can use the convenient required processing of carrying out through different communication objects of earphone.
Drawings
Fig. 1A is a schematic diagram of an example of a headset connection according to an embodiment of the present application;
fig. 1B is a schematic diagram of another example of headset connection according to an embodiment of the present application;
FIG. 2 is a flow chart of the steps of an embodiment of a data processing method of the present application;
FIG. 3 is an interaction diagram of one data processing method embodiment of the present application;
FIG. 4 is an interaction diagram of another data processing method embodiment of the present application;
FIG. 5 is an interaction diagram of yet another data processing method embodiment of the present application;
FIG. 6 is a block diagram of an embodiment of a data processing apparatus of the present application;
FIG. 7 is a block diagram of an alternate embodiment of a data processing apparatus of the present application;
fig. 8 is a block diagram of an embodiment of a data processing device applied to a headset according to the present application;
FIG. 9 is a block diagram of an embodiment of a data processing device for use in a headset accessory according to the present application;
fig. 10 is a block diagram of an embodiment of a data processing apparatus applied to a terminal device according to the present application;
fig. 11 is a block diagram of another embodiment of the data processing apparatus applied to a terminal device according to the present application;
fig. 12 is a block diagram of a data processing apparatus according to another embodiment of the present application, which is applied to a terminal device;
fig. 13 is a block diagram of a data processing apparatus according to another embodiment of the present application;
FIG. 14 is a block diagram of another data processing apparatus embodiment of the present application;
fig. 15 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In the embodiment of the present application, the headset includes a bluetooth headset, or other headset capable of performing wireless Communication, such as a headset communicating based on Near Field Communication (NFC) technology. A Bluetooth headset is a headset that uses Bluetooth communication technology for communication connection, and Bluetooth (Bluetooth) is a wireless technology standard and can implement short-distance data exchange. The Bluetooth headset and the communication object can be connected through Bluetooth technology and then communicate with the communication object. In the case of communication between the headset and the communication object based on Bluetooth technology, the headset and the communication object may maintain communication based on a first protocol, where the first protocol is a protocol supporting communication between the headset and the communication object via Bluetooth, such as a Bluetooth Low Energy (BLE) protocol. Audio data can also be transmitted between the headset and the communication object, and therefore communication between the headset and the communication object can also be based on a second protocol, which includes protocols supporting communication of Audio data, such as bluetooth Audio transmission model protocol (A2 DP), bluetooth Hands-free protocol (HFP), and so on.
The BLE protocol is a personal area network technology designed and sold by the Bluetooth technical alliance, and compared with the classic Bluetooth, the low-power Bluetooth aims at remarkably reducing power consumption and cost while keeping the same communication range; the A2DP protocol is a protocol defining high quality audio information such as mono or stereo audio to be transmitted over an Asynchronous connection free (ACL) channel, and can support stereo audio transmission, such as supporting a bluetooth stereo headset to play music; the HFP protocol enables the Bluetooth equipment to control the mobile terminal to communicate, such as answering, hanging up, refusing to connect, voice dialing and other communication operations, and can provide a mode that the Bluetooth earphone enters high-fidelity communication.
Under the condition that the earphone and the communication object communicate through the first protocol and the second protocol, the connection state of the earphone and the communication object is a working state; and when the earphone and the communication object communicate only through the first protocol, the connection state of the earphone and the communication object is a dormant state, and accordingly, the earphone and the communication object can be switched between the dormant state and the working state by disconnecting/connecting the communication between the earphone and the communication object based on the second protocol.
In the embodiment of the application, the earphone can be connected with two or more communication objects in a wireless mode, the earphone can switch communication among more than one connected communication object, and each communication object can perform communication preemption, so that the earphone is convenient for a user to use. The communication object refers to an object connected with and communicating with the earphone, and may include various terminal devices such as a mobile phone, a tablet computer, a notebook computer, a television, and the like, or may include earphone accessories such as an earphone box, a charging box, an earphone charging box, and the like, or may include devices such as a smart sound box. In the embodiment of the application, the earphone further comprises an audio input/output unit and the like. The first communication object and the second communication object connected with the earphone can be the same type of communication object or different types of communication objects, for example, both the first communication object and the second communication object are mobile phones, or one communication object is a mobile phone and the other communication object is an earphone accessory, a smart sound box, a tablet personal computer and the like, so that the earphone and the communication objects can be conveniently communicated, a user can conveniently use a plurality of devices through one earphone, and the direct and free switching between different devices can be realized.
In the embodiment of the application, to equipment such as notebook computer, intelligent audio amplifier, still can have the function of charging for the earphone, after the earphone is connected with the communication object who has the function of charging, can charge to the earphone, and the accessible is wired/wireless mode charges, and convenience of customers uses and can improve the duration of a journey ability of earphone.
Fig. 1A and 1B are schematic diagrams of an example of a headset connection according to an embodiment of the present application.
In this example, an earphone is used to connect two communication objects, where one communication object is a terminal device and the other communication object is an earphone accessory, such as an earphone charging box. 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 through a wireless communication technology such as bluetooth and can perform communication. The second communication object 30 is an earphone accessory having a wireless communication module, such as a container like an earphone box or an earphone charging box, or an accessory like an earphone hanger, a frame, a bracket, a conversion head, etc. The wireless communication module of the headset accessory comprises a module supporting short-range wireless communication, such as a bluetooth communication module, so as to be connected with the headset through the bluetooth communication module, and may further comprise a network communication module, such as a wifi module and/or a mobile communication module, wherein the mobile communication module may perform communication based on a mobile communication technology, such as a mobile communication technology based on a fourth Generation mobile communication technology (4G), a fifth Generation mobile communication technology (5G), and the like. Therefore, under the condition that the earphone accessory is connected with the earphone through wireless communication technologies such as Bluetooth and the like, the earphone accessory can be connected with the Internet through the network communication module, network related data are provided for users, and more convenient and faster services are provided for the users.
In an optional example of the present application, the headset accessory with a wireless communication module may further include a battery, a power management chip, a radio frequency antenna, a motherboard, and other devices, wherein the wireless communication module may be supported by a bluetooth module, a mobile communication module (such as a 4G chip, a 5G chip, and the like), a wifi module, and other modules, so as to implement a wireless communication function thereof. For the mobile communication Module, a Subscriber Identity Module (SIM) card, such as a 4G card and a 5G card, may be combined, and then the internet access capability is implemented based on the mobile communication internet access function of the operator, so as to provide network services such as query and audio play for the user.
In this application embodiment, the earphone accessory is like earphone box, still can dispose display element such as earphone charging box, like the display screen, touch display screen etc. thereby be convenient for the user to show required various information when inquiring and using earphone accessory communication through the earphone accessory, if show the inquiry result through the display element, like weather conditions etc., like the display element of accessible earphone box shows contents such as lyrics, MV when playing music through earphone box networking again, thereby be convenient for the user to use earphone accessory.
In 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 the network communication module, so that the network communication module of the headset may be used as a communication object to perform query of network information and functions related to audio input and output, such as query of weather and route, and play audio such as music.
In one example, as shown in fig. 1A, the headset and the headset charging box with the wireless communication module are in a sleep state through a BLE protocol, that is, the connection state of the headset and the headset charging box is a connection state, and the headset and the handset are in communication through a BLE protocol and an A2DP protocol, that is, the connection state of the headset and the handset is an operation state. If the earphone and the mobile phone communicate based on the A2DP protocol and transmit music, audio of video played on the mobile phone and the like, a user speaks 'search for the weather of the day' and the like, an audio input unit such as a microphone of the earphone can receive the voice data, recognize the received voice data, determine a signal between the earphone and an earphone accessory according to a recognition result, and can be recognized as a signal such as query information for the earphone accessory to search for the weather as 'search for the weather of the day', in response to the signal, a command for switching the state can be determined, so that the command is sent to the mobile phone, the communication between the earphone and the mobile phone based on the A2DP protocol is disconnected based on the command, the connection state between the mobile phone and the earphone is switched to the dormant state, the communication between the earphone and the earphone charging box based on the A2DP protocol is established, and the connection state between the earphone and the earphone charging box is switched to. And then the earphone and the earphone charging box communicate based on an A2DP protocol, wherein the voice data of the identified inquiry message can be sent to the earphone charging box through the A2DP protocol, the earphone charging box can execute inquiry operation through a built-in wireless communication module based on the inquiry message, send a weather inquiry message to a server, the message can carry parameters such as positioning data, and the server can generate an inquiry response message after inquiring corresponding weather information and return the inquiry response message to the earphone charging box. After receiving the query response message, the headset charging box may send the audio data of the query response message to the headset via the A2DP protocol, and the headset outputs the audio data of the query response message.
In another example, as shown in fig. 1B, the headset and the headset charging box with the wireless communication module communicate via a BLE protocol and an A2DP protocol, that is, the connection state of the headset and the headset charging box is an operating state, and the connection state of the headset and the handset via the BLE protocol is a dormant state. Such as headphones connected to the headphone charging box and outputting audio such as music based on A2DP protocol communications. 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 may be determined, so as to send an instruction to the earphone charging box, in one example, an instruction may be sent to the earphone charging box by the earphone to switch the connection state, in another example, an instruction may also be sent to the earphone charging box by the mobile phone to switch the connection state, so that 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 operation state to the sleep 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 sleep state to the operation state. Then the earphone and the mobile phone are communicated based on the HFP protocol, wherein the earphone based on the HFP protocol can control the mobile phone to be connected for communication, the voice data sent by the mobile phone are output through the earphone based on the HFP protocol, the earphone can also send the voice data to the mobile phone, and the mobile phone transmits the corresponding voice data to a communication opposite terminal.
Based on the above example of earphone connection, the embodiments of the present application further provide a data processing method, so that an earphone can switch between connected communication objects, and communication between each communication object and the earphone is facilitated. Taking the example that the headset connects two communication objects at the same time, the communication objects include a first communication object and a second communication object.
Referring to fig. 2, a flow chart of steps of an embodiment of a data processing method of the present application is shown.
Step 202, the headset establishes connections with two communication objects respectively, and determines connection states corresponding to the communications respectively.
In this embodiment of the application, the headset and the communication object may be connected through bluetooth, where the connection state of the communication object and the headset may include a working state and a dormant state, for example, if the headset and the first communication object communicate through a first protocol, the connection state of the headset and the first communication object is the dormant state, and if the headset and the second communication object communicate through the first protocol and a second protocol, the connection state of the headset and the second communication object is the working state. The operation state refers to a state in which audio data communication is being performed between the headset and the communication object, and the sleep state refers to a state in which the headset and the communication object are connected but audio data communication is not performed. In some examples, some communication objects may also know the connection state of the headset with other communication objects, for example, terminal devices such as a mobile phone may know the connection state of the headset with headset accessories, other terminal devices, and the like.
As in the above example, the communication objects to which the headset is connected include the terminal device and the headset accessory having the wireless communication module, and the like, in one example, if the headset and the terminal device communicate via the first protocol (e.g., BLE protocol) and the second protocol (e.g., A2DP protocol or HFP protocol), the connection state of the headset and the terminal device may be an operating state, and if the headset and the headset accessory having the wireless communication module communicate via the first protocol (e.g., BLE protocol), the connection state of the headset and the headset accessory may be a dormant state; in another example, if the headset and the headset accessory having the wireless communication module communicate via the first protocol (e.g., BLE protocol) and the second protocol (e.g., A2DP protocol), the connection state between the headset and the terminal device is in an operating state, and if the headset and the terminal device communicate via the first protocol (e.g., BLE protocol), the connection state between the headset and the terminal device is in a dormant state.
In the embodiment of the application, the earphone can determine object information such as an object identifier of a connected communication object, so that each connected communication object can be determined, and through data interaction with each communication object, a communication object performing audio data interaction, namely a second communication object with a connection state being a working state can be determined, and other connected communication objects are first communication objects with connection states being dormant states.
In some other examples, an application corresponding to the headset may be installed on a communication object of the headset, such as a terminal device, so that object information, such as an object identifier of the communication object connected to the headset, can be determined by the application, and a second communication object that is performing data interaction with the headset and a first communication object whose connection state with the headset is a dormant state can be determined.
Step 204, detecting a signal corresponding to the first communication object, and sending an instruction to the second communication object in response to the signal, so as to switch the connection state of the second communication object and the headset to a sleep state.
During the process of the interaction between the earphone and the second communication object, if the signal of the first communication object is received, the first communication object can perform communication preemption and timely process the signal. In response to the signal, an instruction for switching the connection state may be determined, and if the instruction is used to instruct the communication object to suspend communication, the instruction may be sent to the second communication object, so that the disconnection of the communication between the headset and the second communication object based on the second protocol is suspended according to the instruction, and the connection state of the headset and the second communication object is switched from the operating state to the dormant state.
In this embodiment of the application, the signal of the first communication object is a signal corresponding to the earphone, such as a message that needs to be processed by the earphone, or a message, an instruction, and other signals obtained by processing by the earphone. In one example, the instruction may originate from a first communication object and the signal needs to be processed through a headset, and a message such as a call needs to be input/output audio by the headset; 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, an instruction, etc. for a network query, and the query result of the signal needs to be played by the headset, etc.
In an optional embodiment, voice data is received and recognized; and if the recognition result comprises a setting word, generating a signal of the first communication object according to the recognition result and the setting word. The earphone or the communication object installed with the application program can receive voice data, recognize the voice data to obtain a recognition result, analyze the recognition result, judge the content of the voice of the user, such as the user singing along with music or the user indicating some content, and if a setting word is recognized from the recognition result, the setting word is used for indicating the setting communication object to execute the setting operation, if the communication object is set as the first communication object, the signal of the first communication object can be generated based on the recognition result and the setting word. In addition, operations to be performed, such as query operations, may be determined based on the set words, and then corresponding keywords may be determined based on the recognition results, and corresponding query messages may be generated based on the keywords and the recognized query operations.
Based on the above example, the user may instruct the headset to switch by voice, such as speaking a setting word or recognizing a scene that the headset needs to switch the communication object. As in the example of fig. 1A, the headset communicates with the handset based on the A2DP protocol and transmits music, audio of video played on the handset, etc., the user says "search for weather today," can disconnect communication with the handset based on the A2DP protocol, and the headset communicates with the headset charging box based on the A2DP protocol, performing a weather search operation. In some other examples, the user may also directly indicate the switched communication object through voice, for example, the mobile phone is used as the first communication object, and the user says "switch to the mobile phone," then the connection between the second communication object such as the earphone box and the like based on the second protocol may be disconnected, and the earphone and the mobile phone establish communication based on the second protocol, and then the earphone and the mobile phone may transmit audio data communication, for example, interact with the mobile phone based on the A2DP protocol, play music through the mobile phone, interact with the mobile phone based on the HFP protocol, perform a call through the mobile phone, and the like. The name and the like can be set for each communication object, so that a user can conveniently identify the communication object required to be switched when actively switching the communication objects.
Step 206, switching the connection state of the first communication object and the earphone to a working state for communication interaction.
After receiving the signal, the first communication object needs to preempt the communication of the second communication object, in this case, the communication based on the second protocol between the earphone and the first communication object may be established, the connection state between the earphone and the first communication object may be switched from the dormant state to the working state, and then the first communication object may perform audio communication with the earphone, and perform the operation corresponding to the signal. For example, the query operation corresponding to the query message is executed, and for example, the incoming call corresponding to the connection signal, music playing and the like are also executed.
In an alternative embodiment, the signal comprises a query message; the step of performing communication interaction includes: the earphone sends the query message to the first communication object so that the first communication object executes query operation according to the query message and determines a corresponding query response message; and receiving the query response message, and playing the query response message through an earphone. For the query message requiring the first communication object to perform the query, the query message may be sent to the first communication object based on the second protocol, for example, the headset sends the query message obtained by the voice processing to the headset accessory, and the like, then the first communication object may generate a query request based on the query message, the query request includes a keyword, the query request is sent to the server for querying, then a query response message returned by the server may be received, then the query response message is sent to the headset based on the second protocol, and the headset may play the query response message.
In one example of the present application, an earphone accessory such as an earphone case having a wireless communication module has a network communication module, and service access to internet contents can be realized by a network communication function of the network communication module. The user can speak out the required internet service content, the audio input unit such as a microphone of the earphone can receive the voice data of the user, then the voice data is identified and analyzed, and the voice data is determined to be inquired through the earphone accessory, an inquiry message can be generated and sent to the earphone accessory, the earphone accessory can be connected with the internet based on the network communication module and sends an inquiry request to a communication object such as a server at the opposite end of the internet, so that the corresponding inquiry response message is searched for in the internet communication object and then returned to the earphone accessory, the earphone accessory can send the inquiry response message to the earphone based on an A2DP protocol, and the earphone can play the response message to the user through the audio output unit, so that the user can conveniently and quickly acquire the required message such as weather inquiry, time and the like through the voice. Therefore, in the process, if the earphone accessory is the first communication object, the communication of the second communication object can be preempted, and then the message required by the user is inquired quickly to provide the service for the user.
In another alternative embodiment, the signal comprises a call message, and the step of performing communication interaction comprises: connecting the call of the first communication object; and outputting the voice data sent by the first communication object through the earphone, and/or sending the received voice data to the first communication object. The first communication object may be a communication object with a SIM card, such as a mobile phone or a tablet computer, which may receive a call message of voice/video of a mobile phone, in other examples, a communication object such as a terminal device installed with various instant messaging applications may also receive a call message of network video/voice. For the first communication object receiving the call message, the communication between the second communication object and the earphone can be preempted. Thereby establishing communication between the headset and the first communication object based on the second protocol, switching the connection state of the headset and the first communication object from the dormant state to the connection state, and then enabling the communication object and the headset to communicate based on the second protocol. The voice data of the opposite communication terminal can be received by the first communication object and then sent to the earphone through the second protocol, the earphone outputs the voice data through the audio output unit, and the voice data of the user at the local communication terminal can be received by the audio input unit of the earphone, then sent to the first communication object through the second protocol and then sent to the opposite communication terminal through the first communication object.
In an optional embodiment of the present application, the method further 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 earphone based on the second protocol is disconnected, so that the connection state of the first communication object and the earphone is switched back to the dormant state from the working state, the communication between the second communication object and the earphone based on the second protocol is established, so that the connection state of the second communication object and the earphone is switched back to the working state from the dormant state, and the second communication object and the earphone continue to perform communication interaction. In this embodiment of the present application, based on a message of a first communication object, the first communication object preempts communication interaction between an earphone and a second communication object, and then after the first communication object and the earphone finish performing communication interaction corresponding to the message, for example, after an inquiry response message corresponding to an inquiry message is played, a call corresponding to a call message is ended, and the like, communication based on a second protocol may be re-established, and automatically switched back to an original state, where after the service of the first communication object is completed, the first communication object may be switched from a working state to a previous dormant state, and the second communication object may be switched from the dormant state to the working state, so that the second communication object continues to perform communication interaction with the earphone, continues to be preempted for communication before, and if music is being listened before, then, at this time, music listening may be based on listening to music.
In summary, the earphone is connected with a first communication object and a second communication object, the connection state of the earphone and the first communication object is a dormant state, the connection state of the earphone and the second communication object is an operating 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 so as to switch the connection state of the second communication object and the earphone to the dormant state and switch the connection state of the first communication object and the earphone to the operating state for communication interaction, so that the earphone can support interactive communication of multiple communication objects and can automatically switch between different communication objects connected to the earphone, and a user can use the earphone to conveniently execute required processing through different communication objects.
In an optional embodiment of the present application, taking an example that an earphone is respectively connected to a terminal device and an earphone accessory having a wireless communication module, a connection state of the earphone and a first communication object is a dormant state, and a connection state of the earphone and a second communication object is an operating state, it is assumed that the terminal device is the second communication object, the earphone and the terminal device communicate based on a BLE protocol and an A2DP protocol, the earphone accessory is the first communication object, the earphone and the earphone accessory having the wireless communication module communicate based on the BLE protocol, and the earphone accessory can also provide a query service of internet-surfing related messages for a user based on a network communication module. For example, a mobile phone and an earphone box with a wireless communication module are connected to the user earphone, and the earphone box also has the function of charging the earphone and the like. At this point the user is listening to the music being played in the handset using the headset.
Referring to fig. 3, an interaction diagram of an embodiment of a data processing method of the present application is shown.
Step 302, the headset receives voice data.
Step 304, the earphone recognizes a signal corresponding to the earphone accessory according to the voice data.
The audio input unit of the earphone can receive voice data and recognize the voice data; and if the recognition result comprises a setting word, generating a signal of the earphone accessory according to the recognition result and the setting word. For example, in the process of listening to music, the user can sing along with the music, and at the moment, the earphone does not include the setting word in the voice data recognition result, so that the earphone box is not awakened. If the user speaks the name a of the earphone box of the setting word, such as "what is the weather of a today", the identified a can be determined as the setting word, the earphone box is required to perform query, and the keyword "weather" can be determined from the recognition result, so that a query message of the weather can be generated.
Step 306, responding to the signal, and sending an instruction to the terminal equipment.
And 308, switching the connection state of the earphone and the terminal equipment from a working state to a dormant state. Based on the instruction, the communication between the headset and the terminal device based on the A2DP protocol is disconnected.
In step 310, the connection state of the earphone and the earphone accessory is switched from the dormant state to the working state. Communication based on the A2DP protocol is established between the headset accessory and the headset.
In step 312, the headset sends the query message to the headset accessory. Wherein the headset may transmit audio of the query message, such as received voice data, to the headset accessory based on the A2DP protocol.
And step 314, the headset accessory sends a query response message to the server and receives the query response message returned by the server.
As described above, the earphone box receives the weather query message and sends the weather query message to the server, and the server may determine the location based on the physical address of the earphone box and query the weather at the corresponding location, or return the location query message when the location information is carried in the query message or the location cannot be determined, so that the location prompt voice such as "ask you which weather to query" may be played through the earphone to obtain the location. The earphone box can acquire inquiry response messages such as weather conditions returned by the server and then send the inquiry response messages to the earphones.
At step 316, the headset accessory sends a query response message to the headset. Wherein the headset accessory may send the audio of the query response message to the headset based on the A2DP protocol.
Step 318, the earphone plays the voice corresponding to the query response message.
The query response message can be voice data, and then the voice message can be played, or messages in non-voice modes such as characters and the like can be played by converting the voice data through analysis.
In step 320, after the query response message is played, the headset disconnects the communication between the headset and the headset accessory based on the A2DP protocol, so that the connection state of the headset accessory and the headset accessory is switched to the dormant state.
Step 322, establishing communication between the headset and the terminal device based on the A2DP protocol, so that the connection state of the headset and the terminal device is switched to the working state, and the mobile communication object continues to perform communication interaction with the headset, such as continuing to play music.
Therefore, the communication object in the dormant state can be awakened based on the voice, the communication of the earphone is preempted, the communication object executes the required query service, the corresponding result is played through the earphone, and then the communication object is switched back to the previous communication.
In another optional embodiment of the present application, taking an earphone as an example to connect a terminal device and an earphone accessory with a wireless communication module, assuming that the earphone accessory is a second communication object, the earphone and the earphone accessory communicate based on a BLE protocol and an A2DP protocol, and the terminal device is a first communication object, the earphone and the terminal device communicate based on the BLE protocol, and the earphone accessory may further provide a query service of internet surfing related messages for a user based on a network communication module, and the terminal device may perform voice and video calls and the like. For example, a mobile phone and an earphone box with a wireless communication module are connected to the user earphone, and the earphone box also has the function of charging the earphone and the like. The user is listening to the music, the phase sounds, etc. played in the earphone box using the earphones at this time.
Referring to fig. 4, an interaction diagram of another data processing method embodiment of the present application is shown.
In step 402, a terminal device receives a signal, such as a call message or an audio play message. In this case, the call message received by the terminal device may be an audio/video call message of a fixed phone or a mobile phone, or an audio/video call message of an instant messaging application in a mobile phone; the audio play message may be a message that plays music or video, etc.
Step 404, in response to the signal, the terminal device sends an instruction to the headset accessory.
And 406, disconnecting the communication between the headset accessory and the headset based on the A2DP protocol, switching the connection state of the headset accessory and the headset into a dormant state, and suspending the audio data communication interaction between the headset accessory and the headset.
And step 408, establishing communication between the terminal device and the earphone based on the second protocol, so that the connection state of the terminal device and the earphone is switched to a working state. For a call message, such as an audio/video call message of a fixed phone or a mobile phone, communication based on the HFP protocol may be established between the terminal device and the headset; for an audio playing message, communication based on the A2DP protocol may be established between the terminal device and the headset, for an audio/video call message of an instant messaging application, and for HFP laundry or A2DP protocol may be established between the terminal device and the headset, so that audio data may be transmitted between the headset and the terminal device, for example, a prompt tone corresponding to the call message may be played through the headset.
And step 410, transmitting audio data between the terminal equipment and the earphone. If the call corresponding to the call message is connected; and outputting the voice data sent by the terminal equipment through the earphone, and/or sending the received voice data to the terminal equipment, so that the user can answer the call and execute the call through the earphone. For another example, the audio data corresponding to the audio playing message is transmitted, so that the audio data, such as music, is played through the earphone.
And step 412, after the call is finished, disconnecting the communication between the earphone and the terminal device based on the second protocol, and switching the connection state of the earphone and the terminal device to the dormant state.
Step 414, reestablishing the communication between the headset and the headset accessory based on the A2DP protocol, so that the connection state of the headset and the headset accessory is switched back to the working state, and the headset accessory can continue to perform communication interaction with the headset, such as continuing to play music, playing music, and the like.
In summary, even if a communication destination such as a mobile phone is connected to an earphone and is in a dormant state, the communication of the earphone can be preempted for a signal requiring the earphone such as a call, the call is performed through the earphone, and the previous communication is switched back after the call is ended, so that the user can use the communication terminal conveniently.
The wireless communication module is arranged on accessories such as the earphone box and the like, so that a user can obtain required services through a network under the condition that terminal equipment such as a mobile phone is not used or is inconvenient to use, traversal is provided for the user, and novel services are also provided.
In another optional embodiment of the present application, taking an earphone as an example to connect a terminal device and an earphone accessory with a wireless communication module, assuming that the earphone accessory is a second communication object, the earphone and the earphone accessory communicate based on a BLE protocol and an A2DP protocol, and the terminal device is a first communication object, the earphone and the terminal device communicate based on the BLE protocol, and the earphone accessory may further provide a query service of internet surfing related messages for a user based on a network communication module, and the terminal device may perform voice and video calls and the like. For example, a mobile phone and an earphone box with a wireless communication module are connected to the user earphone, and the earphone box also has the function of charging the earphone and the like. The user is listening to the music, the phase sounds, etc. played in the earphone box using the earphones at this time.
Referring to fig. 5, an interaction diagram of yet another data processing method embodiment of the present application is shown.
Step 502, the terminal device receives a signal, such as a call message or an audio play 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 phone or a mobile phone, or an audio/video call message of an instant messaging application in a mobile phone; the audio play message may be a message that plays music or video, etc.
In response to the signal, the headset sends an instruction to the headset accessory, step 504.
And step 506, disconnecting the communication between the headset accessory and the headset based on the A2DP protocol, switching the connection state of the headset accessory and the headset into a dormant state, and suspending the communication interaction between the headset accessory and the headset.
And step 508, establishing communication between the terminal device and the earphone based on the second protocol, so that the connection state of the terminal device and the earphone is switched to a working state. For a call message, such as an audio/video call message of a fixed phone or a mobile phone, communication based on the HFP protocol may be established between the terminal device and the headset; for an audio playing message, communication based on the A2DP protocol may be established between the terminal device and the headset, for an audio/video call message of an instant messaging application, and for HFP laundry or A2DP protocol may be established between the terminal device and the headset, so that audio data may be transmitted between the headset and the terminal device, for example, a prompt tone corresponding to the call message may be played through the headset.
Step 510, audio data is transmitted between the terminal device and the headset. If the call of the terminal equipment corresponding to the call message is connected; and outputting the voice data sent by the terminal equipment through the earphone, and/or sending the received voice data to the terminal equipment, so that the user can answer the call and execute the call through the earphone. For another example, the audio data corresponding to the audio playing message is transmitted, so that the audio data, such as music, is played through the earphone.
And step 512, after the call is finished, disconnecting the communication between the earphone and the terminal device based on the second protocol, and switching the connection state of the earphone and the terminal device to the dormant state.
Step 514, reestablishing the communication between the headset and the headset accessory based on the A2DP protocol, so that the connection status of the headset and the headset accessory is switched back to the working status, and the headset accessory can continue to perform communication interaction with the headset, such as continuing to play music, playing music, and the like.
In summary, even if a communication destination such as a mobile phone is connected to an earphone and is in a dormant state, the communication of the earphone can be preempted for a signal requiring the earphone such as a call, the call is performed through the earphone, and the previous communication is switched back after the call is ended, so that the user can use the communication terminal conveniently.
The wireless communication module is arranged on accessories such as the earphone box and the like, so that a user can obtain required services through a network under the condition that terminal equipment such as a mobile phone is not used or is inconvenient to use, traversal is provided for the user, and novel services are also provided.
On the basis of the foregoing embodiment, the present application further provides a data processing method, where an earphone and a first communication object communicate based on a first protocol, the earphone and a second communication object communicate based on the first protocol and a second protocol, and the second protocol includes a protocol supporting audio data interaction; the method comprises the following steps: detecting a signal corresponding to the first communication object, and sending an instruction to the second communication object in response to the signal so as to disconnect the communication between the second communication object and the earphone based on a second protocol; and establishing communication based on a second protocol between the earphone and the first communication object, and performing interaction of audio data.
In an optional embodiment, the audio input unit of the earphone receives voice data and recognizes the voice data; and if the recognition result comprises a setting word, generating a signal of the first communication object according to the recognition result and the setting word.
In an alternative embodiment, the signal comprises a query message; the step of performing communication interaction includes: the earphone sends the query message to the first communication object based on a second protocol, so that the first communication object executes query operation according to the query message and determines a corresponding query response message; and receiving the query response message based on a second protocol, and playing the query response message through the earphone.
In another alternative embodiment, the signal comprises a call message, and the step of performing communication interaction comprises: the earphone is used for connecting the conversation of the first communication object based on a second protocol; and outputting the voice data sent by the first communication object through the earphone, and/or sending the received voice data to the first communication object.
In some other optional embodiments, after the signal corresponding to the first communication object is performed with the communication interaction, the communication between the first communication object and the headset based on the second protocol is disconnected, so that the connection state of the first communication object and the headset 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 reestablished, so that the connection state of the second communication object and the headset is switched from the dormant state to the working state, and the communication interaction of the audio data with the headset is continued.
In some examples, the first communication object includes a headset accessory having a wireless communication module including a bluetooth communication module and a network communication module. The headset accessory includes a headset receptacle including a headset charging box. The first protocol comprises a bluetooth low energy, BLE, protocol and the second protocol comprises a bluetooth audio transmission model protocol A2 DP.
In some other examples, the second communication object includes a headset accessory having a wireless communication module including a bluetooth communication module and a network communication module. The headset accessory includes a headset receptacle including a headset charging box. The first protocol comprises a BLE protocol and the second protocol comprises an A2DP protocol or a bluetooth hands-free protocol HFP.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
On the basis of the above embodiments, the present embodiment further provides a data processing apparatus, which is applied to electronic devices such as a terminal device, an earphone, and an earphone accessory with a wireless communication module. The earphone is connected with a first communication object and a second communication object, the connection state of the earphone and the first communication object is a dormant state, and the connection state of the earphone and the second communication object is a working state.
Referring to fig. 6, a block diagram of a data processing apparatus according to an embodiment of the present application is shown, which may specifically include the following modules:
a sleep switching module 602, configured to detect a signal corresponding to the first communication object, and send an instruction to the second communication object in response to the signal, so as to switch a connection state between the second communication object and an earphone to a sleep state.
A switching communication module 604, configured to switch a connection state of the first communication object and the headset to an operating state, so as to perform communication interaction.
In summary, the earphone is connected with a first communication object and a second communication object, the connection state of the earphone and the first communication object is a dormant state, the connection state of the earphone and the second communication object is an operating 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 so as to switch the connection state of the second communication object and the earphone to the dormant state and switch the connection state of the first communication object and the earphone to the operating state for communication interaction, so that the earphone can support interactive communication of multiple communication objects and can automatically switch between different communication objects connected to the earphone, and a user can use the earphone to conveniently execute required processing through different communication objects.
Referring to fig. 7, a block diagram of an alternative embodiment of a data processing apparatus according to the present application is shown, and specifically, the data processing apparatus may include the following modules:
a voice processing module 606, configured to receive voice data and identify the voice data; and if the recognition result comprises a setting word, generating a signal of the first communication object according to the recognition result and the setting word.
A sleep switching module 602, configured to detect a signal corresponding to the first communication object, and send an instruction to the second communication object in response to the signal, so as to switch a connection state between the second communication object and an earphone to a sleep state.
A switching communication module 604, configured to switch a connection state of the first communication object and the headset to an operating state, so as to perform communication interaction.
The working state is a state that the earphone and the communication object communicate based on a first protocol and a second protocol, the dormant state is a state that the earphone and the communication object communicate based on the first protocol, and the second protocol comprises a protocol supporting audio data communication.
The sleep switching module 602 is configured to detect a signal corresponding to the first communication object, and send an instruction to the second communication object in response to the signal, so as to disconnect communication between the second communication object and the headset based on a second protocol.
A switching communication module 604, configured to establish communication based on a second protocol between the headset and the first communication object, and perform communication of audio data.
The signal comprises a query message; the switching communication module 604 is configured to send the query message to the first communication object, so that the first communication object performs a query operation according to the query message to determine a corresponding query response message; and receiving the query response message, and playing the query response message through an earphone.
The signal includes a call message, and the handover communication module 604 is configured to connect to a call of the first communication object; and outputting the voice data sent by the first communication object through the earphone, and/or sending the received voice data to the first communication object.
The switching communication module 604 is further configured to switch the connection state between the first communication object and the earphone from the working state to the dormant state, switch the connection state between the second communication object and the earphone from the dormant state to the working state, and continue to perform communication interaction with the earphone after the signal corresponding to the first communication object is executed in a communication interaction manner. The switching communication module 604 is configured to, after the signal of the first communication object is executed in a communication interaction corresponding to the second protocol, disconnect the communication between the first communication object and the headset based on the second protocol, so that the connection state of the first communication object and the headset is switched from the working state to the sleep state, reestablish the communication between the second communication object and the headset based on the second protocol, so that the connection state of the second communication object and the headset is switched from the sleep state to the working state, and continue to perform the communication interaction of the audio data with the headset.
In an alternative embodiment, the first communication object comprises a headset accessory having a wireless communication module comprising a bluetooth communication module and a network communication module. The headset accessory includes a headset receptacle including a headset charging box. The first protocol comprises a bluetooth low energy, BLE, protocol and the second protocol comprises a bluetooth audio transmission model protocol A2 DP.
In another alternative embodiment, the second communication object comprises a headset accessory having a wireless communication module comprising a bluetooth communication module and a network communication module. The headset accessory includes a headset receptacle including a headset charging box. The first protocol comprises a BLE protocol and the second protocol comprises an A2DP protocol or a bluetooth hands-free protocol HFP.
On the basis of the above embodiments, the present embodiment further provides a data processing apparatus, which is applied to electronic devices such as earphones. The headset and the headset accessory with the wireless communication module are communicated based on a BLE protocol, so that the connection state of the headset and the headset accessory is in a dormant state, and the connection state of the headset and the terminal equipment is in a working state when the headset and the terminal equipment are communicated based on the BLE protocol and an A2DP protocol.
Referring to fig. 8, a block diagram of an embodiment of a data processing apparatus applied to a headset according to the present application is shown, and may specifically include the following modules:
the processing module 802 is configured to receive voice data, and recognize a signal corresponding to the headset accessory according to the voice data.
A communication module 804, configured to send, in response to the signal, an instruction to the terminal device to disconnect communication between the headset and the terminal device based on an A2DP protocol, so that a connected state is switched to a dormant state; and establishing communication based on the A2DP protocol between the headset accessory and the headset, switching the connection state into the working state, and carrying out audio data communication interaction with the headset accessory.
Wherein the headset accessory comprises a headset receptacle comprising a headset charging box.
The signal comprises a query message; the communication module 804 is configured to send the query message to the headset accessory, so that the headset accessory executes a query operation through a built-in wireless communication module according to the query message; and receiving a query response message corresponding to the query operation, and playing the query response message through an earphone.
The wireless communication module comprises a Bluetooth communication module and a network communication module, the earphone accessory is connected with the earphone through the Bluetooth communication module, and the earphone accessory executes inquiry operation through the network communication module.
On the basis of the above embodiment, this embodiment further provides a data processing device, which is applied to an earphone accessory with a wireless communication module, where the earphone accessory and the earphone communicate based on a BLE protocol, and a connection state of the earphone accessory and the earphone is a sleep state.
Referring to fig. 9, a block diagram of an embodiment of a data processing apparatus applied to a headset accessory according to the present application is shown, which may specifically include the following modules:
a receiving module 902, configured to receive an inquiry message of a headset after establishing communication between the headset accessory and the headset based on an A2DP protocol.
And the query module 904 is configured to execute a query operation corresponding to the query message through the wireless communication module, and determine a corresponding query response message.
A feedback module 906, configured to send the query response message to the headset.
The wireless communication module comprises a Bluetooth communication module and a network communication module, the earphone accessory is connected with the earphone through the Bluetooth communication module, and the earphone accessory executes inquiry operation through the network communication module. The headset accessory includes a headset receptacle including a headset charging box.
On the basis of the foregoing embodiment, this embodiment further provides a data processing apparatus, which is applied to a terminal device, where the connection state between the terminal device and an earphone is in a sleep state if the terminal device and the earphone communicate based on a BLE protocol, and the connection state between the earphone and an accessory of the earphone communicates based on a BLE protocol and an A2DP protocol if the accessory of the earphone and the earphone communicates based on the BLE protocol and the A2DP protocol is in an operating state.
Referring to fig. 10, a block diagram of an embodiment of a data processing apparatus applied to a terminal device according to the present application is shown, and specifically, the data processing apparatus may include the following modules:
a call processing module 1002, configured to detect a call message; and sending an instruction to the headset accessory in response to the call message so as to disconnect the communication between the headset accessory and the headset based on the A2DP protocol, so that the connection state of the headset accessory and the headset is switched into the dormant state.
A call module 1004, configured to connect a call corresponding to the call message after HFP protocol-based communication is established between the terminal device and the headset (a connection state of the terminal device and the headset is switched to an operating state); and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
On the basis of the foregoing embodiment, this embodiment further provides a data processing apparatus, which is applied to a terminal device, where the connection state between the terminal device and an earphone is in a sleep state if the terminal device and the earphone communicate based on a BLE protocol, and the connection state between the earphone and an accessory of the earphone communicates based on a BLE protocol and an A2DP protocol if the accessory of the earphone and the earphone communicates based on the BLE protocol and the A2DP protocol is in an operating state.
Referring to fig. 11, a block diagram of another embodiment of the data processing apparatus applied to a terminal device in the present application is shown, which may specifically include the following modules:
a call detection module 1102, configured to detect a call message; and sending the call message to the headset, so that the headset sends an instruction to the headset accessory in the working state, and disconnecting the communication between the headset accessory and the headset based on the A2DP protocol, so that the connection state of the headset accessory and the headset is switched into the dormant state.
A call communication module 1104, configured to connect a call corresponding to the call message after HFP protocol-based communication is established between the terminal device and the headset (a connection state of the terminal device and the headset is switched to an operating state); and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
On the basis of the foregoing embodiment, this embodiment further provides a data processing apparatus, which is applied to a terminal device, where the connection state between the terminal device and an earphone is in a sleep state if the terminal device and the earphone communicate based on a BLE protocol, and the connection state between the earphone and an accessory of the earphone communicates based on a BLE protocol and an A2DP protocol if the accessory of the earphone and the earphone communicates based on the BLE protocol and the A2DP protocol is in an operating state.
Referring to fig. 12, a block diagram of a data processing apparatus applied to a terminal device according to another embodiment of the present application is shown, and specifically, the data processing apparatus may include the following modules:
an audio processing module 1202, configured to detect an audio play message; and sending an instruction to the headset accessory in response to the audio playing message to disconnect the communication between the headset accessory and the headset based on the A2DP protocol, so that the connection state of the headset accessory and the headset is switched into the dormant state.
An audio interaction module 1204, configured to, after communication based on an A2DP protocol is established between the terminal device and the headset (a connection state of the terminal device and the headset is switched to a working state), transmit audio data corresponding to the audio playing message, so as to play the audio data through the headset.
On the basis of the foregoing embodiment, this embodiment further provides a data processing apparatus, which is applied to a terminal device, where the connection state between the terminal device and an earphone is in a sleep state if the terminal device and the earphone communicate based on a BLE protocol, and the connection state between the earphone and an accessory of the earphone communicates based on a BLE protocol and an A2DP protocol if the accessory of the earphone and the earphone communicates based on the BLE protocol and the A2DP protocol is in an operating state.
Referring to fig. 13, a block diagram of a data processing apparatus of another embodiment applied to a terminal device in the present application is shown, which may specifically include the following modules:
an audio detection module 1302, configured to detect an audio playback message; and sending the audio playing message to the earphone, so that the earphone sends an instruction to the earphone accessory in the working state, and the communication between the earphone accessory and the earphone based on the A2DP protocol is disconnected, so that the connection state of the earphone accessory and the earphone is switched into the dormant state.
An audio communication module 1304, configured to, after communication based on an A2DP protocol is established between the terminal device and the headset (the connection state of the terminal device and the headset is switched to the working state), transmit audio data corresponding to the audio playing message, so as to play the audio data through the headset.
On the basis of the above embodiments, the present embodiment further provides a data processing apparatus, which is applied to electronic devices such as a terminal device, an earphone, and an earphone accessory with a wireless communication module. The earphone and the first communication object communicate based on a first protocol, the connection state of the earphone and the first communication object is a dormant state, the earphone and the second communication object communicate based on the first protocol and a second protocol, the connection state of the earphone and the second communication object is a working state, and the second protocol comprises a protocol supporting audio data interaction.
Referring to fig. 14, a block diagram of another data processing apparatus according to another embodiment of the present application is shown, which may specifically include the following modules:
a protocol disconnection module 1402, configured to detect a signal corresponding to the first communication object, and send, in response to the signal, an instruction to the second communication object to disconnect communication between the second communication object and the headset based on a second protocol.
A protocol communication module 1404, configured to establish communication based on a second protocol between the headset and the first communication object, and perform interaction of audio data.
According to the embodiment of the application, the first communication object can be awakened based on voice, the communication of the earphone is preempted, the communication object is enabled to execute the required query service, the corresponding result is played through the earphone, then the communication object is switched back, a user does not need to manually switch the communication object, the operation is simpler and more convenient, and the efficiency is higher.
After the communication object such as the mobile phone is connected with the earphone, even if the communication object is in a dormant state, the communication of the earphone can be preempted for the message such as the call needing the earphone, the call is carried out through the earphone, and the communication before the call is switched back after the call is finished, so that the use of a user is facilitated.
The wireless communication module is arranged on accessories such as the earphone box and the like, so that a user can obtain required services through a network under the condition that terminal equipment such as a mobile phone is not used or is inconvenient to use, traversal is provided for the user, and novel services are also provided.
The present application further provides a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device, the device may execute instructions (instructions) of method steps in this application.
Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the application, the electronic device includes a device corresponding to a communication object, such as a terminal device, an earphone accessory, an intelligent sound box, a television and other various devices.
Embodiments of the present disclosure may be implemented as an apparatus for performing the desired configuration using any suitable hardware, firmware, software, or any combination thereof, and the apparatus may include devices corresponding to communication objects, such as various types of electronic devices, e.g., a terminal device, a headset accessory, a smart speaker, a television, and the like. Fig. 15 schematically illustrates an example apparatus 1500 that may be used to implement various embodiments described herein.
For one embodiment, fig. 15 illustrates an example apparatus 1500 having one or more processors 1502, a control module (chipset) 1504 coupled to at least one of the processor(s) 1502, a memory 1506 coupled to the control module 1504, a non-volatile memory (NVM)/storage 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.
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 or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1500 can be a device corresponding to the communication object in the embodiments of the present application, such as a terminal device, an earphone accessory, a smart speaker, a television, and other various types of devices.
In some embodiments, the apparatus 1500 may include one or more computer-readable media (e.g., the memory 1506 or the NVM/storage 1508) having instructions 1514 and one or more processors 1502 configured to execute the instructions 1514 to implement modules to perform the actions described in this disclosure.
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.
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.
The memory 1506 may be used, for example, to load and store data and/or instructions 1514 for the apparatus 1500. For one embodiment, memory 1506 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1506 may comprise a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, the control module 1504 may include one or more input/output controllers to provide an interface to the NVM/storage 1508 and the input/output device(s) 1510.
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 Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 1508 may include storage resources that are physically part of the device on which apparatus 1500 is installed, or it may be accessible by the device and need not be part of the device. For example, the NVM/storage 1508 may be accessible over a network via the input/output device(s) 1510.
The input/output device(s) 1510 may provide an interface for the apparatus 1500 to communicate with any other suitable device, and the input/output device(s) 1510 may include communication components, audio components, sensor components, and the like. The network interface 1512 may provide an interface for the apparatus 1500 to communicate over 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, such as access to a communication standard-based wireless network, e.g., WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 1502 may be packaged together with logic for one or more controller(s) (e.g., memory controller module) of the control module 1504. For one embodiment, at least one of the processor(s) 1502 may be packaged together with logic for one or more controller(s) of 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 logic for one or more controller(s) of control module 1504 to form a system on a chip (SoC).
In various embodiments, the apparatus 1500 may be, but is not limited to being: terminal devices such as servers, desktop computing devices, or mobile computing devices (e.g., laptop computing devices, handheld computing devices, tablets, netbooks, etc.), may also include various devices such as headsets, headset accessories, smart speakers, televisions, and so on. In various embodiments, apparatus 1500 may have more or fewer components and/or different architectures. For example, in some embodiments, 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 speakers.
The detection device may adopt a main control chip as a processor or a control module, the sensor data, the position information and the like are stored in a memory or an NVM/storage device, the sensor group may serve as an input/output device, and the communication interface may include a network interface.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing detailed description has provided a data processing method and apparatus, an electronic device and a storage medium, and the principles and embodiments of the present application are described herein using specific examples, which are merely used to help understand the method and its core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (50)

1. A data processing method is characterized in that the connection state of an earphone and a first communication object is a dormant state, and the connection state of the earphone and a second communication object is a working state, and the method comprises the following steps:
detecting a signal corresponding to the first communication object, responding to the signal, and sending an instruction to the second communication object so as to switch the connection state of the second communication object and an earphone into a dormant state;
and switching the connection state of the first communication object and the earphone into a working state so as to carry out communication interaction.
2. The method of claim 1, wherein the working state is a state in which the headset and the communication object communicate based on a first protocol and a second protocol, and the dormant state is a state in which the headset and the communication object communicate based on the first protocol, and the second protocol comprises a protocol supporting audio data communication.
3. The method of claim 1, further comprising:
an audio input unit of the earphone receives voice data and identifies the voice data;
and if the recognition result comprises a setting word, generating a signal of the first communication object according to the recognition result and the setting word.
4. The method of claim 3, wherein the signal comprises a query message; the step of performing communication interaction includes:
the earphone sends the query message to the first communication object so that the first communication object executes query operation according to the query message and determines a corresponding query response message;
and receiving the query response message, and playing the query response message through an earphone.
5. The method of claim 1, wherein the signal comprises a call message, and wherein the step of performing a communication interaction comprises:
connecting the call of the first communication object;
and outputting the voice data sent by the first communication object through the earphone, and/or sending the received voice data to the first communication object.
6. The method of claim 2, wherein switching the connection state of the second communication object to the headset to the sleep state comprises: disconnecting communication between the second communication object and the headset based on a second protocol.
7. The method of claim 2, wherein switching the connection state of the first communication object with the headset to an active state for communication interaction comprises:
and establishing communication based on a second protocol between the earphone and the first communication object, and performing audio data communication.
8. The method of claim 2, further comprising:
and after the signal corresponding to the first communication object is executed in a communication interaction manner, switching the connection state of the first communication object and the earphone from the working state back to the dormant state, switching the connection state of the second communication object and the earphone from the dormant state back to the working state, and continuing to perform communication interaction with the earphone.
9. The method of any of claims 1-4, 6-8, wherein the first communication object comprises a headset accessory having a wireless communication module, the wireless communication module comprising a bluetooth communication module and a network communication module.
10. The method of claim 9, wherein the headset accessory comprises a headset receptacle comprising a headset charging box.
11. The method according to claim 10, wherein the first protocol comprises a Bluetooth Low Energy (BLE) protocol and the second protocol comprises a Bluetooth Audio Transmission model protocol A2 DP.
12. The method of any of claims 1, 5-8, wherein the second communication object comprises a headset accessory having a wireless communication module, the wireless communication module comprising a bluetooth communication module and a network communication module.
13. The method of claim 12, wherein the headset accessory comprises a headset receptacle comprising a headset charging box.
14. The method according to claim 10, wherein the first protocol comprises a BLE protocol and the second protocol comprises an A2DP protocol or a bluetooth hands free protocol HFP.
15. A data processing method applied to a headset, wherein the headset and a headset accessory with a wireless communication module communicate based on a BLE protocol, and the headset and a terminal device communicate based on the BLE protocol and an A2DP protocol, the method comprising:
receiving voice data, and identifying a signal corresponding to the earphone accessory according to the voice data;
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;
communication based on the A2DP protocol is established between the headset accessory and the headset, and audio data is communicated with the headset accessory.
16. The method of claim 15, wherein the headset accessory comprises a headset receptacle comprising a headset charging box.
17. The method of claim 15, wherein the signal comprises a query message; the communicatively interacting with the headset accessory includes:
the earphone sends the inquiry message to the earphone accessory so that the earphone accessory executes inquiry operation through a built-in wireless communication module according to the inquiry message;
and receiving a query response message corresponding to the query operation, and playing the query response message through an earphone.
18. The method of claim 17, wherein the wireless communication module comprises a bluetooth communication module and a network communication module, wherein the headset accessory is connected to the headset through the bluetooth communication module, and wherein the headset accessory performs an inquiry operation through the network communication module.
19. A data processing method applied to a headset accessory having a wireless communication module, wherein the headset accessory and the headset communicate based on a BLE protocol, the method comprising:
receiving a headset query message after establishing communication between the headset accessory and the headset based on an A2DP protocol;
executing the query operation corresponding to the query message through a wireless communication module, and determining a corresponding query response message;
and sending the inquiry response message to the earphone.
20. The method of claim 19, wherein the wireless communication module comprises a bluetooth communication module and a network communication module, wherein the headset accessory is connected to the headset through the bluetooth communication module, and wherein the headset accessory performs an inquiry operation through the network communication module.
21. The method of claim 20, wherein the headset accessory comprises a headset receptacle comprising a headset charging box.
22. A data processing method is applied to a terminal device, the terminal device and a headset communicate based on a BLE protocol, the headset and a headset accessory communicate based on the BLE protocol and an A2DP protocol, and the method comprises the following steps:
detecting a call message;
in response to the talk message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol;
after communication based on an HFP protocol is established between the terminal equipment and the earphone, a call corresponding to the call message is connected;
and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
23. A data processing method is applied to a terminal device, the terminal device and a headset communicate based on a BLE protocol, the headset and a headset accessory communicate based on the BLE protocol and an A2DP protocol, and the method comprises the following steps:
detecting a call message;
sending the call message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol;
after communication based on an HFP protocol is established between the terminal equipment and the earphone, a call corresponding to the call message is connected;
and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
24. A data processing method is applied to a terminal device, the terminal device and a headset communicate based on a BLE protocol, the headset and a headset accessory communicate based on the BLE protocol and an A2DP protocol, and the method comprises the following steps:
detecting an audio play message;
in response to the audio playback message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol;
after communication based on an A2DP protocol is established between the terminal device and the earphone, audio data corresponding to the audio playing message is transmitted, so that the audio data is played through the earphone.
25. A data processing method is applied to a terminal device, the terminal device and a headset communicate based on a BLE protocol, the headset and a headset accessory communicate based on the BLE protocol and an A2DP protocol, and the method comprises the following steps:
detecting an audio play message;
sending the audio playing message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol;
after communication based on an A2DP protocol is established between the terminal device and the earphone, audio data corresponding to the audio playing message is transmitted, so that the audio data is played through the earphone.
26. A data processing method, wherein a headset communicates with a first communication object based on a first protocol, and wherein the headset communicates with a second communication object based on the first protocol and a second protocol, the second protocol comprising a protocol supporting audio data interaction; the method comprises the following steps:
detecting a signal corresponding to the first communication object, and sending an instruction to the second communication object in response to the signal so as to disconnect the communication between the second communication object and the earphone based on a second protocol;
and establishing communication based on a second protocol between the earphone and the first communication object, and performing interaction of audio data.
27. A data processing apparatus, wherein a connection state between a headset and a first communication object is a sleep state, and a connection state between the headset and a second communication object is an operating state, the apparatus comprising:
the switching dormancy module is used for detecting a signal corresponding to the first communication object, responding to the signal, and sending an instruction to the second communication object so as to switch the connection state of the second communication object and the earphone into a dormancy state;
and the switching communication module is used for switching the connection state of the first communication object and the earphone into a working state so as to carry out communication interaction.
28. A data processing apparatus applied to a headset, the headset communicating with a headset accessory having a wireless communication module based on a BLE protocol, the headset communicating with a terminal device based on the BLE protocol and an A2DP protocol, the apparatus comprising:
the processing module is used for receiving voice data and identifying a signal corresponding to the earphone accessory according to the voice data;
the communication module is used for responding to the signal and sending an instruction to the terminal equipment so as to disconnect the communication between the earphone and the terminal equipment based on the A2DP protocol; communication based on the A2DP protocol is established between the headset accessory and the headset, and audio data is communicated with the headset accessory.
29. A data processing apparatus applied to a headset accessory having a wireless communication module, the headset accessory communicating with a headset based on a BLE protocol, the apparatus comprising:
a receiving module, configured to receive an inquiry message of the headset after a connection state of communication based on an A2DP protocol between the headset accessory and the headset is switched to a working state;
the query module is used for executing query operation corresponding to the query message through the wireless communication module and determining a corresponding query response message;
and the feedback module is used for sending the inquiry response message to the earphone.
30. A data processing apparatus, for use in a terminal device, the terminal device communicating with a headset based on a BLE protocol, the headset communicating with a headset accessory based on the BLE protocol and an A2DP protocol, the apparatus comprising:
the call processing module is used for detecting a call message; in response to the talk message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol;
the communication module is used for connecting the communication corresponding to the communication message after the communication based on the HFP protocol is established between the terminal equipment and the earphone; and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
31. A data processing apparatus, for use in a terminal device, the terminal device communicating with a headset based on a BLE protocol, the headset communicating with a headset accessory based on the BLE protocol and an A2DP protocol, the apparatus comprising:
the call detection module is used for detecting a call message; sending the call message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol;
the communication module is used for connecting the communication corresponding to the communication message after the communication based on the HFP protocol is established between the terminal equipment and the earphone; and sending the voice data corresponding to the call to the earphone, and/or receiving the voice data of the earphone.
32. A data processing apparatus, for use in a terminal device, the terminal device communicating with a headset based on a BLE protocol, the headset communicating with a headset accessory based on the BLE protocol and an A2DP protocol, the apparatus comprising:
the audio processing module is used for detecting an audio playing message; in response to the audio playback message, sending an instruction to a headset accessory to disconnect communication between the headset accessory and a headset based on an A2DP protocol;
and the audio interaction module is used for transmitting audio data corresponding to the audio playing message after communication based on an A2DP protocol is established between the terminal equipment and the earphone, so that the audio data is played through the earphone.
33. A data processing apparatus, for use in a terminal device, the terminal device communicating with a headset based on a BLE protocol, the headset communicating with a headset accessory based on the BLE protocol and an A2DP protocol, the apparatus comprising:
the audio detection module is used for detecting an audio playing message; sending the audio playing message to the headset, so that the headset sends an instruction to the headset accessory in an operating state, and communication between the headset accessory and the headset is disconnected according to an A2DP protocol;
and the audio communication module is used for transmitting audio data corresponding to the audio playing message after communication based on an A2DP protocol is established between the terminal equipment and the earphone, so that the audio data can be played through the earphone.
34. A data processing apparatus, wherein a headset communicates with a first communication object based on a first protocol, wherein the headset communicates with a second communication object based on the first protocol and a second protocol, wherein the second protocol comprises a protocol that supports audio data interaction; the device comprises:
the protocol disconnection module is used for detecting a signal corresponding to the first communication object and sending an instruction to the second communication object in response to the signal so as to disconnect the communication between the second communication object and the earphone based on a second protocol;
and the protocol communication module is used for establishing communication based on a second protocol between the earphone and the first communication object and carrying out interaction of audio data.
35. An electronic device, comprising: a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a data processing method as claimed in one or more of claims 1-14.
36. One or more machine readable media having executable code stored thereon that, when executed, causes a processor to perform a data processing method as recited in one or more of claims 1-14.
37. An electronic device, comprising: a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a data processing method as claimed in one or more of claims 15-18.
38. One or more machine readable media having executable code stored thereon that, when executed, causes a processor to perform a data processing method as recited in one or more of claims 15-18.
39. An electronic device, comprising: a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a data processing method as claimed in one or more of claims 19-21.
40. One or more machine readable media having executable code stored thereon that, when executed, causes a processor to perform a data processing method as recited in one or more of claims 19-21.
41. An electronic device, comprising: a processor; and
a memory having executable code stored thereon that, when executed, causes the processor to perform the data processing method of claim 22.
42. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the data processing method of claim 22.
43. An electronic device, comprising: a processor; and
a memory having executable code stored thereon, which when executed, causes the processor to perform the data processing method of claim 23.
44. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the data processing method of claim 23.
45. An electronic device, comprising: a processor; and
a memory having executable code stored thereon that, when executed, causes the processor to perform the data processing method of claim 24.
46. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the data processing method of claim 24.
47. An electronic device, comprising: a processor; and
a memory having executable code stored thereon that, when executed, causes the processor to perform the data processing method of claim 25.
48. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the data processing method of claim 25.
49. An electronic device, comprising: a processor; and
a memory having executable code stored thereon that, when executed, causes the processor to perform the data processing method of claim 26.
50. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the data processing method of claim 26.
CN201910708574.7A 2019-08-01 2019-08-01 Data processing method, device, equipment and storage medium Pending CN112312368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910708574.7A CN112312368A (en) 2019-08-01 2019-08-01 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910708574.7A CN112312368A (en) 2019-08-01 2019-08-01 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112312368A true CN112312368A (en) 2021-02-02

Family

ID=74486458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910708574.7A Pending CN112312368A (en) 2019-08-01 2019-08-01 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112312368A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245269A (en) * 2021-11-15 2022-03-25 新线科技有限公司 Earphone interaction method, earphone kit, earphone component and storage medium
WO2024020986A1 (en) * 2022-07-29 2024-02-01 Oppo广东移动通信有限公司 Method and apparatus for determining connection state of device, and chip and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015139642A1 (en) * 2014-03-20 2015-09-24 努比亚技术有限公司 Bluetooth headset noise reduction method, device and system
CN105101058A (en) * 2015-07-13 2015-11-25 惠州Tcl移动通信有限公司 Method and equipment for realizing cooperative works of multiple Bluetooth headsets
CN106911857A (en) * 2017-03-08 2017-06-30 青岛中云时代信息技术有限公司 A kind of speech data exchange method and device
US20180115747A1 (en) * 2016-10-20 2018-04-26 Plantronics, Inc. Video Headset
CN108377482A (en) * 2016-11-07 2018-08-07 中兴通讯股份有限公司 A kind of method, apparatus, system and the equipment of terminal connection bluetooth equipment
CN109243445A (en) * 2018-09-30 2019-01-18 Oppo广东移动通信有限公司 Sound control method, device, electronic equipment and storage medium
US20190180740A1 (en) * 2017-12-12 2019-06-13 Amazon Technologies, Inc. Architectures and topologies for vehicle-based, voice-controlled devices
CN109890021A (en) * 2019-03-06 2019-06-14 西安易朴通讯技术有限公司 Bluetooth headset switching method, bluetooth headset and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015139642A1 (en) * 2014-03-20 2015-09-24 努比亚技术有限公司 Bluetooth headset noise reduction method, device and system
CN105101058A (en) * 2015-07-13 2015-11-25 惠州Tcl移动通信有限公司 Method and equipment for realizing cooperative works of multiple Bluetooth headsets
US20180115747A1 (en) * 2016-10-20 2018-04-26 Plantronics, Inc. Video Headset
CN108377482A (en) * 2016-11-07 2018-08-07 中兴通讯股份有限公司 A kind of method, apparatus, system and the equipment of terminal connection bluetooth equipment
CN106911857A (en) * 2017-03-08 2017-06-30 青岛中云时代信息技术有限公司 A kind of speech data exchange method and device
US20190180740A1 (en) * 2017-12-12 2019-06-13 Amazon Technologies, Inc. Architectures and topologies for vehicle-based, voice-controlled devices
CN109243445A (en) * 2018-09-30 2019-01-18 Oppo广东移动通信有限公司 Sound control method, device, electronic equipment and storage medium
CN109890021A (en) * 2019-03-06 2019-06-14 西安易朴通讯技术有限公司 Bluetooth headset switching method, bluetooth headset and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245269A (en) * 2021-11-15 2022-03-25 新线科技有限公司 Earphone interaction method, earphone kit, earphone component and storage medium
WO2024020986A1 (en) * 2022-07-29 2024-02-01 Oppo广东移动通信有限公司 Method and apparatus for determining connection state of device, and chip and storage medium

Similar Documents

Publication Publication Date Title
US8103315B2 (en) Portable terminal device
EP2188903B1 (en) Methods and devices for automatic multiple pairing of bluetooth devices
US10957319B2 (en) Speech processing method, device and computer readable storage medium
WO2018032455A1 (en) Bluetooth communication method and terminal
CN109548184B (en) Method and device for connecting mobile terminal and Bluetooth device and mobile terminal
US10820087B2 (en) Wireless audio source switching
WO2012142794A1 (en) Method for pairing bluetooth accessory with bluetooth device, and bluetooth accessory
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
CN103391121A (en) Method for pairing and connecting multiple devices and Bluetooth device
TW201540042A (en) Remote control device, telephone communication device, telephone communication system and telephone communication method
JP5849857B2 (en) Near field communication device
CN112312368A (en) Data processing method, device, equipment and storage medium
CN117062256B (en) Cross-equipment service transfer method, electronic equipment and system
WO2013000213A1 (en) Audio data processing method and device
US10535360B1 (en) Phone stand using a plurality of directional speakers
JP2015002394A (en) Information processing apparatus and computer program
CN113709906B (en) Wireless audio system, wireless communication method and equipment
CN113395576B (en) Scene switching method, computer equipment and storage medium
CN113810887B (en) Bluetooth protocol connection method and device, storage medium and related equipment
CN202145660U (en) Bluetooth sound box with voice call transfer processing function
CN114363876A (en) Connection establishing method, device, equipment, storage medium and program product
CN110351690B (en) Intelligent voice system and voice processing method thereof
CN113727463A (en) Device connection method, device, electronic device and storage medium
KR101945174B1 (en) Program Stored in Recording Medium for Supporting Automatic Response Service
CN111556406A (en) Audio processing method, audio processing device and earphone

Legal Events

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