Bluetooth network communication method and apparatus, electronic device, and readable storage medium
By introducing relay node devices into the Bluetooth network, selecting the best connected device and limiting the data channel, the incomplete signal coverage and delay problems in Bluetooth network communication are solved, and more stable and efficient Bluetooth network communication is achieved.
Patent Information
- Application Number
- PCT/CN2024/124578
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-22
- Filing Date
- 2024-10-12
- Publication Date
- 2025-05-30
AI Technical Summary
The existing Bluetooth network communication methods have problems such as incomplete signal coverage and data transmission delay. The Bluetooth gateway proxy deployment requirements are high, while the Ble Mesh method is easily interfered with and has a large delay.
By adding relay node devices to routing devices and Bluetooth devices, monitoring broadcast information in the Bluetooth network, selecting the best routing device or relay node device for encrypted connections, achieving multi-hop relay, reducing network deployment requirements, and ensuring that each device has only one data channel through the limitations of network depth and signal strength.
It reduces the requirements for Bluetooth network deployment, solves the problem of incomplete signal coverage, simplifies the network structure, reduces data latency, and avoids flooded data transmission of multipaths.
Smart Images

Figure CN2024124578_30052025_PF_FP_ABST
Abstract
Description
Bluetooth network communication method, device, electronic device and readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number "202311571949.2" filed by China Mobile IoT Co., Ltd. and China Mobile Communications Group Co., Ltd. on November 22, 2023, with the invention name "Method, device, electronic device and readable storage medium for Bluetooth network communication". Technical Field
[0003] The present disclosure relates to the technical field of Bluetooth communication, and in particular to a method, device, electronic device, and readable storage medium for Bluetooth network communication. Background Art
[0004] Currently, there are two main ways to network and communicate with Bluetooth: one is to use a Bluetooth gateway as a proxy to complete data connections with network devices or communication devices. Bluetooth devices connect to the Bluetooth gateway, and all devices connected to the Bluetooth gateway are proxied by the Bluetooth gateway. Interactions generally require communication with the Bluetooth gateway through wireless network communication (Wireless Fidelity, referred to as WiFi local area network). After receiving the data, the Bluetooth gateway parses the specific application data and forwards it to the corresponding Bluetooth device; the second is the Bluetooth Low Energy Mesh Network (Bluetooth Mesh). All devices work in advertising mode and continuously monitor the broadcast channel. When a device has data to send, it will randomly wait and then broadcast the data directly to the broadcast channel. The relay device that receives the data will also continue to broadcast, thus realizing mesh data flooding.
[0005] However, as far as the current Bluetooth networking communication methods are concerned: the Bluetooth gateway proxy method has relatively high requirements for network deployment and cannot be used in places where the Bluetooth gateway signal is not covered; the Ble Mesh method uses a flooding data broadcast mode, which is more susceptible to interference. When there is a lot of device data, the delay is large, resulting in the problem of untimely data transmission.
[0006] Summary of the Invention
[0007] The present disclosure is proposed in view of the above problems. The present disclosure provides a method, apparatus, electronic device and readable storage medium for Bluetooth network communication.
[0008] According to one aspect of the present disclosure, a Bluetooth network communication method is provided, the method comprising: monitoring broadcast information in a Bluetooth network, the broadcast information being broadcast by a routing device and / or a relay node device in the Bluetooth network, wherein the routing device is configured to perform communication between the Bluetooth network and an external network, and the relay node device is configured to perform communication between the Bluetooth device and / or other relay node devices in the Bluetooth network and the routing device; and based on the broadcast information, selecting a routing device or a relay node device to establish a connection; wherein the relay node device and the Bluetooth device are respectively configured to connect to at most one uplink device.
[0009] In addition, according to the Bluetooth network communication method of one aspect of the present disclosure, a routing device or relay node device is selected to establish a connection based on the broadcast information, including: receiving the issued network authentication number and network password based on the broadcast information; in response to the received network authentication number and network password, determining the best routing device or relay node device to perform an encrypted connection based at least on the network depth and signal strength.
[0010] In addition, the Bluetooth network communication method according to one aspect of the present disclosure also includes: monitoring the connection status of the connection; in response to the connection status being a disconnected state, monitoring the broadcast information in the Bluetooth network, and based on the broadcast information, selecting a routing device or a relay node device again to establish a connection.
[0011] In addition, the Bluetooth network communication method according to one aspect of the present disclosure further includes: configuring downlink device parameters for routing devices and relay node devices, the downlink device parameters including network depth parameters, signal strength parameters, and device quantity parameters.
[0012] According to another aspect of the present disclosure, a Bluetooth network communication device is provided, including: a monitoring unit configured to monitor broadcast information in a Bluetooth network, the broadcast information being broadcast by a routing device and / or a relay node device in the Bluetooth network, wherein the routing device is configured to perform communication between the Bluetooth network and an external network, and the relay node device is configured to perform communication between the Bluetooth device and / or other relay node devices in the Bluetooth network and the routing device; and a connecting unit configured to select a routing device or a relay node device to establish a connection based on the broadcast information; wherein the relay node device and the Bluetooth device are respectively configured to connect to at most one uplink device.
[0013] In addition, according to another aspect of the present disclosure, the Bluetooth network communication device, the connection unit is further configured to receive the issued network authentication number and network password based on the broadcast information; in response to the received network authentication number and network password, determine the selection of the best routing device or relay node device for encrypted connection based at least on the network depth and signal strength.
[0014] In addition, according to another aspect of the present disclosure, in the Bluetooth network communication device, the connection unit is further configured to monitor the connection status of the connection; in response to the connection status being a disconnected state, monitor the broadcast information in the Bluetooth network, and based on the broadcast information, select the routing device or relay node device again to establish a connection.
[0015] In addition, according to another aspect of the present disclosure, the Bluetooth network communication device further includes: a configuration unit configured to configure downlink device parameters for routing devices and relay node devices, the downlink device parameters including network depth parameters, signal strength parameters and device quantity parameters.
[0016] According to another aspect of the present disclosure, an electronic device is provided, including: a memory configured to store computer-readable instructions; and a processor configured to execute the computer-readable instructions so that the electronic device performs the above Bluetooth network communication method.
[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which is configured to store computer-readable instructions. When the computer-readable instructions are executed by a processor, the processor executes the above Bluetooth network communication method.
[0018] As will be described in detail below, according to the method, apparatus, electronic device and readable storage medium for Bluetooth network communication in accordance with the embodiments of the present disclosure, by adding relay node devices to routing devices and Bluetooth devices, the requirements for Bluetooth network deployment are reduced, and the problem of incomplete Bluetooth signal coverage is solved through multi-hop relaying. At the same time, due to the limitations of the corresponding received network authentication number and network password as well as the network depth and signal strength, the best Bluetooth device or relay node device is selected for connection and can be rematched and connected for self-healing, so that each Bluetooth device has only one data channel for communication with the external network. This avoids the problem of multi-path flooding data transmission, simplifies the network structure, and reduces data delay.
[0019] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other purposes, features, and advantages of the present disclosure will become more apparent through a more detailed description of the embodiments of the present disclosure in conjunction with the accompanying drawings. The accompanying drawings are intended to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and are not intended to limit the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0021] FIG1 is a diagram illustrating an overall network architecture of a Bluetooth network communication method according to an embodiment of the present disclosure;
[0022] FIG2 is a flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;
[0023] FIG3 is a flow chart further illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;
[0024] FIG4 is a flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;
[0025] FIG5 is a networking flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;
[0026] FIG6 is a schematic diagram illustrating a network self-healing method of a Bluetooth network communication method according to an embodiment of the present disclosure;
[0027] FIG7 is a flowchart further illustrating a network self-healing method of a Bluetooth network communication method according to an embodiment of the present disclosure;
[0028] FIG8 is an overall apparatus diagram illustrating Bluetooth network communication according to an embodiment of the present disclosure;
[0029] FIG9 is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure; and
[0030] FIG. 10 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solutions and advantages of the present disclosure more apparent, the following will describe in detail exemplary embodiments of the present disclosure with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described herein.
[0032] First, the overall network architecture is outlined with reference to FIG1 .
[0033] Figure 1 is a diagram illustrating an overall network architecture of a Bluetooth network communication method according to an embodiment of the present disclosure. As shown in Figure 1 , in the embodiment of the present disclosure, the main body of the Bluetooth network communication method includes a network 10, a routing device 20, a relay node device 30, and a Bluetooth device 40.
[0034] Specifically, the routing device 20 is responsible for connecting to the network 10 via WiFi or Ethernet, thereby connecting all nodes of the overall network to the Internet and external networks. There can be multiple routing devices 20 in a network. It is easy to understand that the number and type of routing devices are not limited in the embodiments of the present disclosure.
[0035] The uplink device of the relay node device 30 may be the routing device 20 or another relay node device 30, and the downlink device of the relay node device 30 may be another relay node device 30 or a Bluetooth device 40. It should be noted that the relay node device 30 has only one uplink device.
[0036] The uplink device of the Bluetooth device 40 may be a relay node device 30 or a routing device 20 (not shown in FIG1 ). In the embodiment of the present disclosure, the Bluetooth device 40 has only one uplink device and no downlink device.
[0037] In the disclosed embodiment, a relay node device 30 is added to the routing device 20 and the Bluetooth device 40. This allows data communication between the Bluetooth device 40 and the routing device 20 to be achieved through the multi-hop relay node device 30 when the Bluetooth network signal coverage is incomplete. At the same time, the routing device 20 enables overall data transmission and communication between the Bluetooth device 40 and the network 10. It should be noted that each Bluetooth device 40 has only one data communication channel for interacting with the network 10.
[0038] FIG2 is a flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure. As shown in FIG2 , the Bluetooth network communication method according to an embodiment of the present disclosure includes the following steps:
[0039] In step S201, the broadcast information in the Bluetooth network is monitored, and the broadcast information is broadcast by the routing device and / or relay node device in the Bluetooth network, wherein the routing device is configured to perform communication between the Bluetooth network and the external network, and the relay node device is configured to perform communication between the Bluetooth devices and / or other relay node devices in the Bluetooth network and the routing device.
[0040] In the disclosed embodiment, the routing device 20, relay node device 30, and Bluetooth device 40 automatically broadcast Media Access Control (MAC) and Universally Unique Identifier (UUID) information when preparing for network configuration to achieve data pairing and connection. The relay node device 30 or Bluetooth device 40 automatically monitors the relevant broadcast information in the Bluetooth network to complete the network configuration and select the connection process.
[0041] In step S202, based on the broadcast information, a routing device or a relay node device is selected to establish a connection; wherein the relay node device and the Bluetooth device are respectively configured to connect to at most one uplink device.
[0042] In the disclosed embodiment, the relay node device 30 or the Bluetooth device 40 uses the broadcast information, the network authentication number and network password issued, and selects the best device for encrypted connection based on at least network depth and signal strength. The relay node 30 and the Bluetooth device 40 can only have one uplink device.
[0043] FIG3 is a flow chart further illustrating a Bluetooth network communication method according to an embodiment of the present disclosure. As shown in FIG3 , the Bluetooth network communication method according to an embodiment of the present disclosure includes the following steps:
[0044] In step S301, the broadcast information in the Bluetooth network is monitored. The broadcast information is broadcast by the routing device and / or relay node device in the Bluetooth network, wherein the routing device is configured to perform communication between the Bluetooth network and the external network, and the relay node device is configured to perform communication between the Bluetooth devices and / or other relay node devices in the Bluetooth network and the routing device.
[0045] In step S302, based on the broadcast information, a routing device or a relay node device is selected to establish a connection; wherein the relay node device and the Bluetooth device are respectively configured to connect to at most one uplink device.
[0046] In the above, step S301 and step S302 are respectively consistent with the above-mentioned step S201 and step S202, and are not repeated here.
[0047] In step S303, based on the broadcast information, the network authentication number and network password issued are received.
[0048] In the disclosed embodiment, the relay node device 30 or the Bluetooth device 40 will receive the unique network identification number (NID) and network password (or key, certificate, etc.) issued based on the broadcast information, and achieve the connection of the device channel.
[0049] In step S304, in response to the received network authentication number and network password, the best routing device or relay node device is selected for encrypted connection based on at least the network depth and signal strength.
[0050] In the disclosed embodiment, the relay node device 30 and the Bluetooth device 40 will select the best routing device 20 or relay node device 30 for connection based on the received network number NID and network password, in accordance with the principle of small network depth and strong signal. It is worth noting that when the relay node device 30 successfully selects the connection, it will regularly broadcast the NID, MAC, and network depth information, while the Bluetooth device 40 will directly stop scanning after the connection is successfully selected, that is, the Bluetooth device 40 has no downstream devices.
[0051] In step S305, the connection status of the connection is monitored.
[0052] In the embodiment of the present disclosure, while determining that the relay node device 30 or the Bluetooth device 40 selects the optimal device to determine the connection, the connection status of the connection is monitored in real time.
[0053] In step S306, whether the connection is disconnected,
[0054] In the embodiment of the present disclosure, whether the connection is disconnected is determined based at least on the relationship between the connection time and the preset time interval. If the connection is disconnected, a new connection is selected, i.e., steps S301 and subsequent steps are repeated. If the connection is not disconnected, steps S305 and subsequent steps are executed.
[0055] In the disclosed embodiment, the downlink device connections between the routing device 20 and the relay node device 30 are subject to parameter restrictions. These parameters primarily include maximum network depth, minimum signal strength, and the maximum number of downlink devices. These parameters are used to select the optimal topology when devices join the network while ensuring network availability. This can better reduce network latency and increase network speed. Each network environment can adjust these parameters as needed to automatically build an optimal tree network.
[0056] Figure 4 shows a network configuration flow chart of the Bluetooth network communication method according to an embodiment of the present disclosure. As shown in Figure 4, the network configuration subject of the Bluetooth network communication method according to an embodiment of the present disclosure includes a terminal device APP, a routing device 20, a relay node device 30 and a Bluetooth device 40.
[0057] Furthermore, a terminal device is a device that provides voice and / or data connections to users, or a chip set in such a device. For example, user devices may include: mobile phones, tablets, laptops, PDAs, mobile Internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in unmanned driving, wireless terminals in remote surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
[0058] In an embodiment of the present disclosure, a user can use a terminal device APP to create a new Bluetooth tree network and set a name, a unique network number NID, and a network password (or key, certificate, etc.).
[0059] In the disclosed embodiment, the routing device 20, relay node device 30, and Bluetooth device 40 automatically broadcast when there is no network connection. The broadcast information includes MAC and UUID information. The user discovers the routing device 20 or relay node device 30 or Bluetooth device 40 through the terminal device APP, adds it to the Bluetooth tree network, and sends the network number NID and network password (or key, certificate, etc.). The routing device 20 or relay node device 30 or Bluetooth device 40 receives the network number NID and password (or key, certificate, etc.) and enters the networking process.
[0060] FIG5 is a flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure. As shown in FIG5 , networking is performed after network configuration is completed, and the main components include a routing device 20 , a relay node device 30 , and a Bluetooth device 40 .
[0061] In the embodiment of the present disclosure, after the network configuration is completed, the routing device 20 (not shown in FIG. 5 ) will automatically and periodically broadcast the network number NID, MAC, and network depth so that the relay node device 30 and / or the Bluetooth device 40 can be connected.
[0062] In the embodiment of the present disclosure, steps S501 to S506 are executed by the relay node device 30 .
[0063] In step S501, the network configuration of the relay node device 30 is completed. In the embodiment of the present disclosure, the network configuration process of the relay node device 30 is shown in FIG4 .
[0064] In step S502, it is determined whether the network connection has been established. In the embodiment of the present disclosure, the relay node device 30 determines whether the network connection has been established by joining the Bluetooth tree network established by the terminal device APP in FIG4 .
[0065] In step S503, the network is scanned. In the embodiment of the present disclosure, if the relay node device 30 determines that there is no Internet access, it will monitor the broadcast information of the Bluetooth network.
[0066] In step S504, the connection is made based on the network depth and signal selection. In the embodiment of the present disclosure, the relay node device 30 selects the best device for connection based on the network number NID if there is only one device directly connected, or if there are multiple devices (the network depth is calculated starting from the routing device 20, the depth of the directly connected device is 1, and the subsequent devices are added with the number of relay node devices 30 passed through in the middle. Here, the selection is based on the comprehensive weighting of network depth and signal strength. The general principle is to try to select devices with small network depth and strong signal), and use the received password (or key, certificate, etc.) to encrypt the connection.
[0067] In step S505, it is determined whether the connection is successful.
[0068] In step S506, NID, MAC, and network depth are broadcasted periodically.
[0069] In the disclosed embodiment, when the relay node device 30 selects the best device for connection based on network depth and signal strength, it determines whether the connection is successful. If the connection is successful, it broadcasts its own NID, MAC address, and network depth. If the connection is not successful, it repeats step S504 and subsequent steps until the connection is successful and the network is established.
[0070] In the embodiment of the present disclosure, steps S507 to S5012 are executed by the Bluetooth device 40 .
[0071] In step S507, the network configuration of the Bluetooth device 40 is completed. In the embodiment of the present disclosure, the network configuration process of the Bluetooth device 40 is shown in FIG4 .
[0072] In step S508, it is determined whether the network connection has been established. In the embodiment of the present disclosure, the Bluetooth device 40 determines whether the network connection has been established by joining the Bluetooth tree network established by the terminal device APP in FIG4 .
[0073] In step S509, the network is scanned. In the embodiment of the present disclosure, if the Bluetooth device 40 determines that it is not connected to the Internet, it will monitor the broadcast information of the Bluetooth network.
[0074] In step S510, a connection is made based on the network depth and signal selection. In the disclosed embodiment, the Bluetooth device 40 selects the best device for connection based on the network ID NID if there is only one device directly connected, or selects the best device for connection based on the network depth and signal strength if there are multiple devices, and uses the received password (or key, certificate, etc.) to encrypt the connection.
[0075] In step S511, it is determined whether the connection is successful.
[0076] In step S512, the scanning is stopped.
[0077] In the disclosed embodiment, when the Bluetooth device 40 selects the best device for connection based on the network depth and signal strength, it determines whether the connection is successful. If the connection is successful, the scanning stops. If the connection is not successful, the steps S509 and subsequent steps are repeated until the connection is successfully completed.
[0078] FIG6 is a schematic diagram illustrating network self-healing of a Bluetooth network communication method according to an embodiment of the present disclosure. As shown in FIG6 , the schematic diagram of network self-healing is as follows:
[0079] In the embodiment of the present disclosure, when a fault occurs in the routing device 20 and the relay node device 30, the downstream devices of the routing device 20 and the relay node device 30 will compare the Bluetooth connection time with the preset time threshold. If the Bluetooth connection time exceeds the preset time threshold, the downstream device relay node 30 or Bluetooth device 40 of the routing device 20 and the relay node device 30 will re-enter the networking process. That is, the network self-healing process diagram is converted from 600 in Figure 6 to 601 in Figure 6. It is easy to understand that the relay device 30 in 600 in Figure 6 fails, causing the downstream devices to re-network as 601 in Figure 6. Among them, the failure of the routing device 20 is not shown in Figure 6 and is not the only limitation here.
[0080] In the embodiment of the present disclosure, the preset time threshold may be set in advance or adjusted according to one's own preferences, and is not limited here.
[0081] FIG7 is a flowchart further illustrating the network self-healing process of the Bluetooth network communication method according to an embodiment of the present disclosure. As shown in FIG7 , the flowchart further illustrating the network self-healing process of the Bluetooth network communication method according to an embodiment of the present disclosure includes the following steps:
[0082] In the embodiment of the present disclosure, the execution entity of steps S701 to S708 is the relay node device 30 .
[0083] In step S701, the uplink device of the relay node device 30 times out. In the embodiment of the present disclosure, when the relay node device 30 finds that the connection time of the uplink device exceeds a preset time threshold, it triggers the execution of the following steps.
[0084] In step S702, the network is scanned. In the embodiment of the present disclosure, when the relay node device 30 finds that its uplink device has timed out, it monitors the broadcast information in the Bluetooth network, that is, scans the relay node device 30 or the routing device 20 in the Bluetooth network.
[0085] In step S703, a connection is made based on the network depth and signal strength. In the disclosed embodiment, the relay node device 30 uses the network ID NID to directly connect to a single device if there is only one, or to select the best device based on the network depth and signal strength if there are multiple devices. The received password (or key, certificate, etc.) is used to encrypt the connection.
[0086] In step S704, it is determined whether the connection is successful. In the embodiment of the present disclosure, the relay node device 30 determines whether the connection to its uplink device is successful. If the connection is not successful, the steps S702 and subsequent steps are repeated until the connection is successful.
[0087] In step S705, the Address Resolution Protocol (ARP) and neighbor notification are performed. In the disclosed embodiment, if the relay node device 30 determines that the uplink device of its own device is successfully connected, it will perform ARP and neighbor notification to update the cache of the uplink device.
[0088] In step S706, it is determined whether there is a downlink device. In the embodiment of the present disclosure, after determining to update the data of the connected uplink device, the relay node device 30 determines whether there is a downlink device.
[0089] In step S707, the relay node device 30 issues an ARP or neighbor advertisement on behalf of the downstream device. In the disclosed embodiment, if the relay node device 30 determines that there is a downstream device, it issues an ARP or neighbor advertisement on behalf of the downstream device, thereby updating the downstream device data of the relay node device 30. The relay node device 30 then executes step S708, waiting for another relay node device 30 or Bluetooth device 40 to connect.
[0090] In step S708, NID, MAC, and network depth are broadcasted periodically. In the embodiment of the present disclosure, if the relay node device 30 determines that there is no downlink device, NID, MAC, and network depth are broadcasted directly.
[0091] In the embodiment of the present disclosure, the execution entity of steps S709 to S714 is the Bluetooth device 40 .
[0092] In step S709, the uplink device of the Bluetooth device 40 times out. In the embodiment of the present disclosure, when the Bluetooth device 40 finds that the connection time of the uplink device exceeds a preset time threshold, the following steps are triggered.
[0093] In step S710, the network is scanned. In the embodiment of the present disclosure, when the Bluetooth device 40 finds that its uplink device has timed out, it monitors the broadcast information in the Bluetooth network, that is, scans the relay node device 30 or the routing device 20 in the Bluetooth network.
[0094] In step S711, a connection is made based on the network depth and signal strength. In the disclosed embodiment, the Bluetooth device 40 uses the network ID NID to directly connect to a single device if there is only one, or selects the best device based on the network depth and signal strength if there are multiple devices. An encrypted connection is made using the received password (or key, certificate, etc.).
[0095] In step S712, it is determined whether the connection is successful. In the embodiment of the present disclosure, the Bluetooth device 40 will determine whether the connection to its uplink device is successful. If the connection is not successful, the steps S710 and thereafter will be repeated until the connection is successful.
[0096] In step S713, ARP and neighbor notification are performed. In the embodiment of the present disclosure, if the Bluetooth device 40 determines that the uplink device of the device is successfully connected, it will perform ARP and neighbor notification to update the cache of the uplink device.
[0097] In step S714, scanning is stopped. In the embodiment of the present disclosure, the Bluetooth device 40 stops scanning after determining to update the data of the connected device.
[0098] In the disclosed embodiment, network self-healing of the entire Bluetooth network can be achieved by determining the time of the Bluetooth connection and a preset time threshold, thereby simplifying the network structure and reducing data delay.
[0099] FIG8 is a diagram illustrating an overall apparatus of Bluetooth network communication according to an embodiment of the present disclosure. As shown in FIG8 , a Bluetooth network communication apparatus 800 includes a monitoring unit 801 , a connecting unit 802 , and a configuring unit 803 .
[0100] Specifically, the monitoring unit 801 is configured to monitor broadcast information in the Bluetooth network, which is broadcast by a routing device and / or a relay node device in the Bluetooth network, wherein the routing device is configured to perform communication between the Bluetooth network and an external network, and the relay node device is configured to perform communication between the Bluetooth device and / or other relay node devices in the Bluetooth network and the routing device.
[0101] The connection unit 802 is configured to select a routing device or a relay node device to establish a connection based on the broadcast information; wherein, the relay node device and the Bluetooth device are respectively configured to connect to at most one uplink device. The connection unit 802 is further configured to receive the network authentication number and network password issued based on the broadcast information; in response to the received network authentication number and network password, determine the best routing device or relay node device to establish an encrypted connection based at least on the network depth and signal strength. The connection unit 802 is further configured to monitor the connection status; in response to the connection status being disconnected, monitor the broadcast information in the Bluetooth network, and select the routing device or relay node device again to establish a connection based on the broadcast information.
[0102] The configuration unit 803 is configured to configure downlink device parameters for the routing device and the relay node device, where the downlink device parameters include a network depth parameter, a signal strength parameter, and a device quantity parameter.
[0103] Among them, the execution actions of the monitoring unit 801, the connection unit 802 and the configuration unit 803 are consistent with the above and are not repeated here.
[0104] Figure 9 is a hardware block diagram illustrating an electronic device 900 according to an embodiment of the present disclosure. The electronic device according to an embodiment of the present disclosure includes at least a processor and a memory configured to store computer-readable instructions. When the computer-readable instructions are loaded and executed by the processor, the processor executes the network access method described above.
[0105] The electronic device 900 shown in Figure 9 specifically includes: a central processing unit (CPU) 901, a graphics processing unit (GPU) 902 and a main memory 903. These units are interconnected via a bus 904. The central processing unit (CPU) 901 and / or the graphics processing unit (GPU) 902 can be used as the above-mentioned processor, and the main memory 903 can be used as the above-mentioned memory for storing computer-readable instructions. In addition, the electronic device 900 may further include a communication unit 905, a storage unit 906, an output unit 907, an input unit 908 and an external device 909, which are also connected to the bus 904.
[0106] Figure 10 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. As shown in Figure 10, a computer-readable storage medium 1000 according to an embodiment of the present disclosure has computer-readable instructions 1001 stored thereon. When the computer-readable instructions 1001 are executed by a processor, the network access method according to the embodiment of the present disclosure described with reference to the above figures is executed. The computer-readable storage medium includes, but is not limited to, volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory. The non-volatile memory may, for example, include read-only memory (ROM), a hard disk, a flash memory, an optical disk, a magnetic disk, etc.
[0107] The above describes the method, apparatus, electronic device and readable storage medium for implementing Bluetooth network communication according to the present disclosure with reference to the accompanying drawings. By adding relay node devices to routing devices and Bluetooth devices, the requirements for Bluetooth network deployment are reduced, and the problem of incomplete Bluetooth signal coverage is solved through multi-hop relaying. At the same time, due to the limitations of the corresponding received network authentication number and network password as well as the network depth and signal strength, the best Bluetooth device or relay node device is selected for connection and can be rematched and self-healed, so that each Bluetooth device has only one data channel for communication with the external network. This avoids the problem of multi-path flooding data transmission, simplifies the network structure, and reduces data delay.
[0108] Those skilled in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians 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 disclosure.
[0109] The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this disclosure are merely illustrative and not restrictive, and should not be construed as necessarily possessed by each embodiment of the present disclosure. Furthermore, the specific details disclosed above are provided for illustrative purposes and to facilitate understanding, rather than as limitations. These details do not limit the present disclosure to necessarily being implemented using these specific details.
[0110] The block diagrams of the devices, devices, equipment, and systems involved in this disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0111] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.
[0112] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0113] Various changes, substitutions, and modifications may be made to the technology described herein without departing from the teachings defined by the appended claims. Moreover, the scope of the claims of this disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of things, means, methods, and actions described above. Currently existing or later developed processes, machines, manufactures, compositions of things, means, methods, or actions that perform substantially the same function or achieve substantially the same results as the corresponding aspects described herein may be utilized. Accordingly, the appended claims include within their scope such processes, machines, manufactures, compositions of things, means, methods, or actions.
[0114] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0115] The above description has been provided for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A Bluetooth network communication method, characterized in that: The method comprises: Monitoring broadcast information in a Bluetooth network, the broadcast information being broadcast by a routing device and / or a relay node device in the Bluetooth network, wherein the routing device is configured to perform communication between the Bluetooth network and an external network, and the relay node device is configured to perform communication between the Bluetooth device and / or other relay node devices in the Bluetooth network and the routing device; and Based on the broadcast information, selecting the routing device or the relay node device to establish a connection; The relay node device and the Bluetooth device are respectively configured to be connected to at most one uplink device.
2. The Bluetooth network communication method according to claim 1, wherein: The selecting the routing device or the relay node device to establish a connection based on the broadcast information includes: Based on the broadcast information, receiving the issued network authentication number and network password; In response to the received network authentication number and network password, the best routing device or relay node device is selected for encrypted connection based at least on network depth and signal strength.
3. The Bluetooth network communication method according to claim 2, wherein: Also includes: monitoring a connection status of the connection; In response to the connection state being a disconnected state, the broadcast information in the Bluetooth network is monitored, and based on the broadcast information, the routing device or the relay node device is selected again to establish a connection.
4. The Bluetooth network communication method according to claim 1, wherein: Also includes: Downlink device parameters for the routing device and the relay node device are configured, and the downlink device parameters include a network depth parameter, a signal strength parameter, and a device quantity parameter.
5. A Bluetooth network communication device, characterized in that: include: a monitoring unit configured to monitor broadcast information in a Bluetooth network, the broadcast information being broadcast by a routing device and / or a relay node device in the Bluetooth network, wherein the routing device is configured to perform communication between the Bluetooth network and an external network, and the relay node device is configured to perform communication between a Bluetooth device and / or other relay node devices in the Bluetooth network and the routing device; and A connecting unit, configured to select the routing device or the relay node device to establish a connection based on the broadcast information; The relay node device and the Bluetooth device are respectively configured to be connected to at most one uplink device.
6. The Bluetooth network communication device according to claim 5, characterized in that: The connecting unit The system is further configured to receive a network authentication number and a network password issued based on the broadcast information; In response to the received network authentication number and network password, the best routing device or relay node device is selected for encrypted connection based at least on network depth and signal strength.
7. The Bluetooth network communication device according to claim 6, wherein: The connecting unit is further configured to monitor a connection status of the connection; In response to the connection state being a disconnected state, the broadcast information in the Bluetooth network is monitored, and based on the broadcast information, the routing device or the relay node device is selected again to establish a connection.
8. The Bluetooth network communication device according to claim 5, characterized in that: Also includes: A configuration unit is configured to configure downlink device parameters for the routing device and the relay node device, wherein the downlink device parameters include a network depth parameter, a signal strength parameter, and a device quantity parameter.
9. An electronic device, characterized in that: include: a memory configured to store computer-readable instructions; as well as The processor is configured to run the computer-readable instructions so that the electronic device performs the Bluetooth network communication method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium configured to store computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the processor is caused to execute the Bluetooth network communication method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Network access method and device of network node, equipment and storage medium
CN110913410A
Communication method based on Bluetooth network, node thereof and communication system
CN113259916A
Communication method, gateway equipment and computer readable storage medium
CN113660646A
Bluetooth network establishment system and method
CN117412274A
Bluetooth network establishing system and method
TWI806775B
Cited By
Smart device having device identification function based on broadcast signal and method thereof
CN121367897A