Bluetooth network communication method and device, electronic equipment and readable storage medium

By adding relay node devices to the Bluetooth network and selecting the best connection routing device or relay node device based on broadcast information, the problems of incomplete signal coverage and data delay are solved, and the self-healing of the Bluetooth network and the stability of the data channel are achieved. .

CN118804196APending Publication Date: 2024-10-18CHINA MOBILE M2M +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311571949.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing Bluetooth networking communication method has high deployment requirements when the signal coverage is incomplete, and the flooding data transmission of the Ble Mesh method is easily interfered, resulting in large data transmission delays and untimely data transmission.

Method used

By adding relay node devices to routing devices and Bluetooth devices, monitoring broadcast information, and selecting the best routing device or relay node device for encrypted connections based on network depth and signal strength, ensuring that each Bluetooth device has only one data channel, and Rematch the connection when the connection is disconnected to achieve network self-healing.

Benefits of technology

It reduces the requirements for Bluetooth network deployment, avoids multi-path flooding data transmission, simplifies the network structure, and improves the timeliness and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118804196A_ABST
    Figure CN118804196A_ABST
Patent Text Reader

Abstract

The invention provides a Bluetooth network communication method and device, electronic equipment and a readable storage medium, and the method comprises the steps: monitoring broadcast information in a Bluetooth network, the broadcast information is broadcasted by routing equipment and / or relay node equipment in the Bluetooth network, the routing equipment is used for executing the communication between the Bluetooth network and an external network, and the relay node equipment is used for executing the communication between the Bluetooth network and the external network; the relay node equipment is used for executing communication between the Bluetooth equipment in the Bluetooth network and / or other relay node equipment and the routing equipment; and selecting 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 configured to be connected with at most one uplink device. The relay node equipment is added to the routing equipment and the Bluetooth equipment, so that the requirement of Bluetooth network deployment is reduced. And meanwhile, each Bluetooth device is only provided with one data channel for realizing communication with an external network. Therefore, the problem of multipath flooding type data transmission is avoided, the network structure is simplified, and the data delay is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] At present, there are two main ways of Bluetooth networking communication: one is to use a Bluetooth gateway as a proxy to complete the data connection with network devices or communication devices. Bluetooth devices are connected to the Bluetooth gateway, and all devices connected to the Bluetooth gateway are proxied by the Bluetooth gateway. Interaction generally requires communication with the Bluetooth gateway through wireless network communication (Wireless Fidelity, referred to as WiFi LAN). 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 Low Energy Mesh Network, referred to as Ble Mesh) networking. All devices work in advertising mode and continuously monitor the broadcast channel. When the device has data to send, it will broadcast the data directly to the broadcast channel after random waiting. The relay device that receives the data will also continue to broadcast, thereby realizing mesh data flooding.

[0003] 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 cannot cover; 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. Summary of the invention

[0004] The present disclosure is proposed in view of the above problems. The present disclosure provides a method, device, electronic device and readable storage medium for Bluetooth network communication.

[0005] 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 used to perform communication between the Bluetooth network and an external network, and the relay node device is used 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.

[0006] In addition, according to a Bluetooth network communication method according to one aspect of the present disclosure, a routing device or a relay node device is selected to establish a connection based on broadcast information, including: 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, determining to select the best routing device or relay node device for an encrypted connection based at least on the network depth and signal strength.

[0007] In addition, according to one aspect of the present disclosure, the Bluetooth network communication method 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.

[0008] In addition, the Bluetooth network communication method according to one aspect of the present disclosure also 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.

[0009] According to another aspect of the present disclosure, a Bluetooth network communication device is provided, comprising: 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 used to perform communication between the Bluetooth network and an external network, and the relay node device is used to perform communication between the Bluetooth device and / or other relay node devices in the Bluetooth network and the routing device; and a connection 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.

[0010] In addition, according to another aspect of the present disclosure, in 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 to select the best routing device or relay node device for encrypted connection based at least on the network depth and signal strength.

[0011] 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.

[0012] In addition, according to another aspect of the present disclosure, the Bluetooth network communication device also includes: a configuration unit, which is configured to configure downlink device parameters for routing devices and relay node devices, and the downlink device parameters include network depth parameters, signal strength parameters, and device quantity parameters.

[0013] According to another aspect of the present disclosure, an electronic device is provided, including: a memory for storing computer-readable instructions; and a processor for executing the computer-readable instructions so that the electronic device executes the above Bluetooth network communication method.

[0014] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided for storing computer-readable instructions. When the computer-readable instructions are executed by a processor, the processor executes the above Bluetooth network communication method.

[0015] As will be described in detail below, according to the method, apparatus, electronic device and readable storage medium of Bluetooth network communication of 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 relay. 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 re-matched and self-healed, so that each Bluetooth device has only one data channel to communicate with the external network. This avoids the problem of multi-path flooding data transmission, simplifies the network structure, and reduces data delay.

[0016] 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

[0017] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used 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 do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0018] Figure 1 is an overall network architecture diagram illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;

[0019] Figure 2 is a flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;

[0020] Figure 3 is a flowchart further illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;

[0021] Figure 4 is a network configuration flow chart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;

[0022] Figure 5is a networking flow chart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;

[0023] Figure 6 is a schematic diagram illustrating network self-healing of a Bluetooth network communication method according to an embodiment of the present disclosure;

[0024] Figure 7 is a network self-healing flow chart further illustrating a Bluetooth network communication method according to an embodiment of the present disclosure;

[0025] Figure 8 is an overall device diagram illustrating Bluetooth network communication according to an embodiment of the present disclosure;

[0026] Fig. 9 is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure; and

[0027] Fig.10 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only 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 here.

[0029] First, refer to Figure 1 Overview of the overall network architecture.

[0030] Figure 1 FIG. 1 is a diagram showing an overall network architecture of a Bluetooth network communication method according to an embodiment of the present disclosure. Figure 1 As shown, 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.

[0031] Specifically, the routing device 20 is responsible for connecting the network 10 via WiFi or Ethernet, so that all nodes of the overall network are connected to the Internet and external networks. There may 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.

[0032] The uplink device of the relay node device 30 may be the routing device 20 or other relay node devices 30, and the downlink device of the relay node device 30 may be other relay node devices 30 or the Bluetooth device 40. It should be noted that the uplink device of the relay node device 30 has only one device.

[0033] The uplink device of the Bluetooth device 40 may be a relay node device 30 or a routing device 20 ( Figure 1 In the embodiment of the present disclosure, the Bluetooth device 40 has only one uplink device and no downlink device.

[0034] In the disclosed embodiment, a relay node device 30 is added to the routing device 20 and the Bluetooth device 40, so that when the Bluetooth network signal coverage is incomplete, the data communication between the Bluetooth device 40 and the routing device 20 can be realized through the multi-hop relay node device 30, and the overall data transmission and communication between the Bluetooth device 40 and the network 10 can be realized through the routing device 20. It should be noted that for each Bluetooth device 40, there is only one data communication channel for interacting with the network 10.

[0035] Figure 2 1 is a flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure. Figure 2 As shown, the Bluetooth network communication method according to the embodiment of the present disclosure includes the following steps:

[0036] In step S201, the broadcast information in the Bluetooth network is monitored. The broadcast information is broadcast by a routing device and / or a relay node device in the Bluetooth network, wherein the routing device is used to perform communication between the Bluetooth network and an external network, and the relay node device is used to perform communication between the Bluetooth devices and / or other relay node devices in the Bluetooth network and the routing device.

[0037] In the disclosed embodiment, the routing device 20, the relay node device 30 and the Bluetooth device 40 will automatically broadcast the Media Access Control address (MAC) and the Universally Unique Identifier (UUID) information to achieve data pairing connection when preparing for network configuration. The relay node device 30 or the Bluetooth device 40 will automatically monitor the relevant broadcast information in the Bluetooth network to complete the network configuration and select the connection networking process.

[0038] 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.

[0039] In the disclosed embodiment, the relay node device 30 or the Bluetooth device 40 will select the best device for encrypted connection based on at least the network depth and signal strength according to the broadcast information using the issued network authentication number and network password. And the relay device 30 and the Bluetooth device 40 have only one uplink device.

[0040] Figure 3is a flowchart further illustrating a Bluetooth network communication method according to an embodiment of the present disclosure.

[0041] like Figure 3 As shown, the Bluetooth network communication method according to the embodiment of the present disclosure further includes the following steps:

[0042] In step S301, the broadcast information in the Bluetooth network is monitored. The broadcast information is broadcast by a routing device and / or a relay node device in the Bluetooth network, wherein the routing device is used to perform communication between the Bluetooth network and an external network, and the relay node device is used to perform communication between the Bluetooth devices and / or other relay node devices in the Bluetooth network and the routing device.

[0043] 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.

[0044] In the above, step S301 and step S302 are respectively consistent with the above-mentioned step S201 and step S202, and will not be repeated here.

[0045] In step S303, based on the broadcast information, the network authentication number and network password issued are received.

[0046] 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 to achieve the connection of the device channel.

[0047] 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 at least on the network depth and signal strength.

[0048] 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 according to 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 selects a successful connection, it will regularly broadcast information about NID, MAC, and network depth, while the Bluetooth device 40 will directly stop scanning after selecting a successful connection, that is, the Bluetooth device 40 has no downstream device.

[0049] In step S305, the connection status of the connection is monitored.

[0050] 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.

[0051] In step S306, whether the connection is disconnected,

[0052] In the embodiment of the present disclosure, whether the connection is disconnected is determined at least based on the relationship between the connection time and the preset time interval. If the connection is disconnected, reselect the connection, that is, repeat step S301 and subsequent steps. If the connection is not disconnected, execute step S305 and subsequent steps.

[0053] In the disclosed embodiment, there are parameter restrictions on the connection of the downlink devices of the routing device 20 and the relay node device 30. The parameters mainly include the maximum network depth, the minimum signal strength, the maximum number of downlink devices, etc., which are used to select the best topology when the device is connected to the network, while ensuring the availability of the network. This can better reduce network latency and improve network speed. Each network environment can adjust the parameters as needed to automatically build the best tree network.

[0054] Figure 4 The figure shows a network configuration flow chart of the Bluetooth network communication method according to an embodiment of the present disclosure. Figure 4 As shown, the network configuration subject of the Bluetooth network communication method according to the embodiment of the present disclosure includes a terminal device APP, a routing device 20, a relay node device 30 and a Bluetooth device 40.

[0055] Furthermore, the terminal device is a device that provides voice and / or data connection to the user, or a chip set in the device. For example, user device examples may include: mobile phones, tablet computers, laptops, PDAs, mobile Internet devices (Mobile Internet Devices, referred to as MID), wearable devices, virtual reality (Virtual Reality, VR) devices, augmented reality (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.

[0056] In the disclosed embodiment, the user can use the terminal device APP to create a new Bluetooth tree network and set the name, unique network number NID and network password (or key, certificate, etc.).

[0057] In the disclosed embodiment, the routing device 20, the relay node device 30, and the Bluetooth device 40 automatically broadcast when there is no network configuration, and the broadcast information includes MAC and UUID information. The user discovers the routing device 20 or the relay node device 30 or the Bluetooth device 40 through the terminal device APP, adds it to the Bluetooth tree network, and sends the network number NID and the network password (or key, certificate, etc.). The routing device 20 or the relay node device 30 or the Bluetooth device 40 receives the network number NID and the password (or key, certificate, etc.) and enters the networking process.

[0058] Figure 5 FIG. 1 is a flowchart illustrating a Bluetooth network communication method according to an embodiment of the present disclosure. Figure 5 As shown, networking is performed after network configuration is completed, and the main body includes a routing device 20, a relay node device 30 and a Bluetooth device 40.

[0059] In the embodiment of the present disclosure, the routing device 20 ( Figure 5 (not shown) After the network configuration is completed, the network number NID, MAC, and network depth will be automatically and regularly broadcast to enable the relay node device 30 and / or the Bluetooth device 40 to connect.

[0060] In the embodiment of the present disclosure, the execution entity of steps S501 to S506 is the relay node device 30 .

[0061] In step S501, the network configuration of the relay node device 30 is completed. Figure 4 Shown in.

[0062] 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 above Figure 4 The Bluetooth tree network is formed by the terminal device APP.

[0063] 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.

[0064] In step S504, the connection is made according to the network depth and signal selection. In the disclosed embodiment, the relay node device 30 selects the best device for connection according to the network number NID if there is only one device directly connected, or if there are multiple devices (the network depth is calculated 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 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.) for encrypted connection.

[0065] In step S505, it is determined whether the connection is successful.

[0066] In step S506, NID, MAC, and network depth are broadcasted periodically.

[0067] In the disclosed embodiment, when the relay node device 30 selects the best device for connection according to the network depth and signal strength, it will determine whether the connection is successful. If the connection is successful, it will broadcast its own NID, MAC, and network depth. If the connection is not successful, it will repeat step S504 and thereafter until the connection is successful and the network is completed.

[0068] In the embodiment of the present disclosure, the execution subject of steps S507 to S5012 is the Bluetooth device 40.

[0069] In step S507, the network configuration of the Bluetooth device 40 is completed. Figure 4 Shown in.

[0070] In step S508, it is determined whether the Internet connection has been established. In the embodiment of the present disclosure, the Bluetooth device 40 determines whether the Internet connection has been established by joining the above Figure 4 The Bluetooth tree network is formed by the terminal device APP.

[0071] In step S509, the network is scanned. In the embodiment of the present disclosure, if the Bluetooth device 40 determines that there is no Internet access, it will monitor the broadcast information of the Bluetooth network.

[0072] In step S510, the connection is made according to the network depth and signal selection. In the disclosed embodiment, the Bluetooth device 40 selects the best device for connection according to the network number NID if there is only one device directly connected, or if there are multiple devices, and uses the received password (or key, certificate, etc.) for encrypted connection.

[0073] In step S511, it is determined whether the connection is successful.

[0074] In step S512, the scanning is stopped.

[0075] In the disclosed embodiment, when the Bluetooth device 40 selects the best device for connection according to the network depth and signal strength, it will determine whether the connection is successful. If the connection is successful, the scanning will be stopped. If the connection is not successful, step S509 and thereafter will be repeated until the connection is successfully completed.

[0076] Figure 6 Schematic diagram of network self-healing of a Bluetooth network communication method according to an embodiment of the present disclosure. Figure 6 As shown, the schematic diagram of network self-healing is as follows:

[0077] In the embodiment of the present disclosure, when the routing device 20 and the relay node device 30 fail, 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 devices of the routing device 20 and the relay node device 30, the relay node 30 or the Bluetooth device 40, will re-enter the networking process. That is, the schematic diagram of the network self-healing process is from Figure 6 The 600 is converted into Figure 6 601 in. It is easy to understand that Figure 6 The relay device 30 of 600 fails, so the downstream device re-networks into Figure 6 601 in the example. Among them, routing device 20 fails. Figure 6 Not shown in the figure, and this is not the only limitation.

[0078] 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.

[0079] Figure 7 is a network self-healing flow chart further illustrating the Bluetooth network communication method according to an embodiment of the present disclosure. Figure 7 As shown, a network self-healing flow chart of the Bluetooth network communication method according to an embodiment of the present disclosure further illustrates the following steps:

[0080] In the embodiment of the present disclosure, the execution subject of steps S701 to S708 is the relay node device 30 .

[0081] 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, the following steps are triggered.

[0082] 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.

[0083] In step S703, the connection is made according to the network depth and signal selection. In the disclosed embodiment, the relay node device 30 selects the best device for connection according to the network number NID if there is only one device directly connected, or if there are multiple devices, according to the network depth and signal strength. The received password (or key, certificate, etc.) is used for encryption connection.

[0084] 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 thereafter are directly repeated until the connection is successful.

[0085] 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.

[0086] 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 uplink device connected, the relay node device 30 determines whether there is a downlink device.

[0087] In step S707, the ARP and neighbor notifications are issued on behalf of the downstream device. In the disclosed embodiment, if the relay node device 30 determines that there is a downstream device, it will issue ARP and neighbor notifications on behalf of the downstream device, so that the data of the downstream device of the relay node device 30 can be updated, and then step S708 is executed to wait for another relay node device 30 or Bluetooth device 40 to connect.

[0088] 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.

[0089] In the embodiment of the present disclosure, the execution subject of steps S709 to S714 is the Bluetooth device 40 .

[0090] 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.

[0091] 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 will monitor the broadcast information in the Bluetooth network, that is, scan the relay node device 30 or the routing device 20 in the Bluetooth network.

[0092] In step S711, the connection is made according to the network depth and signal selection. In the disclosed embodiment, the Bluetooth device 40 selects the best device for connection according to the network number NID if there is only one device directly connected, or if there are multiple devices, according to the network depth and signal strength. The received password (or key, certificate, etc.) is used for encryption connection.

[0093] In step S712, it is determined whether the connection is successful. In the embodiment of the present disclosure, the Bluetooth device 40 determines whether the connection to its uplink device is successful. If the connection is not successful, the steps S710 and thereafter are directly repeated until the connection is successful.

[0094] In step S713, ARP and neighbor notifications 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 notifications to update the cache of the uplink device.

[0095] 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 uplink device.

[0096] In the disclosed embodiment, network self-healing of the entire Bluetooth network can be achieved by judging the time of the Bluetooth connection and the preset time threshold, thereby simplifying the network structure and reducing data delay.

[0097] Figure 8 1 is a diagram illustrating an overall device of Bluetooth network communication according to an embodiment of the present disclosure. Figure 8 As shown, the Bluetooth network communication device 800 includes a monitoring unit 801 , a connecting unit 802 and a configuring unit 803 .

[0098] 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 used to perform communication between the Bluetooth network and an external network, and the relay node device is used to perform communication between the Bluetooth device and / or other relay node devices in the Bluetooth network and the routing device.

[0099] 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 to select the best routing device or relay node device for encrypted connection based at least on the network depth and signal strength. The connection unit 802 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.

[0100] 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.

[0101] 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 will not be repeated here.

[0102] Fig. 9 1 is a hardware block diagram of 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 for storing computer-readable instructions. When the computer-readable instructions are loaded and executed by the processor, the processor executes the network access method as described above.

[0103] Fig. 9 The electronic device 900 shown specifically includes: a central processing unit (CPU) 901, a graphics processing unit (GPU) 902 and a main memory 903. These units are connected to each other 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 also 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.

[0104] Fig.10 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. Fig.10As shown, 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, for example, volatile memory and / or non-volatile memory. The volatile memory may, for example, include a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may, for example, include a read-only memory (ROM), a hard disk, a flash memory, an optical disk, a magnetic disk, etc.

[0105] 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 relay. 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 re-matched and self-healed, so that each Bluetooth device has only one data channel to communicate with the external network. This avoids the problem of multi-path flooding data transmission, simplifies the network structure, and reduces data delays.

[0106] Those of ordinary skill 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0107] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0108] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "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.

[0109] 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.

[0110] 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.

[0111] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.

[0112] 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 the widest scope consistent with the principles and novel features disclosed herein.

[0113] The above description has been given 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 multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A Bluetooth network communication method, It is 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 used to perform communication between the Bluetooth network and an external network, and the relay node device is used to perform communication between a 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is 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 used to perform communication between the Bluetooth network and an external network, and the relay node device is used 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 as claimed in claim 5, It is 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, It is characterized in that 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, It is 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, It is characterized in that include: a memory for storing computer readable instructions; as well as A processor is used to run the computer-readable instructions so that the electronic device executes the Bluetooth network communication method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium for storing computer-readable instructions, It is 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

Cited By

  • Remote meter reading communication method and communication module

    CN119110285A