Bluetooth equipment control method and device, electronic equipment, chip and storage medium

By introducing a management mechanism of the second terminal in the Bluetooth device, the pairing of the Bluetooth device and the first terminal is controlled based on the user's consent, the problem of lack of security management of the pairing of existing Bluetooth devices is solved, and the pairing security and user experience are improved.

CN119450484APending Publication Date: 2025-02-14BEIJING X RING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411910399.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The pairing of existing Bluetooth devices and terminals lacks security management, and any terminal can be paired at will, which poses security risks.

Method used

The Bluetooth device receives the pairing request sent by the first terminal and sends the pairing request to the second terminal. The second terminal instructs whether the Bluetooth device is paired with the first terminal based on the user's consent, thereby realizing the management of the pairing terminal of the Bluetooth device.

Benefits of technology

It effectively avoids any terminal pairing with Bluetooth devices at will, improves the security of Bluetooth device pairing, and avoids connection confusion and unexpected connection switching through the management of the second terminal, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450484A_ABST
    Figure CN119450484A_ABST
Patent Text Reader

Abstract

The invention provides a Bluetooth equipment control method and device, electronic equipment, a chip and a storage medium, and relates to the technical field of Bluetooth. Comprises: a Bluetooth device receives a first pairing request sent by a first terminal, the first pairing request comprising a first identifier corresponding to the first terminal; a second pairing request is sent to a second terminal, the second pairing request comprises the first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal for managing the Bluetooth device; receiving first indication information sent by the second terminal, wherein the first indication information is used for indicating whether the Bluetooth equipment is paired with the first terminal; and controlling the Bluetooth device based on the first indication information. Therefore, the paired terminal of the Bluetooth device can be managed by the second terminal, the situation that any terminal can be paired with the Bluetooth device at will is avoided, and the pairing safety of the Bluetooth device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Bluetooth technology, and in particular to a control method, device, electronic device, chip and storage medium of a Bluetooth device. Background Art

[0002] Bluetooth is a wireless communication technology standard that establishes a communication environment for fixed and mobile devices based on low-cost short-range wireless connections. With the development of wireless communication technology, Bluetooth has become a common form of connection between devices. Most terminal devices (including computers, tablets, mobile phones, etc.) support connection with Bluetooth devices (including Bluetooth headsets, Bluetooth speakers, etc.).

[0003] However, the pairing of Bluetooth devices and terminals currently lacks security management. As long as a Bluetooth device is held, any terminal can be paired at will, which leads to security risks. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] The first aspect of the present disclosure provides a method for controlling a Bluetooth device, which is executed by the Bluetooth device and includes:

[0006] Receiving a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal;

[0007] Sending a second pairing request to a second terminal, wherein the second pairing request includes the first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device;

[0008] receiving first indication information sent by the second terminal, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal;

[0009] Based on the first indication information, the Bluetooth device is controlled.

[0010] A second aspect of the present disclosure provides a method for controlling a Bluetooth device, which is executed by a second terminal and includes:

[0011] receiving a second pairing request, wherein the second pairing request includes a first identifier corresponding to the first terminal and a second identifier corresponding to the Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device;

[0012] Displaying pairing information on a display interface of the second terminal, wherein the pairing information includes the first identifier and the second identifier;

[0013] determining first indication information according to whether a user of the second terminal agrees to pairing the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal;

[0014] Send the first indication information to the Bluetooth device.

[0015] The third aspect of the present disclosure provides a control device for a Bluetooth device, including:

[0016] A first receiving module, configured to receive a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal;

[0017] a sending module, configured to send a second pairing request to a second terminal, wherein the second pairing request includes the first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device;

[0018] A second receiving module, configured to receive first indication information sent by the second terminal, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal;

[0019] A control module is used to control the Bluetooth device based on the first indication information.

[0020] A fourth aspect of the present disclosure provides a control device for a Bluetooth device, including:

[0021] A receiving module, configured to receive a second pairing request, wherein the second pairing request includes a first identifier corresponding to the first terminal and a second identifier corresponding to the Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device;

[0022] A display module, configured to display pairing information on a display interface of the second terminal, wherein the pairing information includes the first identifier and the second identifier;

[0023] a determination module, configured to determine first indication information according to whether a user of the second terminal agrees to pairing the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal;

[0024] A sending module is used to send the first indication information to the Bluetooth device.

[0025] The fifth aspect embodiment of the present disclosure proposes an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the control method of the Bluetooth device proposed in the first aspect embodiment of the present disclosure, or implements the control method of the Bluetooth device proposed in the second aspect embodiment of the present disclosure.

[0026] The sixth aspect embodiment of the present disclosure proposes a chip, which includes a processing circuit, and the processing circuit is configured to execute the control method of the Bluetooth device proposed in the first aspect embodiment, or to implement the control method of the Bluetooth device proposed in the second aspect embodiment of the present disclosure.

[0027] The seventh aspect embodiment of the present disclosure proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the control method of the Bluetooth device proposed in the first aspect embodiment of the present disclosure, or implements the control method of the Bluetooth device proposed in the second aspect embodiment of the present disclosure.

[0028] The control method, device, electronic device, chip and storage medium of the Bluetooth device provided by the present disclosure have the following beneficial effects:

[0029] In the disclosed embodiment, the Bluetooth device receives a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal, and sends a second pairing request to a second terminal, wherein the second pairing request includes the first identifier and a second identifier corresponding to the Bluetooth device. The second terminal is a terminal for managing the Bluetooth device, and receives a first indication message sent by the second terminal, wherein the first indication message is used to indicate whether the Bluetooth device is paired with the first terminal. Finally, based on the first indication message, the Bluetooth device is controlled. Thus, when the first terminal requests to pair with the Bluetooth device, the second terminal can indicate whether the Bluetooth device can be paired with the first terminal, so that the second terminal manages the paired terminals of the Bluetooth device, preventing any terminal from being able to pair with the Bluetooth device at will, and improving the security of Bluetooth device pairing.

[0030] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0032] Figure 1 A schematic diagram of a flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure;

[0033] Figure 2 A schematic flow chart of a method for controlling a Bluetooth device provided by another embodiment of the present disclosure;

[0034] Figure 3 A schematic flow chart of a method for controlling a Bluetooth device provided by another embodiment of the present disclosure;

[0035] Figure 4 A schematic diagram of a flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure;

[0036] Figure 5 A schematic diagram of a flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure;

[0037] Figure 6 A schematic flow chart of a method for controlling a Bluetooth device provided by another embodiment of the present disclosure;

[0038] Figure 7 An interactive flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure;

[0039] Figure 8 An interactive flow chart of another method for controlling a Bluetooth device provided by an embodiment of the present disclosure;

[0040] Fig. 9 A schematic diagram of the structure of a control device for a Bluetooth device provided by another embodiment of the present disclosure;

[0041] Fig.10 A schematic diagram of the structure of a control device for a Bluetooth device provided in an embodiment of the present disclosure;

[0042] Fig.11 A block diagram of an exemplary electronic device suitable for implementing the embodiments of the present disclosure is shown;

[0043] Fig.12 It is a schematic diagram of the structure of a chip proposed in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0045] The following describes a control method, apparatus, electronic device, chip, and storage medium for a Bluetooth device according to an embodiment of the present disclosure with reference to the accompanying drawings.

[0046] The embodiment of the present disclosure takes the control method of the Bluetooth device as an example in which the control device of the Bluetooth device is configured in the control device of the Bluetooth device. The control device of the Bluetooth device can be applied to any electronic device so that the electronic device can execute the control function of the Bluetooth device.

[0047] Figure 1 A flowchart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure is shown and executed by the Bluetooth device.

[0048] like Figure 1 As shown, the control method of the Bluetooth device may include the following steps:

[0049] Step 101: receiving a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal.

[0050] The first terminal may be a terminal that requests pairing with a Bluetooth device. For example, the first terminal may be a device with Bluetooth function, such as a mobile phone, a computer, a tablet, a television, etc. This disclosure does not limit this.

[0051] The first identifier of the first terminal may be a device model, a device serial number, a media access control address (MAC) of the first terminal, etc. This disclosure does not limit this.

[0052] Step 102: Send a second pairing request to the second terminal, wherein the second pairing request includes the first identifier and the second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device.

[0053] In some embodiments, the terminal with which the Bluetooth device is successfully paired for the first time may be determined as the second terminal. It should be noted that the user corresponding to the terminal with which the Bluetooth device is successfully paired for the first time is usually the owner of the Bluetooth device. Therefore, the terminal with which the Bluetooth device is successfully paired for the first time may be determined as the second terminal, so that the user of the second terminal can manage the pairing of the Bluetooth device.

[0054] In some embodiments, the second terminal can also change the management authority of the Bluetooth device to other terminals, and the other terminals need to complete pairing with the Bluetooth device. That is, the old second terminal can transfer the management authority to the new second terminal, thereby realizing the transfer of the management authority of the Bluetooth device.

[0055] The second identifier corresponding to the Bluetooth device may be a device model, a device serial number, a Media Access Control Address (MAC) of the Bluetooth device, etc. This disclosure does not limit this.

[0056] In some embodiments, according to the second connection state between the Bluetooth device and the second terminal, a target mode for sending a request to the second terminal is determined, and based on the target mode, a second pairing request is sent to the second terminal. Thus, the second pairing request can be accurately sent to the second terminal.

[0057] In some embodiments, when the second connection state is disconnected, the target mode is determined to forward the request to the second terminal through the cloud of the Bluetooth device. It should be noted that when the second connection state is disconnected, the Bluetooth device and the second terminal are not in a Bluetooth connection, and the Bluetooth device cannot send the second pairing request to the second terminal through the Bluetooth connection between the second terminal. Therefore, the Bluetooth device can forward the second pairing request to the second terminal through the cloud.

[0058] In some embodiments, when the second connection state is connected, the target mode is determined as the Bluetooth device directly sending the request to the second terminal. It should be noted that when the second connection state is connected, the Bluetooth device and the second terminal are in a Bluetooth connection, and the Bluetooth device can directly send the second pairing request to the second terminal through the Bluetooth connection between the second terminal and the second terminal.

[0059] Step 103: Receive first indication information sent by the second terminal, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0060] In some embodiments, the user of the second terminal may determine whether the Bluetooth device can be paired with the first terminal. If the user of the second terminal agrees to pair the Bluetooth device with the first terminal, the first indication message is used to instruct the Bluetooth device to pair with the first terminal. If the user of the second terminal does not agree to pair the Bluetooth device with the first terminal, the first indication message is used to instruct the Bluetooth device not to pair with the first terminal.

[0061] In some embodiments, when the second connection state between the Bluetooth device and the second terminal is disconnected, the first indication information sent by the second terminal through the cloud is received. It should be noted that if the second connection state is disconnected, the Bluetooth device and the second terminal are not in a Bluetooth connection, and the second terminal cannot send the first indication information to the second terminal through the Bluetooth connection between the Bluetooth device and the Bluetooth device. Therefore, the second terminal can forward the first indication information to the Bluetooth device through the cloud, and the Bluetooth device receives the first indication information sent by the cloud.

[0062] In some embodiments, when the second connection state between the Bluetooth device and the second terminal is connected, the first indication information directly sent by the second terminal to the Bluetooth device is received. It should be noted that when the second connection state is connected, the Bluetooth device and the second terminal are in a Bluetooth connection, and the second terminal can directly send the first indication information to the Bluetooth device through the Bluetooth connection between the second terminal and the Bluetooth device, and the Bluetooth device receives the first indication information sent by the second terminal.

[0063] Step 104: Control the Bluetooth device based on the first indication information.

[0064] In some embodiments, if the first indication message is used to instruct the Bluetooth device to pair with the first terminal, the Bluetooth device is controlled to enter a pairing process with the first terminal.

[0065] In some embodiments, if the first indication message is used to instruct the Bluetooth device not to pair with the first terminal, the Bluetooth device is controlled to refuse pairing with the first terminal, and further, a pairing failure message may be sent to the first terminal.

[0066] In the disclosed embodiment, the Bluetooth device receives a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal, and sends a second pairing request to a second terminal, wherein the second pairing request includes the first identifier and a second identifier corresponding to the Bluetooth device. The second terminal is a terminal for managing the Bluetooth device, and receives a first indication message sent by the second terminal, wherein the first indication message is used to indicate whether the Bluetooth device is paired with the first terminal. Finally, based on the first indication message, the Bluetooth device is controlled. Thus, when the first terminal requests to pair with the Bluetooth device, the second terminal can indicate whether the Bluetooth device can be paired with the first terminal, so that the second terminal manages the paired terminals of the Bluetooth device, preventing any terminal from being able to pair with the Bluetooth device at will, and improving the security of Bluetooth device pairing.

[0067] Figure 2 The flowchart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure is executed by the Bluetooth device. Figure 2 As shown, the control method of the Bluetooth device may include the following steps:

[0068] Step 201: receiving a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal.

[0069] Step 202: Send a second pairing request to the second terminal, wherein the second pairing request includes the first identifier and the second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device.

[0070] Step 203: Receive first indication information sent by the second terminal, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0071] Step 204: Control the Bluetooth device based on the first indication information.

[0072] The specific implementation forms of steps 201 to 204 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.

[0073] Step 205: When the first terminal is successfully paired with the Bluetooth device, the working status of the Bluetooth device is obtained.

[0074] It should be noted that after the first terminal is successfully paired with the Bluetooth device, a connection between the first terminal and the Bluetooth device can be established. However, when the Bluetooth device is in a connected state with other terminals except the first terminal, if a connection is established directly with the first terminal, confusion may occur in the connection between Bluetooth and the terminal, resulting in unexpected connection switching operations, affecting the user experience. Therefore, in the embodiment of the present disclosure, when the Bluetooth device is in a connected state with other third terminals, and the first terminal requests to establish a connection with the Bluetooth device, the Bluetooth device can send a first connection request to the second terminal, and the user of the second terminal determines the terminal connected to the Bluetooth device, thereby avoiding the problem of confusion in the connection of the Bluetooth device, reducing unexpected connection switching, and improving the user experience.

[0075] The working state of the Bluetooth device may be connected to any third terminal or in an idle state, which is not limited in the present disclosure.

[0076] Among them, any third terminal may be a terminal other than the first terminal, and any third terminal may be the second terminal, or may be a terminal other than the first terminal and the second terminal. This disclosure does not limit this.

[0077] In some embodiments, a second connection request sent by the first terminal is received, wherein the second connection request includes a first identifier corresponding to the first terminal. It should be noted that after the first terminal successfully matches with the Bluetooth device, the first terminal can send a second connection request to the Bluetooth device again to request to establish a connection with the Bluetooth device. And after the first terminal successfully pairs with the Bluetooth device, if it is not the first connection, the first terminal will send a second connection request to the Bluetooth device.

[0078] Step 206, when the working state is that the Bluetooth device is connected to any third terminal, a first connection request is sent to the second terminal, wherein the first connection request includes the first identifier, the second identifier, a third identifier corresponding to any third terminal, and the first connection state between the second identifier and the third identifier.

[0079] Among them, if the working status is that the Bluetooth device is connected to any third terminal, it means that the Bluetooth device is being used by any third terminal. If the first terminal also wants to use it, the second terminal needs to determine whether to connect the first terminal to the Bluetooth device to avoid unexpected connection switching.

[0080] The third identifier of any third terminal may be a device model, a device serial number, a media access control address (MAC) of any third terminal, etc. This disclosure does not limit this.

[0081] The first connection state is connected. The first connection state between the second identifier and the third identifier indicates that the Bluetooth device is connected to any third terminal.

[0082] In some embodiments, when the second connection state is disconnected, the Bluetooth device forwards the first connection request to the second terminal through the cloud of the Bluetooth device. It should be noted that when the second connection state is disconnected, the Bluetooth device and the second terminal are not in a Bluetooth connection, and the Bluetooth device cannot send the first connection request to the second terminal through the Bluetooth connection between the second terminal. Therefore, the Bluetooth device can forward the first connection request to the second terminal through the cloud.

[0083] In some embodiments, when the second connection state is connected, the Bluetooth device forwards the first connection request to the second terminal through the Bluetooth connection between the Bluetooth device and the second terminal.

[0084] Step 207: receiving second indication information sent by the second terminal, wherein the second indication information is used to indicate a device among any third terminal and the first terminal to be connected to the Bluetooth device.

[0085] In some embodiments, the user of the second terminal can determine whether the Bluetooth device continues to be connected to any third terminal, or disconnects from any third terminal and establishes a connection with the first terminal. If the user of the second terminal instructs the Bluetooth device to continue to be connected to any third terminal, the second indication message is used to indicate that among any third terminal and the first terminal, the device connected to the Bluetooth device is any third terminal. If the user of the second terminal instructs the Bluetooth device to disconnect from any third terminal and establish a connection with the first terminal, the second indication message is used to indicate that among any third terminal and the first terminal, the device connected to the Bluetooth device is the first terminal.

[0086] In some embodiments, when the second connection state between the Bluetooth device and the second terminal is disconnected, the second indication information sent by the second terminal through the cloud is received. It should be noted that if the second connection state is disconnected, the Bluetooth device and the second terminal are not in a Bluetooth connection, and the second terminal cannot send the second indication information to the second terminal through the Bluetooth connection with the Bluetooth device. Therefore, the second terminal can forward the second indication information to the Bluetooth device through the cloud, and the Bluetooth device receives the second indication information sent by the cloud.

[0087] In some embodiments, when the second connection state between the Bluetooth device and the second terminal is connected, the second indication information directly sent by the second terminal to the Bluetooth device is received. It should be noted that when the second connection state is connected, the Bluetooth device and the second terminal are in a Bluetooth connection, and the second terminal can directly send the second indication information to the Bluetooth device through the Bluetooth connection between the second terminal and the Bluetooth device, and the Bluetooth device receives the second indication information sent by the second terminal.

[0088] Step 208: Control the Bluetooth device based on the second indication information.

[0089] In some embodiments, if the second indication message is used to indicate that the device connected to the Bluetooth device among any third terminal and the first terminal is any third terminal, the Bluetooth device refuses to connect to the first terminal and may further send a connection failure message to the first terminal.

[0090] In some embodiments, if the second indication message is used to indicate that among any third terminal and the first terminal, the device connected to the Bluetooth device is the first terminal, the Bluetooth device disconnects from any third terminal and establishes a connection with the first terminal.

[0091] In the disclosed embodiment, when the first terminal is successfully paired with the Bluetooth device, the working state of the Bluetooth device is obtained, and when the working state is that the Bluetooth device is connected to any third terminal, a first connection request is sent to the second terminal, wherein the first connection request includes a first identifier, a second identifier, a third identifier corresponding to any third terminal, and a first connection state between the second identifier and the third identifier, and a second indication information sent by the second terminal is received, wherein the second indication information is used to indicate any third terminal and the first terminal, the device connected to the Bluetooth device, and finally based on the second indication information, the Bluetooth device is controlled. Thus, when the first terminal requests to connect to the Bluetooth device and the Bluetooth device is in a connected state with any third terminal, the second terminal can indicate whether the Bluetooth device is connected to the first terminal or to any third terminal, so that not only the second terminal can manage the terminal paired with the Bluetooth device, avoiding any terminal from being able to pair with the Bluetooth device at will, improving the security of Bluetooth device pairing, but also the second terminal can manage the terminal connected to the Bluetooth device, avoiding confusion in Bluetooth device connection, reducing unexpected connection switching, and improving user experience.

[0092] In some embodiments, when the working state is idle, the Bluetooth device is controlled to establish a connection with the first terminal. It should be noted that if the working state of the Bluetooth device is idle, no device is connected to the Bluetooth device, and the Bluetooth device can directly establish a connection with the first terminal without sending a first connection request to the second terminal.

[0093] Figure 3 The flowchart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure is executed by the Bluetooth device. Figure 3 As shown, the control method of the Bluetooth device may include the following steps:

[0094] Step 301: receiving a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal.

[0095] Step 302: Send a second pairing request to the second terminal, wherein the second pairing request includes the first identifier and the second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device.

[0096] Step 303: Receive first indication information sent by the second terminal, where the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0097] Step 304: Control the Bluetooth device based on the first indication information.

[0098] The specific implementation forms of steps 301 to 304 can refer to the detailed descriptions in other embodiments of the present disclosure and will not be described in detail here.

[0099] Step 305: Receive third indication information sent by the second terminal, where the third indication information is used to indicate the target duration corresponding to the first terminal.

[0100] In some embodiments, the second terminal may also set a time limit for the first terminal to use the Bluetooth device, that is, the length of time for retaining the pairing information of the first terminal after the Bluetooth device is successfully paired with the first terminal.

[0101] The target duration may be one day, one hour, one month, etc. This disclosure does not limit this.

[0102] In some embodiments, the first indication information and the third indication information may be sent by the second terminal to the Bluetooth device at the same time, or may be sent to the Bluetooth device at different times, which is not limited in the present disclosure.

[0103] Among them, when the first indication information and the third indication information are sent to the Bluetooth device by the second terminal at the same time, the user of the second terminal can determine the target duration corresponding to the first terminal while deciding whether to agree to pairing the first terminal with the Bluetooth device, so that the first indication information and the third indication information can be sent to the Bluetooth device at the same time.

[0104] Step 306: When the duration between the current moment and the first moment reaches the target duration, the pairing relationship between the Bluetooth device and the first terminal is deleted, wherein the first moment is the moment when the first terminal is successfully paired with the Bluetooth device.

[0105] It should be noted that after the duration between the current moment and the first moment reaches the target duration, the first terminal cannot continue to use the Bluetooth device. If it wants to continue to use the Bluetooth device, it needs to re-initiate the first pairing request, perform the pairing process, and only after the pairing is successful can it continue to use the Bluetooth device. Therefore, the Bluetooth device can delete the pairing relationship between the Bluetooth device and the first terminal after the duration between the current moment and the first moment reaches the target duration.

[0106] In the disclosed embodiment, the Bluetooth device may also receive third indication information sent by the second terminal, wherein the third indication information is used to indicate the target duration corresponding to the first terminal, and when the duration between the current moment and the first moment reaches the target duration, the pairing relationship between the Bluetooth device and the first terminal is deleted, wherein the first moment is the moment when the first terminal and the Bluetooth device are successfully paired. Thus, the use duration of the terminal paired with the Bluetooth device may also be managed through the second terminal, thereby improving the flexibility of Bluetooth device management.

[0107] In some embodiments, when the first terminal successfully pairs with the Bluetooth device and receives the fourth indication information sent by the second terminal, the terminal that manages the Bluetooth device is updated to the first terminal, wherein the fourth indication information is used to indicate that the terminal that manages the Bluetooth device is the first terminal. Thus, the second terminal can transfer the management authority of the Bluetooth device to the first terminal, and if there is a new terminal that requests to pair with the Bluetooth device, it needs to obtain the consent of the user of the first terminal, thereby realizing the transfer of the management authority of the Bluetooth device and improving the flexibility of the management of the Bluetooth device.

[0108] In some embodiments, when the target address book corresponding to the Bluetooth device does not contain the first identifier, a second pairing request is sent to the second terminal, wherein the target address book is sent by the second terminal to the Bluetooth device, and the target address book includes identifiers corresponding to terminals with which the Bluetooth device can be directly paired.

[0109] Thus, the user of the second terminal can pre-configure the target address book of the Bluetooth device, so that when the first terminal sends a first pairing request to the Bluetooth device, the Bluetooth device determines that the target address book contains the first identifier of the first terminal, and can directly pair with the first terminal without sending a second pairing request to the second terminal, thereby improving pairing efficiency. If the Bluetooth device determines that the target address book does not contain the first identifier of the first terminal, it will send a second pairing request to the second terminal, thereby improving the security of Bluetooth device pairing.

[0110] In some embodiments, the Bluetooth device may also receive a fifth indication message sent by the second terminal, where the fifth indication message is used to instruct the Bluetooth device to delete the pairing relationship with the first terminal, thereby deleting the pairing relationship between the Bluetooth device and the first terminal.

[0111] Figure 4 This is a flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure, which is executed by a second terminal. Figure 4 As shown, the control method of the Bluetooth device may include the following steps:

[0112] Step 401: Receive a second pairing request, wherein the second pairing request includes a first identifier corresponding to a first terminal and a second identifier corresponding to a Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device.

[0113] The first identifier of the first terminal may be a device model, a device serial number, a media access control address (MAC) of the first terminal, etc. This disclosure does not limit this.

[0114] The second identifier corresponding to the Bluetooth device may be a device model, a device serial number, a Media Access Control Address (MAC) of the Bluetooth device, etc. This disclosure does not limit this.

[0115] In some embodiments, when the second connection state between the second terminal and the Bluetooth device is connected, a second pairing request sent by the Bluetooth device is received. It should be noted that when the second connection state between the second terminal and the Bluetooth device is connected, the Bluetooth device can directly send the second pairing request to the second terminal through the Bluetooth connection between the second terminal and the second terminal, and the second terminal can directly receive the second pairing request sent by the Bluetooth device.

[0116] In some embodiments, when the second connection state between the second terminal and the Bluetooth device is disconnected, a second pairing request sent by the cloud corresponding to the Bluetooth device is received. It should be noted that when the second connection state between the second terminal and the Bluetooth device is disconnected, the Bluetooth device cannot directly send the second pairing request to the second terminal through the Bluetooth connection between the second terminal and the Bluetooth device. The Bluetooth device can only forward the second pairing request to the second terminal through the cloud, so that the second terminal receives the second pairing request sent by the cloud of the Bluetooth device.

[0117] Step 402: Display pairing information on a display interface of the second terminal, wherein the pairing information includes a first identifier and a second identifier.

[0118] In some embodiments, pairing information of the first terminal to be paired with the Bluetooth device may be displayed on the display interface of the second terminal, so that the user of the second terminal can determine whether to agree to pairing the first terminal with the Bluetooth device.

[0119] In some embodiments, the words "the first identifier requests pairing with the second identifier", a corresponding control for agreeing, and a corresponding control for disagreeing may be displayed on the display interface of the second terminal.

[0120] Step 403: Determine first indication information according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0121] In some embodiments, when a control of approval is touched in the display interface, it is determined that the user of the second terminal agrees to pairing the first terminal with the Bluetooth device, and the first indication information is used to instruct the Bluetooth device not to pair with the first terminal; when a control of disapproval is touched, it is determined that the user of the second terminal does not agree to pairing the first terminal with the Bluetooth device, and the first indication information is used to instruct the Bluetooth device to pair with the first terminal.

[0122] In some embodiments, the user of the second terminal may also determine whether the first terminal is paired with the Bluetooth device by voice. In the embodiments of the present disclosure, the method of whether the user agrees to pair the first terminal with the Bluetooth device is not limited.

[0123] Step 404: Send first indication information to the Bluetooth device.

[0124] In some embodiments, when the second connection state between the second terminal and the Bluetooth device is connected, the second terminal directly sends the first indication information to the Bluetooth device.

[0125] In some embodiments, when the second connection state between the second terminal and the Bluetooth device is disconnected, the first indication information is forwarded to the Bluetooth device through the cloud corresponding to the Bluetooth device.

[0126] In the disclosed embodiment, the second terminal receives a second pairing request, wherein the second pairing request includes a first identifier corresponding to the first terminal and a second identifier corresponding to the Bluetooth device, wherein the first terminal is a terminal requesting pairing with the Bluetooth device, and the pairing information is displayed in the display interface of the second terminal, wherein the pairing information includes the first identifier and the second identifier, and the first indication information is determined according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal, and finally the first indication information is sent to the Bluetooth device. Thus, after receiving the request from the first terminal to pair with the Bluetooth device, the second terminal displays the pairing information on the display interface, and the user determines whether to agree to pair the Bluetooth device with the first terminal, thereby managing the paired terminals of the Bluetooth device and improving the security of the Bluetooth device.

[0127] Figure 5 This is a flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure, which is executed by a second terminal. Figure 5 As shown, the control method of the Bluetooth device may include the following steps:

[0128] Step 501: Receive a second pairing request, wherein the second pairing request includes a first identifier corresponding to a first terminal and a second identifier corresponding to a Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device.

[0129] Step 502: Display pairing information on a display interface of the second terminal, wherein the pairing information includes a first identifier and a second identifier.

[0130] Step 503: Determine first indication information according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0131] Step 504: Send first indication information to the Bluetooth device.

[0132] The specific implementation forms of steps 501 to 504 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.

[0133] Step 505: Receive a first connection request, wherein the first connection request includes a first identifier, a second identifier, a third identifier corresponding to any third terminal, and a first connection state between the second identifier and the third identifier, wherein the first connection state is connected.

[0134] Among them, any third terminal may be a terminal other than the first terminal, and any third terminal may be the second terminal, or may be a terminal other than the first terminal and the second terminal. This disclosure does not limit this.

[0135] The third identifier of any third terminal may be a device model, a device serial number, a media access control address (MAC) of any third terminal, etc. This disclosure does not limit this.

[0136] In some embodiments, when any third terminal is the second terminal, the second connection state between the second terminal and the Bluetooth device is connected, and the second terminal can receive the first connection request sent by the Bluetooth device. It should be noted that when the second connection state between the second terminal and the Bluetooth device is connected, the Bluetooth device can directly send the first connection request to the second terminal through the Bluetooth connection between the second terminal and the second terminal, and the second terminal can directly receive the first connection request sent by the Bluetooth device.

[0137] In some embodiments, when any third terminal is not the second terminal, the second connection state between the second terminal and the Bluetooth device is disconnected, and the second terminal can receive the first connection request sent by the cloud corresponding to the Bluetooth device. It should be noted that if the second connection state between the second terminal and the Bluetooth device is disconnected, the Bluetooth device cannot directly send the first connection request to the second terminal through the Bluetooth connection between the second terminal and the Bluetooth device. The Bluetooth device can only forward the first connection request to the second terminal through the cloud, so that the second terminal receives the first connection request sent by the cloud of the Bluetooth device.

[0138] Step 506: Display the connection content on the display interface of the second terminal, wherein the connection content includes the first identifier, the second identifier, the third identifier, and the first connection state between the second identifier and the third identifier.

[0139] In some embodiments, the display interface of the second terminal may display the first terminal's request to establish a connection with the Bluetooth device and the connection content of the Bluetooth device currently being connected with any third terminal, so that the user of the second terminal can determine whether to agree to the first terminal to establish a connection with the Bluetooth device.

[0140] In some embodiments, the words "The first identifier requests to establish a connection with the second identifier, but the second identifier and the third identifier are in the first connection state" and the corresponding controls for agreement and disagreement, or the controls corresponding to the first identifier and the controls corresponding to the third identifier may be displayed on the display interface of the second terminal.

[0141] Step 507: Determine second indication information according to whether the user agrees that the first terminal is connected to the Bluetooth device, wherein the second indication information is used to indicate a device among any third terminal and the first terminal to be connected to the Bluetooth device.

[0142] In some embodiments, when an agree control in the display interface is touched, it is determined that the user of the second terminal agrees to the connection between the first terminal and the Bluetooth device; when a disagree control is touched, it is determined that the user of the second terminal disagrees to the connection between the first terminal and the Bluetooth device.

[0143] In some embodiments, when the control corresponding to the first terminal in the display interface is touched, it is determined that the user of the second terminal agrees to the connection between the first terminal and the Bluetooth device; when the control corresponding to any third terminal is touched, it is determined that the user of the second terminal does not agree to the connection between the first terminal and the Bluetooth device.

[0144] In some embodiments, the user of the second terminal may also determine whether to agree to connect the first terminal to the Bluetooth device by voice. In the embodiments of the present disclosure, the method of whether the user agrees to connect the first terminal to the Bluetooth device is not limited.

[0145] In some embodiments, when the user of the second terminal agrees to the connection between the first terminal and the Bluetooth device, the second indication message is used to indicate that among any third terminal and the first terminal, the device connected to the Bluetooth device is the first terminal; when the user of the second terminal does not agree to the connection between the first terminal and the Bluetooth device, the second indication message is used to indicate that among any third terminal and the first terminal, the device connected to the Bluetooth device is any third terminal of the first terminal.

[0146] Step 508: Send second indication information to the Bluetooth device.

[0147] In some embodiments, when the second connection state between the second terminal and the Bluetooth device is connected, the second terminal directly sends the second indication information to the Bluetooth device.

[0148] In some embodiments, when the second connection state between the second terminal and the Bluetooth device is disconnected, the second indication information is forwarded to the Bluetooth device through the cloud corresponding to the Bluetooth device.

[0149] In the disclosed embodiment, the second terminal receives a first connection request, wherein the first connection request includes a first identifier, a second identifier, a third identifier corresponding to any third terminal, and a first connection state between the second identifier and the third identifier, wherein the first connection state is connection; the connection content is displayed in the display interface of the second terminal, wherein the connection content includes the first identifier, the second identifier, the third identifier, and the first connection state between the second identifier and the third identifier; the second indication information is determined according to whether the user agrees that the first terminal is connected to the Bluetooth device, wherein the second indication information is used to indicate any third terminal and the first terminal, which device is connected to the Bluetooth device, and finally the second indication information is sent to the Bluetooth device. Thus, after receiving the request from the first terminal to connect to the Bluetooth device, the second terminal displays the connection content in the display interface, and the user determines whether to agree to the connection between the Bluetooth device and the first terminal, thereby realizing the management of the connection terminal of the Bluetooth device, avoiding confusion in the connection of the Bluetooth device, reducing unexpected connection switching, and improving the user experience.

[0150] Figure 6 This is a flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure, which is executed by a second terminal. Figure 6 As shown, the control method of the Bluetooth device may include the following steps:

[0151] Step 601: Receive a second pairing request, wherein the second pairing request includes a first identifier corresponding to a first terminal and a second identifier corresponding to a Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device.

[0152] Step 602: Display pairing information on a display interface of the second terminal, wherein the pairing information includes a first identifier and a second identifier.

[0153] Step 603: Determine first indication information according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0154] Step 604: Send first indication information to the Bluetooth device.

[0155] The specific implementation forms of steps 601 to 604 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.

[0156] Step 605: Determine the target duration corresponding to the first terminal set by the user.

[0157] In some embodiments, the user of the second terminal can also set a time limit for the first terminal to use the Bluetooth device, that is, the length of time to retain the pairing information of the first terminal after the Bluetooth device is successfully paired with the first terminal.

[0158] The target duration may be one day, one hour, one month, etc. This disclosure does not limit this.

[0159] Step 606: Send third indication information to the Bluetooth device, where the third indication information is used to indicate the target duration corresponding to the first terminal.

[0160] In some embodiments, the first indication information and the third indication information may be sent by the second terminal to the Bluetooth device at the same time, or may be sent to the Bluetooth device at different times, which is not limited in the present disclosure.

[0161] In some embodiments, while the pairing information is displayed on the display interface, the time setting information is also displayed in the display interface, so that the user of the second terminal can determine the target duration corresponding to the first terminal while deciding whether to agree to establish a connection between the first terminal and the Bluetooth device, so that the first indication information and the third indication information can be sent to the Bluetooth device at the same time.

[0162] In the embodiment of the present disclosure, when the user agrees to pair the first terminal with the Bluetooth device, the second terminal can also determine the target duration corresponding to the first terminal set by the user, and then send a third indication information to the Bluetooth device, wherein the third indication information is used to indicate the target duration corresponding to the first terminal. Thus, the usage duration of the first terminal can also be managed, which improves the flexibility of Bluetooth device management.

[0163] In some embodiments, when it is detected that the user updates the terminal that manages the Bluetooth device to the first terminal, fourth indication information is sent to the Bluetooth device, wherein the fourth indication information is used to indicate that the terminal that manages the Bluetooth device is the first terminal. Thus, the second terminal can transfer the management authority of the Bluetooth device to the first terminal, and if there is a new terminal that requests to pair with the Bluetooth device, it needs the consent of the user of the first terminal, thereby realizing the transfer of the management authority of the Bluetooth device and improving the flexibility of the management of the Bluetooth device.

[0164] In some embodiments, when it is detected that the user sets the target address book corresponding to the Bluetooth device, the target address book is sent to the Bluetooth device. Thus, the user of the second terminal can pre-configure the target address book of the Bluetooth device and send the target address book to the Bluetooth device, so that when the first terminal sends a first pairing request to the Bluetooth device, the Bluetooth device determines that the target address book contains the first identifier of the first terminal, and can directly pair with the first terminal without sending a second pairing request to the second terminal, thereby improving pairing efficiency. If the Bluetooth device determines that the target address book does not contain the first identifier of the first terminal, it sends a second pairing request to the second terminal, thereby improving the security of Bluetooth device pairing.

[0165] Figure 7 An interactive flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure, such as Figure 7 As shown, the control method of the Bluetooth device may include the following steps:

[0166] Step 701: A first terminal sends a first pairing request to a Bluetooth device, wherein the first pairing request includes a first identifier corresponding to the first terminal.

[0167] Step 702, when the second connection state between the Bluetooth device and the second terminal is connected, the Bluetooth device directly sends a second pairing request to the second terminal, wherein the second pairing request includes a first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device.

[0168] Step 703: The second terminal displays pairing information on a display interface of the second terminal, wherein the pairing information includes a first identifier and a second identifier.

[0169] Step 704: The second terminal determines first indication information according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0170] Step 705: When the second connection state between the Bluetooth device and the second terminal is connected, the second terminal directly sends first indication information to the Bluetooth device.

[0171] Step 706: The Bluetooth device controls the Bluetooth device based on the first indication information.

[0172] Step 707: When the first terminal is successfully paired with the Bluetooth device, the first terminal sends a second connection request to the Bluetooth device, wherein the second connection request includes a first identifier corresponding to the first terminal.

[0173] Step 708: The Bluetooth device obtains the working status of the Bluetooth device.

[0174] Step 709, when the working state is that the Bluetooth device is connected to any third terminal, the Bluetooth device sends a first connection request to the second terminal, wherein the first connection request includes the first identifier, the second identifier, the third identifier corresponding to any third terminal, and the first connection state between the second identifier and the third identifier.

[0175] Step 710: The second terminal displays connection content in a display interface of the second terminal, wherein the connection content includes a first identifier, a second identifier, a third identifier, and a first connection state between the second identifier and the third identifier.

[0176] Step 711: The second terminal determines second indication information according to whether the user agrees that the first terminal is connected to the Bluetooth device, wherein the second indication information is used to indicate a device among any third terminal and the first terminal to be connected to the Bluetooth device.

[0177] Step 712: When the second connection state between the Bluetooth device and the second terminal is connected, the second terminal directly sends second indication information to the Bluetooth device.

[0178] Step 713: The Bluetooth device controls the Bluetooth device based on the second indication information.

[0179] Figure 8 An interactive flow chart of a method for controlling a Bluetooth device provided by an embodiment of the present disclosure, such as Figure 8 As shown, the control method of the Bluetooth device may include the following steps:

[0180] Step 801: A first terminal sends a first pairing request to a Bluetooth device, wherein the first pairing request includes a first identifier corresponding to the first terminal.

[0181] Step 802, when the second connection state between the Bluetooth device and the second terminal is disconnected, the Bluetooth device sends a second pairing request to the cloud, wherein the second pairing request includes a first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device.

[0182] Step 803: The cloud sends a second pairing request to the second terminal.

[0183] Step 804: The second terminal displays the pairing information on a display interface of the second terminal, wherein the pairing information includes a first identifier and a second identifier.

[0184] Step 805: The second terminal determines first indication information according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal.

[0185] Step 806: When the second connection state between the Bluetooth device and the second terminal is disconnected, the second terminal sends first indication information to the cloud.

[0186] Step 807: The cloud sends a first indication message to the Bluetooth device.

[0187] Step 808: The Bluetooth device controls the Bluetooth device based on the first indication information.

[0188] Step 809: When the first terminal is successfully paired with the Bluetooth device, the first terminal sends a second connection request to the Bluetooth device, wherein the second connection request includes a first identifier corresponding to the first terminal.

[0189] Step 810: The Bluetooth device obtains the working status of the Bluetooth device.

[0190] Step 811, when the working state is that the Bluetooth device is disconnected from any third terminal, the Bluetooth device sends a first connection request to the cloud, wherein the first connection request includes a first identifier, a second identifier, a third identifier corresponding to any third terminal, and a first connection state between the second identifier and the third identifier.

[0191] Step 812: The cloud sends a first connection request to the second terminal.

[0192] Step 813: The second terminal displays connection content in a display interface of the second terminal, wherein the connection content includes the first identifier, the second identifier, the third identifier, and a first connection state between the second identifier and the third identifier.

[0193] Step 814: The second terminal determines second indication information according to whether the user agrees that the first terminal is connected to the Bluetooth device, wherein the second indication information is used to indicate a device among any third terminal and the first terminal to be connected to the Bluetooth device.

[0194] Step 815: When the working state is that the Bluetooth device is disconnected from any third terminal, the second terminal sends a second indication message to the cloud.

[0195] Step 816: The cloud sends a second indication message to the second terminal.

[0196] Step 817: The Bluetooth device controls the Bluetooth device based on the second indication information.

[0197] In order to implement the above embodiment, the present disclosure also proposes a control device for a Bluetooth device.

[0198] Fig. 9 A schematic diagram of the structure of a control device for a Bluetooth device provided in an embodiment of the present disclosure.

[0199] like Fig. 9 As shown, the control device 900 of the Bluetooth device may include:

[0200] A first receiving module 901 is configured to receive a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal;

[0201] A sending module 902, configured to send a second pairing request to a second terminal, wherein the second pairing request includes a first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device;

[0202] The second receiving module 903 is used to receive first indication information sent by the second terminal, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal;

[0203] The control module 904 is used to control the Bluetooth device based on the first indication information.

[0204] In some embodiments, the control module 904 is configured to:

[0205] When the first terminal is successfully paired with the Bluetooth device, obtaining the working status of the Bluetooth device;

[0206] When the working state is that the Bluetooth device is connected to any third terminal, a first connection request is sent to the second terminal, wherein the first connection request includes the first identifier, the second identifier, a third identifier corresponding to any third terminal, and a first connection state between the second identifier and the third identifier;

[0207] receiving second indication information sent by the second terminal, wherein the second indication information is used to indicate a device among any third terminal and the first terminal to be connected to the Bluetooth device;

[0208] Based on the second indication information, the Bluetooth device is controlled.

[0209] In some embodiments, the control module 904 is further configured to:

[0210] When the working state is idle, the Bluetooth device is controlled to establish a connection with the first terminal.

[0211] In some embodiments, the first receiving module 901 is further configured to:

[0212] A second connection request sent by the first terminal is received, wherein the second connection request includes a first identifier corresponding to the first terminal.

[0213] In some embodiments, a deletion module is further included, which is used to:

[0214] Receiving third indication information sent by the second terminal, wherein the third indication information is used to indicate a target duration corresponding to the first terminal;

[0215] When the duration between the current moment and the first moment reaches the target duration, the pairing relationship between the Bluetooth device and the first terminal is deleted, wherein the first moment is the moment when the first terminal is successfully paired with the Bluetooth device.

[0216] In some embodiments, the system further includes a processing module for:

[0217] The terminal that is successfully paired with the Bluetooth device for the first time is determined as the second terminal.

[0218] In some embodiments, an update module is further included, which is used to:

[0219] When the first terminal is successfully paired with the Bluetooth device and receives the fourth indication information sent by the second terminal, the terminal managing the Bluetooth device is updated to the first terminal, wherein the fourth indication information is used to indicate that the terminal managing the Bluetooth device is the first terminal.

[0220] In some embodiments, the sending module 902 is configured to:

[0221] When the target address book corresponding to the Bluetooth device does not include the first identifier, a second pairing request is sent to the second terminal, wherein the target address book is sent by the second terminal to the Bluetooth device, and the target address book includes identifiers corresponding to terminals that the Bluetooth device can directly pair with.

[0222] In some embodiments, the sending module 902 is configured to:

[0223] Determining a target mode for sending a request to the second terminal according to a second connection state between the Bluetooth device and the second terminal;

[0224] Based on the target mode, a request is sent to the second terminal.

[0225] In some embodiments, the sending module 902 is configured to:

[0226] When the second connection state is disconnected, the target mode is determined to be forwarding the request to the second terminal through the cloud of the Bluetooth device; or,

[0227] When the second connection state is connected, the target mode is determined as the Bluetooth device directly sending the request to the second terminal.

[0228] In some embodiments, the second receiving module 903 is configured to:

[0229] When the second connection state between the Bluetooth device and the second terminal is disconnected, receiving indication information sent by the second terminal through the cloud; or,

[0230] When the second connection state between the Bluetooth device and the second terminal is connected, indication information directly sent by the second terminal to the Bluetooth device is received.

[0231] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0232] In the disclosed embodiment, the Bluetooth device receives a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal, and sends a second pairing request to a second terminal, wherein the second pairing request includes the first identifier and a second identifier corresponding to the Bluetooth device. The second terminal is a terminal for managing the Bluetooth device, and receives a first indication message sent by the second terminal, wherein the first indication message is used to indicate whether the Bluetooth device is paired with the first terminal. Finally, based on the first indication message, the Bluetooth device is controlled. Thus, when the first terminal requests to pair with the Bluetooth device, the second terminal can indicate whether the Bluetooth device can be paired with the first terminal, so that the second terminal manages the paired terminals of the Bluetooth device, preventing any terminal from being able to pair with the Bluetooth device at will, and improving the security of Bluetooth device pairing.

[0233] Fig.10 A schematic diagram of the structure of a control device for a Bluetooth device provided in an embodiment of the present disclosure.

[0234] like Fig.10 As shown, the control device 1000 of the Bluetooth device may include:

[0235] The receiving module 1001 is configured to receive a second pairing request, wherein the second pairing request includes a first identifier corresponding to the first terminal and a second identifier corresponding to the Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device;

[0236] Display module 1002, used to display pairing information in a display interface of the second terminal, wherein the pairing information includes a first identifier and a second identifier;

[0237] The determination module 1003 is used to determine first indication information according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal;

[0238] The sending module 1004 is configured to send first indication information to the Bluetooth device.

[0239] In some embodiments,

[0240] The receiving module 1001 is further configured to receive a first connection request, wherein the first connection request includes a first identifier, a second identifier, a third identifier corresponding to any third terminal, and a first connection state between the second identifier and the third identifier, wherein the first connection state is connected;

[0241] The display module 1002 is further configured to display connection content in a display interface of the second terminal, wherein the connection content includes a first identifier, a second identifier, a third identifier, and a first connection state between the second identifier and the third identifier;

[0242] The determination module 1003 is further used to determine second indication information according to whether the user agrees that the first terminal is connected to the Bluetooth device, wherein the second indication information is used to indicate a device in any third terminal and the first terminal that is connected to the Bluetooth device;

[0243] The sending module 1004 is further configured to send second indication information to the Bluetooth device.

[0244] In some embodiments, the sending module 1004 is further configured to:

[0245] Determine the target duration corresponding to the first terminal set by the user;

[0246] Send third indication information to the Bluetooth device, where the third indication information is used to indicate a target duration corresponding to the first terminal.

[0247] In some embodiments, the sending module 1004 is further configured to:

[0248] When it is monitored that the user updates the terminal managing the Bluetooth device to the first terminal, fourth indication information is sent to the Bluetooth device, wherein the fourth indication information is used to indicate that the terminal managing the Bluetooth device is the first terminal.

[0249] In some embodiments, the sending module 1004 is further configured to:

[0250] In the case of monitoring that the user sets a target address book corresponding to the Bluetooth device, the target address book is sent to the Bluetooth device.

[0251] In some embodiments, the receiving module 1001 is configured to:

[0252] When the second connection state between the second terminal and the Bluetooth device is connected, receiving a request sent by the Bluetooth device; or,

[0253] When the second connection state between the second terminal and the Bluetooth device is disconnected, a request sent by the cloud corresponding to the Bluetooth device is received.

[0254] In some embodiments, the sending module 1004 is configured to:

[0255] When the second connection state between the second terminal and the Bluetooth device is connected, directly sending the indication information to the Bluetooth device; or,

[0256] When the second connection state between the second terminal and the Bluetooth device is disconnected, the indication information is forwarded to the Bluetooth device through the cloud corresponding to the Bluetooth device.

[0257] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0258] In the disclosed embodiment, the second terminal receives a second pairing request, wherein the second pairing request includes a first identifier corresponding to the first terminal and a second identifier corresponding to the Bluetooth device, wherein the first terminal is a terminal requesting pairing with the Bluetooth device, and the pairing information is displayed in the display interface of the second terminal, wherein the pairing information includes the first identifier and the second identifier, and the first indication information is determined according to whether the user of the second terminal agrees to pair the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal, and finally the first indication information is sent to the Bluetooth device. Thus, after receiving the request from the first terminal to pair with the Bluetooth device, the second terminal displays the pairing information on the display interface, and the user determines whether to agree to pair the Bluetooth device with the first terminal, thereby managing the paired terminals of the Bluetooth device and improving the security of the Bluetooth device.

[0259] In order to implement the above embodiments, the present disclosure further proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the control method of the Bluetooth device proposed in the above embodiments of the present disclosure is implemented.

[0260] Fig.11 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Fig.11 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0261] like Fig.11 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0262] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0263] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0264] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig.11 not shown, usually called a "hard drive"). Although Fig.11 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0265] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0266] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0267] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.

[0268] In order to implement the above embodiments, the present disclosure further proposes a chip, including: the chip includes a processing circuit, and the processing circuit is configured to execute the control method of the Bluetooth device provided in the above embodiments.

[0269] Fig.12 is a schematic diagram of the structure of the chip proposed in the embodiment of the present disclosure. Fig.12 The structure of the chip 1200 is shown, but is not limited to this.

[0270] The chip 1200 includes a processing circuit 1201 , and the processing circuit 1201 is configured to execute any of the above methods.

[0271] In some embodiments, the chip 1200 further includes one or more interface circuits 1202. Optionally, the interface circuit 1202 is connected to the memory 1203. The interface circuit 1202 can be used to receive signals from the memory 1203 or other devices, and the interface circuit 1202 can be used to send signals to the memory 1203 or other devices. For example, the interface circuit 1202 can read instructions stored in the memory 1203 and send the instructions to the processing circuit 1201.

[0272] In some embodiments, the interface circuit 1202 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processing circuit 1201 performs other steps.

[0273] In some embodiments, terms such as interface circuit, interface, transceiver pin, and transceiver may be used interchangeably.

[0274] In some embodiments, the chip 1200 further includes one or more memories 1203 for storing instructions. Alternatively, all or part of the memory 1203 may be outside the chip 1200.

[0275] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the control method of the Bluetooth device proposed in the above embodiments of the present disclosure is implemented.

[0276] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this disclosure shall comply with the relevant laws and regulations and shall not violate public order and good morals.

[0277] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0278] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0279] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0280] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0281] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0282] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0283] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0284] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0285] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A method for controlling a Bluetooth device, characterized in that: The method comprises: Receiving a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal; Sending a second pairing request to a second terminal, wherein the second pairing request includes the first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device; receiving first indication information sent by the second terminal, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal; Based on the first indication information, the Bluetooth device is controlled.

2. The method according to claim 1, characterized in that After controlling the Bluetooth device based on the first indication information, the method further includes: When the first terminal is successfully paired with the Bluetooth device, obtaining the working status of the Bluetooth device; When the working state is that the Bluetooth device is connected to any third terminal, sending a first connection request to the second terminal, wherein the first connection request includes the first identifier, the second identifier, a third identifier corresponding to the any third terminal, and a first connection state between the second identifier and the third identifier; receiving second indication information sent by the second terminal, wherein the second indication information is used to indicate a device among any third terminal and the first terminal to be connected to the Bluetooth device; Based on the second indication information, the Bluetooth device is controlled.

3. The method according to claim 2, characterized in that After obtaining the working status of the Bluetooth device, the method further includes: When the working state is idle, control the Bluetooth device to establish a connection with the first terminal.

4. The method according to claim 2, characterized in that: Before obtaining the working status of the Bluetooth device, the method further includes: A second connection request sent by the first terminal is received, wherein the second connection request includes a first identifier corresponding to the first terminal.

5. The method according to claim 1, characterized in that The method further comprises: receiving third indication information sent by the second terminal, wherein the third indication information is used to indicate a target duration corresponding to the first terminal; When the duration between the current moment and the first moment reaches the target duration, the pairing relationship between the Bluetooth device and the first terminal is deleted, wherein the first moment is the moment when the first terminal is successfully paired with the Bluetooth device.

6. The method according to claim 1, characterized in that Before sending the second pairing request to the second terminal, the method further includes: The terminal with which the Bluetooth device is successfully paired for the first time is determined as the second terminal.

7. The method according to claim 1, characterized in that After controlling the Bluetooth device based on the first indication information, the method further includes: When the first terminal is successfully paired with the Bluetooth device and receives the fourth indication information sent by the second terminal, the terminal managing the Bluetooth device is updated to the first terminal, wherein the fourth indication information is used to indicate that the terminal managing the Bluetooth device is the first terminal.

8. The method according to claim 1, characterized in that: The sending a second pairing request to the second terminal includes: When the target address book corresponding to the Bluetooth device does not include the first identifier, the second pairing request is sent to the second terminal, wherein the target address book is sent by the second terminal to the Bluetooth device, and the target address book includes identifiers corresponding to terminals with which the Bluetooth device can be directly paired.

9. The method according to any one of claims 1 to 8, characterized in that: Sending a request to the second terminal includes: determining, according to a second connection state between the Bluetooth device and the second terminal, a target mode for sending a request to the second terminal; Based on the target mode, a request is sent to the second terminal.

10. The method according to claim 9, characterized in that The determining, according to the second connection state between the Bluetooth device and the second terminal, a target mode of sending a request to the second terminal includes: When the second connection state is disconnected, determining the target mode is to forward the request to the second terminal through the cloud of the Bluetooth device; or When the second connection state is connected, the target mode is determined as the Bluetooth device directly sending the request to the second terminal.

11. The method according to any one of claims 1 to 8, characterized in that: Receiving the indication information sent by the second terminal includes: When the second connection state between the Bluetooth device and the second terminal is disconnected, receiving the indication information sent by the second terminal through the cloud; or When the second connection state between the Bluetooth device and the second terminal is connected, the indication information directly sent by the second terminal to the Bluetooth device is received.

12. A method for controlling a Bluetooth device, characterized in that: include: receiving a second pairing request, wherein the second pairing request includes a first identifier corresponding to the first terminal and a second identifier corresponding to the Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device; Displaying pairing information on a display interface of the second terminal, wherein the pairing information includes the first identifier and the second identifier; determining first indication information according to whether a user of the second terminal agrees to pairing the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal; Send the first indication information to the Bluetooth device.

13. The method according to claim 12, characterized in that After sending the first indication information to the Bluetooth device, the method further includes: receiving a first connection request, wherein the first connection request includes the first identifier, the second identifier, a third identifier corresponding to any third terminal, and a first connection state between the second identifier and the third identifier, wherein the first connection state is connected; Displaying connection content on a display interface of the second terminal, wherein the connection content includes the first identifier, the second identifier, the third identifier, and a first connection state between the second identifier and the third identifier; Determine second indication information according to whether the user agrees that the first terminal is connected to the Bluetooth device, wherein the second indication information is used to indicate a device among any third terminal and the first terminal to be connected to the Bluetooth device; Send the second indication information to the Bluetooth device.

14. The method according to claim 12, characterized in that The method further comprises: Determine a target duration corresponding to the first terminal set by the user; Send third indication information to the Bluetooth device, wherein the third indication information is used to indicate a target duration corresponding to the first terminal.

15. The method according to claim 12, characterized in that After sending the first indication information to the Bluetooth device, the method further includes: When it is monitored that the user updates the terminal managing the Bluetooth device to the first terminal, fourth indication information is sent to the Bluetooth device, wherein the fourth indication information is used to indicate that the terminal managing the Bluetooth device is the first terminal.

16. The method according to claim 12, characterized in that The method further comprises: In the case where it is monitored that the user sets a target address book corresponding to the Bluetooth device, the target address book is sent to the Bluetooth device.

17. The method according to any one of claims 12 to 16, characterized in that: Receive requests, including: When the second connection state between the second terminal and the Bluetooth device is connected, receiving a request sent by the Bluetooth device; or, When the second connection state between the second terminal and the Bluetooth device is disconnected, a request sent by the cloud corresponding to the Bluetooth device is received.

18. The method according to any one of claims 12 to 16, characterized in that: Sending instruction information to the Bluetooth device includes: When the second connection state between the second terminal and the Bluetooth device is connected, directly sending the indication information to the Bluetooth device; or, When the second connection state between the second terminal and the Bluetooth device is disconnected, the indication information is forwarded to the Bluetooth device through a cloud corresponding to the Bluetooth device.

19. A control device for a Bluetooth device, characterized in that: The device comprises: A first receiving module, configured to receive a first pairing request sent by a first terminal, wherein the first pairing request includes a first identifier corresponding to the first terminal; a sending module, configured to send a second pairing request to a second terminal, wherein the second pairing request includes the first identifier and a second identifier corresponding to the Bluetooth device, and the second terminal is a terminal that manages the Bluetooth device; A second receiving module, configured to receive first indication information sent by the second terminal, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal; A control module is used to control the Bluetooth device based on the first indication information.

20. A control device for a Bluetooth device, characterized in that: The device comprises: A receiving module, configured to receive a second pairing request, wherein the second pairing request includes a first identifier corresponding to the first terminal and a second identifier corresponding to the Bluetooth device, wherein the first terminal is a terminal requesting to pair with the Bluetooth device; A display module, configured to display pairing information on a display interface of the second terminal, wherein the pairing information includes the first identifier and the second identifier; a determination module, configured to determine first indication information according to whether a user of the second terminal agrees to pairing the first terminal with the Bluetooth device, wherein the first indication information is used to indicate whether the Bluetooth device is paired with the first terminal; A sending module is used to send the first indication information to the Bluetooth device.

21. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the control method of the Bluetooth device as described in any one of claims 1 to 11 is implemented, or the control method of the Bluetooth device as described in any one of claims 12 to 18 is executed.

22. A chip, characterized in that: The chip includes a processing circuit, and the processing circuit is configured to execute the control method of the Bluetooth device as described in any one of claims 1-11, or execute the control method of the Bluetooth device as described in any one of claims 12-18.

23. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the control method of the Bluetooth device as described in any one of claims 1 to 18 is implemented.