CN118057899A - Equipment control method, device, terminal equipment and storage medium - Google Patents

Equipment control method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN118057899A
CN118057899A CN202211457544.1A CN202211457544A CN118057899A CN 118057899 A CN118057899 A CN 118057899A CN 202211457544 A CN202211457544 A CN 202211457544A CN 118057899 A CN118057899 A CN 118057899A
Authority
CN
China
Prior art keywords
bluetooth
connection
instruction
bluetooth device
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211457544.1A
Other languages
Chinese (zh)
Inventor
侯锐填
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211457544.1A priority Critical patent/CN118057899A/en
Priority to PCT/CN2023/118612 priority patent/WO2024109279A1/en
Publication of CN118057899A publication Critical patent/CN118057899A/en
Pending legal-status Critical Current

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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a device control method, a device, terminal equipment and a storage medium. The method comprises the following steps: the first Bluetooth device and the second Bluetooth device are connected in a first mode, and the first Bluetooth device and the second Bluetooth device are Bluetooth devices capable of being used in a combined mode; the first Bluetooth device establishes a second connection with the terminal device; and disconnecting the first connection under the condition that the second Bluetooth device establishes a third connection with the terminal device. By the method, under the condition that the terminal equipment is respectively connected with the plurality of Bluetooth equipment, the connection among the plurality of Bluetooth equipment is disconnected, so that the bandwidth consumption of the Bluetooth equipment can be reduced, and meanwhile, the power consumption of the Bluetooth equipment can be reduced.

Description

Equipment control method, device, terminal equipment and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a device control method, a device, terminal equipment and a storage medium.
Background
With the development of device technology, more terminal devices have supported the simultaneous connection of multiple bluetooth devices, and communication connection is established between the multiple bluetooth devices. In this case, an increase in power consumption of the bluetooth device may be caused.
Disclosure of Invention
In view of the above, the present application proposes a device control method, apparatus, terminal device, and storage medium to achieve improvement of the above problems.
In a first aspect, an embodiment of the present application provides a device control method, applied to a first bluetooth device, where the method includes: the first Bluetooth device and the second Bluetooth device are connected in a first mode, and the first Bluetooth device and the second Bluetooth device are Bluetooth devices capable of being used in a combined mode; the first Bluetooth device establishes a second connection with the terminal device; and disconnecting the first connection under the condition that the second Bluetooth device establishes a third connection with the terminal device.
In a second aspect, an embodiment of the present application provides an apparatus control method, applied to a terminal apparatus, where the method includes: the terminal equipment establishes a second connection with the first Bluetooth equipment; the terminal equipment establishes a third connection with the second Bluetooth equipment, and controls to disconnect the first connection, wherein the first connection is the connection established between the first Bluetooth equipment and the second Bluetooth equipment, and the first Bluetooth equipment and the second Bluetooth equipment are Bluetooth equipment capable of being used in a combined mode.
In a third aspect, an embodiment of the present application provides a device control apparatus, operating on a first bluetooth device, where the apparatus includes: the first connection unit is used for establishing a first connection between the first Bluetooth device and the second Bluetooth device, wherein the first Bluetooth device and the second Bluetooth device are Bluetooth devices capable of being used in a combined mode; the second connection unit is used for establishing a second connection between the first Bluetooth device and the terminal device; and the disconnection unit is used for disconnecting the first connection under the condition that the second Bluetooth device establishes the third connection with the terminal device.
In a fourth aspect, an embodiment of the present application provides an apparatus control device, which operates in a terminal device, where the apparatus includes: the connection unit is used for establishing a second connection between the terminal equipment and the first Bluetooth equipment; the disconnection unit is used for establishing third connection between the terminal equipment and the second Bluetooth equipment and controlling to disconnect the first connection, wherein the first connection is the connection established between the first Bluetooth equipment and the second Bluetooth equipment, and the first Bluetooth equipment and the second Bluetooth equipment are Bluetooth equipment capable of being used in a combined mode.
In a fifth aspect, an embodiment of the present application provides a terminal device, including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, wherein the above-described method is performed when the program code is run.
The embodiment of the application provides a device control method, a device, terminal equipment and a storage medium. First, the first Bluetooth device and the second Bluetooth device establish a first connection, the first Bluetooth device and the terminal device establish a second connection, and then the first connection is disconnected under the condition that the second Bluetooth device and the terminal device establish a third connection. By the method, under the condition that the terminal equipment is respectively connected with the plurality of Bluetooth equipment, the connection between the plurality of Bluetooth equipment is disconnected, so that the bandwidth consumption of the Bluetooth equipment can be reduced, and meanwhile, the power consumption of the Bluetooth equipment can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario of a device control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a device control method according to an embodiment of the present application;
FIG. 3 is a flow chart of a device control method according to another embodiment of the present application;
fig. 4 shows a flowchart of a device control method according to still another embodiment of the present application;
fig. 5 shows a flowchart of a device control method according to still another embodiment of the present application;
FIG. 6 is a schematic diagram showing the process of step S410-step S440 according to still another embodiment of the present application;
fig. 7 is a flowchart showing a device control method according to still another embodiment of the present application;
FIG. 8 is a schematic diagram showing the process from step S510 to step S520 according to still another embodiment of the present application;
fig. 9 is a block diagram showing a configuration of an apparatus control device according to an embodiment of the present application;
fig. 10 is a block diagram showing a configuration of an apparatus control device according to an embodiment of the present application;
fig. 11 is a block diagram showing a configuration of an apparatus control device according to an embodiment of the present application;
fig. 12 is a block diagram showing a configuration of an apparatus control device according to an embodiment of the present application;
Fig. 13 is a block diagram showing the structure of a terminal device for executing a device control method according to an embodiment of the present application in real time;
Fig. 14 shows a storage unit for storing or carrying program codes for implementing the device control method according to the embodiment of the present application in real time.
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.
With the enrichment of living contents of people, more and more terminal devices are owned by users. In order to facilitate the user's work and life, many terminal devices have supported the simultaneous connection of multiple bluetooth low energy devices. For example, taking a terminal device as a wireless bluetooth headset as an example, the headset can be connected to a mobile phone and a tablet computer at the same time; or taking a terminal device as an example of a mobile terminal, the mobile terminal may be simultaneously connected to the left and right ears of a TWS (True Wireless Stereo ) earphone, etc. in a bluetooth low energy audio mode. Further, the plurality of bluetooth low energy devices may be controlled by the terminal device, for example, the terminal device may send a control instruction to the plurality of bluetooth low energy devices at the same time, so that the plurality of bluetooth low energy devices may respond to the control instruction at the same time.
However, in the research of the related device control method, the inventor finds that after the terminal device establishes communication connection with the plurality of bluetooth low energy devices, the communication connection between the plurality of bluetooth low energy devices also remains connected, which further causes an increase in power consumption of the bluetooth low energy devices. For example, if the terminal device is a mobile phone, the bluetooth low energy device is a TWS headset. In a bluetooth low energy Audio (Bluetooth Low Energy Audio, BLE-Audio) mode, after the terminal device establishes a communication connection with the left ear and the right ear of the TWS earphone respectively, the communication connection between the left ear and the right ear of the TWS earphone is also kept, that is, the TWS link is kept, so that information synchronization between the left ear and the right ear of the TWS earphone can be conveniently performed, and the left ear and the right ear of the TWS earphone can simultaneously respond to the same service. As shown in fig. 1, it is assumed that a communication connection is established between the left ear and the right ear of the TWS headset, and a pairing connection is maintained, and meanwhile, the left ear and the right ear respectively establish a communication connection with the mobile phone, and a bluetooth low energy connection is maintained, so that communication between the mobile phone and the two ears is ensured. When the user performs control on the left ear, for example, a noise reduction mode is switched, the left ear firstly transmits a command corresponding to the control to the right ear through communication connection between the left ear and the right ear, and after the right ear receives the command, the left ear and the right ear start to respond to the corresponding command, for example, enter the noise reduction mode. Similarly, if the user performs the manipulation on the right ear, at this time, the right ear will send the command corresponding to the manipulation to the left ear through the communication connection between the left ear and the right ear, and after the left ear receives the command, the left ear and the right ear begin to respond to the corresponding manipulation command again. The communication connection between the left ear and the right ear can ensure that the synchronous response between the two ears can be ensured when a user performs a certain business operation between the two ears.
The above connection method can lead to that the two ears of the TWS earphone are required to be kept in communication connection for a long time, and in practice, in the LE Audio mode, the two ears of the TWS earphone and the mobile phone are respectively kept in low-power consumption Bluetooth connection, at the moment, the communication connection between the two ears is kept, so that bandwidth overhead is wasted, and meanwhile, the power consumption of the TWS earphone is increased.
Accordingly, the inventors propose a device control method, apparatus, terminal device, and storage medium in the present application. First, the first Bluetooth device and the second Bluetooth device establish a first connection, the first Bluetooth device and the terminal device establish a second connection, and then the first connection is disconnected under the condition that the second Bluetooth device and the terminal device establish a third connection. By the method, under the condition that the terminal equipment respectively establishes communication connection with the plurality of Bluetooth equipment, the communication connection among the plurality of Bluetooth equipment is disconnected, so that the bandwidth consumption of the Bluetooth equipment can be reduced, and meanwhile, the power consumption of the Bluetooth equipment can be reduced.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, an apparatus control method provided by an embodiment of the present application is applied to an interaction system, where the interaction system includes a terminal apparatus, a first bluetooth apparatus, and a second bluetooth apparatus, and the method includes:
step S110: the first Bluetooth device establishes a first connection with a second Bluetooth device.
In the embodiment of the present application, the first bluetooth device and the second bluetooth device may be low-power bluetooth devices, and the first bluetooth device and the second bluetooth device may be devices capable of being used in combination, for example, the first bluetooth device and the second bluetooth device may be a left ear and a right ear of the TWS headset, and the first bluetooth device and the second bluetooth device may also be bluetooth speakers capable of being used in combination, which is not limited herein. The first bluetooth device and the second bluetooth device may be multiple, that is, multiple bluetooth low energy devices may establish communication connection with each other. The first connection is a communication connection established between the first bluetooth device and the second bluetooth device, for example, the first connection may be a bluetooth low energy connection, and the first connection may also be a bluetooth pairing connection. Before the communication links are established between the terminal equipment and the plurality of low-power-consumption Bluetooth equipment, the plurality of low-power-consumption Bluetooth equipment can be firstly established with communication connection, and then the plurality of low-power-consumption Bluetooth equipment can carry out data transmission based on the communication links.
Step S120: and the first Bluetooth device establishes a second connection with the terminal device.
As one way, the second connection is a communication connection established between the first bluetooth device and the terminal device, and the second connection may be a bluetooth low energy connection. When the terminal equipment and the plurality of low-power-consumption Bluetooth equipment are in communication connection, the plurality of low-power-consumption Bluetooth equipment can simultaneously send a connection request to the terminal equipment, and then after the terminal equipment receives the connection request sent by the plurality of low-power-consumption Bluetooth equipment, the terminal equipment respectively responds to the connection request sent by the plurality of low-power-consumption Bluetooth equipment, and further, the terminal equipment can respectively establish communication connection with the plurality of low-power-consumption Bluetooth equipment.
In the embodiment of the present application, the terminal device may be a device configured to perform instruction transfer, such as a smart phone, a tablet computer, a notebook computer, and a wearable smart device, which is not specifically limited herein.
Step S130: and the terminal equipment establishes a third connection with the second Bluetooth equipment.
In the embodiment of the present application, the third connection is a communication connection established between the second bluetooth device and the terminal device, and the third connection may also be a bluetooth low energy connection.
In one mode, when the first bluetooth device and the second bluetooth device respectively establish communication connection with the terminal device, the first bluetooth device and the second bluetooth device can simultaneously send connection requests to the terminal device, and after the terminal device receives the connection requests of the first bluetooth device and the second bluetooth device, the terminal device respectively responds to the connection requests sent by the first bluetooth device and the second bluetooth device, and then the terminal can respectively establish communication connection with the first bluetooth device and the second bluetooth device.
Step S140: the first bluetooth device disconnects the first connection.
In order to reduce the power consumption of the low-power-consumption Bluetooth device, after detecting that a plurality of low-power-consumption Bluetooth devices respectively establish communication connection with the terminal device, the communication connection between the plurality of low-power-consumption Bluetooth devices can be disconnected, and then the plurality of low-power-consumption Bluetooth devices are uniformly controlled through the terminal device. Specifically, when the first bluetooth device determines that the first bluetooth device and the second bluetooth device respectively establish communication connection with the terminal device, the first bluetooth device may disconnect the communication connection established with the second bluetooth device.
In the embodiment of the application, the time for establishing communication connection between a plurality of low-power consumption Bluetooth devices and the terminal device may be different, which may cause the number of the low-power consumption Bluetooth devices establishing communication connection with the terminal device to change. Therefore, after detecting that a communication link is successfully established between a preset number of low-power-consumption Bluetooth devices and the terminal device in the plurality of low-power-consumption Bluetooth devices, the communication link between the preset number of low-power-consumption Bluetooth devices can be disconnected. By way of example, if the plurality of bluetooth low energy devices includes bluetooth low energy device 1, bluetooth low energy device 2, bluetooth low energy device 3 and bluetooth low energy device 4. The low-power consumption Bluetooth device 1 establishes a communication connection 1, a communication connection 2 and a communication connection 3 with the low-power consumption Bluetooth device 2, the low-power consumption Bluetooth device 3 and the low-power consumption Bluetooth device 4 respectively; the low-power consumption Bluetooth device 2 establishes communication connection 4 and communication connection 5 with the low-power consumption Bluetooth device 3 and the low-power consumption Bluetooth device 4 respectively; the bluetooth low energy device 3 establishes a communication connection 6 with the bluetooth low energy device 4. When the terminal equipment is detected to successfully establish communication links with the low-power-consumption Bluetooth equipment 1 and the low-power-consumption Bluetooth equipment 2 respectively, the communication connection established between the low-power-consumption Bluetooth equipment 1 and the low-power-consumption Bluetooth equipment 2, namely the communication connection 1, can be disconnected; when the terminal device is detected to successfully establish communication connection with the low-power-consumption Bluetooth device 1, the low-power-consumption Bluetooth device 2 and the low-power-consumption Bluetooth device 3, the communication connection established between the low-power-consumption Bluetooth device 1 and the low-power-consumption Bluetooth device 2, the communication connection established between the low-power-consumption Bluetooth device 1 and the low-power-consumption Bluetooth device 3, and the communication connection established between the low-power-consumption Bluetooth device 2 and the low-power-consumption Bluetooth device 3, namely the communication connection 1, the communication connection 2 and the communication connection 4 are disconnected; when it is detected that the terminal device successfully establishes communication connection with the bluetooth low energy device 1, the bluetooth low energy device 2, the bluetooth low energy device 3 and the bluetooth low energy device 4, all communication connections established among the bluetooth low energy device 1, the bluetooth low energy device 2, the bluetooth low energy device 3 and the bluetooth low energy device 4, namely the communication connection 1, the communication connection 2, the communication connection 3, the communication connection 4, the communication connection 5 and the communication connection 6, are disconnected.
By way of the above example, as another way, the bluetooth low energy device corresponding to the communication connection to be disconnected may be selected according to the bluetooth low energy device corresponding to the communication connection to be disconnected, and then the terminal device may first establish communication connection with the bluetooth low energy device to be disconnected. For example, as described above, if the communication connection to be disconnected is the communication connection 1, and the bluetooth low energy device corresponding to the communication link 1 is the bluetooth low energy device 1 and the bluetooth low energy device 2, at this time, the terminal device may previously establish communication connection with the bluetooth low energy device 1 and the bluetooth low energy device 2. After the terminal device establishes communication connection with the bluetooth low energy device 1 and the bluetooth low energy device 2, respectively, the communication connection established between the bluetooth low energy device 1 and the bluetooth low energy device 2 is disconnected.
In the embodiment of the application, after the first Bluetooth device detects that the first Bluetooth device and the second Bluetooth device are in communication connection with the same terminal device, the first Bluetooth device can send a disconnection instruction to the second Bluetooth device which is in communication connection with the first Bluetooth device, so that the first Bluetooth device and the second Bluetooth device can be controlled to disconnect the communication connection between the first Bluetooth device and the second Bluetooth device based on the disconnection instruction.
Step S150: and the first Bluetooth device sends a first instruction to the terminal device through the second connection.
In the embodiment of the present application, the first instruction is an instruction corresponding to the user's manipulation of the first bluetooth device, or the first instruction may also be a state parameter of the first bluetooth device. The operation of the user on the first bluetooth device may include a touch operation, a command input operation, and the like. The touch operation may be an operation performed on a target control in the first bluetooth device, where the touch operation is used to adjust a mode or a state of the first bluetooth device, for example, the target control may be a mode adjusting control, and then the touch operation may be an operation performed on the mode adjusting control, where the touch operation is used to adjust a mode of the low-power bluetooth device, and the touch operation may include a long press operation, a click operation (a double click operation or a single click operation, etc.), a sliding operation, etc., which are not specifically limited herein. The target control is a control for controlling the first bluetooth device, and the target control may be a physical control or a virtual control, which is not limited herein specifically.
In one mode, when the first Bluetooth device detects a touch operation of a user on a target control, a first instruction corresponding to the touch operation is generated and sent to the terminal device.
At this time, the terminal device has established communication connection with the plurality of bluetooth low energy devices, respectively, and then the first bluetooth device may send a first instruction corresponding to the touch operation to the terminal device through the communication connection established with the terminal device. In an embodiment of the present application, the terminal device 102 may be a mobile phone (as shown in fig. 1), a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, a media player, a television, etc., which are not limited herein.
Step S160: the terminal equipment receives the first instruction and generates a second instruction based on the first instruction.
In the embodiment of the application, the terminal equipment can receive the first instruction sent by the first Bluetooth equipment based on the communication connection established with the first Bluetooth equipment, and after receiving the first instruction, the terminal equipment can generate the second instruction corresponding to the first instruction, wherein the second instruction is used for indicating the control instruction for responding to the plurality of low-power consumption Bluetooth equipment which establish the communication connection with the terminal equipment, the second instruction can be used for indicating the first Bluetooth equipment and the second Bluetooth equipment to perform mode adjustment, parameter adjustment and the like, and the second instruction is the control instruction.
Step S170: and the terminal equipment sends the second instruction to the first Bluetooth equipment through the second connection, and simultaneously sends the second instruction to the second Bluetooth equipment through the third connection.
In the embodiment of the application, after the terminal equipment generates the second instruction corresponding to the first instruction sent by the first Bluetooth equipment, the terminal equipment can send the second instruction to the plurality of low-power Bluetooth equipment through communication connection respectively established with the plurality of low-power Bluetooth equipment.
As one way, since the lengths of the communication links established between the plurality of bluetooth low energy devices and the terminal device are different, the times at which the plurality of bluetooth low energy devices receive the control instruction transmitted by the terminal device may be different. In order to ensure that the plurality of low-power-consumption Bluetooth devices can respond to the second instruction sent by the terminal device at the same time, when the terminal device sends the second instruction to the plurality of low-power-consumption Bluetooth devices, the second instruction can be sent to the low-power-consumption Bluetooth devices at different moments according to the length of a communication link established between the terminal device and the plurality of low-power-consumption Bluetooth devices, so that the plurality of low-power-consumption Bluetooth devices can receive the second instruction sent by the terminal device at the same time. The longer the communication link established between the terminal equipment and the low-power consumption Bluetooth equipment is, the earlier the corresponding terminal equipment sends the second instruction; conversely, the shorter the communication link established between the terminal device and the bluetooth low energy device, the later the corresponding terminal device sends the second instruction.
Further, in order to ensure that the plurality of low-power-consumption Bluetooth devices all receive the second instruction sent by the terminal device, after the low-power-consumption Bluetooth device receives the second instruction sent by the terminal device, the low-power-consumption Bluetooth device can return a signal representing that the instruction is successfully received to the terminal device, and then the terminal device can determine whether the low-power-consumption Bluetooth device receives the control instruction according to the signal; if the terminal equipment does not receive the signal returned by the low-power-consumption Bluetooth equipment within the preset time period, the low-power-consumption Bluetooth equipment is determined to not receive the second instruction, and at the moment, the terminal equipment can resend the second instruction to the low-power-consumption Bluetooth equipment until the low-power-consumption Bluetooth equipment returns the signal.
Specifically, the terminal device may send a second instruction to the first bluetooth device through the second connection, and send the second instruction to the second bluetooth device through the third connection. When the terminal equipment sends a second instruction to the first Bluetooth equipment and the second Bluetooth equipment, the lengths of the communication links corresponding to the second connection and the third connection can be compared, and if the lengths of the communication links corresponding to the second connection and the communication links corresponding to the third connection are the same, the terminal equipment can send the second instruction to the first Bluetooth equipment and the second Bluetooth equipment at the same time; if the lengths of the communication link corresponding to the second connection and the communication link corresponding to the third connection are different, when the terminal device sends the second instruction to the first bluetooth device and the second bluetooth device, the terminal device can send the second instruction to the first bluetooth device and the second bluetooth device at different moments according to the lengths of the communication link corresponding to the second connection and the communication link corresponding to the third connection.
Step S180: the first Bluetooth device receives the second instruction and responds to the second instruction.
Step S190: the second Bluetooth device receives the second instruction and responds to the second instruction.
In the embodiment of the application, when the first Bluetooth device and the second Bluetooth device receive the second instruction, the second instruction can be responded at the same time.
According to the device control method provided by the application, under the condition that the terminal device respectively establishes communication connection with the plurality of low-power-consumption Bluetooth devices, the communication connection among the plurality of low-power-consumption Bluetooth devices is disconnected, so that the bandwidth consumption of the low-power-consumption Bluetooth devices can be reduced, the power consumption of the low-power-consumption Bluetooth devices can be reduced, and furthermore, the second instructions are respectively sent to the plurality of low-power-consumption Bluetooth devices through the terminal device, so that timeliness and synchronism of the response of the plurality of low-power-consumption Bluetooth devices to the second instructions can be realized.
Referring to fig. 3, an apparatus control method provided in an embodiment of the present application is applied to a first bluetooth apparatus, and the method includes:
Step S210: the first Bluetooth device and the second Bluetooth device are connected in a first mode, and the first Bluetooth device and the second Bluetooth device are Bluetooth devices capable of being used in a combined mode.
Step S220: and the first Bluetooth device establishes a second connection with the terminal device.
Step S230: and disconnecting the first connection under the condition that the second Bluetooth device establishes a third connection with the terminal device.
In the embodiment of the application, the plurality of low-power-consumption Bluetooth devices disconnect communication links between the plurality of low-power-consumption Bluetooth devices in response to the communication connection established between the terminal device and the plurality of low-power-consumption Bluetooth devices, which may occur after the terminal device establishes communication connection with all of the plurality of low-power-consumption Bluetooth devices, may occur before the terminal device sends the second instruction to the plurality of low-power-consumption Bluetooth devices through the communication connection established with the plurality of low-power-consumption Bluetooth devices, or may also occur at the same time when the terminal device sends the second instruction to the plurality of low-power-consumption Bluetooth devices through the communication connection established with the plurality of low-power-consumption Bluetooth devices; or may occur after the terminal device sends the second instruction to the plurality of bluetooth low energy devices through communication connections established with the plurality of bluetooth low energy devices, which is not particularly limited herein.
As one way, in order to reduce the power consumption of the bluetooth low energy device to the greatest extent, the plurality of bluetooth low energy devices disconnect the communication connection with each other in response to the communication connection established between the terminal device and the plurality of bluetooth low energy devices, which may occur after the terminal device has all established the communication connection with the plurality of bluetooth low energy devices.
As another way, in order to reduce the power consumption of the bluetooth low energy device to a greater extent, the plurality of bluetooth low energy devices disconnect the communication connection between each other in response to the communication connection established between the terminal device and the plurality of bluetooth low energy devices, which may occur before the terminal device sends the second instruction to the plurality of bluetooth low energy devices through the communication connection established between the terminal device and the plurality of bluetooth low energy devices, or may occur at the same time when the terminal device sends the second instruction to the plurality of bluetooth low energy devices through the communication connection established between the terminal device and the plurality of bluetooth low energy devices.
Optionally, the minimum power consumption reduction of the bluetooth low energy device in the above modes is to disconnect the communication connection between the bluetooth low energy devices after the terminal device sends the second instruction to the bluetooth low energy devices through the communication connection established with the bluetooth low energy devices.
In the embodiment of the application, the power consumption of the low-power-consumption Bluetooth equipment can be monitored in real time, and the time for disconnecting the communication connection among the plurality of low-power-consumption Bluetooth equipment can be adjusted in real time according to the change of the power consumption of the low-power-consumption Bluetooth equipment. For example, if the current bluetooth low energy device has a larger power consumption, the communication connection between the bluetooth low energy devices may be disconnected after the terminal device and the bluetooth low energy devices have all established communication connection, so that the power consumption of the bluetooth low energy device may be reduced to the greatest extent.
In one manner, the disconnecting the communication links between the plurality of bluetooth low energy devices includes: receiving connection verification information; and if the terminal equipment which is determined to be the same as the terminal equipment which establishes communication connection with the plurality of low-power-consumption Bluetooth equipment is based on the connection verification information, the communication connection among the plurality of low-power-consumption Bluetooth equipment is disconnected.
The connection verification information may be information sent by other bluetooth low energy devices that establish a communication connection with the first bluetooth device, and the connection verification information may include at least one of a physical address of a terminal device or an identifier of the terminal device to which the plurality of bluetooth low energy devices are connected, which is not specifically limited herein.
When the plurality of low-power-consumption Bluetooth devices respectively establish communication connection with the terminal device, the physical address or the identifier of the corresponding connected terminal device is acquired, the acquired physical address or identifier of the corresponding connected terminal device is transmitted to the first Bluetooth device, so that the first Bluetooth device can determine whether the terminal devices connected with the plurality of low-power-consumption Bluetooth devices are the same terminal device or not based on the received different connection verification information, and can determine that the terminal devices connected with the plurality of low-power-consumption Bluetooth devices are the same terminal device under the condition that the physical addresses or the identifiers of the terminal devices connected with the plurality of low-power-consumption Bluetooth devices are the same terminal device.
Namely, after the first Bluetooth device and the second Bluetooth device respectively establish communication connection with the terminal device, the first Bluetooth device receives connection verification information sent by the second Bluetooth device; and if the terminal equipment which establishes the second connection with the first Bluetooth equipment is determined to be the same as the terminal equipment which establishes the third connection with the second Bluetooth equipment based on the connection verification information, disconnecting the first connection.
According to the device control method provided by the application, under the condition that the terminal device respectively establishes communication links with the plurality of low-power-consumption Bluetooth devices, the communication links among the plurality of low-power-consumption Bluetooth devices are disconnected, so that the bandwidth consumption of the low-power-consumption Bluetooth devices can be reduced, and the power consumption of the low-power-consumption Bluetooth devices can be reduced.
Referring to fig. 4, an apparatus control method provided in an embodiment of the present application is applied to a first bluetooth apparatus, and the method includes:
step S310: the first Bluetooth device and the second Bluetooth device are connected in a first mode, and the first Bluetooth device and the second Bluetooth device are Bluetooth devices capable of being used in a combined mode.
Step S320: and the first Bluetooth device establishes a second connection with the terminal device.
Step S330: and receiving connection verification information sent by the terminal equipment through the second connection.
Step S340: and if the connection verification information is the same as the preset verification information corresponding to the second Bluetooth device, determining that the second Bluetooth device and the terminal device establish a third connection.
In the embodiment of the application, under the condition that the first Bluetooth device and the second Bluetooth device respectively establish communication connection with one terminal device, whether the terminal devices establishing communication connection with the first Bluetooth device and the second Bluetooth device are the same terminal device needs to be determined.
At this time, the first bluetooth device may be determined based on the connection verification information transmitted by the terminal device. The connection verification information may include a physical address or a device identifier of the second bluetooth device that establishes a communication connection with the terminal device. The preset verification information is real verification information of the second Bluetooth device and comprises a real physical address and a device identifier of the second Bluetooth device, and the first Bluetooth device can acquire the preset verification information of the second Bluetooth device because the first Bluetooth device and the second Bluetooth device establish first connection.
Step S350: and disconnecting the first connection under the condition that the second Bluetooth device establishes a third connection with the terminal device.
Step S360: and sending a first instruction to the terminal equipment through the second connection, so that the terminal equipment sends a second instruction corresponding to the first instruction to the first Bluetooth equipment through the second connection.
Step S370: and receiving the second instruction sent by the terminal equipment, and responding to the second instruction.
Step S380: and under the condition that the first connection and the third connection are determined to be disconnected, if a new first connection is established between the first Bluetooth device and the second Bluetooth device, sending the first instruction to the second Bluetooth device through the new first connection, so that the second Bluetooth device responds to the first instruction.
In the embodiment of the application, when communication connection is not established among a plurality of low-power consumption Bluetooth devices, and the terminal device only establishes communication connection with the first Bluetooth device, the first Bluetooth device directly responds to the touch operation.
Or when the communication connection between the plurality of low-power-consumption Bluetooth devices is in a disconnected state and the terminal device only establishes communication connection with the first low-power-consumption Bluetooth device, the first Bluetooth device directly responds to the touch operation.
Step S390: and disconnecting the new first connection under the condition that the second Bluetooth device establishes a new third connection with the terminal device.
After the first bluetooth device responds to the second instruction, if the first bluetooth device detects that the communication connection between the first bluetooth device and the second bluetooth device is reconnected or successfully established, the first bluetooth device can send the first instruction to the second bluetooth device through the communication connection between the first bluetooth device and the second bluetooth device, so that the second bluetooth device can respond to the first instruction.
After detecting that the second bluetooth device successfully establishes a communication connection with the terminal device, the communication connection between the first bluetooth device and the second bluetooth device may be disconnected again.
According to the device control method provided by the application, under the condition that the terminal device respectively establishes communication connection with the plurality of low-power-consumption Bluetooth devices, the communication connection among the plurality of low-power-consumption Bluetooth devices is disconnected, so that the bandwidth consumption of the low-power-consumption Bluetooth devices can be reduced, the power consumption of the low-power-consumption Bluetooth devices can be reduced, furthermore, the first instructions are respectively sent to the plurality of low-power-consumption Bluetooth devices through the terminal device, and the timeliness and the synchronism of the response of the plurality of low-power-consumption Bluetooth devices to the first instructions can be realized.
Referring to fig. 5, an apparatus control method provided by an embodiment of the present application is applied to a terminal apparatus, and the method includes:
Step S410: and the terminal equipment establishes a second connection with the first Bluetooth equipment.
Step S420: the terminal equipment establishes a third connection with the second Bluetooth equipment, and controls to disconnect the first connection, wherein the first connection is the connection established between the first Bluetooth equipment and the second Bluetooth equipment, and the first Bluetooth equipment and the second Bluetooth equipment are Bluetooth equipment capable of being used in a combined mode.
In the embodiment of the application, the communication connection established between the terminal equipment and the plurality of low-power Bluetooth equipment is a low-power Bluetooth connection, namely LE link. And establishing low-power-consumption Bluetooth connection between the terminal equipment and a plurality of low-power-consumption Bluetooth equipment based on an LE Audio technology.
As one way, communication connection may be established in advance between the plurality of bluetooth low energy devices before detecting whether or not bluetooth low energy connection is established between the terminal device and the plurality of bluetooth low energy devices. After the terminal equipment and the plurality of low-power-consumption Bluetooth equipment are detected to respectively successfully establish the low-power-consumption Bluetooth connection, the terminal equipment can send a disconnection instruction to the first low-power-consumption Bluetooth equipment, when the first low-power-consumption Bluetooth equipment receives the disconnection instruction, the first low-power-consumption Bluetooth equipment can synchronously send the disconnection instruction to the low-power-consumption Bluetooth equipment except for the first low-power-consumption Bluetooth equipment in the plurality of low-power-consumption Bluetooth equipment through communication connection established among the plurality of low-power-consumption Bluetooth equipment, and when the plurality of low-power-consumption Bluetooth equipment all receive the disconnection instruction, the plurality of low-power-consumption Bluetooth equipment responds to the disconnection instruction to disconnect the communication connection among the plurality of low-power-consumption Bluetooth equipment.
In another way, after detecting that the terminal device successfully establishes the bluetooth low energy connection with the plurality of bluetooth low energy devices respectively, the terminal device may send a disconnection instruction to the plurality of bluetooth low energy devices at the same time, and after the plurality of bluetooth low energy devices receive the disconnection instruction, the communication connection between the plurality of bluetooth low energy devices is disconnected in response to the disconnection instruction.
In this case, as long as the bluetooth low energy device receives the disconnection instruction, the bluetooth low energy device immediately responds to the disconnection instruction to disconnect the communication connection between the bluetooth low energy devices connected with the bluetooth low energy device, and further, the power consumption of the bluetooth low energy device can be gradually reduced.
In order to reduce the power consumption of the plurality of bluetooth low energy devices at the same time, when the terminal device sends a disconnection instruction to the plurality of bluetooth low energy devices, the disconnection instruction can be sent to the plurality of bluetooth low energy devices at different moments according to the length of a communication link established between the terminal device and the plurality of bluetooth low energy devices, so that the plurality of bluetooth low energy devices can receive the disconnection instruction sent by the terminal device at the same time. The longer the communication link established between the terminal equipment and the low-power consumption Bluetooth equipment is, the earlier the corresponding terminal equipment sends a disconnection instruction; conversely, the shorter the communication link established between the terminal device and the bluetooth low energy device, the later the corresponding terminal device sends the disconnection instruction.
In an exemplary embodiment of the present application, the first bluetooth device and the second bluetooth device may be a left ear and a right ear in the TWS headset, i.e. the first bluetooth device is a left ear in the TWS headset and the second bluetooth device is a right ear in the TWS headset. And the terminal equipment respectively establishes low-power Bluetooth connection with the left ear and the right ear in the TWS earphone, namely, establishes LE link.
Before the terminal equipment establishes low-power-consumption Bluetooth connection with the left ear and the right ear of the TWS earphone respectively, communication connection, namely TWS link, is established between the left ear and the right ear of the TWS earphone.
After the terminal device establishes LE link with the left ear and the right ear of the TWS earphone respectively, the terminal device may send a disconnection instruction to the left ear in the TWS earphone, and after the left ear receives the disconnection instruction, the communication connection between the terminal device and the right ear is disconnected in response to the disconnection instruction.
Optionally, after the terminal device establishes the LE link with the left ear and the right ear of the TWS earphone respectively, the terminal device may send a disconnection instruction to the right ear in the TWS earphone, and after the right ear receives the disconnection instruction, the communication link with the left ear is disconnected in response to the disconnection instruction.
Optionally, after the terminal device establishes the LE link with the left ear and the right ear of the TWS earphone respectively, the terminal device may send a disconnection instruction to the left ear and the right ear in the TWS earphone, and after the left ear and the right ear receive the disconnection instruction, the communication connection between the terminal device and the left ear and the right ear is disconnected in response to the disconnection instruction.
Step S430: receiving a first instruction sent by the first Bluetooth device based on an attribute protocol; and generating a corresponding second instruction based on the first instruction.
In the embodiment of the application, the attribute protocol is ATT (Attribute protocol) protocol. The attribute protocol is the basis of GATT (generic attribute profile ) and GAP (GENERIC ACCESS profile), which defines the data structure and organization of BLE upper layers. The attribute (attribute) concept is the core of the ATT protocol, which defines the contents of the attributes, specifying the method and rights to access the attributes.
The property protocol defines a write function or notify function. After the terminal equipment and the plurality of low-power-consumption Bluetooth equipment establish low-power-consumption Bluetooth connection, the first low-power-consumption Bluetooth equipment can send a first instruction to the terminal equipment through an attribute protocol corresponding to the communication connection and through a write function or a notify function defined by the attribute protocol.
In the embodiment of the application, the low-power consumption Bluetooth equipment operated by the user can be changed. As one way, if the bluetooth low energy device operated by the user is the second bluetooth device, step S430 may specifically include: and receiving a first instruction sent by the second Bluetooth device.
Step S440: transmitting the second instruction to the first bluetooth device based on the attribute protocol through the second connection, so that the first bluetooth device responds to the second instruction; and transmitting the second instruction to the second Bluetooth device based on the attribute protocol through the third connection so that the second Bluetooth device responds to the second instruction.
In the embodiment of the application, after the terminal equipment receives the second instruction sent by the first Bluetooth equipment, the terminal equipment sends the second instruction to the second Bluetooth equipment and the second Bluetooth equipment respectively through the attribute protocol, and after the first Bluetooth equipment and the second Bluetooth equipment receive the second instruction, the terminal equipment can respond to the second instruction at the same time. Specifically, because the lengths of the communication links established by the first bluetooth device and the second bluetooth device of the terminal device may be different, when the terminal device sends the second instruction to the first bluetooth device and the second bluetooth device, a preset response time may be carried in the second instruction, and when the first bluetooth device and the second bluetooth device receive the second instruction, the first instruction and the second bluetooth device respond to the second instruction when the first instruction and the second bluetooth device detect that the preset response time is reached. The preset response time may be set to a time required for the bluetooth low energy device with the longest communication link to receive the second instruction, or may be set to other response times, which is not limited herein specifically.
In the embodiment of the application, the first bluetooth device and the second bluetooth device may be a left ear and a right ear in the TWS headset, i.e. the first bluetooth device is a left ear in the TWS headset and the second bluetooth device is a right ear in the TWS headset. And the terminal equipment respectively establishes low-power Bluetooth connection with the left ear and the right ear in the TWS earphone, namely, establishes LE link.
After the terminal equipment establishes LE link with the left ear and the right ear of the TWS earphone respectively, the left ear or the right ear of the TWS earphone sends a first instruction to the terminal equipment, after the terminal equipment receives the first instruction, a second instruction corresponding to the first instruction is generated, and the second instruction is sent to the left ear and the right ear of the TWS earphone through a write function or a notify function defined by a property protocol.
For example, the process schematic shown in step S410-step S440 may be as shown in fig. 6. In fig. 6, the terminal device is a mobile phone, and the first bluetooth device and the second bluetooth device are respectively a TWS left ear and a TWS right ear. Firstly, TWS link is kept between a TWS left ear and a TWS right ear, and simultaneously the TWS left ear and the TWS right ear respectively establish LE link with a mobile phone. When the TWS left ear and the TWS right ear are respectively established with the LE link of the mobile phone, the TWS left ear disconnects the TWS link between the TWS left ear and the TWS right ear.
When a user performs control on the TWS left ear, the TWS left ear transmits a control instruction corresponding to the control to the mobile phone through a write or notify function defined by an ATT protocol on the link based on the LE link which is established by the mobile phone. After receiving the control instruction, the mobile phone sends the control instruction to the TWS left ear and the TWS right ear respectively through a write function defined in an ATT protocol, and after receiving the control instruction, the TWS left ear and the TWS right ear respond to corresponding user control.
Similarly, when the user performs control on the right ear of the TWS, the right ear of the TWS sends a control instruction corresponding to the control to the mobile phone through a write or notify function defined by an ATT protocol through the ATT protocol on the link based on the LE link which is already built with the mobile phone. After receiving the control instruction, the mobile phone sends the control instruction to the TWS left ear and the TWS right ear respectively through a write function defined in an ATT protocol, and after receiving the control instruction, the TWS left ear and the TWS right ear respond to corresponding user control.
According to the device control method provided by the application, under the condition that the terminal device respectively establishes communication connection with the plurality of low-power-consumption Bluetooth devices, the communication connection among the plurality of low-power-consumption Bluetooth devices is disconnected, so that the bandwidth consumption of the low-power-consumption Bluetooth devices can be reduced, the power consumption of the low-power-consumption Bluetooth devices can be reduced, and furthermore, the control instructions are respectively sent to the plurality of low-power-consumption Bluetooth devices through the terminal device, so that the timeliness and the synchronism of the response of the plurality of low-power-consumption Bluetooth devices to the control instructions can be realized.
Referring to fig. 7, an apparatus control method provided by an embodiment of the present application is applied to a terminal apparatus, and the method includes:
Step S510: and under the condition that the first connection and the third connection are determined to be disconnected, if the first Bluetooth device and the second Bluetooth device are determined to establish a new first connection, controlling the first Bluetooth device to send a first instruction to the second Bluetooth device through the new first connection, so that the second Bluetooth device responds to the first instruction.
In the embodiment of the application, when the first Bluetooth device detects the operation of a user, the terminal device directly controls the first Bluetooth device to respond to the touch operation under the condition that the terminal device only establishes communication connection with the first Bluetooth device and no communication connection is established between the first Bluetooth device and the second Bluetooth device. That is, the terminal device may send an instruction to the first bluetooth device, for instructing the first bluetooth device to directly respond to the touch operation.
Or when the terminal equipment only establishes communication connection with the first Bluetooth equipment and the communication connection between the first Bluetooth equipment and the second Bluetooth equipment is in a disconnected state, the terminal equipment directly controls the first Bluetooth equipment to respond to the touch operation when the first Bluetooth equipment detects the operation of a user.
In the embodiment of the application, when the first Bluetooth device detects that the communication connection is established between the first Bluetooth device and the second Bluetooth device and the terminal device only establishes the communication connection with the first Bluetooth device, the terminal device can directly control the first Bluetooth device to send a control instruction corresponding to the operation to a plurality of low-power Bluetooth devices when the first Bluetooth device detects the operation of a user.
Step S520: and if the terminal equipment and the second Bluetooth equipment establish a new third connection, disconnecting the new first connection.
In the embodiment of the application, after the communication connection is reestablished between the terminal equipment and the second Bluetooth equipment, the reestablished communication connection between the first Bluetooth equipment and the second Bluetooth equipment is disconnected.
Exemplary, a schematic process diagram of steps S510-S520 is shown in fig. 8. In fig. 8, the terminal device is a mobile phone, and the first bluetooth device and the second bluetooth device are respectively a TWS left ear and a TWS right ear. First, when the earphone is used, a communication link between the TWS left ear and the TWS right ear is not established, for example, when the TWS left ear is used, the TWS right ear is damaged, or the TWS right ear is not in the double-ear Bluetooth communication range.
At this time, the TWS left ear is connected with the mobile phone in a low-power consumption Bluetooth mode, and after the user controls the TWS left ear, the TWS left ear directly responds to the user control due to the fact that the TWS left ear is a single ear use scene. When the communication connection between the TWS left ear and the TWS right ear is reconnected, the TWS left ear sends a control instruction controlled by the current user to the TWS right ear through the communication connection between the two ears, and the TWS right ear responds to the control instruction after receiving the control instruction. If the current TWS left ear is in the noise reducing mode, after the TWS left ear and the TWS right ear are connected, the synchronization of the binaural noise reducing mode needs to be kept.
When the TWS right ear and the mobile phone are detected to complete the establishment of the low-power consumption Bluetooth connection, the TWS left ear disconnects the TWS link between the two ears again, and the subsequent flow is shown in fig. 6.
According to the device control method, under the condition that communication connection is established among the plurality of low-power-consumption Bluetooth devices, the control instructions are respectively sent to the plurality of low-power-consumption Bluetooth devices through the appointed low-power-consumption Bluetooth devices, so that timeliness and synchronism of response of the plurality of low-power-consumption Bluetooth devices to the control instructions can be achieved.
Referring to fig. 9, an apparatus control device 600 provided in an embodiment of the present application operates on a first bluetooth device, where the apparatus 600 includes:
And a first connection unit 610, configured to establish a first connection between the first bluetooth device and a second bluetooth device, where the first bluetooth device and the second bluetooth device are bluetooth devices that can be used in combination.
And a second connection unit 620, configured to establish a second connection between the first bluetooth device and the terminal device.
And a disconnection unit 630, configured to disconnect the first connection if it is determined that the second bluetooth device establishes a third connection with the terminal device.
As one way, the disconnection unit 630 is configured to receive connection verification information sent by the terminal device through the second connection; and if the connection verification information is the same as the preset verification information corresponding to the second Bluetooth device, determining that the second Bluetooth device and the terminal device establish a third connection.
Referring to fig. 10, the apparatus 600 may further include:
A response unit 640, configured to send a first instruction to the terminal device through the second connection, so that the terminal device sends a second instruction corresponding to the first instruction to the first bluetooth device through the second connection; and receiving the second instruction sent by the terminal equipment, and responding to the second instruction.
As one way, the response unit 640 is configured to, if it is determined that the first connection and the third connection are disconnected, send, through the new first connection, the first instruction to the second bluetooth device if the first bluetooth device establishes a new first connection with the second bluetooth device, so that the second bluetooth device responds to the first instruction; and disconnecting the new first connection under the condition that the second Bluetooth device establishes a new third connection with the terminal device.
Referring to fig. 11, an apparatus control device 700 provided in an embodiment of the present application is operated in a terminal device, where the apparatus 700 includes:
And the connection unit 710 is configured to establish a second connection between the terminal device and the first bluetooth device.
And a disconnection unit 720, configured to establish a third connection between the terminal device and a second bluetooth device, and control to disconnect a first connection, where the first connection is established between the first bluetooth device and the second bluetooth device, and the first bluetooth device and the second bluetooth device are bluetooth devices that can be used in combination.
Referring to fig. 12, the apparatus 700 may further include:
A response unit 730, configured to receive a first instruction, where the first instruction is sent by the first bluetooth device through the third connection; generating a second instruction based on the first instruction; transmitting the second instruction to the first Bluetooth device through the second connection so that the first Bluetooth device responds to the second instruction; and sending the second instruction to the second Bluetooth device through the third connection so that the second Bluetooth device responds to the second instruction.
As a way, the response unit 730 is configured to receive, based on an attribute protocol, a first instruction sent by the first bluetooth device; transmitting the second instruction to the first bluetooth device based on the attribute protocol through the second connection, so that the first bluetooth device responds to the second instruction; and transmitting the second instruction to the second Bluetooth device based on the attribute protocol through the third connection so that the second Bluetooth device responds to the second instruction.
Alternatively, the response unit 820 is further configured to, if it is determined that the first connection and the third connection are disconnected, control the first bluetooth device to send a first instruction to the second bluetooth device through the new first connection if it is determined that the first bluetooth device and the second bluetooth device establish a new first connection, so that the second bluetooth device responds to the first instruction; and if the terminal equipment and the second Bluetooth equipment establish a new third connection, disconnecting the new first connection.
It should be noted that, in the present application, the device embodiment and the foregoing method embodiment correspond to each other, and specific principles in the device embodiment may refer to the content in the foregoing method embodiment, which is not described herein again.
A terminal device provided by the present application will be described with reference to fig. 13.
Referring to fig. 13, based on the above-mentioned device control method and apparatus, another terminal device 800 capable of executing the above-mentioned device control method is provided in the embodiment of the present application. Terminal device 800 includes one or more (only one shown) processors 802, memory 804, and network module 806 coupled to each other. The memory 804 stores therein a program capable of executing the contents of the foregoing embodiments, and the processor 802 can execute the program stored in the memory 804.
Wherein the processor 802 may include one or more processing cores. The processor 802 utilizes various interfaces and lines to connect various portions of the overall terminal device 800, perform various functions of the terminal device 800, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 804, and invoking data stored in the memory 804. Alternatively, the processor 802 may be implemented in hardware in at least one of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 802 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 802 and may be implemented solely by a single communication chip.
The Memory 804 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 804 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 804 may include a stored program area that may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc., and a stored data area. The storage data area may also store data created by the terminal device 800 in use (such as phonebook, audio-video data, chat-record data), and the like.
The network module 806 is configured to receive and transmit electromagnetic waves, and to implement mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as an audio playback device. The network module 806 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The network module 806 may communicate with various networks such as the internet, intranets, wireless networks, or with other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 806 may interact with base stations.
Referring to fig. 14, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable storage medium 900 has stored therein program code that can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, computer readable storage medium 900 includes non-volatile computer readable media (non-transitory computer-readable storage medium). The computer readable storage medium 900 has storage space for program code 910 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 910 may be compressed, for example, in a suitable form.
The application provides a device control method, a device, a terminal device and a storage medium. By the method, under the condition that the terminal equipment is respectively connected with the plurality of Bluetooth equipment, the connection between the plurality of Bluetooth equipment is disconnected, so that the bandwidth consumption of the Bluetooth equipment can be reduced, and meanwhile, the power consumption of the Bluetooth equipment can be reduced.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (12)

1. A device control method, applied to a first bluetooth device, the method comprising:
The first Bluetooth device and the second Bluetooth device are connected in a first mode, and the first Bluetooth device and the second Bluetooth device are Bluetooth devices capable of being used in a combined mode;
The first Bluetooth device establishes a second connection with the terminal device;
and disconnecting the first connection under the condition that the second Bluetooth device establishes a third connection with the terminal device.
2. The method of claim 1, wherein the determining that the second bluetooth device establishes a third connection with the terminal device comprises:
receiving connection verification information sent by the terminal equipment through the second connection;
And if the connection verification information is the same as the preset verification information corresponding to the second Bluetooth device, determining that the second Bluetooth device and the terminal device establish a third connection.
3. The method according to claim 1, wherein the method further comprises:
sending a first instruction to the terminal equipment through the second connection so that the terminal equipment sends a second instruction corresponding to the first instruction to the first Bluetooth equipment through the second connection;
and receiving the second instruction sent by the terminal equipment, and responding to the second instruction.
4. A method according to claim 3, characterized in that the method further comprises:
If the first Bluetooth device establishes a new first connection with the second Bluetooth device under the condition that the first connection and the third connection are determined to be disconnected, sending the first instruction to the second Bluetooth device through the new first connection so as to enable the second Bluetooth device to respond to the first instruction;
And disconnecting the new first connection under the condition that the second Bluetooth device establishes a new third connection with the terminal device.
5. A device control method, applied to a terminal device, the method comprising:
the terminal equipment establishes a second connection with the first Bluetooth equipment;
The terminal equipment establishes a third connection with the second Bluetooth equipment, and controls to disconnect the first connection, wherein the first connection is the connection established between the first Bluetooth equipment and the second Bluetooth equipment, and the first Bluetooth equipment and the second Bluetooth equipment are Bluetooth equipment capable of being used in a combined mode.
6. The method of claim 5, wherein the method further comprises:
Receiving a first instruction, wherein the first instruction is sent by the first Bluetooth device through the third connection;
Generating a second instruction based on the first instruction;
transmitting the second instruction to the first Bluetooth device through the second connection so that the first Bluetooth device responds to the second instruction;
And sending the second instruction to the second Bluetooth device through the third connection so that the second Bluetooth device responds to the second instruction.
7. The method of claim 6, wherein the receiving the first instruction comprises:
receiving a first instruction sent by the first Bluetooth device based on an attribute protocol;
The sending the second instruction to the first bluetooth device through the second connection, so that the first bluetooth device responds to the second instruction, including:
Transmitting the second instruction to the first bluetooth device based on the attribute protocol through the second connection, so that the first bluetooth device responds to the second instruction;
The sending the second instruction to the second bluetooth device through the third connection, so that the second bluetooth device responds to the second instruction, including:
and transmitting the second instruction to the second Bluetooth device based on the attribute protocol through the third connection so that the second Bluetooth device responds to the second instruction.
8. The method of claim 5, wherein the method further comprises:
if the first Bluetooth device and the second Bluetooth device are determined to establish a new first connection under the condition that the first connection and the third connection are determined to be disconnected, the first Bluetooth device is controlled to send a first instruction to the second Bluetooth device through the new first connection, so that the second Bluetooth device responds to the first instruction;
and if the terminal equipment and the second Bluetooth equipment establish a new third connection, disconnecting the new first connection.
9. A device control apparatus operable with a first bluetooth device, the apparatus comprising:
the first connection unit is used for establishing a first connection between the first Bluetooth device and the second Bluetooth device, wherein the first Bluetooth device and the second Bluetooth device are Bluetooth devices capable of being used in a combined mode;
The second connection unit is used for establishing a second connection between the first Bluetooth device and the terminal device;
and the disconnection unit is used for disconnecting the first connection under the condition that the second Bluetooth device establishes the third connection with the terminal device.
10. A device control apparatus operable in a terminal device, the apparatus comprising:
the connection unit is used for establishing a second connection between the terminal equipment and the first Bluetooth equipment;
The disconnection unit is used for establishing third connection between the terminal equipment and the second Bluetooth equipment and controlling to disconnect the first connection, wherein the first connection is the connection established between the first Bluetooth equipment and the second Bluetooth equipment, and the first Bluetooth equipment and the second Bluetooth equipment are Bluetooth equipment capable of being used in a combined mode.
11. A terminal device comprising one or more processors; one or more programs are stored in the memory and configured to perform the method of any of claims 1-8 by the one or more processors.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, wherein the program code, when being executed by a processor, performs the method of any of claims 1-8.
CN202211457544.1A 2022-11-21 2022-11-21 Equipment control method, device, terminal equipment and storage medium Pending CN118057899A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211457544.1A CN118057899A (en) 2022-11-21 2022-11-21 Equipment control method, device, terminal equipment and storage medium
PCT/CN2023/118612 WO2024109279A1 (en) 2022-11-21 2023-09-13 Device control method and apparatus, and terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211457544.1A CN118057899A (en) 2022-11-21 2022-11-21 Equipment control method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118057899A true CN118057899A (en) 2024-05-21

Family

ID=91069374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211457544.1A Pending CN118057899A (en) 2022-11-21 2022-11-21 Equipment control method, device, terminal equipment and storage medium

Country Status (2)

Country Link
CN (1) CN118057899A (en)
WO (1) WO2024109279A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112789867B (en) * 2018-11-30 2023-02-10 华为技术有限公司 Bluetooth connection method and equipment
CN112806092B (en) * 2018-12-13 2023-07-28 华为技术有限公司 Microphone MIC switching method and device
CN110191389B (en) * 2019-06-25 2021-02-12 歌尔股份有限公司 Multi-point connection method and device of wireless headset, Bluetooth headset and TWS headset
CN111200769B (en) * 2020-01-08 2022-01-28 昆山泰芯微电子有限公司 Communication method for Bluetooth headset device and Bluetooth headset device
CN115278624A (en) * 2022-07-21 2022-11-01 Oppo广东移动通信有限公司 Information updating method and device, audio sharing method and system and electronic equipment

Also Published As

Publication number Publication date
WO2024109279A1 (en) 2024-05-30

Similar Documents

Publication Publication Date Title
US11102581B2 (en) Bluetooth earphone connecting method, electronic device and storage medium
EP3468068B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
WO2020063761A1 (en) Data transmitting method and system
CN108419226B (en) Method for connecting Bluetooth devices and Bluetooth devices
WO2020164349A1 (en) Data transmission control method and related product
CN109151212B (en) Equipment control method and device and electronic equipment
WO2019015427A1 (en) Data transmission method and device, terminal and computer-readable storage medium
CN113766477A (en) Device connection method, device, electronic device and computer readable medium
KR20120064883A (en) Communication control method for dual standby portable device and dual standby portable device supporting the same
CN107222937B (en) Data transmission method, device and terminal
WO2021239032A1 (en) Bluetooth protocol connection method and apparatus, storage medium, and related device
WO2019214706A1 (en) Access control method, message broadcast method, and related device
EP3182787A1 (en) Communication method and device
CN111556439A (en) Terminal connection control method, terminal and computer storage medium
CN115278624A (en) Information updating method and device, audio sharing method and system and electronic equipment
WO2024119947A1 (en) Bluetooth communication method and apparatus, electronic device, and computer-readable medium
WO2023165246A1 (en) Bluetooth protocol communication method, electronic device, apparatus, storage medium and product
JP4383700B2 (en) Mobile communication terminal
WO2023103732A1 (en) State control method and apparatus for earphone device, earphone device and storage medium
CN108811037B (en) Data transmission method and communication equipment
CN118057899A (en) Equipment control method, device, terminal equipment and storage medium
CN115665671A (en) Audio data sharing method and device, electronic equipment and storage medium
CN115580944A (en) Audio device connection method and device, storage medium and device
CN113271385A (en) Call forwarding method
CN113556716B (en) Image content sharing method and device and head-mounted display equipment

Legal Events

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