A message processing method, apparatus, device, and storage medium

By monitoring the Bluetooth wireless grid network in real time and delaying the sending of the status change message of the device node, network congestion and message packet loss caused by the simultaneous status changes of a large number of device nodes are solved, and higher network stability and message delivery reliability are achieved.

CN115942260BActive Publication Date: 2025-06-27SHANGHAI MXCHIP INFORMATION TECHN
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211521582.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-06-27
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

In Bluetooth wireless grid network, when a large number of device nodes change at the same time, a large number of messages will be generated instantly, which may lead to network congestion and packet loss of messages.

Method used

By monitoring the target Bluetooth wireless grid network in real time, it is determined whether there is a preset number of device nodes' status changes simultaneously. If present, these device nodes are immediately triggered to send state change messages outward at different times, and generate random time through the random number generation component to delay message transmission.

Benefits of technology

Decentralize large and instantaneous messages to avoid network congestion, reduce message packet loss rate, and improve network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115942260B_ABST
    Figure CN115942260B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of Bluetooth wireless mesh network communication, and discloses a message processing method, apparatus, device and storage medium, including: performing real-time monitoring on a target Bluetooth wireless mesh network to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; if so, immediately triggering the preset number of device nodes to send status change messages outward at different times respectively. It can be seen that by real-time monitoring the target Bluetooth wireless mesh network, the present application discovers the device nodes whose states change simultaneously in the network, and enables these device nodes to send status change messages outward at different times, so as to disperse the processing of a large number of instantaneous messages, and avoid the problem that a high message loss rate is caused by network congestion due to a large number of instantaneous messages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Bluetooth wireless mesh network communication, and particularly relates to a message processing method, apparatus, device, and storage medium. Background Art

[0002] A Bluetooth wireless mesh network (Bluetooth Mesh network) is a multi-to-multi network, and each device node in the network can communicate freely with other device nodes. Messages are the communication carriers in the Bluetooth wireless mesh network. When a device node queries the status of other device nodes or reports a status change to other device nodes, it needs to send a corresponding type of message. For example, when a light changes from on to off (the status changes), it needs to send a message to inform other nodes such as other lights or gateways of its status change.

[0003] In the existing Bluetooth wireless mesh network, after the status of a device node changes, it directly sends a message. In this case, when the status of a single or a small number of device nodes changes and they send messages to inform other device nodes, there will be no problem. However, when the status of a large number of device nodes changes simultaneously, a large number of messages will be generated instantaneously. If the network is busy when a device node's status changes, the message it sends may be lost, that is, it may cause network congestion and result in a high message loss rate.

[0004] Therefore, the above technical problems need to be solved by those skilled in the art urgently. Summary of the Invention

[0005] In view of this, the purpose of the present invention is to provide a message processing method, apparatus, device, and storage medium, which can avoid the problem of high message loss rate caused by network congestion due to a large number of instantaneous messages. The specific solutions are as follows:

[0006] The first aspect of the present application provides a message processing method, including:

[0007] Performing real-time monitoring on a target Bluetooth wireless mesh network to determine whether the statuses of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; wherein, the preset number is positively correlated with the number of messages causing network congestion;

[0008] If so, immediately trigger the preset number of device nodes to send status change messages outward at different times respectively.

[0009] Optionally, the determining whether the statuses of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment includes:

[0010] If it is detected that there is a group control instruction in the target Bluetooth wireless mesh network at the current moment, then determine the control object of the group control instruction as the device nodes whose states change simultaneously at the current moment.

[0011] Optionally, the immediately triggering the preset number of device nodes to send status change messages outward at different moments includes:

[0012] Immediately trigger the random number generation component on the preset number of device nodes to generate a first random time corresponding to itself;

[0013] Control the preset number of device nodes to wait for the corresponding first random time of itself before sending a status change message outward.

[0014] Optionally, after controlling the preset number of device nodes to wait for the corresponding first random time of itself, it further includes:

[0015] Trigger the random number generation component on the preset number of device nodes to generate a second random time corresponding to itself;

[0016] Control the preset number of device nodes to wait for the corresponding second random time of itself after waiting for the corresponding first random time of itself, so that the preset number of device nodes determine whether they have received status change messages sent by other device nodes in the target Bluetooth wireless mesh network during the waiting second random time;

[0017] If not, then trigger the corresponding device node to start sending a status change message outward, if so, then trigger the steps of the device node generating a random time and waiting.

[0018] Optionally, the message processing method further includes:

[0019] Control the device nodes in the target Bluetooth wireless mesh network to filter the received message packets at the bottom layer of the Bluetooth protocol stack to screen out the low-power Bluetooth broadcast packets generated by the Bluetooth wireless mesh network devices;

[0020] Transmit the screened low-power Bluetooth broadcast packets to the upper layer protocol for processing, and discard other message packets received except the low-power Bluetooth broadcast packets.

[0021] Optionally, the controlling the device nodes in the target Bluetooth wireless mesh network to filter the received message packets at the bottom layer of the Bluetooth protocol stack includes:

[0022] The Bluetooth controller layer that controls the device nodes in the target Bluetooth wireless mesh network passes the received message packets to the host control interface layer, so that the host control interface layer filters the passed message packets.

[0023] Optionally, the host control interface layer filtering the passed message packets includes:

[0024] The host control interface layer parses the passed message packets and obtains the type field at the position of the message packet header;

[0025] Judging whether the message packet is the low-power Bluetooth broadcast packet according to the type field; wherein, the type field is used to characterize the device type that generates the message packet.

[0026] The second aspect of the present application provides a message processing device, including:

[0027] A monitoring module, configured to perform real-time monitoring on the target Bluetooth wireless mesh network to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; wherein, the preset number is positively correlated with the number of messages causing network congestion;

[0028] A message sending module, configured to, if so, immediately trigger the preset number of device nodes to send status change messages outward at different times respectively.

[0029] The third aspect of the present application provides an electronic device, the electronic device includes a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the foregoing message processing method.

[0030] The fourth aspect of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the foregoing message processing method is implemented.

[0031] In the present application, the target Bluetooth wireless mesh network is monitored in real time to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; if so, immediately trigger the preset number of device nodes to send status change messages outward at different times respectively. It can be seen that by monitoring the target Bluetooth wireless mesh network in real time, the present application discovers the device nodes whose states change simultaneously in the network, and enables these device nodes to send status change messages outward at different times, so as to disperse the processing of a large number of instantaneous messages, and avoid the problem of high message loss rate caused by network congestion due to a large number of instantaneous messages. Description of the Drawings

[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on the provided drawings.

[0033] Figure 1 It is a flowchart of a message processing method provided by this application;

[0034] Figure 2 It is a flowchart of a specific message sending delay processing method provided by this application;

[0035] Figure 3 It is a schematic diagram of a specific message sending delay processing process provided by this application;

[0036] Figure 4 It is a flowchart of a specific message processing method provided by this application;

[0037] Figure 5 It is a flowchart of a specific message sending filtering processing method provided by this application;

[0038] Figure 6 It is a schematic diagram of a specific message processing method provided by this application;

[0039] Figure 7 It is a schematic diagram of the structure of a message processing device provided by this application;

[0040] Figure 8 It is a structural diagram of a message processing electronic device provided by this application. Specific embodiments

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0042] In an existing Bluetooth wireless mesh network, after the state of a device node changes, it directly sends a message. In this case, when the state of a single or a small number of device nodes changes and they inform other device nodes by sending messages outward, there will be no problem. However, when the states of a large number of device nodes change simultaneously, a large number of messages will be instantaneously generated. If the network is busy just when a device node's state changes, the messages it sends may be lost, that is, it may lead to network congestion and a high message loss rate. To address the above technical deficiencies, this application provides a message processing solution. By real-time monitoring of the target Bluetooth wireless mesh network, device nodes whose states change simultaneously in the network are found, and these device nodes send state change messages outward at different times, thereby dispersing the processing of a large number of instantaneous messages and avoiding the problem of high message loss rate caused by network congestion due to a large number of instantaneous messages.

[0043] Figure 1 It is a flowchart of a message processing method provided by an embodiment of this application. Refer to Figure 1 As shown, the message processing method includes:

[0044] S11: Real-time monitor the target Bluetooth wireless mesh network to determine whether there are a preset number of device nodes in the target Bluetooth wireless mesh network whose states change simultaneously at the current moment; wherein, the preset number is positively correlated with the number of messages that cause network congestion.

[0045] Device nodes in the target Bluetooth wireless mesh network in the field of the whole-house intelligent control system can send messages and also receive messages. Whether it is sending or receiving, messages need to be processed. This embodiment mainly optimizes the message sending process of device nodes in the target Bluetooth wireless mesh network, and is essentially also a method to solve the congestion of the Bluetooth wireless mesh network.

[0046] In this embodiment, first, the target Bluetooth wireless mesh network needs to be real-time monitored. The purpose of real-time monitoring is to determine whether there are a preset number of device nodes in the target Bluetooth wireless mesh network whose states change simultaneously at the current moment. The above preset number is not set randomly, and it is positively correlated with the number of messages that cause network congestion. It can be understood that a large number of message transmissions will cause network congestion, so the device nodes whose states change simultaneously should also be a large number, and there is a positive correlation between the two. That is, the purpose of real-time monitoring is to determine whether there are a large number of device nodes in the target Bluetooth wireless mesh network whose states change simultaneously at the current moment.

[0047] Furthermore, considering that the reason for the simultaneous state changes of a large number of device nodes in the target Bluetooth wireless mesh network is group control, this embodiment proposes that the occurrence or non-occurrence of the group control phenomenon can be used as a monitoring basis. When the target Bluetooth wireless mesh network is monitored in real time, if a group control instruction is detected in the target Bluetooth wireless mesh network at the current moment, the control objects of the group control instruction are determined as the device nodes whose states change simultaneously at the current moment.

[0048] S12: If it exists, immediately trigger the preset number of device nodes to send status change messages outward at different times.

[0049] In this embodiment, if the real-time monitoring result of the target Bluetooth wireless mesh network indicates that the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment, then immediately trigger the preset number of device nodes to send status change messages outward at different times. It can be understood that when the states of a large number of device nodes change simultaneously, a large number of instantaneous messages will be generated, which will cause network congestion at this time, and even more seriously, it will cause a network storm. In this embodiment, the preset number of device nodes are made to send status change messages outward at different times, and the instantaneous and large number of messages are evenly dispersed, which will relieve the network pressure and reduce the risk of network congestion and even network storm. Specifically, it includes the following steps ( Figure 2 is the corresponding flowchart):

[0050] S121: Immediately trigger the random number generation component on the preset number of device nodes to generate a first random time corresponding to itself.

[0051] S122: Control the preset number of device nodes to wait for the first random time corresponding to themselves.

[0052] In this embodiment, the device nodes are randomly delayed in sending messages mainly by generating random numbers, and a random number generation component is provided on the device nodes. If a group control instruction is detected in the target Bluetooth wireless mesh network at the current moment, immediately trigger the random number generation component on the preset number of device nodes to generate a first random time corresponding to itself. The random time generated by the random number generation component is a true random number, and the random number generation algorithm can refer to the existing algorithm, which will not be discussed in this embodiment. Then control the preset number of device nodes to wait for the first random time corresponding to themselves. The random number generation component on each device node generates the random number time of its own node, and each device node waits for the random number time generated by the random number generation component on itself, and there is no association between them.

[0053] Each node device waits for the above first random number before sending out a status change message. And in the target Bluetooth wireless mesh network, if the status change is caused by group control, then after a relatively long random time delay, the message will be sent out. Since the delay time is a random number, the probability of message collision between device nodes is very low, and it will not cause network congestion.

[0054] S123: Trigger the random number generation component on the preset number of device nodes to generate a second random time corresponding to itself.

[0055] S124: Control the preset number of device nodes to wait for the second random time corresponding to itself after waiting for the first random time corresponding to itself, so that the preset number of device nodes can judge whether they have received a status change message sent by other device nodes in the target Bluetooth wireless mesh network during the waiting second random time.

[0056] S125: If not, trigger the corresponding device node to start sending out a status change message; if so, trigger the step of the device node generating a random time and waiting.

[0057] In this embodiment, since there may still be the same waiting time for multiple devices in the above steps, in order to ensure that only one device node sends out a message at each moment, this embodiment adds another waiting mechanism, that is, waiting for the second random time after waiting for the first random time, and if no other device node sends a message during this period, then send out its own message.

[0058] Specifically, first trigger the random number generation component on the preset number of device nodes to generate a second random time corresponding to itself. Then control the preset number of device nodes to wait for the second random time corresponding to itself after waiting for the first random time corresponding to itself, so that the preset number of device nodes can judge whether they have received a status change message sent by other device nodes in the target Bluetooth wireless mesh network during the waiting second random time. If not, trigger the corresponding device node to start sending out a status change message; if so, trigger the step of the device node generating a random time and waiting. Before a Bluetooth mesh device sends a message, it will first wait for a relatively long first random time, and then wait for a very short second random time. If no other device sends a message during this period, it will send out its own message. If it receives a message from other devices, it will randomly delay for a period of time. The specific process is as Figure 3 shown.

[0059] It can be seen that the embodiment of the present application monitors the target Bluetooth wireless mesh network in real time to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; if so, it immediately triggers the preset number of device nodes to send status change messages outward at different times. By monitoring the target Bluetooth wireless mesh network in real time, the embodiment of the present application discovers the device nodes whose states change simultaneously in the network, and enables these device nodes to send status change messages outward at different times, so as to disperse the processing of a large number of instantaneous messages, and avoid the problem of high message loss rate caused by network congestion due to a large number of instantaneous messages.

[0060] Figure 4 It is a flowchart of a specific message processing method provided by the embodiment of the present application. Refer to Figure 4 As shown, the message processing method includes:

[0061] S21: Control the device nodes in the target Bluetooth wireless mesh network to filter the message packets received at the bottom layer of the Bluetooth protocol stack to screen out the Bluetooth Low Energy (BLE) broadcast packets generated by the Bluetooth wireless mesh network devices.

[0062] This embodiment mainly optimizes the message receiving and processing process of the device nodes in the target Bluetooth wireless mesh network. The device nodes in the target Bluetooth wireless mesh network will receive various message packets, including Bluetooth (Mesh) broadcast packets and non-Bluetooth broadcast packets. The device nodes in the target Bluetooth wireless mesh network only need to process the Bluetooth broadcast packets through layers of protocols and directly discard the non-Bluetooth broadcast packets. Among them, the Bluetooth broadcast packet is a BLE (Bluetooth Low Energy) broadcast packet, and the device nodes in the target Bluetooth wireless mesh network communicate through the BLE broadcast packets. The non-Bluetooth broadcast packets are broadcast packets generated by smart bracelets, Bluetooth locators, etc., and these broadcast packets will be screened and filtered out after reaching the Bluetooth Mesh layer.

[0063] In an office environment, Bluetooth broadcast packets only account for 14% of the total message packets, which means that the Bluetooth Mesh chips in the device nodes need to spend more RAM and CPU to process the 86% of the broadcast packet messages that are not needed. Considering that a message packet will go through the processing of the Bluetooth controller layer, HCI interface layer, Bluetooth host layer, and Bluetooth Mesh layer, and each layer will consume RAM resources and CPU calculations, this wastes the precious RAM and CPU resources of the Bluetooth chip and also increases the power consumption.

[0064] This embodiment is mainly used to select BLE broadcast packets from numerous message packets for in-depth protocol analysis. To solve this problem, this embodiment directly filters out non-Bluetooth broadcast packet messages at the bottom layer of the Bluetooth protocol stack. That is, it controls the device nodes in the target Bluetooth wireless mesh network to filter the received message packets at the bottom layer of the Bluetooth protocol stack to screen out the low-power Bluetooth broadcast packets generated by the Bluetooth wireless mesh network devices. The specific steps are as follows( Figure 5 For the corresponding flowchart):

[0065] S211: Control the Bluetooth controller layer of the device nodes in the target Bluetooth wireless mesh network to transfer the received message packets to the host control interface layer, so that the host control interface layer filters the transferred message packets.

[0066] S212: The host control interface layer parses the transferred message packets and obtains the type field at the position of the message packet header.

[0067] S213: Judge whether the message packet is the low-power Bluetooth broadcast packet according to the type field; wherein, the type field is used to represent the device type that generates the message packet.

[0068] After a Bluetooth chip of a device node receives a BLE broadcast packet, it needs to go through the processing of four protocol layers: the Bluetooth controller layer, the host control interface layer (HCI interface layer), the Bluetooth host layer, and the Bluetooth Mesh layer. Each layer will consume RAM resources and CPU calculations. This embodiment mainly intercepts non-Bluetooth broadcast packets at the host control interface layer. Specifically, it controls the Bluetooth controller layer of the device nodes in the target Bluetooth wireless mesh network to transfer the received message packets to the host control interface layer, so that the host control interface layer filters the transferred message packets.

[0069] Furthermore, the host control interface layer parses the transferred message packets and obtains the type field at the position of the message packet header, and then judges whether the message packet is the low-power Bluetooth broadcast packet according to the type field; wherein, the type field is used to represent the device type that generates the message packet. The header of the BLE broadcast packet contains a type field, which is one byte in length, indicating what type of device generates and sends this broadcast packet. The type fields contained in the header of the BLE broadcast packet are mainly 0x2A and 0x2B.

[0070] S22: Transfer the filtered low-power Bluetooth broadcast packets to the upper-layer protocol for processing, and discard other message packets received except the low-power Bluetooth broadcast packets.

[0071] In this embodiment, the filtered low-power Bluetooth broadcast packets are passed to the upper-layer protocol for processing, and other received message packets except the low-power Bluetooth broadcast packets are discarded. In the above process, the type of the BLE broadcast packet is directly judged in the HCI interface layer to filter out non-Bluetooth Mesh broadcast packets. If it is a Bluetooth Mesh broadcast packet type, it is handed over to the Bluetooth host layer for processing; otherwise, it is directly discarded. Such an implementation is simple and efficient, saving the processing of the Bluetooth host layer and the Bluetooth Mesh layer, and greatly saving RAM and CPU resources. Specifically, as Figure 6 shown.

[0072] It can be seen that in the embodiment of the present application, the device nodes in the target Bluetooth wireless mesh network are first controlled to filter the received message packets at the bottom layer of the Bluetooth protocol stack to screen out the low-power Bluetooth broadcast packets generated by the Bluetooth wireless mesh network devices; then the filtered low-power Bluetooth broadcast packets are passed to the upper-layer protocol for processing, and other received message packets except the low-power Bluetooth broadcast packets are discarded. The embodiment of the present application directly filters out non-Bluetooth Mesh messages at the bottom layer of the Bluetooth protocol stack, saving RAM consumption and CPU processing time, and at the same time reducing the power consumption of the Bluetooth chip.

[0073] See Figure 7 shown, the embodiment of the present application also correspondingly discloses a message processing device, including:

[0074] A monitoring module 11, configured to perform real-time monitoring on the target Bluetooth wireless mesh network to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; wherein, the preset number is positively correlated with the number of messages causing network congestion;

[0075] A message sending module 12, configured to, if so, immediately trigger the preset number of device nodes to send status change messages outward at different times respectively.

[0076] It can be seen that the embodiment of the present application performs real-time monitoring on the target Bluetooth wireless mesh network to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; if so, immediately trigger the preset number of device nodes to send status change messages outward at different times respectively. The embodiment of the present application discovers the device nodes whose states change simultaneously in the network by real-time monitoring the target Bluetooth wireless mesh network, and enables these device nodes to send status change messages outward at different times, so as to disperse the processing of a large number of instantaneous messages, and avoid the problem of high message loss rate caused by network congestion due to a large number of instantaneous messages.

[0077] In some specific embodiments, the monitoring module 11 is specifically configured to, if it monitors that there is a group control instruction in the target Bluetooth wireless mesh network at the current moment, determine the control object of the group control instruction as the device nodes whose states change simultaneously at the current moment.

[0078] In some specific embodiments, the message sending module 12 specifically includes:

[0079] A first triggering unit, configured to immediately trigger the random number generation components on the preset number of device nodes to generate a first random time corresponding to themselves;

[0080] A first waiting unit, configured to control the preset number of device nodes to wait for the first random time corresponding to themselves before sending out a status change message;

[0081] A second triggering unit, configured to trigger the random number generation components on the preset number of device nodes to generate a second random time corresponding to themselves;

[0082] A second waiting unit, configured to control the preset number of device nodes to wait for the second random time corresponding to themselves after waiting for the first random time corresponding to themselves, so that the preset number of device nodes determine whether they have received a status change message sent by other device nodes in the target Bluetooth wireless mesh network during the waiting second random time; if not, trigger the corresponding device node to start sending out a status change message, and if so, trigger the step of the device node generating a random time and waiting.

[0083] In some specific embodiments, the message processing device further includes:

[0084] A message filtering module, configured to control the device nodes in the target Bluetooth wireless mesh network to filter the received message packets at the bottom layer of the Bluetooth protocol stack to screen out the low-power Bluetooth broadcast packets generated by the Bluetooth wireless mesh network devices;

[0085] An upload and discard module, configured to transfer the screened low-power Bluetooth broadcast packets to the upper layer protocol for processing and discard other message packets received except the low-power Bluetooth broadcast packets.

[0086] In some specific embodiments, the message filtering module specifically includes:

[0087] A transfer unit, configured to control the Bluetooth controller layer of the device nodes in the target Bluetooth wireless mesh network to transfer the received message packets to the host control interface layer, so that the host control interface layer filters the transferred message packets;

[0088] A field acquisition and type judgment unit is configured to parse the message packet transmitted by the host control interface layer and obtain the type field at the header position of the message packet, and determine whether the message packet is the low-power Bluetooth broadcast packet according to the type field; wherein, the type field is used to represent the device type that generates the message packet.

[0089] Furthermore, an embodiment of the present application also provides an electronic device. Figure 8 It is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure should not be considered as any limitation to the scope of use of the present application.

[0090] Figure 8 It is a schematic structural diagram of an electronic device 20 provided by an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the message processing method disclosed in any of the foregoing embodiments.

[0091] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of the present application, and specific limitations are not imposed on it here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application requirements, and no specific limitations are made here.

[0092] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, a random access memory, a disk, or an optical disc, etc., and the resources stored thereon can include an operating system 221, a computer program 222, and data 223, etc., and the storage method can be short-term storage or permanent storage.

[0093] Among them, the operating system 221 is used to manage and control each hardware device and the computer program 222 on the electronic device 20 to implement the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. The computer program 222 can further include a computer program capable of completing other specific tasks in addition to the computer program capable of completing the message processing method executed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 can include the status change data collected by the electronic device 20.

[0094] Furthermore, the embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the message processing method disclosed in any of the foregoing embodiments are implemented.

[0095] The various embodiments in this specification are described in a progressive manner. The key point of each embodiment is the difference from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description of the method part.

[0096] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0097] The message processing method, device, equipment and storage medium provided by the present invention have been introduced in detail above. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A message processing method, characterized in that, Including: Performing real-time monitoring on a target Bluetooth wireless mesh network to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; wherein, the preset number is positively correlated with the number of messages causing network congestion; If so, immediately triggering the preset number of device nodes to send status change messages outward at different times respectively; Controlling device nodes in the target Bluetooth wireless mesh network to filter message packets received at the bottom layer of the Bluetooth protocol stack to screen out low-power Bluetooth broadcast packets generated by Bluetooth wireless mesh network devices; Transmitting the screened low-power Bluetooth broadcast packets to the upper layer protocol for processing and discarding other message packets received except the low-power Bluetooth broadcast packets.

2. The message processing method according to claim 1, wherein The determining whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment includes: If a group control instruction is detected in the target Bluetooth wireless mesh network at the current moment, determining the control objects of the group control instruction as the device nodes whose states change simultaneously at the current moment.

3. The message processing method according to claim 2, wherein The immediately triggering the preset number of device nodes to send status change messages outward at different times respectively includes: Immediately triggering a random number generation component on the preset number of device nodes to generate a first random time corresponding to itself; Controlling the preset number of device nodes to wait for the corresponding first random time of itself and then send a status change message outward.

4. The message processing method according to claim 3, wherein After controlling the preset number of device nodes to wait for the corresponding first random time of itself, it further includes: Triggering the random number generation component on the preset number of device nodes to generate a second random time corresponding to itself; Controlling the preset number of device nodes to wait for the corresponding second random time of itself after waiting for the corresponding first random time of itself, so that the preset number of device nodes determine whether they receive status change messages sent by other device nodes in the target Bluetooth wireless mesh network during the waiting second random time; If not, triggering the corresponding device node to start sending a status change message outward, and if so, triggering the steps of the device node generating a random time and waiting.

5. The message processing method according to any one of claims 1 to 4, characterized in that The controlling device nodes in the target Bluetooth wireless mesh network to filter message packets received at the bottom layer of the Bluetooth protocol stack includes: Controlling the Bluetooth controller layer of device nodes in the target Bluetooth wireless mesh network to transmit the received message packets to the host control interface layer, so that the host control interface layer filters the transmitted message packets.

6. The message processing method according to claim 5, characterized in that The host control interface layer filtering the transmitted message packets includes: The host control interface layer parsing the transmitted message packets and obtaining the type field at the position of the message packet header; Judging whether the message packet is the low-power Bluetooth broadcast packet according to the type field; wherein, the type field is used to represent the device type generating the message packet.

7. A message processing device, characterized in that, Including: A monitoring module, configured to monitor a target Bluetooth wireless mesh network in real time to determine whether the states of a preset number of device nodes in the target Bluetooth wireless mesh network change simultaneously at the current moment; wherein the preset number is positively correlated with the number of messages causing network congestion; A message sending module, configured to, if so, immediately trigger the preset number of device nodes to send status change messages outward at different times respectively; A message filtering module, configured to control device nodes in the target Bluetooth wireless mesh network to filter received message packets at the bottom layer of the Bluetooth protocol stack to screen out low-power Bluetooth broadcast packets generated by Bluetooth wireless mesh network devices; An uploading and discarding module, configured to deliver the screened low-power Bluetooth broadcast packets to an upper-layer protocol for processing and discard other message packets received except the low-power Bluetooth broadcast packets.

8. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the message processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, For storing computer-executable instructions, when the computer-executable instructions are loaded and executed by a processor, the message processing method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Channel conflict avoidance method in Bluetooth mesh network

    CN112312584A

  • Equipment control method and device, electronic equipment and computer readable storage medium

    CN114584414A

  • Bluetooth network, communication method and device thereof and storage medium

    CN115086923A

  • Message sending parameter setting method, electronic equipment and storage medium

    CN115442869A