A bluetooth communication system, method and device

By constructing the Bluetooth honeycomb transmission network and reposting the packets, the problem of easily cutting the Bluetooth device connection when the distance increases or obstacles is blocked, and the wider range of connection use and more stable data transmission.

CN114745704BActive Publication Date: 2025-01-28JIANGSU SEUIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210254016.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-15
Publication Date
2025-01-28
Estimated Expiration
2042-03-15

AI Technical Summary

Technical Problem

When the connection between the existing Bluetooth device increases or is blocked by the connected device, the connection is easily cut off without warning, affecting the consistency of data transmission and the security of communication.

Method used

By constructing the Bluetooth honeycomb transmission network, the first Bluetooth equipment and the second Bluetooth equipment are used to repost the message to ensure that the packet forwards from the Bluetooth terminal to the first Bluetooth device to achieve cross -group communication.

Benefits of technology

It has greatly improved the connection and use range of the BT device, enhanced the coherence of data transmission and the security of communication, avoided the data disconnection, and ensured the stability and security of the communication link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114745704B_ABST
    Figure CN114745704B_ABST
Patent Text Reader

Abstract

The present invention discloses a Bluetooth communication system, method and device. The system includes: a first Bluetooth device, at least one second Bluetooth device including a first message processing module, and a Bluetooth terminal; the first Bluetooth device and each second Bluetooth device constitute a Bluetooth cellular transmission network; wherein the Bluetooth terminal is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network when there is a Bluetooth pairing requirement; the first Bluetooth device is used to capture the current broadcast message that arrives first, and generate and send an original pairing response message when it is determined based on the current broadcast message that the first pairing condition is met; the Bluetooth terminal is used to capture the current pairing response message from the Bluetooth cellular transmission network, and determine that the pairing with the first Bluetooth device is successful when it is determined based on the current pairing response message that the second pairing condition is met. This solution expands the communication range of the Bluetooth terminal while making the communication link between devices more stable and secure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a Bluetooth communication system, method and device. Background Art

[0002] In recent years, as a wireless communication standard for short-range data exchange technology, Bluetooth communication has been widely used in computers, mobile Internet, vehicle-mounted equipment and other fields.

[0003] The current BT (Bluetooth) device connection technology can be roughly divided into two schemes. Scheme 1 is point-to-point pairing connection, which has single connectivity and a small working range; Scheme 2 is point-to-multipoint multi-connection, which has improved connectivity compared to point-to-point pairing connection and can support a single group of multiple BT terminal communication networks.

[0004] The current solution often causes users to have the following experience during use: as the distance between the terminal device and the connected device increases or obstacles block it, the connection between the two will be cut off without warning, thus affecting the continuity of data transmission and the security of communication. Summary of the invention

[0005] In view of this, the present invention provides a Bluetooth communication system, method and device, which solves the problem in the prior art that the connection between a terminal device and a connected device is cut off without warning when the distance between the terminal device and the connected device increases or when an obstacle blocks the connection between the two. This greatly improves the connection range of BT devices and enhances the continuity of data transmission and the security of communication.

[0006] In a first aspect, an embodiment of the present invention provides a Bluetooth communication system, the system comprising:

[0007] A first Bluetooth device, at least one second Bluetooth device including a first message processing module, and a Bluetooth terminal;

[0008] The first Bluetooth device and each of the second Bluetooth devices constitute a Bluetooth cellular transmission network;

[0009] Wherein, the Bluetooth terminal is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network when there is a Bluetooth pairing requirement;

[0010] The first Bluetooth device is used to capture the current broadcast message that arrives first, and generate and send an original pairing response message when determining that the first pairing condition is met based on the current broadcast message, wherein the current broadcast message is the original broadcast message, or is a forwarded broadcast message;

[0011] The Bluetooth terminal is used to capture a current pairing response message from the Bluetooth cellular transmission network, and determine that pairing with the first Bluetooth device is successful when determining that a second pairing condition is met based on the current pairing response message, wherein the current pairing response message is the original pairing response message, or is a forwarding response message;

[0012] The forwarded broadcast message and the forwarded response message are both formed through message forwarding processing by a first message processing module in at least one second Bluetooth device.

[0013] In a second aspect, an embodiment of the present invention further provides a Bluetooth communication method, the method comprising:

[0014] Through the Bluetooth terminal, when there is a Bluetooth pairing requirement, an original broadcast message is generated and broadcasted to the Bluetooth cellular transmission network;

[0015] Capturing, by means of a first Bluetooth device, a current broadcast message that arrives first, and generating and sending an original pairing response message when determining based on the current broadcast message that a first pairing condition is satisfied, wherein the current broadcast message is the original broadcast message, or is a forwarded broadcast message;

[0016] By means of the Bluetooth terminal, a current pairing response message is captured from the Bluetooth cellular transmission network, and when it is determined based on the current pairing response message that a second pairing condition is satisfied, it is determined that pairing with the first Bluetooth device is successful, wherein the current pairing response message is the original pairing response message, or a forwarding response message;

[0017] The forwarded broadcast message and the forwarded response message are both formed through message forwarding processing by a first message processing module in at least one second Bluetooth device.

[0018] In the third aspect, an embodiment of the present invention further provides a computer device, which serves as a Bluetooth terminal in the Bluetooth communication system described in the embodiment of the present invention, comprising: a storage device for storing one or more programs; one or more processors; when the one or more programs are executed by the one or more processors, the one or more processors implement the execution steps corresponding to the Bluetooth terminal in the method provided in the embodiment of the present invention.

[0019] In a fourth aspect, an embodiment of the present invention further provides an Internet of Things device, which serves as the first Bluetooth device or the second Bluetooth device in the Bluetooth communication system described in the embodiment of the present invention, and includes: a message processing module; a storage device for storing one or more programs; one or more control chips; when the one or more programs are executed by the one or more control chips, the one or more processors implement the functions corresponding to the first Bluetooth device or the second Bluetooth device in the method provided in the embodiment of the present invention.

[0020] The embodiment of the present invention forms a Bluetooth cellular transmission network with the first Bluetooth device and each second Bluetooth device, and forwards the message by broadcasting, so as to achieve the purpose of forwarding the message from the Bluetooth terminal to the first Bluetooth device. This solution supports BT devices to realize cross-group communication, greatly improving the connection and use range of BT devices, and the quality of connection communication is no longer limited to a certain BT access point or a single group, so that there is no data disconnection in connection communication and data transmission between devices, thereby making the communication link more stable and secure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a schematic diagram of the structure of a Bluetooth communication system provided by Embodiment 1 of the present invention;

[0022] Figure 2 is a schematic diagram of the structure of a data transmission network provided in Embodiment 1 of the present invention;

[0023] Figure 3 is a flow chart of a Bluetooth communication method provided by Embodiment 2 of the present invention;

[0024] Figure 4 is a flow chart of another Bluetooth communication method provided by Embodiment 2 of the present invention;

[0025] Figure 5 is a schematic diagram of the structure of a computer device provided by Embodiment 3 of the present invention;

[0026] Figure 6 It is a structural diagram of an Internet of Things device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings. In addition, the embodiments of the present invention and the features in the embodiments may be combined with each other without conflict.

[0028] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0029] The term “including” and its variations used in the present invention are open inclusions, that is, “including but not limited to.” The term “based on” means “based at least in part on.” The term “one embodiment” means “at least one embodiment.”

[0030] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0031] Embodiment 1

[0032] Figure 1 1 is a schematic diagram of the structure of a Bluetooth communication system provided by Embodiment 1 of the present invention. This embodiment is applicable to Bluetooth communication. Figure 1 As shown, a Bluetooth communication system provided by Embodiment 1 of the present invention includes: a first Bluetooth device 101, at least one second Bluetooth device 102 including a first message processing module, and a Bluetooth terminal 103. The first Bluetooth device 101 is used as the network starting point, and the second Bluetooth device 102 is pre-laid within the Bluetooth coverage range of the network starting point. The first Bluetooth device 101 and each second Bluetooth device 102 form a Bluetooth ring network layer 1; a plurality of second Bluetooth devices 102 are distributed within the coverage range of the Bluetooth ring network layer 1 to form a Bluetooth ring network layer 2; and so on, the first Bluetooth device 101 and each second Bluetooth device 102 constitute a Bluetooth cellular transmission network; the number of second Bluetooth devices 102 in the Bluetooth cellular transmission network is at least one, Figure 1 A second Bluetooth device 102 is taken as an example for description.

[0033] In the embodiment, the first Bluetooth device refers to a host that is stably connected to the data processing workstation. The device features of the first Bluetooth device include a chip with Bluetooth signal processing capability, an antenna with 2.4GHz radio wave transmission / reception capability, a memory with instruction storage capability, and an MCU (Micro Control Unit) with baseband signal processing capability. The connection method between the data processing workstation and the first Bluetooth device includes but is not limited to connection through transmission media such as network cables, serial ports, twisted pairs or optical cables, and the data processing workstation includes a CPU (Central Processing Unit) with at least one of Bluetooth signal processing capability and baseband signal processing capability.

[0034] In an embodiment, the second Bluetooth device refers to a repeater that is directly / indirectly connected to the first Bluetooth device via Bluetooth. The device features of the second Bluetooth device include a chip with Bluetooth Mesh (wireless mesh network) forwarding capability, an antenna with 2.4GHz radio wave transmission / reception capability, a memory with instruction storage capability, and an MCU with baseband signal processing capability.

[0035] In the embodiment, the Bluetooth terminal refers to a Bluetooth device that can receive Bluetooth signals and perform specific tasks, such as a Bluetooth headset, a Bluetooth keyboard, a Bluetooth mouse, or a Bluetooth printer, etc. The device features of the Bluetooth terminal include a chip with Bluetooth signal processing capability, an antenna with 2.4GHz radio wave transmission / reception capability, a memory with instruction storage capability, and an MCU with baseband signal processing capability.

[0036] The first Bluetooth device and each second Bluetooth device constitute a Bluetooth cellular transmission network.

[0037] It should be explained that, with the first Bluetooth device as the network starting point, a Bluetooth ring network layer consisting of at least one second Bluetooth device is pre-laid within the Bluetooth coverage of the network starting point. The Bluetooth cellular transmission network refers to a Bluetooth transmission network similar to a honeycomb consisting of at least one Bluetooth ring network layer.

[0038] Specifically, with the first Bluetooth device as the network starting point, at least one second Bluetooth device is pre-laid within the Bluetooth coverage of the network starting point to form Bluetooth ring network layer 1; at least one second Bluetooth device is pre-laid within the Bluetooth coverage of Bluetooth ring network layer 1 to form Bluetooth ring network layer 2; at least one second Bluetooth device is pre-laid within the Bluetooth coverage of Bluetooth ring network layer 2 to form Bluetooth ring network layer 3; and so on, ultimately forming a Bluetooth cellular transmission network. According to the Bluetooth transmission protocol, a Bluetooth cellular transmission network can be composed of up to 126 Bluetooth ring network layers.

[0039] Among them, the Bluetooth terminal is used to generate and broadcast the original broadcast message to the Bluetooth cellular transmission network when there is a Bluetooth pairing requirement.

[0040] It should be noted that the Bluetooth pairing requirement may refer to a Bluetooth pairing application request initiated by a user on a Bluetooth terminal, for example, a user turning on the Bluetooth function on a smart phone.

[0041] It should be explained that the original broadcast message refers to a message generated by a Bluetooth terminal and whose message sending mechanism type is broadcast.

[0042] Specifically, when there is a Bluetooth pairing requirement, the Bluetooth terminal generates an original broadcast message, and broadcasts the original broadcast message to the Bluetooth cellular transmission network.

[0043] The first Bluetooth device is used to capture the current broadcast message that arrives first, and generate and send an original pairing response message when determining that the first pairing condition is met based on the current broadcast message. The current broadcast message is an original broadcast message, or a forwarded broadcast message.

[0044] It should be noted that the current broadcast message refers to the broadcast message sent by the Bluetooth terminal and captured by the first Bluetooth device when the first Bluetooth device currently captures the broadcast message.

[0045] In this embodiment, the first pairing condition refers to a condition under which the first Bluetooth device determines whether to pair with the Bluetooth terminal according to the current broadcast message. For example, the current broadcast message may be directly sent by the terminal and captured by the first Bluetooth device.

[0046] It should be explained that the original pairing response message refers to a message instruction generated by the first Bluetooth device to apply for pairing with the Bluetooth terminal.

[0047] It needs to be explained that forwarding a broadcast message means that after the original broadcast message sent by the Bluetooth terminal is received by the second Bluetooth device, the second Bluetooth device determines whether to forward the original broadcast message based on the signal quality of the received original broadcast message and its own communication load, and determines whether to forward the broadcast message based on the broadcast message formed after updating the original broadcast message.

[0048] Specifically, the first Bluetooth device is used to capture the current broadcast message that arrives first, and based on the current broadcast message, determines that the first pairing condition is met, that is, the current broadcast message is directly sent by the terminal and captured by the first Bluetooth device, generates an original pairing response message and sends it to the Bluetooth terminal. The current broadcast message can be the original broadcast message sent by the Bluetooth terminal, or the current broadcast message can also be a forwarded broadcast message forwarded by the second Bluetooth device.

[0049] A Bluetooth terminal is used to capture a current pairing response message from a Bluetooth cellular transmission network, and determine that pairing with a first Bluetooth device is successful when a second pairing condition is met based on the current pairing response message, and the current pairing response message is an original pairing response message, or a forwarded response message.

[0050] The current pairing response message refers to the pairing response message sent by the first Bluetooth device and received by the Bluetooth cellular transmission network when the Bluetooth terminal captures the pairing response message from the Bluetooth cellular transmission network at the current moment.

[0051] It should be noted that the second pairing condition refers to the condition that the Bluetooth terminal determines whether to pair with the first Bluetooth device based on the current pairing response message. For example, the signal quality can be determined based on the RSSI (Received Signal Strength Indication) in the current pairing response message. For example, it can be specifically RSSI ≥ -73dBm (power unit, decibel milliwatt).

[0052] It should be noted that the forwarded response message refers to a pairing response message formed by forwarding the original pairing response message sent by the first Bluetooth device after the original pairing response message is captured by the second Bluetooth device.

[0053] Specifically, the Bluetooth terminal is used to capture the current pairing response message from the Bluetooth cellular transmission network, and based on the current pairing response message, determine that the second pairing condition is met, that is, RSSI ≥ -73dBm in the current pairing response message, determine that the pairing with the first Bluetooth device is successful. The current pairing response message can be the original pairing response message sent by the first Bluetooth device, or the current pairing response message can also be a forwarded response message forwarded by the second Bluetooth device.

[0054] The forwarding broadcast message and the forwarding response message are both formed through message forwarding processing by a first message processing module in at least one second Bluetooth device.

[0055] The embodiment of the present invention forms a Bluetooth cellular transmission network with the first Bluetooth device and each second Bluetooth device, and forwards the message by broadcasting, so as to achieve the purpose of forwarding the message from the Bluetooth terminal to the first Bluetooth device. This solution supports BT devices to realize cross-group communication, greatly improving the connection and use range of BT devices, and the quality of connection communication is no longer limited to a certain BT access point or a single group, so that there is no data disconnection in connection communication and data transmission between devices, thereby making the communication link more stable and secure.

[0056] Furthermore, the original broadcast message carries the original forwarding state flag.

[0057] It should be noted that the broadcast message signal carries a forwarding status flag.

[0058] Exemplarily, in an embodiment, the forwarding state flag can be represented by an 8-bit binary number. The original broadcast message sent by the Bluetooth terminal carries the original forwarding state flag, and the original forwarding state flag can be set to 00000000.

[0059] The forwarding broadcast message and the forwarding response message are recorded as forwarding message messages of different message types.

[0060] The first message processing module in each second Bluetooth device is used to update the current message message to form a forwarded message message of the corresponding message type according to the current forwarding state flag carried by the current message message captured by the corresponding second Bluetooth device.

[0061] The current message is a message of any message type in a Bluetooth cellular transmission network.

[0062] It should be explained that the current forwarding state flag refers to the forwarding state flag carried by a message of any message type in the current Bluetooth cellular transmission network.

[0063] Specifically, the forwarding broadcast message and the forwarding response message are recorded as forwarding message messages of different message types. The first message processing module in each second Bluetooth device is used to update the current message message to form a forwarding message message of the corresponding message type according to the current forwarding state flag carried by the current message message captured by the corresponding second Bluetooth device.

[0064] Furthermore, each first message processing module is specifically used to:

[0065] The message forwarding status flag is compared with the forwarding flag of the second Bluetooth device, wherein the forwarding flag and the message forwarding status flag are both represented by binary sequences, and the sequence lengths are the same.

[0066] It should be explained that the message forwarding status flag refers to the forwarding status flag carried by the current message message, which can be represented by a binary sequence.

[0067] It should be noted that the forwarding flag refers to the forwarding flag of the second Bluetooth device itself, which is represented by a binary sequence, and the sequence length is the same as the sequence length of the message forwarding status flag. In actual operation, the number of binary digits of the message forwarding status flag and the status flag is determined according to the number of second Bluetooth devices in the Bluetooth cellular transmission network, and the number of binary digits ≥ the number of second Bluetooth devices.

[0068] In this embodiment, the second Bluetooth device has at least one group of registers to save its own forwarding flag, and the forwarding flag of each second Bluetooth device is different. It can be understood that the forwarding flag of second Bluetooth device No. 1 is 1 (00000001), the forwarding flag of second Bluetooth device No. 2 is 2 (00000010), the forwarding flag of second Bluetooth device No. 3 is 4 (00000100), and the forwarding flag of second Bluetooth device No. 4 is 8 (00001000), and so on. The forwarding flag of second Bluetooth device No. N is 2^(N-1). The second Bluetooth device compares its own forwarding flag with the message forwarding status flag to determine whether to forward the message.

[0069] Specifically, each first message processing module in the second Bluetooth device is specifically used to compare the message forwarding status flag with the forwarding flag of the second Bluetooth device to which it belongs, wherein the forwarding flag and the message forwarding status flag are both represented by binary sequences, and the sequence lengths are the same. In this embodiment, after the second Bluetooth device captures the current message message, it will first perform a comparison, and the comparison method can be specifically that the first bit of the binary sequence of the message forwarding status flag is compared with the first second Bluetooth device, the second bit of the binary sequence of the message forwarding status flag is compared with the second Bluetooth device, and so on, the Nth bit of the binary sequence of the message forwarding status flag is compared with the Nth second Bluetooth device.

[0070] If the binary value of the forwarding flag bit set in the forwarding flag is different from the binary value of the corresponding binary bit in the message forwarding status flag, an "OR" logical operation is performed on the message forwarding status flag and the forwarding flag, and the logical operation result is used as the new message forwarding status flag to update the current message message to form a forwarded message message.

[0071] It should be explained that the "OR" logical operation refers to performing an OR logical operation on a binary sequence. For example, an OR logical operation may be performed on 10101010 and 01010101, and the result obtained is 11111111.

[0072] Specifically, if the binary value of the forwarding flag bit set in the forwarding flag is different from the binary value of the corresponding binary bit in the message forwarding state flag, the message forwarding state flag and the forwarding flag bit are subjected to an "OR" logic operation, and the result of the logic operation is used as a new message forwarding state flag to update the current message message, thereby forming a forwarded message message. Exemplarily, the third second Bluetooth device captures the current message message carrying a message forwarding state flag of 00000001, and after judging that the message forwarding condition is met, the forwarding flag bit 00000100 of the third second Bluetooth device itself is compared with the third bit of 00000001, and then an "OR" logic operation is performed, and the updated message forwarding state flag bit is 00000101, and the result of the logic operation 00000101 is used as a new message forwarding state flag to update the current message message, thereby forming a forwarded message message with 00000101.

[0073] Otherwise, stop forwarding the current message.

[0074] Furthermore, each first message processing module is further configured to:

[0075] The message signal strength carried by the current message message captured by the corresponding second Bluetooth device is extracted, and the forwarding port status of the corresponding second Bluetooth device is detected.

[0076] The message signal strength refers to the strength of the message signal, and the message signal strength can be indicated by the RSSI.

[0077] It should be explained that the forwarding port state refers to the state of the forwarding port of the second Bluetooth device. The forwarding port state may be, for example, idle or occupied.

[0078] Specifically, each first message processing module in the second Bluetooth device is further used to extract the message signal strength carried by the current message message captured by the corresponding second Bluetooth device, and detect the forwarding port status of the corresponding second Bluetooth device.

[0079] When the message signal strength is greater than the first strength threshold and the forwarding port state is idle, it is determined that the message forwarding condition is currently met, so that the message forwarding process is performed later.

[0080] The first strength threshold may be a value of the message signal strength set according to actual needs, for example, may be -70 dBm.

[0081] It should be noted that the message forwarding condition refers to the condition under which the second Bluetooth device can forward the message.

[0082] Specifically, when the message signal strength is greater than the first strength threshold and the forwarding port state of the second Bluetooth device is idle, it is determined that the message forwarding condition is currently met, so that the message forwarding process is performed later.

[0083] Furthermore, each second Bluetooth device further includes:

[0084] The first message receiving module is used to capture the current message message of any message type in the Bluetooth cellular transmission network and transmit it to the first message processing module.

[0085] Specifically, each second Bluetooth device also includes a first message receiving module, which is used to capture a current message message of any message type in the Bluetooth cellular transmission network and transmit the captured current message message to the first message processing module.

[0086] The first message sending module is used to receive a forwarded message message formed after the first message processing module forwards the current message message, and broadcast the forwarded message message to the Bluetooth cellular transmission network.

[0087] Specifically, each second Bluetooth device also includes a first message sending module, which is used to receive a forwarded message message formed after the first message processing module forwards the current message message, the forwarded message message includes a forwarded broadcast message and a forwarded response message, and broadcasts the forwarded message message to the Bluetooth cellular transmission network.

[0088] Furthermore, the first Bluetooth device includes:

[0089] The second message receiving module is used to capture the current broadcast message that arrives first.

[0090] Specifically, the first Bluetooth device includes a second message receiving module, and the second message receiving module is used to capture the current broadcast message that first reaches the first Bluetooth device.

[0091] The second message processing module is used to determine that the first pairing condition is met and generate an original pairing response message when the target device identifier carried in the current broadcast message is the own device identifier.

[0092] It should be noted that the target device identifier refers to the device identifier carried in the current broadcast message. The own device identifier refers to the host device number, which may include but is not limited to the SN (Series Number) number or the serial number provided by other equipment manufacturers.

[0093] In this embodiment, the first pairing condition refers to a condition under which the first Bluetooth device determines whether to pair with the Bluetooth terminal according to the current broadcast message.

[0094] It should be explained that the original pairing response message refers to a message instruction generated by the first Bluetooth device to apply for pairing with the Bluetooth terminal.

[0095] Specifically, the first Bluetooth device includes a second message processing module, and the second message processing module is used to determine that the first pairing condition is met and generate an original pairing response message when the target device identifier carried in the current broadcast message is the own device identifier.

[0096] The second message sending module is used to send an original pairing response message to the Bluetooth terminal.

[0097] Specifically, the first Bluetooth device includes a second message sending module, and the second message sending module is used to send an original pairing response message to the Bluetooth terminal.

[0098] Furthermore, the Bluetooth terminal comprises:

[0099] The third message sending module is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network to initiate Bluetooth pairing when there is a Bluetooth pairing requirement.

[0100] Specifically, the Bluetooth terminal includes a third message sending module, and the third message sending module is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network to initiate Bluetooth pairing when there is a Bluetooth pairing requirement.

[0101] The third message receiving module is used to capture the current pairing response message that arrives first from the Bluetooth cellular transmission network.

[0102] Specifically, the Bluetooth terminal includes a third message receiving module, and the third message receiving module is used to capture the current pairing response message that first arrives at the Bluetooth terminal from the Bluetooth cellular transmission network.

[0103] The third message processing module is used to determine the second pairing condition according to whether the current pairing response message is an original pairing response message, and determine that the pairing with the first Bluetooth device is successful when the second pairing condition is met.

[0104] It should be noted that the second pairing condition refers to a condition under which the Bluetooth terminal determines whether to pair with the first Bluetooth device according to the current pairing response message.

[0105] Specifically, the Bluetooth terminal includes a third message processing module, which is used to determine the second pairing condition according to whether the current pairing response message is an original pairing response message, and determine that pairing with the first Bluetooth device is successful when the second pairing condition is met.

[0106] Furthermore, the third message processing module is specifically used for:

[0107] The current forwarding state flag carried in the current pairing response message is extracted, and the original forwarding state flag carried in the original pairing response message is obtained.

[0108] Specifically, the third message processing module in the Bluetooth terminal is specifically used to extract the current forwarding state flag carried in the current pairing response message and obtain the original forwarding state flag carried in the original pairing response message. The current forwarding state flag carried in the current pairing response message has the same binary sequence length as the original forwarding state flag carried in the original pairing response message.

[0109] When the current forwarding state flag is different from the original forwarding state flag, it is determined that the second pairing condition is currently satisfied, and it is determined that the pairing with the first Bluetooth device is successful.

[0110] Specifically, when the current forwarding state flag carried in the current pairing response message is different from the original forwarding state flag carried in the original pairing response message, it is determined that the second pairing condition is currently met, and it is determined that the pairing with the first Bluetooth device is successful.

[0111] Alternatively, when the current forwarding state flag is the same as the original forwarding state flag, and the received signal strength carried in the current pairing response message is greater than or equal to the second strength threshold, it is determined that the second pairing condition is currently met, and it is determined that the pairing with the first Bluetooth device is successful.

[0112] The second strength threshold may be a value of the received signal strength carried by the current pairing response message set according to actual needs, for example, may be -73dBm.

[0113] Specifically, when the current forwarding status flag carried in the current pairing response message is the same as the original forwarding status flag carried in the original pairing response message, and the received signal strength carried by the current pairing response message is greater than or equal to the second strength threshold, it is determined that the second pairing condition is currently met, and it is determined that the pairing with the first Bluetooth device is successful.

[0114] Furthermore, the third message processing module is further used for:

[0115] When the current forwarding state flag is the same as the original forwarding state flag, and the received signal strength carried in the current pairing response message is less than the second strength threshold, it is determined that pairing with the first Bluetooth device has failed.

[0116] Specifically, the third message processing module in the Bluetooth terminal is also used to determine that pairing with the first Bluetooth device has failed when the current forwarding status flag carried in the current pairing response message is the same as the original forwarding status flag carried in the original pairing response message, and the received signal strength carried by the current pairing response message is less than the second strength threshold.

[0117] The original broadcast message is regenerated to broadcast the original broadcast message to the Bluetooth cellular transmission network through the third message sending module of the Bluetooth terminal.

[0118] Specifically, the third message processing module in the Bluetooth terminal is further used to regenerate the original broadcast message, so as to broadcast the original broadcast message to the Bluetooth cellular transmission network through the third message sending module of the Bluetooth terminal, and re-initiate Bluetooth pairing.

[0119] Further, after the third message processing module regenerates the original broadcast message, and the third message sending module broadcasts the original broadcast message to the Bluetooth cellular transmission network,

[0120] The first Bluetooth device is also used to:

[0121] The original pairing response message is generated by capturing the forwarded broadcast message that arrives first.

[0122] Specifically, after the third message processing module regenerates the original broadcast message and the third message sending module broadcasts the original broadcast message to the Bluetooth cellular transmission network, the first Bluetooth device generates an original pairing response message by capturing the first forwarded broadcast message that arrives.

[0123] Accordingly, the Bluetooth terminal is also used for:

[0124] Whether pairing with the first Bluetooth device is successful is determined by capturing the forwarding response message that arrives first.

[0125] Specifically, the Bluetooth terminal is further used to determine whether pairing with the first Bluetooth device is successful by capturing the forwarding response message that first arrives at the Bluetooth terminal.

[0126] Furthermore, the original forwarding state flag carried in the original pairing response message is the inverse of the forwarding state flag carried in the current broadcast message.

[0127] In this embodiment, negation can be understood as changing 1 in a binary number to 0, and changing 0 to 1. For example, negating 101010 results in 010101.

[0128] Specifically, the original forwarding state flag carried in the original pairing response message is the inverse of the forwarding state flag carried in the current broadcast message.

[0129] When the current broadcast message is an original broadcast message, the forwarding state flag carried by the current broadcast message is the same as the original forwarding state flag carried by the original broadcast message, which is an initially set binary sequence.

[0130] Exemplarily, in this embodiment, the initially set binary sequence may be 00000000.

[0131] Specifically, when the current broadcast message is an original broadcast message, the forwarding state flag carried by the current broadcast message is the same as the forwarding state flag carried by the original broadcast message, and is represented by an initially set binary sequence.

[0132] Furthermore, the Bluetooth terminal comprises:

[0133] The data communication module is used to determine the transmission path for communicating with the first Bluetooth device in the Bluetooth cellular transmission network according to the forwarding status flag in the stored original pairing response message after successfully pairing with the first Bluetooth device, and transmit data messages based on the transmission path.

[0134] It should be noted that the transmission path refers to the path for the Bluetooth terminal to communicate with the first Bluetooth device in the Bluetooth cellular transmission network. For example, if the Bluetooth terminal communicates directly with the first Bluetooth device, the transmission path is from the Bluetooth terminal directly to the first Bluetooth device; or if the Bluetooth communicates with the first Bluetooth device through several second Bluetooth devices, the transmission path is from the Bluetooth terminal to the several second Bluetooth devices used for communication and then to the first Bluetooth device.

[0135] Specifically, the Bluetooth terminal includes a data communication module, which is used to determine the transmission path for communicating with the first Bluetooth device in the Bluetooth cellular transmission network according to the forwarding status flag in the stored original pairing response message after successfully pairing with the first Bluetooth device, and transmit data messages based on the transmission path.

[0136] The pairing detection module is used to determine whether to re-initiate the original broadcast message for Bluetooth pairing by analyzing the received signal strength in the communication data message received within a first set time period.

[0137] The first set duration may be a duration set according to actual needs, for example, 1 second, which is not limited in this embodiment.

[0138] It should be explained that the communication data message refers to a data message sent from the first Bluetooth device to the Bluetooth terminal for communication transmission.

[0139] Specifically, the Bluetooth terminal includes a pairing detection module, which is used to determine whether to re-initiate an original broadcast message for Bluetooth pairing by analyzing the received signal strength in the communication data message received within a first set time period.

[0140] Furthermore, the pairing detection module is specifically used for:

[0141] Acquire each communication data message received within a first set time period based on the transmission path.

[0142] Specifically, the pairing detection module included in the Bluetooth terminal is specifically used to obtain each communication data message received within a first set time period based on the transmission path.

[0143] If the transmission path does not include a second Bluetooth device, the number of first messages in each communication data message whose received signal strength is less than a third strength threshold is counted, and when the number of first messages is greater than or equal to the set number threshold, the original broadcast message for Bluetooth pairing is re-initiated.

[0144] The third strength threshold may be a value of the received signal strength in each communication data message set according to actual needs, for example, may be -73dBm.

[0145] It should be noted that the first message quantity refers to the number of messages whose received signal strength is less than the third strength threshold among the communication data messages received by the Bluetooth terminal.

[0146] The set quantity threshold may be a value of the first message quantity set according to actual needs, for example, 10, which is not limited in this embodiment.

[0147] Specifically, if the transmission path does not include the second Bluetooth device, that is, the signal transmission is performed directly from the Bluetooth terminal to the first Bluetooth device, the number of first messages in each communication data message whose received signal strength is less than the third strength threshold is counted, and when the number of first messages is greater than or equal to the set number threshold, the original broadcast message for Bluetooth pairing is re-initiated. Exemplarily, when the communication between the Bluetooth terminal and the first Bluetooth device is not forwarded by the second Bluetooth device, the Bluetooth terminal will continuously obtain the RSSI value of the received signal strength in the communication data message within the first set time period. When the number of first messages with RSSI lower than the third strength threshold, such as -73dBm, is greater than or equal to the set number threshold, the Bluetooth terminal believes that the signal quality is poor at this time and will re-initiate the original broadcast message for Bluetooth pairing.

[0148] Otherwise, the number of second messages whose received signal strength is less than the fourth strength threshold in each communication data message is counted, and when the number of second messages is greater than or equal to the set number threshold, the original broadcast message for Bluetooth pairing is re-initiated.

[0149] The fourth strength threshold may be a value of the received signal strength in each communication data message set according to actual needs, for example, may be -70 dBm.

[0150] It should be noted that the second message quantity refers to the number of messages whose received signal strength is less than the fourth strength threshold among the communication data messages received by the Bluetooth terminal.

[0151] Specifically, if the transmission path includes a second Bluetooth device, the number of second messages whose received signal strength is less than the fourth strength threshold in each communication data message is counted, and when the number of second messages is greater than or equal to the set number threshold, the original broadcast message for Bluetooth pairing is re-initiated. Exemplarily, when the communication between the Bluetooth terminal and the first Bluetooth device is forwarded through several second Bluetooth devices, the Bluetooth terminal obtains the communication data message forwarded by the most recent second Bluetooth device, and the Bluetooth terminal continuously obtains the RSSI value of the received signal strength in the communication data message within the first set time period. When the number of second messages with RSSI lower than the fourth strength threshold, such as -70dBm, is greater than or equal to the set number threshold, the Bluetooth terminal considers that the signal quality is poor at this time, and will re-initiate the original broadcast message for Bluetooth pairing.

[0152] Furthermore, the Bluetooth terminal is also used to determine that the transmission path used for communication is abnormal and re-initiate the original broadcast message for Bluetooth pairing if no data response message is received within a second set time period after successfully pairing with the first Bluetooth device and sending a data broadcast message to the first Bluetooth device.

[0153] It should be noted that the data broadcast message refers to a data broadcast message sent by a Bluetooth terminal for communication, for example, it may be an original broadcast message.

[0154] The second set duration may be a duration set according to actual needs, for example, 1 second, which is not limited in this embodiment.

[0155] It should be explained that the data response message refers to a data response message for communication sent by the first Bluetooth device or forwarded by the second Bluetooth device. For example, it can be an original pairing response message sent by the first Bluetooth device or a forwarded response message forwarded by the second Bluetooth device.

[0156] Specifically, the Bluetooth terminal is also used to, after successfully pairing with the first Bluetooth device and sending a data broadcast message to the first Bluetooth device, if no data response message is received within a second set time period, determine that the transmission path used for communication is abnormal, and re-initiate the original broadcast message for Bluetooth pairing.

[0157] As an exemplary description of this embodiment, Figure 2 Schematic diagram of the structure of the data transmission network provided by the first embodiment of the present invention, which is applicable to the case of Bluetooth communication. Figure 2 As shown, the data transmission network includes: a first Bluetooth device 201, a data processing workstation 202, a second Bluetooth device 203 and a Bluetooth terminal 204; the number of the second Bluetooth device 203 in the data transmission network is at least one, Figure 2 A second Bluetooth device 203 is used as an example for explanation; the connection method between the data processing workstation 202 and the first Bluetooth device 201 includes but is not limited to connecting through a transmission medium such as a network cable, a serial port cable, a twisted pair cable or an optical cable.

[0158] The first Bluetooth device 201 and the second Bluetooth devices 203 form a Bluetooth cellular transmission network. For example, the first Bluetooth device and the second Bluetooth device A1, the second Bluetooth device A2, the second Bluetooth device A3 and the second Bluetooth device A4 form a Bluetooth ring network layer; the second Bluetooth device A1 and the second Bluetooth device B1 and the second Bluetooth device B2 form a Bluetooth ring network layer; the second Bluetooth device A2 and the second Bluetooth device B3 and the second Bluetooth device B4 form a Bluetooth ring network layer; the second Bluetooth device B2 and the second Bluetooth device C1 form a Bluetooth ring network layer; these Bluetooth ring network layers together form a Bluetooth cellular transmission network.

[0159] The Bluetooth terminal 204 is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network when there is a Bluetooth pairing requirement;

[0160] The first Bluetooth device 201 is used to capture the current broadcast message that arrives first, and generate and send an original pairing response message when determining that the first pairing condition is met based on the current broadcast message, where the current broadcast message is an original broadcast message, or a forwarded broadcast message;

[0161] The Bluetooth terminal 204 is used to capture the current pairing response message from the Bluetooth cellular transmission network, and determine that the pairing with the first Bluetooth device 201 is successful when the second pairing condition is met based on the current pairing response message. The current pairing response message is an original pairing response message, or a forwarded response message.

[0162] The forwarding broadcast message and the forwarding response message are both formed through message forwarding processing by a first message processing module in at least one second Bluetooth device.

[0163] An embodiment of the present invention builds a Bluetooth Mesh network between a Bluetooth terminal and a first Bluetooth device, with the Bluetooth terminal acting as a slave and the second Bluetooth device acting as a link relay, and forwarding messages by broadcasting to achieve the purpose of forwarding information from the Bluetooth terminal to the first Bluetooth device.

[0164] Embodiment 2

[0165] Figure 3 1 is a flowchart of a Bluetooth communication method provided in Embodiment 2 of the present invention. This embodiment is applicable to Bluetooth communication. The method is applied to the Bluetooth communication system provided in the above embodiment. Figure 3 As shown, the method specifically comprises the following steps:

[0166] S301. When there is a need for Bluetooth pairing, a Bluetooth terminal generates and broadcasts an original broadcast message to a Bluetooth cellular transmission network.

[0167] In this embodiment, when there is a Bluetooth pairing requirement, the Bluetooth terminal generates an original broadcast message and broadcasts the original broadcast message to the Bluetooth cellular transmission network.

[0168] S302. Capture a current broadcast message from a Bluetooth cellular transmission network through a first Bluetooth device, and generate and send an original pairing response message when determining that a first pairing condition is met based on the current broadcast message. The current broadcast message is an original broadcast message, or a forwarded broadcast message.

[0169] In this embodiment, the first Bluetooth device captures the current broadcast message from the Bluetooth cellular transmission network. The current broadcast message may be an original broadcast message directly sent by the Bluetooth terminal, or the current broadcast message may be a forwarded broadcast message forwarded by the second Bluetooth device. When it is determined that the first pairing condition is met based on the current broadcast message, an original pairing response message is generated and sent.

[0170] S303. Capture the current pairing response message from the Bluetooth cellular transmission network through the Bluetooth terminal, and determine that the pairing with the first Bluetooth device is successful when the second pairing condition is met based on the current pairing response message. The current pairing response message is an original pairing response message, or a forwarded response message.

[0171] In this embodiment, the Bluetooth terminal captures the current pairing response message from the Bluetooth cellular transmission network. The current pairing response message may be the original pairing response message sent by the first Bluetooth device, or the current pairing response message may be a forwarded response message forwarded by the second Bluetooth device. When it is determined that the second pairing condition is met based on the current pairing response message, it is determined that the pairing with the first Bluetooth device is successful.

[0172] The forwarding broadcast message and the forwarding response message are both formed through message forwarding processing by a first message processing module in at least one second Bluetooth device.

[0173] When there is a need for Bluetooth pairing, the embodiment of the present invention generates and broadcasts an original broadcast message to the Bluetooth cellular transmission network through the Bluetooth terminal; the first Bluetooth device captures the current broadcast message that arrives first, and generates and sends an original pairing response message when it is determined based on the current broadcast message that the first pairing condition is met; the Bluetooth terminal captures the current pairing response message from the Bluetooth cellular transmission network, and determines based on the current pairing response message that the second pairing condition is met, it is determined that the pairing with the first Bluetooth device is successful. This solution forwards messages by broadcasting, achieving the purpose of forwarding messages from the Bluetooth terminal to the first Bluetooth device. This solution supports BT devices to achieve cross-group communication, greatly improving the connection and use range of BT devices, and the quality of connection communication is no longer limited to a certain BT access point or a single group, so that there is no data disconnection in connection communication and data transmission between devices, thereby making the communication link more stable and secure.

[0174] As an exemplary description of this embodiment, Figure 4 1 is a flowchart of another Bluetooth communication method provided in Embodiment 2 of the present invention, which is applicable to Bluetooth communication. The method is applied to the Bluetooth communication system provided in the above embodiment. Figure 4 As shown, the method specifically comprises the following steps:

[0175] S401: The Bluetooth terminal broadcasts an original broadcast message.

[0176] Specifically, when there is a Bluetooth pairing requirement, the Bluetooth terminal generates and broadcasts an original broadcast message carrying a device identifier and a forwarding status flag to the Bluetooth cellular transmission network. The forwarding status flag of the original broadcast message initiated by the Bluetooth terminal is 00000000.

[0177] S402: The first Bluetooth device captures the current broadcast message and generates an original pairing response message.

[0178] Specifically, the first Bluetooth device captures the current broadcast message with the device identifier, and determines through the forwarding status flag (00000000) carried in the original broadcast message that the original broadcast message is directly sent by the Bluetooth terminal and captured by the first Bluetooth device, and then sends an original pairing response message to the Bluetooth terminal. The original pairing response message includes the received signal strength indication (RSSI) and the forwarding status flag (00000000) in the leading sequence of the current broadcast message captured by the first Bluetooth device.

[0179] S403: Determine whether the received signal strength is greater than or equal to a second strength threshold; if not, return to execute S401; if yes, execute S404.

[0180] Specifically, the forwarding status flag of the original pairing response message sent by the first Bluetooth device is 00000000. The Bluetooth terminal can directly obtain the current pairing response message, and judge the signal quality according to the RSSI in the current pairing response message, and judge whether the received signal strength is greater than or equal to the second strength threshold. The second strength threshold can be, for example, -73dBm. If not, return to execute S401 and the Bluetooth terminal broadcasts the original broadcast message, and refuses to access the current pairing response message with the forwarding status flag of 00000000 the next time the current pairing response message is received; if so, execute S404 and the Bluetooth terminal establishes a pairing relationship with the first Bluetooth device.

[0181] S404: The Bluetooth terminal establishes a pairing relationship with the first Bluetooth device.

[0182] Specifically, the Bluetooth terminal captures the current pairing response message from the Bluetooth cellular transmission network, and when it is determined based on the current pairing response message that the second pairing condition is met, it is determined that the pairing with the first Bluetooth device is successful, and both parties initiate data transmission and reception.

[0183] S405, determining whether the number of the first messages is greater than or equal to a set number threshold, if so, returning to execute S401; if not, looping to execute S405.

[0184] Specifically, the Bluetooth terminal and the first Bluetooth device will determine the signal transmission quality by judging the RSSI in the communication data message during the data transmission process. Specifically, the Bluetooth terminal will continuously obtain the RSSI value of the received signal strength in the communication data message within the first set time length, and judge whether the number of first messages with RSSI lower than the third strength threshold, such as -73dBm, is greater than or equal to the set number threshold. If so, return to execute S401, the Bluetooth terminal broadcasts the original broadcast message; if not, loop execute S405, that is, continuously obtain the RSSI value of the received signal strength in the communication data message within the first set time length, and judge whether the number of first messages with RSSI lower than the third strength threshold, such as -73dBm, is greater than or equal to the set number threshold.

[0185] S406: The second Bluetooth device captures the current message.

[0186] Specifically, after the Bluetooth terminal sends out the original broadcast message, the second Bluetooth device captures the original broadcast message with the device identification number.

[0187] S407, determine whether the current message meets the message forwarding conditions, if yes, execute S409; if not, execute S408.

[0188] Specifically, whether to forward the current message message is determined based on the signal quality of the current message message received and the communication load itself. The specific judgment method can be understood as follows: the signal quality judgment method is to determine whether the message signal strength is greater than the first strength threshold, such as -70dBm, and the communication load judgment method is to determine whether the forwarding port of the second Bluetooth device is idle. If the message signal strength RSSI ≥ -70dBm and the forwarding port of the second Bluetooth device is not occupied, then S409 is executed to forward and update the status flag; if the current message message does not meet the message forwarding conditions, then S408 is executed for the second Bluetooth device to refuse to forward.

[0189] S408: The second Bluetooth device refuses to forward.

[0190] Specifically, when the message forwarding condition is not met currently, the second Bluetooth device refuses to forward the current message.

[0191] S409: Forward and update the status flag.

[0192] Specifically, when the second Bluetooth device forwards, it will first compare the message forwarding status flag with the forwarding flag bit of the second Bluetooth device to which it belongs. If the message forwarding status flag and the binary bits of the forwarding flag bit have different binary values, the message forwarding status flag and the forwarding flag bit will be subjected to an "OR" logic operation. The result of the logic operation is used as a new message forwarding status flag to update the current message message, forming a forwarded message message.

[0193] S410, determining whether the first Bluetooth device captures and forwards the broadcast message, if so, executing S411; if not, returning to executing S407.

[0194] Specifically, determine whether the first Bluetooth device captures and forwards the broadcast message. If so, execute S411 for the first Bluetooth device to generate an original pairing response message; if not, the forwarded broadcast message is captured by other second Bluetooth devices, and return to execute S407 to determine whether the current message message meets the message forwarding conditions.

[0195] In actual operation, more than one second Bluetooth device may participate in forwarding. The forwarded broadcast message with the lowest latency will be captured by the first Bluetooth device. The first Bluetooth device will then no longer accept other forwarded broadcast messages containing the same device identification number and perform an "invert" operation on the status flag contained in the forwarded broadcast message.

[0196] S411: The first Bluetooth device generates an original pairing response message.

[0197] Specifically, the first Bluetooth device generates an original pairing response message and then sends out an original pairing response message, which includes the status flag bit after the "inversion" operation is performed on the status flag bit included in the captured forwarded broadcast message and the device identification number.

[0198] S412: Determine whether the current pairing response message meets the message forwarding condition. If so, execute S413; if not, execute S408.

[0199] Specifically, determine whether the current pairing response message meets the message forwarding condition. If so, generate a forwarding response message and send it to the Bluetooth terminal. The Bluetooth terminal determines whether the second pairing condition is met. When the second pairing condition is met, execute S413 to establish a pairing relationship between the Bluetooth terminal and the first Bluetooth device; if the current pairing response message does not meet the message forwarding condition, execute S408 and the second Bluetooth device refuses to forward.

[0200] In actual operation, the original pairing response message sent by the first Bluetooth device will be forwarded by the second Bluetooth device first. To save resources, after the second Bluetooth device captures the current pairing response message, it will first compare the message forwarding status flag with the forwarding flag of the second Bluetooth device to which it belongs. If there are different binary values ​​in the binary bits of the message forwarding status flag and the forwarding flag, the message forwarding status flag and the forwarding flag are subjected to an "or" logic operation. The result of the logic operation is used as a new message forwarding status flag to update the current message message to form a forwarding response message.

[0201] The Bluetooth terminal obtains the forwarding response message through the second Bluetooth device and successfully pairs with the first Bluetooth device and synchronizes the forwarding status flag, so that the data broadcast received and sent subsequently has memory, that is, only the second Bluetooth device that participated in the forwarding during the pairing broadcast can forward the data broadcast, avoiding waste of resources of the second Bluetooth device during data transmission.

[0202] S413: The Bluetooth terminal establishes a pairing relationship with the first Bluetooth device.

[0203] Specifically, the Bluetooth terminal captures the current pairing response message from the Bluetooth cellular transmission network, and when it is determined based on the current pairing response message that the second pairing condition is met, it is determined that the pairing with the first Bluetooth device is successful, and both parties initiate data transmission and reception.

[0204] S414, determining whether the number of the second messages is greater than or equal to the set number threshold, if so, returning to execute S401; if not, looping to execute S414.

[0205] Specifically, during the data transmission process, the Bluetooth terminal and the first Bluetooth device are forwarded by several second Bluetooth devices. At this time, the Bluetooth terminal obtains the forwarding response message forwarded by the most recent second Bluetooth device. The Bluetooth terminal will continuously obtain the RSSI value of the received signal strength in the communication data message within the first set time period, and determine whether the number of second messages with RSSI lower than the fourth strength threshold, such as -70dBm, is greater than or equal to the set number threshold. If so, return to execute S401 to broadcast the original broadcast message of the Bluetooth terminal; if not, loop S413, that is, continuously obtain the RSSI value of the received signal strength in the communication data message within the first set time period, and determine whether the number of second messages with RSSI lower than the fourth strength threshold, such as -70dBm, is greater than or equal to the set number threshold.

[0206] During data transmission, if the Bluetooth terminal sends a data broadcast message and does not receive a data response message within the second set time period, it is considered that an abnormality has occurred in the data link, and the Bluetooth terminal re-initiates the original broadcast message for Bluetooth pairing.

[0207] Embodiment 3

[0208] Figure 5 1 is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention, which is used as a Bluetooth terminal in the Bluetooth communication system described in the embodiment of the present invention. Figure 5 As shown, the computer device includes a processor 501, a storage device 502, an input device 503 and an output device 504; the number of processors 501 in the computer device can be one or more. Figure 5 A processor 501 is taken as an example; the processor 501, storage device 502, input device 503 and output device 504 in the computer device can be connected by a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0209] The storage device 502 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the Bluetooth terminal in the Bluetooth communication method in the embodiment of the present invention (for example, the third message sending module, the third message receiving module, the third message processing module, the data communication module and the pairing detection module in the Bluetooth terminal). The processor 501 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the storage device 502, that is, implements the execution steps corresponding to the Bluetooth terminal in the Bluetooth communication method provided in the above embodiment of the present invention:

[0210] The Bluetooth terminal is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network when there is a Bluetooth pairing requirement;

[0211] The Bluetooth terminal is used to capture the current pairing response message from the Bluetooth cellular transmission network, and determine that pairing with the first Bluetooth device is successful when it is determined that the second pairing condition is met based on the current pairing response message, and the current pairing response message is the original pairing response message, or is a forwarded response message.

[0212] The storage device 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 502 may further include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the device / terminal / server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0213] The input device 503 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer device. The output device 504 may include a display device such as a display screen.

[0214] Embodiment 4

[0215] Figure 6 Schematic diagram of the structure of an Internet of Things device provided in the fourth embodiment of the present invention, which is used as the first Bluetooth device or the second Bluetooth device in the Bluetooth communication system described in the embodiment of the present invention. Figure 6As shown, the IoT device includes a control chip 601, a storage device 602, an input device 603 and an output device 604; the number of the control chip 601 in the IoT device can be one or more. Figure 6 A control chip 601 is taken as an example; the control chip 601, the storage device 602, the input device 603 and the output device 604 in the IoT device can be connected through a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0216] The storage device 602 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the first Bluetooth device or the second Bluetooth device in the Bluetooth communication method in the embodiment of the present invention (for example, the first message processing module, the first message receiving module and the first message sending module in the second Bluetooth device, the second message receiving module, the second message processing module and the second message sending module in the first Bluetooth device). The control chip 601 executes various functional applications and data processing of the Internet of Things device by running the software programs, instructions and modules stored in the storage device 602, that is, realizes the functions corresponding to the first Bluetooth device or the second Bluetooth device in the Bluetooth communication method provided in the above embodiment of the present invention:

[0217] The first Bluetooth device and each of the second Bluetooth devices constitute a Bluetooth cellular transmission network;

[0218] The first Bluetooth device is used to capture the current broadcast message that arrives first, and generate and send an original pairing response message when it is determined that the first pairing condition is met based on the current broadcast message. The current broadcast message is the original broadcast message, or is a forwarded broadcast message.

[0219] The storage device 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 602 may further include a memory remotely arranged relative to the control chip 601, and these remote memories may be connected to the device / terminal / server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0220] The input device 603 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the IoT device. The output device 604 may include a display device such as a display screen.

[0221] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A Bluetooth communication system, characterized in that: include: A first Bluetooth device, at least one second Bluetooth device including a first message processing module, and a Bluetooth terminal; The first Bluetooth device and each of the second Bluetooth devices constitute a Bluetooth cellular transmission network, and the Bluetooth cellular transmission network refers to a Bluetooth transmission network similar to a honeycomb formed by at least one Bluetooth ring network layer; Wherein, the Bluetooth terminal is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network when there is a Bluetooth pairing requirement; The first Bluetooth device is used to capture the current broadcast message that arrives first, and generate and send an original pairing response message when determining that the first pairing condition is met based on the current broadcast message, wherein the current broadcast message is the original broadcast message, or is a forwarded broadcast message; The Bluetooth terminal is used to capture a current pairing response message from the Bluetooth cellular transmission network, and determine that pairing with the first Bluetooth device is successful when determining that a second pairing condition is met based on the current pairing response message, wherein the current pairing response message is the original pairing response message, or is a forwarding response message; The forwarded broadcast message and the forwarded response message are both formed through message forwarding processing by a first message processing module in at least one second Bluetooth device.

2. The system according to claim 1, characterized in that The original broadcast message carries the original forwarding state flag; the forwarded broadcast message and the forwarded response message are recorded as forwarded message messages of different message types; The first message processing module in each of the second Bluetooth devices is used to update the current message message to form a forwarded message message of the corresponding message type according to the current forwarding state flag carried by the current message message captured by the corresponding second Bluetooth device; The current message is a message of any message type in the Bluetooth cellular transmission network.

3. The system according to claim 2, characterized in that Each of the first message processing modules is specifically configured to: Compare the message forwarding status flag with the forwarding flag of the second Bluetooth device, wherein the forwarding flag and the message forwarding status flag are both represented by binary sequences and have the same sequence length; If the binary value of the forwarding flag bit set in the forwarding flag is different from the binary value of the corresponding binary bit in the message forwarding state flag, perform an "OR" logic operation on the message forwarding state flag and the forwarding flag, and update the logic operation result as a new message forwarding state flag to the current message message to form the forwarded message message; Otherwise, stop forwarding the current message.

4. The system according to claim 2, characterized in that Each of the first message processing modules is further used for: Extracting the message signal strength carried by the current message message captured by the corresponding second Bluetooth device, and detecting the forwarding port status of the corresponding second Bluetooth device; When the message signal strength is greater than a first strength threshold and the forwarding port state is idle, it is determined that the message forwarding condition is currently met, so that message forwarding processing is performed later.

5. The system according to claim 2, characterized in that Each of the second Bluetooth devices further includes: A first message receiving module, used for capturing a current message message of any message type in the Bluetooth cellular transmission network and transmitting it to the first message processing module; The first message sending module is used to receive a forwarded message message formed after the first message processing module forwards the current message message, and broadcast the forwarded message message to the Bluetooth cellular transmission network.

6. The system according to claim 1, characterized in that The first Bluetooth device includes: A second message receiving module, used for capturing the current broadcast message that arrives first; A second message processing module, configured to determine that a first pairing condition is satisfied and generate an original pairing response message when the target device identifier carried in the current broadcast message is the own device identifier; The second message sending module is used to send the original pairing response message to the Bluetooth terminal.

7. The system according to claim 6, characterized in that The Bluetooth terminal comprises: A third message sending module is used to generate and broadcast an original broadcast message to the Bluetooth cellular transmission network to initiate Bluetooth pairing when there is a Bluetooth pairing requirement; A third message receiving module, used for capturing the first arriving current pairing response message from the Bluetooth cellular transmission network; The third message processing module is used to determine the second pairing condition according to whether the current pairing response message is the original pairing response message, and determine that pairing with the first Bluetooth device is successful when the second pairing condition is met.

8. The system according to claim 7, characterized in that The third message processing module is specifically used for: Extracting the current forwarding state flag carried in the current pairing response message and acquiring the original forwarding state flag carried in the original pairing response message; When the current forwarding state flag is different from the original forwarding state flag, it is determined that the second pairing condition is currently met, and it is determined that the pairing with the first Bluetooth device is successful; or, When the current forwarding state flag is the same as the original forwarding state flag, and the received signal strength carried by the current pairing response message is greater than or equal to the second strength threshold, it is determined that the second pairing condition is currently met, and it is determined that the pairing with the first Bluetooth device is successful.

9. The system according to claim 8, characterized in that The third message processing module is further used for: When the current forwarding state flag is the same as the original forwarding state flag, and the received signal strength carried by the current pairing response message is less than the second strength threshold, determining that pairing with the first Bluetooth device has failed; The original broadcast message is regenerated to broadcast the original broadcast message to the Bluetooth cellular transmission network through the third message sending module of the Bluetooth terminal.

10. The system according to claim 9, characterized in that After the third message processing module regenerates the original broadcast message, and the third message sending module broadcasts the original broadcast message to the Bluetooth cellular transmission network, The first Bluetooth device is also used for: Generate an original pairing response message by capturing the forwarded broadcast message that arrives first; Accordingly, the Bluetooth terminal is also used for: Whether pairing with the first Bluetooth device is successful is determined by capturing the forwarding response message that arrives first.

11. The system according to any one of claims 1 to 10, characterized in that: The original forwarding state flag carried in the original pairing response message is the inverse of the forwarding state flag carried in the current broadcast message; When the current broadcast message is the original broadcast message, the forwarding state flag carried by the current broadcast message is the same as the original forwarding state flag carried by the original broadcast message, which is an initially set binary sequence.

12. The system according to claim 1, characterized in that The Bluetooth terminal comprises: a data communication module, configured to determine, after successful pairing with the first Bluetooth device, a transmission path for communicating with the first Bluetooth device in the Bluetooth cellular transmission network according to a forwarding status flag in a stored original pairing response message, and perform data message transmission based on the transmission path; The pairing detection module is used to determine whether to re-initiate the original broadcast message for Bluetooth pairing by analyzing the received signal strength in the communication data message received within a first set time period.

13. The system according to claim 12, characterized in that The pairing detection module is specifically used for: Acquire each communication data message received within a first set time period based on the transmission path; If the transmission path does not include a second Bluetooth device, the number of first messages whose received signal strength is less than a third strength threshold in each of the communication data messages is counted, and when the number of the first messages is greater than or equal to the set number threshold, the original broadcast message for Bluetooth pairing is re-initiated; otherwise, The number of second messages having a received signal strength less than a fourth strength threshold in each of the communication data messages is counted, and when the number of the second messages is greater than or equal to the set number threshold, the original broadcast message for Bluetooth pairing is re-initiated.

14. The system according to claim 1, characterized in that The Bluetooth terminal is also used to determine that the transmission path used for communication is abnormal and re-initiate the original broadcast message for Bluetooth pairing if no data response message is received within a second set time period after successfully pairing with the first Bluetooth device and sending a data broadcast message to the first Bluetooth device.

15. A Bluetooth communication method, characterized in that: Applied to the Bluetooth communication system according to any one of claims 1 to 14, the method comprising: Through the Bluetooth terminal, when there is a Bluetooth pairing requirement, an original broadcast message is generated and broadcasted to the Bluetooth cellular transmission network; Capturing, by means of a first Bluetooth device, a current broadcast message that arrives first, and generating and sending an original pairing response message when determining based on the current broadcast message that a first pairing condition is satisfied, wherein the current broadcast message is the original broadcast message, or is a forwarded broadcast message; By means of the Bluetooth terminal, a current pairing response message is captured from the Bluetooth cellular transmission network, and when it is determined based on the current pairing response message that a second pairing condition is satisfied, it is determined that pairing with the first Bluetooth device is successful, wherein the current pairing response message is the original pairing response message, or a forwarding response message; The forwarded broadcast message and the forwarded response message are both formed through message forwarding processing by a first message processing module in at least one second Bluetooth device.

16. A computer device, characterized in that: As a Bluetooth terminal in the Bluetooth communication system according to any one of claims 1 to 14, comprising: A storage device for storing one or more programs; one or more processors; When the one or more programs are executed by the one or more processors, the one or more processors implement the execution steps corresponding to the Bluetooth terminal in the method provided in claim 15.

17. An Internet of Things device, characterized in that: As the first Bluetooth device or the second Bluetooth device in the Bluetooth communication system according to any one of claims 1 to 14, comprising: a message processing module; A storage device for storing one or more programs; One or more control chips; When the one or more programs are executed by the one or more control chips, the one or more control chips implement the functions corresponding to the first Bluetooth device or the second Bluetooth device in the method provided in claim 15.

Citation Information

Patent Citations

  • Bluetooth pairing method and bluetooth device

    CN108292935A

  • Methods, devices and systems for supporting wireless communication

    US20170272270A1