A method for implementing an irrigation area environmental monitoring and early warning system
By establishing an irrigation table in the irrigation area environmental monitoring and early warning system and selecting the path with optimal energy, response time and distance, the problems of large data transmission delay and power consumption in traditional systems are solved, and the rapid acquisition of irrigation area environmental data is achieved, ensuring that The sustainable growth and production of crops.
Patent Information
- Application Number
- CN202411021380.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The traditional irrigation area environmental monitoring and early warning systems have problems such as the data transmission delay and the sensor nodes with large power consumption and low energy cannot forward and process monitoring data, resulting in inefficient environmental monitoring and early warning in the irrigation area.
An irrigation area environmental monitoring and early warning system was designed. Through uniformly distributed collection nodes and sensing nodes, the irrigation table is established using wake-up messages and collection messages, the factors of irrigation table items are calculated, and the path with optimal energy, response time and distance is selected. Perform data transmission to ensure effective forwarding and collection of data.
It realizes rapid acquisition of environmental monitoring data in irrigation areas, shortens data monitoring delay, reduces power consumption of sensor nodes, and ensures healthy growth and sustainable production of crops.
Smart Images

Figure CN118570989B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of irrigation area monitoring, and in particular to a method for realizing an irrigation area environment monitoring and early warning system. Background Art
[0002] Irrigation area environmental monitoring and early warning is an important means to provide necessary water sources for farmland, increase crop yields, and improve the stability and sustainability of agricultural production. Irrigation area environmental monitoring and early warning automatically monitors the degree of soil drought to ensure the healthy growth of crops. Traditional irrigation area environmental monitoring and early warning systems use broadcasting to transmit data, resulting in high power consumption and long delays in monitoring and early warning. At the same time, traditional irrigation area environmental monitoring and early warning systems do not consider issues such as energy, path length, and response time, which further increases the cost and delay of irrigation area environmental monitoring and early warning. At the same time, sensor nodes with low energy cannot forward and process monitoring data, resulting in the inability to achieve irrigation area environmental monitoring and early warning.
[0003] This system is designed to achieve irrigation area environmental monitoring and early warning to ensure the healthy growth of crops in the irrigation area. Summary of the invention
[0004] Purpose of the invention: The technical problem to be solved by the present invention is to provide a method for implementing an irrigation area environmental monitoring and early warning system in view of the deficiencies in the prior art.
[0005] Technical solution: The present invention discloses a method for implementing an irrigation area environment monitoring and early warning system. The system includes a plurality of collection nodes and a plurality of sensor nodes evenly distributed in the irrigation area. Each of the collection nodes and the sensor nodes includes a node ID unique identifier. Each of the sensor nodes stores an irrigation table. The irrigation table items include a path, energy, response time, clock and factor composed of a node ID set. The method includes:
[0006] The collecting node sends a wake-up message to establish an irrigation table;
[0007] If the sensor node receiving the wake-up message satisfies the following formula (1), an irrigation table entry is created; if the sensor node satisfies the following formula (2), its own node ID is added to the path of the wake-up message, the wake-up message is forwarded and this step is repeated;
[0008] (1)
[0009] (2)
[0010] Wherein, p1 is the path value of the wake-up message, s1 is the node ID of the sensor node; |p1| is the number of elements contained in the path value p1 of the wake-up message, and H1 is a preset range domain value;
[0011] The sensor node calculates the factor r(RE1) of the irrigation item RE1 using the following formula (3);
[0012] (3)
[0013] Among them, e(RE1), h(RE1) and t(RE1) are the energy coefficient, distance coefficient and response time coefficient of the irrigation table item respectively. , and is the adjustment coefficient;
[0014] If the irrigation table RT1 of the sensor node satisfies the following formula (4), a collection message is sent to the collection node;
[0015] (4)
[0016] Where, |RT1| is the total number of irrigation items contained in the irrigation table RT1, |p'(x)| is the number of elements contained in the path value of the xth irrigation item in the irrigation table RT1, It refers to the minimum number of elements contained in the path value among all irrigation items contained in the irrigation table RT1;
[0017] The sensor node receiving the collection message adds the collected data to the data set of the collection message, selects the irrigation table item with the largest factor, and forwards the collection message to the sensor node or collection node identified by the last node ID of the path value of the irrigation table item;
[0018] The collection node that receives the collection message saves the data set in the collection message.
[0019] In the invention,
[0020] The wake-up message includes a sequence number, energy, path, timestamp and clock; wherein the sequence number is 1, the energy is the current energy value of the collecting node, the path is a node ID set which only includes the node ID of the collecting node, the timestamp is the current time, and the clock value is pre-set in the range of 1-10 minutes.
[0021] In the invention,
[0022] In the irrigation table entry created by the sensor node that receives the wake-up message, the path value is equal to the path value of the wake-up message, the energy value and the clock are respectively equal to the energy and the clock in the wake-up message, the response time is equal to the difference between the current time and the timestamp in the wake-up message, and the factor is equal to 0.
[0023] In the invention,
[0024] The method further comprises:
[0025] If the irrigation table RT1 of the sensor node satisfies the following condition 1, a collection message is sent;
[0026] Condition 1: Sensor node SN1 is No collection message was received during the time period;
[0027] in, is an adjustment coefficient greater than 2, and t is a preset time threshold.
[0028] In the invention,
[0029] The collection message sent by the sensor node includes a sequence number, a node ID and a data set; wherein the sequence number is 2, the node ID is equal to the last node ID of the irrigation table path with the largest factor of the sensor node, and the data set only includes the data collected by itself.
[0030] In the invention,
[0031] The method further comprises:
[0032] If the node ID of the sensor node receiving the collection message is equal to the node ID of the collection message, the data collected by itself is added to the data set of the collection message, the irrigation table item with the largest factor is selected, the node ID of the collection message is set to the last node ID of the irrigation table item path, and the collection message is forwarded.
[0033] In the invention,
[0034] The method further comprises:
[0035] If the collection node receives a collection message, it saves the data set in the collection message.
[0036] In the invention,
[0037] , and Satisfies the following formula (5);
[0038] (5)
[0039] The sensor node calculates the energy coefficient e(RE1) of the irrigation item RE1 by the following formula (6);
[0040] (6)
[0041] Wherein, e'(RE1) is the energy value of the irrigation entry RE1, and e''(x) is the energy value of the x-th irrigation entry in the irrigation table RT1.
[0042] In the invention, the method further comprises:
[0043] The sensor node calculates the distance coefficient h(RE1) of the irrigation item RE1 by the following formula (7);
[0044] (7)
[0045] Among them, h'(RE1) is the number of elements contained in the path value in the irrigation table entry RE1, and h''(x) is the number of elements contained in the path value in the x-th irrigation table entry in the irrigation table RT1.
[0046] In the invention,
[0047] The method further comprises:
[0048] The sensor node calculates the response time coefficient t(RE1) of the irrigation item RE1 by the following formula (8);
[0049] (8)
[0050] Wherein, t'(RE1) is the response time value of the irrigation table item RE1, and t''(x) is the response time value of the x-th irrigation table item in the irrigation table RT1.
[0051] Beneficial effects: The present invention provides an implementation method of an irrigation area environment monitoring and early warning system. Through the implementation method of an irrigation area environment monitoring and early warning system provided by the present invention, the staff can quickly obtain the monitoring data of the irrigation area environment, such as humidity and drought degree, so as to take effective measures to ensure the healthy growth of crops and the sustainability of crop production, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] 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.
[0053] Figure 1 It is a flow chart of the method for implementing the irrigation area environment monitoring and early warning system of the present invention;
[0054] Figure 2 It is a schematic diagram of the process of establishing an irrigation table according to the present invention;
[0055] Figure 3 This is a schematic diagram of the irrigation area environmental data monitoring process described in the present invention. DETAILED DESCRIPTION
[0056] Beneficial effects: The present invention provides an implementation method of an irrigation area environment monitoring and early warning system. Through the implementation method of an irrigation area environment monitoring and early warning system provided by the present invention, the staff can quickly obtain the monitoring data of the irrigation area environment, such as humidity and drought degree, so as to take effective measures to ensure the healthy growth of crops and the sustainability of crop production, and has broad application prospects.
[0057] Figure 1 It is a flow chart of the method for implementing the irrigation area environment monitoring and early warning system of the present invention; Figure 2 The schematic diagram of the process of establishing an irrigation table according to the present invention. The system is composed of a collection node and a sensor node. The collection node can move freely in the irrigation area, and the sensor nodes are evenly distributed in the irrigation area.
[0058] Each collection node is uniquely identified by a node ID; each sensor node is uniquely identified by a node ID;
[0059] Each sensor node saves an irrigation table, an irrigation table entry contains path, energy, response time, clock,factor, where the path is a set of node IDs;
[0060] The collection node establishes the irrigation table by sending a wake-up message. The wake-up message contains the sequence number, energy, path, timestamp and clock. The node ID of the collection node UV0 is v0. The irrigation table is established through the following process:
[0061] Step 101: Start;
[0062] Step 102: The collection node VU0 sends a wake-up message, the sequence number of which is 1, the energy is the current energy value of the collection node UV0, the path is a node ID set, the set only contains the node ID of the collection node UV0, the timestamp is the current time, and the clock value is pre-set in the range of 1-10 minutes;
[0063] Step 103: The sensor node that receives the wake-up message determines whether the wake-up message satisfies formula (1), where p1 is the path value of the wake-up message, and s1 is the node ID of the sensor node that receives the wake-up message. If so, step 104 is executed; otherwise, step 107 is executed.
[0064] (1)
[0065] Step 104: The sensor node that receives the wake-up message creates an irrigation table entry, the path value of which is equal to p1, the energy value and the clock are respectively equal to the energy and the clock in the wake-up message, the response time is equal to the difference between the current time and the timestamp in the wake-up message, and the factor is equal to 0;
[0066] Step 105: The sensor node receiving the wake-up message determines whether the wake-up message satisfies formula (2): wherein p1 is the path value of the wake-up message, and H1 is a preset range domain value, ranging from 2 to 10. If satisfied, execute step 106; otherwise, execute step 107.
[0067] (2)
[0068] Step 106: The sensor node that receives the wake-up message adds its own node ID to the path of the wake-up message as the last element, sets the energy in the wake-up message as its own energy, forwards the wake-up message, and executes step 103;
[0069] Step 107: End.
[0070] In the above process, the collection node establishes an irrigation table on the sensor node by sending a wake-up message, so that the sensor node obtains the energy value and response time of the upstream node, selects the optimal path to reach the collection node, and avoids data monitoring failure caused by energy exhaustion.
[0071] Figure 3 Schematic diagram of the irrigation area environmental data monitoring process of the present invention. For each irrigation item RE1, the sensor node SN1 calculates the factor r (RE1) of the irrigation item RE1 using formula (3). In formula (3), e(RE1) is the energy coefficient of the irrigation item, h(RE1) is the distance coefficient of the irrigation item, t(RE1) is the response time coefficient of the irrigation item, , and is the adjustment coefficient.
[0072] (3)
[0073] If the irrigation table RT1 of the sensor node SN1 satisfies formula (4) or condition 1, the following operation is performed. In formula (4), |RT1| is the total number of irrigation items contained in the irrigation table RT1, |p'(x)| is the number of elements contained in the path value of the xth irrigation item in the irrigation table RT1, It refers to the minimum number of elements contained in the path value of all irrigation items contained in the irrigation table RT1. H1 is the preset range domain value, and the value range is [2, 10].
[0074] (4)
[0075] Condition 1: Sensor node SN1 is No collection message was received during the time period. is an adjustment coefficient greater than 2, t is a preset time threshold, and its value range is [1 second, 10 seconds];
[0076] Step 201: Start;
[0077] Step 202: the sensor node SN1 determines whether the clock of any irrigation table item in the irrigation table RT1 is expired, that is, decayed to 0. If not, step 203 is executed, otherwise step 209 is executed;
[0078] Step 203: sensor node SN1 selects the irrigation table item with the largest factor and sends a collection message. The sequence number of the message is 2, and the node ID is equal to the last node ID of the irrigation table item path. The data set only contains the data collected by itself.
[0079] Step 204: If the collection node receives the collection message, execute step 209, otherwise execute step 205;
[0080] Step 205: If the node ID of the sensor node receiving the collection message is equal to the node ID of the collection message, then execute step 206, otherwise execute step 209;
[0081] Step 206: The sensor node receiving the collection message adds the data collected by itself to the data set of the collection message. If there is an irrigation table item whose path contains only one element, then execute step 207, otherwise execute step 208;
[0082] Step 207: The sensor node receiving the collection message selects an irrigation table item whose path contains only one element, sets the node ID of the collection message to the element in the path of the irrigation table item, forwards the collection message, and executes step 204;
[0083] Step 208: receiving the irrigation entry with the largest selection factor of the collection message sensor node, setting the node ID of the collection message to the last node ID of the irrigation entry path, forwarding the collection message, and executing step 204;
[0084] Step 209: End.
[0085] In formula (3), , and Satisfies the following formula (5)
[0086] (5)
[0087] The sensor node SN1 calculates the energy coefficient e(RE1) of the irrigation table RE1 by formula (6), where e'(RE1) is the energy value of the irrigation table RE1, RT1 is the irrigation table of the sensor node, |RT1| is the total number of irrigation items contained in the irrigation table RT1, and e''(x) is the energy value of the x-th irrigation item in the irrigation table RT1;
[0088] (6)
[0089] The sensor node SN1 calculates the distance coefficient h(RE1) of the irrigation table item RE1 by formula (7), where h'(RE1) is the number of elements contained in the path value in the irrigation table item RE1, RT1 is the irrigation table of the sensor node, |RT1| is the total number of irrigation table items contained in the irrigation table RT1, and h''(x) is the number of elements contained in the path value in the x-th irrigation table item in the irrigation table RT1;
[0090] (7)
[0091] The sensor node SN1 calculates the response time coefficient t(RE1) of the irrigation item RE1 by formula (8), where t'(RE1) is the response time value of the irrigation item RE1, RT1 is the irrigation table of the sensor node, |RT1| is the total number of irrigation items contained in the irrigation table RT1, and t''(x) is the response time value of the xth irrigation item in the irrigation table RT1;
[0092] (8)
[0093] The sensor node sends the collected data to the collection node by sending a collection message, which contains a sequence number, a node ID, and a data set.
[0094] The sensor node sends a collection message to the collection node through the above process, which has the following advantages: 1. Select the optimal path to reach the collection node to avoid data monitoring failure due to energy exhaustion; 2. Select the path with the largest factor to reach the collection node. Since the factor uses response time and distance as parameters, the path selected by the factor has the characteristics of short response time and short distance, thereby shortening the data monitoring delay and reducing the power consumption of the sensor node; 3. Through a data monitoring process, the data collected by all sensor nodes in the path can be obtained, thereby further shortening the data monitoring time and reducing the power consumption of the sensor node. After receiving the above data, the collection node realizes real-time monitoring and early warning of the irrigation area environment.
[0095] Example 1
[0096] Based on the simulation parameters in Table 1, this embodiment simulates an implementation method of an irrigation area environment monitoring and early warning system in the present invention. The performance analysis is as follows: when the collection node is far away from the sensor node that collects data, the success rate of the collection node in acquiring the irrigation area environment monitoring data decreases, and when the collection node is close to the sensor node that collects data, the success rate of the collection node in acquiring the irrigation area environment monitoring data increases, and the average success rate of the collection node in acquiring the irrigation area environment monitoring data is 97.8%.
[0097] Table 1
[0098]
[0099] The present invention provides a method for implementing an irrigation area environmental monitoring and early warning 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 an irrigation area environmental monitoring and early warning system, characterized in that: The system includes a plurality of collection nodes and a plurality of sensor nodes uniformly distributed in the irrigation area, each of the collection nodes and the sensor nodes includes a node ID unique identifier, each of the sensor nodes stores an irrigation table, and the irrigation table items include a path, energy, response time, clock and factor composed of a node ID set; the method includes: The collecting node sends a wake-up message to establish an irrigation table; If the sensor node receiving the wake-up message satisfies the following formula (1), an irrigation table entry is created; if the sensor node satisfies the following formula (2), its own node ID is added to the path of the wake-up message, the wake-up message is forwarded and this step is repeated; (1) (2) Wherein, p1 is the path value of the wake-up message, s1 is the node ID of the sensor node; |p1| is the number of elements contained in the path value p1 of the wake-up message, and H1 is a preset range domain value; The sensor node calculates the factor r(RE1) of the irrigation item RE1 using the following formula (3); (3) Among them, e(RE1), h(RE1) and t(RE1) are the energy coefficient, distance coefficient and response time coefficient of the irrigation table item respectively. , and is the adjustment coefficient; If the irrigation table RT1 of the sensor node satisfies the following formula (4), a collection message is sent to the collection node; (4) Among them, |RT1| is the total number of irrigation items contained in the irrigation table RT1, |p'(x)| is the number of elements contained in the path value of the xth irrigation item in the irrigation table RT1, It refers to the minimum value of the number of elements contained in the path value of all irrigation items contained in the irrigation table RT1; The sensor node receiving the collection message adds the collected data to the data set of the collection message, selects the irrigation table item with the largest factor, and forwards the collection message to the sensor node or collection node identified by the last node ID of the path value of the irrigation table item; The collection node that receives the collection message saves the data set in the collection message; , and Satisfies the following formula (5); (5) The sensor node calculates the energy coefficient e(RE1) of the irrigation item RE1 by the following formula (6); (6) Wherein, e'(RE1) is the energy value of irrigation entry RE1, and e''(x) is the energy value of the xth irrigation entry in irrigation table RT1; The method further comprises: The sensor node calculates the distance coefficient h(RE1) of the irrigation item RE1 by the following formula (7); (7) Wherein, h'(RE1) is the number of elements contained in the path value in the irrigation table entry RE1, and h''(x) is the number of elements contained in the path value in the x-th irrigation table entry in the irrigation table RT1; The method further comprises: The sensor node calculates the response time coefficient t(RE1) of the irrigation item RE1 by the following formula (8); (8) Wherein, t'(RE1) is the response time value of the irrigation table item RE1, and t''(x) is the response time value of the x-th irrigation table item in the irrigation table RT1.
2. The method for implementing an irrigation area environment monitoring and early warning system according to claim 1, characterized in that: The wake-up message includes a sequence number, energy, path, timestamp and clock; wherein the sequence number is 1, the energy is the current energy value of the collecting node, the path is a node ID set which only includes the node ID of the collecting node, the timestamp is the current time, and the clock value is pre-set in the range of 1-10 minutes.
3. The method for implementing an irrigation area environment monitoring and early warning system according to claim 1, characterized in that: In the irrigation table entry created by the sensor node that receives the wake-up message, the path value is equal to the path value of the wake-up message, the energy value and the clock are respectively equal to the energy and the clock in the wake-up message, the response time is equal to the difference between the current time and the timestamp in the wake-up message, and the factor is equal to 0.
4. The method for implementing an irrigation area environment monitoring and early warning system according to claim 1, characterized in that: The method further comprises: If the irrigation table RT1 of the sensor node satisfies the following condition 1, a collection message is sent; Condition 1: Sensor node SN1 is No collection message was received during the time period; in, is an adjustment coefficient greater than 2, and t is a preset time threshold.
5. The method for implementing an irrigation area environment monitoring and early warning system according to claim 1, characterized in that: The collection message sent by the sensor node includes a sequence number, a node ID and a data set; wherein the sequence number is 2, the node ID is equal to the last node ID of the irrigation table path with the largest factor of the sensor node, and the data set only includes the data collected by itself.
6. The method for implementing an irrigation area environment monitoring and early warning system according to claim 1, characterized in that: The method further comprises: If the node ID of the sensor node receiving the collection message is equal to the node ID of the collection message, the data collected by itself is added to the data set of the collection message, the irrigation table item with the largest factor is selected, the node ID of the collection message is set to the last node ID of the irrigation table item path, and the collection message is forwarded.
7. The method for implementing an irrigation area environment monitoring and early warning system according to claim 5, characterized in that: The method further comprises: If the collection node receives a collection message, it saves the data set in the collection message.
