A method for implementing a residential building security inspection system
By establishing a learning table and backup node ID set in the residential building security inspection system, the data transmission path is optimized to solve the problem of sensor node location and energy impact, achieve rapid acquisition of monitoring data and improve security inspection efficiency, ensuring the safety of residents.
Patent Information
- Application Number
- CN202410917440.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-10
AI Technical Summary
Traditional residential building security inspection systems do not consider the impact of sensor node locations and energy parameters on data monitoring performance, resulting in long transmission delays and high power consumption of monitoring data, and low-energy sensor nodes cannot achieve data forwarding and processing, making real-time detection and monitoring impossible. data.
Design a security inspection system for residential buildings. By establishing a learning table at the convergence node and sensor node, calculating the learning coefficient, building a backup node ID set, optimizing the data transmission path, ensuring that the sensor node can effectively send data during its life cycle, and improving data Monitor efficiency.
It realizes the rapid acquisition of regional monitoring data of residential buildings, such as gas concentration, and takes timely safety measures to ensure the healthy life of residents and improves the efficiency and reliability of the security inspection system.
Smart Images

Figure CN118474827B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent security technology, and in particular to a method for realizing a residential building security inspection system. Background Art
[0002] The residential building security system is an important means of providing resident safety. It is used to increase the safety of the residential environment and improve the stability and sustainability of the living environment. The residential building security system automatically monitors the resident environment and automatically implements safety measures to ensure the healthy living of residents.
[0003] Traditional residential building security systems do not consider the impact of parameters such as the height and energy of the sensor node's location on data monitoring performance, resulting in problems such as long monitoring data transmission delays and high power consumption. At the same time, sensor nodes with low energy cannot forward and process monitoring data, resulting in the aggregation node being unable to obtain the monitoring data collected by the sensor nodes, and thus unable to detect the monitoring data collected by the sensor nodes in real time.
[0004] This system aims to achieve real-time monitoring of residential buildings and ensure the safety of residential buildings. Summary of the invention
[0005] Purpose of the invention: The technical problem to be solved by the present invention is to provide a method for implementing a residential building security inspection system in view of the deficiencies in the prior art.
[0006] Technical solution: The present invention discloses a method for implementing a residential building security inspection system, characterized in that the system comprises a sink node and a sensor node, the sink node is located on the ground floor of the residential building, and the sensor nodes are evenly distributed in the residential building; each of the sink node and the sensor node stores a learning table, and the learning table items in the learning table include node ID, learning coefficient, height, energy and life cycle; the method comprises:
[0007] After the sink node or sensor node establishes the learning table, the following operations are performed for each learning table item whose height value is greater than its own height value: based on all learning table items whose height values are greater than the height value of the sensor node or sink node, a node ID set RN is constructed, a learning coefficient L1 is calculated, and the learning coefficient of the learning table item is set to L1;
[0008] The aggregation node constructs a backup node ID set using the learning table and sends a discovery message to establish a continuous table;
[0009] If a sensor node has a continuous table entry and its height is contained in the interval [d'- , d'+ ], then during the life cycle of the continuous table entry, the sensor node constructs a tuple, where d' is equal to the height value in the continuous table entry, is the error value, the value range is 5%d'-10%d', the data value of the tuple is equal to the data collected by the sensor node itself, and the height value is equal to the current height value of the sensor node itself; and a management message is sent to send the sensed data to the sink node.
[0010] In the method,
[0011] The learning coefficient L1 is calculated according to the following formula (1):
[0012] (1)
[0013] Wherein, θ is the adjustment coefficient, the value range is 0.1-0.9, NID is any node ID in the node ID set RN;
[0014] q(NID) is the height value in the learning table entry whose node ID is equal to NID, and q' is the height value of the learning table entry whose height value is greater than the height value of the sink node or the sensor node;
[0015] e(NID) is the energy value in the learning table entry whose node ID is equal to NID, and e' is the energy value of the learning table entry whose height value is greater than the height value of the sink node or the sensor node;
[0016] represents the height value of a learning table entry, which is not less than the height value of a learning table entry whose node ID is equal to any node ID in the node ID set RN. represents the height value of a learning table entry, which is not greater than the height value of a learning table entry whose node ID is equal to any node ID in the node ID set RN. represents the energy value of a learning table entry, which is not less than the energy value of the learning table entry whose node ID is equal to any node ID in the node ID set RN. Represents the energy value of a learning table entry, which is not greater than the energy value of a learning table entry whose node ID is equal to any node ID in the node ID set RN.
[0017] The method further comprises:
[0018] The sink node and the sensor node obtain the node ID, the height and the energy value of the neighboring sensor node by sending a learning message;
[0019] The sink node or sensor node calculates the average learning coefficient through formula (2);
[0020] (2)
[0021] Wherein, a is the average learning coefficient, LT is the learning table of the sink node or sensor node, |LT| is the number of learning items contained in the learning table of the sink node or sensor node, and its value is greater than 0, and a'(k) is the learning coefficient of the kth learning item in the learning table of the sink node or sensor node;
[0022] The aggregation node or sensor node selects a learning table item whose learning coefficient is greater than the average learning coefficient a, and constructs a backup node ID set; wherein the backup node ID set includes the node IDs in all learning table items whose learning coefficient is greater than the average learning coefficient a, and the node IDs are arranged in descending order according to the learning coefficients in the learning table items, that is, the node ID of the learning table item with the largest learning coefficient among all learning table items with a learning coefficient greater than the average learning coefficient a is used as the first element of the backup node ID set, the node ID of the learning table item with the second largest learning coefficient among all learning table items with a learning coefficient greater than the average learning coefficient a is used as the second element of the backup node ID set, and so on.
[0023] In the method,
[0024] Each sensor node stores a continuous table, and a continuous table entry includes a node ID, a backup node ID set, a height and a life cycle; the method further includes:
[0025] If the sensor node finds that the life cycle of a continuous table entry decays to 0, the continuous table entry is deleted from the continuous table.
[0026] The method further comprises:
[0027] The source node ID of the discovery message is equal to its own node ID, the destination node ID is equal to the first element of the backup node ID set, the height is equal to d, the life cycle is a preset value, and the backup node ID set is equal to the constructed backup node ID set.
[0028] The method further comprises:
[0029] If the node ID of the sensor node that receives the discovery message is included in the backup node ID of the discovery message, a continuous table entry is created; wherein the node ID of the continuous table entry is equal to the source node ID of the discovery message, and the backup node ID set, height and life cycle are respectively equal to the backup node ID set, height and life cycle of the discovery message.
[0030] The method further comprises:
[0031] If the sensor node receiving the discovery message is not included in the interval [d- , d+ ] and its own node ID is equal to the destination node ID of the discovery message, then a backup node ID set is constructed, where d is equal to the height value in the discovery message, is the error value, and the value range is 5%d-10%d; and the source node ID of the discovery message is set to its own node ID, the destination node ID of the discovery message is set to the first element of the constructed backup node ID set, the backup node ID set of the discovery message is set to the constructed backup node ID set, and the discovery message is forwarded.
[0032] In the method,
[0033] The data sensed by the sensor node consists of a tuple <data value, height value>;
[0034] The two-tuple set managing the message contains only one two-tuple, namely the constructed two-tuple, and the height is equal to the height of the continuous table entry.
[0035] The method further comprises:
[0036] If the sensor node that receives the management message has a continuous table entry with a height equal to the height in the management message, and the difference between the height in the last tuple of the management message tuple set and its own height value is greater than the threshold TH1, and the node ID of the sensor node is not equal to the first element in the backup node ID set of the continuous table entry, the sensor node performs the following operations:
[0037] The sensor node waits for t×(n-1) seconds, where t is a constant with a value of 100ms-500ms, and n is the position of its own node ID in the backup node ID set of the continuous table entry. If the node ID of the sensor node is equal to the second element in the backup node ID set, n is equal to 2; if it is the third element, n is equal to 3, and so on. If no management message is received within t×(n-1) seconds, and the absolute value of the difference between the height in the last tuple of the management message tuple set and its own height value is less than the threshold TH1, then a tuple is constructed, the data value of the tuple is equal to the data collected by itself, and the height value is equal to its own height value. The constructed tuple is added to the tuple set in the management message and sent as the last element.
[0038] The method further comprises:
[0039] If a sensor node that receives the management message has a continuous table entry with a height equal to the height in the management message, and the difference between the height in the last tuple of the management message tuple set and its own height value is greater than a threshold TH1, and the node ID of the sensor node is equal to the first element in the backup node ID set of the continuous table entry, the sensor node constructs a tuple, the data value of the tuple is equal to the data collected by itself, and the height value is equal to its own height value, adds the constructed tuple to the tuple set in the management message, and sends the management message as the last element.
[0040] Beneficial effects: The present invention provides an implementation method of a residential building security inspection system. Through the implementation method of the residential building security inspection system provided by the present invention, the staff can quickly obtain the monitoring data of the residential building area, such as gas concentration, so as to take timely safety measures and automatically implement safety measures to ensure the healthy life of residents. It has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.
[0042] Figure 1 It is a flow chart of a method for implementing a residential building security inspection system of the present invention;
[0043] Figure 2 This is a schematic diagram of the process of establishing a learning table according to the present invention;
[0044] Figure 3 This is a schematic diagram of the path establishment process of the present invention;
[0045] Figure 4 The figure is a schematic diagram of the data monitoring process described in the present invention. DETAILED DESCRIPTION
[0046] Beneficial effects: The present invention provides an implementation method of a residential building security inspection system. Through the implementation method of the residential building security inspection system provided by the present invention, the staff can quickly obtain the monitoring data of the residential building area, such as gas concentration, so as to take timely safety measures and automatically implement safety measures to ensure the healthy life of residents. It has broad application prospects.
[0047] Figure 1 It is a flow chart of a method for implementing a residential building security inspection system of the present invention; Figure 2 A method for implementing a residential building security inspection system, characterized in that the system is composed of a sink node and a sensor node, the sink node is located on the ground floor of the residential building, and the sensor nodes are evenly distributed in the residential building;
[0048] The sink node and sensor node are uniquely identified by a node ID, whose value is a hardware ID, such as a MAC address;
[0049] Each sink node and sensor node saves a learning table. A learning table entry contains node ID, learning coefficient, height, energy and life cycle. The initial value of the learning table is an empty table.
[0050] The learning message contains the message ID, node ID, height and energy;
[0051] The sensor node builds the learning table through the following process:
[0052] Step 101: Start;
[0053] Step 102: The sensor node sends a learning message, the message ID of which is 1, the node ID is its own node ID, the height is the height of its current location, and the energy is its current remaining energy; wherein, the height of the current location of the sensor node is set when the sensor node is deployed. For example, when the sensor node is deployed at a height of 10 meters, the height of the current location of the sensor node is equal to 10 meters, that is, the height in the learning message is equal to the height of the current location of the sensor node, that is, 10 meters. The sensor node is driven by a battery, therefore, the current remaining energy of the sensor node is equal to the current remaining energy of the battery of the sensor node. For example, if the current remaining energy of the battery of the sensor node is 1000 joules, then the energy in the learning message is equal to the current remaining energy of the battery of the sensor node, that is, 1000 joules.
[0054] Step 103: The neighboring sensor node or the sink node that receives the learning message determines whether there is a learning table item whose node ID is equal to the node ID in the learning message. If so, the learning coefficient of the learning table item is set to 0, the height and energy are set to the height and energy in the learning message respectively, and the life cycle is set to the maximum value. Otherwise, a learning table item is created, the node ID of the table item is equal to the node ID in the learning message, the learning coefficient of the learning table item is set to 0, the height and energy are set to the height and energy in the learning message respectively, and the life cycle is set to the maximum value.
[0055] Step 104: End;
[0056] After the sink node or sensor node establishes the learning table, it performs the following operations for each learning table item whose height value is greater than its own height value: select the learning table item that meets condition 1 and construct a node ID set RN, that is, the node ID set RN is composed of the node IDs of the learning table items that meet condition 1, calculate the learning coefficient L1 according to formula (1), and set the learning coefficient of the learning table item to L1. In formula (1), θ is the adjustment coefficient, and the value range is 0.1-0.9, NID is any node ID in the node ID set RN, q(NID) is the height value in the learning table item whose node ID is equal to NID, q' is the height value of the selected learning table item, e(NID) is the energy value in the learning table item whose node ID is equal to NID, and e' is the energy value of the selected learning table item. is the height value of the learning table entry that meets condition 2 in the node ID set RN, is the height value of the learning table entry that meets condition 3 in the node ID set RN, is the energy value of the learning table entry that meets condition 4 in the node ID set RN, is the energy value of the learning table entry that meets condition 5 in the node ID set RN;
[0057] Condition 1: The height of the learning table entry is greater than the height of the sensor node or sink node;
[0058] Condition 2: The height value of the learning table entry is not less than the height value of the learning table entry whose node ID is equal to any node ID in the node ID set RN;
[0059] Condition 3: The height value of the learning table entry is not greater than the height value of the learning table entry whose node ID is equal to any node ID in the node ID set RN;
[0060] Condition 4: The energy value of the learning entry is not less than the energy value of the learning entry whose node ID is equal to any node ID in the node ID set RN;
[0061] Condition 5: The energy value of the learning table entry is not greater than the energy value of the learning table entry whose node ID is equal to any node ID in the node ID set RN;
[0062] (1).
[0063] In the above process, the sensor node creates its own learning table entry in the sink node or sensor node through learning messages, and then allows other sink nodes or sensor nodes to obtain learning coefficients. The validity and timeliness of neighbor information are ensured through the life cycle of the learning table, and the optimal path is established through the learning coefficient.
[0064] Figure 3The figure is a schematic diagram of the path establishment process of the present invention. The sink node or sensor node calculates the average learning coefficient a by formula (2), LT is the learning table of the sink node or sensor node, |LT| is the number of learning table items contained in the learning table of the sink node or sensor node, and its value is greater than 0, and a'(k) is the learning coefficient of the kth learning table item in the learning table of the sink node or sensor node;
[0065] (2)
[0066] The sink node or sensor node selects a learning table item that meets condition 6 and constructs a backup node ID set. The backup node ID set includes the node IDs in all learning table items that meet condition 6, and the node IDs are arranged in descending order according to the learning coefficients in the learning table items, that is, the node ID of the learning table item with the largest learning coefficient among all learning table items that meet condition 6 is used as the first element of the backup node ID set, the node ID of the learning table item with the second largest learning coefficient among all learning table items that meet condition 6 is used as the second element of the backup node ID set, and so on.
[0067] Condition 6: The learning coefficient of the learning table item is greater than the average learning coefficient a;
[0068] Each sensor node saves a continuous table. A continuous table entry contains the node ID, backup node ID set, height and life cycle. If the sensor node finds that the life cycle of a continuous table entry decays to 0, it deletes the continuous table entry from the continuous table.
[0069] The discovery message contains the message ID, source node ID, destination node ID, height, life cycle and backup node ID set;
[0070] The sink node SN1 establishes a path to the height d by the following process:
[0071] Step 201: Start;
[0072] Step 202: The sink node SN1 constructs a backup node ID set and sends a discovery message, in which the message ID is equal to 2, the source node ID is equal to its own node ID, the destination node ID is equal to the first element of the backup node ID set, the height is equal to d, the life cycle is a preset value, and the backup node ID set is equal to the constructed backup node ID set;
[0073] Step 203: The sensor node that receives the discovery message determines whether its node ID is included in the backup node ID of the discovery message. If yes, execute step 204; otherwise, execute step 207;
[0074] Step 204: The sensor node that receives the discovery message creates a continuous table entry, the node ID of the continuous table entry is equal to the source node ID of the discovery message, the backup node ID set, height and life cycle are respectively equal to the backup node ID set, height and life cycle of the discovery message, and the sensor node that receives the discovery message determines whether its height is included in the interval [d- , d+ ], d is equal to the height value in the discovery message, is the error value, the value range is 5%d-10%d, if yes, execute step 207, otherwise execute step 205;
[0075] Step 205: The sensor node that receives the discovery message determines whether its node ID is equal to the destination node ID of the discovery message. If yes, step 206 is executed; otherwise, step 207 is executed.
[0076] Step 206: The sensor node that receives the discovery message constructs a backup node ID set, sets the source node ID of the discovery message to its own node ID, sets the destination node ID of the discovery message to the first element of the constructed backup node ID set, sets the backup node ID set of the discovery message to the constructed backup node ID set, forwards the discovery message, and executes step 203;
[0077] Step 207: End.
[0078] In the above process, the aggregation node establishes a path to the target height d by sending a discovery message, thereby realizing continuous data acquisition and monitoring. The path constructs a backup path through the backup node ID set, thereby solving the monitoring failure problem caused by the movement of sensor nodes and greatly improving the monitoring efficiency of residential building environmental data.
[0079] Figure 4 The figure is a schematic diagram of the data monitoring process described in the present invention.
[0080] The data consists of a tuple <data value, height value>;
[0081] The management message contains the message ID, a two-tuple set, and a height;
[0082] If a sensor node has a continuous table entry and its height is contained in the interval [d'- , d'+ ], d' is equal to the height value in the continuous table item, is the error value, ranging from 5%d' to 10%d'. During the life cycle of the continuous entry, the sensor node periodically performs the following operations:
[0083] Step 301: Start;
[0084] Step 302: The sensor node constructs a tuple, the data value of the tuple is equal to the data collected by itself, the height value is equal to its current height value, and sends a management message, the message ID of the message is 3, the tuple set contains only one tuple, that is, the constructed tuple, and the height is equal to the height of the continuous table item;
[0085] Step 303: If the aggregation node receives the management message, execute step 309, otherwise execute step 304;
[0086] Step 304: The sensor node that receives the management message determines whether it has a continuous table entry whose height is equal to the height of the management message. If so, execute step 305; otherwise, execute step 309;
[0087] Step 305: The sensor node that receives the management message determines whether the difference between the height in the last tuple of the management message tuple set and its own height value is greater than the threshold TH1. If yes, execute step 306; otherwise, execute step 309.
[0088] Step 306: The sensor node that receives the management message selects a continuous table entry whose height is equal to the height of the management message. If the node ID of the sensor node is equal to the first element in the backup node ID set of the continuous table entry, step 307 is executed, otherwise step 308 is executed.
[0089] Step 307: The sensor node that receives the management message constructs a tuple, the data value of the tuple is equal to the data collected by itself, and the height value is equal to its own height value, and adds the constructed tuple to the tuple set in the management message and sends the management message as the last element, and executes step 303;
[0090] Step 308: The sensor node that receives the management message waits for t×(n-1) seconds, where t is a constant, ranging from 100ms to 500ms, and n is the position of its own node ID in the backup node ID set of the continuous table entry. For example, if the node ID of the sensor node is equal to the second element in the backup node ID set, n is equal to 2; if it is the third element, n is equal to 3, and so on. It is determined whether a management message is received within t×(n-1) seconds, and the absolute value of the difference between the height in the last tuple of the management message tuple set and its own height value is less than the threshold TH1. If so, step 309 is executed, otherwise step 307 is executed;
[0091] Step 309: End.
[0092] In the above process, the sensor nodes periodically send management messages and send the data collected by multiple sensor nodes to the aggregation node for management. Since the aggregation node obtains and manages the data perceived by multiple sensor nodes through a single data transmission process, the monitoring efficiency of the residential building environmental data is greatly improved. At the same time, the backup node ID set ensures the path continuity and ensures that the aggregation node can manage the residential building environmental data perceived by the sensor nodes.
[0093] Example 1
[0094] Based on the simulation parameters in Table 1, this embodiment simulates an implementation method of a residential building security inspection system in the present invention. The performance analysis is as follows: when the distance between the sensor node and the sink node is far, the success rate of the sink node obtaining the residential building security inspection data perceived by the sensor node decreases, and when the distance between the sensor node and the sink node is close, the success rate of the sink node obtaining the residential building security inspection data perceived by the sensor node increases, and the average success rate of the sink node obtaining the residential building security inspection data is 97.1%.
[0095] Table 1
[0096]
[0097] The present invention provides a method for implementing a residential building security inspection system. There are many methods and ways to implement the technical solution. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be considered as the protection scope of the present invention. All components not specified in this embodiment can be implemented using existing technologies.
Claims
1. A method for implementing a residential building security inspection system, characterized in that: The system includes a sink node and a sensor node, wherein the sink node is located on the ground floor of a residential building, and the sensor nodes are evenly distributed in the residential building; each sink node and the sensor node stores a learning table, wherein the learning table items in the learning table include a node ID, a learning coefficient, a height, energy, and a life cycle; and the method includes: After the sink node or sensor node establishes the learning table, the following operations are performed for each learning table item whose height value is greater than its own height value: based on all learning table items whose height values are greater than the height value of the sensor node or sink node, a node ID set RN is constructed, a learning coefficient L1 is calculated, and the learning coefficient of the learning table item is set to L1; The aggregation node constructs a backup node ID set using the learning table and sends a discovery message to establish a continuous table; If a sensor node has a continuous table entry and its height is contained in the interval [d'- , d'+ ], then during the life cycle of the continuous table entry, the sensor node constructs a tuple, where d' is equal to the height value in the continuous table entry, is the error value, the value range is 5%d'-10%d', the data value of the tuple is equal to the data collected by the sensor node itself, and the height value is equal to the current height value of the sensor node itself; and send a management message to send the sensed data to the sink node; The learning coefficient L1 is calculated according to the following formula (1): (1) Wherein, θ is the adjustment coefficient, the value range is 0.1-0.9, NID is any node ID in the node ID set RN; q(NID) is the height value in the learning table entry whose node ID is equal to NID, and q' is the height value of the learning table entry whose height value is greater than the height value of the sink node or the sensor node; e(NID) is the energy value in the learning table entry whose node ID is equal to NID, and e' is the energy value of the learning table entry whose height value is greater than the height value of the sink node or the sensor node; represents the height value of a learning table entry, which is not less than the height value of a learning table entry whose node ID is equal to any node ID in the node ID set RN. represents the height value of a learning table entry, which is not greater than the height value of a learning table entry whose node ID is equal to any node ID in the node ID set RN. represents the energy value of a learning table entry, which is not less than the energy value of the learning table entry whose node ID is equal to any node ID in the node ID set RN. represents the energy value of a learning table entry, the energy value of the learning table entry is not greater than the energy value of the learning table entry whose node ID is equal to any node ID in the node ID set RN; The method further comprises: The sink node and the sensor node obtain the node ID, the height and the energy value of the neighboring sensor node by sending a learning message; The sink node or sensor node calculates the average learning coefficient through formula (2); (2) Wherein, a is the average learning coefficient, LT is the learning table of the sink node or sensor node, |LT| is the number of learning items contained in the learning table of the sink node or sensor node, and its value is greater than 0, and a'(k) is the learning coefficient of the kth learning item in the learning table of the sink node or sensor node; The aggregation node or sensor node selects a learning table item whose learning coefficient is greater than the average learning coefficient a, and constructs a backup node ID set; wherein the backup node ID set includes the node IDs in all learning table items whose learning coefficient is greater than the average learning coefficient a, and the node IDs are arranged in descending order according to the learning coefficients in the learning table items, that is, the node ID of the learning table item with the largest learning coefficient among all learning table items with a learning coefficient greater than the average learning coefficient a is used as the first element of the backup node ID set, the node ID of the learning table item with the second largest learning coefficient among all learning table items with a learning coefficient greater than the average learning coefficient a is used as the second element of the backup node ID set, and so on.
2. The method for implementing a residential building security inspection system according to claim 1, characterized in that: Each sensor node stores a continuous table, and a continuous table entry includes a node ID, a backup node ID set, a height and a life cycle; the method further includes: If the sensor node finds that the life cycle of a continuous table entry decays to 0, the continuous table entry is deleted from the continuous table.
3. The method for implementing a residential building security inspection system according to claim 1, characterized in that: The method further comprises: The source node ID of the discovery message is equal to its own node ID, the destination node ID is equal to the first element of the backup node ID set, the height is equal to d, the life cycle is a preset value, and the backup node ID set is equal to the constructed backup node ID set.
4. A method for implementing a residential building security inspection system according to claim 1 or 3, characterized in that: The method further comprises: If the node ID of the sensor node that receives the discovery message is included in the backup node ID of the discovery message, a continuous table entry is created; wherein the node ID of the continuous table entry is equal to the source node ID of the discovery message, and the backup node ID set, height and life cycle are respectively equal to the backup node ID set, height and life cycle of the discovery message.
5. The method for implementing a residential building security inspection system according to claim 1 or 3, characterized in that: The method further comprises: If the sensor node receiving the discovery message is not included in the interval [d- , d+ ] and its own node ID is equal to the destination node ID of the discovery message, then a backup node ID set is constructed, where d is equal to the height value in the discovery message, is the error value, and the value range is 5%d-10%d; and the source node ID of the discovery message is set to its own node ID, the destination node ID of the discovery message is set to the first element of the constructed backup node ID set, the backup node ID set of the discovery message is set to the constructed backup node ID set, and the discovery message is forwarded.
6. The method for implementing a residential building security inspection system according to claim 1, characterized in that: The data sensed by the sensor node consists of a tuple <data value, height value>; The two-tuple set managing the message contains only one two-tuple, namely the constructed two-tuple, and the height is equal to the height of the continuous table entry.
7. A method for implementing a residential building security inspection system according to claim 1 or 6, characterized in that: The method further comprises: If the sensor node that receives the management message has a continuous table entry with a height equal to the height in the management message, and the difference between the height in the last tuple of the management message tuple set and its own height value is greater than the threshold TH1, and the node ID of the sensor node is not equal to the first element in the backup node ID set of the continuous table entry, the sensor node performs the following operations: The sensor node waits for t×(n-1) seconds, where t is a constant with a value of 100ms-500ms, and n is the position of its own node ID in the backup node ID set of the continuous table entry. If the node ID of the sensor node is equal to the second element in the backup node ID set, n is equal to 2; if it is the third element, n is equal to 3, and so on. If no management message is received within t×(n-1) seconds, and the absolute value of the difference between the height in the last tuple of the management message tuple set and its own height value is less than the threshold TH1, then a tuple is constructed, the data value of the tuple is equal to the data collected by itself, and the height value is equal to its own height value. The constructed tuple is added to the tuple set in the management message and sent as the last element.
8. A method for implementing a residential building security inspection system according to claim 1 or 6, characterized in that: The method further comprises: If a sensor node that receives the management message has a continuous table entry with a height equal to the height in the management message, and the difference between the height in the last tuple of the management message tuple set and its own height value is greater than a threshold TH1, and the node ID of the sensor node is equal to the first element in the backup node ID set of the continuous table entry, the sensor node constructs a tuple, the data value of the tuple is equal to the data collected by itself, and the height value is equal to its own height value, adds the constructed tuple to the tuple set in the management message, and sends the management message as the last element.
Citation Information
Patent Citations
Agricultural greenhouse temperature monitoring system based on all IP (Internet Protocol) wireless sensor network
CN101883132A
ZigBee routing method suitable for wireless monitoring and controlling network
CN104869603A
Implementation method of Internet of Things air monitoring system based on data fusion mechanism
CN111385854A
Wireless sensor network malicious node detection method based on NBDP clustering
CN112929879A
Intelligent environment monitoring system implementation method based on future network
CN112954640A
