Broadcast communication method, device and system

By setting the address of the terminal header protocol in BLE Mesh technology and automatically selecting routing devices using signal strength, it solves the problem of excessive broadcast information and relay pressure caused by the large number of devices, improves network stability and reliability, and simplifies the network manage.

CN118632196APending Publication Date: 2024-09-10ROUTON ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410717487.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing BLE Mesh technology can easily lead to too much broadcast information when there are a large number of devices, which increases relay pressure and may lead to message loss. In addition, relay roles need to be manually configured, which increases the complexity of management and deployment.

Method used

By setting the source address of the terminal packet header protocol to the physical address of the terminal device and the destination address to the physical address of the routing device, the routing device is automatically determined using the weighted average of the received signal strength. The relay device can intelligently choose to access the network and forward data to avoid Duplicate data and optimize the relay device network structure.

Benefits of technology

It improves the stability and reliability of network communication, reduces relay pressure and the risk of message loss, and simplifies the management and deployment of large-scale self-organizing networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632196A
    Figure CN118632196A
Patent Text Reader

Abstract

The invention provides a broadcast communication method, device and system, and the method comprises the steps: setting a source address in a terminal packet header protocol as a physical address of terminal equipment, and setting a destination address in the terminal packet header protocol as a physical address of routing equipment; broadcasting terminal data and a terminal packet header protocol, so that after at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, repeated terminal data is filtered based on a packet header identifier of the terminal packet header protocol, and then residual terminal data is processed; and the terminal equipment determines the routing equipment from the candidate routing equipment based on the weighted average value of the received signal strength acquired from the candidate routing equipment. According to the invention, the terminal equipment can be automatically adjusted to be connected to the corresponding routing equipment, so that the problems that too much broadcast information is generated in the network, the relay pressure is increased and the information is lost due to the fact that broadcasting is carried out at the same time when the number of the routing equipment is large are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] BLE Mesh is a self-organizing network based on Bluetooth Low Energy (BLE) technology. It allows a large number of BLE devices to form a self-organizing network within a coverage area, thereby providing functions such as broadcast, control, and data transmission. BLE Mesh communicates by using broadcast channels, and can control the number of message relays by setting Time to Live (TTL) to avoid broadcast storms.

[0003] The current BLE Mesh technology solution mainly relies on BLE broadcast and TTL control to achieve communication and message relay. When a device needs to play the role of a relay, it needs to be configured to ensure that the message can be delivered throughout the network. However, in actual applications, when there are a large number of BLE devices, the probability of simultaneous broadcasting increases, resulting in too much broadcast information in the network, increasing the pressure on the relay and even causing message loss. In addition, the relay role needs to be manually configured, which may increase the complexity of management and deployment for large-scale self-organizing networks. Summary of the invention

[0004] The present invention provides a broadcast communication method, device and system to solve the defects in the prior art.

[0005] The present invention provides a broadcast communication method, applied to a terminal device, comprising:

[0006] Setting the source address in the terminal packet header protocol to the physical address of the terminal device, and setting the destination address in the terminal packet header protocol to the physical address of the routing device;

[0007] Broadcasting terminal data and the terminal packet header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, filters out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and then processes the remaining terminal data;

[0008] The terminal device determines the routing device from each candidate routing device based on a weighted average value of received signal strengths obtained from each candidate routing device.

[0009] According to a broadcast communication method provided by the present invention, the at least one relay device accesses the network based on the following steps:

[0010] Determine a target predecessor device for the at least one relay device to access the network, and send a network access request from the at least one relay device to the target predecessor device, so that the target predecessor device confirms whether to allow the at least one relay device to access the network;

[0011] When the at least one relay device receives the instruction of the target predecessor device allowing network access, the at least one relay device accesses the network and the state of the at least one relay device is the network access state;

[0012] When the at least one relay device receives the instruction from the target predecessor device to refuse network access, the at least one relay device selects a next predecessor device as the target predecessor device.

[0013] According to a broadcast communication method provided by the present invention, when the number of relays of the target predecessor device reaches the maximum number of relays, the state of the target predecessor device is a state where the relay cannot access the network, and the target predecessor device will send the network access rejection instruction to the at least one relay device.

[0014] According to a broadcast communication method provided by the present invention, when there are multiple predecessor devices in the at least one relay device, the at least one relay device sends a message to each predecessor device to inform each predecessor device of the predecessor relay order relative to the at least one relay device.

[0015] According to a broadcast communication method provided by the present invention, the at least one relay device is determined based on the following steps:

[0016] The devices whose weighted average value of received signal strength obtained from the routing device is less than a threshold and which cannot be directly added to the routing device are considered as candidate devices;

[0017] In the case that there is only one candidate device, the candidate device is used as the relay device.

[0018] A broadcast communication method provided according to the present invention further includes:

[0019] In the case where there are multiple candidate devices, remove the candidate devices whose relay number reaches the maximum relay number from the multiple candidate devices, and remove the candidate devices whose target hop number is greater than the maximum hop number from the multiple candidate devices, where the target hop number is used to characterize the distance between each candidate device and the routing device;

[0020] A candidate device whose weighted variance of the received signal strength obtained from the routing device is smaller than a preset variance is selected from the remaining candidate devices as the relay device.

[0021] According to a broadcast communication method provided by the present invention, the broadcast terminal data and the terminal header protocol include:

[0022] Broadcast the terminal data and the terminal header protocol so that the current relay device forwards the terminal data and the terminal header protocol to the predecessor relay device of the current relay device, and adds the current relay device as the relay device of the previous device to the routing table until the predecessor relay device of the current relay device is the routing device.

[0023] A broadcast communication method provided according to the present invention further includes:

[0024] receiving routing data and a routing header protocol of the routing device forwarded by a relay device, setting a source address in the routing header protocol to the physical address of the routing device, and setting a destination address in the routing header protocol to the physical address of the terminal device;

[0025] After filtering out duplicate routing data based on the packet header identifier of the routing packet header protocol, processing the remaining routing data;

[0026] When the current relay device forwards the routing data and the routing header protocol, the current relay device is added to the routing table as a relay device of the previous device until the predecessor relay device of the current relay device is the terminal device.

[0027] The present invention also provides a broadcast communication device installed in a terminal device, comprising:

[0028] A setting unit, used to set the source address in the terminal packet header protocol to the physical address of the terminal device, and to set the destination address in the terminal packet header protocol to the physical address of the routing device;

[0029] a broadcast unit, configured to broadcast the terminal data and the terminal packet header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, filters out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and then processes the remaining terminal data;

[0030] The terminal device determines the routing device from each candidate routing device based on a weighted average value of received signal strengths obtained from each candidate routing device.

[0031] The present invention also provides a broadcast communication system, comprising: a terminal device, a routing device and at least one relay device, wherein the at least one relay device is arranged between the terminal device and the routing device.

[0032] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the broadcast communication method as described above is implemented.

[0033] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the broadcast communication method as described above is implemented.

[0034] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the broadcast communication method as described above is implemented.

[0035] In the broadcast communication method, device and system provided by the present invention, the terminal device determines a routing device from each candidate routing device based on the weighted average value of the received signal strength obtained from each candidate routing device, that is, the terminal device can automatically adjust the connection to the corresponding routing device, avoiding the problem of excessive broadcast information generated in the network when a large number of routing devices are broadcast at the same time, increasing relay pressure and message loss, thereby improving the stability and reliability of network communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 It is a structural schematic diagram of the broadcast communication system provided by the present invention;

[0038] Figure 2 It is a flowchart of the broadcast communication method provided by the present invention;

[0039] Figure 3 It is a structural schematic diagram of the broadcast communication device provided by the present invention;

[0040] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The current BLE Mesh technology solution mainly relies on BLE broadcast and TTL control to achieve communication and message relay. When a device needs to play the role of a relay, it needs to be configured to ensure that the message can be transmitted throughout the network. However, in actual applications, when there are a large number of BLE devices, the probability of simultaneous broadcasting increases, resulting in too much broadcast information in the network, increasing the pressure on the relay, and may even cause message loss. In addition, the relay role needs to be manually configured, which may increase the complexity of management and deployment for large-scale self-organizing networks. Furthermore, a large number of devices relaying broadcast messages at the same time may cause the relay node to be overloaded, and even affect the stability and reliability of the network.

[0043] The present invention provides a broadcast communication system, which includes: a terminal device, a routing device and at least one relay device, wherein the at least one relay device is arranged between the terminal device and the routing device. Figure 1 is a structural diagram of the broadcast communication system provided by the present invention, such as Figure 1 As shown in the figure, ble router represents the routing device, mcu0 represents the terminal device, mcu1~mcu4 represents the relay device, and ble router communicates with the cloud platform through wifi or ethernet network, receives instructions and reports status. ble router communicates with the subordinate mcu0 through ble extended broadcast. If mcu0 is far away from ble router, information is relayed through mcu1~mcu4 (i.e. relay).

[0044] To this end, the present invention provides a broadcast communication method. In order to facilitate the description of the technical solution of the present invention, the following embodiments are based on Figure 1 The description is based on the broadcast communication system shown. Figure 2 is a flow chart of the broadcast communication method provided by the present invention, such as Figure 2 As shown, the method is applied to a terminal device and comprises the following steps:

[0045] Step 210: setting the source address in the terminal header protocol to the physical address of the terminal device, and setting the destination address in the terminal header protocol to the physical address of the routing device;

[0046] Step 220: broadcast the terminal data and the terminal packet header protocol, so that at least one relay device disposed between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, filters out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and then processes the remaining terminal data;

[0047] The terminal device determines a routing device from among the candidate routing devices based on a weighted average value of received signal strengths obtained from the candidate routing devices.

[0048] Specifically, the terminal device sets the source address in the terminal header protocol to the physical address of the terminal device and the destination address to the physical address of the routing device, indicating that the terminal device wants to send data to the routing device and specifies the source and destination of the data through the terminal header protocol.

[0049] The terminal device broadcasts the terminal data and the terminal header protocol so that at least one relay device can receive the terminal data and the terminal header protocol and forward it to the routing device. Once the routing device receives the terminal data and the terminal header protocol, it will filter out duplicate terminal data based on the header identifier of the terminal header protocol and then process the remaining data.

[0050] The terminal device determines the routing device from the candidate routing devices based on the weighted average of the received signal strength (RSSI) obtained from the candidate routing devices. Optionally, the terminal device may use the candidate routing device whose weighted average of RSSI is less than a threshold as the routing device.

[0051] That is to say, the terminal device makes a judgment based on the weighted average value of the RSSI (Received Signal Strength Indication) of each candidate routing device. If this weighted average value is less than the set threshold, the terminal device will give priority to joining this routing device. Among them, the terminal device and the relay device can be a microcontroller unit (MCU), and the routing device can be a Bluetooth Low Energy (BLE) router.

[0052] It can be seen that the terminal device can intelligently select the most suitable routing device as the communication target, thereby optimizing the communication quality and stability. By monitoring and evaluating the signal strength of different routing devices and making decisions based on preset thresholds, the terminal device can automatically adjust the connection to the routing device, thereby improving the performance and reliability of the overall system.

[0053] In the broadcast communication method provided by the present invention, the terminal device determines a routing device from each candidate routing device based on the weighted average value of the received signal strength obtained from each candidate routing device. That is, the terminal device can automatically adjust the connection to the corresponding routing device, avoiding the problem of excessive broadcast information generated in the network when there are a large number of routing devices and increasing relay pressure and message loss due to simultaneous broadcasting, thereby improving the stability and reliability of network communication.

[0054] Based on the above embodiment, at least one relay device accesses the network based on the following steps:

[0055] Determine a target predecessor device for at least one relay device to access the network, and at least one relay device sends a network access request to the target predecessor device, so that the target predecessor device confirms whether to allow at least one relay device to access the network;

[0056] When at least one relay device receives a network access permission instruction from a target predecessor device, at least one relay device accesses the network and the state of at least one relay device is a network access state;

[0057] When at least one relay device receives a network access refusal instruction from a target predecessor device, the at least one relay device selects a next predecessor device as the target predecessor device.

[0058] Specifically, at least one relay device that needs to access the network is determined, and a target predecessor device corresponding to the relay device is selected. The relay device requests to join the network by sending a network access request to the target predecessor device. After receiving the request, the target predecessor device confirms whether to allow the relay device to access the network. If the target predecessor device agrees to access the network, the relay device can join the network and the status is network access; if the target predecessor device refuses to access the network, the relay device selects the next predecessor device as the target predecessor device and repeats the above steps.

[0059] Based on any of the above embodiments, when the number of relays of the target predecessor device reaches the maximum number of relays, the state of the target predecessor device is a non-relay state for network access, and the target predecessor device sends a network access rejection instruction to at least one relay device.

[0060] Specifically, when the number of relays of the target predecessor device reaches the maximum number of relays, the state of the target predecessor device is defined as "network access non-relay state", which means that the target predecessor device no longer accepts joining requests from other relay devices.

[0061] In this case, the target predecessor device will send a network access denial command to the corresponding relay device to notify it that it cannot join the network, thereby ensuring that the network is not overloaded or overloaded, thereby maintaining the stability and performance of the network.

[0062] Based on any of the above embodiments, when at least one relay device has multiple predecessor devices, the at least one relay device sends a message to each predecessor device to inform each predecessor device of the predecessor relay order relative to the at least one relay device.

[0063] Optionally, in the case where there are multiple predecessor devices in at least one relay device, the relay device can determine the predecessor relay order with each predecessor device, that is, the relay device sorts or identifies these predecessor devices according to their order in the relay device network. Then, the relay device sends a message to each predecessor device, which includes the predecessor relay order information relative to at least one relay device. After receiving the message, each predecessor device understands their predecessor relay order in the relay device network based on the information contained therein, and makes corresponding adjustments and management.

[0064] It can be seen that the relay device in the embodiment of the present invention can effectively inform each predecessor device of their order in the relay device network, help establish a reasonable communication order and cooperation mechanism, and thus help optimize the communication efficiency and data transmission performance in the relay device network.

[0065] like Figure 1 As shown, the relay device can access the network based on the following steps:

[0066] S1, the relay devices mcu1~mcu4 first specify the target predecessor device to join the network through the join command. The target predecessor device can be a ble router or a relay device that has already been connected to the network;

[0067] S2. After receiving the join command, the target predecessor device replies to confirm whether it is allowed to join. If it is confirmed to be allowed to join, the relay device joins the network and its state changes from free state to network state. If the target predecessor device replies to reject, the relay device can select another device as the target predecessor device.

[0068] S3. When the target predecessor device confirms that it is allowed to join the relay device, it will tell the relay device the MAC address of the BLE router. At this time, the relay device joins the network and becomes a relay-enabled state. At this time, the relay device allows other newly connected devices to designate it as a predecessor device.

[0069] S4. In order to ensure the stability of the relay, when the number of relays of the target predecessor device reaches the maximum number of relays, its status becomes a non-relay state. At this time, if other relay devices want to join the network, the devices in the non-relay state will be rejected;

[0070] S5. As more devices join the network, each relay device can add one more predecessor relay device. When adding a second predecessor relay device, it needs to be informed that it is the second predecessor relay. The purpose of adding one more predecessor relay device is to have one more path to forward the data of the relay device as the original packet, but it will not forward the data forwarded by the relay device as a relay;

[0071] The terminal device may also select the predecessor relay device by using the above steps S1 to S5.

[0072] In addition, it should be noted that MCU0~MCU4 are in a free state when powered on. The data of the MCU in the free state cannot communicate with the BLE network centered on the BLE router. You must first join this network before uploading data on the network. The MCU that joins the network is in the network access state.

[0073] There are three MCU states: free state, networked relay and networked non-relay. Free state means not joining the network; networked relay state means joining the network and can be used as a predecessor relay device to transmit data; networked non-relay state means joining the network, but the number of relays has reached the maximum number of relays and cannot be a predecessor relay device for other devices.

[0074] Based on any of the above embodiments, at least one relay device is determined based on the following steps:

[0075] The devices whose weighted average received signal strength obtained from the routing device is less than the threshold and cannot be directly added to the routing device are regarded as candidate devices;

[0076] When there is only one candidate device, the candidate device is used as a relay device.

[0077] When there are multiple candidate devices, the candidate devices whose number of relays reaches the maximum number of relays are eliminated from the multiple candidate devices, and the candidate devices whose target hop number is greater than the maximum number of hops are eliminated from the multiple candidate devices, where the target hop number is used to characterize the distance between each candidate device and the routing device; and the candidate devices whose weighted variance of the received signal strength obtained from the routing device is less than the preset variance are selected from the remaining candidate devices as relay devices.

[0078] As an optional embodiment, if mcu0 cannot be added to the ble router directly, mcu1~mcu4 needs to be selected to join. First, determine the weighted average of the RSSI obtained by mcu1~mcu4 from the ble router, and use the mcu whose weighted average of RSSI is less than the threshold as a candidate device. If there is only one candidate device, use the candidate device as a relay device. If there are multiple candidate devices, make a judgment based on the following conditions:

[0079] A. The number of relays is less than the maximum number of relays;

[0080] B. The target hop count is less than or equal to the maximum hop count, that is, the number of relay devices that the BLE router passes through. The smaller the target hop count, the more stable the network.

[0081] C. The weighted variance of RSSI is less than the preset variance.

[0082] If condition A is not met, the relay will be abandoned directly; if condition A and B are met, the relay with the smaller weighted variance in C will be selected as the relay device.

[0083] Each MCU will send not only BLE extended broadcasts during data transmission, but also legacy BLE broadcasts. To facilitate calculations when the subsequent MCU joins, the legacy broadcast will broadcast the number of MCU relays, the distance to the BLE router (number of hops), and the weighted variance of RSSI in the UUID service data, so that the newly joined device can directly use these data for calculations.

[0084] Based on any of the above embodiments, the broadcast terminal data and the terminal header protocol include:

[0085] Broadcast terminal data and terminal header protocol so that the current relay device forwards the terminal data and terminal header protocol to the predecessor relay device of the current relay device, and adds the current relay device as the relay device of the previous device to the routing table until the predecessor relay device of the current relay device is a routing device.

[0086] As an optional embodiment, when mcu0 sends data, the source address in the terminal header protocol is the MAC of mcu0, and the destination address is the MAC of the ble router. As the predecessor relay device of mcu0, mcu1 (mcu2 is the second predecessor relay device), after receiving the broadcast, mcu1 (mcu2) forwards the data and adds mcu1 (mcu2) as the relay device of mcu0 to the routing table. If the predecessor relay device of mcu1 (mcu2) is a ble router, the transmission is over;

[0087] If the predecessor relay device of mcu1 is mcu3 (mcu4 is the second predecessor relay device), mcu3 will also forward the data (mcu4 will not forward the data because it is the second predecessor relay device), and mcu3 will be added to the routing table as the relay device of mcu0. The data will be propagated in this logical chain until the ble router.

[0088] After multiple transmissions, no matter which broadcast is received by the BLE router, the BLE router will process the data. In addition, since the terminal packet header protocol is set with a packet header identifier, it can be ensured that the BLE router will not process duplicate data.

[0089] Based on any of the above embodiments, the method further includes:

[0090] receiving routing data and a routing packet header protocol of a routing device forwarded by a relay device, setting a source address in the routing packet header protocol to a physical address of the routing device, and setting a destination address in the routing packet header protocol to a physical address of a terminal device;

[0091] After filtering out duplicate routing data based on the packet header identifier of the routing packet header protocol, the remaining routing data is processed;

[0092] When the current relay device forwards routing data and routing header protocol, the current relay device is added to the routing table as a relay device of the previous device until the predecessor relay device of the current relay device is a terminal device.

[0093] As an optional embodiment, when the ble router sends routing data to mcu0, the source address is set to the address of the ble router and the destination address is set to the address of mcu0.

[0094] When mcu1 finds that its predecessor relay device is a ble router, and mcu0 is recorded as a relay device in the routing table, mcu1 will forward the data;

[0095] When mcu2 finds that its predecessor relay device is mcu1, and the record in the routing table is mcu0 relay device, mcu2 will forward the data;

[0096] The above method is used until mcu0 receives data. If mcu0 receives multiple data, duplicate data is filtered based on the packet header identifier corresponding to the data.

[0097] In addition, if mcu0 is directly added to ble router, then there is no need for MCU relay; when sending, set the source MAC and destination MAC in the packet header protocol, fill in the source MAC address of mcu0, fill in the destination MAC address of blerouter, and other devices will not forward this broadcast. Similarly, when ble router sends data to mcu0, it will also fill in the source MAC address of ble router and the destination MAC address of mcu0, and other devices will not forward this broadcast.

[0098] The broadcast communication device provided by the present invention is described below. The broadcast communication device described below and the broadcast communication method described above can be referenced to each other.

[0099] Based on any of the above embodiments, Figure 3 is a schematic diagram of the structure of the broadcast communication device provided by the present invention, which is installed in a terminal device such as Figure 3 As shown, the device comprises:

[0100] A setting unit 310, configured to set the source address in the terminal header protocol to the physical address of the terminal device, and to set the destination address in the terminal header protocol to the physical address of the routing device;

[0101] The broadcast unit 320 is used to broadcast the terminal data and the terminal packet header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, filters out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and then processes the remaining terminal data;

[0102] The terminal device determines a routing device from among the candidate routing devices based on a weighted average value of received signal strengths obtained from the candidate routing devices.

[0103] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor 410, a memory 420, a communications interface 430 and a communication bus 440, wherein the processor 410, the memory 420 and the communications interface 430 complete mutual communication through the communication bus 440. The processor 410 may call the logic instructions in the memory 420 to execute the broadcast communication method, which includes: setting the source address in the terminal header protocol to the physical address of the terminal device, and setting the destination address in the terminal header protocol to the physical address of the routing device; broadcasting terminal data and the terminal header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal header protocol to the routing device, and after filtering out duplicate terminal data based on the header identifier of the terminal header protocol, the remaining terminal data is processed; the terminal device determines the routing device from each candidate routing device based on the weighted average value of the received signal strength obtained from each candidate routing device.

[0104] In addition, the logic instructions in the above-mentioned memory 420 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the broadcast communication method provided by the above-mentioned methods, and the method includes: setting the source address in the terminal packet header protocol to the physical address of the terminal device, and setting the destination address in the terminal packet header protocol to the physical address of the routing device; broadcasting terminal data and the terminal packet header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, and then filters out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and then processes the remaining terminal data; the terminal device determines the routing device from each candidate routing device based on the weighted average of the received signal strengths obtained from each candidate routing device.

[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned broadcast communication methods, the methods comprising: setting the source address in the terminal packet header protocol to the physical address of the terminal device, and setting the destination address in the terminal packet header protocol to the physical address of the routing device; broadcasting terminal data and the terminal packet header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, and then filtering out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and processing the remaining terminal data; the terminal device determines the routing device from each candidate routing device based on the weighted average of the received signal strengths obtained from each candidate routing device.

[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A broadcast communication method, characterized in that: Applied to terminal equipment, including: Setting the source address in the terminal packet header protocol to the physical address of the terminal device, and setting the destination address in the terminal packet header protocol to the physical address of the routing device; Broadcasting terminal data and the terminal packet header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, filters out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and then processes the remaining terminal data; The terminal device determines the routing device from each candidate routing device based on a weighted average value of received signal strengths obtained from each candidate routing device.

2. The broadcast communication method according to claim 1, characterized in that: The at least one relay device accesses the network based on the following steps: Determine a target predecessor device for the at least one relay device to access the network, and send a network access request from the at least one relay device to the target predecessor device, so that the target predecessor device confirms whether to allow the at least one relay device to access the network; When the at least one relay device receives the instruction of the target predecessor device allowing network access, the at least one relay device accesses the network and the state of the at least one relay device is the network access state; When the at least one relay device receives the instruction from the target predecessor device to refuse network access, the at least one relay device selects a next predecessor device as the target predecessor device.

3. The broadcast communication method according to claim 2, characterized in that: When the number of relays of the target predecessor device reaches the maximum number of relays, the state of the target predecessor device is a network access non-relay state, and the target predecessor device sends the network access rejection instruction to the at least one relay device.

4. The broadcast communication method according to claim 2, characterized in that: In the case that the at least one relay device has multiple predecessor devices, the at least one relay device sends a message to each predecessor device to inform each predecessor device of a predecessor relay order relative to the at least one relay device.

5. The broadcast communication method according to any one of claims 1 to 4, characterized in that: The at least one relay device is determined based on the following steps: The devices whose weighted average value of received signal strength obtained from the routing device is less than a threshold and which cannot be directly added to the routing device are considered as candidate devices; In the case that there is only one candidate device, the candidate device is used as the relay device.

6. The broadcast communication method according to claim 5, characterized in that: Also includes: In the case where there are multiple candidate devices, remove the candidate devices whose relay number reaches the maximum relay number from the multiple candidate devices, and remove the candidate devices whose target hop number is greater than the maximum hop number from the multiple candidate devices, where the target hop number is used to characterize the distance between each candidate device and the routing device; A candidate device whose weighted variance of the received signal strength obtained from the routing device is smaller than a preset variance is selected from the remaining candidate devices as the relay device.

7. The broadcast communication method according to any one of claims 1 to 4, characterized in that: The broadcast terminal data and the terminal header protocol include: Broadcast the terminal data and the terminal header protocol so that the current relay device forwards the terminal data and the terminal header protocol to the predecessor relay device of the current relay device, and adds the current relay device as the relay device of the previous device to the routing table until the predecessor relay device of the current relay device is the routing device.

8. The broadcast communication method according to any one of claims 1 to 4, characterized in that: Also includes: receiving routing data and a routing header protocol of the routing device forwarded by a relay device, setting a source address in the routing header protocol to the physical address of the routing device, and setting a destination address in the routing header protocol to the physical address of the terminal device; After filtering out duplicate routing data based on the packet header identifier of the routing packet header protocol, processing the remaining routing data; When the current relay device forwards the routing data and the routing header protocol, the current relay device is added to the routing table as a relay device of the previous device until the predecessor relay device of the current relay device is the terminal device.

9. A broadcast communication device, characterized in that: Installed on terminal equipment, including: A setting unit, used to set the source address in the terminal packet header protocol to the physical address of the terminal device, and to set the destination address in the terminal packet header protocol to the physical address of the routing device; a broadcast unit, configured to broadcast the terminal data and the terminal packet header protocol, so that at least one relay device arranged between the routing device and the terminal device forwards the terminal data and the terminal packet header protocol to the routing device, filters out duplicate terminal data based on the packet header identifier of the terminal packet header protocol, and then processes the remaining terminal data; The terminal device determines the routing device from each candidate routing device based on a weighted average value of received signal strengths obtained from each candidate routing device.

10. A broadcast communication system, characterized in that: include: A terminal device, a routing device and at least one relay device, wherein the at least one relay device is arranged between the terminal device and the routing device.