Information reporting method and device, equipment and storage medium
By working collaboratively with sensor nodes and gateways, optimizing wake-up and sleep states, and only listening to beacon frames to report data when event information is generated, the problems of low power consumption and low reliability in wireless sensor networks are solved, achieving ultra-low power consumption and high communication quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2026-03-27
AI Technical Summary
In existing wireless sensor networks, node products, while balancing technical specifications such as low power consumption, reliability, capacity, and response speed, suffer from problems such as high power consumption and low reliability.
By working together with sensor nodes and gateways, the wake-up time is determined and beacon frames are listened to at specific times. Data is reported only when event information is generated, avoiding continuous clock calibration. The wake-up time is determined by the beacon frame sequence number and total number, thus optimizing the wake-up and sleep states.
This achieves ultra-low power consumption of sensor nodes and improves communication quality, solving the problems of high system power consumption and low reliability, and improving the performance of wireless communication systems.
Smart Images

Figure CN121751297A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of wireless sensor network technology, specifically relating to an information reporting method, apparatus, device, and storage medium. Background Technology
[0002] Wireless Sensor Networks (WSNs) are distributed sensor networks whose endpoints are sensors capable of sensing and inspecting the external world. Sensors in WSNs communicate wirelessly, allowing for flexible network configuration, easy relocation of devices, and wired or wireless connections to the internet. Currently, 2.4GHz and 433MHz wireless systems are widely used in smart homes, smart fire protection, smart appliances, and field control. Gateways are mostly non-battery powered, while node products, especially sensor-based products like push-button switches, increasingly rely on battery power. Therefore, the demand for low power consumption is constantly rising in current products.
[0003] The implementation of the Medium Access Control (MAC) layer in current wireless communication systems is mainly achieved through the following methods: one is a scheme based on Time Division Multiple Access (TDMA), another is a scheme based on Carrier Sense Multiple Access / Collision Detection (CSMA / CD), or a combination of both.
[0004] Achieving low power consumption in such systems typically involves hardware design and protocol implementation. Protocols often employ Time Division Multiple Access (TDMA) or Carrier Sense Multiple Access (CSMA) to prevent collisions and reduce power consumption across multiple nodes. These protocols are often complex and redundant, considering various types of node devices. Existing technologies place high demands on the underlying radio frequency chips of the nodes, requiring carrier sensing capabilities and accurate clocking. Since wireless systems require not only low power consumption but also reliability, capacity, and response speed, existing technologies often try to balance all technical specifications, leading to problems such as high power consumption and low reliability. Summary of the Invention
[0005] This application provides an information reporting method, apparatus, device, and storage medium to solve the problem in the prior art where the performance requirements of the wireless system cannot be fully met when node products access the MAC layer, resulting in high system power consumption and low reliability.
[0006] Firstly, this application provides an information reporting method applied to sensor nodes, the method comprising:
[0007] Determine the first wake-up time corresponding to the sensor node;
[0008] If the current time is the first wake-up time, exit the sleep state and enter the listening state;
[0009] Upon detecting the corresponding target beacon frame, the corresponding event information is reported to the gateway;
[0010] Optionally, determining the first wake-up time corresponding to the sensor node includes:
[0011] When event information is generated, the system exits the sleep state and enters the listening state. The event information is used to indicate events that need to be reported to the gateway.
[0012] Receive the beacon frame currently sent by the gateway, the beacon frame including: beacon frame sequence number;
[0013] Determine the beacon frame sequence number and the total number of beacon frames in the gateway, wherein the beacon frame sequence number is used to indicate the transmission order of the beacon frames in the gateway;
[0014] If the beacon frame sequence number and the target beacon frame sequence number are inconsistent, the first wake-up time corresponding to the sensor node is determined based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number. The target beacon frame sequence number is used to indicate the frame sequence number of the target beacon frame corresponding to the sensor node.
[0015] Optionally, the method further includes: if the first wake-up time has not been reached at the current time, exiting the listening state and entering the sleep state;
[0016] Optionally, determining the first wake-up time corresponding to the sensor node based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number includes:
[0017] If the target beacon frame number is greater than the beacon frame number, the first wake-up time corresponding to the sensor node is determined based on the target beacon frame number and the beacon frame number.
[0018] If the target beacon frame sequence number is less than the beacon frame sequence number, the first wake-up time corresponding to the sensor node is determined based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number.
[0019] Optionally, before determining the first wake-up time corresponding to the sensor node, the method further includes:
[0020] Upon receiving a network distribution beacon frame sent by the gateway, network distribution information is sent to the gateway;
[0021] The second wake-up time is determined based on the beacon frame sequence number carried in the distribution network beacon frame;
[0022] If the second wake-up time has not been reached at the current time, the system exits the listening state and enters the sleep state.
[0023] If the current time is the second wake-up time, exit the sleep state and enter the listening state;
[0024] Upon detecting the corresponding target beacon frame, the corresponding network configuration success information is reported to the gateway;
[0025] Optionally, determining the second wake-up time based on the beacon frame sequence number carried within the distribution network beacon frame includes:
[0026] The second wake-up time is determined based on the preset frequency of beacon frames sent by the gateway, the beacon frame sequence number, and the wake-up coefficient.
[0027] Secondly, this application provides an information reporting method applied to a gateway, the method comprising:
[0028] Determine the information of multiple beacon frames currently configured, wherein the beacon frame information includes: the corresponding beacon frame sequence number;
[0029] According to the beacon frame sequence number of the multiple beacon frames, the multiple beacon frames are sent in a cyclic manner.
[0030] For any one of the multiple beacon frames, when the beacon frame is in the transmission state, the event information or distribution network information reported by the corresponding sensor node is received through the beacon frame;
[0031] Optionally, before determining the information of the multiple beacon frames currently configured, the method further includes:
[0032] When the gateway enters the network configuration state, determine the number N of beacon frames that have been configured.
[0033] Based on the quantity N, the allocation beacon number M is determined and configured in the distribution network beacon frame to obtain the configured distribution network beacon frame, where M=N+1;
[0034] Broadcast the configured network beacon frame;
[0035] Upon receiving the distribution network information reported by the sensor node, the reporting beacon frame corresponding to the allocation beacon number M is configured based on the distribution network information;
[0036] Optionally, after receiving the event information reported by the corresponding sensor node through the beacon frame, the method further includes:
[0037] Determine whether the event information carries a corresponding response time;
[0038] If the event information carries a corresponding response time, the response information corresponding to the event information is sent to the sensor node at the response time.
[0039] If the event information does not carry a corresponding response time, in the next transmission cycle of the beacon frame, the beacon frame is configured based on the response information corresponding to the event information, and the beacon frame is sent to the sensor node.
[0040] Thirdly, this application provides an information reporting device, which includes:
[0041] The determination module is used to determine the first wake-up time corresponding to the sensor node;
[0042] The control module is used to exit the sleep state and enter the listening state when the current time is the first wake-up time;
[0043] The reporting module is used to report the corresponding event information to the gateway when the corresponding target beacon frame is detected.
[0044] Optionally, the device further includes: a receiving module;
[0045] The control module is also used to exit the sleep state and enter the listening state when event information is generated, wherein the event information is used to indicate events that need to be reported to the gateway;
[0046] The receiving module is used to receive the beacon frame currently sent by the gateway, the beacon frame including: beacon frame sequence number;
[0047] The determining module is further configured to determine the beacon frame sequence number and the total number of beacon frames in the gateway, wherein the beacon frame sequence number is used to indicate the transmission order of the beacon frames in the gateway;
[0048] The determining module is further configured to determine the first wake-up time corresponding to the sensor node based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number when the beacon frame sequence number and the target beacon frame sequence number are inconsistent, wherein the target beacon frame sequence number is used to indicate the frame sequence number of the target beacon frame corresponding to the sensor node;
[0049] Optionally, the control module is further configured to exit the listening state and enter the sleep state if the current time has not reached the first wake-up time;
[0050] Optionally, the determining module is further configured to determine the first wake-up time corresponding to the sensor node based on the target beacon frame number and the beacon frame number when the target beacon frame number is greater than the beacon frame number;
[0051] The determining module is further configured to determine the first wake-up time corresponding to the sensor node based on the beacon frame number, the total number of beacon frames, and the target beacon frame number when the target beacon frame number is less than the beacon frame number.
[0052] Optionally, the device further includes: a transmitting module;
[0053] The sending module is used to send network distribution information to the gateway upon receiving a network distribution beacon frame sent by the gateway.
[0054] The determining module is further configured to determine the second wake-up time based on the beacon frame sequence number carried in the distribution network beacon frame;
[0055] The control module is also used to exit the listening state and enter the sleep state if the second wake-up time has not been reached at the current time.
[0056] The control module is also used to exit the sleep state and enter the listening state when the current time is the second wake-up time;
[0057] The reporting module is also used to report the corresponding network configuration success information to the gateway when the corresponding target beacon frame is detected.
[0058] Optionally, the determining module is further configured to determine the second wake-up time based on the preset frequency of the beacon frames sent by the gateway, the beacon frame sequence number, and the wake-up coefficient.
[0059] Fourthly, this application provides an information reporting device applied to a gateway, the device comprising:
[0060] The determination module is used to determine the information of multiple beacon frames currently configured, wherein the beacon frame information includes: the corresponding beacon frame sequence number;
[0061] The sending module is used to sequentially and cyclically send the multiple beacon frames according to their beacon frame sequence numbers;
[0062] The receiving module is used to receive, when the beacon frame is in the transmitting state, event information or distribution network information reported by the corresponding sensor node through the beacon frame, for any one of the plurality of beacon frames;
[0063] Optionally, the device may also include: a configuration module and a broadcast module;
[0064] The determining module is further configured to determine the number N of beacon frames that have been configured when the gateway enters the network configuration state.
[0065] The determining module is further configured to determine the allocation beacon number M based on the quantity N;
[0066] The configuration module is used to configure the allocation beacon number M in the distribution beacon frame to obtain a configured distribution beacon frame, where M=N+1;
[0067] The broadcast module is used to broadcast the configured network beacon frame;
[0068] The configuration module is further configured to, upon receiving the distribution network information reported by the sensor node, configure the reporting beacon frame corresponding to the allocation beacon number M based on the distribution network information;
[0069] Optionally, the determining module is further configured to determine whether the event information carries a corresponding response time;
[0070] The sending module is further configured to, when the event information carries a corresponding response time, send response information corresponding to the event information to the sensor node at the response time;
[0071] The configuration module is further configured to configure the beacon frame based on the response information corresponding to the event information in the next transmission period of the beacon frame if the event information does not carry the corresponding response time.
[0072] The sending module is also used to send the beacon frame to the sensor node.
[0073] Fifthly, this application provides an information reporting device, comprising:
[0074] Memory;
[0075] processor;
[0076] The memory stores computer-executed instructions;
[0077] The processor executes computer execution instructions stored in the memory to implement the information reporting method as described in the first aspect and various possible implementations of the first aspect and various possible implementations of the second aspect and the second aspect.
[0078] Sixthly, this application provides a computer storage medium storing computer execution instructions thereon, which are executed by a processor to implement the information reporting method as described in the first aspect and various possible implementations of the first aspect, and the second aspect and various possible implementations of the second aspect.
[0079] The information reporting method provided in this application determines multiple beacon frame information currently configured through a gateway; sequentially and cyclically sends multiple beacon frames according to their beacon frame sequence numbers; for any one of the multiple beacon frames, while the beacon frame is in the sending state, it receives event information or network configuration information reported by the corresponding sensor node through the beacon frame; the sensor node determines its corresponding first wake-up time; if the current time is the first wake-up time, it exits the sleep state and enters the listening state; upon listening to the corresponding target beacon frame, it reports the corresponding event information to the gateway. The sensor node only starts listening and reporting events when an event occurs, without continuous clock calibration. Listening is only activated when event reporting is required, achieving ultra-low power consumption for low-frequency sensor nodes. This solves the problem of high system power consumption and low reliability caused by the inability to fully meet the performance requirements of existing node products, improving the power consumption indicators and communication quality of nodes in sensor node wireless communication systems. Attached Figure Description
[0080] 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.
[0081] Figure 1 This is a schematic diagram illustrating a scenario of an information reporting method provided in this application;
[0082] Figure 2 This is an interactive illustration of an information reporting method provided in this application. Figure 1 ;
[0083] Figure 3 This is a flowchart of an information reporting method provided in this application;
[0084] Figure 4 This is an interactive illustration of an information reporting method provided in this application. Figure 2 ;
[0085] Figure 5 This is a schematic diagram of the structure of an information reporting device provided in this application. Figure 1 ;
[0086] Figure 6 This is a schematic diagram of the structure of an information reporting device provided in this application. Figure 2 ;
[0087] Figure 7 This is a structural schematic diagram of an information reporting device provided in this application.
[0088] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0089] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0090] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention 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 embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.
[0091] In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0092] First, let me explain the terms used in this application:
[0093] A beacon frame is a management frame periodically sent in IEEE 802.11 wireless LANs. Its main function is to announce the existence of a wireless LAN (WLAN) and provide receiving devices with information about the network. Beacon frames are typically sent by access points (APs). These frames contain information such as the SSID and network password to help devices discover and connect to the wireless network. A beacon frame includes a MAC header (MHR), a MAC service data unit (MSDU), and a MAC trailer (MFR).
[0094] A WSN is a distributed sensor network whose endpoints are sensors that can sense and inspect the external world. Sensors in a WSN communicate wirelessly, the network is flexible in its configuration, device locations can be changed at any time, and it can connect to the Internet via wired or wireless means.
[0095] Currently, 2.4G and 433MHz wireless systems are widely used in smart homes, smart fire protection, smart appliances, field control and other fields. Most gateways are not battery powered, while node products, especially sensor products and push-button switches, are increasingly using battery power. Therefore, the requirements for low power consumption in products are getting higher and higher at this stage.
[0096] Existing technologies place high demands on the underlying radio frequency chips of nodes, requiring carrier sensing capabilities and accurate clocks, and the ISM bands such as 433M and 2.4GHz suffer from severe wireless channel pollution.
[0097] Furthermore, since wireless systems require not only low power consumption but also reliability, capacity, and response speed, existing technologies often have to balance all technical specifications, resulting in problems such as high power consumption and low reliability.
[0098] To address the aforementioned problems, this application provides an information reporting method. Figure 1 This is a schematic diagram illustrating a scenario for an information reporting method provided in an embodiment of this application. For example... Figure 1 The interactive objects in this embodiment include, but are not limited to: gateway 1, sensor node 1, sensor node 2, sensor node 3, and sensor node 4. Gateway 1 is communicatively connected to sensor node 1, sensor node 2, sensor node 3, and sensor node 4, respectively. Gateway 1 can periodically send beacon frame 0, beacon frame 1 to beacon frame N. Figure 1 The sensor node 3 shown can generate event information and, based on this, exit its sleep state and enter a listening state. When it detects beacon frame 1 sent by gateway 1, it determines whether the beacon frame sequence number and the target beacon frame sequence number are consistent. If they are inconsistent, it determines the first wake-up time for sensor node 3, exits the listening state, and enters a sleep state. If the current time is the first wake-up time, sensor node 3 exits the sleep state and enters the listening state. When sensor node 3 detects the corresponding target beacon frame 3, it reports the corresponding event information to gateway 1. In one possible implementation, gateway 1 can determine whether the information data of any beacon frame has been received and send the feedback information to the corresponding sensor node.
[0099] This application provides an information reporting method. Multiple beacon frames are configured through a gateway, and these frames are sequentially and cyclically transmitted according to their corresponding sequence numbers. For any one of the beacon frames, while the beacon frame is in the transmission state, the sensor node determines its wake-up time. Based on this wake-up time, the sensor node exits its sleep state and enters a listening state. Upon detecting the corresponding target beacon frame, the sensor node reports the corresponding event information to the gateway. The gateway receives the event information reported by the sensor node. This ensures that the sensor node only starts listening and reporting events when they occur, improving the power consumption and communication quality of nodes in the sensor node wireless communication system.
[0100] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0101] Figure 2 An interactive illustration of an information reporting method provided in this application embodiment. Figure 1 .like Figure 2 As shown, this embodiment provides an information reporting method, including:
[0102] S101: The gateway determines the information of multiple beacon frames currently configured. The beacon frame information includes the corresponding beacon frame sequence number.
[0103] The beacon frame information may include, but is not limited to, beacon frame sequence number, preamble, node synchronization information, etc. The multiple beacon frames configured in the gateway include: one distribution beacon frame and at least one reporting beacon frame. The sequence number of the distribution beacon frame is fixed as the first one, and the sequence numbers of the at least one reporting beacon frame are sequentially assigned based on the generation time of the reporting beacon frames.
[0104] Understandably, the beacon frame sequence number is a key field in a beacon frame, used to identify and distinguish different beacon frames. During communication, the sequence number can be incremented by 1 for each beacon frame generated, thereby ensuring the uniqueness and order of beacon frames. This helps the receiving node device track and manage the received beacon frames, ensuring the continuity and integrity of the data.
[0105] S102: When a sensor node generates event information, it determines the corresponding first wake-up time.
[0106] The first wake-up time refers to the moment when, after the sensor node determines the event information, it receives a beacon frame from the gateway for the first time, and the received beacon frame is not the beacon frame corresponding to the node. At this time, the node can enter a sleep state and determine the sleep period and the listening period according to the time slot information. The end time of the sleep period is the start time of the listening period, which is also the first wake-up time.
[0107] Understandably, the first wake-up time does not have to be the same as the corresponding beacon frame's transmission time. It can be earlier than the beacon frame's transmission time to start listening to the corresponding beacon frame in advance, increasing the success rate of receiving the beacon frame. It can also enable the node to respond to the beacon frame sent by the gateway and report event information more quickly, reducing the delay caused by waiting for the beacon frame, and better balancing the energy consumption and performance of the node during operation.
[0108] It should be noted that, assuming the beacon frame transmission time slot is T, the advance wake-up time can be 1 / 3T or 1 / 5T. This advance time is a period within the T time slot and cannot exceed the T time slot. The specific time slot can be floating. The wake-up time slot can be further determined based on the node performance and the beacon frame time slot information. The specific determination method is not restricted in this scheme.
[0109] S103: If the sensor node is in its first wake-up state at the current moment, it exits the sleep state and enters the listening state.
[0110] In this sensor network, when a node determines that the current time is its first wake-up time, it can exit the sleep state and enter the listening state to receive beacon frames sent by the gateway and report information to the gateway. The node can internally have a clock or timer to track time and trigger specific events. When the first wake-up time is reached, the clock or timer generates an interrupt signal to notify the node's processor or microcontroller to wake up. Upon receiving the interrupt signal, the processor's power management unit changes the processor's power state, switching from sleep mode to active mode. At this time, the processor's clock starts running, and the processor can begin executing program code stored in non-volatile memory. After the node processor begins executing the program code, a series of hardware initialization operations can be performed, such as configuring the communication interface, sensor interface, and power management, to ensure they are in the correct state and ready for data transmission and reception. The specific initialization operations of the sensor node are not detailed in this scheme.
[0111] Understandably, after completing hardware initialization, the sensor node can switch its wireless transceiver to listen mode. In listen mode, the wireless transceiver continuously scans the channel to detect if a signal is received. For example, it can perform periodic channel scanning and listen to specific frequencies or channels to receive beacon frames or other types of network messages. When the sensor node receives beacon frame preambles or other types of network messages during the listening process, it can process this data according to the network protocol and application requirements.
[0112] In practical use, if a node does not receive any messages after listening for a period of time, or has completed the process of reporting event information, it can re-enter a sleep state. Before entering a sleep state, the node may save its current state so that it can be restored upon the next wake-up.
[0113] It should be noted that in order to optimize energy consumption and performance, nodes may adopt different wake-up and listening strategies, such as event-triggered wake-up, dynamic adjustment of listening time window, etc. This solution does not impose any restrictions.
[0114] S104: The gateway sends the target beacon frame based on the beacon frame sequence number of multiple beacon frames.
[0115] Each beacon frame can be assigned a unique sequence number to identify its position in the loop. The sequence number can be cyclically incremented or generated according to a certain algorithm; this scheme does not restrict the specific method of sequence number generation. The gateway sequentially sends these beacon frames according to their sequence numbers. After sending the last beacon frame, the gateway returns to the first beacon frame and starts sending again. The first beacon frame is also the distribution beacon frame.
[0116] Understandably, each beacon frame can contain time slot information allocated to each node. The device transmits data within a specified time period based on the time slot information in the beacon frame. The gateway first sends the first beacon frame, also known as the distribution beacon frame, and can determine the time slot information for each beacon frame. Nodes can receive the time slot information and, within the corresponding reporting time slot, send data or information to the gateway through the corresponding beacon frame; after receiving information, the gateway can continue sending the next beacon frame and repeat the above process. When all beacon frames have been sent, the gateway returns to the first beacon frame and restarts transmission.
[0117] Specifically, since the target beacon frame is one of multiple beacon frames in the gateway, the gateway sends a sequence of beacon frames at predetermined time intervals. Each beacon frame contains a sequence number. When the gateway sends the beacon frame corresponding to the sequence number of the target beacon frame, it can embed or attach synchronization information related to the target node in that frame and send it to the corresponding sensor node.
[0118] It should be noted that the gateway can allocate time slot resources reasonably to avoid data conflicts and channel congestion. One beacon frame corresponds to one reporting node, which can effectively avoid the problem of reported data conflicts.
[0119] S105: When a sensor node detects the corresponding target beacon frame, it reports the corresponding event information.
[0120] In this context, event information can refer to various physical quantities in the surrounding environment sensed and collected by the data acquisition unit of the sensor node, including but not limited to information such as temperature, humidity, light, sound, pressure, and vibration. It can also refer to corresponding control commands fed back by the sensor node, such as controlling the opening and closing of furniture. The specific content of the event information corresponding to the sensor node is not limited in this solution. During the network configuration process between the sensor node and the gateway, the gateway will allocate corresponding beacon frames. The sensor node can only complete reporting through the corresponding beacon frames. When the sensor node detects the corresponding target beacon frame, the process of reporting the corresponding event information may include, for example, beacon frame identification, event information extraction, and event information reporting.
[0121] Understandably, when in listening mode, sensor nodes continuously scan their configured channels to detect potential signals. Upon detecting a signal, the node can decode it to determine if it is a valid communication frame; for example, it can determine if the sequence number of a received beacon frame matches the assigned target beacon frame sequence number. The node can then organize the event information into a suitable reporting format and, based on the network topology and routing protocol, select an appropriate communication path to report the event information. This allows the node to transmit the event information to other nodes or the central processing unit in the network via the chosen communication path.
[0122] In one possible implementation, the wireless system can include multiple channels. The gateway can determine a transmission channel and distribute it to the corresponding sensor nodes. After the sensor nodes access the system and enter listening mode, if they do not receive the preamble of a beacon frame within a certain period of time, they can perform frequency hopping according to the network topology, i.e., the channel map, until they receive the preamble. Correspondingly, the gateway can monitor the real-time status of the channel. If the transmission channel noise floor is too high, it can actively perform frequency hopping. If a node does not receive the preamble within a fixed period of time when initiating an event report, it can perform frequency hopping according to the frequency hopping map until it receives the preamble, and then proceed with the above reporting process.
[0123] S106: The gateway receives event information reported by the corresponding sensor nodes through beacon frames.
[0124] The gateway can receive event information from sensor nodes. This event information may include various data, such as environmental parameters and changes in device status, as well as specific commands or requests. After receiving the event information, the gateway can unpack it, extract key information, and perform further processing or forwarding.
[0125] In one possible implementation, the gateway can determine whether the event information carries a corresponding response time; if the event information carries a corresponding response time, at the response time, send the response information corresponding to the event information to the sensor node; if the event information does not carry a corresponding response time, in the next transmission cycle of the beacon frame, configure the beacon frame based on the response information corresponding to the event information, and send the beacon frame to the sensor node.
[0126] Understandably, after receiving an event message, the gateway can check whether the message contains the corresponding response time. The response time can be the point in time when the sensor node expects the gateway to reply with confirmation information or perform a specific operation.
[0127] Specifically, if the event information includes a response time, the gateway will send the corresponding response information to the sensor node at that specified response time. This response information can be, for example, confirmation of the event information, feedback on the execution result, or other forms of response; this scheme does not impose any restrictions on this. Within a specified event segment, the sensor node can determine its sleep period based on the specified time period and end its sleep state at a floating time before the response time, entering a listening state to receive the response information returned by the gateway.
[0128] If the event information does not carry a response time, the gateway can configure and send a beacon frame in the next transmission cycle of the beacon frame, based on the response information corresponding to the event information, if the event information has a response after processing. Here, the beacon can be used to announce the gateway's wake-up status and synchronize the network, or it can contain indirect confirmation of unresponsive event information or instructions for subsequent operations. When the gateway decides to include a response to unresponsive event information in the beacon frame, it can set corresponding flag bits or fields in the beacon frame to instruct the sensor node to pay attention to receiving subsequent data packets or performing specific operations; subsequently, the gateway can send the configured beacon frames according to predetermined time intervals or trigger conditions.
[0129] In practical applications, after receiving a beacon frame, the sensor node can determine whether further action is needed based on its content. If the beacon frame contains a response to previously sent event information, the sensor node can adjust its operating status or send other pending data based on the response.
[0130] This embodiment provides an information reporting method that determines multiple beacon frame information currently configured through a gateway; sequentially and cyclically sends multiple beacon frames according to their beacon frame sequence numbers; for any one of the multiple beacon frames, while the beacon frame is in the sending state, it receives event information or network configuration information reported by the corresponding sensor node through the beacon frame; the sensor node determines its corresponding first wake-up time; if the current time is the first wake-up time, it exits the sleep state and enters the listening state; upon listening to the corresponding target beacon frame, it reports the corresponding event information to the gateway. The sensor node only starts listening and reporting events when an event occurs, improving the power consumption and communication quality of nodes in the sensor node wireless communication system.
[0131] Figure 3 This is a flowchart illustrating an information reporting method provided in an embodiment of this application. Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, the process of sensor nodes reporting event information to the gateway after generating event information is described in detail. This embodiment illustrates an information reporting method, including:
[0132] S201: When an event is generated, exit the sleep state and enter the listening state.
[0133] Event information can indicate changes in various parameters, including but not limited to temperature, humidity, light intensity, motion, and sound, or changes in device status, such as a button being pressed or a device control command being received. In wireless sensor networks, sensor nodes typically remain in a low-power sleep state to conserve energy, waking up only when needed to perform tasks. When a sensor node detects an event, such as an environmental change or device triggering, and generates corresponding event information, the node can exit the sleep state and enter a listening state according to preset rules or strategies to prepare to send or process this information.
[0134] Understandably, the components of a sensor node can continuously monitor its surrounding environment or internal state to detect events that require processing. When an event is detected, the sensor node can assess whether the event meets preset trigger conditions, which may be based on factors such as the type, intensity, and duration of the event. If the event meets the trigger conditions, the sensor node will decide to exit the sleep state.
[0135] Specifically, after exiting hibernation, the sensor node can immediately enter listening mode, ready to receive signals from beacon frames sent by the gateway, or ready to send its own generated event information. In listening mode, the node keeps its wireless communication module active to respond promptly to network activity. In listening mode, the sensor node can process the generated event information, which may include encoding the event information into a format suitable for transmission, adding necessary metadata such as timestamps and sensor IDs, or performing data compression or encryption.
[0136] It should be noted that after sending the event information, if the node has no other pending tasks and meets the sleep conditions, the sensor node can re-enter the sleep state to save energy.
[0137] S202: Receive the beacon frame currently sent by the gateway. The beacon frame includes: beacon frame sequence number.
[0138] In this scenario, the sensor node can wait to receive wireless signals from the gateway while in listening mode. When the node detects a specific preamble or synchronization sequence of the beacon frame, it can begin receiving the entire frame content.
[0139] S203: Determine the beacon frame sequence number and the total number of beacon frames in the gateway. The beacon frame sequence number is used to indicate the transmission order of beacon frames in the gateway.
[0140] The sensor node can parse the frame to obtain the beacon frame sequence number, which can be used to indicate the position or order of the current beacon frame in a series of beacon frames sent by the gateway.
[0141] Understandably, sensor nodes can determine the total number of beacon frames in the current gateway by using the beacon frame information configured in the gateway, or by synchronizing relevant information with the gateway. This solution does not restrict the specific process of determining the total number of beacon frames.
[0142] It should be noted that regardless of how the sensor node determines or infers the total number of beacon frames, since the beacon frame sequence number is usually finite (e.g., represented using an 8-bit or 16-bit field) and wraps back to the minimum value after reaching its maximum value, the node can handle the wraparound of the sequence number. Therefore, the sensor node can recognize and correctly handle this situation to avoid misinterpreting the wrapped-back sequence number as a new sequence number.
[0143] S204: Determine whether the beacon frame sequence number and the target beacon frame sequence number are consistent; if yes, proceed to step S205; if no, proceed to step S206.
[0144] S205: Report event information to the gateway via the current beacon frame.
[0145] The beacon frame sequence number is the same as the target beacon frame sequence number. That is, the beacon frame received by the current sensor node is the corresponding reporting beacon frame. At this time, the sensor node can complete the event reporting process based on the beacon frame.
[0146] S206: Determine the first wake-up time corresponding to the sensor node based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number.
[0147] In one possible implementation, if the target beacon frame sequence number is greater than the beacon frame sequence number, the first wake-up time corresponding to the sensor node is determined based on the target beacon frame sequence number and the beacon frame sequence number; if the target beacon frame sequence number is less than the beacon frame sequence number, the first wake-up time corresponding to the sensor node is determined based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number.
[0148] Understandably, let the sequence number of the first received beacon frame be S, the total number of beacon frames be W, the sequence number of the target beacon frame be M, and the time slot for beacon frame transmission be T. At this point, M equals S, and information is reported. If M is greater than S, calculate (MS)*T ms minus a time period, for example, 1 / 3T, and enter a sleep state. If M is less than S, calculate (W-S+M+1)*T ms minus a time period, for example, 1 / 3T, and enter a sleep state. When the sleep state reaches 1 / 3T, resume listening, waiting to receive the corresponding beacon frame and report information.
[0149] It should be noted that setting a certain float time can prevent delays caused by network latency or clock drift during the beacon frame transmission process by the gateway, thereby improving the stability of the beacon frame reception process.
[0150] S207: If the first wake-up time has not been reached at the current time, exit the listening state and enter the sleep state.
[0151] To conserve energy, sensor nodes can enter a sleep state when communication or data processing is not required. When the first wake-up time is calculated based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number, and the current time has not yet reached this wake-up time, the node can check its internal clock or timer to determine the current time or the time interval since the last activity, and compare the current time with the calculated first wake-up time. If the current time is earlier than the wake-up time, the node does not need to immediately perform any communication or data processing activities.
[0152] Understandably, if it's determined that the sensor node is not currently at wake-up time, it can stop listening to signals on the wireless channel, helping to reduce unnecessary power consumption. After exiting the listening state, the node enters sleep mode. In sleep mode, most of the node's circuitry is shut down or placed in a low-power state to maximize energy savings. The node can be set with an internal timer or alarm to automatically wake up as the wake-up time approaches.
[0153] Specifically, in sleep mode, a node can wait until it is triggered by an internal timer or an external event, such as a physical button press or the arrival of the next beacon frame. In other words, the node is configured to automatically wake up at specific time intervals to check for beacon frames.
[0154] This embodiment provides an information reporting method that, after a sensor node generates event information, it adjusts its sleep and listening states by floating. Based on the beacon frame information of the gateway, it determines the listening period in real time and enters sleep mode during periods when no reporting is required, thereby saving the energy consumption of the sensor node. The reporting process is completed only during the time slot of the corresponding beacon frame, and a certain floating time is set to reduce the delay caused by waiting for beacon frames, while better balancing the energy consumption and performance of the node during operation.
[0155] Figure 4 This embodiment provides an interactive illustration of an information reporting method. Figure 2 .like Figure 4 As shown, in this embodiment... Figure 2 Based on the embodiments, the process of configuring network connections between sensor nodes and gateways is described in detail. The camera collision detection method shown in this embodiment includes:
[0156] S301: When the gateway enters the network configuration state, the gateway determines the number N of beacon frames that have been configured.
[0157] When the gateway enters the network configuration state, it determines the number N of beacon frames that have been configured, which involves identifying and counting the connected or configured devices in the network. Specifically, after entering the network configuration state, the gateway can first perform initialization operations, such as configuring network parameters, starting necessary services, and preparing to receive connection requests from nodes. Simultaneously, the gateway can listen for beacon frames from connected nodes, which may include flags or fields indicating that the node has successfully configured or joined the network.
[0158] Understandably, the gateway can track the number of networked devices based on the parsed beacon frame content, for example, through a counter or list. For instance, whenever the gateway confirms that a device has successfully configured and joined the network, it increments the counter or updates the list. Ultimately, the gateway determines the number N of networked beacon frames based on the counter value or the number of devices in the list.
[0159] S302: The gateway determines the allocation beacon number M based on the quantity N, and configures the allocation beacon number M in the distribution beacon frame to obtain the configured distribution beacon frame, where M=N+1.
[0160] The total number of beacon frames in the gateway is N. The gateway can calculate a new beacon number M according to the formula M=N+1. This beacon number can be used for newly added devices or specific communication tasks.
[0161] Understandably, the gateway can modify the information carried in the current distribution beacon frame and configure the calculated beacon number M into this beacon frame. The distribution beacon frame may also contain other information, such as the gateway's identifier, network parameters, security credentials, etc.
[0162] It is important to note that this beacon allocation method, M=N+1, is a simple strategy that assumes the continuity and uniqueness of beacon numbers. In practical applications, more complex beacon allocation mechanisms may be needed to ensure the uniqueness, scalability, and security of beacon numbers. Furthermore, if devices leave or rejoin the network, the gateway may need to adjust its beacon allocation strategy accordingly. Therefore, this scheme does not impose specific restrictions on the method for establishing the uniqueness of beacon frame sequence numbers.
[0163] S303: The gateway broadcasts a configuration beacon frame indicating that the network configuration is complete.
[0164] The gateway can send the configured distribution beacon frame to sensor nodes that may establish a connection with the gateway or broadcast it throughout the network so that new sensor nodes can recognize it and use the beacon M to join the gateway or communicate.
[0165] Understandably, after sending the configured beacon frame, the gateway can update its internal state to reflect the allocation of the new beacon number M and possible node additions. Specifically, this may include updating the counter for the number of configured devices, as well as other possible network status information.
[0166] S304: When a sensor node receives a distribution network beacon frame sent by the gateway, it sends distribution network information.
[0167] In this process, sensor nodes can access the network and monitor it, for example, by generating events or receiving operating commands to determine relevant node information. Based on the generated distribution network information, sensor nodes can start listening for beacon frames in the environmental network. When a distribution network beacon frame is detected, the sensor node can parse the received beacon frame to obtain network configuration information, which may include, but is not limited to, network ID, channel number, encryption key, and security authentication method.
[0168] Understandably, after parsing the distribution network beacon frame, the sensor node can determine the distribution network information based on the acquired network configuration information and relevant node information. Distribution network information may include, for example, the sensor node's unique identifier, device type, firmware version, and sensor data.
[0169] S305: When the gateway receives the distribution network information reported by the sensor node, it configures and allocates the reporting beacon frame corresponding to the beacon number M based on the distribution network information.
[0170] The gateway can listen to and receive network configuration information from sensor nodes. Upon receiving the configuration information, the gateway can perform relevant verification operations to ensure the legitimacy and validity of the sensor nodes. For example, it can verify whether the sensor node's unique identifier already exists in the network to avoid duplicate registration; or check whether the node device type is supported, and confirm firmware version compatibility. If the verification is successful, the gateway can register the sensor node in the network and assign it a unique beacon number M and a corresponding reporting beacon frame.
[0171] Understandably, a reporting beacon frame is a frame format used by sensor nodes to send data or status information to the gateway. The gateway defines the structure and content of the reporting beacon frame according to network protocols and actual needs, including but not limited to: preamble, training symbols, beacon number, and node synchronization information. After configuring the reporting beacon frame, the gateway can send relevant configuration information to the sensor nodes. This configuration information may include, for example, the format specification of the reporting beacon frame, the transmission frequency, and the data encoding method, so that the sensor nodes, upon receiving this configuration information, will adjust their reporting behavior accordingly.
[0172] It should be noted that the gateway can also continuously monitor changes in the network, such as the addition of new nodes, the departure of old nodes, or adjustments to network parameters, and update the configuration of the reported beacon frames accordingly.
[0173] S306: The sensor node determines the second wake-up time based on the preset frequency, beacon frame sequence number, and wake-up coefficient of the beacon frame sent by the gateway.
[0174] After the sensor node reports the distribution network information, it can calculate the approximate arrival time of the next beacon frame based on the preset frequency and beacon frame sequence number, and then listen to it to determine whether the corresponding beacon frame has been successfully generated.
[0175] Understandably, due to factors such as network latency and node processing time, the actual arrival time may deviate. To more accurately determine the wake-up time, sensor nodes can set a wake-up coefficient to adjust the calculated wake-up time. The wake-up coefficient can be dynamically adjusted according to network conditions and node needs to ensure that the sensor node can wake up and receive data at the appropriate time. After the above calculations and adjustments, the sensor node can determine the second wake-up time, which is the expected arrival time of the next beacon frame. After setting the second wake-up time, the sensor node can enter a sleep state to save energy. During the sleep period, the sensor node can maintain time tracking and automatically wake up when the second wake-up time is reached.
[0176] S307: If the sensor node does not reach the second wake-up time at the current time, it exits the listening state and enters the sleep state.
[0177] S308: If the sensor node is in its second wake-up state at the current moment, it exits the sleep state and enters the listening state.
[0178] S309: The gateway sends the reporting beacon frame corresponding to the allocated beacon number M.
[0179] After receiving the distribution network information sent by the sensor nodes, the gateway generates a beacon frame corresponding to the sensor nodes based on the beacon number M, and allocates the reporting content within it. Once the beacon frame is successfully generated, the gateway enters a loop to send beacon frames, and can then send beacon frames based on this new loop.
[0180] S310: When the sensor node detects the corresponding target beacon frame, it reports the corresponding network configuration success information to the gateway.
[0181] In this scenario, the sensor node, while in listening mode, can continuously scan and receive signals on the wireless channel. When it receives a beacon frame, the node can parse the header information of the beacon frame, such as the beacon number, preamble, or destination address field, to determine whether the beacon frame is related to itself.
[0182] Understandably, if a beacon frame is identified as relevant to the target sensor node, the node will further verify the beacon frame's content, including but not limited to configuration parameters, time synchronization information, and encryption keys. After verifying that the beacon frame content is correct, the sensor node will confirm that it has successfully received and understood the configuration information sent by the gateway or other control devices. At this point, the node will mark its status as "network configuration successful."
[0183] Specifically, to confirm successful network configuration with the gateway or other control devices, the sensor node can generate a message indicating successful network configuration and send the prepared reporting information to the gateway via the wireless network interface. After confirming successful network configuration, the sensor node can enter normal operating mode and begin performing data collection, processing, and reporting operations according to the configuration information.
[0184] This embodiment provides an information reporting method in which a gateway dynamically configures distribution network beacon frames. When a sensor node needs to access the gateway, it listens for the distribution network beacon frames broadcast by the gateway and sends relevant distribution network information. This allows the gateway to generate a new corresponding reporting beacon frame based on the distribution network information. After the gateway generates the corresponding reporting beacon frame, it sends beacon frames cyclically according to the beacon frame sequence number. When a sensor node receives the relevant beacon frame during the corresponding listening period, it determines that the distribution network is successful. Through proper configuration and management, it can be ensured that the sensor node can accurately receive and execute the beacon frames sent by the gateway, thereby achieving efficient and reliable data reporting and communication.
[0185] Figure 5 This is a schematic diagram of an information reporting device provided in this application. Figure 5 As shown, this application provides an information reporting device applied to a sensor node. The information reporting device 400 includes:
[0186] The determination module 401 is used to determine the first wake-up time corresponding to the sensor node;
[0187] Control module 402 is used to exit the sleep state and enter the listening state when the current time is the first wake-up time;
[0188] The reporting module 403 is used to report the corresponding event information to the gateway when the corresponding target beacon frame is detected.
[0189] Optionally, the device further includes: a receiving module 404;
[0190] The control module 402 is also used to exit the sleep state and enter the listening state when event information is generated, wherein the event information is used to indicate events that need to be reported to the gateway;
[0191] The receiving module 404 is used to receive the beacon frame currently sent by the gateway, the beacon frame including: beacon frame sequence number;
[0192] The determining module 401 is further configured to determine the beacon frame sequence number and the total number of beacon frames in the gateway, wherein the beacon frame sequence number is used to indicate the transmission order of the beacon frames in the gateway;
[0193] The determining module 401 is further configured to determine the first wake-up time corresponding to the sensor node based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number when the beacon frame sequence number and the target beacon frame sequence number are inconsistent, wherein the target beacon frame sequence number is used to indicate the frame sequence number of the target beacon frame corresponding to the sensor node;
[0194] Optionally, the control module 402 is further configured to exit the listening state and enter the sleep state if the current time has not reached the first wake-up time;
[0195] Optionally, the determining module 401 is further configured to determine the first wake-up time corresponding to the sensor node based on the target beacon frame number and the beacon frame number when the target beacon frame number is greater than the beacon frame number;
[0196] The determining module 401 is further configured to determine the first wake-up time corresponding to the sensor node based on the beacon frame number, the total number of beacon frames, and the target beacon frame number when the target beacon frame number is less than the beacon frame number.
[0197] Optionally, the device further includes: a transmitting module 405;
[0198] The sending module 405 is used to send network distribution information to the gateway when it receives the network distribution beacon frame sent by the gateway;
[0199] The determining module 401 is further configured to determine the second wake-up time based on the beacon frame sequence number carried in the distribution network beacon frame;
[0200] The control module 402 is also used to exit the listening state and enter the sleep state if the current time has not reached the second wake-up time;
[0201] The control module 402 is also used to exit the sleep state and enter the listening state when the current time is the second wake-up time;
[0202] The reporting module 403 is also used to report the corresponding network configuration success information to the gateway when the corresponding target beacon frame is detected;
[0203] Optionally, the determining module 401 is further configured to determine the second wake-up time based on the preset frequency of the beacon frames sent by the gateway, the beacon frame sequence number, and the wake-up coefficient.
[0204] Figure 6 This is a schematic diagram of an information reporting device provided in this application. Figure 6As shown, this application provides an information reporting device applied to a gateway. The information reporting device 500 includes:
[0205] The determining module 501 is used to determine the information of multiple beacon frames currently configured, wherein the beacon frame information includes: the corresponding beacon frame sequence number;
[0206] The sending module 502 is used to sequentially and cyclically send the multiple beacon frames according to their beacon frame sequence numbers;
[0207] The receiving module 503 is used to receive, when the beacon frame is in the transmitting state, event information or distribution network information reported by the corresponding sensor node through the beacon frame, for any one of the plurality of beacon frames;
[0208] Optionally, the device may also include: a configuration module 504 and a broadcast module 505;
[0209] The determining module 501 is further configured to determine the number N of beacon frames that have been configured when the gateway enters the network configuration state.
[0210] The determining module 501 is further configured to determine the allocation beacon number M based on the quantity N;
[0211] The configuration module 504 is used to configure the allocation beacon number M in the distribution beacon frame to obtain a configured distribution beacon frame, where M=N+1;
[0212] The broadcast module 505 is used to broadcast the configured network beacon frame;
[0213] The configuration module 504 is further configured to, upon receiving the distribution network information reported by the sensor node, configure the reporting beacon frame corresponding to the allocation beacon number M based on the distribution network information.
[0214] Optionally, the determining module 501 is further configured to determine whether the event information carries a corresponding response time;
[0215] The sending module 502 is further configured to send the response information corresponding to the event information to the sensor node at the response time when the event information carries the corresponding response time;
[0216] The configuration module 504 is further configured to configure the beacon frame based on the response information corresponding to the event information in the next transmission period of the beacon frame when the event information does not carry the corresponding response time.
[0217] The sending module 502 is also used to send the beacon frame to the sensor node.
[0218] Figure 7 This is a structural schematic diagram of an information reporting device provided in this application. Figure 7 As shown, this application provides an information reporting device 600, which includes: a receiver 601, a transmitter 602, a processor 603, and a memory 604.
[0219] Receiver 601 is used to receive instructions and data;
[0220] Transmitter 602 is used to send commands and data;
[0221] Memory 604 is used to store instructions executed by the computer;
[0222] The processor 603 is used to execute computer execution instructions stored in the memory 604 to implement the various steps of the information reporting method in the above embodiments. For details, please refer to the relevant descriptions in the foregoing information reporting method embodiments.
[0223] Alternatively, the memory 604 can be either standalone or integrated with the processor 603.
[0224] When the memory 604 is set up independently, the electronic device also includes a bus for connecting the memory 604 and the processor 603.
[0225] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the information reporting method performed by the aforementioned information reporting device.
[0226] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0227] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. An information reporting method, characterized in that, Applied to sensor nodes, including: Determine the first wake-up time corresponding to the sensor node; If the current time is the first wake-up time, exit the sleep state and enter the listening state; Upon detecting the corresponding target beacon frame, report the corresponding event information to the gateway.
2. The method according to claim 1, characterized in that, Determining the first wake-up time corresponding to the sensor node includes: When event information is generated, the system exits the sleep state and enters the listening state. The event information is used to indicate events that need to be reported to the gateway. Receive the beacon frame currently sent by the gateway, the beacon frame including: beacon frame sequence number; Determine the beacon frame sequence number and the total number of beacon frames in the gateway, wherein the beacon frame sequence number is used to indicate the transmission order of the beacon frames in the gateway; If the beacon frame sequence number and the target beacon frame sequence number are inconsistent, the first wake-up time corresponding to the sensor node is determined based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number. The target beacon frame sequence number is used to indicate the frame sequence number of the target beacon frame corresponding to the sensor node. The method further includes: If the first wake-up time has not been reached at the current time, exit the listening state and enter the sleep state.
3. The method according to claim 2, characterized in that, Determining the first wake-up time corresponding to the sensor node based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number includes: If the target beacon frame number is greater than the beacon frame number, the first wake-up time corresponding to the sensor node is determined based on the target beacon frame number and the beacon frame number. If the target beacon frame sequence number is less than the beacon frame sequence number, the first wake-up time corresponding to the sensor node is determined based on the beacon frame sequence number, the total number of beacon frames, and the target beacon frame sequence number.
4. The method according to claim 1, characterized in that, Before determining the first wake-up time corresponding to the sensor node, the method further includes: Upon receiving a network distribution beacon frame sent by the gateway, network distribution information is sent to the gateway; The second wake-up time is determined based on the beacon frame sequence number carried in the distribution network beacon frame; If the second wake-up time has not been reached at the current time, the system exits the listening state and enters the sleep state. If the current time is the second wake-up time, exit the sleep state and enter the listening state; Upon detecting the corresponding target beacon frame, report the corresponding network configuration success information to the gateway.
5. The method according to claim 4, characterized in that, Determining the second wake-up time based on the beacon frame sequence number carried within the distribution network beacon frame includes: The second wake-up time is determined based on the preset frequency of beacon frames sent by the gateway, the beacon frame sequence number, and the wake-up coefficient.
6. An information reporting method, characterized in that, Applied to gateways, including: Determine the information of multiple beacon frames currently configured, wherein the beacon frame information includes: the corresponding beacon frame sequence number; According to the beacon frame sequence number of the multiple beacon frames, the multiple beacon frames are sent in a cyclic manner. For any one of the multiple beacon frames, when the beacon frame is in the transmission state, the event information or distribution network information reported by the corresponding sensor node is received through the beacon frame.
7. The method according to claim 6, characterized in that, Before determining the information of the multiple beacon frames currently configured, the method further includes: When the gateway enters the network configuration state, determine the number N of beacon frames that have been configured. Based on the quantity N, the allocation beacon number M is determined and configured in the distribution network beacon frame to obtain the configured distribution network beacon frame, where M=N+1; Broadcast the configured network beacon frame; Upon receiving the distribution network information reported by the sensor node, the reporting beacon frame corresponding to the allocation beacon number M is configured based on the distribution network information.
8. The method according to claim 6, characterized in that, After receiving the event information reported by the corresponding sensor node through the beacon frame, the method further includes: Determine whether the event information carries a corresponding response time; If the event information carries a corresponding response time, the response information corresponding to the event information is sent to the sensor node at the response time. If the event information does not carry a corresponding response time, in the next transmission cycle of the beacon frame, the beacon frame is configured based on the response information corresponding to the event information, and the beacon frame is sent to the sensor node.
9. An information reporting device, characterized in that, Applied to sensor nodes, including: The determination module is used to determine the first wake-up time corresponding to the sensor node; The control module is used to exit the sleep state and enter the listening state when the current time is the first wake-up time; The reporting module is used to report the corresponding event information to the gateway when the corresponding target beacon frame is detected.
10. An information reporting device, characterized in that, Applied to gateways, including: The determination module is used to determine the information of multiple beacon frames currently configured, wherein the beacon frame information includes: the corresponding beacon frame sequence number; The sending module is used to sequentially and cyclically send the multiple beacon frames according to their beacon frame sequence numbers; The receiving module is used to receive event information or distribution network information reported by the corresponding sensor node through any one of the plurality of beacon frames when the beacon frame is in the transmitting state.
11. An information reporting device, characterized in that, include: Memory; processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the information reporting method as described in any one of claims 1-8.
12. A computer storage medium, characterized in that, The computer storage medium stores computer execution instructions, which, when executed by a processor, are used to implement the information reporting method as described in any one of claims 1-8.