Method of configuring a field irrigation system and field irrigation system
By actively sending data information through gate valves and applying the LORA communication network, the problem of difficult valve-gateway binding in traditional field irrigation systems has been solved, enabling rapid and accurate configuration and efficient irrigation control.
Patent Information
- Application Number
- CN202411360743.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2044-09-26
AI Technical Summary
In traditional field irrigation systems, the process of binding valves to gateways requires a lot of manual scanning and input, resulting in a high error rate and a large workload.
The gate valve actively sends data information to the gateway. After processing by the gateway and software platform, the device list is saved, enabling fast and accurate configuration of the gateway and the gate valve. It adopts LORA communication network and frequency separation technology to support parallel control of multiple gate valves.
It reduces manual operation, lowers the configuration error rate, improves configuration and transmission efficiency, and ensures the reliability and flexibility of the system.
Smart Images

Figure CN118923510B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of agriculture, and more particularly, to a configuration method of a field irrigation system and the field irrigation system. BACKGROUND
[0002] The field irrigation system is a key technology for rational allocation and efficient use of water resources in agriculture, which can help users to realize regulated irrigation of crops according to the real-time needs of users, water requirements of crops and weather conditions, etc. In the field valve control system, the irrigation valve needs to be controlled in real time for the user to realize reliable and timely irrigation of field crops to meet the growth needs of crops.
[0003] In some traditional irrigation systems, loRaWAN communication is used between the field irrigation valve and the gateway, each valve has its own device number, and the valve needs to be bound with the gateway through a user terminal such as a mobile phone APP or other device by scanning the code. In the season when the valve is installed, a large amount of manpower is needed to scan and bind, and once the binding is wrong, the maintenance workload is also very large.
[0004] Therefore, how to provide a field irrigation system capable of realizing quick configuration of the valve and the gateway with high accuracy is a technical problem to be solved. SUMMARY
[0005] The present application provides a configuration method of a field irrigation system and the field irrigation system, which aims to send data information from the gate valve to the gateway, and save the processed information to the device list of the gateway after the gateway and the software platform process the data information, so as to realize successful configuration between the gateway and the gate valve, and realize quick configuration between the gateway and the gate valve with high accuracy.
[0006] In a first aspect, a configuration method of a field irrigation system is provided, the field irrigation system comprising a gateway and a plurality of gate valves, the gateway and the plurality of gate valves constituting a LORA communication network, the method comprising: receiving first data information sent by the plurality of gate valves, wherein the first data information comprises device numbers and position information of the plurality of gate valves; adding the device numbers to a device list of the gateway and sending the first data information to a software platform; receiving second data information processed by the software platform, and adding the second data information to the device list, so as to realize successful configuration between the gateway and the plurality of gate valves, wherein the second data information comprises information of at least one rotation irrigation group corresponding to the plurality of gate valves, angle information of each rotation irrigation group, and irrigation time of each rotation irrigation group, and each rotation irrigation group comprises at least one gate valve.
[0007] Based on the above scheme, the gate valve actively sends data information to the gateway, and the gateway and the software platform save the processed information to the device list of the gateway after processing the data information, so as to successfully configure the gateway and the gate valve, realize the fast configuration between the gateway and the gate valve, and configure them with high accuracy. Compared with the manual scanning or manual input method in the prior art, the application greatly saves manpower and reduces the probability of errors.
[0008] Optionally, in the present application, the reason for sending the first data information received by the gateway to the software platform for processing is that the software platform also needs to obtain the second data information based on the various data states of the field crops (such as soil humidity, temperature, illumination, wind speed, etc.), the user's irrigation habits, and the first data information.
[0009] In addition, in the present application, the second data information and the device number are stored in the device list of the gateway to complete the configuration between the gateway and the gate valve, rather than being stored in the software platform. When the gateway needs to control the gate valve, the software platform is used to issue a control command to the gateway to control the gate valve. In the case of network disconnection or network congestion of the software platform, the gateway can continue to control the gate valve according to the irrigation time, irrigation angle, etc. in the device list of the gateway to perform corresponding operations.
[0010] In combination with the first aspect, in some implementations of the first aspect, the information of the at least one wheel irrigation group corresponding to the plurality of gate valves is calculated according to the device number and the position information to confirm the distance of the plurality of gate valves.
[0011] In combination with the first aspect, in some implementations of the first aspect, in the device list, the second data information corresponds to the device number.
[0012] In combination with the first aspect, in some implementations of the first aspect, after the gateway and the plurality of gate valves are successfully configured, the method comprises: sending a control command based on a LORA communication protocol to the plurality of gate valves; and controlling the plurality of gate valves to perform the opening and closing operation according to the control command.
[0013] In combination with the first aspect, in some implementations of the first aspect, after the opening and closing operation, the method comprises: receiving response information sent by the plurality of gate valves; and responding to the plurality of gate valves according to the response information.
[0014] In some implementations of the first aspect, the gateway comprises a first LORA module and a second LORA module, the first LORA module and the second LORA module have different frequencies; the plurality of gate valves comprises a third LORA module, the third LORA module has a frequency which is either the frequency of the first LORA module or the frequency of the second LORA module, and the method further comprises: when the frequency of the third LORA module is adjusted to be the frequency of the first LORA module, the gateway sends control commands to the plurality of gate valves through the first LORA module and receives response information sent by the plurality of gate valves; and when the frequency of the third LORA module is adjusted to be the frequency of the second LORA module, the gateway receives data information sent by the plurality of gate valves through the second LORA module.
[0015] According to the above scheme, the configuration process between the gateway and the gate valve and the control process of the gateway controlling the gate valve are separated, and mutual interference is avoided.
[0016] In some implementations of the first aspect, the frequency of the first LORA module and the frequency of the second LORA module can be expressed by a first formula, wherein the first formula is:
[0017] |f x -f μ |≥1MHz;
[0018] wherein f x is the frequency of the first LORA module, and f μ is the frequency of the second LORA module.
[0019] In some implementations of the first aspect, the gateway comprises a first gateway and a second gateway, wherein the LORA communication frequency of the first gateway is different from the LORA communication frequency of the second gateway, and the LORA communication frequency comprises the frequency of the first LORA module and the frequency of the second LORA module.
[0020] In some implementations of the first aspect, after the gateway and the plurality of gate valves are successfully matched, the method further comprises: the gateway sends a control command based on a LORA communication protocol in a broadcast manner, the control command comprises: a first address field, wherein the first address field comprises a wake-up code field and a second address field, the wake-up code field is used to wake up the plurality of gate valves, and the second address field is used to indicate the communication address of at least one gate valve in the plurality of gate valves; all gate valves in the plurality of gate valves perform a wake-up operation according to the wake-up code field; and at least one gate valve in the plurality of gate valves performs a gate opening operation according to the second address field.
[0021] Based on the above scheme, the gateway sends control commands to multiple gate valves in a broadcast manner, at least one gate valve in the multiple gate valves opens the gate valve to work, that is, compared with the prior art gateway sending a control command to control only one gate valve, the parallel sending manner in the application enables the gateway to simultaneously control multiple gate valves to open during the sending process, and there is no queuing phenomenon for the gateway, so that the transmission delay is reduced and the transmission efficiency is obviously improved.
[0022] With reference to the first aspect, in some implementations of the first aspect, the method further includes: when the multiple gate valves are installed again, adjusting the frequency of the third LORA module according to the LORA communication frequency, wherein the frequency of the third LORA module is the LORA communication frequency of the first gateway or the LORA communication frequency of the second gateway.
[0023] With reference to the first aspect, in some implementations of the first aspect, adjusting the frequency of the third LORA module according to the LORA communication frequency includes: when the LORA communication frequency is the LORA communication frequency of the first gateway, adjusting the frequency of the third LORA module to be the LORA communication frequency of the first gateway; and when the LORA communication frequency is the LORA communication frequency of the second gateway, adjusting the frequency of the third LORA module to be the LORA communication frequency of the second gateway.
[0024] The second aspect provides a field irrigation system, including: a gateway and a plurality of gate valves constituting a LORA communication network, the gateway and the plurality of gate valves being configured to perform the configuration method of any one of the first aspect.
[0025] With reference to the second aspect, in some implementations of the second aspect, the field irrigation system further includes: a user terminal configured to wirelessly communicate with the gateway to send an instruction to the gateway; and the gateway is configured to receive first data information sent by the plurality of gate valves according to the instruction to match the plurality of gate valves.
[0026] With reference to the second aspect, in some implementations of the second aspect, the user terminal is further configured to wirelessly communicate with the gateway to send a gate valve switching instruction to the gateway; and the gateway is configured to send a control command to the plurality of gate valves according to the gate valve switching instruction. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 is a schematic structural diagram of a field irrigation system provided by an embodiment of the application.
[0028] Figure 2 is a schematic structural diagram of a field irrigation system based on a LORA network provided by an embodiment of the application.
[0029] Figure 3is a schematic flow chart of a configuration method of a field irrigation system provided by an embodiment of the present application.
[0030] Figure 4 is a schematic flow chart of a control method one of a field irrigation system provided by an embodiment of the present application.
[0031] Figure 5 is a schematic flow chart of a control method two of a field irrigation system provided by an embodiment of the present application.
[0032] Figure 6 is a schematic structural diagram of a field irrigation system provided by an embodiment of the present application. DETAILED DESCRIPTION
[0033] The technical solutions in the present application will be described below with reference to the accompanying drawings.
[0034] A field irrigation system is an important part of agricultural management, which ensures that crops receive the appropriate amount of water during their growth cycle to meet their growth needs. With the development of technology, traditional irrigation methods are gradually replaced by modern intelligent irrigation systems. These systems use advanced sensors, automatic control and communication technology to improve irrigation efficiency and reduce water waste.
[0035] Figure 1 A schematic structural diagram of a field irrigation system 100 to which an embodiment of the present application is applicable is shown.
[0036] As shown in Figure 1 , the field irrigation system 100 includes an intelligent gate valve 110, a gateway 120, a software platform 130 and a user terminal 140.
[0037] Specifically, a plurality of intelligent gate valves 110 are arranged in the field. The intelligent gate valve can remotely receive control instructions through a wireless communication network (such as LoRaWAN, Wi-Fi, Bluetooth, etc.), and realize remote opening and adjustment. The intelligent gate valve can control the flow rate and flow of water more accurately, realize precise irrigation of crops in the field, and help reduce water and energy waste.
[0038] In a communication network, the gateway 120 acts as a bridge between different networks or between a network and the outside world. Specifically, in the present application, the gateway 120 and the intelligent gate valve 110 can communicate through various protocols (such as LoRaWAN, Wi-Fi, Bluetooth, etc. as described above), the gateway 120 and the software platform 130 communicate through standard Internet protocols (such as TCP / IP, etc.), and the gateway 120 can convert various communication protocols into standard Internet protocols, so that different types of devices can communicate with each other.
[0039] The software platform 130 can be a cloud service platform, for example. The software platform 130 can be deployed on a server. The software platform 130 can be used for data collection, analysis and visualization, and a farm manager can monitor the growth of crops and the operation of the irrigation system through the platform, and adjust the irrigation plan as needed. Specifically, the software platform 130 can communicate with the gateway 120 to control the plurality of intelligent gate valves in the field through the gateway 120. In addition, the software platform 130 can also communicate with other intelligent devices in the field (such as monitoring devices with sensors, etc.) to obtain various data states of the crops in the field (such as soil moisture, temperature, light, wind speed, etc.) so that the manager can better manage the crops in the field using the software platform 130.
[0040] The user terminal 140 can be a mobile phone, a computer, etc., which communicates with the software platform 130. The user can send relevant control instructions to the software platform 130 through the user terminal 140, so that the software platform 130 controls the opening and closing of the intelligent gate valve 110 in the field through the gateway 120 to achieve the irrigation goal.
[0041] Figure 2 A schematic structural diagram of a field irrigation system 200 based on a LORA network is shown.
[0042] As shown in Figure 2 , the field irrigation system 200 includes a plurality of gate valves 210 (represented by circles in the figure) and a gateway 220 (represented by squares in the figure). The plurality of gate valves 210 and the gateway 220 together constitute a LORA communication network.
[0043] It should be understood that the plurality of gate valves 210 can be the intelligent gate valve 110 in Figure 1 , and the gateway 220 can be the gateway 120 in Figure 1 .
[0044] In some related technologies, the gateway and the plurality of gate valves 210 are bound through scanning a code or manually inputting a device number, so that the user can remotely control and manage the gate valves.
[0045] Specifically, the gateway 220 and the plurality of gate valves 210 are bound through scanning a code by the user terminal. A two-dimensional code containing the device number of the gate valve 210 is usually pasted on the gate valve 210, and the user scans the two-dimensional code using the user terminal 140. After the user terminal 140 reads the two-dimensional code information, the device number of the gate valve 210 is identified and sent to the gateway 220, requesting to bind the gate valve 210 with the gateway 220. After receiving the request, the gateway 220 establishes a connection with the gate valve 210, and stores the information of the gate valve 210 in the database of the gateway 220. It should be understood that the user terminal can be the user terminal 140 in Figure 1 .
[0046] The process of binding by manually inputting the device number is that the user finds the device number on the gate valve 210, which can be a serial number printed on the label of the gate valve 210, the user manually inputs the device number in the user terminal, the user terminal sends the manually input device number to the gateway 220, the gateway 220 establishes a connection with the gate valve 210 by verifying the device number, and completes the binding process.
[0047] In the above two cases, the workload of binding by scanning the code or manually inputting the device number is large, and when the installation season is very concentrated, the post-maintenance workload is large once the scanning and inputting is wrong.
[0048] In addition, it should be known that after all the gate valves 210 under a piece of land or an irrigation head are installed and the device numbers of the gate valves 210 are input into the database or device list of the gateway 220, the division and setting of the rotation irrigation area are performed, for example, as shown in Figure 2 100 gate valves 210 are divided into 10 groups, each group has 10 gate valves 210, the first group is a rotation irrigation area, named A, and can be named B, C…J in turn, after the rotation irrigation groups are divided, the user can directly control the on-off of the rotation irrigation area through the user terminal and the gateway 220 when using.
[0049] Therefore, the embodiment of the present application provides a field irrigation system based on a LORA network. The LORA network is a wireless network based on a low power wide area network (LPWAN) technology, which aims to provide a long-distance and low-power communication solution for the Internet of Things (IoT). In the field irrigation system based on the LORA network, the gateway enters an automatic configuration mode and automatically completes the configuration process with the gate valve, which does not require a large amount of manpower and has a high configuration accuracy.
[0050] Based on the above field irrigation system 200, Figure 3 a configuration method 300 of a field irrigation system provided by the embodiment of the present application is shown.
[0051] As shown in Figure 3 the configuration method 300 of the field irrigation system can include the following steps.
[0052] S310: The gateway receives first data information sent by a plurality of gate valves, wherein the first data information includes device numbers and position information of the plurality of gate valves.
[0053] S320: The gateway adds the device numbers to a device list of the gateway, and sends the first data information to a software platform.
[0054] S330: The gateway receives the second data information processed by the software platform, adds the second data information to the device list, so that the gateway and the plurality of gate valves are successfully configured, wherein the second data information comprises information of at least one rotation irrigation group corresponding to the plurality of gate valves, angle information of each rotation irrigation group, and irrigation time of each rotation irrigation group, and each rotation irrigation group comprises at least one gate valve.
[0055] In step S310, the plurality of gate valves actively send first data information to the gateway for configuration with the gateway. In addition, before the gateway receives the first data information sent by the plurality of gate valves, the user terminal operates to make the gateway enter a configuration mode, that is, the gateway can receive the first data information sent by the gate valves.
[0056] In step S320, the gateway adds the device number to the device list, and sends the received device number and position information to the software platform, which processes the data information and then sends it to the gateway.
[0057] The software platform can be a cloud service platform, which can be deployed on a server. Alternatively, the software platform can be the software platform 130 in Figure 1
[0058] Alternatively, in the present application, the reason for sending the first data information received by the gateway to the software platform for processing is that the software platform obtains the second data information based on the various data states of the field crops (such as soil moisture, temperature, light, wind speed, etc.), the user's irrigation habits, and the first data information.
[0059] In step S330, the gateway groups the plurality of gate valves according to the device number and position information in the device list to obtain a rotation irrigation group, so that the gateway and the gate valves are successfully configured and connected to each other.
[0060] Specifically, the information of at least one rotation irrigation group corresponding to the plurality of gate valves is determined according to the distance of the plurality of gate valves calculated based on the device number and position information. More specifically, in the software platform, the distance between the gate valves is obtained based on the received position information of the plurality of irrigation groups, and the information of each rotation irrigation group is determined based on the distance information, the size of the field, the user's irrigation habits, etc. For example, gate valve 1#, gate valve 2#, gate valve 3#... gate valve 10# can form a circle with the same distance from the center, and the 10 gate valves are installed in a field, so the 10 gate valves are divided into one rotation irrigation group.
[0061] It should be understood that the number of gate valves in each rotation irrigation group can be the same or different, which is determined based on the size of the field, the installation position of the gate valves, and the user's habits, which are not limited in the present application.
[0062] In addition, the software platform determines angle information of each wheel irrigation group through position information of the gate valve and size of the field, etc., and determines irrigation time of each wheel irrigation group through position information of the gate valve and type of the crop, etc.
[0063] Optionally, after the gateway and the gate valve are configured, if information of an individual gate valve is not collected, the installation layout position of the multiple gate valves and the installation condition of the gate valve of the actual field are combined to quickly find the gate valve that does not report data information, and the data information is reported to the gateway again.
[0064] Optionally, in the present application, the second data information and the equipment number are stored in the equipment list of the gateway to complete the configuration between the gateway and the gate valve, rather than being stored in the software platform. When the gateway needs to control the gate valve, the software platform is used to issue a control command to the gateway, and then the gate valve is controlled. This is because in the case of network disconnection or network congestion of the software platform, the gateway can continue to control the gate valve according to the irrigation time, irrigation angle, etc. to perform corresponding operations.
[0065] Through the above-mentioned scheme of the embodiment, the gateway controls the gate valve according to the data information automatically reported by the gate valve, which saves the process of manual scanning and inputting the gate valve equipment or manual inputting, greatly saves manpower, and reduces the probability of errors.
[0066] After the configuration of the gateway and the gate valve is completed, the gateway needs to send a control command to the gate valve to control the gate valve during the process of opening and closing the gate valve. After receiving the control command, the gate valve needs to send response information to the gateway for confirmation.
[0067] Specifically, the gateway sends a control command based on a LORA communication protocol to the multiple gate valves; and the gateway controls the multiple gate valves to perform an opening and closing operation according to the control command.
[0068] After the opening and closing operation is performed, the gateway receives response information sent by the multiple gate valves; and the gateway makes a response to the multiple gate valves according to the response information.
[0069] In order to make the data transmission of the control process not interfere with the data transmission in the above-mentioned configuration method 300, in the present application, the field irrigation system includes a gateway and multiple gate valves, and the gateway and the multiple gate valves constitute a LORA communication network. The gateway includes a first LORA module and a second LORA module, the frequency of the first LORA module and the second LORA module is different; the multiple gate valves include a third LORA module, and the frequency of the third LORA module is the frequency of the first LORA module or the frequency of the second LORA module.
[0070] Specifically, when the frequency of the third LORA module is the frequency of the first LORA module, the gateway actively sends a control command to the gate valve through the first LORA module, and the gateway receives the response information sent by the gate valve. When the frequency of the third LORA module is the frequency of the second LORA module, the gateway receives the data information actively sent by the gate valve through the second LORA module.
[0071] The frequency of the first LORA module and the frequency of the second LORA module can be expressed by a first formula, and the first formula is:
[0072] |f x -f μ |≥1MHz;
[0073] The frequency of the first LORA module is f x , and the frequency of the second LORA module is f μ .
[0074] Optionally, when the gate valve needs to actively send data information to the gateway, the control system in the gate valve controls the frequency of the third LORA module to replace the frequency of the second LORA module. It should be noted that, in general, when the gate valve does not need to actively send data information to the gateway, the gateway only controls the gate valve to perform the opening and closing commands for irrigation work, and the gate valve responds to the gateway, the frequency of the third LORA module is usually the frequency of the first LORA module.
[0075] It should be understood that the control system of the gate valve can be a built-in microprocessor or a programmable logic controller (PLC), which can adjust the frequency of the third LORA module in the gate valve.
[0076] Optionally, the gate valve has the function of actively sending data information to the gateway at regular intervals, such as sending data information to the gateway every 6 hours. The interval time can be set according to actual conditions, such as the size of the field, the number of gate valves, etc. The present application does not make any limitation on this.
[0077] Optionally, in the present application, the process of the gateway controlling the gate valve to open and close the gate and the process of the gate valve responding can also be realized by the following parallel sending mode, specifically as follows:
[0078] Figure 4 A schematic flow chart of a control method one 400 of a field irrigation system provided by an embodiment of the present application is shown.
[0079] As Figure 4 shown, the control method one 400 of the field irrigation system can include the following steps.
[0080] S410: The gateway sends a control command based on the LORA communication protocol in a broadcast manner, and the control command comprises: a first address field, wherein the first address field comprises a wake-up code field and a second address field, the wake-up code field is used to wake up multiple gate valves, and the second address field is used to indicate a communication address of at least one gate valve in the multiple gate valves.
[0081] S420: All gate valves in the multiple gate valves are woken up according to the wake-up code field.
[0082] S430: At least one gate valve in the multiple gate valves performs the opening operation according to the second address field.
[0083] In step S410, the gateway can send a control command based on the LORA communication protocol to the multiple gate valves at the same time. Specifically, the gateway can receive a gate valve opening and closing instruction sent by a software platform on a server, and then send a related control command to the multiple gate valves at the same time to control the opening and closing of the gate valves. Alternatively, in some embodiments, the server can receive a gate valve opening and closing instruction sent by a user terminal, and then forward the gate valve opening and closing instruction sent by the user to the gateway, and the gateway sends a control command according to the gate valve opening and closing instruction to notify the repeater and the gate valve to respond to the control demand of the user in time. In another embodiment, the server can receive related state data of the field crops, such as temperature, humidity, light, etc., and actively send a gate valve opening and closing instruction to the gateway, and the gateway notifies the gate valve to realize the field irrigation demand.
[0084] Optionally, the control command further comprises a frequency field for indicating a communication frequency between the gateway and the multiple gate valves.
[0085] In step S420, at least one gate valve in the multiple gate valves performs the opening and closing operation of the at least one gate valve according to the broadcast wake-up code field and the second address field in the control command.
[0086] Specifically, when the gateway sends a control command to the gate valve, the wake-up code field in the control command is in a broadcast manner, indicating that all gate valves can receive the control command sent by the gateway. The second address field in the control command is used to indicate the communication address and the opening and closing command information of at least one gate valve in the multiple gate valves. More specifically, the wake-up code in the control command is used to wake up or activate all gate valves, and the second address field in the control command is used to control at least one gate valve in the multiple gate valves to perform the opening or closing operation.
[0087] As an example, the field format of a control command is: FFFF 01S1 S2…SX. Wherein, FFFF is a protocol header, 01 is a frequency field, and S1 S2…SX is a second address field.
[0088] In Figure 2In the field irrigation system 200 shown, the communication address of the 1# gate valve is S1 for example, the communication address of the 2# gate valve is S2 for example, and so on.
[0089] For example, the protocol format of the communication sent by the gateway to the wheel irrigation group A composed of the 1# gate valve, the 2# gate valve,..., and the 10# gate valve is FFFF 01S1 S2...S10, so that the gate valves of one wheel irrigation group can receive the control command at the same time and perform the opening and closing operation.
[0090] Alternatively, the second address field can be a field beyond the size of one wheel irrigation group, for example, the protocol format of the communication sent by the gateway to multiple wheel irrigation groups is FFFF 01S1 S2...S20, so that the 20 gate valves can receive the control command at the same time and perform the opening and closing operation, that is, the wheel irrigation group A performs the irrigation operation together with the wheel irrigation group B. In the actual irrigation process, the number of wheel irrigation groups can be controlled by setting the second address field in the control command according to the irrigation demand of the field, which is not limited in the present application.
[0091] For example, if one wheel irrigation group has 20 valves, the normal execution time of the scheme of the present embodiment is about 1 minute, which can be completed, while the serial transmission scheme in the prior art needs about 4 minutes to complete; therefore, the scheme of the present application can obviously improve the transmission efficiency, and when the number of gate valves in the wheel irrigation group is larger, the transmission efficiency is improved more obviously, and from the perspective of the gateway, the congestion situation can be avoided more easily.
[0092] Through the technical scheme of the embodiment of the present application, the parallel sending mode is adopted, so that there is no queuing phenomenon in the sending process of the gateway, and the control command of the entire wheel irrigation group can be received at the same time for the wheel irrigation group, and then the gate valves of the entire wheel irrigation group are controlled and operated, the delay is reduced, and the efficiency is obviously improved. Compared with the prior art, the wake-up code in the control command sent by the gateway to the gate valve adopts a non-broadcast mode, only one of the multiple gate valves can receive the control command sent by the gateway. In addition, for the wheel irrigation group, the prior art must wait for all the gate valves to be opened before performing the irrigation operation, and the gateway needs to send the control command to the gate valves of one wheel irrigation group in a queue, which has a large delay and low efficiency.
[0093] After receiving and executing the control command, the gate valve actively sends response information (such as acknowledge (ACK) information) to the gateway, which is used to indicate that the gate valve has received and executed the control command. In order to reduce the problem of conflict and packet loss caused by the simultaneous active sending of the control command execution data of multiple gate valves to the gateway, the present application proposes an avoidance method of the command, which aims to avoid the problem of data packet loss and improve the reliability of the system through the following avoidance method.
[0094] Figure 5 A schematic flow chart of a control method two 500 of the field irrigation system provided by the embodiments of the present application is shown.
[0095] As shown in Figure 5 The control method two 500 of the field irrigation system can include the following steps.
[0096] S510: The plurality of gate valves determine respective response times according to their own device numbers.
[0097] S520: The plurality of gate valves respectively send response information to the gateway according to the response times.
[0098] S530: The gateway sends a response to the plurality of gate valves after receiving the response information.
[0099] In step S510, the plurality of gate valves divide their own device numbers by 10 to obtain remainders, and determine delay times for sending the response information according to the remainders. For example, the device number of the 1# gate valve is 1, and the remainder obtained by dividing 1 by 10 is 1; the device number of the 2# gate valve is 2, and the remainder obtained by dividing 2 by 10 is 2, that is, the 1# gate valve delays for 1 second before sending the response information, and the 2# gate valve delays for 2 seconds before sending the response information to the gateway.
[0100] It should be understood that the device number is a serial number or a MAC address, which is used to identify the plurality of gate valves on the network. The device number ensures that each gate valve can be uniquely identified in the gateway or the user terminal, avoiding address conflicts and data transmission errors.
[0101] In step S530, if no response is received, the response information is randomly delayed for 0-5 seconds and sent again. If a response from the gateway is received, it indicates that the data sending is successful.
[0102] Optionally, the gateway automatically times after sending the control command. Since the longest execution time of the gate valve switch is less than 30 seconds, if no feedback information from the gate valve is received within 1 minute, the state of the gate valve is actively pulled, even if the feedback information from an individual gate valve is lost and cannot be obtained by pulling, the reliability of the entire system is ensured, which greatly improves the execution efficiency of the entire rotation irrigation group and shortens the execution time.
[0103] Through the technical solutions of the embodiments of the present application, the feedback information of the gate valve is confirmed multiple times by the gate valve and the gateway, it is ensured that the gateway receives the response information sent by the gate valve, the problem of packet loss is avoided, and the reliability of the system is improved.
[0104] Optionally, in the present application, there are usually multiple gateways in a field, and the coverage areas of adjacent gateways overlap. In order to avoid mutual interference between adjacent gateways, it is required that the adjacent gateways are on different LORA communication frequencies, that is, the frequencies of the second LORA modules of each gateway are different.
[0105] In addition, many projects are equipment unified management, and the sluice valves are uniformly stored after being disassembled in autumn. The sluice valves corresponding to multiple gateways are mixed together, and the sluice valves under the same gateway are randomly installed when installed the next year. At this time, the LORA communication frequencies of the sluice valves under the same gateway are different. In the present application, the above problems are solved by the following way:
[0106] The frequency of the second LORA module of the sluice valve is in the range of [f1, fn], where f1 to fn are the frequencies of the second LORA modules of multiple gateways.
[0107] In the process of reconfiguring, the sluice valve continuously changes the frequency of the third LORA module and sends data information to the gateway until the frequency of the third LORA module of the sluice valve is the same as the frequency of the second LORA module of the gateway, and then the matching is performed. According to this configuration mode, the sluice valve can be automatically configured with the frequency of the gateway, which greatly improves the efficiency.
[0108] For example, there are 10 gateways in an area, and after the gateways are installed, the LORA communication frequencies of the 10 gateways are f0, f1, f2, f3, f4, f5, f6, f7, f8, and f9, respectively, and the gateway numbers correspond to 1-10, that is, the frequency of the No. 1 gateway is f0, and the frequency of the No. 10 gateway is f9. After the sluice valve is installed, the configuration button on the sluice valve is pressed, and the sluice valve automatically enters the frequency sweeping mode, that is, the LORA communication frequency is changed to f0, f1, f2, f3, f4, f5, f6, f7, f8, and f9 in turn. After the frequency is changed, data information is sent to the gateway, and then the gateway is waited for a reply. If the gateway does not reply for 3 times, the current frequency matching fails, the valve automatically switches the LORA communication frequency to the next frequency point for communication test, and so on. When the sluice valve receives the reply of the gateway at a certain frequency point, the matching is automatically successful, and the sluice valve communicates with the gateway according to the frequency. When the No. 1 gateway is matched with the sluice valve, the No. 1 gateway exits the matching mode, and the No. 2 gateway enters the matching mode. The same operation process is performed, and finally all the sluice valves under the No. 1 to No. 10 gateways are accurately matched with the gateways.
[0109] The present application also provides a field irrigation system, Figure 6 A schematic structural block diagram of a field irrigation system 600 is shown.
[0110] As Figure 6As shown, the field irrigation system 600 includes a plurality of gate valves 610 and a gateway 620 constituting a LORA communication network, and the gateway 620 and the plurality of gate valves 610 are configured to perform the configuration method in the above-described embodiments.
[0111] Optionally, the field irrigation system 600 further includes a user terminal 630 configured to perform wireless communication with the gateway 620 to send an instruction to the gateway 620, and the gateway 620 is configured to receive the first data information sent by the plurality of gate valves 610 according to the instruction to match the plurality of gate valves 610.
[0112] Optionally, the user terminal 630 is further configured to perform wireless communication with the gateway 620 to send a gate valve switching instruction to the gateway 620, and the gateway 620 is configured to send a control command to the plurality of gate valves 610 according to the gate valve switching instruction.
[0113] Those skilled in the art can understand that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0115] It should be understood that the specific examples herein are only to help those skilled in the art better understand the embodiments of the present application, and do not limit the scope of the embodiments of the present application.
[0116] It should also be understood that in various embodiments of the present application, the size of the serial number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0117] It should also be understood that the various embodiments described in the specification can be implemented alone or in combination, and the embodiments of the present application do not limit this.
[0118] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for describing particular embodiments only and is not intended to be limiting of the application. The use of the terms "and / or" and "at least one of" includes any and all combinations of one or more of the associated listed items. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Further, the use of the terms "first", "second", "third", etc. does not imply any relative importance.
[0119] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0120] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0121] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.
[0122] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0123] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method of configuring a field irrigation system, characterized by, The field irrigation system comprises a gateway and a plurality of gate valves, the gateway and the plurality of gate valves constitute a LORA communication network, and the method comprises: Receiving first data information sent by the plurality of gate valves, wherein the first data information comprises device numbers and position information of the plurality of gate valves; Adding the device numbers to a device list of the gateway and sending the first data information to a software platform; Receiving second data information processed by the software platform, adding the second data information to the device list, and enabling the gateway to be successfully configured with the plurality of gate valves, wherein the second data information comprises information of at least one rotation irrigation group corresponding to the plurality of gate valves, angle information of each rotation irrigation group, and irrigation time of each rotation irrigation group, and each rotation irrigation group comprises at least one gate valve; The gateway comprises a first LORA module and a second LORA module, the frequencies of the first LORA module and the second LORA module are different, the plurality of gate valves comprises a third LORA module, the frequency of the third LORA module is the frequency of the first LORA module or the frequency of the second LORA module, After the gateway and the plurality of gate valves are successfully configured, when the frequency of the third LORA module is adjusted to be the frequency of the first LORA module, the gateway sends a control command based on a LORA communication protocol to the plurality of gate valves through the first LORA module and receives response information sent by the plurality of gate valves; When the frequency of the third LORA module is adjusted to be the frequency of the second LORA module, the gateway receives the first data information sent by the plurality of gate valves through the second LORA module.
2. The configuration method of claim 1, wherein, The information of at least one rotation irrigation group corresponding to the plurality of gate valves is calculated according to the device numbers and the position information to confirm the distance of the plurality of gate valves.
3. The configuration method of claim 1, wherein, In the device list, the second data information corresponds to the device numbers.
4. The configuration method of claim 1, wherein, The frequencies of the first LORA module and the second LORA module can be expressed by a first formula, wherein the first formula is: ; wherein, is the frequency of the first LORA module, is the frequency of the second LORA module.
5. The configuration method of claim 1, wherein, The gateway comprises a first gateway and a second gateway, wherein the LORA communication frequencies of the first gateway and the second gateway are different, and the LORA communication frequencies comprise the frequencies of the first LORA module and the second LORA module.
6. The configuration method according to any one of claims 1 to 5, characterized in that, After the gateway and the plurality of gate valves are successfully matched, the method further comprises: The gateway sends a control command based on a LORA communication protocol in a broadcast mode, the control command comprises a first address field, wherein the first address field comprises a wake-up code field and a second address field, the wake-up code field is used to wake up the plurality of gate valves, and the second address field is used to indicate a communication address of at least one gate valve in the plurality of gate valves; According to the wake-up code field, all gate valves in the plurality of gate valves perform a wake-up operation; According to the second address field, at least one gate valve in the plurality of gate valves performs an opening operation.
7. A field irrigation system characterized by, Comprise: A gateway and a plurality of gate valves constituting a LORA communication network are used to perform the configuration method as claimed in any one of claims 1 to 6.
8. The field irrigation system of claim 7, wherein, The field irrigation system further comprises a user terminal configured to wirelessly communicate with the gateway to send an instruction to the gateway; The gateway is configured to receive first data information sent by the plurality of gate valves according to the instruction to match with the plurality of gate valves.
9. The field irrigation system of claim 8, wherein, The user terminal is further configured to wirelessly communicate with the gateway to send a gate valve switching instruction to the gateway; The gateway is configured to send a control command to the plurality of gate valves according to the gate valve switching instruction.
Citation Information
Patent Citations
Agricultural irrigation water saving system
CN106258858A
Valve control system based on LoRa wireless communication
CN210271209U