Mesh network-based protocol message transmission method and device, mesh device, system, and storage medium
Patent Information
- Application Number
- CN202510789472.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2045-06-13
AI Technical Summary
[0005]相关技术中群控下的Mesh设备同时上报报文,这样会导致大量的报文在空中接口转发
[0021]本公开实施例可根据实际网络控制类型进行目标排队时长的确定并进行相应的定时操作,并根据定时时长确定已达到发送网络协议报文时刻时进行报文发送,以使网络监测设备上报报文。这样,网络监测设备在不同时间接收到不同Mesh设备发送的网络协议报文,从而成功接收到所有Mesh设备发送的报文。如此,本公开实施例能够避免出现同时处理所有Mesh设备发送的网络协议报文的情况,有利于提高Mesh网络的网络性能。
Smart Images

Figure CN120659097B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and more specifically, to a method and apparatus for protocol message transmission based on a Mesh network, a Mesh device, a system, and a storage medium. Background Technology
[0002] Currently, with the rapid development of computer network technology and Internet of Things (IoT) technology, the intelligent application scenarios of IoT are becoming increasingly diversified. In the field of smart home appliance technology, BLE-Mesh (Bluetooth Low Energy Mesh) networking technology is being used more and more widely, typically in devices such as smart lights and smart switches. This networking technology is characterized by simple control and relatively small message length. Furthermore, although the message length of BLE-Mesh networking technology is relatively small, it still has the requirement to report the status of controlled Mesh devices and their online status.
[0003] BLE-Mesh networking technology relies on BLE broadcast to transmit data within a relatively small coverage area. In the event of group control, a large number of mesh devices within the coverage area can be controlled simultaneously. In related technologies, all mesh devices simultaneously report their respective messages, which include the status of the mesh device after being controlled and its online status.
[0004] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art:
[0005] In related technologies, mesh devices under group control report packets simultaneously, resulting in a large number of packets being forwarded over the air interface. However, the processing capacity of mesh device chips is limited. When there are too many packets over the air interface, the mesh device chips cannot process a large number of packets at the same time. This causes network monitoring equipment to be unable to effectively receive packets sent by all mesh devices, thus reducing the network performance of the mesh network.
[0006] It should be noted that the information disclosed in the background section above 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 those skilled in the art. Summary of the Invention
[0007] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.
[0008] This disclosure provides a method, apparatus, mesh device, system, and storage medium for transmitting protocol messages based on a mesh network, so as to avoid the situation of processing network protocol messages sent by all mesh devices at the same time when the mesh devices need to report messages simultaneously, thereby improving the network performance of the mesh network.
[0009] In some embodiments, the method is applied to a Mesh device, and includes: receiving a network control request sent by a network monitoring device; determining a network control type based on the network control request; determining a target queuing time for network protocol messages according to the network control type, and initiating a timed operation; and sending network protocol messages to the network monitoring device when the timed duration matches the target queuing time, so that the network monitoring device reports network protocol messages.
[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 according to the network control type, including: generating a random number based on the linear congruential method when the network control type represents group control; determining the target queuing time according to the correspondence between the random number and the queuing time, wherein the random number is positively correlated with the queuing time; and starting the timer to perform a timing operation after determining the target queuing time.
[0011] In some embodiments, determining the target queuing time based on the correspondence between the random number and the queuing time includes: determining the target queuing time based on the remainder between the random number and the reference timing time.
[0012] In some embodiments, generating random numbers based on the linear congruential method includes: obtaining the Bluetooth address of the Mesh device and a random number byte threshold; if the number of bytes in the Bluetooth address is greater than or equal to the random number byte threshold, selecting a byte in the lower bytes of the Bluetooth address that meets the random number byte threshold as an initial random number; or, if the number of bytes in the Bluetooth address is less than the random number byte threshold, padding the lower bytes of the Bluetooth address with zeros according to the random number byte threshold, and then selecting a byte in the lower bytes of the Bluetooth address that meets the random number byte threshold as an initial random number; inputting the initial random number to a random algorithm to calculate and obtain a random number; wherein, the initial random number represents the random value generated by the Mesh device under initial group control.
[0013] In some embodiments, generating random numbers based on the linear congruential method further includes: inputting an initial random number into a random algorithm to calculate and obtain a random number, and then selecting the previously calculated random number as a reference random number.
[0014] Input a baseline random number to the random number algorithm to calculate a new random number; where the previously calculated random number represents the random value generated based on the linear congruential method under the previous group control before this group control.
[0015] In some embodiments, when the timing duration matches the target queuing duration, sending a network protocol message to the network monitoring device includes: obtaining a queue waiting state when the timing duration matches the target queuing duration; sending a network protocol message to the network monitoring device after overwriting the historical protocol message when the queue waiting state indicates that there are historical protocol messages that have not been sent; and sending a network protocol message to the network monitoring device when the queue waiting state indicates that the historical protocol messages have been sent.
[0016] In some embodiments, the apparatus includes a memory and a processor, the memory storing a computer program, and the processor being configured to execute the protocol message transmission method based on any of the preceding Mesh networks 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, the Mesh device being communicatively connected to the network monitoring device.
[0019] In some embodiments, the storage medium, the computer-readable storage medium comprising a stored program, wherein the program, when executed, performs the protocol message transmission method based on any of the preceding Mesh networks.
[0020] The protocol message transmission method, apparatus, mesh device, system, and storage medium based on mesh networks provided in this disclosure can achieve the following technical effects:
[0021] This embodiment of the disclosure can determine the target queuing time based on the actual network control type and perform corresponding timing operations. When the time for sending network protocol messages is determined according to the timing duration, the message is sent, enabling 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, thus successfully receiving messages sent by all mesh devices. Therefore, this embodiment of the disclosure avoids the situation of simultaneously processing network protocol messages sent by all mesh devices, which is beneficial to improving the network performance of the mesh network.
[0022] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description
[0023] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a schematic diagram of the implementation environment of a protocol message transmission method based on a Mesh network according to an embodiment of this application;
[0026] Figure 2 This is a schematic diagram of a protocol message transmission method based on a Mesh network provided in an embodiment of this disclosure;
[0027] Figure 3 This is a schematic diagram of another protocol message transmission method based on a Mesh network provided in this embodiment of the disclosure;
[0028] Figure 4 This is a schematic diagram of another protocol message transmission method based on a Mesh network provided in this embodiment of the disclosure;
[0029] Figure 5 This is a schematic diagram of another protocol message transmission method based on a Mesh network provided in this embodiment of the disclosure;
[0030] Figure 6 This is a schematic diagram of a protocol message transmission device based on a Mesh network provided in an embodiment of this disclosure. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] According to one aspect of the embodiments of this application, a protocol message transmission method based on a mesh network is provided. This mesh network-based protocol message transmission method is widely used in whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned mesh network-based protocol message transmission method can be applied to, for example... Figure 1 The hardware environment shown consists of a Mesh (wireless mesh network) device 102 and a network monitoring device 104. For example... 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, a switch, or a router.
[0034] The aforementioned networks may include, but are not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network (WAN), metropolitan area network (MAN), local area network (LAN). The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. Mesh device 102 may not be 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 washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaners, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, etc.
[0035] In this embodiment of the disclosure, the Mesh device includes a timer for performing timed operations based on a target queuing duration.
[0036] Combination Figure 2 As shown, this 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 the network monitoring device and determines the network control type based on the network control request.
[0038] S02, the Mesh device determines the target queuing time for network protocol packets based on the network control type and initiates a timed operation.
[0039] S03, when the timing duration matches the target queuing duration, the Mesh device sends network protocol messages to the network monitoring device so that the network monitoring device can report network protocol messages.
[0040] In this step, the timing duration is matched with the target queuing time, including: the timing duration is greater than or equal to the target queuing time.
[0041] The protocol message transmission method based on a mesh network provided in this disclosure involves a mesh device receiving a network control request from a network monitoring device and determining the network control type based on the request. The mesh device then determines the target queuing time for network protocol messages 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 to send the mesh device's network protocol message has arrived, and the mesh device sends the network protocol message to the network monitoring device. This disclosure allows for determining the target queuing time based on the actual network control type and performing corresponding timing operations. The message is sent when the timing duration determines that the time to send the network protocol message has arrived, enabling the network monitoring device to report the message. This allows the network monitoring device to receive network protocol messages from different mesh devices at different times, thus successfully receiving messages from all mesh devices. This avoids the situation where all network protocol messages from all mesh devices are processed simultaneously, improving the network performance of the mesh network.
[0042] Optionally, the network control request includes a network control type. Combined with... Figure 3 As shown, the Mesh device determines the target queuing time for network protocol packets based on the network control type, including:
[0043] S11, when the network control type represents group control, the Mesh device generates random numbers based on the linear congruential method.
[0044] In this step, if the network control type indicates group control, it means all Mesh devices are controlled simultaneously. If the network control type indicates single group control, it means each Mesh device is controlled individually.
[0045] S12, the Mesh device determines the target queuing time based on the correspondence between the random number and the queuing time, wherein the random number and the queuing time are positively correlated.
[0046] S13, after determining the target queuing time, the Mesh device starts a timer to perform a timed operation.
[0047] Thus, in this embodiment of the disclosure, when the network control type indicates group control, it means that all Mesh devices are controlled simultaneously. To avoid the network monitoring device simultaneously receiving network protocol messages sent by all Mesh devices, this embodiment of the disclosure determines the target queuing time based on the positive correlation between random numbers and queuing time, and starts the timing operation of a timer according to the target queuing time. In this way, different Mesh devices no longer send network protocol messages simultaneously, but instead send them selectively according to the timing of the timer, so that the network monitoring device receives the network protocol messages of 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 based on the correspondence between the random number and the queuing time, including: the Mesh device determines the target queuing time based on the remainder between the random number and the baseline timing time.
[0049] Thus, this embodiment of the disclosure can calculate the target queuing time by taking the remainder of a random number and a baseline timing duration. This not only accurately determines the target queuing time but also reduces computational complexity. Furthermore, by using the remainder of a random number and a baseline timing duration, it avoids situations where the number of Mesh devices is small, resulting in excessively long response times for the Mesh devices.
[0050] Combination Figure 4 As shown in the embodiments of this disclosure, a method for transmitting protocol messages based on a Mesh network is also provided, including:
[0051] S21, the Mesh device receives a network control request sent by the network monitoring device and determines the network control type based on the network control request.
[0052] S22, when the network control type represents group control, the Mesh device generates random numbers based on the linear congruential method.
[0053] S23, the Mesh device determines the target queuing time based on the correspondence between the random number and the queuing time, wherein the random number and the queuing time are positively correlated.
[0054] S24, after determining the target queuing time, the Mesh device starts a timer to perform a timed operation.
[0055] S25, when the timing duration matches the target queuing duration, the Mesh device sends network protocol messages to the network monitoring device so that the network monitoring device can report network protocol messages.
[0056] S26, when the network control type indicates a single group control, the Mesh device sends network protocol messages to the network monitoring device so that the network monitoring device can report network protocol messages.
[0057] The protocol message transmission method based on a mesh network provided in this disclosure, under group control (representing network control type), generates random numbers using a linear congruential method, determines the target queuing time based on the positive correlation between the random numbers and queuing time, and performs corresponding timing operations. When the time to send a network protocol message is determined according to the timing duration, the message is sent, enabling the network monitoring device to report the message. In this way, under group control, the network monitoring device receives network protocol messages sent by different mesh devices at different times, thus successfully receiving messages sent by all mesh devices. This embodiment avoids the situation of simultaneously processing network protocol messages sent by all mesh devices, which is beneficial to improving the network performance of the mesh network. Under single-group control, there is no situation of simultaneously processing network protocol messages sent by all mesh devices. In this case, the mesh devices in this embodiment directly send network protocol messages to the network monitoring device for message reporting. This embodiment can execute different message reporting strategies based on the actual network control type, avoiding the poor network performance problems that exist under group control.
[0058] Optionally, the Mesh device generates random numbers based on the linear congruential method, including:
[0059] Mesh devices obtain the Bluetooth address and random number threshold of the Mesh device.
[0060] If 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 initial 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 byte of the Bluetooth address with zeros according to the random number byte threshold, and then selects the byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initial random number.
[0062] Mesh devices input an initial random number to a random algorithm to calculate a random number.
[0063] In this embodiment, the Mesh device first obtains its Bluetooth address and a random number byte threshold to generate random numbers. Then, when the number of bytes in the Bluetooth address is greater than or equal to the random number byte threshold, the byte in the lower bytes of the Bluetooth address that meets the random number byte threshold is selected as the initial random number. When the number of bytes in the Bluetooth address is less than the random number byte threshold, the lower bytes of the Bluetooth address are padded with zeros according to the random number byte threshold, and the byte in the lower bytes that meets the random number byte threshold is selected as the initial random number. Finally, the Mesh device inputs the initial random number to the random algorithm to obtain a random number. This embodiment determines the initial random number based on the Bluetooth address of the Mesh device, which can obtain a random number 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 four 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. Since the Bluetooth address is less than the random number byte threshold, the Mesh device pads the lower bytes of the Bluetooth address with zeros according to the random number byte threshold, and then selects the lower six bytes of the Bluetooth address as the initial random number.
[0066] It should be noted that the random number byte threshold can be set according to the actual scenario. As an example, the random number 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 the actual scenario, the larger the random number byte threshold. The smaller the total number of mesh devices in the actual scenario, the smaller the random number byte threshold.
[0067] Optionally, combined Figure 5 As shown, the Mesh device generates random numbers based on the linear congruential method, including:
[0068] S31, the Mesh device obtains the Bluetooth address and random number threshold of the Mesh device.
[0069] S32, if 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 initial random number.
[0070] S33, if the number of bytes in the Bluetooth address is less than the random number byte threshold, the Mesh device pads the low byte of the Bluetooth address with zeros according to the random number byte threshold, and then selects the byte in the low byte of the Bluetooth address that meets the random number byte threshold as the initial random number.
[0071] S34, Mesh device inputs initial random number to random algorithm to calculate random number.
[0072] S35, after the Mesh device inputs an initial random number to the random algorithm to calculate a random number, it selects the random number obtained in the previous calculation as the base random number.
[0073] S36, the Mesh device inputs a baseline random number to a random number algorithm to calculate a new random number. The initial random number represents the random value generated by the Mesh device during the first group control, while the previously calculated random number represents the random value generated by the Mesh device using the linear congruential method during the previous group control before this group control.
[0074] Thus, this embodiment of the present disclosure, while obtaining random numbers strongly correlated with Bluetooth addresses, 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 network protocol messages to the network monitoring device, including:
[0076] When the timed duration matches the target queuing duration, the Mesh device obtains a queue waiting state.
[0077] When the queue waiting state indicates that there are historical protocol messages that have not been sent, the Mesh device sends a network protocol message to the network monitoring device after overwriting the historical protocol message with the network protocol message.
[0078] When the queue waiting state indicates that the historical protocol messages have been sent, the Mesh device sends network protocol messages to the network monitoring device.
[0079] In this way, when the timing duration matches the target queuing duration, it indicates that the time has been reached to send the Mesh device network protocol message. At this time, the Mesh device also obtains a queue waiting state. If the queue waiting state indicates that there are historical protocol messages that have not been sent, then the network protocol message is sent to the network monitoring device after overwriting the historical protocol messages. If the queue waiting state indicates that the historical protocol messages have been sent, then the network protocol message is sent directly to the network monitoring device. This embodiment of the disclosure can avoid the situation of processing 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, it ensures the real-time reporting of messages.
[0080] Combination Figure 6 As shown, this 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, communication interface 702, and memory 701 can communicate with each other via the bus 703. The communication interface 702 can be used for information transmission. The processor 700 can call logical instructions in the memory 701 to execute the protocol message transmission method based on a mesh network described in the above embodiment.
[0081] Furthermore, the logic instructions in the aforementioned memory 701 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0082] The 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 this disclosure. The processor 700 executes functional applications and data processing by running the program instructions / modules stored in the memory 701, thereby implementing the protocol message transmission method based on a Mesh network as described above.
[0083] The memory 701 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 701 may include high-speed random access memory and may also include non-volatile memory.
[0084] This disclosure provides a Mesh device, including a device body and the aforementioned Mesh network-based protocol message transmission device 70. The Mesh network-based protocol message transmission device 70 is installed on the device body. The installation relationship described herein is not limited to placement within the device 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. Those skilled in the art will understand that the Mesh network-based protocol message transmission device 70 can be adapted to feasible device bodies to achieve other feasible embodiments.
[0085] This disclosure provides a protocol message transmission system based on a mesh network, including a network monitoring device and a mesh device as described above. The mesh device is communicatively connected to the network monitoring device.
[0086] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to execute the above-described Mesh network-based protocol message transmission method.
[0087] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc., and other media capable of storing program code.
[0088] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.
[0089] Those skilled in the art will recognize that the units and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0090] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this disclosure may be integrated into one 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 illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending 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 blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using 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, which include timers, the methods include: Receive network control requests sent by network monitoring devices, and determine the network control type based on the network control requests; wherein, the network control request includes the network control type; Based on the network control type, determine the target queuing time for network protocol messages and initiate timed 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 can report the network protocol message. The target queuing time for network protocol messages is determined based on the network control type, including: When the network control type represents group control, random numbers are generated based on the linear congruential method. The target queuing time is determined based on the correspondence between random numbers and queuing time, where the random numbers are positively correlated with the queuing time. After determining the target queuing time, start the timer to perform the timed operation; Random number generation based on the linear congruential method includes: Obtain the Bluetooth address and random number threshold of the Mesh device; If the number of bytes in the Bluetooth address is greater than or equal to the random number byte threshold, select the byte in the lower bytes of the Bluetooth address that meets the random number byte threshold as the initial 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 then the byte in the low byte of the Bluetooth address that meets the random number byte threshold is selected as the initial random number. Input an initial random number to the random algorithm to calculate a random number; where the initial random number represents the random value generated by the Mesh device under initial group control.
2. The method according to claim 1, characterized in that, The target queuing time is determined based on the correspondence between random numbers and queuing times, including: The target queuing time is determined by the remainder between the random number and the baseline timing duration.
3. The method according to claim 1, characterized in that, Random number generation based on the linear congruential method also includes: After inputting an initial random number into the random algorithm to calculate a random number, select the previously calculated random number as the base random number; Input a baseline random number into a random number algorithm to calculate a new random number; The random number obtained in the previous calculation represents the random value generated based on the linear congruence method under the previous group control before the current group control.
4. The method according to any one of claims 1 to 3, characterized in that, Sending network protocol messages to the network monitoring device, including: Get the queue waiting status; When the queue waiting state indicates that there are historical protocol messages that have not been sent, a 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 messages have been sent, a network protocol message is sent to the network monitoring device.
5. A protocol message transmission device based on a mesh network, comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the protocol message transmission method based on a Mesh network as described in any one of claims 1 to 4 through the computer program.
6. A Mesh device, characterized in that, include: Equipment body; The protocol message transmission device based on a Mesh network as described in claim 5 is installed on the device body.
7. A protocol message transmission system based on a mesh network, characterized in that, include: Network monitoring equipment, and The Mesh device as described in claim 6 is communicatively connected to the network monitoring device.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the protocol message transmission method based on a Mesh network as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system for improving performance of wireless Mesh network
CN119383651A