CN113727465B - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN113727465B
CN113727465B CN202111163390.0A CN202111163390A CN113727465B CN 113727465 B CN113727465 B CN 113727465B CN 202111163390 A CN202111163390 A CN 202111163390A CN 113727465 B CN113727465 B CN 113727465B
Authority
CN
China
Prior art keywords
connection
instruction
data connection
earphone
interaction device
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.)
Active
Application number
CN202111163390.0A
Other languages
Chinese (zh)
Other versions
CN113727465A (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

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 device, wherein the method comprises the following steps: under the condition that the interaction device and the electronic equipment establish first data connection through a connection device, the connection device monitors the connection state of the interaction device; and characterizing the first data connection disconnection based on at least the connection state, wherein the connection device outputs a first instruction, and 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.

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 provided with interaction devices. The interactive device and the electronic equipment are provided with a connection range. After the interaction means moves beyond the connection range of the electronic device, the interaction means may break the connection with the electronic device. The interaction means may in a short time be able to automatically resume the connection after having come back to the connection range by broadcasting a connection instruction.
But if the interactive apparatus broadcasts the connection instruction for a long time, the power consumption of the interactive apparatus is high.
Disclosure of Invention
In view of this, the present application provides a control method and apparatus, as follows:
a control method, comprising:
Under the condition that the interaction device and the electronic equipment establish first data connection through a connection device, the connection device monitors the connection state of the interaction device;
And characterizing the first data connection disconnection based on at least the connection state, wherein the connection device outputs a first instruction, and 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.
The above method, preferably, if the connection state characterizes the first connection disconnection, the method further includes:
The connection device monitors whether a second instruction sent by the interaction device is received or not, wherein the second instruction is used for indicating the connection device to restore the first data connection between the interaction device and the electronic equipment;
if the connection device does not receive the second instruction within the first time period, executing the following steps: and outputting a first instruction by the connecting device.
In the above method, preferably, the interaction device continuously sends the second instruction according to a preset first output frequency in the first duration; or the interaction device only sends one second instruction in the first time period.
In the above method, preferably, the connecting device outputs a first instruction, including:
The connecting device continuously outputs a first instruction within a second duration according to a preset second output frequency;
Or alternatively
The connection means outputs only one of the first instructions for the second period of time.
In the above method, preferably, after the connection device outputs the first instruction, the method further includes:
the connection means monitoring whether the first data connection is restored;
if the first data connection is not restored within a second period of time, the connection means stops outputting the first instruction.
In the above method, preferably, after the connection device stops outputting the first instruction, the method further includes:
The connection device triggers the electronic equipment to output prompt information, and 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 for establishing a second data connection between the interaction device and the first electronic device through the connection device;
the connection power consumption of the first data connection is lower than that of the second data connection, and/or the communication type of the first data connection is the same as that of the second data connection.
A control apparatus 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 are connected through the connection device, characterizing the disconnection of the first data connection at least based on the connection state, and triggering the output unit;
The output unit is used for outputting a first instruction, and 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.
In the above device, preferably, the output unit is specifically configured to: continuously outputting a first instruction according to a preset output frequency in a second duration; or only one of the first instructions is output within the second time period.
A connection device, comprising:
The processor 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;
And the communication module is used for representing the disconnection of the first data connection at least based on the connection state and outputting a first instruction, and 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.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a control method according to a first embodiment of the present application;
FIGS. 2-7 are diagrams illustrating applications of embodiments of the present application, respectively;
FIG. 8 is another flow chart of a control method according to the first embodiment of the present application;
FIGS. 9-11 are diagrams illustrating another application example of the embodiment of the present application, respectively;
FIGS. 12-13 are flow charts of a control method according to a first embodiment of the present application;
FIG. 14 is a diagram showing another application example of the embodiment of the present application;
FIG. 15 is a flow chart of a control method according to a first embodiment of the present application;
FIGS. 16-17 are diagrams illustrating yet another application example of the embodiment 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 view of a connecting device according to a third embodiment of the present application;
Fig. 20 is a diagram showing an example of connection restoration control applicable to a TWS headset according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, a flowchart of a control method according to a first embodiment of the present application is provided, and the method may be applied to 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 an earphone bin for transmitting state information and instructions of an earphone and a notebook, a handle box for transmitting game frames for a game handle and a game terminal, and so on. The technical scheme in the embodiment is mainly used for reducing the energy consumption of the interaction device.
Specifically, the method in this embodiment may include the following steps:
Step 101: in case the interaction means establishes a first data connection with the electronic device via the connection means, the connection means monitors the connection status of the interaction means, at least based on the connection status characterizing the disconnection of the first data connection, step 102 is performed, and if the connection status characterizes the first data connection not to be disconnected, step 101 is continued to monitor continuously the connection status of the interaction means on the first data connection with the connection means.
The first data connection may be used to establish a second data connection between the interaction device and the connection device, and thus between the interaction device and the electronic device. The second data connection is used for transmitting a data stream between the interaction means and the connection means, i.e. between the interaction means and the electronics via the connection means.
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 is also understood herein to be a communication type, for example, the first data connection is a bluetooth low energy BLE (Bluetooth Low Energy) connection and the second data connection is a classical bluetooth connection BT (Classic Bluetooth). In a specific implementation, the BLE bluetooth module and the classical bluetooth module are loaded in the interaction device, the connection device and the electronic equipment, the BLE connection can be established between the electronic equipment of the interaction device through the connection device based on the BLE bluetooth module, and after the BLE connection is established, the BLE connection can be used for transmitting control instructions and state information between the interaction device and the electronic equipment, wherein the control instructions can comprise connection instructions and/or reset instructions transmitted by the electronic equipment to the interaction device, the connection instructions are used for indicating the interaction device to establish second data connection with the electronic equipment, and the reset instructions are used for indicating 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 equipment, and may include: any one or any more of electric quantity state information, connection state information and charging state information of the interaction device, wherein the connection state information refers to whether the interaction device and the electronic equipment are connected with each other through the connection device, the charging state information refers to whether the electronic equipment charges the interaction device through the connection device, and the electric quantity state information refers to information of the current residual electric quantity state of the interaction device and can be represented by numerical values such as percentages. Further, based on the classical bluetooth module and the established BLE connection, a classical bluetooth connection can be established between the interaction device and the electronic device through the connection device, the classical bluetooth connection being used for transmitting a data stream, such as a sound signal or a game frame, between the interaction device and the electronic device.
For example, as shown in fig. 2, a BLE connection is established between the earphone and the earphone bin, so that a BLE connection can be established between the earphone and the notebook through the earphone bin, and the BLE connection can be used for establishing a classical bluetooth connection between the earphone and the earphone bin, and further establishing a classical bluetooth connection between the earphone and the notebook through the earphone bin, so that a sound signal of the notebook can be output in the earphone. Of course, other headphones or other output devices can establish BLE connection and classical bluetooth connection with the notebook in this way to output sound signals in the notebook.
It should be noted that, the connection device may establish a first data connection and a 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, a bluetooth module is arranged in the handle case, and the handle case respectively establishes BLE connection and classical bluetooth connection 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 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 interaction device is placed in the accommodation space formed by the connection device, the connection device has two states of closed accommodation space and open accommodation space. For example, as shown in fig. 3, the earphone is in a state in which the earphone house is in the closed state of the house cover of the earphone house, and the earphone is in a state in which the earphone house is in the open state of the house cover of the earphone house.
The connection device may be configured as an independent electronic device, or may be built in the electronic device. For example, the earphone house may be provided in a separate notebook, or the earphone house may be connected in the notebook through a universal serial bus USB (Universal Serial Bus) interface, as shown in fig. 4.
In this embodiment, the connection device may further establish an electrical connection between the interaction device and the electronic device, so that the electronic device charges the interaction device through the connection device. Specifically, the connection device can establish electrical connection with the electronic device in a wired or wireless manner, for example, the earphone bin is connected with the notebook through a USB interface, the USB interface realizes electrical connection between the earphone bin and the notebook, or the earphone bin is connected with the notebook in a wireless manner, and the notebook provides electrical energy for the earphone bin in a spaced or contact manner. Based on the above, a charging circuit is arranged in the connection device, and the charging circuit obtains electric energy from the electronic equipment in which the charging circuit is arranged in a wired mode or a wireless mode and outputs the electric energy to the interaction device in the connection device. For example, a charging circuit is arranged in the earphone bin, and the charging circuit obtains electric energy from a notebook where the charging circuit is located through a USB interface and outputs the electric energy to the 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 interaction device still maintains the first data connection with the connection device by monitoring device status information transmitted by the interaction device. If no device status information of the interaction device is received on the connection device for a certain period of time, it may be determined that the first data connection between the interaction device and the connection device is broken. For example, during the process that the earphone establishes a BLE connection with the earphone bin, the earphone updates earphone state information to the earphone bin according to a certain frequency, and if the earphone state information updated by the earphone cannot be received in 5 minutes on the earphone bin, the earphone bin can determine that the earphone possibly breaks the BLE connection with the earphone bin due to moving to a position beyond the connection range.
In another implementation, the connection device may determine whether the interaction device is to be powered off resulting in a disconnection of the first data connection with the connection device by monitoring a power off command of the interaction device. The shutdown instruction is sent to the connection device by the interaction device or the electronic equipment under the condition that the interaction device meets the shutdown condition, and the shutdown condition can be the condition that the interaction device is low in power, full power or the electronic equipment 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 command to the headset bin when the notebook is powered off during low battery, full battery, or charging, and the headset bin may determine that the headset may be about to break the BLE connection with the headset bin due to the power off.
In another implementation, the connection device may monitor its connection configuration information to determine whether the interaction device has established a first data connection with the connection device. The connection configuration information of the connection device includes information of all devices or apparatuses connected by the connection device through the first data connection, such as an interaction device and an electronic device. If there is no content such as a device identification or connection identification of the interacting device in the connection configuration information of the connecting device, it may be determined that the first data connection between the interacting device and the connecting device has been broken. For example, when the earphone has a BLE connection with the earphone bin, the earphone may be carried and moved to an area beyond the connection range of the earphone bin, the earphone bin continuously monitors own connection configuration information, if a bluetooth identifier of the earphone is contained therein, it may be determined that the earphone has a BLE connection with the earphone bin continuously, and if no bluetooth identifier of the earphone is already contained therein, the earphone bin may determine that the earphone may have disconnected the BLE connection with the earphone bin due to movement to a position beyond the connection range.
Step 102: outputting a first instruction.
The first instruction is used for indicating the interaction device to restore the first data connection with the electronic equipment through the connection device according to the received first instruction.
In the case that the connection device detects that the first data connection with the interaction device is disconnected, the first instruction is output 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 equipment.
Specifically, when the connecting device outputs the first instruction, the connecting device may be implemented in the following different manners:
In one embodiment, the connection device continuously outputs the first command at a preset second output frequency for a second period of time, so that the connection device can continuously output a plurality of first commands for the second period of time. 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 realized 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 means may be reduced for the user; if the second time period is set to a longer value, a more reliable connection service can be provided to the user. For example, the earphone bin continuously broadcasts the first instruction at a frequency of once every 5 seconds for 2 hours when the BLE connection of the earphone is found to be broken, as shown in fig. 5.
In another implementation, the connection device may output only one first instruction for the second period of time. For example, the connection device outputs a first command for a second period of time after detecting that the first data connection between the interaction device and the connection device is broken. For example, the earphone bin broadcasts a first instruction after 20 minutes when it finds that the BLE connection of the earphone is broken, as shown in fig. 6.
Based on the above implementation, after receiving the first instruction broadcast by the connection device, the interaction device may establish a first data connection with the connection device according to the instruction content included in the first instruction, such as the device identifier of the connection device, so that the interaction device may restore the first data connection with the electronic device through the connection device. For example, when the earphone bin finds that the BLE connection of the earphone is disconnected, the earphone bin continuously broadcasts the first instruction at a frequency of once every 5 seconds within 2 hours, and if the earphone is started or moves back to the connection range of the earphone bin, the earphone can receive the first instruction broadcasted by the earphone bin, and further establish the BLE connection with the earphone bin according to the bluetooth identification of the earphone bin in the first instruction, thereby recovering the BLE connection with the notebook, on the basis of which the earphone can establish the classical bluetooth connection with the notebook, and further realize data transmission, as shown in fig. 7.
As can be seen from the foregoing, in the control method provided in the first embodiment of the present application, when the interaction device and the electronic device establish the first data connection through the connection device, the interaction device monitors the connection state of the interaction device, and further 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 resume the first data connection with the electronic device through the connection device according to the received first instruction. Therefore, in this embodiment, the connection device is used to output the instruction, so as to restore the first data connection between the interaction device and the electronic device, 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 comprise 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.
Wherein the second instruction is for instructing the connection means to resume the first data connection between the interaction means and the first device.
It can be seen that after the first data connection between the interactive device and the connection device is broken, the interactive device attempts to restore the first data connection with the connection device by outputting a second instruction for a first period of time. If the second instruction is transmitted to the connecting device in the first duration, the connecting device can restore the first data connection with the interaction device according to the second instruction, and then the first data connection between the interaction device and the electronic equipment is restored; if no second instruction is transmitted to the connection device in the first time period, the first data connection between the interaction device and the connection device cannot be restored, at this time, in order to reduce the energy consumption of the interaction device, the connection device outputs the first instruction to try to restore the first data connection with the interaction device, and if the interaction device receives the first instruction output by the connection device in the second time period, the interaction device can restore the first data connection with the connection device according to the first instruction, thereby restoring the first data connection between the interaction device and the electronic equipment.
Specifically, when the interaction device outputs the second instruction, the interaction device may be implemented in the following different manners:
In one implementation, the interaction device continuously outputs the second instructions according to a preset first output frequency in a first duration, so that the interaction device can continuously output a plurality of second instructions in the first duration. The first output frequency and the first duration 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 realized for a user; if the first output frequency is set to a lower frequency value and the first time period is set to a lower value, the energy consumption of the interaction device can be reduced for the user; if the first time period is set to a longer value, a more reliable connection service can be provided to the user. For example, when the earphone finds that the BLE connection with the earphone bin is broken, the earphone continuously broadcasts the second instruction at a frequency of once every 3 seconds for 15 minutes, as shown in fig. 9.
In another implementation, the interaction device may output only one second instruction for the first duration. For example, the interaction device outputs a second instruction over a first period of time after detecting that the first data connection between the connection device and the interaction device is broken. For example, when the earphone finds that the BLE connection with the earphone bin is broken, the earphone broadcasts a second instruction once after 15 minutes, as shown in fig. 10.
For example, the earphone is carried and moved by the user in the use process, the earphone is moved out of the connection range to disconnect the BLE connection with the earphone bin, namely, the user carries the earphone to leave the vicinity of the notebook, at this time, the earphone bin waits for a second instruction broadcasted by the earphone, meanwhile, the earphone continuously broadcasts the second instruction according to the frequency of once every 3 seconds in 15 minutes, if the earphone moves back into the connection range of the earphone bin, the earphone bin can receive the second instruction broadcasted by the earphone, and resumes the BLE connection with the earphone according to the Bluetooth identifier of the earphone bin in the second instruction, if the earphone does not move back into the connection range of the earphone bin, the earphone bin cannot receive the second instruction broadcasted by the earphone in 15 minutes, at this time, the earphone bin can continuously broadcast the first instruction according to the frequency of once every 5 seconds in the next 2 hours, if the earphone moves back into the connection range of the notebook, namely, the user carries the first instruction broadcasted by the earphone bin, and then the BLE connection with the earphone bin is established according to the Bluetooth identifier of the earphone bin in the first instruction, thereby resuming the BLE connection with the earphone bin in the Bluetooth identifier of the earphone bin, the BLE connection with the earphone bin is resumed, and then the BLE connection with the Bluetooth can be established on the classical basis, as shown in the Bluetooth connection between the Bluetooth connection with the notebook can be established with the Bluetooth device 11.
In one implementation, after step 102, that is, after the connection device outputs the first instruction, the present embodiment may further include the following steps, 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 time period, 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 period of time, to avoid excessive power consumption.
In another implementation, if it is detected in step 104 that the first data connection has not been restored within the second time period, step 102 may also be performed again, until the first data connection is restored, and step 105 may be performed again, as shown in fig. 13. Therefore, the connecting device can continuously broadcast the first instruction until the interaction device and the connecting device recover the first data connection, and the processing performance of the connecting device is consumed, but the connecting device can be ensured to immediately recover the first data connection with the interaction device once the interaction device enters the connection range of the connecting device and is in a starting drill bit, so that the connection recovery timeliness is ensured.
For example, the earphone is carried and moved by the user in the use process, because the earphone moves out of the connection range, the BLE connection between the earphone bin and the earphone is disconnected, namely, the user carries the earphone and leaves the vicinity of the notebook, at the moment, the earphone bin waits for a second instruction broadcasted by the earphone, meanwhile, the earphone continuously broadcasts the second instruction according to the frequency of once every 3 seconds in 15 minutes, if the earphone does not move back into the connection range of the earphone bin, the earphone bin can not receive the second instruction broadcasted by the earphone in 15 minutes, at the moment, the earphone bin can continuously broadcast the first instruction according to the frequency of once every 5 seconds in the next 2 hours, if the earphone moves back into the connection range of the earphone bin, namely, the user carries the earphone and returns to the vicinity of the notebook, the earphone can receive the first instruction broadcasted by the earphone bin, and then the BLE connection between the earphone bin and the earphone bin is established according to the Bluetooth identifier of the earphone bin in the first instruction, at the moment, the earphone bin can stop broadcasting the first instruction, and if the earphone does not always move back into the connection range of the earphone bin, at the moment, the earphone bin can continuously broadcast the first instruction according to the first instruction after the first instruction in 2 hours, the earphone bin is stopped, and the BLE connection between the earphone bin and the earphone bin is stopped, and the first instruction is continuously broadcasted, and the earphone bin is continuously, and the BLE connection is continuously shown in the first bin, the earphone bin is stopped.
Further, the following steps may be included in the present embodiment after step 105, that is, after the connection device stops outputting the first instruction, as shown in fig. 15:
step 106: the connection device triggers the electronic equipment to output prompt information.
The prompting information is used for prompting the input operation of connection on the application program corresponding to the interaction device.
That is, in order to avoid excessively high power consumption, after the connection device stops outputting the first instruction if the first data connection is not restored within the second period of time, the electronic device may output a prompt message to the user to prompt the user to perform an input operation of connection configuration on a configuration interface of an application program, where the application program may be a program installed on a terminal of the user, such as a mobile phone, for the interaction device, and includes the configuration interface, such as a connection configuration interface of an earphone shown in fig. 16, so that, after the second period of time, since the connection device has stopped outputting the first instruction and the interaction device does not output the second instruction any more, in order to be able to establish the first data connection, the user may perform an operation of connection configuration on the interaction device on the configuration interface of the interaction device, and then manually establish 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 of the interaction device between the interaction device and the connection device or other apparatus.
For example, after the earphone bin may stop broadcasting the first instruction, the earphone bin may output a prompt message on the notebook to prompt the user to perform connection setting on the paired earphone on the mobile phone, so that the earphone can establish BLE connection with the notebook again through the earphone bin, as shown in fig. 17.
Referring to fig. 18, a schematic structural diagram of a control device according to a second embodiment of the present application may be configured in 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 box for transmitting headset status information and commands to a headset and a notebook, a handle box for transmitting game frames to a game handle and a game terminal, and so on. The technical scheme in the embodiment is mainly used for reducing the energy consumption of the interaction 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 a connection device, characterize disconnection of the first data connection based at least on the connection state, and trigger an output unit;
And an output unit 1802, configured to output a first instruction, where the first instruction is used to instruct the interaction device to restore a first data connection with the first electronic device through the connection device according to the received first instruction.
As can be seen from the foregoing, in the control device provided in the second embodiment of the present application, when the interaction device and the electronic device establish the first data connection through the connection device, the interaction device monitors the connection state of the interaction device, and further 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 resume the first data connection with the electronic device through the connection device according to the received first instruction. Therefore, in this embodiment, the connection device is used to output the instruction, so as to restore the first data connection between the interaction device and the electronic device, 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, the output unit 1802 is specifically configured to: continuously outputting a first instruction according to a preset output frequency in a second duration; or only one of the first instructions is output within the second time period.
In one implementation, if the connection state characterizes the first connection disconnection, the monitoring unit 1801 is further configured to: monitoring whether a second instruction sent by the interaction device is received or not, wherein the second instruction is used for indicating the connection device to restore the first data connection between the interaction device and the electronic equipment; if the connection device does not receive the second instruction within the first time period, the output unit 1802 is triggered to output a first instruction.
Optionally, the interaction device continuously sends the second instruction within the first duration according to a preset first output frequency; or the interaction device only sends one second instruction in the first time period.
In one implementation, after the output unit 1802 outputs the first instruction, the monitoring unit 1801 is further configured to: the connection means monitoring whether the first data connection is restored; if the first data connection is not restored within the second time period, the trigger output unit 1802 stops outputting the first instruction.
Optionally, after the output unit 1802 stops outputting the first instruction, the method is further configured to: 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 means and the first electronic device through the connection means; the connection power consumption of the first data connection is lower than that of the second data connection, and/or the communication type of the first data connection is the same as that of the second data connection.
It should be noted that, the specific implementation of each unit in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
Referring to fig. 19, a schematic structural diagram of a connection device according to a third embodiment of the present application 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 an earphone house for transmitting earphone status information and instructions to an earphone and a notebook, a handle box for transmitting game frames to a game handle and a game terminal, and so on. The technical scheme in the embodiment is mainly used for reducing the energy consumption of the interaction device.
Specifically, the connection device in this embodiment may include the following structure:
a processor 1901, 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 a connection device;
And a communication module 1902, such as a bluetooth module, configured to characterize the disconnection of the first data connection based at least on the connection status, and output a first instruction, where the first instruction is used to instruct the interaction device to resume, according to the received first instruction, the first data connection with the first electronic device through the connection device.
Of course, other components, such as a charging circuit, may also be included in the connection device.
As can be seen from the foregoing, in the connection device provided in the third embodiment of the present application, when the interaction device and the electronic device establish the first data connection through the connection device, the interaction device monitors the connection state of the interaction device, and further 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 resume the first data connection with the electronic device through the connection device according to the received first instruction. Therefore, in this embodiment, the connection device is used to output the instruction, so as to restore the first data connection between the interaction device and the electronic device, 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 a headset cabin, a game terminal provided with a handle case and the like. Corresponding interactive devices, such as headphones or game pads, etc., can also be worn in the electronic device.
Taking an example of an electronic device as a notebook computer provided with an earphone cabin (also can be a charging tray or a charging cabin) capable of placing a true wireless Bluetooth TWS (True Wireless Stereo) earphone (hereinafter referred to as an earphone), the technical scheme in the application is illustrated in detail:
In combination with the illustration in fig. 20, in the scenario that the master earphone is simultaneously connected with the notebook and the mobile phone, the slave earphone establishes the BLE connection with the notebook with the connection point of the master earphone as the BLE connection, based on this, if the user carries the mobile phone and left slave earphone leaves the notebook so that the connection range of the earphone bin is exceeded, the master earphone continuously broadcasts a second instruction to scan the peripheral notebook to try to restore the BLE connection with the earphone bin therein, while waiting on the notebook, if the master earphone still does not restore the BLE connection with the earphone bin after 15 minutes, the master earphone stops broadcasting the instruction, since the second instruction broadcasted by the master earphone is not received in 15 minutes on the notebook, the earphone bin on the notebook broadcasts the first instruction to try to restore the BLE connection with the peripheral master earphone until the master earphone is carried back to the connection range of the earphone bin by the user, the master earphone can receive the first instruction broadcasted by the earphone bin and restore the BLE connection with the earphone bin accordingly, and further restore the BLE connection with the notebook, if the connection range of the master earphone bin is not always kept in the first order, and if the first instruction is not received in the first order, and then the user continuously broadcasts the first instruction is not required after the first order is set up, and the first order is not required to continue to enter the state after the first earphone is set.
As can be seen, normally, after the earphone and the main device, i.e. the notebook, exceed the connection range, the earphone is disconnected from the BLE with the main device, and if the earphone returns to the connection range within a certain time (generally 15 minutes), the earphone always sends a return connection instruction to automatically return to the connection with the main device; if the time exceeds 15 minutes, the earphone bin actively sends a reconnection instruction through the BLE module for 2 hours, and when the earphone returns to the connection range, the reconnection instruction of the earphone bin can be received, so that automatic reconnection after long-time disconnection can be realized. If the earphone does not return to the connection range, the earphone bin does not send a connection return instruction any more, and a user can realize disconnection of the earphone and the main equipment by clicking the 'disconnection' in the configuration interface through the matched application program, and if the earphone needs to be reconnected, the user only needs to click the 'reconnection'.
In summary, after the technical scheme of the application is adopted, the earphone can easily interact with the notebook through the earphone bin, and the automatic reconnection 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 through the application program.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
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 elements and steps are described above generally in terms of functionality in order to clearly illustrate the 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 solution. 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. The software modules may be disposed 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 (9)

1.A control method, comprising:
Under the condition that the interaction device and the electronic equipment establish first data connection through a connection device, the connection device monitors the connection state of the interaction device;
If the connection state represents that the first data connection is disconnected, the connection device monitors whether a second instruction sent by the interaction device is received or not, wherein the second instruction is used for indicating the connection device to restore the first data connection between the interaction device and the electronic equipment; and if the connecting device does not receive the second instruction within the first duration, the connecting device outputs a first instruction, wherein the first instruction is used for indicating the interaction device to restore the first data connection with the electronic equipment through the connecting device according to the received first instruction.
2. The method of claim 1, wherein the interaction device continuously transmits the second instruction at a preset first output frequency for the first duration; or the interaction device only sends one second instruction in the first time period.
3. The method of claim 1, the connecting device outputting a first instruction, comprising:
The connecting device continuously outputs a first instruction within a second duration according to a preset second output frequency;
Or alternatively
The connection means outputs only one of the first instructions for the second period of time.
4. The method of claim 1, after the connecting device outputs the first instruction, the method further comprising:
the connection means monitoring whether the first data connection is restored;
if the first data connection is not restored within a second period of time, the connection means stops outputting the first instruction.
5. The method of claim 4, after the connection device stops outputting the first instruction, the method further comprising:
The connection device triggers the electronic equipment to output prompt information, and the prompt information is used for prompting the input operation of connection on the application program corresponding to the interaction device.
6. The method of claim 1, the first data connection being for establishing a second data connection between the interaction means and the electronic device via the connection means;
the connection power consumption of the first data connection is lower than that of the second data connection, and/or the communication type of the first data connection is the same as that of the second data connection.
7. A control device for use in a connection device, the 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 are connected through the connection device, characterizing the disconnection of the first data connection at least based on the connection state, and triggering the output unit; the monitoring unit is further configured to, if the connection status characterizes the first data connection disconnection: monitoring whether a second instruction sent by the interaction device is received or not, wherein the second instruction is used for indicating the connection device to restore the first data connection between the interaction device and the electronic equipment; if the connecting device does not receive the second instruction within the first time period, triggering an output unit to output a first instruction;
The output unit is used for outputting a first instruction, and 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.
8. The apparatus of claim 7, the output unit being specifically configured to: continuously outputting a first instruction according to a preset output frequency in a second duration; or only one of the first instructions is output within the second time period.
9. A connection device, comprising:
The processor 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; the processor is further configured to: if the connection state represents that the first data connection is disconnected, the connection device monitors whether a second instruction sent by the interaction device is received or not, wherein the second instruction is used for indicating the connection device to restore the 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, triggering a communication module to output a first instruction;
And the communication module is used for representing the disconnection of the first data connection at least based on the connection state and outputting a first instruction, and 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.
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 CN113727465A (en) 2021-11-30
CN113727465B true 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
CN113727465A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN108696784B (en) Wireless earphone role switching method, wireless earphone and TWS earphone
CN108899952B (en) Multi-battery charging and discharging device and mobile terminal
JP5011424B2 (en) In-vehicle terminal device and wireless connection program for in-vehicle terminal device
WO2017101047A1 (en) Charging control method and device, power adapter, and mobile terminal
EP2720476A1 (en) Apparatus and method for detecting insertion of headset into mobile station
EP3125513A1 (en) Multi-mode power saving multimedia transmission method and system
EP3557942A1 (en) Automatically enabling wireless communication
CN103685953A (en) Shooting device, mobile terminal and watch
EP2747395B1 (en) Mobile terminal and power saving method thereof
CN109950433B (en) Communication method suitable for battery pack and battery pack
CN114245362B (en) Device reconnection method and Bluetooth peripheral
CN111601290B (en) Bluetooth sound box, earphone, bluetooth audio playing device, bluetooth sound box system and Bluetooth audio switching method
CN113727465B (en) Control method and device
CN110891261A (en) Bluetooth headset pairing method and system, Bluetooth headset and computer readable storage medium
CN113825126B (en) Control method and device
JP2004129253A (en) Wireless headphone provided with connecting bush
CN113329387B (en) Bluetooth headset communication method and device
CN113923639B (en) Control method and device
WO2018006593A1 (en) Wifi power supply switching method, circuit and apparatus, and storage medium
CN110933553B (en) Disconnect-type headphone
CN109743715B (en) Processing method and system and electronic equipment
CN114422919A (en) Master-slave switching method and device, TWS (two way communication system) headset and storage medium
CN110120695B (en) Charging method and terminal equipment
CN113115416A (en) Control method, device and system for doorbell equipment
JP5873192B2 (en) System and method for enabling wireless functionality in electronic devices

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