CN113727465A - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN113727465A
CN113727465A CN202111163390.0A CN202111163390A CN113727465A CN 113727465 A CN113727465 A CN 113727465A CN 202111163390 A CN202111163390 A CN 202111163390A CN 113727465 A CN113727465 A CN 113727465A
Authority
CN
China
Prior art keywords
connection
instruction
data connection
headset
interaction
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
Application number
CN202111163390.0A
Other languages
Chinese (zh)
Other versions
CN113727465B (en
Inventor
张祎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202111163390.0A priority Critical patent/CN113727465B/en
Publication of CN113727465A publication Critical patent/CN113727465A/en
Application granted granted Critical
Publication of CN113727465B publication Critical patent/CN113727465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (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 under the condition that an interaction device and electronic equipment establish first data connection through a connection device, the connection device monitors the connection state of the interaction device; and characterizing that the first data connection is disconnected at least based on the connection state, and outputting a first instruction by the connection device, wherein the first instruction is used for instructing the interaction device to recover the first data connection with the electronic equipment through the connection device according to the received first instruction.

Description

Control method and device
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 technology, more and more electronic devices are equipped with interactive devices. The interactive device and the electronic equipment have a connection range. After the interactive device moves and exceeds the connection range of the electronic equipment, the interactive device can be disconnected with the electronic equipment. The interactive device can broadcast the connection instruction in a short time to automatically restore the connection after returning to the connection range.
However, if the interactive apparatus broadcasts the connection command for a long time, the power consumption of the interactive apparatus is high.
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 under the condition that an interaction device and electronic equipment establish first data connection through a connection device, the connection device monitors the connection state of the interaction device;
and characterizing that the first data connection is disconnected at least based on the connection state, and outputting a first instruction by the connection device, wherein the first instruction is used for instructing the interaction device to recover the first data connection with the electronic equipment through the connection device according to the received first instruction.
The method above, preferably, if the connection status indicates that the first connection is disconnected, the method further comprises:
the connecting device monitors whether a second instruction sent by the interactive device is received or not, wherein the second instruction is used for indicating the connecting device to recover the first data connection between the interactive device and the electronic equipment;
if the connecting device does not receive the second instruction within the first time length, executing the following steps: and the connecting device outputs a first instruction.
In the method, preferably, the interaction device continuously sends the second instruction according to a preset first output frequency within the first duration; or, the interactive device only sends one second instruction within the first duration.
In the above method, preferably, the connecting device outputs a first instruction, and the method includes:
the connecting device continuously outputs a first instruction according to a preset second output frequency within a second time length;
alternatively, the first and second electrodes may be,
the connecting device outputs only one first instruction in the second duration.
In the above method, preferably, after the connecting device outputs the first instruction, the method further includes:
the connection device monitoring whether the first data connection is restored;
if the first data connection is not restored within a second length of time, the connection device stops outputting the first instruction.
In the above method, preferably, after the connection device stops outputting the first instruction, the method further includes:
and the connecting device triggers the electronic equipment to output prompt information, wherein the prompt information is used for prompting the input operation of connection on the application program corresponding to the interaction device.
In the above method, preferably, the first data connection is used to establish a second data connection between the interaction device and the first electronic device through the connection device;
wherein the connection power consumption of the first data connection is lower than the connection power consumption of the second data connection, and/or the communication type of the first data connection is the same as the communication type of the second data connection.
A control device, comprising:
the monitoring unit is used for monitoring the connection state of the interaction device under the condition that the interaction device and the electronic equipment establish first data connection through the connection device, representing disconnection of the first data connection at least based on the connection state and triggering the output unit;
and the output unit is used for outputting a first instruction, and the first instruction is used for instructing the interaction device to recover the first data connection with the electronic equipment through the connecting device according to the received first instruction.
Preferably, in the above apparatus, the output unit is specifically configured to: continuously outputting a first instruction according to a preset output frequency within a second time length; or only one first instruction is output in the second duration.
A connection device, comprising:
the processor is used for monitoring the connection state of the interaction device by the connection device under the condition that the interaction device and the electronic equipment establish first data connection through the connection device;
and the communication module is used for representing disconnection of the first data connection at least based on the connection state and outputting a first instruction, wherein the first instruction is used for indicating the interaction device to recover the first data connection with the electronic equipment through the connection device according to the received first instruction.
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-7 are diagrams illustrating examples of applications of embodiments of the present application;
fig. 8 is another flowchart of a control method according to an embodiment of the present application;
FIGS. 9-11 are diagrams of another exemplary application of embodiments of the present application;
fig. 12-13 are respectively another flow charts of a control method according to an embodiment of the present application;
FIG. 14 is a diagram of another exemplary application of an embodiment of the present application;
fig. 15 is a flowchart of a control method according to an embodiment of the present application;
FIGS. 16-17 are diagrams of another exemplary application of embodiments of the present application;
fig. 18 is a schematic structural diagram of a control device according to a second embodiment of the present application;
fig. 19 is a schematic structural diagram of a connection device according to a third embodiment of the present application;
fig. 20 is a diagram illustrating an example of connection restoration control applicable to a 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 may be applied to a connection device capable of establishing a data connection with and transmitting data to an interaction device and an electronic device, such as a headset bin for transmitting headset status information and instructions for a headset and a notebook, a joystick box for transmitting game frames for a game pad and a game terminal, and so on. The technical scheme in the embodiment is mainly used for reducing the energy consumption of the interactive device.
Specifically, the method in this embodiment may include the following steps:
step 101: in the case that the interactive device and the electronic equipment establish the first data connection through the connection device, the connection device monitors the connection state of the interactive device, characterizes disconnection of the first data connection based on at least the connection state, and executes step 102, and if the connection state characterizes that the first data connection is not disconnected, then continues to execute step 101 to continuously monitor the connection state of the interactive device on the first data connection with the connection device.
The first data connection may be used to establish a second data connection between the interaction device and the connection device, and then between the interaction device and the electronic device. The second data connection is used for transmitting data streams between the interaction device and the connection device, i.e. between the interaction device and the electronics via the connection device.
In particular, the connection power consumption of the first data connection is lower than the connection power consumption of the second data connection, and/or the communication type of the first data connection is the same as the communication type of the second data connection. The communication type here can also be understood as a communication type, for example, the first data connection is a bluetooth Low energy (ble) connection and the second data connection is a classic bluetooth connection bt (classic bluetooth). In a specific implementation, a BLE bluetooth module and a classic bluetooth module are loaded in each of the interaction device, the connection device and the electronic device, based on that the BLE bluetooth module can establish a BLE connection between the interaction device and the electronic device through the connection device, and after the BLE connection is established, the BLE connection can be used for transmitting a control instruction and state information between the interaction device and the electronic device, where the control instruction may include a connection instruction and/or a reset instruction transmitted from the electronic device to the interaction device, the connection instruction is used for instructing the interaction device to establish a second data connection with the electronic device, and the reset instruction is used for instructing the interaction device to reset configuration information on the interaction device. The state information refers to device state information transmitted from the interaction device to the electronic device, and may include: the interactive device comprises any one or more of electric quantity state information, connection state information and charging state information of the interactive device, wherein the connection state information refers to state information of whether a first data connection is established between the interactive device and the electronic equipment through the connection device, the charging state information refers to state information of whether the electronic equipment charges the interactive device through the connection device, and the electric quantity state information refers to information of the current remaining electric quantity state of the interactive device and can be represented by numerical values such as percentage. Further, based on the classic bluetooth module and the established BLE connection, a classic bluetooth connection can be established between the interaction device and the electronic device through the connection device, and the classic bluetooth connection is used for transmitting data streams, such as sound signals or game frames, between the interaction device and the electronic device.
For example, as shown in fig. 2, a BLE connection is established between the headset and the headset bin, so that a BLE connection can be established between the headset and the notebook through the headset bin, and a classic bluetooth connection can be established between the headset and the headset bin through the BLE connection, so that a sound signal of the notebook can be output in the headset. Of course, other headphones or other output devices can establish a BLE connection and a classic bluetooth connection with the notebook in this way to realize the output of the sound signal in the notebook.
It should be noted that the connection device may establish the first data connection and the second data connection between the interaction device and the electronic device through the built-in communication module, so that data transmission may be performed between the interaction device and the electronic device through the connection device. For example, be provided with bluetooth module in the handle case, the handle case passes through bluetooth module and establishes BLE between game terminal and the game paddle and classical bluetooth connection respectively to make between game paddle and the game terminal realize data transmission through the handle case.
In addition, the connecting device can also provide a containing space for the interaction device, and the interaction device can be stored in the containing space. At this time, when the interactive 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. 3, 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. 4.
In this embodiment, the connecting device may further establish an electrical connection between the 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.
Specifically, the connection device of the connection device monitoring interaction device may have a plurality of different implementation manners, as follows:
in one implementation, the connection device may determine whether the interactive device still maintains the first data connection with the connection device by monitoring device status information transmitted by the interactive device. It may be determined that the first data connection between the interactive device and the connection device is disconnected if device status information of the interactive device is not received on the connection device for a certain length of time. For example, during the period that the headset establishes a BLE connection with the headset bin, the headset updates the headset state information to the headset bin at a certain frequency, and if the headset state information updated by the headset is not received in 5 minutes on the headset bin, the headset bin may determine that the BLE connection with the headset bin may be disconnected due to the headset moving to a position beyond the connection range.
In another implementation, the connecting apparatus may determine whether the first data connection with the connecting apparatus is disconnected due to the interactive apparatus being powered off by monitoring a power-off instruction of the interactive apparatus. The shutdown instruction is sent to the connection device by the interactive device or the electronic device when the interactive device meets the shutdown condition, and the shutdown condition can be a condition that the interactive device is low in power, full of power or the electronic device is powered off in the charging process. If the connection device receives a shutdown instruction transmitted by the interaction device, it may be determined that the first data connection between the interaction device and the connection device is about to be disconnected. For example, the headset may send a shutdown instruction to the headset bin when the laptop is shut down during low power, full power, or charging, and the headset bin may determine that the BLE connection with the headset bin is to be disconnected due to shutdown of the headset.
In another implementation, the connection device may monitor its connection configuration information to determine whether the interaction device has established the first data connection with the connection device. The connection configuration information of the connection device includes information of all devices or apparatuses connected to the connection device through the first data connection, such as an interactive device and an electronic apparatus. If there is no device identification or connection identification or the like of the interactive device in the connection configuration information of the connection device, it may be determined that the first data connection between the interactive device and the connection device has been disconnected. For example, when the headset establishes a BLE connection with the headset bin, the headset may be carried, moved and moved to an area beyond the connection range of the headset bin, the headset bin continuously monitors the connection configuration information of the headset, if the bluetooth identifier of the headset is contained in the connection configuration information, it may be determined that the headset continuously establishes a BLE connection with the headset bin, and if the bluetooth identifier of the headset is not already contained in the connection configuration information, the headset bin may determine that the BLE connection with the headset bin has been disconnected due to the fact that the headset moves to a position beyond the connection range.
Step 102: and outputting the first instruction.
The first instruction is used for instructing the interaction device to restore the first data connection with the electronic equipment through the connection device according to the received first instruction.
It can be seen that, when the connection device monitors that the first data connection with the interaction device is disconnected, the connection device outputs the first instruction to instruct the interaction device receiving the first instruction to restore the first data connection with the connection device, so that the interaction device restores the first data connection with the electronic device.
Specifically, when outputting the first instruction, the connection device may be implemented in different manners as follows:
in one implementation, the connection device continuously outputs the first command according to a preset second output frequency in the second time period, so that the connection device can continuously output a plurality of first commands in the second time period. The second output frequency and the second duration can be set according to requirements, and if the second output frequency is set to be a higher frequency value, higher connection recovery efficiency can be achieved for a user; if the second output frequency is set to a lower frequency value and the second duration is set to a lower value, the energy consumption of the connection device can be reduced for the user; if the second duration is set to a longer value, a more reliable connection service can be provided to the user. For example, upon finding that the BLE connection of the headset is disconnected, the headset bin continuously broadcasts the first instruction at a frequency of once every 5 seconds for 2 hours, as shown in fig. 5.
In another implementation, the connection device may output only one first instruction for the second duration. For example, the connection device outputs a first instruction for a second duration after detecting that the first data connection between the interaction device and the connection device is disconnected. For example, the headset bin broadcasts a first instruction once after 20 minutes when it finds that the BLE connection of the headset is disconnected, as shown in fig. 6.
Based on the above implementation, after receiving the first instruction broadcasted by the connection device, the interaction device may establish the first data connection with the connection device according to instruction content included in the first instruction, such as a device identifier of the connection device, and thus the interaction device may restore the first data connection with the electronic device through the connection device. For example, when discovering that BLE of the headset is disconnected, the headset bin continuously broadcasts the first instruction according to the frequency of once every 5 seconds within 2 hours, and if the headset is powered on or moves back to the connection range of the headset bin, the headset can receive the first instruction broadcasted by the headset bin, and then establish BLE connection with the headset bin according to the bluetooth identifier of the headset bin in the first instruction, so that the headset recovers the BLE connection with the notebook, on this basis, the headset can establish classic bluetooth connection with the notebook, and then realize data transmission, as shown in fig. 7.
In the foregoing solution, in the control method provided in the first embodiment of the present application, when the interactive apparatus and the electronic device establish the first data connection through the connection apparatus, the interactive apparatus monitors the connection state of the interactive apparatus, and then outputs the first instruction at least when the connection state indicates that the first data connection is disconnected, so as to instruct the interactive apparatus to restore the first data connection with the electronic device through the connection apparatus according to the received first instruction. Therefore, in the embodiment, the instruction output is performed through the connection device, so that the first data connection between the interaction device and the electronic device is recovered, and the instruction broadcast of the interaction device is not relied on in the process, so that the energy consumption of the interaction device is reduced.
Based on the above implementation, if the connection state characterizes the first connection disconnection in step 101, the method in this embodiment may further include the following steps, as shown in fig. 8:
step 103: the connection device monitors whether a second instruction sent by the interaction device is received, and if the connection device does not receive the second instruction within the first duration, step 102 is executed.
The second instruction is used for instructing the connecting device to restore the first data connection between the interaction device and the first equipment.
It can be seen that after the first data connection between the interaction device and the connection device is disconnected, the interaction device attempts to restore the first data connection between the interaction device and the connection device by outputting a second instruction within a first time period. If the second instruction is transmitted to the connecting device within the first duration, the connecting device can restore the first data connection between the interactive device and the electronic equipment according to the second instruction, and further restore the first data connection between the interactive device and the electronic equipment; and if the second instruction is not transmitted to the connecting device within the first time period, the first data connection between the interaction device and the connecting device cannot be recovered, at this time, in order to reduce the energy consumption of the interaction device, the connecting device outputs the first instruction to try to recover the first data connection between the interaction device and the interaction device, and if the first instruction output by the connecting device is received by the interaction device within the second time period, the interaction device can recover the first data connection between the interaction device and the connecting device according to the first instruction, so that the first data connection between the interaction device and the electronic equipment is recovered.
Specifically, when the interaction device outputs the second instruction, the following different manners may be implemented:
in one implementation, the interactive device continuously outputs the second instruction according to a preset first output frequency in the first time period, so that the interactive device can continuously output a plurality of second instructions in the first time period. The first output frequency and the first time length can be set according to requirements, and if the first output frequency is set to be a higher frequency value, higher connection recovery efficiency can be achieved for a user; if the first output frequency is set to a lower frequency value and the first time length is set to a lower value, the energy consumption of the interactive device can be reduced for the user; if the first time length is set to a longer value, a more reliable connection service can be provided to the user. For example, upon finding that the BLE connection with the headset bin is disconnected, the headset continuously broadcasts a second instruction at a frequency of once every 3 seconds for 15 minutes, as shown in fig. 9.
In another implementation, the interaction means may output only one second instruction for the first duration. For example, the interactive device outputs a second instruction after monitoring that the first data connection between the connection device and the interactive device is disconnected for a first time period. For example, the headset broadcasts a second instruction once after 15 minutes when it finds the BLE connection to the headset bin disconnected, as shown in figure 10.
For example, the headset is carried by the user to move during the use process, the headset breaks the BLE connection with the headset bin due to moving out of the connection range, that is, the user carries the headset out of the vicinity of the notebook, at this time, the headset bin waits for the second instruction broadcasted by the headset, meanwhile, the headset continuously broadcasts the second instruction according to the frequency once every 3 seconds within 15 minutes, if the headset moves back into the connection range of the headset bin, the headset bin can receive the second instruction broadcasted by the headset, and recovers the BLE connection with the headset according to the bluetooth identifier of the headset in the second instruction, if the headset does not move back into the connection range of the headset bin, the headset bin cannot receive the second instruction broadcasted by the headset within 15 minutes, at this time, the headset bin can continuously broadcast the first instruction according to the frequency once every 5 seconds within the next 2 hours, if the headset moves back into the connection range of the headset bin, that is, the user carries the headset to return to near the notebook, then the headset can receive the first instruction broadcasted by the headset bin, and then establish the BLE connection with the headset bin according to the bluetooth identification of the headset bin in the first instruction, from this, the headset resumes the BLE connection with the notebook, on this basis, the headset can establish the classic bluetooth connection with the notebook, and then realize data transmission, as shown in fig. 11.
In one implementation, after step 102, that is, after the connection device outputs the first instruction, the following steps may be further included in this embodiment, as shown in fig. 12:
step 104: the connection means monitors whether the first data connection is restored and if the first data connection is not restored within the second period of time, step 105 is performed, whereas if the first data connection is restored, step 105 may be performed directly.
Step 105: the connection device stops outputting the first instruction.
That is, the connection means may stop outputting the first instruction in case the first data connection is not restored but the first instruction has been broadcast for more than the second duration to avoid excessive power consumption.
In another implementation, if it is detected in step 104 that the first data connection is not recovered within the second duration, the process may also return to step 102 again until the first data connection is recovered, and then execute step 105 again, as shown in fig. 13. Therefore, the connecting device can continuously broadcast the first command until the interactive device and the connecting device recover the first data connection, although the processing performance of the connecting device can be consumed, the connecting device can be ensured to immediately recover the first data connection with the interactive device once the interactive device enters the connection range of the connecting device and is positioned at the starting drill bit, and the connection recovery time is ensured.
For example, the headset is carried by the user to move during the use process, the BLE connection between the headset and the headset bin is disconnected due to the fact that the headset moves out of the connection range, namely the user carries the headset out of the vicinity of the notebook, at this time, the headset bin waits for the second instruction broadcasted by the headset, meanwhile, the headset continuously broadcasts the second instruction according to the frequency once every 3 seconds within 15 minutes, if the headset does not move back into the connection range of the headset bin, the headset bin cannot receive the second instruction broadcasted by the headset within 15 minutes, at this time, the headset bin can continuously broadcast the first instruction according to the frequency once every 5 seconds within the next 2 hours, if the headset moves back into the connection range of the headset bin, namely the user carries the headset back into the vicinity of the notebook, the headset can receive the first instruction broadcasted by the headset bin, and then the BLE connection between the headset bin is established according to the bluetooth identifier of the headset bin in the first instruction, from this, the headset resumes BLE connection with the notebook, at this time, the headset bin may stop broadcasting the first instruction, and if the headset has not moved back to the connection range of the headset bin all the time, the headset bin may directly stop broadcasting the first instruction after 2 hours have passed, or continue broadcasting the first instruction until the headset moves back to the connection range of the headset bin, so that the headset resumes BLE connection with the notebook, at this time, the headset bin stops broadcasting the first instruction again, as shown in fig. 14.
Further, after step 105, that is, after the connection device stops outputting the first instruction, the following steps may be further included in this embodiment, as shown in fig. 15:
step 106: the connecting device triggers the electronic equipment to output prompt information.
The prompt information is used for prompting the input operation of connection on the application program corresponding to the interactive device.
That is, in order to avoid excessive power consumption, the connection means may stop outputting the first instruction after the first data connection is not restored within the second duration, prompt information can be output for the user through the electronic equipment to prompt the user to perform input operation of connection configuration on a configuration interface of an application program, the application program can be a program installed for the interactive device on a terminal of the user such as a mobile phone, which contains a configuration interface, such as the headset connection configuration interface shown in fig. 16, whereby, after the second period of time, since the connecting means has stopped outputting the first instruction, and the interacting means has no longer output the second instruction, in order to be able to establish the first data connection, the user may perform a connection configuration operation on the interaction device on a configuration interface of the interaction device, thereby manually establishing the first data connection between the interaction device and the connection device.
In addition, the user may also perform a disconnection operation on the application program of the interactive apparatus to connect the interactive apparatus with the connection apparatus or other devices.
For example, after the headset bin may stop broadcasting the first instruction, the headset bin may output a prompt message on the notebook to prompt the user to make a connection setup for the paired headset on the cell phone so that the headset can establish a BLE connection with the notebook again through the headset bin, as shown in fig. 17.
Referring to fig. 18, a schematic structural diagram of a control device provided in the second embodiment of the present application is shown, where the control device may be configured in a connection device capable of establishing a data connection with the interaction device and the electronic device and transmitting data for the interaction device and the electronic device, such as a headset bin for transmitting headset status information and instructions for a headset and a notebook, and further such as a handle box for transmitting game frames for a game pad and a game terminal, and so on. The technical scheme in the embodiment is mainly used for reducing the energy consumption of the interactive device.
Specifically, the control device in this embodiment may include the following functional units:
a monitoring unit 1801, configured to monitor a connection state of the interaction device when the interaction device and the first electronic device establish a first data connection through the connection device, characterize that the first data connection is disconnected based on the connection state, and trigger the output unit;
an output unit 1802, configured to output a first instruction, where the first instruction is used to instruct the interaction apparatus to resume, according to the received first instruction, a first data connection with the first electronic device through the connection apparatus.
It can be seen from the foregoing solution that in the control device provided in the second embodiment of the present application, when the interaction device establishes the first data connection with the electronic device through the connection device, the interaction device monitors the connection state of the interaction device, and then outputs the first instruction at least when the connection state indicates that the first data connection is disconnected, so as to instruct the interaction device to recover the first data connection with the electronic device through the connection device according to the received first instruction. Therefore, in the embodiment, the instruction output is performed through the connection device, so that the first data connection between the interaction device and the electronic device is recovered, and the instruction broadcast of the interaction device is not relied on in the process, so that the energy consumption of the interaction device is reduced.
In one implementation, output unit 1802 is specifically configured to: continuously outputting a first instruction according to a preset output frequency within a second time length; or only one first instruction is output in the second duration.
In one implementation, if the connection status indicates that the first connection is disconnected, the monitoring unit 1801 is further configured to: monitoring whether a second instruction sent by the interaction device is received, wherein the second instruction is used for instructing the connection device to recover a first data connection between the interaction device and the electronic equipment; if the connecting device does not receive the second instruction within the first duration, the output unit 1802 is triggered to output the first instruction.
Optionally, the interaction device continuously sends the second instruction according to a preset first output frequency within the first duration; or, the interactive device only sends one second instruction within the first duration.
In one implementation, after the output unit 1802 outputs the first instruction, the monitoring unit 1801 is further configured to: the connection device monitoring whether the first data connection is restored; if the first data connection is not restored within the second length of time, the output unit 1802 is triggered to stop outputting the first instruction.
Optionally, after the output unit 1802 stops outputting the first instruction, the method further includes: and triggering the electronic equipment to output prompt information, wherein the prompt information is used for prompting the input operation of connection on the application program corresponding to the interaction device.
In one implementation, the first data connection is used to establish a second data connection between the interaction apparatus and the first electronic device through the connection apparatus; wherein the connection power consumption of the first data connection is lower than the connection power consumption of the second data connection, and/or the communication type of the first data connection is the same as the communication type of the second data connection.
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. 19, a schematic structural diagram of a connection device according to a third embodiment of the present invention is provided, where the connection device may be a connection device capable of establishing a data connection with an interaction device and an electronic device and transmitting data to the interaction device and the electronic device, such as a headset bin for transmitting headset status information and instructions to a headset and a notebook, and further such as a handle box for transmitting game frames to a game pad and a game terminal, and so on. The technical scheme in the embodiment is mainly used for reducing the energy consumption of the interactive device.
Specifically, the connecting device in this embodiment may include the following structure:
a processor 1901, configured to, when the interaction apparatus establishes a first data connection with a first electronic device through a connection apparatus, monitor a connection state of the interaction apparatus by the connection apparatus;
a communication module 1902, such as a bluetooth module, configured to characterize the disconnection of the first data connection based on at least the connection status, and output a first instruction, where the first instruction is used to instruct the interaction apparatus to resume the first data connection with the first electronic device through the connection apparatus according to the received first instruction.
Of course, other components, such as a charging circuit, etc., may also be included in the connection device.
According to the above scheme, in the connection device provided in the third embodiment of the present application, when the interaction device establishes the first data connection with the electronic device through the connection device, the interaction device monitors the connection state of the interaction device, and then outputs the first instruction at least when the connection state indicates that the first data connection is disconnected, so as to instruct the interaction device to restore the first data connection with the electronic device through the connection device according to the received first instruction. Therefore, in the embodiment, the instruction output is performed through the connection device, so that the first data connection between the interaction device and the electronic device is recovered, and the instruction broadcast of the interaction device is not relied on in the process, so that the energy consumption of the interaction device is reduced.
In addition, the application can also provide an electronic device comprising the connecting device, such as a notebook provided with an earphone cabin, a game terminal provided with a handle box and the like. The electronic device may also be worn with corresponding interactive devices, such as a headset or a game pad.
Taking the electronic device as a notebook computer equipped with an earphone chamber (which may also be a charging tray or a charging chamber) capable of placing a true Wireless bluetooth tws (true Wireless stereo) earphone (hereinafter referred to as an earphone) as an example, a detailed example of the technical scheme in the present application is given as follows:
with reference to fig. 20, in a scenario where the master headset establishes a BLE connection with the notebook and the handset simultaneously, the slave headset establishes a BLE connection with the notebook at a connection point where the master headset is connected with the notebook and the handset, based on which, if the user carries the handset and leaves the notebook with the left slave headset so that the headset exceeds the connection range of the headset bin, the master headset continuously broadcasts a second instruction to scan the peripheral notebook to attempt to recover the BLE connection with the headset bin therein, and waits on the notebook, if the master headset still does not recover the BLE connection with the headset bin after 15 minutes, the master headset stops broadcasting the instruction, since the second instruction broadcasted by the master headset is not received within 15 minutes of waiting on the notebook, the headset bin on the notebook broadcasts a first instruction to attempt to recover the BLE connection with the peripheral master headset until the master headset is carried back into the connection range of the headset bin by the user, the main earphone can receive the first instruction broadcasted by the earphone bin and accordingly recover the BLE connection between the main earphone and the earphone bin, the BLE connection between the main earphone and the notebook is recovered, if the main earphone does not return to the connection range of the earphone bin all the time, the earphone bin does not broadcast the first instruction any more after broadcasting the first instruction for 2 hours, at the moment, the earphone also enters a standby state, and if a user needs the earphone, the earphone can be connected and set in a Bluetooth list of the mobile phone.
It can be seen that, generally, after the headset and the master device, i.e. the notebook computer, exceed the connection range, the BLE connection is disconnected from the master device, and if the headset returns to the connection range within a certain time (generally, 15 minutes), the headset always sends a connection instruction back to the master device to automatically reply the connection; if the time exceeds 15 minutes, the earphone cabin actively sends back a connection instruction through the BLE module for 2 hours, and when the earphone returns to the connection range, the connection back instruction of the earphone cabin can be received, so that automatic connection back after long-time disconnection can be realized. And if the earphone does not return to the connection range, the earphone bin does not send a connection instruction back, the user can click the disconnection in the configuration interface through a matched application program to realize the disconnection between the earphone and the main equipment, and if the reconnection is needed, the user only needs to click the reconnection.
In conclusion, by adopting the technical scheme of the application, the earphone can be easily interacted with the notebook computer through the earphone bin, and the automatic connection time of the earphone can be prolonged without increasing the power consumption of the earphone; in addition, the user can easily connect and disconnect the earphone and the notebook computer through the application program.
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 under the condition that an interaction device and electronic equipment establish first data connection through a connection device, the connection device monitors the connection state of the interaction device;
and characterizing that the first data connection is disconnected at least based on the connection state, and outputting a first instruction by the connection device, wherein the first instruction is used for instructing the interaction device to recover the first data connection with the electronic equipment through the connection device according to the received first instruction.
2. The method of claim 1, if the connection status characterizes the first connection disconnection, the method further comprising:
the connecting device monitors whether a second instruction sent by the interactive device is received or not, wherein the second instruction is used for indicating the connecting device to recover the first data connection between the interactive device and the electronic equipment;
if the connecting device does not receive the second instruction within the first time length, executing the following steps: and the connecting device outputs a first instruction.
3. The method according to claim 2, wherein the interactive device continuously transmits the second instruction according to a preset first output frequency within the first time length; or, the interactive device only sends one second instruction within the first duration.
4. The method of claim 1 or 2, the connection device outputting a first instruction comprising:
the connecting device continuously outputs a first instruction according to a preset second output frequency within a second time length;
alternatively, the first and second electrodes may be,
the connecting device outputs only one first instruction in the second duration.
5. The method of claim 1 or 2, after the connecting device outputs the first instruction, the method further comprising:
the connection device monitoring whether the first data connection is restored;
if the first data connection is not restored within a second length of time, the connection device stops outputting the first instruction.
6. The method of claim 5, after the connection device stops outputting the first instruction, the method further comprising:
and the connecting device triggers the electronic equipment to output prompt information, wherein the prompt information is used for prompting the input operation of connection on the application program corresponding to the interaction device.
7. The method according to claim 1 or 2, the first data connection being for establishing a second data connection between the interaction device and the first electronic device via the connection device;
wherein the connection power consumption of the first data connection is lower than the connection power consumption of the second data connection, and/or the communication type of the first data connection is the same as the communication type of the second data connection.
8. A control device, comprising:
the monitoring unit is used for monitoring the connection state of the interaction device under the condition that the interaction device and the electronic equipment establish first data connection through the connection device, representing disconnection of the first data connection at least based on the connection state and triggering the output unit;
and the output unit is used for outputting a first instruction, and the first instruction is used for instructing the interaction device to recover the first data connection with the electronic equipment through the connecting device according to the received first instruction.
9. The apparatus of claim 8, the output unit to be specifically configured to: continuously outputting a first instruction according to a preset output frequency within a second time length; or only one first instruction is output in the second duration.
10. A connection device, comprising:
the processor is used for monitoring the connection state of the interaction device by the connection device under the condition that the interaction device and the electronic equipment establish first data connection through the connection device;
and the communication module is used for representing disconnection of the first data connection at least based on the connection state and outputting a first instruction, wherein the first instruction is used for indicating the interaction device to recover the first data connection with the electronic equipment through the connection device according to the received first instruction.
CN202111163390.0A 2021-09-30 2021-09-30 Control method and device Active CN113727465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163390.0A CN113727465B (en) 2021-09-30 2021-09-30 Control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163390.0A CN113727465B (en) 2021-09-30 2021-09-30 Control method and device

Publications (2)

Publication Number Publication Date
CN113727465A true CN113727465A (en) 2021-11-30
CN113727465B CN113727465B (en) 2024-05-28

Family

ID=78685532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163390.0A Active CN113727465B (en) 2021-09-30 2021-09-30 Control method and device

Country Status (1)

Country Link
CN (1) CN113727465B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954147A (en) * 2014-03-28 2015-09-30 海尔集团公司 Equipment-waking method, gateway equipment, and server
CN105357283A (en) * 2015-10-20 2016-02-24 北京奇虎科技有限公司 Long connection establishing method for intelligent wearable device, server and terminal
JP2018056964A (en) * 2016-09-30 2018-04-05 富士通株式会社 Monitoring device, reconnection method, and reconnection program
CN110996405A (en) * 2019-12-16 2020-04-10 上海传英信息技术有限公司 Earphone connection method, terminal, earphone box and computer readable storage medium
CN111132108A (en) * 2019-12-24 2020-05-08 联想(北京)有限公司 Information processing method and electronic equipment
CN113079588A (en) * 2021-03-31 2021-07-06 联想(北京)有限公司 Control method, control device, control equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954147A (en) * 2014-03-28 2015-09-30 海尔集团公司 Equipment-waking method, gateway equipment, and server
CN105357283A (en) * 2015-10-20 2016-02-24 北京奇虎科技有限公司 Long connection establishing method for intelligent wearable device, server and terminal
JP2018056964A (en) * 2016-09-30 2018-04-05 富士通株式会社 Monitoring device, reconnection method, and reconnection program
CN110996405A (en) * 2019-12-16 2020-04-10 上海传英信息技术有限公司 Earphone connection method, terminal, earphone box and computer readable storage medium
CN111132108A (en) * 2019-12-24 2020-05-08 联想(北京)有限公司 Information processing method and electronic equipment
CN113079588A (en) * 2021-03-31 2021-07-06 联想(北京)有限公司 Control method, control device, control equipment and storage medium

Also Published As

Publication number Publication date
CN113727465B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN108769856B (en) Method and device for establishing single-wire connection, wireless earphone and charging box
CN108696784B (en) Wireless earphone role switching method, wireless earphone and TWS earphone
RU2564989C2 (en) Providing power to accessory during portable computing device hibernation
KR101267047B1 (en) Apparatus and method for detecting earphone
JP5011424B2 (en) In-vehicle terminal device and wireless connection program for in-vehicle terminal device
EP2720476A1 (en) Apparatus and method for detecting insertion of headset into mobile station
US8738094B2 (en) Automatically enabling wireless communication
CN109525012B (en) Charging device, charging control method, charging control system, and storage medium
EP2747395B1 (en) Mobile terminal and power saving method thereof
CN103685953A (en) Shooting device, mobile terminal and watch
CN111601290B (en) Bluetooth sound box, earphone, bluetooth audio playing device, bluetooth sound box system and Bluetooth audio switching method
CN114245362B (en) Device reconnection method and Bluetooth peripheral
CN109275058B (en) Dual mode earphone system, bluetooth device and cable
CN107318153B (en) Bluetooth module management method and device
CN113727465B (en) Control method and device
CN113825126B (en) Control method and device
CN113329387B (en) Bluetooth headset communication method and device
JP2004129253A (en) Wireless headphone provided with connecting bush
WO2018006593A1 (en) Wifi power supply switching method, circuit and apparatus, and storage medium
CN110933553B (en) Disconnect-type headphone
CN109991866B (en) Electronic equipment and control method
CN114866998A (en) Bluetooth connection method and Bluetooth device
CN109743715B (en) Processing method and system and electronic equipment
CN113923639B (en) Control method and device
CN114422919A (en) Master-slave switching method and device, TWS (two way communication system) headset and storage medium

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