A communication method, device and medium for pairing bluetooth devices

By obtaining and sending Bluetooth device information, device pairing between multiple clients is realized, solving the problem that existing Bluetooth devices can only be paired with one client, and improving the efficiency of the device and user experience.

CN113613313BActive Publication Date: 2024-11-19HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202110955079.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-19
Publication Date
2024-11-19
Estimated Expiration
2041-08-19

AI Technical Summary

Technical Problem

Existing Bluetooth devices can only be paired with one client, and cannot realize device sharing between multiple clients, resulting in inefficient device usage.

Method used

By obtaining the ID information of the client to be shared by the connected client, sending Bluetooth device information to realize the pairing of multiple clients, including storing and managing device keys in the cloud server, allowing paired clients to share with new clients .

Benefits of technology

It realizes that a Bluetooth device can be paired with multiple clients, improves the service life and user experience of the device, and allows paired clients to share the device with new clients.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113613313B_ABST
    Figure CN113613313B_ABST
Patent Text Reader

Abstract

The present application discloses a communication method, device and medium for pairing Bluetooth devices, which obtains the ID information of the client to be shared from the connected client, sends the Bluetooth device information paired with the connected client to the client to be shared according to the ID information, and the Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device, and the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information. It can be seen that the use of this technical solution can enable a Bluetooth device to be paired with multiple clients, and realize the function of a paired client sharing a Bluetooth device with a new unpaired client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Bluetooth communication, and in particular to a communication method, apparatus and medium for pairing Bluetooth devices. Background Art

[0002] With the widespread application of Bluetooth technology, pairing of Bluetooth devices and clients is also one of the issues studied by those skilled in the art.

[0003] In recent years, the pairing of Bluetooth devices and clients is done by opening the client in advance, such as a mobile phone application, or putting the mobile phone in the background, and then scanning at regular intervals. When a Bluetooth device is scanned, the distance is calculated by the strength of the received signal strength indication (RSSI). When the distance is less than a certain value, it is paired, and when the distance is greater, it is not paired. This method will cause the following problems: First, the mobile phone application requires to be in the running state, otherwise it is easy to be killed by the system in the background, resulting in the inability to scan; second, after the first pairing, the subsequent connection process is at the application level, and frequent application-level scanning may increase the power consumption of the mobile phone. In order to solve the above problems, the human-computer interaction (Human Interface Device Profile, HID) device is introduced. Common HID devices include mice, keyboards, game controllers, etc., and the general wired method is to connect to the machine device through a USB connection as a user input device. In Bluetooth technology, the access of Bluetooth devices based on HID is wireless. The characteristic of HID-based Bluetooth devices is that pairing is required when connecting to Bluetooth for the first time. After the first pairing is successful, the phone will record the information of the current device to the local whitelist, and the data can be directly read for pairing again. Combined with this technology, we only need to use the characteristics of HID devices when pairing for the first time. After successfully pairing with the pairing code, the phone will act as the host to record the device and the related information of the pairing. The next time it is close, it will automatically connect to Bluetooth, similar to car Bluetooth, Bluetooth mouse, etc.

[0004] The existing HID-based Bluetooth devices are paired with a unique client, that is, one device is paired with one client. However, in actual implementation, one device often needs to be paired with multiple clients for use in multiple occasions. Therefore, how to enable a Bluetooth device to be paired with multiple clients and enable a paired client to share the Bluetooth device with a new unpaired client is a problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] The purpose of the present application is to provide a communication method, apparatus and medium for pairing Bluetooth devices, so that one Bluetooth device can be paired with multiple clients, and a paired client can share the Bluetooth device with a new unpaired client.

[0006] In order to solve the above technical problems, the present application provides a communication method for pairing Bluetooth devices, the method comprising:

[0007] Get the ID information of the client to be shared sent by the connected client;

[0008] Responding to a request sent by the client to be shared, wherein the request includes the ID information;

[0009] The Bluetooth device information is sent to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information, and the Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device.

[0010] Preferably, after obtaining the ID information of the client to be shared sent by the connected client, the method further includes:

[0011] Determine whether the number of the ID information in the sharing list is greater than a threshold, if so, delete the ID information of the client to be shared; if not, send the ID information of the client to be shared to the sharing list.

[0012] Preferably, after sending the ID information of the client to be shared to the sharing list, the method further includes:

[0013] Send the sharing list to the client to be shared.

[0014] Preferably, after determining whether the number of ID information in the sharing list is greater than a threshold, the method further includes:

[0015] Sending a judgment result indicating sharing success / failure to the connected client.

[0016] Preferably, the Bluetooth device information also includes:

[0017] Pairing code.

[0018] In order to solve the above technical problems, the present application also provides a communication method for pairing Bluetooth devices, which is applied to a client to be shared, and the method includes:

[0019] Sending a request to the cloud server, the request including the ID information of the client to be shared sent by the connected client and obtained by the cloud server;

[0020] Acquire the Bluetooth device information sent by the cloud server according to the ID information, wherein the Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device;

[0021] Pairing with the Bluetooth device according to the Bluetooth device information.

[0022] In order to solve the above technical problems, the present application also provides a communication method for pairing Bluetooth devices, which is applied to a connected client, and the method includes:

[0023] Send the ID information of the client to be shared to the cloud server; so that the cloud server can respond to the request issued by the client to be shared, and the request includes the ID information; so that the cloud server can send Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information, and the Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device.

[0024] In order to solve the above technical problems, the present application also provides a communication device for pairing Bluetooth devices, the device comprising:

[0025] The acquisition module is used to obtain the ID information of the client to be shared sent by the connected client;

[0026] A response module, used for responding to the request sent by the client to be shared, wherein the request includes the ID information;

[0027] The sending module is used to send the Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information. The Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device.

[0028] In order to solve the above technical problems, the present application also provides a communication device for pairing Bluetooth devices, the device comprising:

[0029] Memory for storing computer programs;

[0030] The processor is used to implement the steps of the communication method for pairing Bluetooth devices as described above when executing the computer program.

[0031] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the communication method for pairing Bluetooth devices as described above are implemented.

[0032] The communication method, device and medium for pairing Bluetooth devices provided in the present application obtain the ID information of the client to be shared from the connected client, and send the Bluetooth device information paired with the connected client to the client to be shared according to the ID information. The Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device, and the client to be shared can pair with the Bluetooth device according to the Bluetooth device information. It can be seen that the use of this technical solution can enable a Bluetooth device to be paired with multiple clients, and realize the function of a paired client sharing a Bluetooth device with a new unpaired client. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 A flow chart of a communication method for pairing Bluetooth devices provided in an embodiment of the present application;

[0035] Figure 2 A flowchart of a communication method for pairing Bluetooth devices provided in another embodiment of the present application;

[0036] Figure 3 A flowchart of a communication method for pairing Bluetooth devices provided in another embodiment of the present application;

[0037] Figure 4 A structural diagram of a communication device for pairing Bluetooth devices provided in an embodiment of the present application;

[0038] Figure 5 A structural diagram of a communication device for pairing Bluetooth devices provided in another embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] The core of this application is to provide a communication method, device and medium for pairing Bluetooth devices.

[0041] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0042] Figure 1 A flow chart of a communication method for pairing Bluetooth devices provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0043] S10: Obtain the ID information of the client to be shared sent by the connected client.

[0044] In step S10, the connected client can be a mobile phone, a tablet, a computer and other devices, and similarly, the client to be shared can also be a mobile phone, a tablet, a computer and other devices. It is understandable that the clients can be of the same category or of different categories. For example, the connected client is a mobile phone, and the client to be shared can be a mobile phone or a computer. Furthermore, when the client to be shared is a mobile phone, the ID information can be a mobile phone number, and when the client to be shared is a computer, the ID information can be a device number.

[0045] S11: Respond to the request sent by the client to be shared, where the request includes ID information.

[0046] In step S11, the client to be shared will send a request to the cloud server for Bluetooth device information, and the request contains the ID information of the client to be shared. The process of sending the request can be continuous or intermittent, and can be sent at a fixed time or when a trigger signal is received, which is not limited here.

[0047] S12: Sending the Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information. The Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device.

[0048] In step S12, the Bluetooth device information is uploaded to the cloud server by the connected client when pairing with the Bluetooth device. After receiving the request, the cloud server will send the Bluetooth device information to the client to be shared according to the ID information obtained in the request, and the client to be shared can pair with the Bluetooth device according to the Bluetooth device information. Among them, the Bluetooth device information at least includes the key required for the Bluetooth device to communicate with the client to be shared, and of course, it can also include the model, version number, pairing code and other information of the Bluetooth device. As a preferred option, the type of Bluetooth device is a Bluetooth Low Energy (BLE) Bluetooth device. BLE Bluetooth devices have the advantage of low power consumption and can be used for a long time, which improves the user experience.

[0049] Figure 2This is a flow chart of a communication method for pairing Bluetooth devices provided in another embodiment of the present application, taking the connected client and the client to be shared as mobile phones, mobile phone A as the connected client, mobile phone B as the client to be shared, and its ID information as the mobile phone number as an example. Figure 2 As shown, mobile phone A sends the mobile phone number of mobile phone B to the cloud server, and mobile phone B sends a request to the cloud server, which includes the mobile phone number. After receiving the mobile phone number sent by mobile phone A, the cloud server responds to the request of mobile phone B, retrieves the Bluetooth device information of the Bluetooth device paired with mobile phone A, and sends it to mobile phone B according to the mobile phone number. The Bluetooth device information at least includes a key. Mobile phone B uses the key to open communication with the Bluetooth device to achieve pairing. The pairing process is based on the pairing of the client and the HID-based Bluetooth device in the current technology. When mobile phone B is paired with the Bluetooth device for the first time, the Bluetooth device will send a broadcast to the surrounding regularly. When mobile phone B captures the broadcast, it parses the broadcast and establishes communication with the Bluetooth device according to the key. If the Bluetooth device needs to verify its identity, mobile phone B needs to enter the corresponding pairing code, and the Bluetooth device performs verification. After the verification is successful, the model, mac address, uuid information and other device information of the Bluetooth device are sent to mobile phone B. The required pairing code can be told by mobile phone A to mobile phone B, or it can be included in the Bluetooth device information. Of course, if the Bluetooth device does not need to verify its identity, this step can be omitted. After mobile phone B obtains the device information, it registers the relevant information of mobile phone B and the Bluetooth device information to the cloud server for binding. After receiving the information indicating successful binding, the Bluetooth device information is saved in the whitelist of mobile phone B for subsequent pairing.

[0050] At the same time, mobile phone B can also set the connection distance with the Bluetooth device. When the set distance is exceeded, mobile phone B will be disconnected from the Bluetooth device. In this case, the Bluetooth device will still send broadcast packets to the surrounding area. When mobile phone B enters the set connection distance, it captures the broadcast and parses it. It determines whether the Bluetooth device information is in the whitelist based on the parsed MAC address. If it is, it reconnects to the Bluetooth device based on the Bluetooth device information.

[0051] The communication method for pairing Bluetooth devices provided in the embodiment of the present application obtains the ID information of the client to be shared from the connected client, and sends the Bluetooth device information paired with the connected client to the client to be shared according to the ID information. The Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device, and the client to be shared can pair with the Bluetooth device according to the Bluetooth device information. It can be seen that the use of this technical solution can enable a Bluetooth device to be paired with multiple clients, and realize the function of a paired client sharing a Bluetooth device with a new unpaired client.

[0052] Due to the hardware reasons of Bluetooth devices, the client information that can be stored is limited, that is, it can only pair with a certain number of clients. In specific implementations, if a Bluetooth device is paired with too many clients, it will increase the pressure on the device. If it is paired with too few clients, it will affect actual use.

[0053] Figure 3 A flow chart of a communication method for pairing Bluetooth devices provided in another embodiment of the present application is shown in FIG. Figure 3 As shown, based on the above embodiment, in this embodiment, after obtaining the ID information of the client to be shared sent by the connected client, it also includes:

[0054] S101: Determine whether the number of ID information in the sharing list is greater than a threshold, if so, proceed to step S102; if not, proceed to step S103.

[0055] S102: Delete the ID information of the client to be shared.

[0056] S103: Send the ID information of the client to be shared to the sharing list.

[0057] The sharing list is used to store the number of clients paired with the Bluetooth device, and the client is represented by ID information. The selection of the threshold can be determined based on the storage capacity of the Bluetooth device hardware. In this embodiment, the threshold is selected as 2. It can be understood that when there are already 2 ID information in the sharing list, when the ID information of the client to be shared is obtained, it is judged that the number of ID information in the sharing list is not greater than the threshold, the ID information of the client to be shared will be sent to the sharing list. At this time, this sharing list has 3 ID information, that is, the Bluetooth device can pair with 3 clients; if the ID information of a new client to be shared is obtained, and the number of ID information in the sharing list is greater than the threshold, the new ID information of the client to be shared will be deleted.

[0058] The communication method for pairing Bluetooth devices provided in the embodiment of the present application limits the number of clients that can be paired with the Bluetooth device, rationally utilizes the hardware storage of the Bluetooth device, and effectively improves the service life.

[0059] In a specific implementation, the client to be shared does not know how many clients the Bluetooth device is paired with, and whether the user can share with a new client to be shared.

[0060] like Figure 3 As shown, in this embodiment, after sending the ID information of the client to be shared to the sharing list, it also includes:

[0061] S104: Send the sharing list to the client to be shared.

[0062] It is understandable that by sending the sharing list to the client to be shared, the user can view the number of paired clients of the Bluetooth device, and at the same time, can accurately know the specific paired clients based on the ID information in the sharing list. Of course, the cloud server can also restrict the sharing list, for example, hiding the ID information and only showing the number of paired clients, which can well protect the personal information of the paired clients.

[0063] The communication method for pairing Bluetooth devices provided in the embodiment of the present application sends a sharing list to the client to be shared, so that the client to be shared knows how many clients the Bluetooth device is paired with, which is convenient for the client to be shared to decide whether to share the Bluetooth device with other clients, thereby improving the user experience.

[0064] In actual implementation, the connected client cannot know whether the sharing is successful.

[0065] In this embodiment, after determining whether the number of ID information in the sharing list is greater than the threshold, the following further includes:

[0066] Sends a sharing success / failure judgment result to the connected client.

[0067] It is understandable that when the judgment is yes, it is considered that the sharing fails, and when the judgment is no, it is considered that the sharing succeeds. The sending method can be in the form of text or audio, which is not limited here.

[0068] The communication method for pairing Bluetooth devices provided in the embodiment of the present application sends a judgment result representing the success / failure of sharing to a connected client, so that the connected client can know whether the sharing is successful, thereby improving the user experience.

[0069] In specific implementations, each Bluetooth device has its own pairing code, which is used for identity authentication when connecting to a client. During production, the merchant generally informs the user of the pairing code in text form. However, when sharing, the client to be shared does not know the pairing code and needs to contact the connected client to obtain it.

[0070] In this embodiment, the Bluetooth device information also includes:

[0071] Pairing code.

[0072] In the communication method for pairing Bluetooth devices provided in the embodiment of the present application, the Bluetooth device information sent by the cloud server includes a pairing code, and the client to be shared can obtain it directly from the cloud server without contacting the connected client.

[0073] In the above embodiment, the communication method for pairing Bluetooth devices is described in detail from the perspective of the cloud server side. The present application also provides an embodiment corresponding to the communication method for pairing Bluetooth devices from the perspective of the client side to be shared.

[0074] The method comprises the following steps:

[0075] Send a request to the cloud server, where the request includes the ID information of the client to be shared sent by the connected client and obtained by the cloud server;

[0076] Obtaining the Bluetooth device information sent by the cloud server according to the ID information, where the Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device;

[0077] Pair with the Bluetooth device according to the Bluetooth device information.

[0078] The communication method for pairing Bluetooth devices provided in the embodiment of the present application obtains the ID information of the client to be shared from the connected client, and sends the Bluetooth device information paired with the connected client to the client to be shared according to the ID information. The Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device, and the client to be shared can pair with the Bluetooth device according to the Bluetooth device information. It can be seen that the use of this technical solution can enable a Bluetooth device to be paired with multiple clients, and realize the function of a paired client sharing a Bluetooth device with a new unpaired client.

[0079] In a specific implementation, after the client to be shared is paired with the Bluetooth device, when the client to be shared is offline, the Bluetooth device is still in the state of being paired with the client to be shared, and a new pairing cannot be performed, which affects the user experience.

[0080] In this embodiment, after the client to be shared is paired with the Bluetooth device, when the client to be shared is offline and the Bluetooth device is still in the pairing state, the client to be shared obtains the message sent by the Bluetooth device and sends a connection request; after the connection line is established, the client to be shared initiates a clear pairing instruction to make the Bluetooth device clear pairing; the client to be shared obtains a clear pairing result indicating the success / failure of the clearing.

[0081] The communication method for pairing Bluetooth devices provided in the embodiment of the present application clears the pairing of the Bluetooth device when the client to be shared is offline and the Bluetooth device is still in the pairing state, so that the Bluetooth device can be newly paired, thereby improving the use efficiency of the Bluetooth device and improving the user experience.

[0082] The present application also provides an embodiment corresponding to a communication method for pairing Bluetooth devices from the perspective of a connected client side.

[0083] The method includes:

[0084] The ID information of the client to be shared is sent to the cloud server; so that the cloud server can respond to the request sent by the client to be shared, and the request includes the ID information; so that the cloud server can send the Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information, and the Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device.

[0085] The communication method for pairing Bluetooth devices provided in the embodiment of the present application obtains the ID information of the client to be shared from the connected client, and sends the Bluetooth device information paired with the connected client to the client to be shared according to the ID information. The Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device, and the client to be shared can pair with the Bluetooth device according to the Bluetooth device information. It can be seen that the use of this technical solution can enable a Bluetooth device to be paired with multiple clients, and realize the function of a paired client sharing a Bluetooth device with a new unpaired client.

[0086] In a specific implementation, there may be a situation where after the connected client is paired with the Bluetooth device, when the connected client is offline, the Bluetooth device is still in a paired state with the connected client. The communication method for pairing Bluetooth devices provided in the embodiment of the present application is consistent with the above, and the effect achieved is also consistent, which will not be repeated here.

[0087] In the above embodiments, the communication method for pairing Bluetooth devices is described in detail, and the present application also provides embodiments corresponding to the communication device for pairing Bluetooth devices. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.

[0088] Figure 4 A structural diagram of a communication device for pairing Bluetooth devices provided in an embodiment of the present application, such as Figure 4 As shown, the device comprises:

[0089] The acquisition module 10 is used to acquire the ID information of the client to be shared sent by the connected client;

[0090] A response module 11 is used to respond to the request sent by the client to be shared, wherein the request includes the ID information;

[0091] The sending module 12 is used to send the Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information. The Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device.

[0092] The communication device for pairing Bluetooth devices provided in the embodiment of the present application obtains the ID information of the client to be shared from the connected client, and sends the Bluetooth device information paired with the connected client to the client to be shared according to the ID information. The Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device, and the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information. It can be seen that the use of this technical solution can enable a Bluetooth device to be paired with multiple clients, and realize the function of a paired client sharing a Bluetooth device with a new unpaired client.

[0093] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0094] Figure 5 A structural diagram of a communication device for pairing Bluetooth devices provided in another embodiment of the present application, such as Figure 5 As shown, the communication device for pairing Bluetooth devices includes: a memory 20 for storing a computer program;

[0095] The processor 21 is used to implement the steps of the communication method for pairing Bluetooth devices in the above embodiment when executing the computer program.

[0096] The communication device for pairing the Bluetooth device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0097] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0098] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the communication method for pairing Bluetooth devices disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to ID information, Bluetooth device information, etc.

[0099] In some embodiments, the communication device for pairing with a Bluetooth device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power source 25 , and a communication bus 26 .

[0100] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the communication device for pairing Bluetooth devices, and may include more or less components than those shown in the figure.

[0101] The communication device for pairing Bluetooth devices provided in an embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: pairing a Bluetooth device with multiple clients, and the paired client shares the Bluetooth device with a new unpaired client.

[0102] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps recorded in the above method embodiment (which may be a method corresponding to the cloud server side, a method corresponding to the connected client side, or a method corresponding to the client side to be shared) are implemented.

[0103] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0104] The above is a detailed introduction to a communication method, device and medium for pairing a Bluetooth device provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0105] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A communication method for pairing Bluetooth devices, characterized in that: Applied to cloud servers, including: Get the ID information of the client to be shared sent by the connected client; Responding to a request sent by the client to be shared, wherein the request includes the ID information; Sending Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information, wherein the Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device; the Bluetooth device information is information uploaded by the connected client when pairing with the Bluetooth device; Wherein, after acquiring the ID information of the client to be shared sent by the connected client, the method further includes: Determine whether the number of the ID information in the sharing list is greater than a threshold, if so, delete the ID information of the client to be shared; if not, send the ID information of the client to be shared to the sharing list.

2. The communication method for pairing Bluetooth devices according to claim 1, characterized in that: After sending the ID information of the client to be shared to the sharing list, the method further includes: Send the sharing list to the client to be shared.

3. The communication method for pairing Bluetooth devices according to claim 1, characterized in that: After determining whether the number of ID information in the sharing list is greater than a threshold, the method further includes: Sending a judgment result indicating sharing success / failure to the connected client.

4. The communication method for pairing Bluetooth devices according to claim 1, characterized in that: The Bluetooth device information also includes: Pairing code.

5. A communication method for pairing Bluetooth devices, characterized in that: Applied to the client to be shared, including: Sending a request to the cloud server, the request including the ID information of the client to be shared sent by the connected client and obtained by the cloud server; Obtaining Bluetooth device information sent by the cloud server according to the ID information, wherein the Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device; the Bluetooth device information is information uploaded by the connected client when pairing with the Bluetooth device; Pairing with the Bluetooth device according to the Bluetooth device information; Among them, after obtaining the ID information of the client to be shared sent by the connected client, the cloud server determines whether the number of the ID information in the sharing list is greater than a threshold. If so, delete the ID information of the client to be shared; if not, send the ID information of the client to be shared to the sharing list.

6. A communication method for pairing Bluetooth devices, characterized in that: Applies to connected clients, including: Sending the ID information of the client to be shared to the cloud server; so that the cloud server responds to the request sent by the client to be shared, the request includes the ID information; so that the cloud server sends the Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared is paired with the Bluetooth device according to the Bluetooth device information, the Bluetooth device information at least includes a key for communication between the client to be shared and the Bluetooth device; the Bluetooth device information is the information uploaded by the connected client when pairing with the Bluetooth device; Among them, after obtaining the ID information of the client to be shared sent by the connected client, the cloud server determines whether the number of the ID information in the sharing list is greater than a threshold. If so, delete the ID information of the client to be shared; if not, send the ID information of the client to be shared to the sharing list.

7. A communication device for pairing Bluetooth devices, characterized in that: Applied to cloud servers, including: The acquisition module is used to obtain the ID information of the client to be shared sent by the connected client; A response module, used for responding to the request sent by the client to be shared, wherein the request includes the ID information; a sending module, configured to send the Bluetooth device information to the client to be shared according to the ID information, so that the client to be shared can be paired with the Bluetooth device according to the Bluetooth device information, wherein the Bluetooth device information at least includes a key used for communication between the client to be shared and the Bluetooth device; the Bluetooth device information is information uploaded by the connected client when pairing with the Bluetooth device; Among them, after obtaining the ID information of the client to be shared sent by the connected client, the device is also used to: determine whether the number of the ID information in the sharing list is greater than a threshold, if so, delete the ID information of the client to be shared; if not, send the ID information of the client to be shared to the sharing list.

8. A communication device for pairing Bluetooth devices, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the communication method for pairing Bluetooth devices as described in any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication method for pairing Bluetooth devices as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Self-adaptive Bluetooth pairing method

    CN115915077A

  • An adaptive Bluetooth pairing method

    CN115915077B