Mesh network-based protocol message transmission method and device, Mesh equipment, system and storage medium
By using the linear congruential method in the BLE-Mesh network to generate random numbers to determine the queuing time and control the message sending time of the Mesh device, the problem of network performance degradation under group control is solved and network performance is improved.
Patent Information
- Application Number
- CN202510789472.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-09-16
AI Technical Summary
In BLE-Mesh networking technology, Mesh devices simultaneously report messages under group control, causing excessive forwarding pressure on the network interface. The Mesh device chip cannot process a large number of messages at the same time, resulting in degraded network performance.
By receiving network control requests, determining the network control type, and generating random numbers based on the linear congruential method to determine the target queuing time, the timing operation is started to control the Mesh devices to send network protocol messages at different times to avoid processing all messages at the same time.
Improves the network performance of the Mesh network, ensures that network monitoring devices can successfully receive messages from all Mesh devices, and avoids network bottlenecks.
Smart Images

Figure CN120659097A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a protocol message transmission method and apparatus based on a Mesh network, a Mesh device, a system, and a storage medium. Background Art
[0002] With the rapid development of computer network and IoT technologies, intelligent IoT application scenarios are becoming increasingly diverse. In the field of smart home appliances, BLE-Mesh (Bluetooth Low Energy Mesh) networking technology is becoming increasingly widespread, often used in devices such as smart lights and smart switches. This networking technology is characterized by simple control and relatively short message lengths. Furthermore, while BLE-Mesh networking technology transmits messages with relatively short message lengths, it does have the need to report the status of controlled Mesh devices and their online status.
[0003] BLE-Mesh networking technology relies on BLE broadcasts to transmit data within a small coverage area. In group control scenarios, a large number of mesh devices within the coverage area are controlled simultaneously. In related technologies, all mesh devices simultaneously report their own messages, which include the status of the mesh devices after being controlled and their online status.
[0004] During the implementation of the embodiments of the present disclosure, it was found that at least the following problems exist in the related art:
[0005] In related technologies, mesh devices under group control report messages simultaneously, resulting in a large number of messages being forwarded over the air interface. However, mesh device chips have limited processing capabilities. When the air interface is overloaded with messages, the mesh device chips cannot process the large number of messages simultaneously, resulting in network monitoring devices being unable to effectively receive messages sent by all mesh devices, reducing mesh network performance.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field. Summary of the Invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a protocol message transmission method, apparatus, Mesh device, system, and storage medium based on a Mesh network, so as to avoid the situation of simultaneously processing network protocol messages sent by all Mesh devices when Mesh devices need to report messages at the same time, thereby improving the network performance of the Mesh network.
[0009] In some embodiments, the method is applied to a Mesh device, and the method includes: receiving a network control request sent by a network monitoring device, and determining a network control type based on the network control request; determining a target queuing time of a network protocol message according to the network control type, and starting a timing operation; when the timing time matches the target queuing time, sending a network protocol message to the network monitoring device, so that the network monitoring device reports the network protocol message.
[0010] In some embodiments, the Mesh device includes a timer, the network control request includes a network control type, and the target queuing time of the network protocol message is determined based on the network control type, including: when the network control type indicates group control, generating a random number based on the linear congruential method; determining the target queuing time based on the correspondence between the random number and the queuing time, wherein the random number is positively correlated with the queuing time; after determining the target queuing time, starting the timer to perform the timing operation.
[0011] In some embodiments, determining the target queuing time according to the correspondence between the random number and the queuing time includes: determining the target queuing time according to the remainder of the random number and the reference timing time.
[0012] In some embodiments, generating a random number based on a linear congruential method includes: obtaining the Bluetooth address and a random number byte threshold of the Mesh device; when the number of bytes of the Bluetooth address is greater than or equal to the random number byte threshold, selecting a byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initialization random number; or, when the number of bytes of the Bluetooth address is less than the random number byte threshold, padding the low byte of the Bluetooth address with zeros according to the random number byte threshold, and selecting a byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initialization random number; inputting the initialization random number into a random algorithm to calculate a random number; wherein the initialization random number represents the random value generated by the Mesh device under the first group control.
[0013] In some embodiments, generating a random number based on a linear congruential method further includes: inputting an initialization random number into a random algorithm to calculate a random number, and selecting a random number obtained by the previous calculation as a reference random number;
[0014] Input the reference random number to the random number algorithm to calculate a new random number; wherein the random number obtained in the previous calculation represents the random value generated based on the linear congruential method under the previous group control before the current group control.
[0015] In some embodiments, when the timing duration matches the target queuing duration, a network protocol message is sent to a network monitoring device, including: when the timing duration matches the target queuing duration, a queue waiting state is obtained; when the queue waiting state indicates that there are historical protocol messages that have not been sent, the network protocol message is sent to the network monitoring device after the network protocol message overwrites the historical protocol message; when the queue waiting state indicates that the historical protocol message has been sent, the network protocol message is sent to the network monitoring device.
[0016] In some embodiments, the device includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute any of the above-mentioned Mesh network-based protocol message transmission methods through the computer program.
[0017] In some embodiments, the Mesh device includes: a device body; and a protocol message transmission device based on a Mesh network as described above, installed on the device body.
[0018] In some embodiments, the system includes: a network monitoring device, and a Mesh device as described above, wherein the Mesh device is communicatively connected to the network monitoring device.
[0019] In some embodiments, the storage medium, the computer-readable storage medium includes a stored program, wherein when the program is run, any of the above-mentioned protocol message transmission methods based on the Mesh network is executed.
[0020] The Mesh network-based protocol message transmission method, apparatus, Mesh device, system, and storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:
[0021] The disclosed embodiment can determine the target queuing duration based on the actual network control type and perform corresponding timing operations. It can also send a message when it determines the time to send a network protocol message based on the timing duration, allowing the network monitoring device to report the message. In this way, the network monitoring device receives network protocol messages sent by different Mesh devices at different times, thereby successfully receiving messages sent by all Mesh devices. This avoids the situation where network protocol messages sent by all Mesh devices are processed simultaneously, which helps improve the network performance of the Mesh network.
[0022] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] Figure 1 This is a schematic diagram of an implementation environment of a protocol message transmission method based on a Mesh network according to an embodiment of the present application;
[0026] Figure 2 This is a schematic diagram of a protocol message transmission method based on a Mesh network provided by an embodiment of the present disclosure;
[0027] Figure 3 is a schematic diagram of another protocol message transmission method based on a Mesh network provided by an embodiment of the present disclosure;
[0028] Figure 4 is a schematic diagram of another protocol message transmission method based on a Mesh network provided by an embodiment of the present disclosure;
[0029] Figure 5 is a schematic diagram of another protocol message transmission method based on a Mesh network provided by an embodiment of the present disclosure;
[0030] Figure 6 This is a schematic diagram of a protocol message transmission device based on a Mesh network provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] According to one aspect of the embodiment of the present application, a protocol message transmission method based on a Mesh network is provided. The protocol message transmission method based on a Mesh network is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned protocol message transmission method based on a Mesh network can be applied to Figure 1 The hardware environment shown is composed of Mesh (wireless mesh network) device 102 and network monitoring device 104. Figure 1 As shown, the network monitoring device 104 is connected to the Mesh device 102 via a network. The network monitoring device 104 can be a gateway device, or a switch or a router.
[0034] The aforementioned network may include, but is not limited to, at least one of the following: a wired network and a wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: a wide area network, a metropolitan area network, and a local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity) and Bluetooth. Mesh devices 102 may be, but are not limited to, smart lighting, smart switches, smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart laundry appliances, smart dishwashers, smart projectors, smart televisions, smart clothes drying racks, smart curtains, smart audio and video equipment, smart sockets, smart speakers, smart speakers, smart ventilation equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robots, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steamers, smart microwave ovens, smart kitchen appliances, smart purifiers, smart water dispensers, smart door locks, and the like.
[0035] In an embodiment of the present disclosure, the Mesh device includes a timer, and the timer is used to perform timing operations based on a target queuing duration.
[0036] Combine Figure 2 As shown, the embodiment of the present disclosure provides a protocol message transmission method based on a Mesh network, including:
[0037] S01: The Mesh device receives a network control request sent by a network monitoring device and determines a network control type based on the network control request.
[0038] S02: The Mesh device determines the target queuing time of the network protocol message according to the network control type and starts the timing operation.
[0039] S03: When the timing duration matches the target queuing duration, the Mesh device sends a network protocol message to the network monitoring device, so that the network monitoring device reports the network protocol message.
[0040] In this step, the timing duration matches the target queuing duration, including: the timing duration is greater than or equal to the target queuing duration.
[0041] Using the protocol message transmission method based on a mesh network provided by an embodiment of the present disclosure, a mesh device in the embodiment of the present disclosure receives a network control request sent by a network monitoring device and determines the network control type based on the request. The mesh device then determines the target queuing time for the network protocol message based on the network control type and initiates a timing operation. When the timing duration matches the target queuing time, it indicates that the time has arrived for sending the mesh device's network protocol message. At this time, the mesh device sends the network protocol message to the network monitoring device. The embodiment of the present disclosure can determine the target queuing time based on the actual network control type and perform the corresponding timing operation. When it is determined based on the timing duration that the time has arrived for sending the network protocol message, the message is sent, causing the network monitoring device to report the message. In this way, the network monitoring device can receive network protocol messages sent by different mesh devices at different times, thereby successfully receiving messages sent by all mesh devices. In this way, the embodiment of the present disclosure can avoid the situation where network protocol messages sent by all mesh devices are processed simultaneously, which is beneficial to improving the network performance of the mesh network.
[0042] Optionally, the network control request includes a network control type. Figure 3 As shown in the figure, the Mesh device determines the target queuing time of the network protocol message based on the network control type, including:
[0043] S11, when the network control type indicates group control, the Mesh device generates a random number based on a linear congruential method.
[0044] In this step, if the network control type indicates group control, it means that all Mesh devices are controlled simultaneously. If the network control type indicates single group control, it means that the Mesh device is controlled individually.
[0045] S12, the Mesh device determines a target queue time according to a correspondence between the random number and the queue time, wherein the random number is positively correlated with the queue time.
[0046] S13, after determining the target queuing time, the Mesh device starts a timer to perform a timing operation.
[0047] Thus, in the embodiment of the present disclosure, when the network control type indicates group control, it indicates that all Mesh devices are controlled simultaneously. To avoid the situation where the network monitoring device simultaneously receives network protocol messages sent by all Mesh devices, the embodiment of the present disclosure determines the target queue length based on the positive correlation between the random number and the queue length, and starts the timer timing operation according to the target queue length. In this way, different Mesh devices no longer send network protocol messages simultaneously, but instead send them according to the timing of the timer. This allows the network monitoring device to receive network protocol messages from each Mesh device at different times, thereby improving the network performance of the Mesh network.
[0048] Optionally, the Mesh device determines the target queuing time according to a correspondence between the random number and the queuing time, including: the Mesh device determines the target queuing time according to a remainder of the random number and a reference timing time.
[0049] In this way, the disclosed embodiment can calculate the target queue duration by taking the modulus of the random number and the reference timing duration. This not only accurately determines the target queue duration, but also reduces computational complexity. Furthermore, by taking the modulus of the random number and the reference timing duration, it can avoid situations where the number of Mesh devices is small and the response time of Mesh devices is too long.
[0050] Combine Figure 4 As shown, the embodiment of the present disclosure also provides a protocol message transmission method based on a Mesh network, including:
[0051] S21, the Mesh device receives a network control request sent by the network monitoring device, and determines a network control type based on the network control request.
[0052] S22: When the network control type indicates group control, the Mesh device generates a random number based on a linear congruential method.
[0053] S23, the Mesh device determines a target queueing time according to a correspondence between the random number and the queueing time, wherein the random number is positively correlated with the queueing time.
[0054] S24, after determining the target queue duration, the Mesh device starts a timer to perform a timing operation.
[0055] S25, when the timing duration matches the target queuing duration, the Mesh device sends a network protocol message to the network monitoring device, so that the network monitoring device reports the network protocol message.
[0056] S26 , when the network control type indicates single group control, the Mesh device sends a network protocol message to the network monitoring device, so that the network monitoring device reports the network protocol message.
[0057] The mesh network-based protocol message transmission method provided by the disclosed embodiments employs a linear congruential method to generate a random number under group control, determine a target queue time based on the positive correlation between the random number and the queue time, and perform corresponding timing operations. The method then sends a message when the time to send a network protocol message has been reached based on the timed duration, enabling the network monitoring device to report the message. Thus, under group control, the network monitoring device receives network protocol messages from different mesh devices at different times, successfully receiving messages from all mesh devices. This avoids the need to process network protocol messages from all mesh devices simultaneously, thereby improving mesh network performance. Under single-group control, however, this does not require simultaneous processing of network protocol messages from all mesh devices. In this case, mesh devices in the disclosed embodiments directly send network protocol messages to the network monitoring device for message reporting. The disclosed embodiments implement different message reporting strategies based on the actual network control type, avoiding the problem of poor network performance that can occur under group control.
[0058] Optionally, the Mesh device generates random numbers based on a linear congruential method, including:
[0059] The Mesh device obtains the Bluetooth address and random number byte threshold of the Mesh device.
[0060] When the number of bytes in the Bluetooth address is greater than or equal to the random number byte threshold, the Mesh device selects the byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initialization random number.
[0061] If the number of bytes in the Bluetooth address is less than the random number byte threshold, the Mesh device pads the low-order bytes of the Bluetooth address with zeros according to the random number byte threshold, and then selects the byte in the low-order bytes of the Bluetooth address that meets the random number byte threshold as the initial random number.
[0062] The Mesh device inputs the initialization random number into the random algorithm to calculate the random number.
[0063] In this way, in order to generate a random number, the Mesh device in the embodiment of the present disclosure first obtains its Bluetooth address and the random number byte threshold. Then, when the number of bytes of the Bluetooth address is greater than or equal to the random number byte threshold, the byte in the low byte of the Bluetooth address that meets the random number byte threshold is selected as the initialization random number. When the number of bytes of the Bluetooth address is less than the random number byte threshold, the low byte of the Bluetooth address is padded with zeros according to the random number byte threshold and the byte in the low byte that meets the random number byte threshold is selected as the initialization random number. Finally, the Mesh device inputs the initialization random number into the random algorithm to calculate and obtain a random number. The embodiment of the present disclosure determines the initialization random number based on the Bluetooth address of the Mesh device, and can obtain a random number that is strongly correlated with the Bluetooth address, ensuring that different Mesh devices obtain differentiated random numbers.
[0064] As an example, the random number byte threshold is 4 bytes and the Bluetooth address is 6 bytes. Since the Bluetooth address is greater than or equal to the random number byte threshold, the Mesh device selects the lower 4 bytes of the Bluetooth address as the initial random number.
[0065] As another example, the random number byte threshold is 6 bytes, and the Bluetooth address is 4 bytes long. Since the Bluetooth address is smaller than the random number byte threshold, the Mesh device pads the low-order bytes of the Bluetooth address with zeros according to the random number byte threshold and then selects the low-order six bytes of the Bluetooth address as the initial random number.
[0066] It should be noted that the random byte threshold can be set based on actual scenarios. As an example, the random byte threshold is positively correlated with the total number of mesh devices in a BLE-Mesh network application scenario. For example, the larger the total number of mesh devices in an actual scenario, the larger the random byte threshold. The smaller the total number of mesh devices in an actual scenario, the smaller the random byte threshold.
[0067] Optionally, combined Figure 5 As shown, Mesh devices generate random numbers based on the linear congruential method, including:
[0068] S31, the Mesh device obtains the Bluetooth address and random number byte threshold of the Mesh device.
[0069] S32: When the number of bytes of the Bluetooth address is greater than or equal to the random number byte threshold, the Mesh device selects a byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initialization random number.
[0070] S33, when the number of bytes of the Bluetooth address is less than the random number byte threshold, the Mesh device fills the low byte of the Bluetooth address with zeros according to the random number byte threshold, and selects the byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initialization random number.
[0071] S34, the Mesh device inputs the initialization random number into the random algorithm to calculate the random number.
[0072] S35, after the Mesh device inputs the initialization random number into the random algorithm to calculate the random number, it selects the random number obtained by the previous calculation as the reference random number.
[0073] S36: The Mesh device inputs the reference random number into the random number algorithm to calculate a new random number. The initial random number represents the random number generated by the Mesh device during the first group control, and the last calculated random number represents the random number generated by the Mesh device based on the linear congruential method during the last group control before the current group control.
[0074] In this way, the embodiment of the present disclosure not only obtains a random number that is strongly correlated with the Bluetooth address, but also further ensures that different Mesh devices obtain differentiated random numbers.
[0075] Optionally, when the timing duration matches the target queuing duration, the Mesh device sends a network protocol message to the network monitoring device, including:
[0076] When the timing duration matches the target queuing duration, the Mesh device obtains the queue waiting state.
[0077] When the queue waiting state indicates that there are historical protocol packets that have not been sent, the Mesh device overwrites the historical protocol packets based on the network protocol packets and then sends the network protocol packets to the network monitoring device.
[0078] When the queue waiting state indicates that the historical protocol message has been sent, the Mesh device sends the network protocol message to the network monitoring device.
[0079] In this way, when the timing duration matches the target queuing duration, it indicates that the time has come to send the network protocol message of the Mesh device. At this time, the Mesh device also obtains the queue waiting state. If the queue waiting state indicates that there are historical protocol messages that have not been sent, the network protocol message based on the network protocol is overwritten with the historical protocol message and then sent to the network monitoring device. If the queue waiting state indicates that the historical protocol message has been sent, the network protocol message is directly sent to the network monitoring device. The embodiment of the present disclosure can avoid the situation of processing the network protocol messages sent by all Mesh devices at the same time, which is beneficial to improving the network performance of the Mesh network. At the same time, the real-time reporting of the message is guaranteed.
[0080] Combine Figure 6 As shown, an embodiment of the present disclosure provides a protocol message transmission device 70 based on a Mesh network, including a processor 700 and a memory 701. Optionally, the device 70 may further include a communication interface 702 and a bus 703. The processor 700, the communication interface 702, and the memory 701 may communicate with each other through the bus 703. The communication interface 702 may be used for information transmission. The processor 700 may call the logic instructions in the memory 701 to execute the protocol message transmission method based on the Mesh network of the above embodiment.
[0081] In addition, the logic instructions in the memory 701 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.
[0082] Memory 701, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. Processor 700 executes the program instructions / modules stored in memory 701 to perform functional applications and data processing, thereby implementing the protocol message transmission method based on the mesh network in the above-mentioned embodiment.
[0083] The memory 701 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory 701 may include high-speed random access memory and non-volatile memory.
[0084] The embodiment of the present disclosure provides a Mesh device, including: a device body, and the above-mentioned protocol message transmission device 70 based on the Mesh network. The protocol message transmission device 70 based on the Mesh network is installed on the device body. The installation relationship described here is not limited to placement inside the product body, but also includes installation connections with other components of the Mesh device, including but not limited to physical connections, electrical connections or signal transmission connections. It can be understood by those skilled in the art that the protocol message transmission device 70 based on the Mesh network can be adapted to a feasible device body, thereby realizing other feasible embodiments.
[0085] The embodiment of the present disclosure provides a protocol message transmission system based on a Mesh network, comprising a network monitoring device and the Mesh device as described above. The Mesh device is communicatively connected to the network monitoring device.
[0086] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned protocol message transmission method based on the Mesh network.
[0087] The technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, among other media capable of storing program code.
[0088] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.
[0089] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may 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 the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0090] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, and can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown 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 units may be selected according to actual needs to implement this embodiment. In addition, the functional units in the embodiments of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0091] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A protocol message transmission method based on a wireless mesh network, characterized in that: Applied to Mesh devices, the methods include: receiving a network control request sent by a network monitoring device, and determining a network control type based on the network control request; Determine the target queuing time for network protocol messages based on the network control type and initiate timing operations; When the timing duration matches the target queuing duration, a network protocol message is sent to the network monitoring device, so that the network monitoring device reports the network protocol message.
2. The method according to claim 1, characterized in that Mesh devices include timers, and network control requests include network control types. Based on the network control type, the target queuing time for network protocol packets is determined, including: In the case where the network control type indicates group control, a random number is generated based on a linear congruential method; Determine the target queue time based on the correspondence between the random number and the queue time, where the random number is positively correlated with the queue time; After determining the target queuing time, start the timer to perform the timing operation.
3. The method according to claim 2, characterized in that The target queue time is determined based on the correspondence between the random number and the queue time, including: The target queuing time is determined based on the remainder of the random number and the reference timing time.
4. The method according to claim 2, characterized in that Generate random numbers based on the linear congruential method, including: Get the Bluetooth address and random number byte threshold of the Mesh device; When the number of bytes in the Bluetooth address is greater than or equal to the random number byte threshold, select the byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initialization random number; or If the number of bytes in the Bluetooth address is less than the random number byte threshold, the low byte of the Bluetooth address is padded with zeros according to the random number byte threshold, and the byte in the low byte of the Bluetooth address that meets the random number byte threshold is selected as the initialization random number; Input the initialization random number to the random algorithm to calculate the random number; the initialization random number refers to the random value generated by the Mesh device under the first group control.
5. The method according to claim 4, characterized in that Generates random numbers based on the linear congruential method, and also includes: After inputting the initialization random number into the random algorithm to calculate the random number, the random number obtained by the previous calculation is selected as the base random number; Input the base random number into the random number algorithm to calculate a new random number; The random number obtained by the previous calculation represents the random value generated based on the linear congruential method in the previous group control before the current group control.
6. The method according to any one of claims 1 to 5, characterized in that Send network protocol messages to network monitoring devices, including: Get the queue waiting status; When the queue waiting state indicates that there are historical protocol messages that have not been sent, the network protocol message is sent to the network monitoring device after the historical protocol message is overwritten by the network protocol message; When the queue waiting state indicates that the historical protocol message has been sent, the network protocol message is sent to the network monitoring device.
7. A protocol message transmission device based on a Mesh network, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the protocol message transmission method based on the Mesh network according to any one of claims 1 to 6 through the computer program.
8. A Mesh device, characterized in that: include: Equipment body; The protocol message transmission device based on the Mesh network as described in claim 7 is installed on the device body.
9. A protocol message transmission system based on Mesh network, characterized in that: include: Network monitoring equipment, and The Mesh device as described in claim 8, wherein the Mesh device is communicatively connected to the network monitoring device.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the protocol message transmission method based on the Mesh network according to any one of claims 1 to 6 when running.
Citation Information
Patent Citations
Message reporting method and device
CN111464358A
Method and system for improving performance of wireless Mesh network
CN119383651A
Method for setting retransmission number and responsereceiving time of packet in home network
KR1020040067281A
Message transmission method and system, and related apparatus
WO2022242305A1
Synchronization method and apparatus for wireless mesh network, and electronic device
WO2024124756A1