CN113825126A - Control method and device - Google Patents
Control method and device Download PDFInfo
- Publication number
- CN113825126A CN113825126A CN202111166515.5A CN202111166515A CN113825126A CN 113825126 A CN113825126 A CN 113825126A CN 202111166515 A CN202111166515 A CN 202111166515A CN 113825126 A CN113825126 A CN 113825126A
- Authority
- CN
- China
- Prior art keywords
- connection
- interaction
- interaction device
- data
- data connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000003993 interaction Effects 0.000 claims abstract description 325
- 230000002452 interceptive effect Effects 0.000 claims description 36
- 238000012544 monitoring process Methods 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 230000005236 sound signal Effects 0.000 description 7
- 238000007599 discharging Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000004308 accommodation Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005059 dormancy Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000007958 sleep Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/30—Connection release
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a control method and a control device, wherein the method comprises the following steps: the method comprises the steps that a first interaction device monitors whether a switching condition is met, the switching condition is used for indicating the first interaction device to disconnect data connection between connection devices corresponding to electronic equipment, and the connection devices are at least used for transmitting data between the first interaction device and the electronic equipment; the first interaction device sends an enabling instruction to the electronic equipment when the switching condition is met, wherein the enabling instruction is at least used for instructing the electronic equipment to at least maintain the data connection with the connection device, so that the connection device transmits data between the second interaction device and the electronic equipment after the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device.
Description
Technical Field
The present application relates to the field of device control technologies, and in particular, to a control method and apparatus.
Background
With the development of the technology, a multi-component matched combination device is arranged on the electronic equipment. In actual use, there are cases where a single device in a combined device performs switching.
In the switching process, each device in the combination device is not connected with the electronic equipment, so that the electronic equipment can only transmit through other devices, and privacy information may be leaked.
Disclosure of Invention
In view of the above, the present application provides a control method and apparatus, as follows:
a control method, comprising:
the method comprises the steps that a first interaction device monitors whether a switching condition is met, the switching condition is used for indicating the first interaction device to disconnect data connection between connection devices corresponding to electronic equipment, and the connection devices are at least used for transmitting data between the first interaction device and the electronic equipment;
the first interaction device sends an enabling instruction to the electronic equipment when the switching condition is met, wherein the enabling instruction is at least used for instructing the electronic equipment to at least maintain the data connection with the connection device, so that the connection device transmits data between the second interaction device and the electronic equipment after the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device.
The method preferably further includes that the switching condition is satisfied, and the method includes:
the first interaction device obtains a disconnection instruction, wherein the disconnection instruction is used for indicating the first interaction device to disconnect the data connection with the connection device;
or the like, or, alternatively,
the device parameter of the first interaction device meets a parameter condition, and the device parameter is a parameter which can enable the first interaction device to disconnect the data connection with the connection device.
In the method, preferably, the disconnection instruction is generated when a target input operation by a user is received;
or, the disconnection instruction is generated when the first interaction device is in a containing space formed by the connection device.
In the above method, preferably, the sending, by the first interaction device, an enabling instruction to the electronic device includes:
the first interaction device sends an enabling instruction to the connection device, so that the connection device sends the enabling instruction to the electronic equipment, and the data connection between the electronic equipment and the connection device is maintained.
In the above method, preferably, the enable instruction includes at least an enable type;
in the case that the enabling type only represents that the first interaction device disconnects the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device, wherein the electronic equipment monitors whether the second interaction device establishes the data connection with the connection device or not when maintaining the data connection for a first duration;
if the second interaction device establishes the data connection with the connection device within the first duration, the connection device transmits data between the second interaction device and the electronic equipment;
if the second interaction device does not establish the data connection with the connection device within the first duration, the data connection between the electronic equipment and the connection device is disconnected.
In the above method, preferably, the enable instruction includes at least an enable type;
in the case that the enabling type indicates that the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device according to the enabling type and monitoring whether the second interaction device establishes the data connection with the connection device;
wherein, if the second interaction device establishes a data connection with the connection device, the connection device transmits data between the second interaction device and the electronic equipment;
if the second interaction device does not establish the data connection with the connection device, the data connection between the electronic equipment and the connection device is disconnected.
In the above method, preferably, the enable instruction includes at least an enable type;
under the condition that the enabling type represents that the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device according to the enabling type and monitoring whether the second equipment establishes the data connection with the connection device or not under the condition that the data connection is maintained for a second duration;
if the second interaction device establishes the data connection with the connection device within the second duration, the connection device transmits data between the second interaction device and the electronic equipment;
if the second interaction device does not establish the data connection with the connection device within the second duration, the data connection between the electronic equipment and the connection device is disconnected.
In the above method, preferably, the enable instruction includes at least an enable type;
wherein the enablement type is determined based on a state relationship between the first interactive device and the second interactive device;
under the condition that the first interaction device and the second interaction device are in a connection state, the enabling type represents that the first interaction device breaks the data connection with the connection device and the second interaction device establishes the data connection with the connection device;
the enabling type only represents that the first interaction device breaks the data connection with the connection device under the condition that the first interaction device and the second interaction device are not in the connection state;
or the like, or, alternatively,
the enabling type is determined based on the input operation received by the first interaction device;
wherein, in case the input operation characterizes switching the first interaction device to the second interaction device, the enabling type characterizes that the first interaction device disconnects the data connection with the connection device and that the second interaction device establishes the data connection with the connection device;
in the case that the input operation only characterizes that the first interaction device disconnects the data connection with the connection device, the enabling type only characterizes that the first interaction device disconnects the data connection with the connection device.
The above method, preferably, further comprises:
the first interaction device establishes a data connection with the second interaction device, so that the first interaction device transmits data to the electronic equipment through the second interaction device and the connection device.
A control device, comprising:
a condition monitoring unit, configured to monitor whether a switching condition is met, where the switching condition is used to instruct the first interaction device to disconnect data connection between connection devices corresponding to electronic devices, and the connection devices are at least used to transmit data between the first interaction device and the electronic devices;
an instruction sending unit, configured to send, to the electronic device, an enabling instruction when the switching condition is met, where the enabling instruction is at least used to instruct the electronic device to at least maintain a data connection with the connection apparatus, so that after the first interaction apparatus disconnects the data connection with the connection apparatus and a second interaction apparatus establishes the data connection with the connection apparatus, the connection apparatus transmits data between the second interaction apparatus and the electronic device.
A first interaction device, comprising:
a processor, configured to monitor whether a switching condition is met, where the switching condition is used to instruct the first interaction apparatus to disconnect a data connection between connection apparatuses corresponding to electronic devices, and the connection apparatuses are at least used to transmit data between the first interaction apparatus and the electronic devices;
a communication module, configured to send an enabling instruction to the electronic device when the handover condition is met, where the enabling instruction is at least used to instruct the electronic device to at least maintain a data connection with the connection apparatus, so that after the first interaction apparatus disconnects the data connection with the connection apparatus and a second interaction apparatus establishes the data connection with the connection apparatus, the connection apparatus transmits data between the second interaction apparatus and the electronic device.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a control method according to an embodiment of the present application;
FIGS. 2-9 are diagrams illustrating examples of applications of embodiments of the present application;
fig. 10 is another flowchart of a control method according to an embodiment of the present application;
FIG. 11 is a diagram illustrating another exemplary application of an embodiment of the present application;
fig. 12 is a schematic structural diagram of a control device according to a second embodiment of the present application;
fig. 13 is another schematic structural diagram of a control device according to a second embodiment of the present application;
fig. 14 is a schematic structural diagram of a first interaction device according to a third embodiment of the present application;
fig. 15-16 are diagrams illustrating examples of connection switching applicable to TWS headset according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a flowchart for implementing a control method provided in an embodiment of the present application is applicable to an interactive device capable of establishing a data connection with a connection device corresponding to an electronic device, such as a true Wireless bluetooth tws (true Wireless stereo) headset that establishes a data connection with a headset bin corresponding to a notebook computer through bluetooth or WiFi, a gamepad that establishes a data connection with a handle box corresponding to a game terminal through bluetooth or WiFi, and the like. The technical scheme in the embodiment is mainly used for improving the safety of the interactive device for transmitting data to the electronic equipment.
Specifically, the method in this embodiment may include the following steps:
step 101: monitoring whether the switching condition is satisfied, in case the switching condition is satisfied, executing step 102, if the switching condition is not satisfied, then continuing to execute step 101, i.e. continuing to monitor whether the switching condition is satisfied.
The switching condition is used for indicating the first interaction device to disconnect the data connection of the connection device corresponding to the electronic equipment. The connecting means here are at least used for transmitting data between the first interaction means and the electronic device.
In particular, the connecting means may first form a receiving space for the first interaction means, in which the first interaction means may be placed. For example, a headphone magazine for placing headphones or a handle box for placing a game pad, etc. When the first interaction device is placed in the accommodating space formed by the connecting device, the connecting device has two states of the accommodating space being closed and the accommodating space being opened. For example, as shown in fig. 2, the earphone is in a state where the earphone is in the earphone chamber and the chamber cover of the earphone chamber is closed, and the earphone is in a state where the earphone is in the earphone chamber but the chamber cover of the earphone chamber is not closed.
Here, the connection device may be configured to be disposed in a separate electronic apparatus, or may be configured to be built in the electronic apparatus. For example, the headphone housing may be provided separately from the notebook, or the headphone housing may be connected in-line in the notebook via a universal Serial bus (usb) interface, as shown in fig. 3.
Secondly, the connecting device may also establish an electrical connection between the first interaction device and the electronic apparatus, so that the electronic apparatus charges the interaction device through the connecting device. Specifically, the connection device may establish an electrical connection with the electronic device in a wired or wireless manner, for example, the earphone bin is connected to the notebook through the USB interface, and the USB interface realizes an electrical connection between the earphone bin and the notebook, or the earphone bin is connected to the notebook through the wireless manner, and the notebook provides electrical energy to the earphone bin through an isolated or contact manner. Based on this, set up charging circuit in the connecting device, charging circuit obtains the electric energy and exports the interactive device in the connecting device from its electronic equipment through wired mode or wireless mode. For example, a charging circuit is arranged in the earphone bin, and the charging circuit obtains electric energy from a notebook computer where the charging circuit is located through a USB interface and outputs the electric energy to an earphone in the earphone bin.
In addition, the connection device may also establish a data connection, such as a wireless connection, between the first interaction device and the electronic device, so that data transmission between the interaction device and the electronic device may be performed through the connection device. Specifically, the connecting device is provided with a communication module, and the communication module establishes data connection between the electronic device and the interaction device respectively, so that data transmission is realized between the interaction device and the electronic device through data forwarding of the connecting device. For example, a bluetooth module is arranged in the handle box, and the handle box establishes a Low-power consumption bluetooth ble (bluetooth Low energy) connection and a classic bluetooth connection bt (classic bluetooth) between the game terminal and the game handle through the bluetooth module, so that data transmission is realized between the game handle and the game terminal through the handle box.
The data connection switched in this embodiment refers to a connection for transmitting data streams, such as a classic bluetooth connection. And the switching condition indicating that the first interaction device disconnects the data connection of the connection device corresponding to the electronic device may be: the first interactive device only disconnects the data connection with the connecting device and is still in a working state, or the first interactive device not only disconnects the data connection with the connecting device but also is in a power-off shutdown condition.
In one implementation, the handover condition may be satisfied as: the first interaction device obtains a disconnection instruction, wherein the disconnection instruction is at least used for instructing the first interaction device to disconnect the data connection with the connection device.
In one case, the disconnection instruction is generated in a case where the first interaction device receives a target input operation by the user. The target input operation is an operation of instructing the first interaction device to disconnect the data connection with the connection device. For example, as shown in fig. 4, a user double-clicks the on-off key on the right earphone, and receives the operation of double-clicking the on-off key on the right earphone, it may be determined that the user needs to disconnect the classic bluetooth connection between the right earphone and the earphone bin to put the earphone into sleep; for another example, the user presses the on-off key on the right earphone for a long time, and the operation of pressing the on-off key for a long time is received on the right earphone, so that the user can be determined to close the right earphone; and so on. Based on the method, after receiving the target input operation of the user, the first interaction device generates a disconnection instruction to at least instruct the first interaction device to disconnect the data connection with the connection device.
In another case, the disconnection instruction is generated with the first interaction means in the accommodation space formed by the connection means. That is, the disconnection command is generated when the first interacting device is placed into the accommodating space formed by the connecting device from outside the accommodating space formed by the connecting device.
In an alternative implementation manner, when the connection device detects that the first interaction device is placed in the accommodating space, a disconnection instruction is generated and sent to the first interaction device. In particular, the connection device may determine whether the first interaction device is placed in the receiving space by monitoring a status of a target component within the receiving space that is capable of interacting with the first interaction device. The target component may be a component in a charging circuit of the connection device for charging the first interactive device, such as a power indicator lamp provided in the headset housing for each headset slot, and if the target component is continuously at a high level for a certain period of time, it may be determined that the first interactive device is placed in the receiving space of the connection device, and the connection device generates and transmits a disconnection command to the first interactive device. Based on this, the first interaction device obtains the disconnection instruction, at which time the switching condition is satisfied. For example, there is a power indicator in the charging circuit for charging the earphone in the earphone chamber, as shown in fig. 5, when the power indicator is at a high level, i.e. is turned on and kept for more than 2 minutes, it indicates that the earphone is necessarily in the earphone chamber. And if the connecting port on the base of the earphone bin is in a contacted state, namely in a state contacted by the earphone, the earphone can be determined to be in the earphone bin. Or, the connection device may monitor the charging state information in the device state information transmitted by the first interaction device to determine whether the first interaction device is charged in the accommodating space formed by the connection device, and if the first interaction device is charged in the accommodating space formed by the connection device, it may be determined that the first interaction device is placed in the accommodating space of the connection device, and at this time, the connection device generates the disconnection instruction and sends the disconnection instruction to the first interaction device. Based on this, the first interaction device obtains the disconnection instruction, at which time the switching condition is satisfied.
In another alternative implementation, the first interaction device generates a disconnection instruction when it is detected that the first interaction device is placed in the accommodating space of the connection device. In particular, the first interaction device may determine whether the first interaction device is placed into the receiving space by monitoring a state of a component or an interface which the first interaction device is able to contact with the connection device. Or, the first interaction device may monitor charging state information in the device state information acquired by the first interaction device to determine whether the first interaction device is charged in the accommodating space formed by the connection device, and if the first interaction device is charged in the accommodating space formed by the connection device, it may be determined that the first interaction device is placed in the accommodating space of the connection device, and at this time, the first interaction device generates a disconnection instruction. Based on this, the first interaction device obtains the disconnection instruction, at which time the switching condition is satisfied.
In another implementation, the switching condition being satisfied may be: the device parameter of the first interactive device satisfies the parameter condition, where the device parameter is a parameter that enables the first interactive device to disconnect the data connection with the connection device. For example, the device parameter may include any one or more of the remaining power of the first interactive device, the charging current of the first interactive device, and the discharging voltage of the first interactive device, and the device parameter satisfying the parameter condition may be any one of the following: the residual capacity is less than or equal to the capacity threshold, the charging current is greater than or equal to the full-power shutdown cutoff current, and the discharging voltage is less than or equal to the low-power shutdown cutoff voltage. The power threshold may be a power value of a low power shutdown of the first interactive apparatus. Therefore, in this embodiment, the first interaction device monitors an electric quantity threshold, a charging current, a discharging voltage and the like which can cause the first interaction device to disconnect the data connection with the connection device, so that when any one of the remaining electric quantity is less than or equal to the electric quantity threshold, the charging current is greater than or equal to the full-power shutdown cutoff current, and the discharging voltage is less than or equal to the low-power shutdown cutoff voltage is satisfied, it can be determined that the switching condition is satisfied. For example, the right earphone monitors its remaining power, and determines that the handover condition is satisfied if the remaining power is low enough to cause the right earphone to shut down due to low power. For another example, the right earphone monitors its charging current, and determines that the switching condition is satisfied when the charging current is greater than the full-power shutdown cutoff current, which may cause the right earphone to shutdown due to full power. For another example, the right earphone monitors the discharge voltage thereof, and determines that the switching condition is satisfied when the discharge voltage is lower than the low-battery shutdown cutoff voltage, which may cause the right earphone to be shutdown due to low battery.
Step 102: the first interaction device sends an enabling instruction to the electronic equipment, wherein the enabling instruction is at least used for instructing the electronic equipment to at least maintain the data connection with the connecting device, so that the connecting device transmits data between the second interaction device and the electronic equipment after the first interaction device disconnects the data connection with the connecting device and the second interaction device establishes the data connection with the connecting device.
The second interaction device may be a device capable of establishing a data connection with the electronic device through the connection device instead of the first interaction device. For example, the first interactive device and the second interactive device may be combined devices used in cooperation, such as a left earphone and a right earphone. Alternatively, the first interactive device and the second interactive device may be devices used independently, such as an old earphone and a new earphone.
It should be noted that, after the electronic device receives the enabling instruction, the electronic device at least maintains the data connection with the connection device, at this time, the data stream that needs to be output by the interaction device in the electronic device may continue to be transmitted to the connection device, or the data stream that needs to be output by the interaction device in the electronic device may suspend to be transmitted to the connection device, and it is because the data connection is maintained between the electronic device and the connection device, even if the data stream of the electronic device is transmitted to the connection device, the data stream that needs to be output in the electronic device may not be transmitted to other devices or apparatuses because the first interaction device is disconnected and the second interaction device is not connected, until the data connection is established between the second interaction device and the connection device, the data stream that needs to be output in the electronic device may be transmitted to the second interaction device through the connection device to be output, in the process, the data to be transmitted in the electronic equipment is always transmitted to the connecting device, and other devices or equipment cannot be transmitted, so that data leakage is avoided.
For example, when the right earphone needs to disconnect the existing classical bluetooth connection with the earphone bin because of being put into the earphone bin, being operated to disconnect, being powered off at full power or being powered off at low power, and the like, based on the technical scheme in the embodiment, when the right earphone monitors that the switching condition is met, namely disconnection occurs, the right earphone firstly sends an enabling instruction to the notebook through the earphone bin, the enabling instruction indicates that the notebook keeps the classic Bluetooth connection with the earphone bin, namely, the original sound transmission channel is kept uninterrupted, the sound signal of the online conference in the notebook computer can be continuously transmitted to the earphone chamber, as shown in fig. 6, without putting the conference speech through the speaker in the notebook, avoiding the conference contents from leaking out, or the music sound in the notebook computer can be suspended or continuously transmitted to the earphone cabin, and the music sound can not be played through the loudspeaker in the notebook computer, so that the influence on surrounding people is avoided.
In one implementation manner, the sending, by the first interaction apparatus, the enabling instruction to the electronic device may specifically be: before the first interaction device disconnects the data connection with the connection device, the first interaction device sends an enabling instruction to the connection device, so that the connection device sends the enabling instruction to the electronic equipment, and the data connection with the connection device is maintained by the electronic equipment. For example, when the right earphone needs to disconnect the existing classical bluetooth connection with the earphone bin due to the factor of being placed in the earphone bin, before the right earphone monitors that the switching condition is met, namely the disconnection, the right earphone sends an enabling instruction to the earphone bin through the bluetooth connection between the earphone bin, and then the earphone bin sends the enabling instruction to the notebook through the bluetooth connection between the earphone bin and the notebook, wherein the enabling instruction indicates that the notebook maintains the classical bluetooth connection with the earphone bin, namely the original sound transmission channel is maintained uninterrupted, the sound signal of the real-time conference in the notebook can be continuously transmitted to the earphone bin, as shown in fig. 7, the conference speech cannot be placed outside through a loudspeaker in the notebook, and the conference content is prevented from being leaked outside.
As can be seen from the foregoing solution, in the control method provided in the first embodiment of the present application, the first interaction device sends the enable instruction to the electronic device by monitoring whether the switching condition indicating that the first interaction device disconnects the data connection with the connection device is satisfied, so that the electronic device at least maintains the data connection with the connection device, and the connection device can transmit data between the second interaction device and the electronic device after the first interaction device disconnects the data connection with the connection device and the second connection device establishes the data connection with the connection device. It can be seen that, in this embodiment, when the first interaction device disconnects the data connection with the connection device, the electronic device is enabled to maintain the data connection with the connection device through the enable instruction until the second interaction device establishes the data connection with the connection device, so that, in the process of performing connection switching on the connection device between the first interaction device and the second interaction device, because the electronic device maintains the data connection with the connection device, the electronic device does not perform data transmission with other devices, thereby avoiding the situation of privacy information disclosure.
In a specific implementation, the enabling instruction sent by the first interaction device at least includes an enabling type, the indication contents represented by the enabling type are different, and the corresponding enabling instruction can trigger the electronic device to execute different processes.
In one implementation, in a case that the enable type only represents that the first interaction device disconnects the data connection with the connection device, the enable instruction is used to instruct the electronic device to maintain the data connection with the connection device, so that, after the electronic device receives the enable instruction, the data connection with the connection device can be maintained according to the enable type in the enable instruction, and further, the electronic device can select to monitor whether the second interaction device establishes the data connection with the connection device while maintaining the data connection for the first duration. The first time period can be set according to requirements, such as 1 minute or 2 minutes.
For example, when the right earphone needs to be disconnected from the earphone bin, the right earphone sends an enabling instruction to the notebook through the earphone bin before disconnection, the enabling instruction only indicates that the notebook maintains the classic bluetooth connection with the earphone bin, and after the notebook maintains the classic bluetooth connection with the earphone bin according to the enabling instruction, further, the notebook can select to monitor whether the classic bluetooth connection is established between the left earphone or other earphones and the earphone bin after the classic bluetooth connection with the earphone bin is maintained for 2 minutes.
Wherein if the second interaction device establishes the data connection with the connection device within the first duration, the connection device may transmit data between the second interaction device and the electronic device based on the data connection between the second interaction device and the connection device.
And if the second interaction device does not establish the data connection with the connection device within the first time period, that is, no other device establishes the data connection with the connection device within the first time period, at this time, the data connection between the electronic equipment and the connection device is disconnected. Specifically, the electronic device disconnects the data connection with the connection device when monitoring that the connection device does not have other interaction devices to establish data connection within the first time period, or the electronic device sends an instruction indicating disconnection to the connection device when monitoring that the connection device does not have other interaction devices to establish data connection within the first time period, and the connection device disconnects the data connection with the electronic device. Further, after the data connection between the electronic device and the connection device is disconnected, the electronic device may establish a data connection with another device or apparatus, so as to perform data transmission through the other device or apparatus.
For example, when the right earphone needs to disconnect the existing classic bluetooth connection with the earphone bin due to the factor of being put into the earphone bin, the right earphone sends an enabling instruction to the notebook through the earphone bin before the disconnection when the switching condition is monitored to be met, the enabling instruction instructs the notebook to maintain the classic bluetooth connection with the earphone bin, therefore, the notebook maintains the classic bluetooth connection with the earphone bin according to the enabling instruction, further, the notebook continuously monitors whether the earphone bin establishes the classic bluetooth connection with the left earphone or other earphones in the process of maintaining the classic bluetooth connection with the earphone bin, that is, the notebook is delayed by default for 2 minutes to wait for the classic bluetooth connection between the left earphone or other earphones and the earphone bin, if the left earphone or other earphones already establish the classic bluetooth connection with the earphone bin after waiting for 2 minutes, the notebook transmits music sounds to the left earphone or other earphones through the earphone house so that the user can listen to the music through the left earphone or other earphones as shown in fig. 8, and the music is not played out of the notebook during this process; if no earphone is connected with the earphone cabin through the classic Bluetooth after waiting for 2 minutes, the notebook breaks the classic Bluetooth connection with the earphone cabin and is connected with other devices such as a loudspeaker, as shown in figure 9, and then the notebook plays music through the loudspeaker.
In another implementation, in the case that the enable type indicates not only that the first interaction device disconnects the data connection with the connection device but also that the second interaction device needs to establish the data connection with the connection device, the enable instruction is used to instruct the electronic device to maintain the data connection with the connection device according to the enable type and monitor whether the second interaction device establishes the data connection with the connection device according to the enable type. Therefore, after the electronic equipment receives the enabling instruction, the data connection between the electronic equipment and the connecting device can be maintained according to the enabling type in the enabling instruction, and whether the second interaction device establishes the data connection between the second interaction device and the connecting device or not can be monitored according to the enabling type of the enabling instruction.
For example, when the right earphone needs to be disconnected from the earphone bin, the right earphone sends an enabling instruction to the notebook through the earphone bin before disconnection, the enabling instruction indicates that the notebook maintains the classic bluetooth connection with the earphone bin, and further indicates that the classic bluetooth connection needs to be established between the left earphone and the earphone bin.
Wherein, if the second interaction device establishes a data connection with the connection device, the connection device transmits data between the second interaction device and the electronic equipment based on the data connection between the second interaction device and the connection device;
if the second interactive device does not establish a data connection with the connecting device, that is, no other device establishes a data connection with the connecting device, the data connection between the electronic equipment and the connecting device is disconnected.
For example, when the right earphone needs to disconnect the existing classic bluetooth connection with the earphone bin due to the factor of being put into the earphone bin, the right earphone sends an enabling instruction to the notebook through the earphone bin when the switching condition is monitored to be met, namely before the disconnection, the enabling instruction indicates that the notebook keeps the classic bluetooth connection with the earphone bin and indicates that the left earphone needs to establish the classic bluetooth connection with the earphone bin, therefore, the notebook keeps the classic bluetooth connection with the earphone bin according to the enabling instruction and monitors whether the earphone bin establishes the classic bluetooth connection with the left earphone or not in the process of keeping the classic bluetooth connection with the earphone bin, namely, the notebook does not wait to directly monitor whether the classic bluetooth connection between the left earphone and the earphone bin is established by default, if the classic bluetooth connection between the left earphone and the earphone bin is monitored, the notebook transmits music sound to the left through the earphone bin, therefore, the user can listen to the music through the left earphone, and the music cannot be played outside the notebook computer in the process; and the left earphone is not connected with the earphone bin through the classic Bluetooth, so that the classic Bluetooth connection between the notebook computer and the earphone bin is disconnected, the notebook computer is connected with other devices such as a loudspeaker, and the notebook computer plays music through the loudspeaker.
In another implementation, in a case that the enable type indicates not only that the first interaction device disconnects the data connection with the connection device, but also that the second interaction device establishes the data connection with the connection device, the enable instruction is used to instruct the electronic device to maintain the data connection with the connection device according to the enable type and monitor whether the second device establishes the data connection with the connection device according to the enable type while maintaining the data connection for a second duration. Therefore, after the electronic equipment receives the enabling instruction, the data connection between the electronic equipment and the connecting device can be maintained according to the enabling type in the enabling instruction, and whether the second interaction device establishes the data connection between the electronic equipment and the connecting device within the second time period or not can be monitored according to the enabling type of the enabling instruction.
For example, when the right earphone needs to be disconnected from the earphone bin, the right earphone sends an enabling instruction to the notebook through the earphone bin before disconnection, the enabling instruction indicates that the notebook maintains the classic bluetooth connection with the earphone bin, and further indicates that the classic bluetooth connection is established between the left earphone and the earphone bin within the second duration.
If the second interaction device establishes the data connection with the connection device within the second duration, the connection device transmits data between the second interaction device and the electronic equipment based on the data connection between the second interaction device and the connection device;
if the second interaction device does not establish the data connection with the connection device within the second duration, the data connection between the electronic equipment and the connection device is disconnected.
Wherein the second duration may be a value greater than the first duration.
For example, when the right earphone needs to disconnect the existing classic bluetooth connection with the earphone bin due to the factor of being put into the earphone bin, the right earphone sends an enabling instruction to the notebook through the earphone bin before the disconnection when the switching condition is monitored to be met, the enabling instruction instructs the notebook to maintain the classic bluetooth connection with the earphone bin and instructs the left earphone to establish the classic bluetooth connection with the earphone bin within 5 minutes, therefore, the notebook maintains the classic bluetooth connection with the earphone bin according to the enabling instruction and monitors whether the earphone bin establishes the classic bluetooth connection with the left earphone within 5 minutes in the process of maintaining the classic bluetooth connection with the earphone bin, that is, the notebook waits for 5 minutes for the classic bluetooth connection to be established between the left earphone and the earphone bin, if the left earphone establishes the bluetooth connection with the earphone bin within 5 minutes, then the notebook computer transmits music sound to the left earphone through the earphone bin, so that the user can listen to the music through the left earphone, and the music cannot be played outside the notebook computer in the process; and the left earphone is not connected with the earphone bin in the 5 minutes by the classic Bluetooth, so that the classic Bluetooth connection between the notebook computer and the earphone bin is disconnected, the notebook computer is connected with other devices such as a loudspeaker, and the notebook computer plays music through the loudspeaker.
It should be noted that the second interaction device may transmit the status information of the second interaction device to the electronic apparatus through the connection device, and based on this, the electronic apparatus may monitor that the second interaction device establishes the data connection with the connection device through the information of the second interaction device transmitted by the connection device.
Based on the above implementation, the type of enable in the enable instruction may be determined in different ways, as follows:
in one implementation, the enablement type may be determined based on a state relationship between the first interactive device and the second interactive device. For example, in a case where the first interactive apparatus and the second interactive apparatus are in a connected state, such as a case where a classic bluetooth connection is established between the first interactive apparatus and the second interactive apparatus, the enabling type represents that the first interactive apparatus disconnects the data connection with the connecting apparatus and the second interactive apparatus establishes the data connection with the connecting apparatus. And in the case that the first interaction device and the second interaction device are not in a connected state, namely the first interaction device and the second interaction device are not connected through the classic bluetooth, the enabling type only represents that the first interaction device disconnects the data connection with the connection device. That is, if the first interaction device establishes a data connection with the second interaction device, the first interaction device may instruct the electronic apparatus not only to maintain the data connection with the connection device but also to determine whether the second interaction device connected to the first interaction device establishes the data connection with the connection device through the enabling instruction.
For example, in the case where a classic bluetooth connection is established between the left and right earphones, the enable instruction output by the right earphone indicates that the left earphone of the notebook needs to establish a data connection with the earphone bin in addition to indicating that the notebook maintains the classic bluetooth connection with the earphone bin.
In another implementation, the enablement type can be determined based on an input operation received by the first interaction device. For example, the user performs a selection input operation of the second interaction device on the first interaction device, which indicates that the user needs to use the second interaction device to realize data transmission with the electronic device.
Wherein, in case the input operation representation switches the first interaction device to the second interaction device, the enabling type representation shows that the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device. And in the case that the input operation only characterizes that the first interaction device disconnects the data connection with the connection device, the enabling type only characterizes that the first interaction device disconnects the data connection with the connection device. That is, if the user selects the second interaction means as the means for data transmission with the electronic device, the first interaction means may instruct the electronic device not only to maintain the data connection with the connection means but also to determine whether the second interaction means connected to the first interaction means establishes the data connection with the connection means by the enable instruction.
For example, if the user selects to switch the paired left earphone on the right earphone, the enable instruction output by the right earphone indicates that the left earphone of the notebook needs to establish a data connection with the earphone bin in addition to indicating that the notebook maintains the classic bluetooth connection with the earphone bin.
In one implementation, after step 102, the following steps may be further included in this embodiment, as shown in fig. 10:
step 103: the first interaction device establishes a data connection with the second interaction device, so that the first interaction device transmits data to the electronic equipment through the second interaction device and the connection device.
After the data connection between the first interaction device and the connection device is disconnected, the first interaction device can re-enter a state capable of establishing the data connection or be in a state capable of establishing the data connection all the time after the conditions are met, and then the first interaction device can establish the data connection with the second interaction device in a broadcast identification mode, so that the second interaction device is used as a main interaction device, the first interaction device is used as a slave interaction device, and the data transmission between the first interaction device and the electronic equipment is realized through the connection device.
For example, after the right earphone is dormant due to charging, the user can take the right earphone out of the earphone bin to stop charging and wake up or the right earphone automatically wakes up, and the right earphone in normal operation can establish a classic bluetooth connection with the left earphone already connected to the earphone bin by broadcasting the earphone bluetooth identifier, so that the notebook performs sound signal output through the earphone bin with the left earphone as a master earphone and the right earphone as a slave earphone, as shown in fig. 11.
For another example, after the right earphone is powered off due to full power, the user can take the right earphone out of the earphone bin to stop charging and wake up or automatically start the right earphone, and the right earphone in normal operation can establish BLE connection with the left earphone connected to the earphone bin in a manner of broadcasting an earphone bluetooth identifier to further establish classic bluetooth connection, so that the notebook can output sound signals by using the left earphone as a master earphone and the right earphone as a slave earphone through the earphone bin.
For another example, after the classical bluetooth connection between the right earphone and the earphone bin is disconnected, the right earphone can reestablish the classical bluetooth connection between the right earphone and the left earphone already connected to the earphone bin by broadcasting the earphone bluetooth identifier, so that the notebook performs sound signal output by taking the left earphone as a master earphone and the right earphone as a slave earphone through the earphone bin.
Referring to fig. 12, a schematic structural diagram of a control device provided in the second embodiment of the present disclosure is shown, where the control device may be configured on an interactive device capable of establishing a data connection with a connection device corresponding to an electronic device, such as an earphone that establishes a data connection with an earphone bin corresponding to a notebook computer through bluetooth or WiFi, and a gamepad that establishes a data connection with a handle box corresponding to a game terminal through bluetooth or WiFi, for example. The technical scheme in the embodiment is mainly used for improving the safety of the interactive device for transmitting data to the electronic equipment.
Specifically, the apparatus in this embodiment may include the following units:
a condition monitoring unit 1201, configured to monitor whether a switching condition is met, where the switching condition is used to instruct the first interaction apparatus to disconnect a data connection between connection apparatuses corresponding to electronic devices, and the connection apparatuses are at least used to transmit data between the first interaction apparatus and the electronic devices;
an instruction sending unit 1202, configured to send, to the electronic device, an enabling instruction, where the switching condition is met, the enabling instruction at least being used to instruct the electronic device to at least maintain a data connection with the connection apparatus, so that after the first interaction apparatus disconnects the data connection with the connection apparatus and a second interaction apparatus establishes the data connection with the connection apparatus, the connection apparatus transmits data between the second interaction apparatus and the electronic device.
It can be seen from the foregoing technical solutions that, in the control device provided in the second embodiment of the present application, an enable instruction is sent to the electronic device by monitoring whether a switching condition indicating that the first interaction device disconnects the data connection with the connection device is met on the first interaction device, so that the electronic device at least maintains the data connection with the connection device, and then after the first interaction device disconnects the data connection with the connection device and the second connection device establishes the data connection with the connection device, the connection device can transmit data between the second interaction device and the electronic device. It can be seen that, in this embodiment, when the first interaction device disconnects the data connection with the connection device, the electronic device is enabled to maintain the data connection with the connection device through the enable instruction until the second interaction device establishes the data connection with the connection device, so that, in the process of performing connection switching on the connection device between the first interaction device and the second interaction device, because the electronic device maintains the data connection with the connection device, the electronic device does not perform data transmission with other devices, thereby avoiding the situation of privacy information disclosure.
In one implementation, the handover condition is satisfied, including: the first interaction device obtains a disconnection instruction, wherein the disconnection instruction is used for indicating the first interaction device to disconnect the data connection with the connection device; or the device parameter of the first interaction device meets a parameter condition, wherein the device parameter is a parameter which can enable the first interaction device to disconnect the data connection with the connection device.
Optionally, the disconnection instruction is generated when a target input operation of a user is received; or, the disconnection instruction is generated when the first interaction device is in a containing space formed by the connection device.
In one implementation, the instruction sending unit 1202 is specifically configured to: and sending an enabling instruction to the connecting device so as to enable the connecting device to send the enabling instruction to the electronic equipment, and maintaining data connection between the electronic equipment and the connecting device.
In one implementation, the enabling instruction at least comprises an enabling type; in the case that the enabling type only represents that the first interaction device disconnects the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device, wherein the electronic equipment monitors whether the second interaction device establishes the data connection with the connection device or not when maintaining the data connection for a first duration; if the second interaction device establishes the data connection with the connection device within the first duration, the connection device transmits data between the second interaction device and the electronic equipment; if the second interaction device does not establish the data connection with the connection device within the first duration, the data connection between the electronic equipment and the connection device is disconnected.
In one implementation, the enabling instruction at least comprises an enabling type; in the case that the enabling type indicates that the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device according to the enabling type and monitoring whether the second interaction device establishes the data connection with the connection device; wherein, if the second interaction device establishes a data connection with the connection device, the connection device transmits data between the second interaction device and the electronic equipment; if the second interaction device does not establish the data connection with the connection device, the data connection between the electronic equipment and the connection device is disconnected.
In one implementation, the enabling instruction at least comprises an enabling type; under the condition that the enabling type represents that the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device according to the enabling type and monitoring whether the second equipment establishes the data connection with the connection device or not under the condition that the data connection is maintained for a second duration; if the second interaction device establishes the data connection with the connection device within the second duration, the connection device transmits data between the second interaction device and the electronic equipment; if the second interaction device does not establish the data connection with the connection device within the second duration, the data connection between the electronic equipment and the connection device is disconnected.
In one implementation, the enabling instruction at least comprises an enabling type; wherein the enablement type is determined based on a state relationship between the first interactive device and the second interactive device; under the condition that the first interaction device and the second interaction device are in a connection state, the enabling type represents that the first interaction device breaks the data connection with the connection device and the second interaction device establishes the data connection with the connection device; the enabling type only represents that the first interaction device breaks the data connection with the connection device under the condition that the first interaction device and the second interaction device are not in the connection state;
or the enabling type is determined based on the input operation received by the first interaction device; wherein, in case the input operation characterizes switching the first interaction device to the second interaction device, the enabling type characterizes that the first interaction device disconnects the data connection with the connection device and that the second interaction device establishes the data connection with the connection device; in the case that the input operation only characterizes that the first interaction device disconnects the data connection with the connection device, the enabling type only characterizes that the first interaction device disconnects the data connection with the connection device.
In one implementation, the apparatus in this embodiment may further include the following units, as shown in fig. 13:
a connection establishing unit 1203, configured to connect with the second interaction apparatus, so that the first interaction apparatus transmits data to the electronic device through the second interaction apparatus and the connection apparatus.
It should be noted that, for the specific implementation of each unit in the present embodiment, reference may be made to the corresponding content in the foregoing, and details are not described here.
Referring to fig. 14, a schematic structural diagram of a first interaction device according to a third embodiment of the present application is provided, where the first interaction device is an interaction device capable of establishing a data connection with a connection device corresponding to an electronic device, that is, the first interaction device in the foregoing. For example, the earphone is used for establishing data connection between the earphone bins corresponding to the notebook computer in a Bluetooth or WiFi mode, and the game handle is used for establishing data connection between the handle boxes corresponding to the game terminal in a Bluetooth or WiFi mode. The technical scheme in the embodiment is mainly used for improving the safety of the interactive device for transmitting data to the electronic equipment.
Specifically, the first interaction device in this embodiment may include the following structure:
a processor 1401, configured to monitor whether a handover condition is met, where the handover condition is used to instruct the first interaction apparatus to disconnect a data connection between connection apparatuses corresponding to electronic devices, and the connection apparatuses are at least used to transmit data between the first interaction apparatus and the electronic devices;
a communication module 1402, such as a bluetooth module, for sending an enabling instruction to the electronic device if the switching condition is met, the enabling instruction at least being used for instructing the electronic device to at least maintain a data connection with the connecting apparatus, so that the connecting apparatus transmits data between the second interaction apparatus and the electronic device after the first interaction apparatus disconnects the data connection with the connecting apparatus and the second interaction apparatus establishes the data connection with the connecting apparatus.
Of course, the second interaction device may be the same type of device as the first interaction device in this embodiment, or may be different.
The first interaction device in this embodiment may further include other structures, such as components required for input and output, for example, an audio amplifier or a digital-to-analog converter.
It can be seen from the foregoing technical solutions that, in the first interaction device provided in the third embodiment of the present application, an enable instruction is sent to the electronic device by monitoring whether a switching condition indicating that the first interaction device disconnects the data connection with the connection device is satisfied, so that the electronic device at least maintains the data connection with the connection device, and then after the first interaction device disconnects the data connection with the connection device and the second connection device establishes the data connection with the connection device, the connection device can transmit data between the second interaction device and the electronic device. Therefore, in the application, when the first interaction device is disconnected from the connection device, the electronic equipment is enabled to maintain the data connection with the connection device through the enabling instruction until the second interaction device establishes the data connection with the connection device, and therefore, in the process of performing connection switching on the connection device by the first interaction device and the second interaction device, the electronic equipment does not perform data transmission with other devices due to the fact that the electronic equipment maintains the data connection with the connection device, and further the condition that privacy information is leaked is avoided.
Taking a notebook computer with an earphone bin (which may also be a charging tray or a charging bin) capable of placing a TWS earphone (hereinafter referred to as an earphone) as an example, the technical solution in the present application is illustrated in detail:
first, most of the earphones currently use the primary and secondary ear modes. When the master earphone and the slave earphone are switched, the master earphone is disconnected with the notebook firstly, and then the slave earphone is changed into the master earphone to be reconnected with the notebook. The switching between master and slave headphones typically causes the media player to be paused while music is being played to prevent sound from being played. But the whole process cannot be suspended for a call or a conference. Therefore, the switching action of the master earphone and the slave earphone can lead the sound played in the notebook to be switched from the earphone to the notebook for playing and then to be switched back to the earphone, so that some private contents are forced to be played.
In view of the above problems, the technical solution of the present application proposes different solutions for different scenes, as follows:
for the scenario of master-slave headset switching, two main forms are divided: an active form and a passive form. The active mode means that a user actively switches between a master earphone and a slave earphone, namely, the master earphone is put back into an earphone bin or the master earphone is disconnected with the earphone bin serving as a Bluetooth receiver. The passive mode refers to the switching between the master earphone and the slave earphone caused by the exhaustion of the electric quantity of the master earphone, the shutdown at full power, the charge dormancy and the like.
Firstly, for the active form, as shown in fig. 15, in the technical solution of the present application, after the main earphone receives the disconnection instruction and before the disconnection instruction is executed, a switching action, that is, an enable instruction in the foregoing is sent to the earphone bin in advance, at this time, the earphone bin can transmit the enable instruction to the notebook through the interface between the earphone bin and the notebook, and the notebook is held in the bluetooth earphone channel, that is, the sound output by the notebook is held in the sound transmission channel of the earphone bin, at this time, the sound of the notebook is not externally played until the slave earphone is connected back to the earphone bin, the slave earphone outputs a sound signal, and the main earphone is disconnected;
secondly, as for the passive form, as shown in fig. 16, in the technical scheme of the present application, the master earphone can make a prejudgment on the shutdown voltage, and when it is determined that the master earphone is to be shutdown, a switching action is sent to the earphone bin in advance, at this time, the earphone bin can send an enabling instruction to the notebook computer through the interface, the notebook computer is kept on the bluetooth earphone channel, that is, the sound output by the notebook computer is kept on the sound transmission channel of the earphone bin, at this time, the sound of the notebook computer is not externally played until the slave earphone is connected back to the earphone bin, the slave earphone outputs a sound signal, and the master earphone is disconnected.
Therefore, after the technical scheme of the application is adopted, when the master earphone and the slave earphone are switched, played sound cannot be played externally, and when real-time communication software such as conference software is used, switching of the Bluetooth earphones can be automatically realized without manual processing such as recovery operation, so that the use mode is simplified, and the switching time is optimized.
The embodiments in the present description 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. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A control method, comprising:
the method comprises the steps that a first interaction device monitors whether a switching condition is met, the switching condition is used for indicating the first interaction device to disconnect data connection between connection devices corresponding to electronic equipment, and the connection devices are at least used for transmitting data between the first interaction device and the electronic equipment;
the first interaction device sends an enabling instruction to the electronic equipment when the switching condition is met, wherein the enabling instruction is at least used for instructing the electronic equipment to at least maintain the data connection with the connection device, so that the connection device transmits data between the second interaction device and the electronic equipment after the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device.
2. The method of claim 1, the handover condition being satisfied, comprising:
the first interaction device obtains a disconnection instruction, wherein the disconnection instruction is used for indicating the first interaction device to disconnect the data connection with the connection device;
or the like, or, alternatively,
the device parameter of the first interaction device meets a parameter condition, and the device parameter is a parameter which can enable the first interaction device to disconnect the data connection with the connection device.
3. The method according to claim 2, wherein the disconnection instruction is generated when a target input operation of a user is received;
or, the disconnection instruction is generated when the first interaction device is in a containing space formed by the connection device.
4. The method of claim 1 or 2, the first interaction device sending enabling instructions to the electronic device, comprising:
the first interaction device sends an enabling instruction to the connection device, so that the connection device sends the enabling instruction to the electronic equipment, and the data connection between the electronic equipment and the connection device is maintained.
5. The method according to claim 1 or 2, wherein the enabling instruction at least comprises an enabling type;
in the case that the enabling type only represents that the first interaction device disconnects the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device, wherein the electronic equipment monitors whether the second interaction device establishes the data connection with the connection device or not when maintaining the data connection for a first duration;
if the second interaction device establishes the data connection with the connection device within the first duration, the connection device transmits data between the second interaction device and the electronic equipment;
if the second interaction device does not establish the data connection with the connection device within the first duration, the data connection between the electronic equipment and the connection device is disconnected.
6. The method according to claim 1 or 2, wherein the enabling instruction at least comprises an enabling type;
in the case that the enabling type indicates that the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device according to the enabling type and monitoring whether the second interaction device establishes the data connection with the connection device;
wherein, if the second interaction device establishes a data connection with the connection device, the connection device transmits data between the second interaction device and the electronic equipment;
if the second interaction device does not establish the data connection with the connection device, the data connection between the electronic equipment and the connection device is disconnected.
7. The method according to claim 1 or 2, wherein the enabling instruction at least comprises an enabling type;
under the condition that the enabling type represents that the first interaction device disconnects the data connection with the connection device and the second interaction device establishes the data connection with the connection device, the enabling instruction is used for instructing the electronic equipment to maintain the data connection with the connection device according to the enabling type and monitoring whether the second equipment establishes the data connection with the connection device or not under the condition that the data connection is maintained for a second duration;
if the second interaction device establishes the data connection with the connection device within the second duration, the connection device transmits data between the second interaction device and the electronic equipment;
if the second interaction device does not establish the data connection with the connection device within the second duration, the data connection between the electronic equipment and the connection device is disconnected.
8. The method according to claim 1 or 2, wherein the enabling instruction at least comprises an enabling type;
wherein the enablement type is determined based on a state relationship between the first interactive device and the second interactive device;
under the condition that the first interaction device and the second interaction device are in a connection state, the enabling type represents that the first interaction device breaks the data connection with the connection device and the second interaction device establishes the data connection with the connection device;
the enabling type only represents that the first interaction device breaks the data connection with the connection device under the condition that the first interaction device and the second interaction device are not in the connection state;
or the like, or, alternatively,
the enabling type is determined based on the input operation received by the first interaction device;
wherein, in case the input operation characterizes switching the first interaction device to the second interaction device, the enabling type characterizes that the first interaction device disconnects the data connection with the connection device and that the second interaction device establishes the data connection with the connection device;
in the case that the input operation only characterizes that the first interaction device disconnects the data connection with the connection device, the enabling type only characterizes that the first interaction device disconnects the data connection with the connection device.
9. The method of claim 1 or 2, further comprising:
the first interaction device establishes a data connection with the second interaction device, so that the first interaction device transmits data to the electronic equipment through the second interaction device and the connection device.
10. A first interaction device, comprising:
a processor, configured to monitor whether a switching condition is met, where the switching condition is used to instruct the first interaction apparatus to disconnect a data connection between connection apparatuses corresponding to electronic devices, and the connection apparatuses are at least used to transmit data between the first interaction apparatus and the electronic devices;
a communication module, configured to send an enabling instruction to the electronic device when the handover condition is met, where the enabling instruction is at least used to instruct the electronic device to at least maintain a data connection with the connection apparatus, so that after the first interaction apparatus disconnects the data connection with the connection apparatus and a second interaction apparatus establishes the data connection with the connection apparatus, the connection apparatus transmits data between the second interaction apparatus and the electronic device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111166515.5A CN113825126B (en) | 2021-09-30 | 2021-09-30 | Control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111166515.5A CN113825126B (en) | 2021-09-30 | 2021-09-30 | Control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113825126A true CN113825126A (en) | 2021-12-21 |
CN113825126B CN113825126B (en) | 2024-06-18 |
Family
ID=78920037
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111166515.5A Active CN113825126B (en) | 2021-09-30 | 2021-09-30 | Control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113825126B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115250545A (en) * | 2022-09-22 | 2022-10-28 | 荣耀终端有限公司 | Bluetooth connection method, electronic equipment and chip system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1990982A1 (en) * | 2007-05-09 | 2008-11-12 | Pi-Fen Lin | Integrated communication apparatus comprising a Bluetooth headset |
CN109168101A (en) * | 2018-11-16 | 2019-01-08 | 歌尔股份有限公司 | Earphone box, earphone suit and earphone connection method |
CN111601199A (en) * | 2020-02-17 | 2020-08-28 | 华为技术有限公司 | Wireless earphone box and system |
CN113079588A (en) * | 2021-03-31 | 2021-07-06 | 联想(北京)有限公司 | Control method, control device, control equipment and storage medium |
CN113329387A (en) * | 2021-06-18 | 2021-08-31 | 英华达(上海)科技有限公司 | Bluetooth headset communication method and device |
-
2021
- 2021-09-30 CN CN202111166515.5A patent/CN113825126B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1990982A1 (en) * | 2007-05-09 | 2008-11-12 | Pi-Fen Lin | Integrated communication apparatus comprising a Bluetooth headset |
CN109168101A (en) * | 2018-11-16 | 2019-01-08 | 歌尔股份有限公司 | Earphone box, earphone suit and earphone connection method |
CN111601199A (en) * | 2020-02-17 | 2020-08-28 | 华为技术有限公司 | Wireless earphone box and system |
CN113079588A (en) * | 2021-03-31 | 2021-07-06 | 联想(北京)有限公司 | Control method, control device, control equipment and storage medium |
CN113329387A (en) * | 2021-06-18 | 2021-08-31 | 英华达(上海)科技有限公司 | Bluetooth headset communication method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115250545A (en) * | 2022-09-22 | 2022-10-28 | 荣耀终端有限公司 | Bluetooth connection method, electronic equipment and chip system |
Also Published As
Publication number | Publication date |
---|---|
CN113825126B (en) | 2024-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108696784B (en) | Wireless earphone role switching method, wireless earphone and TWS earphone | |
CN111436041B (en) | Method and device for switching master and slave Bluetooth earphones, bluetooth earphones and system | |
CN111225346B (en) | Connection switching method of wireless earphone, wireless earphone and storage medium | |
US20110158441A1 (en) | Wireless speaker units with improved battery life | |
AU2015333819B2 (en) | Audio class-compliant charging accessories for wireless headphones and headsets | |
CN106937197A (en) | Double-ear wireless earphone and communication control method thereof | |
WO2019136810A1 (en) | Bluetooth headset master/salve switching method and apparatus | |
US8229144B2 (en) | Method and system for switched battery charging and loading in a stereo headset | |
JP5433672B2 (en) | Electronic device and power supply method | |
US11553268B2 (en) | Wireless headset | |
JP2016527859A (en) | Wireless charging apparatus and method | |
CN113038317B (en) | Earphone control method and device, bluetooth earphone and storage medium | |
CN113038316A (en) | Earphone control method and device, Bluetooth earphone and storage medium | |
CN111436042A (en) | Bluetooth headset and dynamic master-slave switching method, device and system thereof | |
CN113825126B (en) | Control method and device | |
CN111601290B (en) | Bluetooth sound box, earphone, bluetooth audio playing device, bluetooth sound box system and Bluetooth audio switching method | |
CN111669679A (en) | Method for balanced consumption of battery of true wireless Bluetooth headset | |
CN111343541A (en) | Control method and device of wireless earphone, mobile terminal and storage medium | |
CN108259655A (en) | A kind of communication means and terminal | |
CN113329387B (en) | Bluetooth headset communication method and device | |
CN113923639B (en) | Control method and device | |
CN113918418A (en) | Control method and electronic equipment | |
CN116074672A (en) | System for power consumption balancing in wireless earplugs | |
CN113727465B (en) | Control method and device | |
JP2004205578A (en) | Audio reproducing equipment communicating audio signal by radio and method of controlling power consumption of audio reproducing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |