CN115842933A - Data interaction method, device and computer-readable storage medium - Google Patents

Data interaction method, device and computer-readable storage medium Download PDF

Info

Publication number
CN115842933A
CN115842933A CN202211486455.XA CN202211486455A CN115842933A CN 115842933 A CN115842933 A CN 115842933A CN 202211486455 A CN202211486455 A CN 202211486455A CN 115842933 A CN115842933 A CN 115842933A
Authority
CN
China
Prior art keywords
data
remote controller
television
wireless
earphone
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
CN202211486455.XA
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202211486455.XA priority Critical patent/CN115842933A/en
Publication of CN115842933A publication Critical patent/CN115842933A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a data interaction method, data interaction equipment and a computer readable storage medium, wherein the data interaction method is applied to a remote controller and comprises the following steps: receiving first data sent by a wireless earphone, and sending the first data to a television; and receiving second data sent by the television, and sending the second data to the wireless earphone. The invention realizes the improvement of the experience of the user in watching the television.

Description

Data interaction method, data interaction equipment and computer-readable storage medium
Technical Field
The present invention relates to the field of electronic device technologies, and in particular, to a data interaction method and device, and a computer-readable storage medium.
Background
The television is one of the common household appliances in people's life. When a user watches television, the user usually needs to use a remote controller to control the volume of the television and the television programs watched. At present, most of traditional infrared remote controllers control a set top box or a television by emitting infrared codes or are connected with the set top box or the television for interaction through a Bluetooth remote controller, and the interaction mode enables a user to control the program playing of the television by controlling the remote controller when watching the television, so that the convenience of watching the television by the user is reduced, and the experience of watching the television by the user is influenced.
Disclosure of Invention
The invention mainly aims to provide a data interaction method, data interaction equipment and a computer readable storage medium, and aims to provide a scheme for performing data interaction among a wireless earphone, a remote controller and a television so as to improve the experience of a user when watching television.
In order to achieve the above object, the present invention provides a data interaction method, which is applied to a remote controller, and comprises the following steps:
receiving first data sent by a wireless earphone, and sending the first data to a television;
and receiving second data sent by the television, and sending the second data to the wireless earphone.
Optionally, the remote controller includes an earphone bin, and before the step of receiving first data sent by the wireless earphone and sending the first data to the television, the remote controller further includes:
detecting whether the wireless headset exits the headset bay;
establishing a communication connection with the wireless headset when it is determined that the wireless headset exits the headset bay.
Optionally, the remote controller includes a giant magnetoresistance detection module, and the step of detecting whether the wireless headset leaves the headset bin includes:
detecting whether the current resistance value of the giant magnetoresistance detection module is within a preset resistance value range;
and if the current resistance value is not within the preset resistance value range, determining that the wireless earphone leaves the earphone bin.
In order to achieve the above object, the present invention further provides a data interaction method, where the data interaction method is applied to a wireless headset, and the data interaction method includes the following steps:
sending first data to a remote controller so that the remote controller can send the first data to a television;
and receiving second data sent by the remote controller, wherein the remote controller receives the second data sent by the television and sends the second data to the wireless earphone.
Optionally, the wireless headset includes an acceleration sensor and a proximity sensor, and before the step of sending the first data to the remote controller, the method further includes:
detecting whether the acceleration of the wireless headset changes or not through the acceleration sensor;
if the acceleration of the wireless earphone changes, detecting whether the proximity acquired by the proximity sensor is within a preset proximity range;
and if the proximity is within the preset proximity range, determining that the wireless earphone is in a wearing state, and executing the step of sending the first data to the remote controller.
Optionally, the first data includes a control instruction, and before the step of sending the first data to the remote controller, the method further includes:
receiving a user instruction triggered by a user;
analyzing the user instruction into the control instruction according to a preset rule;
the step of sending the first data to the remote controller comprises:
and sending the control instruction to the remote controller so that the remote controller can send the control instruction to a television, and the television plays according to the control instruction.
In order to achieve the above object, the present invention further provides a data interaction method, where the data interaction method is applied to a television, and the data interaction method includes the following steps:
receiving first data sent by a remote controller, wherein the remote controller receives the first data sent by a wireless earphone and sends the first data to the television;
and sending second data to the remote controller so that the remote controller can send the second data to the wireless earphone.
Optionally, the first data includes audio data, and before the step of sending the second data to the remote controller, the method further includes:
detecting whether a Bluetooth transmission instruction sent by the remote controller is received;
the step of transmitting the second data to the remote controller includes:
and if the Bluetooth transmission instruction is determined to be received, sending the audio data to the remote controller so that the remote controller can send the audio data to the wireless earphone, and the wireless earphone plays the audio data according to the audio data.
In order to achieve the above object, the present invention further provides a data interaction device, including: the data interaction method comprises a memory, a processor and a data interaction program stored on the memory and capable of running on the processor, wherein the data interaction program realizes the steps of the data interaction method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, which stores a data interaction program, and the data interaction program, when executed by a processor, implements the steps of the data interaction method as described above.
The remote controller receives first data sent by the wireless earphone and sends the first data to the television, receives second data sent by the television and sends the second data to the wireless earphone.
Compared with the method that the remote controller is directly used for data interaction with the television, the method and the device have the advantages that data interaction is carried out between the wireless earphone and the television through the remote controller, so that a user can control the television through the wireless earphone, the user can control the television at a longer distance from the television, the moving range of the user when watching the television is enlarged, meanwhile, the user does not need to be limited to using the remote controller to control the television, the interaction mode of controlling the television by the user is enriched, the convenience of watching the television by the user is improved, and the experience of watching the television by the user is improved.
Compared with the method that the wireless earphone is directly used for data interaction with the television, the method and the device for data interaction between the wireless earphone and the television through the remote controller avoid the situation that the wireless earphone cannot control the television due to abnormal connection between the wireless earphone and the television, improve the success rate of controlling the television by the user through the wireless earphone, improve the experience of controlling the television by the user through the wireless earphone, and further improve the experience of watching the television by the user.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data interaction method according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a remote controller according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a remote controller according to an embodiment of the present invention;
fig. 5 is a schematic diagram of interaction among a wireless headset, a remote controller, and a television according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that, the data interaction device in the embodiment of the present invention may be a remote controller, a wireless headset, a television, or a set-top box of a television.
As shown in fig. 1, the data interaction device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the device architecture shown in fig. 1 does not constitute a limitation of data interaction devices, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data interaction program. An operating system is a program that manages and controls the hardware and software resources of a device, supporting the execution of data interaction programs, as well as other software or programs. In the device shown in fig. 1, the user interface 1003 is mainly used for data communication with a client; the network interface 1004 is mainly used for establishing communication connection with a server; and the processor 1001 may be configured to call the data interaction program stored in the memory 1005 and perform the following operations:
receiving first data sent by a wireless earphone, and sending the first data to a television;
and receiving second data sent by the television, and sending the second data to the wireless earphone.
Further, the remote controller includes an earphone bin, and before the operation of receiving the first data transmitted by the wireless earphone and transmitting the first data to the television, the processor 1001 may be further configured to invoke a data interaction program stored in the memory 1005 and perform the following operations:
detecting whether the wireless headset exits the headset bay;
establishing a communication connection with the wireless headset when it is determined that the wireless headset exits the headset bay.
Further, the remote controller comprises a giant magnetoresistance detection module, and the operation of detecting whether the wireless headset leaves the headset bin comprises:
detecting whether the current resistance value of the giant magnetoresistance detection module is within a preset resistance value range;
and if the current resistance value is not within the preset resistance value range, determining that the wireless earphone leaves the earphone bin.
Further, the processor 1001 may be further configured to call a data interaction program stored in the memory 1005, and perform the following operations:
sending first data to a remote controller so that the remote controller can send the first data to a television;
and receiving second data sent by the remote controller, wherein the remote controller receives the second data sent by the television and sends the second data to the wireless earphone.
Further, the wireless headset comprises an acceleration sensor and a proximity sensor, and before the operation of sending the first data to the remote controller, the processor 1001 may be further configured to call a data interaction program stored in the memory 1005, and perform the following operations:
detecting whether the acceleration of the wireless earphone changes or not through the acceleration sensor;
if the acceleration of the wireless earphone changes, detecting whether the proximity acquired by the proximity sensor is within a preset proximity range;
and if the proximity is within the preset proximity range, determining that the wireless earphone is in a wearing state, and executing the step of sending the first data to the remote controller.
Further, the first data includes a control instruction, and before the operation of sending the first data to the remote controller, the processor 1001 may be further configured to call a data interaction program stored in the memory 1005, and perform the following operations:
receiving a user instruction triggered by a user;
analyzing the user instruction into the control instruction according to a preset rule;
the operation of sending the first data to the remote controller comprises:
and sending the control instruction to the remote controller so that the remote controller can send the control instruction to a television, and the television plays according to the control instruction.
Further, the processor 1001 may be further configured to call a data interaction program stored in the memory 1005, and perform the following operations:
receiving first data sent by a remote controller, wherein the remote controller receives the first data sent by a wireless earphone and sends the first data to the television;
and sending second data to the remote controller so that the remote controller can send the second data to the wireless earphone.
Further, the first data includes audio data, and before the operation of sending the second data to the remote controller, the processor 1001 may be further configured to call a data interaction program stored in the memory 1005, and perform the following operations:
detecting whether a Bluetooth transmission instruction sent by the remote controller is received;
the step of transmitting the second data to the remote controller includes:
and if the Bluetooth transmission instruction is determined to be received, sending the audio data to the remote controller so that the remote controller can send the audio data to the wireless earphone, and the wireless earphone plays the audio data according to the audio data.
Based on the above structure, various embodiments of the data interaction method are provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data interaction method according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than presented herein.
In this embodiment, an execution subject of the data interaction method may be a remote controller, and in this embodiment, the data interaction method includes:
step S10, receiving first data sent by a wireless earphone, and sending the first data to a television;
in this embodiment, the remote controller establishes a communication connection with the wireless headset, and the remote controller also establishes a communication connection with a television or a set-top box of the television (hereinafter, referred to as a television for convenience). Specifically, in an embodiment, the remote controller may be produced in cooperation with a television, and in this embodiment, the remote controller may have already finished wireless pairing with the television before leaving a factory, and establish communication connection according to user requirements during actual use; in another possible embodiment, the remote controller may also be configured to complete wireless pairing and communication connection with the television set through the user when in use, which is not limited herein.
Further, in an embodiment, the remote controller may include an earphone chamber for placing the wireless earphone, and in this embodiment, the remote controller may establish a communication connection with the wireless earphone after the wireless earphone leaves the earphone chamber; in another embodiment, the remote controller may also establish a communication connection with the wireless headset when the wireless headset leaves the headset cavity and when the wireless headset is placed in the headset cavity, which is not limited herein.
Specifically, in the present embodiment, the wireless headset transmits data (hereinafter referred to as first data to show distinction) to the remote controller. The remote controller receives first data sent by the wireless earphone and sends the first data to the television. The television can process according to the first data after receiving the first data.
In a specific embodiment, the first data may be a control instruction sent by a user through a wireless headset, or may also be voice data sent by the user through the wireless headset, which is not limited herein and may be set according to actual needs of the user. Further, in an embodiment, the wireless headset may transmit the first data when being worn, which is not limited herein.
And S20, receiving second data sent by the television, and sending the second data to the wireless earphone.
In this embodiment, the television set transmits data (hereinafter referred to as second data to show distinction) to the remote controller. The remote controller receives second data sent by the television and sends the second data to the wireless earphone.
Specifically, in one embodiment, the second data transmitted by the television may be audio data of a television program played by the television; in another embodiment, the second data returned by the television according to the first data sent by the wireless headset may also be, for example, when the first data is an instruction for controlling the broadcast time of the television, the second data returned at this time may be time data, which is not limited herein and may be set according to actual requirements.
Further, in a possible embodiment, the remote control may comprise an earphone chamber for housing a wireless earphone. Further, in an embodiment, the earphone chamber may also be used to charge a wireless earphone placed in the earphone chamber, in this embodiment, referring to fig. 3, fig. 3 is a schematic structural diagram of a remote controller according to an embodiment of the present invention, as shown in fig. 3, a power module in the remote controller is connected in series with the bluetooth module and the earphone chamber, respectively, and the bluetooth module is connected in parallel with the earphone chamber.
In this embodiment, before the step S10, the data interaction method further includes:
step S30, detecting whether the wireless earphone leaves the earphone bin;
in this embodiment, the remote controller includes an earphone chamber for placing the wireless earphone, and after the wireless earphone leaves the earphone chamber, the remote controller establishes a communication connection with the wireless earphone.
Specifically, in the present embodiment, it is detected whether the wireless headset leaves the headset bin.
Specifically, in an embodiment, a sensor such as an infrared sensor or a pressure sensor may be disposed on an inner wall of the earphone chamber, and a change in the sensor on the inner wall of the earphone chamber detects whether the wireless earphone leaves the earphone chamber, for example, when the pressure detected by the pressure sensor is not within a preset pressure range, it is determined that the wireless earphone leaves the earphone chamber; in another embodiment, the earphone bin may be further configured to charge a wireless earphone placed in the earphone bin, in this embodiment, whether the wireless earphone leaves the earphone bin may be detected through a change of a current signal of a charging circuit between the earphone bin and the power supply module, and the setting may be specifically performed according to an actual requirement, which is not limited herein.
And S40, when the wireless earphone is determined to leave the earphone bin, establishing communication connection with the wireless earphone.
In this embodiment, when it is determined that the wireless headset leaves the headset bin, the remote controller establishes a communication connection with the wireless headset.
Further, in an embodiment, the earphone chamber may be used to charge a wireless earphone placed in the earphone chamber, and in this embodiment, when the wireless earphone is placed in the earphone chamber, the remote controller may perform data interaction with the wireless earphone through a circuit connection between the bluetooth module and the wireless earphone. For example, in one embodiment, the remote controller may acquire the charging status of the wireless headset through a circuit connection between the bluetooth module and the wireless headset, and display the charging status of the wireless headset.
It should be noted that, in this embodiment, when it is determined that the wireless headset leaves the headset compartment, the remote controller establishes a communication connection with the wireless headset and performs data interaction with the wireless headset. Compared with the wireless earphone which is in the earphone bin and leaves the earphone bin, the wireless earphone can be continuously communicated with the wireless earphone, the power consumption of the Bluetooth module and the wireless earphone can be reduced, the resource consumption is reduced, and the service time of the remote controller and the wireless earphone is prolonged.
Further, in a possible implementation, the remote controller includes a giant magnetoresistance detection module, and the giant magnetoresistance detection module may be configured to detect whether the wireless headset leaves the headset bin. In this embodiment, the earphone chamber can be connected to a power module of the remote controller, and the earphone chamber can charge the wireless earphones placed in the earphone chamber. In this embodiment, the giant magnetoresistance detection module detects a change of the charging circuit of the earphone bin to detect whether the wireless earphone leaves the earphone bin, and specifically, in this embodiment, the giant magnetoresistance detection module is connected in series to a connection circuit between the earphone bin and the power supply module.
In the present embodiment, the step S30 includes:
step S301: detecting whether the current resistance value of the giant magnetoresistance detection module is within a preset resistance value range or not;
when the wireless earphone leaves the earphone bin, the charging circuit between the earphone bin and the power supply module is in an open circuit, and at the moment, the resistance detected by the giant magnetoresistance detection module connected in series with the charging circuit is infinite; when the wireless earphone is in the earphone bin, the charging circuit between the earphone bin and the power supply module is a passage, and at the moment, the resistance value detected by the giant magnetoresistance detection module is in a normal range.
In this embodiment, a resistance range of the giant magnetoresistance detection module is preset (hereinafter referred to as a preset resistance range for convenience of description). In a specific embodiment, the preset resistance value range may be set according to experience of an engineer, or may be obtained through testing in a laboratory, and is not particularly limited herein, and may be set according to actual requirements.
Specifically, in this embodiment, whether the current resistance value of the giant magnetoresistance detection module is within the preset resistance value range is detected to detect whether the wireless headset leaves the headset bin.
Step S302: and if the current resistance value is not within the preset resistance value range, determining that the wireless earphone leaves the earphone bin.
In this embodiment, if the current resistance value of the giant magnetoresistance detection module is not within the preset resistance value range, it is determined that the wireless earphone leaves the earphone chamber, and at this time, the remote controller may establish communication connection with the wireless earphone.
In a specific embodiment, the current resistance value of the giant magnetoresistance detection module is not within the preset resistance value range, and may be greater than the maximum value in the preset resistance value range or less than the minimum value in the preset resistance value range.
It should be noted that, the remote controller detects the change of the charging circuit between the earphone bin and the power module in this embodiment mode to detect whether the wireless earphone leaves the earphone bin, and compare with and set up the sensor in the earphone bin to detect, this embodiment need not additionally provide the circuit connection sensor, has reduced resource consumption, and this embodiment can avoid other objects to get into or leave the false retrieval that the earphone bin caused, makes the result of detecting whether the wireless earphone leaves the charging bin more accurate.
Further, in a possible implementation manner, the remote controller may further include a sampling amplifying system, specifically, referring to fig. 4, fig. 4 is a schematic structural diagram of a remote controller according to an embodiment of the present invention, as shown in fig. 4, in this implementation manner, the sampling amplifying system and the giant magnetoresistance are connected in series with a charging circuit between the earphone chamber and the power supply module. In this embodiment, the resistance value and the current value of the giant magnetoresistance detection module can be amplified by the sampling amplification system and then transmitted to the bluetooth module. When the state information of the giant magnetoresistance detection module is weak in change, the giant magnetoresistance detection module is amplified by the sampling amplification system, so that the giant magnetoresistance detection module is obvious in change, the remote controller is facilitated to detect the change of the charging circuit between the earphone bin and the power module, and the result of judging whether the wireless earphone leaves the charging bin is more accurate.
In this embodiment, the remote controller receives first data sent by the wireless headset, sends the first data to the television, receives second data sent by the television, and sends the second data to the wireless headset.
The remote controller receives first data sent by the wireless earphone and sends the first data to the television, receives second data sent by the television and sends the second data to the wireless earphone.
Compared with the mode that the remote controller is directly used for data interaction with the television, in the embodiment, data interaction is carried out between the wireless earphone and the television through the remote controller, so that a user can control the television through the wireless earphone, the user can control the television at a longer distance from the television, the activity range of the user when watching the television is enlarged, meanwhile, the user does not need to be limited to the remote controller for controlling the television, the interaction mode that the user controls the television is enriched, the convenience of watching the television by the user is improved, and the experience of watching the television by the user is improved.
Compare in using wireless earphone directly to carry out the data interaction with the TV set, in this implementation, carry out the data interaction through the remote controller between wireless earphone and TV set, avoided wireless earphone to be connected the condition emergence that leads to wireless earphone to be unable to control the TV set unusually with the TV set, improved the success rate that the user used wireless earphone control TV set, promoted the experience that the user used wireless earphone control TV set and felt to the experience that the user watched the TV is felt has been promoted.
Further, based on the first embodiment, a second embodiment of the data interaction algorithm of the present invention is provided, in which the data interaction method is applied to a wireless headset, and in this embodiment, the data interaction method includes:
step S50, first data are sent to a remote controller, so that the remote controller can send the first data to a television;
in this embodiment, the remote controller establishes a communication connection with the wireless headset, and the remote controller also establishes a communication connection with a television or a set-top box of the television (hereinafter, referred to as a television for convenience).
Specifically, in the present embodiment, the wireless headset transmits data (hereinafter referred to as first data to show distinction) to the remote controller. The remote controller receives first data sent by the wireless earphone and sends the first data to the television. The television can process according to the first data after receiving the first data.
Specifically, each implementation manner related to this embodiment may specifically refer to the first embodiment, and is not described herein again.
And step S60, receiving second data sent by the remote controller, wherein the remote controller receives the second data sent by the television and sends the second data to the wireless earphone.
In this embodiment, the television set transmits data (hereinafter referred to as second data to show distinction) to the remote controller. The remote controller receives second data sent by the television and sends the second data to the wireless earphone.
Specifically, each implementation manner related to this embodiment may specifically refer to the first embodiment, and is not described herein again.
Further, in some possible embodiments, the wireless headset includes an acceleration sensor and a proximity sensor, in this embodiment, whether the wireless headset is in a wearing state is detected by the acceleration sensor and the proximity sensor, and when the wireless headset is in the wearing state, the wireless headset sends the first data to the remote controller. In this embodiment, before the step S50, the data interaction method further includes:
step S70, detecting whether the acceleration of the wireless earphone changes or not through the acceleration sensor;
in this embodiment, whether the wireless headset is in a worn state is detected by the acceleration sensor and the proximity sensor. When the wireless earphone is taken out of the earphone chamber, the wireless earphone moves, the acceleration of the wireless earphone changes, and specifically, in the embodiment, whether the acceleration of the wireless earphone changes is detected through the acceleration sensor.
Further, in an embodiment, when the wireless headset is taken out from the remote controller to be worn on the ear of the user, the acceleration of the wireless headset usually changes significantly in the vertical direction.
Step S80, if the acceleration of the wireless earphone changes, detecting whether the proximity acquired by the proximity sensor is within a preset proximity range;
in the present embodiment, if the acceleration of the wireless headset changes, the wireless headset may be taken out, or the wireless headset may move along with the remote controller in the remote controller. Specifically, when the wireless headset is in a wearing state, the wireless headset is closely connected to the head of the user, and at this time, a proximity value detected by a proximity sensor of the wireless headset should be very small.
Specifically, in the present embodiment, a value range of proximity is set in advance (hereinafter referred to as a preset proximity range for convenience of description). In a specific embodiment, the preset proximity range may be set according to experience of an engineer, or may be obtained through laboratory tests, and may be specifically set according to actual needs, which is not limited herein.
In this embodiment, when it is determined that the acceleration of the wireless headset changes, it is detected whether the proximity acquired by the proximity sensor is within a preset proximity range.
Further, in an embodiment, when it is determined that the acceleration of the wireless headset changes, it may also be determined whether the wireless headset is in a wearing state according to the change of the proximity. When the wireless headset is removed from the headset cavity, at which time the wireless headset is further from the headset cavity, the proximity of the proximity sensor in the wireless headset should be increased. As the wireless headset is brought closer to the user's head until worn over the user's ear, the proximity of the proximity sensor in the wireless headset should be gradually reduced. Therefore, the wireless headset is taken out from the headset bin until being worn on the ear of the user, and the trend of the change of the proximity is gradually reduced after increasing. Further, in this embodiment, a range in which the proximity increases and a range in which the proximity decreases in the preset trend of the proximity may be set, and whether the variation range of the proximity in different stages is within the preset range may be detected to detect whether the wireless headset is in the wearing state, so that the result of detecting the wearing state of the wireless headset may be more accurate.
And S90, if the proximity is within the preset proximity range, determining that the wireless earphone is in a wearing state, and executing the step of sending the first data to the remote controller.
In this embodiment, if the proximity is within the preset proximity range, it is determined that the wireless headset is taken out of the headset bin and worn on the ear of the user, that is, the wireless headset is in a wearing state, and at this time, the wireless headset may send the first data to the remote controller.
In this embodiment, before the wireless headset transmits the first data to the remote controller, the wireless headset detects whether the wireless headset is in a wearing state through the acceleration sensor and the proximity sensor of the wireless headset, and transmits the first data to the remote controller when the wireless headset is determined to be in the wearing state. According to the embodiment, the situation that the user mistakenly touches the wireless earphone to send the first data to the remote controller is avoided, and the experience of the user in data interaction with the television through the wireless earphone is improved.
Further, in a possible embodiment, the wireless headset may further comprise a heart rate sensor, by which the heart rate of the user may be detected. In this embodiment, when detecting whether wireless headset is in the wearing state, after detecting the change of the proximity of wireless headset, can also detect whether the rhythm of the heart that heart rate sensor acquireed is in predetermined rhythm of the heart within range, if the rhythm of the heart that heart rate sensor acquireed is in predetermined rhythm of the heart within range, then can confirm that wireless headset is in the wearing state. The embodiment enables the result of detecting whether the wireless earphone is in the wearing state to be more accurate.
Further, in a possible embodiment, the first data includes a control instruction, in this embodiment, the user may send the control instruction through a wireless headset to control playing of the television, and specifically, in this embodiment, before step S50, the data interaction method further includes:
step A10, receiving a user instruction triggered by a user;
in this embodiment, the wireless headset may receive a user-triggered command (hereinafter referred to as a user command to distinguish).
Specifically, in an embodiment, a touch sensor may be disposed on the wireless headset, and the wireless headset receives a user instruction triggered by the touch sensor, for example, if the user touches the touch sensor on the wireless headset once, it indicates that the user controls the volume of the television to increase, and if the user touches the touch sensor twice consecutively, it indicates that the user controls the volume of the television to decrease; in another embodiment, the wireless headset may further receive a voice command sent by the user through a microphone on the wireless headset, and the setting may be specifically performed according to the actual requirement of the user, which is not limited herein.
Step A20, analyzing the user instruction into the control instruction according to a preset rule;
in this embodiment, after receiving a user instruction triggered by a user, the wireless headset parses the user instruction into a control instruction according to a preset rule. Specifically, the preset rule may be set according to an actual requirement, for example, in an embodiment, a single touch corresponds to a control instruction for increasing the volume of the television, two consecutive touches correspond to a control instruction for decreasing the volume of the television, and a long press corresponds to a control instruction for entering the voice control mode for 3 seconds.
The step S50 includes:
step S501, the control instruction is sent to the remote controller so that the remote controller can send the control instruction to a television, and the television plays according to the control instruction.
The user sends a control command to the remote controller based on the wireless headset. The remote controller receives a control instruction sent by the wireless earphone and sends the first data to the television so that the television can play the first data according to the control instruction.
In this embodiment, the television sends the audio data of the television to the wireless headset through the remote controller, and the wireless headset plays the audio data through the loudspeaker.
In the embodiment, the user can enter a voice control mode by pressing the wireless earphone for a long time, in the voice control mode, after the microphone of the wireless earphone collects the voice instruction sent by the user, the voice instruction sent by the user is analyzed into a control instruction and then sent to the remote controller, and the television searches programs according to the control instruction.
Specifically, in this embodiment, reference may be made to step S50 in this embodiment, which is not described herein again.
For example, in a possible embodiment, referring to fig. 5, fig. 5 is a schematic diagram of interaction among a wireless headset, a remote controller, and a television according to an embodiment of the present invention. As shown in fig. 5, the remote control establishes communication connections with the television and the wireless headset and the remote control, respectively. In this embodiment, the user touches the control instruction of the wireless headset corresponding to the volume increase of the television at a single time, the wireless headset sends the control instruction to the remote controller, the remote controller sends the control instruction of the volume increase of the television to the television, and the television controls the volume increase of the program. The user continuously touches the wireless earphone for two times to correspond to the control instruction of the television volume reduction, the wireless earphone sends the control instruction to the remote controller, the remote controller sends the control instruction of the television volume reduction to the television, and the television controls the volume of the program to increase.
In this embodiment, the data interaction method is applied to a wireless headset, and the wireless headset sends first data to a remote controller so that the remote controller sends the first data to a television and receives second data sent by the remote controller, wherein the remote controller receives the second data sent by the television and sends the second data to the wireless headset.
Compared with the method that the remote controller is directly used for data interaction with the television, in the embodiment, data interaction is carried out between the wireless earphone and the television through the remote controller, so that a user can control the television through the wireless earphone, the user can control the television at a longer distance from the television, the activity range of the user when watching the television is enlarged, meanwhile, the user does not need to be limited to the remote controller for controlling the television, the interaction mode of controlling the television by the user is enriched, the convenience of watching the television by the user is improved, and the experience of watching the television by the user is improved.
Compare in using wireless earphone directly to carry out the data interaction with the TV set, in this implementation, carry out the data interaction through the remote controller between wireless earphone and TV set, avoided wireless earphone to be connected the condition emergence that leads to wireless earphone to be unable to control the TV set unusually with the TV set, improved the success rate that the user used wireless earphone control TV set, promoted the experience that the user used wireless earphone control TV set and felt to the experience that the user watched the TV is felt has been promoted.
Further, based on the first and/or second embodiments, a third embodiment of the data interaction algorithm of the present invention is provided, in this embodiment, the data interaction method is applied to a television and a set-top box of the television, and for convenience, the following description is performed with respect to the television, and in this embodiment, the data interaction method includes:
step A30, receiving first data sent by a remote controller, wherein the remote controller receives the first data sent by a wireless earphone and sends the first data to the television;
in this embodiment, the remote controller establishes a communication connection with the television (hereinafter referred to as a communication connection for illustration), and the remote controller establishes a communication connection with the wireless headset (hereinafter referred to as a communication connection for illustration).
The wireless headset transmits data (hereinafter referred to as first data to show distinction) to the remote controller. The remote controller receives first data sent by the wireless earphone and sends the first data to the television. After receiving the first data, the television can play the first data.
Specifically, each implementation manner related to this embodiment may specifically refer to the first embodiment, and is not described herein again.
And A40, sending second data to the remote controller so that the remote controller can send the second data to the wireless earphone.
In this embodiment, the television set transmits data (hereinafter referred to as second data to show distinction) to the remote controller. The remote control can receive the second data transmitted by the television.
In this embodiment, after receiving the second data sent by the television, the remote controller sends the second data to the wireless headset through communication connection with the wireless headset. And after the wireless earphone receives the second data, the second data can be played.
Specifically, each implementation manner related to this embodiment may specifically refer to the first embodiment, and is not described herein again.
Further, in a possible implementation manner, the first data includes audio data, and before the step a40, the data interaction method further includes:
step A50, detecting whether a Bluetooth transmission instruction sent by the remote controller is received;
in this embodiment, when it is determined that the wireless headset leaves the headset bin, the remote controller further sends a bluetooth transmission instruction to the television to notify the television to perform data transmission. And after receiving the Bluetooth transmission instruction, the television sends second data to the remote controller through the first communication connection.
The step a40 includes:
step A401, if the Bluetooth transmission instruction is determined to be received, sending the audio data to the remote controller, so that the remote controller sends the audio data to the wireless earphone, and the wireless earphone plays the audio data according to the audio data.
In this embodiment, when it is determined that the wireless headset leaves the headset bin, the remote controller further sends a bluetooth transmission instruction to the television to notify the television to perform data transmission. And after receiving the Bluetooth transmission instruction, the television sends second data to the remote controller. The remote controller transmits the second data to the wireless headset.
Specifically, in this embodiment, after receiving the bluetooth transmission instruction, the television may transmit audio data of the played television program, and the wireless headset receives the audio data sent by the television without performing external playing through a speaker of the television.
In this embodiment, reference may be made to step a40 in this embodiment, which is not described herein again.
In this embodiment, when the wireless headset leaves the headset bin, the bluetooth transmission instruction is sent to the television, so that the television sends the second data to the remote controller. In the embodiment, the television can normally play the television program when the Bluetooth transmission instruction is not received, and the second data is sent to the wireless earphone instead of being externally played through the loudspeaker of the television when the Bluetooth transmission instruction is received, so that a user can select a listening mode according to actual requirements when watching the television program by using the television, and the experience of the user in using the television is improved.
In this embodiment, first data sent by a remote controller is received, where the remote controller receives the first data sent by the wireless headset and sends the first data to the television, and sends second data to the remote controller, so that the remote controller sends the second data to the wireless headset.
Compared with the method that the remote controller is directly used for data interaction with the television, in the embodiment, data interaction is carried out between the wireless earphone and the television through the remote controller, so that a user can control the television through the wireless earphone, the user can control the television at a longer distance from the television, the activity range of the user when watching the television is enlarged, meanwhile, the user does not need to be limited to the remote controller for controlling the television, the interaction mode of controlling the television by the user is enriched, the convenience of watching the television by the user is improved, and the experience of watching the television by the user is improved.
Compare in using wireless earphone directly to carry out the data interaction with the TV set, in this implementation, carry out the data interaction through the remote controller between wireless earphone and TV set, avoided wireless earphone to be connected the condition emergence that leads to wireless earphone to be unable to control the TV set unusually with the TV set, improved the success rate that the user used wireless earphone control TV set, promoted the experience that the user used wireless earphone control TV set and felt to the experience that the user watched the TV is felt has been promoted.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a data interaction program is stored on the storage medium, and when executed by a processor, the data interaction program implements the steps of the data interaction method as described below.
The embodiments of the data interaction device and the computer-readable storage medium of the present invention can refer to the embodiments of the data interaction method of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data interaction method is applied to a remote controller, and comprises the following steps:
receiving first data sent by a wireless earphone, and sending the first data to a television;
and receiving second data sent by the television, and sending the second data to the wireless earphone.
2. The data interaction method of claim 1, wherein the remote controller comprises an earphone chamber, and the step of receiving first data transmitted by a wireless earphone and transmitting the first data to a television set further comprises:
detecting whether the wireless headset exits the headset bay;
establishing a communication connection with the wireless headset when it is determined that the wireless headset is out of the headset bay.
3. The data interaction method of claim 2, wherein the remote control includes a giant magnetoresistance detection module, and the step of detecting whether the wireless headset exits the headset bay comprises:
detecting whether the current resistance value of the giant magnetoresistance detection module is within a preset resistance value range or not;
and if the current resistance value is not within the preset resistance value range, determining that the wireless earphone leaves the earphone bin.
4. A data interaction method is applied to a wireless headset and comprises the following steps:
sending first data to a remote controller so that the remote controller can send the first data to a television;
and receiving second data sent by the remote controller, wherein the remote controller receives the second data sent by the television and sends the second data to the wireless earphone.
5. The data interaction method of claim 4, wherein the wireless headset includes an acceleration sensor and a proximity sensor, and wherein the step of sending the first data to the remote control is preceded by the step of:
detecting whether the acceleration of the wireless earphone changes or not through the acceleration sensor;
if the acceleration of the wireless earphone changes, detecting whether the proximity acquired by the proximity sensor is within a preset proximity range;
and if the proximity is within the preset proximity range, determining that the wireless earphone is in a wearing state, and executing the step of sending the first data to the remote controller.
6. The data interaction method of any one of claims 4 to 5, wherein the first data comprises a control command, and before the step of sending the first data to the remote controller, the method further comprises:
receiving a user instruction triggered by a user;
analyzing the user instruction into the control instruction according to a preset rule;
the step of sending the first data to the remote controller comprises:
and sending the control instruction to the remote controller so that the remote controller can send the control instruction to a television, and the television plays according to the control instruction.
7. A data interaction method is characterized in that the data interaction method is applied to a television, and the data interaction method comprises the following steps:
receiving first data sent by a remote controller, wherein the remote controller receives the first data sent by a wireless earphone and sends the first data to the television;
and sending second data to the remote controller so that the remote controller can send the second data to the wireless earphone.
8. The data interaction method of claim 7, wherein the first data comprises audio data, and wherein the step of sending the second data to the remote controller is preceded by the step of:
detecting whether a Bluetooth transmission instruction sent by the remote controller is received;
the step of transmitting the second data to the remote controller includes:
and if the Bluetooth transmission instruction is determined to be received, sending the audio data to the remote controller so that the remote controller can send the audio data to the wireless earphone, and the wireless earphone plays the audio data according to the audio data.
9. A data interaction device, characterized in that the data interaction device comprises: memory, a processor and a data interaction program stored on the memory and executable on the processor, the data interaction program when executed by the processor implementing the steps of the data interaction method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, on which a data interaction program is stored, which when executed by a processor implements the steps of the data interaction method of any one of claims 1 to 8.
CN202211486455.XA 2022-11-24 2022-11-24 Data interaction method, device and computer-readable storage medium Pending CN115842933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211486455.XA CN115842933A (en) 2022-11-24 2022-11-24 Data interaction method, device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211486455.XA CN115842933A (en) 2022-11-24 2022-11-24 Data interaction method, device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115842933A true CN115842933A (en) 2023-03-24

Family

ID=85576053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211486455.XA Pending CN115842933A (en) 2022-11-24 2022-11-24 Data interaction method, device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115842933A (en)

Similar Documents

Publication Publication Date Title
US10957323B2 (en) Image display apparatus and method of controlling the same
CN108683798B (en) Sound output control method and mobile terminal
EP3163885B1 (en) Method and apparatus for controlling electronic device
CN105323607A (en) Display device and operating method thereof
CN110740376B (en) Improved content streaming device and method
WO2017215512A1 (en) Audio stream processing method and related devices
CN108319442B (en) Audio playing control method and mobile terminal
CN103997669A (en) Equipment control method, equipment control device and equipment control system
CN109473097B (en) Intelligent voice equipment and control method thereof
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN111417929A (en) Interface display method and control terminal
CN114500730B (en) Popup function control method, popup function control device and computer readable storage medium
CN111971985A (en) Earphone pairing method, earphone control method, Bluetooth earphone accommodating device and medium
CN106603870B (en) Control method and device of playing equipment, playing equipment and mobile terminal
CN107948904B (en) Sound box aging test method and device and computer readable storage medium
WO2015078349A1 (en) Microphone sound-reception status switching method and apparatus
CN111093133B (en) Wireless device control method, apparatus and computer readable storage medium
CN110267142B (en) Mobile terminal and control method
EP3886457A1 (en) Information processing device and information processing method
CN115842933A (en) Data interaction method, device and computer-readable storage medium
CN108600906B (en) Playing control method and device for multiple sound boxes
WO2021043414A1 (en) Microphone blocking detection control
CN105072485A (en) Time delay control method and device
CN106713668B (en) Method and device for controlling vibration of terminal
CN109982208B (en) Control method and terminal equipment

Legal Events

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