A bluetooth gateway scheduling method, system and device and a bluetooth gateway

By establishing network tunnels between Bluetooth gateways and using identification information for scheduling, the problem of Bluetooth gateway connection conflicts is resolved, enabling more efficient device connection management.

CN116170896BActive Publication Date: 2026-04-07SHENZHEN MINEW TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing Bluetooth gateways are prone to connection conflicts when connecting BLE devices, leading to message blockage and resource waste.

Method used

By establishing network tunnels between Bluetooth gateways and using identification information to send and receive scheduling commands, it ensures that only one gateway is connected to the BLE device at a time, avoiding the simultaneous connection of multiple gateways.

Benefits of technology

It effectively avoids Bluetooth connection conflicts, optimizes scheduling efficiency, and improves connection hit rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170896B_ABST
    Figure CN116170896B_ABST
Patent Text Reader

Abstract

This application relates to the field of gateway technology and provides a Bluetooth gateway scheduling method, system, device, and Bluetooth gateway. The method includes: after receiving a tunnel establishment request from a second Bluetooth gateway, a first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway, wherein the tunnel establishment request includes identification information of the second Bluetooth gateway or identification information of a Bluetooth module in the second Bluetooth gateway; if the first Bluetooth gateway determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module, it sends a scheduling command to the second Bluetooth gateway through the network tunnel; the second Bluetooth gateway responds to the scheduling command and connects to the Bluetooth device. This application can avoid Bluetooth connection conflicts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of gateway technology, and in particular relates to a Bluetooth gateway scheduling method, system, device and Bluetooth gateway. Background Technology

[0002] A Bluetooth gateway is a gateway device that integrates a Bluetooth module and a Wireless Fidelity (WiFi) module. The Bluetooth module is used to connect to Bluetooth Low Energy (BLE) devices for detection and data collection, while the WiFi module is used to send the collected data to a server.

[0003] For existing Bluetooth gateways, each Bluetooth gateway operates independently, and messages between Bluetooth gateways are blocked. That is, when one Bluetooth gateway connects to a BLE device, other Bluetooth gateways may also try to connect to the same BLE device, which can cause Bluetooth connection conflicts. Summary of the Invention

[0004] This application provides a Bluetooth gateway scheduling method, system, device, and Bluetooth gateway that can avoid Bluetooth connection conflicts.

[0005] In a first aspect, embodiments of this application provide a Bluetooth gateway scheduling method, applied to a Bluetooth gateway scheduling system, the Bluetooth gateway scheduling system including at least one first Bluetooth gateway and at least one second Bluetooth gateway, the method comprising:

[0006] After receiving a tunnel establishment request from the second Bluetooth gateway, the first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0007] When the first Bluetooth gateway determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module, it sends a scheduling command to the second Bluetooth gateway through the network tunnel.

[0008] The second Bluetooth gateway responds to the scheduling command and connects to the Bluetooth device.

[0009] Secondly, embodiments of this application provide a Bluetooth gateway scheduling method, applied to a Bluetooth gateway, the method comprising:

[0010] After receiving a tunnel establishment request from the second Bluetooth gateway, a network tunnel is established between the network and the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0011] When the second Bluetooth gateway is identified as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module, a scheduling instruction is sent to the second Bluetooth gateway through the network tunnel. The scheduling instruction is used to instruct the second Bluetooth gateway to establish a connection with the Bluetooth device.

[0012] Thirdly, embodiments of this application provide a Bluetooth gateway scheduling method, applied to a Bluetooth gateway, the method comprising:

[0013] Send a tunnel establishment request to the first Bluetooth gateway. The tunnel establishment request is used to request the first Bluetooth gateway to establish a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0014] The system receives a scheduling instruction from the first Bluetooth gateway and connects to the Bluetooth device in response to the scheduling instruction; wherein the scheduling instruction is an instruction sent by the first Bluetooth gateway when it determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

[0015] Fourthly, embodiments of this application provide a Bluetooth gateway scheduling system, which includes at least one first Bluetooth gateway and at least one second Bluetooth gateway. The system includes:

[0016] The first Bluetooth gateway is configured to establish a network tunnel with the second Bluetooth gateway after receiving a tunnel establishment request from the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0017] The first Bluetooth gateway is configured to send a scheduling instruction to the second Bluetooth gateway through the network tunnel when the second Bluetooth gateway is determined to be the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

[0018] The second Bluetooth gateway is used to connect to Bluetooth devices in response to the scheduling command.

[0019] Fifthly, embodiments of this application provide a Bluetooth gateway scheduling device, applied to a Bluetooth gateway, the device comprising:

[0020] The tunnel establishment module is used to establish a network tunnel with the second Bluetooth gateway after receiving a tunnel establishment request from the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0021] The instruction sending module is used to send a scheduling instruction to the second Bluetooth gateway through the network tunnel when the second Bluetooth gateway is determined to be the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module. The scheduling instruction is used to instruct the second Bluetooth gateway to establish a connection with the Bluetooth device.

[0022] Sixthly, embodiments of this application provide a Bluetooth gateway scheduling device, applied to a Bluetooth gateway, the device comprising:

[0023] The request sending module is used to send a tunnel establishment request to the first Bluetooth gateway. The tunnel establishment request is used to request the first Bluetooth gateway to establish a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0024] The instruction receiving module is used to receive a scheduling instruction from the first Bluetooth gateway and, in response to the scheduling instruction, connect to the Bluetooth device; wherein the scheduling instruction is an instruction sent by the first Bluetooth gateway when it determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

[0025] In a seventh aspect, embodiments of this application provide a Bluetooth gateway, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a Bluetooth gateway scheduling method as described in the second or third aspect above.

[0026] Eighthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements a Bluetooth gateway scheduling method as described in the second or third aspect above.

[0027] Ninthly, embodiments of this application provide a computer program product that, when running on a Bluetooth gateway, causes the Bluetooth gateway to execute a Bluetooth gateway scheduling method as described in the second or third aspect above.

[0028] The beneficial effects of this application embodiment compared to the prior art are as follows: In this application, after receiving a tunnel establishment request from a second Bluetooth gateway, the first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module within the second Bluetooth gateway. If the first Bluetooth gateway determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module, it sends a scheduling command to the second Bluetooth gateway through the network tunnel. The second Bluetooth gateway responds to the scheduling command and connects to the Bluetooth device. In this application, the first Bluetooth gateway centrally schedules the second Bluetooth gateway using the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module within the second Bluetooth gateway, enabling the second Bluetooth gateway to connect to the Bluetooth device after receiving the scheduling command, thus avoiding Bluetooth connection conflicts. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 This is a flowchart illustrating a Bluetooth gateway scheduling method according to an embodiment of this application;

[0031] Figure 2 This is a flowchart illustrating a Bluetooth gateway scheduling method according to another embodiment of this application;

[0032] Figure 3 This is a flowchart illustrating a Bluetooth gateway scheduling method according to another embodiment of this application;

[0033] Figure 4 This is a flowchart illustrating a Bluetooth gateway scheduling method according to another embodiment of this application;

[0034] Figure 5 This is a schematic structural block diagram of a Bluetooth gateway system provided in one embodiment of this application;

[0035] Figure 6 This is a schematic structural block diagram of a Bluetooth gateway device provided in another embodiment of this application;

[0036] Figure 7 This is a schematic structural block diagram of a Bluetooth gateway device provided in one embodiment of this application;

[0037] Figure 8 This is a schematic diagram of the structure of a Bluetooth gateway provided in one embodiment of this application. Detailed Implementation

[0038] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0039] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0040] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0041] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0042] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0043] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0044] Example 1:

[0045] Please see Figure 1 , Figure 1 The illustration shows a schematic flow of a Bluetooth gateway scheduling method provided in this application. It is provided as an example and not as a limitation. The method can be applied to a Bluetooth gateway scheduling system, which includes at least one first Bluetooth gateway and at least one second Bluetooth gateway.

[0046] Step 101: After receiving a tunnel establishment request from the second Bluetooth gateway, the first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway.

[0047] A tunnel establishment request can indicate that the second Bluetooth gateway requests to establish a network communication connection with the first Bluetooth gateway. After the first Bluetooth gateway establishes a network tunnel, it can communicate with the second Bluetooth gateway through the network channel.

[0048] If there are at least two second Bluetooth gateways in the Bluetooth gateway scheduling system, the tunnel establishment request may also include the identification information of the second Bluetooth gateway in order to mark the established network tunnel.

[0049] Optionally, the identification information of the Bluetooth gateway can be information such as gateway number and placement location.

[0050] Optionally, before the first Bluetooth gateway receives a tunnel establishment request from the second Bluetooth gateway, the method further includes: when the first Bluetooth gateway is in a first working mode, listening for a tunnel establishment request from the second Bluetooth gateway in a second working mode, where the first working mode refers to a tunnel establishment request listening mode and the second working mode refers to a tunnel establishment request sending mode.

[0051] Before the first Bluetooth gateway receives a tunnel establishment request from the second Bluetooth gateway, the Bluetooth gateways included in the Bluetooth gateway scheduling system can be configured in different modes. In this application, the Bluetooth gateways have two modes: a first working mode and a second working mode. The first working mode can be referred to as the standard working mode, and the second working mode can be referred to as the shadow working mode. When the Bluetooth gateway is in the first working mode, it can work independently, i.e., it can connect to Bluetooth devices, and it can listen for and receive tunnel establishment requests sent by the Bluetooth gateway in the second working mode. When the Bluetooth gateway is in the second working mode, it cannot work independently, i.e., it cannot directly connect to Bluetooth devices. It needs to send a tunnel establishment request to the Bluetooth gateway in the first working mode and connect to the Bluetooth device after receiving a scheduling instruction from the Bluetooth gateway in the first working mode.

[0052] Step 102: If the first Bluetooth gateway determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway, the first Bluetooth gateway sends a scheduling command to the second Bluetooth gateway through the network tunnel.

[0053] Optionally, the first Bluetooth gateway can obtain the identification information of the second Bluetooth gateway based on the tunnel establishment request, and then determine the target gateway based on the obtained identification information. For example, it can select any identification information and determine the Bluetooth gateway corresponding to that identification information as the target gateway.

[0054] Optionally, determining the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway includes: generating a first virtual module corresponding to the second Bluetooth gateway based on the identification information of the second Bluetooth gateway; and determining the second Bluetooth gateway as the target gateway based on the first virtual module.

[0055] The first virtual module can be understood as a virtual Bluetooth gateway, and generating the first virtual module can be understood as mounting the second Bluetooth gateway in the first Bluetooth gateway in the form of a virtual Bluetooth gateway.

[0056] After the target gateway is determined, a scheduling command is sent to the target gateway based on the network tunnel corresponding to the target gateway.

[0057] It should be noted that the first Bluetooth gateway can also identify itself as the target gateway. If the first Bluetooth gateway identifies itself as the target gateway, then the first Bluetooth gateway can connect to the Bluetooth device.

[0058] Step 103: The second Bluetooth gateway responds to the scheduling command and connects to the Bluetooth device.

[0059] The second Bluetooth gateway includes at least one Bluetooth module. When the second Bluetooth gateway includes at least two Bluetooth modules, it can determine which Bluetooth module will be connected to the Bluetooth device. For example, it can arbitrarily select one Bluetooth module from those in an idle state to connect to the Bluetooth device. Here, "idle state" can refer to a non-connected state.

[0060] In this application, after receiving a tunnel establishment request from a second Bluetooth gateway, the first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway. If the first Bluetooth gateway determines the second Bluetooth gateway as the target gateway based on its identification information, it sends a scheduling command to the second Bluetooth gateway through the network tunnel. The second Bluetooth gateway responds to the scheduling command and connects to the Bluetooth device. In this application, the first Bluetooth gateway uses the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module within the second Bluetooth gateway to connect to the second Bluetooth network.

[0061] Centralized scheduling is performed, enabling the second Bluetooth gateway to connect to Bluetooth devices after receiving scheduling instructions, which can avoid Bluetooth connection conflicts.

[0062] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0063] Example 2:

[0064] Please see 0 Figure 2 , Figure 2 The illustration shows a schematic flow of a Bluetooth gateway scheduling method provided in this application.

[0065] Step 201: After receiving a tunnel establishment request from the second Bluetooth gateway, the first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the Bluetooth module in the second Bluetooth gateway.

[0066] 5. The second Bluetooth gateway may include at least one Bluetooth module, and each Bluetooth module has corresponding identification information.

[0067] As an example and not a limitation, the identification information of the Bluetooth module can be the identification information of the second Bluetooth gateway plus the Bluetooth module's serial number.

[0068] Optionally, when the second Bluetooth gateway includes at least two Bluetooth modules, the number of network tunnels established between the first Bluetooth gateway and the second Bluetooth gateway can be one or n, where n is the number of Bluetooth modules included in the second Bluetooth gateway.

[0069] Step 202: If the first Bluetooth gateway determines the second Bluetooth gateway as the target gateway based on the identification information of the Bluetooth module in the second Bluetooth gateway, the first Bluetooth gateway sends a scheduling command to the second Bluetooth gateway through the network tunnel.

[0070] The second Bluetooth gateway is identified as the target gateway based on the identification information of the Bluetooth module, including: identifying the Bluetooth module as the target Bluetooth module based on the identification information of the Bluetooth module; and identifying the target gateway based on the target Bluetooth module.

[0071] Optionally, the first Bluetooth gateway can select the identification information of any Bluetooth module and determine the Bluetooth module corresponding to the identification information as the target Bluetooth module.

[0072] Optionally, determining the Bluetooth module as the target Bluetooth module based on the identification information of the Bluetooth module includes: generating a second virtual module corresponding to the Bluetooth module according to the identification information of the Bluetooth module; and determining the Bluetooth module as the target Bluetooth module based on the second virtual module.

[0073] Each Bluetooth module included in the second Bluetooth gateway can correspond to a second virtual module. The second virtual module can be understood as a virtual Bluetooth module. Generating a second virtual module can be understood as attaching the Bluetooth modules included in the second Bluetooth gateway to the first Bluetooth gateway in the form of virtual Bluetooth modules, as if multiple Bluetooth modules were added to the first Bluetooth gateway.

[0074] Optionally, determining the Bluetooth module as the target Bluetooth module based on the second virtual module includes: arbitrarily selecting a second virtual module and determining the Bluetooth module corresponding to the second virtual module as the target Bluetooth module.

[0075] Optionally, the first Bluetooth gateway can also obtain the connection status of the Bluetooth module corresponding to the second virtual module. Determining the Bluetooth module as the target Bluetooth module based on the second virtual module includes: arbitrarily selecting one second virtual module from those whose connection status is idle, and determining the Bluetooth module corresponding to that second virtual module as the target Bluetooth module.

[0076] The first Bluetooth gateway centrally schedules the Bluetooth modules in the second Bluetooth gateway, meaning that all Bluetooth connection distributions are scheduled by a single gateway, which optimizes scheduling efficiency and improves connection hit rate.

[0077] Step 203: In response to the scheduling command, the second Bluetooth gateway controls the target Bluetooth module to connect to the Bluetooth device.

[0078] The dispatch command may include the identification information of the target Bluetooth module, so that the second Bluetooth gateway can control the target Bluetooth module to connect to the Bluetooth device.

[0079] It should be noted that the first Bluetooth gateway may include at least one Bluetooth module. If the first Bluetooth gateway identifies its own included Bluetooth module as the target Bluetooth module, it can control the target Bluetooth module to connect to the Bluetooth device.

[0080] In this application, after receiving a tunnel establishment request from a second Bluetooth gateway, the first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the Bluetooth modules in the second Bluetooth gateway. Based on the identification information of the Bluetooth modules, the first Bluetooth gateway identifies the second Bluetooth gateway as the target gateway and sends a scheduling command to the second Bluetooth gateway through the network tunnel. The second Bluetooth gateway responds to the scheduling command and connects to the Bluetooth device. This application allows the first Bluetooth gateway to schedule the Bluetooth modules in the second Bluetooth gateway, eliminating the need for the second Bluetooth gateway to independently determine the Bluetooth modules to connect to the Bluetooth device, thus optimizing scheduling efficiency and improving connection success rate.

[0081] Example 3:

[0082] Please see Figure 3 , Figure 3 The illustration shows a schematic flow of a Bluetooth gateway scheduling method provided in this application, which can be applied to a Bluetooth gateway. By way of example and not limitation, this method can be applied to a first Bluetooth gateway.

[0083] Step 301: After receiving a tunnel establishment request from the second Bluetooth gateway, establish a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0084] If tunnel establishment requests are received simultaneously from at least two Bluetooth gateways, these requests can be sorted. As an example, and not a limitation, the sorting of the requests can be based on factors such as the distance between the second and first Bluetooth gateways, the importance of the second Bluetooth gateway's location, and the time the tunnel establishment requests were sent.

[0085] Step 302: If the second Bluetooth gateway is determined as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module, a scheduling instruction is sent to the second Bluetooth gateway through the network tunnel. The scheduling instruction is used to instruct the second Bluetooth gateway to establish a connection with the Bluetooth device.

[0086] After sending the dispatch command, you can receive a connection success message from the second Bluetooth gateway. If you do not receive a connection success message, you can send the dispatch command again.

[0087] If the second Bluetooth gateway is identified as the target gateway based on the identification information of the Bluetooth module, then after sending the scheduling command or after receiving a successful connection prompt from the second Bluetooth gateway, the connection status of the corresponding Bluetooth module can be changed to a non-idle state.

[0088] The relevant content in steps 301 and 302 can be found in the descriptions of the above method embodiments one and two, and will not be repeated here.

[0089] Example 4:

[0090] Please see Figure 4 , Figure 4 The illustration shows a schematic flow of a Bluetooth gateway scheduling method provided in this application, which can be applied to a Bluetooth gateway. By way of example and not limitation, the method can also be applied to a second Bluetooth gateway.

[0091] Step 401: Send a tunnel establishment request to the first Bluetooth gateway. The tunnel establishment request is used to request the first Bluetooth gateway to establish a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0092] If the tunnel establishment request includes the identification information of the Bluetooth module in the second Bluetooth gateway, then the tunnel establishment request may include the identification information of all or part of the Bluetooth module.

[0093] The identification information for some Bluetooth modules may refer to the identification information of Bluetooth modules in an idle state, or it may refer to the identification information of Bluetooth modules that are not damaged.

[0094] Step 402: Receive a scheduling instruction from the first Bluetooth gateway and connect to the Bluetooth device in response to the scheduling instruction; wherein, the scheduling instruction is an instruction sent by the first Bluetooth gateway when it determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

[0095] Upon receiving a scheduling instruction, if the instruction includes the identification information of the target Bluetooth module, the target Bluetooth module can be controlled to connect to the Bluetooth device.

[0096] If the Bluetooth device is successfully connected, a connection success message can be sent to the first Bluetooth gateway; if the Bluetooth device is not successfully connected, a connection failure message can be sent to the first Bluetooth gateway.

[0097] The relevant content in steps 401 and 402 can be found in the descriptions of the above method embodiments one and two, and will not be repeated here.

[0098] Example 5:

[0099] Please see Figure 5 , Figure 5 This illustration shows a schematic structure of a Bluetooth gateway scheduling system provided in this application. The Bluetooth gateway scheduling system includes at least one first Bluetooth gateway and at least one second Bluetooth gateway. The Bluetooth gateway scheduling system includes:

[0100] The first Bluetooth gateway is used to establish a network tunnel with the second Bluetooth gateway after receiving a tunnel establishment request from the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0101] The first Bluetooth gateway is used to send scheduling instructions to the second Bluetooth gateway through a network tunnel when the second Bluetooth gateway is identified as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

[0102] The second Bluetooth gateway is used to connect Bluetooth devices in response to scheduling commands.

[0103] Optionally, the first Bluetooth gateway is specifically used to: generate a first virtual module corresponding to the second Bluetooth gateway based on the identification information of the second Bluetooth gateway; and determine the second Bluetooth gateway as the target gateway based on the first virtual module.

[0104] Optionally, the first Bluetooth gateway is specifically used for: identifying the Bluetooth module as the target Bluetooth module based on the identification information of the Bluetooth module; and determining the target gateway based on the target Bluetooth module.

[0105] The second Bluetooth gateway is specifically used to: control the target Bluetooth module to connect to Bluetooth devices in response to scheduling instructions.

[0106] Optionally, the first Bluetooth gateway is specifically used to: generate a second virtual module corresponding to the Bluetooth module based on the identification information of the Bluetooth module; and determine the Bluetooth module as the target Bluetooth module based on the second virtual module.

[0107] Optionally, before receiving a tunnel establishment request from the second Bluetooth gateway, the first Bluetooth gateway is further configured to: when in the first working mode, listen for tunnel establishment requests from the second Bluetooth gateway in the second working mode. The first working mode refers to the tunnel establishment request listening mode, and the second working mode refers to the tunnel establishment request sending mode.

[0108] The Bluetooth gateway scheduling system provided in this application can be applied to the aforementioned method embodiments one and two. For details, please refer to the descriptions of the aforementioned method embodiments one and two, which will not be repeated here.

[0109] Example 6:

[0110] Please see Figure 6 , Figure 6 The diagram illustrates a schematic structure of a Bluetooth gateway scheduling device provided in this application, which can be applied to a Bluetooth gateway. As an example and not a limitation, the method can be applied to a first Bluetooth gateway. For ease of illustration, only the parts relevant to the embodiments of this application are shown in the figure.

[0111] Reference Figure 6 The device includes a tunnel establishment module 61 and a command sending module 62; the specific functions of each module are as follows:

[0112] Tunnel establishment module 61 is used to establish a network tunnel with the second Bluetooth gateway after receiving tunnel establishment request 5 from the second Bluetooth gateway. The tunnel establishment request includes the second Bluetooth gateway.

[0113] The identification information or the identification information of the Bluetooth module in the second Bluetooth gateway;

[0114] The instruction sending module 62 is used to send a scheduling instruction to the second Bluetooth gateway through a network tunnel when the second Bluetooth gateway is determined to be the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module. The scheduling instruction is used to instruct the second Bluetooth gateway to establish a connection with the Bluetooth device.

[0115] Optionally, the instruction sending module 62 is specifically used to: generate a first virtual module corresponding to the second Bluetooth gateway based on the identification information of the second Bluetooth gateway; and determine the second Bluetooth gateway as the target gateway based on the first virtual module.

[0116] Optionally, the instruction sending module 62 is specifically used to: determine the Bluetooth module as the target Bluetooth module based on the identification information of the Bluetooth module; and determine the target gateway based on the target Bluetooth module.

[0117] 5. Optionally, the instruction sending module 62 is specifically used to: generate a second virtual module corresponding to the Bluetooth module based on the identification information of the Bluetooth module; and determine the Bluetooth module as the target Bluetooth module based on the second virtual module.

[0118] Optionally, the device further includes a listening module, configured to, before receiving a tunnel establishment request from the second Bluetooth gateway, listen for any tunnel establishment requests from the second Bluetooth gateway in the second operating mode (0) while in the first operating mode. The first operating mode refers to the tunnel establishment request listening mode.

[0119] The second working mode refers to the tunnel establishment request sending mode.

[0120] The Bluetooth gateway scheduling device provided in this application embodiment can be applied in the aforementioned method embodiment three. For details, please refer to the description of the aforementioned method embodiment three, which will not be repeated here.

[0121] Example 7:

[0122] 5 Please refer to Figure 7 , Figure 7 A schematic structure of a Bluetooth gateway scheduling device provided in this application is shown, which can be applied to a Bluetooth gateway. By way of example and not limitation, the method can be applied to a second Bluetooth gateway.

[0123] Reference Figure 7 The device includes a request sending module 71 and an instruction receiving module 72; the specific functions of each module are as follows:

[0124] The request sending module 71 is used to send a tunnel establishment request to the first Bluetooth gateway. The tunnel establishment request is used to request the first Bluetooth gateway to establish a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway.

[0125] The instruction receiving module 72 is used to receive a scheduling instruction from the first Bluetooth gateway and, in response to the scheduling instruction, connect to the Bluetooth device; wherein, the scheduling instruction is an instruction sent by the first Bluetooth gateway when it determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

[0126] Optionally, if the scheduling instruction is an instruction sent by the first Bluetooth gateway when the second Bluetooth gateway is determined as the target gateway based on the identification information of the Bluetooth module, then the instruction receiving module 72 is specifically used to: control the target Bluetooth module to connect to the Bluetooth device in response to the scheduling instruction.

[0127] The Bluetooth gateway scheduling device provided in this application embodiment can be applied in the aforementioned method embodiment four. For details, please refer to the description of the aforementioned method embodiment four, which will not be repeated here.

[0128] Example 8:

[0129] Please see Figure 8 , Figure 8 A schematic structure of a Bluetooth gateway according to an embodiment of this application is shown. The Bluetooth gateway 8 of this embodiment includes: at least one processor 80 ( Figure 8 Only one is shown in the diagram), memory 81, and computer program 82 stored in the memory 81 and executable on the at least one processor 80. When the processor 80 executes the computer program 82, it implements the steps of a Bluetooth gateway scheduling method in Embodiment 3 or Embodiment 4 described above.

[0130] The Bluetooth gateway 8 may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will understand that... Figure 8 This is merely an example of Bluetooth gateway 8 and does not constitute a limitation on Bluetooth gateway 8. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0131] The processor 80 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0132] In some embodiments, the memory 81 may be an internal storage unit of the Bluetooth gateway 8, such as a hard drive or memory of the Bluetooth gateway 8. In other embodiments, the memory 81 may be an external storage device of the Bluetooth gateway 8, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the Bluetooth gateway 8. Furthermore, the memory 81 may include both internal storage units and external storage devices of the Bluetooth gateway 8. The memory 81 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of computer programs. The memory 81 can also be used to temporarily store data that has been output or will be output.

[0133] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0134] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0135] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.

[0136] If the integrated unit is implemented as 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, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to a Bluetooth gateway, a recording medium, a computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0137] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0138] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0139] In the embodiments provided in this application, it should be understood that the disclosed device / Bluetooth gateway and method can be implemented in other ways. For example, the device / Bluetooth gateway embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0140] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0141] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A Bluetooth gateway scheduling method, characterized in that, An application in a Bluetooth gateway scheduling system, the Bluetooth gateway scheduling system comprising at least one first Bluetooth gateway and at least one second Bluetooth gateway, the method comprising: When the first Bluetooth gateway is in the first working mode, it listens for tunnel establishment requests from the second Bluetooth gateway in the second working mode. The first working mode refers to the tunnel establishment request listening mode, and the second working mode refers to the tunnel establishment request sending mode. After receiving the tunnel establishment request from the second Bluetooth gateway, the first Bluetooth gateway establishes a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway. When the first Bluetooth gateway determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module, it sends a scheduling command to the second Bluetooth gateway through the network tunnel. The second Bluetooth gateway responds to the scheduling command and connects to the Bluetooth device.

2. The method as described in claim 1, characterized in that, Based on the identification information of the second Bluetooth gateway, the second Bluetooth gateway is identified as the target gateway, including: Based on the identification information of the second Bluetooth gateway, a first virtual module corresponding to the second Bluetooth gateway is generated; Based on the first virtual module, the second Bluetooth gateway is determined as the target gateway.

3. The method as described in claim 1, characterized in that, Based on the identification information of the Bluetooth module, the second Bluetooth gateway is identified as the target gateway, including: Based on the identification information of the Bluetooth module, the Bluetooth module is identified as the target Bluetooth module; The target gateway is determined based on the target Bluetooth module; The second Bluetooth gateway, in response to the scheduling command, connects to the Bluetooth device, including: The second Bluetooth gateway responds to the scheduling command and controls the target Bluetooth module to connect to the Bluetooth device.

4. The method as described in claim 3, characterized in that, The step of identifying the Bluetooth module as the target Bluetooth module based on the identification information of the Bluetooth module includes: Based on the identification information of the Bluetooth module, a second virtual module corresponding to the Bluetooth module is generated; Based on the second virtual module, the Bluetooth module is identified as the target Bluetooth module.

5. A Bluetooth gateway scheduling method, characterized in that, Applied to a first Bluetooth gateway, the method includes: When in the first working mode, listen for tunnel establishment requests from the second Bluetooth gateway in the second working mode. The first working mode is the tunnel establishment request listening mode, and the second working mode is the tunnel establishment request sending mode. After receiving the tunnel establishment request from the second Bluetooth gateway, a network tunnel is established between the network and the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway. When the second Bluetooth gateway is identified as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module, a scheduling instruction is sent to the second Bluetooth gateway through the network tunnel. The scheduling instruction is used to instruct the second Bluetooth gateway to establish a connection with the Bluetooth device.

6. A Bluetooth gateway scheduling method, characterized in that, Applied to a second Bluetooth gateway, the method includes: When in the second working mode, a tunnel establishment request is sent to the first Bluetooth gateway in the first working mode. The tunnel establishment request is used to request the first Bluetooth gateway to establish a network tunnel between the first Bluetooth gateway and the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway. The first working mode refers to the tunnel establishment request listening mode, and the second working mode refers to the tunnel establishment request sending mode. The system receives a scheduling instruction from the first Bluetooth gateway and connects to the Bluetooth device in response to the scheduling instruction; wherein the scheduling instruction is an instruction sent by the first Bluetooth gateway when it determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

7. A Bluetooth gateway scheduling system, characterized in that, The Bluetooth gateway scheduling system includes at least one first Bluetooth gateway and at least one second Bluetooth gateway. The system includes: The first Bluetooth gateway is used to listen for tunnel establishment requests from the second Bluetooth gateway in the second working mode when it is in the first working mode. The first working mode refers to the tunnel establishment request listening mode, and the second working mode refers to the tunnel establishment request sending mode. The first Bluetooth gateway is configured to establish a network tunnel with the second Bluetooth gateway after receiving the tunnel establishment request from the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway. The first Bluetooth gateway is configured to send a scheduling instruction to the second Bluetooth gateway through the network tunnel when the second Bluetooth gateway is determined to be the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module. The second Bluetooth gateway is used to connect to Bluetooth devices in response to the scheduling command.

8. A Bluetooth gateway scheduling device, characterized in that, The device, applied to a first Bluetooth gateway, includes: The listening module is used to listen for tunnel establishment requests from a second Bluetooth gateway in a second working mode when the first working mode is in the first working mode. The first working mode is the tunnel establishment request listening mode, and the second working mode is the tunnel establishment request sending mode. The tunnel establishment module is used to establish a network tunnel with the second Bluetooth gateway after receiving the tunnel establishment request from the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway. The instruction sending module is used to send a scheduling instruction to the second Bluetooth gateway through the network tunnel when the second Bluetooth gateway is determined to be the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module. The scheduling instruction is used to instruct the second Bluetooth gateway to establish a connection with the Bluetooth device.

9. A Bluetooth gateway scheduling device, characterized in that, The device, used in a second Bluetooth gateway, includes: The request sending module is used to send a tunnel establishment request to a first Bluetooth gateway in a first working mode when in a second working mode. The tunnel establishment request is used to request the first Bluetooth gateway to establish a network tunnel with the second Bluetooth gateway. The tunnel establishment request includes the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module in the second Bluetooth gateway. The first working mode refers to the tunnel establishment request listening mode, and the second working mode refers to the tunnel establishment request sending mode. The instruction receiving module is used to receive a scheduling instruction from the first Bluetooth gateway and, in response to the scheduling instruction, connect to the Bluetooth device; wherein the scheduling instruction is an instruction sent by the first Bluetooth gateway when it determines the second Bluetooth gateway as the target gateway based on the identification information of the second Bluetooth gateway or the identification information of the Bluetooth module.

10. A Bluetooth gateway, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in claim 5 or 6.

11. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in claim 5 or 6.

Citation Information

Patent Citations

  • Method, device, and system for controlling a bluetooth device over a bluetooth mesh network

    WO2020081703A1