Irrigation system, method, user terminal and proxy server based on internet of things
By combining IoT technology and smart cards, the sending of irrigation commands can be dynamically monitored and controlled, solving the problem of water waste in traditional irrigation methods, achieving precise irrigation operations, and saving water resources.
Patent Information
- Application Number
- CN202111524628.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-12-14
AI Technical Summary
Traditional irrigation methods cannot achieve on-demand irrigation, resulting in serious water waste. Existing technologies cannot avoid the problem of water waste through smart irrigation.
An IoT-based irrigation system is adopted, including a user terminal, a proxy server, and an environmental monitoring module. The system communicates with the proxy server via a smart card to obtain environmental monitoring data and send irrigation commands. Data transmission and control are achieved using the MQTT protocol and the 7816 communication protocol, and the timing of sending irrigation commands is dynamically determined.
It improves the precision of irrigation operations, saves water resources, avoids resource waste, and realizes intelligent irrigation control.
Smart Images

Figure CN116263591B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of the Internet of Things (IoT), and more particularly to an IoT-based irrigation system, method, user terminal, and proxy server. Background Technology
[0002] With the rapid growth of my country's population and the continuous development of industrial and agricultural production, water scarcity has become increasingly severe. Agriculture accounts for approximately 80% of China's total water consumption. However, due to generally low irrigation efficiency, water utilization is only 45%, while countries with high water resource utilization rates reach 70% to 80%. Therefore, solving the problem of agricultural irrigation water use is crucial for alleviating water scarcity. The most urgent task in alleviating water scarcity is to address the issue of agricultural irrigation water use. my country has a vast arable land area and is a major agricultural country. The significant human and material resources spent on agriculture represent a waste of these resources. Therefore, the most urgent task in alleviating water scarcity and the waste of human resources is to solve the problem of agricultural irrigation water use and to implement intelligent irrigation operations to reduce manual labor.
[0003] However, traditional irrigation methods are mostly timed irrigation, which cannot achieve on-demand irrigation and easily leads to water waste. Therefore, there is an urgent need for a solution that can avoid water waste through intelligent irrigation. Summary of the Invention
[0004] In view of the above problems, the present invention provides an irrigation system, method, user terminal and agent server based on the Internet of Things to solve the problem that the prior art cannot avoid water waste through intelligent irrigation.
[0005] According to one aspect of the present invention, an Internet of Things (IoT) based irrigation system is provided, comprising: a user terminal, a proxy server, an environmental monitoring module, and an irrigation control module; wherein,
[0006] The user terminal communicates with the proxy server via a smart card to subscribe to environmental monitoring data from the proxy server and send irrigation instructions to the irrigation control module based on the received environmental monitoring data.
[0007] The proxy server is communicatively connected to the user terminal and the environmental monitoring module, and is used to realize data forwarding operations between the user terminal and the environmental monitoring module;
[0008] The environmental monitoring module is installed in the irrigation area and is used to send the acquired environmental monitoring data associated with the irrigation area to the user terminal through the proxy server;
[0009] The irrigation control module is used to perform irrigation operations according to the received irrigation instructions.
[0010] Optionally, a first card application is installed on the smart card in the user terminal, and the user communicates with the proxy server through the first card application; and the first card application is used to perform at least one of the following functions: acquiring environmental monitoring data, setting early warning thresholds, and sending irrigation instructions for controlling the irrigation control module; wherein, the irrigation instructions include: an irrigation start instruction for controlling the irrigation switch to turn on, and an irrigation end instruction for controlling the irrigation switch to close.
[0011] Optionally, the irrigation control module is equipped with a second card application, through which irrigation instructions from the user terminal are received;
[0012] Furthermore, the user terminal is specifically used to send irrigation instructions from the first card application to the second card application in the irrigation control module via the 7816 communication protocol.
[0013] Optionally, the user terminal is specifically used for: setting a service quality level by the card application according to a user-triggered custom setting instruction; wherein, the service quality level is used to determine the frequency at which the environmental monitoring module feeds back environmental monitoring data to the proxy server;
[0014] If environmental monitoring data is divided into three categories based on importance and / or timeliness, the custom setting instructions include: a first setting instruction for setting the first category of environmental monitoring data to a first service quality level; a second setting instruction for setting the second category of environmental monitoring data to a second service quality level; and a third setting instruction for setting the third category of environmental monitoring data to a third service quality level.
[0015] Optionally, the environmental monitoring module includes: a monitoring housing and sensing components;
[0016] The monitoring housing includes a soil monitoring sub-housing and a weather monitoring sub-housing; the sensing component is used to sense soil property information; wherein the soil property information includes soil moisture content, soil composition, air moisture content, and light information.
[0017] Optionally, the proxy server is specifically used to: communicate with the user terminal and the environmental monitoring module via a message queue telemetry transmission protocol.
[0018] According to one aspect of the present invention, an Internet of Things (IoT)-based irrigation method is provided, applied to a user terminal, comprising:
[0019] Subscribe to environmental monitoring data from the agent server via smart card;
[0020] Obtain environmental monitoring data from the environmental monitoring module as returned by the proxy server;
[0021] Based on the environmental monitoring data, irrigation instructions are sent to the irrigation control module.
[0022] According to one aspect of the present invention, an Internet of Things-based irrigation method is provided, applied to a proxy server, comprising:
[0023] Receive a subscription request sent by a user terminal via a smart card, and subscribe to environmental monitoring data for the user terminal according to the subscription request;
[0024] Obtain environmental monitoring data fed back by the environmental monitoring module;
[0025] The environmental monitoring data is sent to the user terminal so that the user terminal can send irrigation instructions to the irrigation control module based on the environmental monitoring data.
[0026] According to one aspect of the present invention, a user terminal for irrigation is provided, comprising:
[0027] The subscription module is suitable for subscribing to environmental monitoring data from a proxy server via a smart card;
[0028] The acquisition module is adapted to acquire environmental monitoring data fed back by the proxy server from the environmental monitoring module;
[0029] The sending module is adapted to send irrigation instructions to the irrigation control module based on the environmental monitoring data.
[0030] According to one aspect of the present invention, a proxy server for irrigation is provided, comprising:
[0031] The receiving module is adapted to receive a subscription request sent by a user terminal via a smart card, and to subscribe to environmental monitoring data for the user terminal according to the subscription request;
[0032] The acquisition module is suitable for acquiring environmental monitoring data fed back by the environmental monitoring module.
[0033] The sending module is adapted to send the environmental monitoring data to the user terminal, so that the user terminal can send irrigation instructions to the irrigation control module based on the environmental monitoring data.
[0034] According to another aspect of the present invention, an electronic device is provided, comprising:
[0035] One or more processors;
[0036] A memory having stored one or more programs that, when executed by one or more processors, enable the one or more processors to perform the evaluation method described above.
[0037] One or more I / O interfaces are connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
[0038] According to another aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described method.
[0039] In the IoT-based irrigation system, method, user terminal, and proxy server provided by this invention, environmental data can be accurately monitored with the help of the proxy server and environmental monitoring module. This allows the user terminal to intelligently send irrigation commands to the irrigation control module based on the monitoring results. Therefore, the timing of sending irrigation commands in this invention is dynamically determined based on environmental monitoring data. Compared with traditional timed irrigation methods, this improves the accuracy of irrigation operations, saves water resources, and avoids resource waste. Attached Figure Description
[0040] Figure 1 A schematic diagram of an IoT-based irrigation system according to an embodiment of the present invention is shown.
[0041] Figure 2 A schematic diagram of the system architecture in one example of the present invention is shown;
[0042] Figure 3 It shows Figure 2 The diagram shown illustrates the system's operation.
[0043] Figure 4 A flowchart illustrating the automatic irrigation operation is shown.
[0044] Figure 5 This is a schematic diagram of the structure of an electronic device provided in another embodiment of the present invention. Detailed Implementation
[0045] To enable those skilled in the art to better understand the technical solution of the present invention, the server provided by the present invention will be described in detail below with reference to the accompanying drawings.
[0046] Exemplary embodiments will be described more fully below with reference to the accompanying drawings; however, these exemplary embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that the invention will be thorough and complete, and that those skilled in the art will fully understand the scope of the invention.
[0047] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0048] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are also intended to include the plural forms unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded.
[0049] The embodiments described herein can be described with reference to plan views and / or cross-sectional views, using the ideal schematic diagrams of the invention. Therefore, the exemplary illustrations can be modified according to manufacturing techniques and / or tolerances. Thus, the embodiments are not limited to those shown in the drawings, but include modifications to configurations formed based on manufacturing processes. Therefore, the areas illustrated in the drawings are schematic, and the shapes of the areas shown illustrate specific shapes of areas of an element, but are not intended to be limiting.
[0050] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.
[0051] Figure 1 A schematic diagram of an IoT-based irrigation system according to an embodiment of the present invention is shown. Figure 1 As shown, the system includes: a user terminal 11, a proxy server 12, an environmental monitoring module 13, and an irrigation control module 14. The user terminal 11 communicates with the proxy server 12 via a smart card to subscribe to environmental monitoring data from the proxy server 12 and send irrigation commands to the irrigation control module 14 based on the received environmental monitoring data. The proxy server 12 is communicatively connected to both the user terminal and the environmental monitoring module, enabling data forwarding between the user terminal and the environmental monitoring module. The environmental monitoring module 13 is located in the irrigation area and sends acquired environmental monitoring data associated with the irrigation area to the user terminal via the proxy server. The irrigation control module 14 executes irrigation operations based on the received irrigation commands.
[0052] The user terminal has a smart card with a first card application installed on it, which communicates with the agent server. The first card application is used to perform at least one of the following functions: acquiring environmental monitoring data, setting early warning thresholds, and sending irrigation instructions to control the irrigation control module. The irrigation instructions include an irrigation start instruction to control the irrigation switch to turn on, and an irrigation end instruction to control the irrigation switch to close.
[0053] Furthermore, the irrigation control module includes a second card application that receives irrigation commands from the user terminal. Specifically, the user terminal is used to send irrigation commands from the first card application to the second card application within the irrigation control module via the 7816 communication protocol. The user terminal is also used to set the service quality level (SQL) based on user-triggered custom setting instructions, whereby the SQL determines the frequency at which the environmental monitoring module feeds back environmental monitoring data to the proxy server. The environmental monitoring data is categorized into three types based on importance and / or timeliness: a first type, a second type, and a third type. The custom setting instructions include: a first setting instruction to set the first type of environmental monitoring data to a first SQL; a second setting instruction to set the second type of environmental monitoring data to a second SQL; and a third setting instruction to set the third type of environmental monitoring data to a third SQL. By categorizing environmental monitoring data into multiple types based on factors such as importance and real-time requirements, and setting different SQL levels for each type, it helps to balance the reliability of information transmission with resource consumption. Specifically, in one approach, environmental monitoring data can be pre-classified into multiple types based on importance. For example, the first type of monitoring data is more important than the second type, and the second type is more important than the third type. Correspondingly, the first service quality level is higher than the second, and the second is higher than the third. In another approach, environmental monitoring data can be pre-classified into multiple types based on timeliness. For example, the first type of monitoring data is more time-sensitive than the second, and the second is more time-sensitive than the third. Correspondingly, the first service quality level is higher than the second, and the second is higher than the third. Timeliness can also be understood as delay sensitivity; data with higher delay sensitivity should be delivered more promptly and reliably. Furthermore, environmental monitoring data can also be classified into first, second, and third types based on factors such as data generation cycle and frequency. This invention does not limit the specific classification method, as long as it achieves the goal of setting different service quality levels for different types of data.
[0054] The aforementioned environmental monitoring module 13 further includes: a monitoring housing and a sensing component; wherein, the monitoring housing includes: a soil monitoring sub-housing housing and a weather monitoring sub-housing housing; the sensing component is used to sense soil attribute information; wherein, the soil attribute information includes: soil moisture content, soil composition, air moisture content, and light information.
[0055] In one alternative implementation, the proxy server is specifically used to communicate with the user terminal and the environmental monitoring module via a message queue telemetry transport protocol.
[0056] In summary, the IoT-based irrigation system provided by this invention can accurately monitor environmental data with the help of a proxy server and an environmental monitoring module, enabling user terminals to intelligently send irrigation commands to the irrigation control module based on the monitoring results. Therefore, the timing of sending irrigation commands in this invention is dynamically determined based on environmental monitoring data. Compared with traditional timed irrigation methods, this improves the accuracy of irrigation operations, saves water resources, and avoids resource waste.
[0057] To facilitate understanding, the implementation of the above embodiments is described in detail below using a specific example:
[0058] In related technologies, data collection and data transmission for remote irrigation systems are mainly achieved through network architectures such as wireless communication networks, the Internet, and cloud technology. However, this method suffers from technical problems such as inconvenient information collection and inflexible information transmission methods. Therefore, this example provides a method for implementing remote irrigation technology. Specifically, it utilizes a fusion technology solution combining smart card (including eSIM cards, network cards, and JAVA cards) technology with the MQTT (Message Queuing Telemetry Transport) protocol. Leveraging the widespread connectivity of smart cards in IoT terminal devices and combining the stability, reliability, and minimal network resource waste of the MQTT transmission protocol, this fusion technology helps specific fields such as agriculture and crop cultivation overcome geographical limitations in related technologies, achieving more convenient and intelligent data collection and remote irrigation.
[0059] Figure 2 A schematic diagram of the system architecture in this example is shown. Figure 2As shown, the system architecture includes: a soil environmental monitoring device (i.e., the environmental monitoring module mentioned above), an MQTT server, user-side devices (i.e., user terminals), a card capability service platform, and an automatic irrigation system (i.e., an irrigation control module). Specifically, the soil environmental monitoring device includes three different models: MA001, MB001, and MC001. These multiple models facilitate comprehensive soil environmental monitoring. The MA001 soil environmental monitoring device further includes: a wireless communication module, a sensing device, a main controller, a power supply, a monitoring system, and a positioning device. The MQTT server acts as a proxy server, specifically including: a device connection module, a message receiving module, and a processing module. The MQTT server communicates with the soil environmental monitoring device via the MQTT protocol. The user-side device can be a smartphone, tablet, or other smart terminal, and also includes a smart card / card application, communicating with the MQTT server via a subscription / publishing method. The card capability service platform includes a card application management module for communicating with the user-side device via the 7816 communication protocol. In addition, the automatic irrigation system includes: IA001 automatic irrigation system, IB001 automatic irrigation system, and IC001 automatic irrigation system. The IA001 automatic irrigation system includes: a card / card application module, a main controller, and a power supply. The automatic irrigation system communicates with the user-side equipment via the 7816 communication protocol. The following sections provide a detailed description of each of these devices:
[0060] (1) User-side equipment: This specifically includes smart terminal devices, smart cards, and card applications.
[0061] a. Smart terminal device (including smart card and card application): This can cover any smart terminal of the user. Taking mobile terminal device as an example, a smart card (i.e., USIM card, or M2M card, eSIM card, etc. that support JAVA programs, collectively referred to as smart card in this application) is inserted into the mobile terminal, and the relevant card application is installed in the card to provide an operation interface for the user to subscribe to services through the smart terminal device.
[0062] b. Card Application: Develop a card application based on JAVA Card technology, which collaborates with the operator's card service capability open platform to provide users with an interface for a set of service functions; utilize the MQTT protocol for monitoring service subscription, and then send user commands for opening and closing the automatic irrigation system to designated irrigation areas through the card program. Its main functions include: acquiring soil and environmental monitoring data, setting early warning values, and issuing commands to control the irrigation system's on / off states.
[0063] (2) Card Business Management Platform
[0064] The card service management platform is a business operation platform developed by operators for card capabilities. It is a management platform for card users to carry out value-added services based on Java Card technology. Internally, it connects with the operator's provincial and municipal branches and business systems to support remote card issuance, card management, card application management, capability billing and other functions. Externally, it can connect with business systems to realize card-based value-added service.
[0065] (3) MQTT server:
[0066] a. MQTT, or Message Queuing Telemetry Transport, is a lightweight communication protocol based on a publish / subscribe model. The MQTT protocol includes three roles: subscriber, message broker, and publisher. Subscribers and publishers can both be clients (i.e., a message publisher can also be a message subscriber), and the message broker can be a server.
[0067] b. MQTT Server: As a message broker server, it connects user-side devices and soil and environmental monitoring equipment; message publishing relies entirely on the underlying TCP / IP network. The MQTT protocol includes three QoS levels to meet the message publishing and transmission needs of users or information publishers.
[0068] c. QoS level:
[0069] MQTT servers can provide the following three service levels:
[0070] Qos0, or "at most once," simply means sending a packet only once and not caring whether it is received or not. It is suitable for data that is not very important.
[0071] QoS 1 "at least once" ensures that messages arrive, but message duplication may occur.
[0072] QoS 2 "Exactly Once" ensures that messages arrive only once. This level can be used in billing systems to effectively solve the problem of incorrect transmission due to message loss.
[0073] (4) Soil Environmental Monitoring Device: This device comprises external components and internal system functional modules. Its main function is to automatically sense, collect, and disseminate relevant information regarding soil and weather conditions in the monitored area. External components include a soil monitoring housing and a weather monitoring housing. The internal system includes a sensing system, a power module, a main controller, a monitoring system, and a wireless communication module. The sensing system is responsible for sensing and detecting information such as soil moisture content, soil composition, air moisture content, light intensity, and weather warnings. The wireless communication module includes IoT communication protocols such as ZigBee and MQTT, responsible for enabling system networking. The main controller receives or sends instructions from the MQTT server via the wireless communication module, guiding each functional module to perform relevant functional operations. The power module connects to the voltage device, providing the necessary electrical energy to the soil environmental monitoring device.
[0074] (5) Automatic Irrigation System: This system automatically completes water supply and shut-off operations by receiving instructions from the user's card program. The system consists of two parts: external components and internal system functional modules. External components refer to canal structures such as channels and water supply system devices. The internal system functional modules include: a power supply module, a smart card / card program, a main controller, and a wireless communication module. The card program is responsible for receiving instructions from the user and sending them to the main controller to convert communication instructions into electrical instructions, thus guiding each functional module to perform relevant functional operations. The power supply module is responsible for supplying power to the automatic irrigation external equipment and the internal system. The wireless communication module includes multiple communication protocols, such as ZigBee and MQTT, which are IoT communication protocols.
[0075] The execution process of this system specifically includes the following steps:
[0076] Step 1: Based on the defined farmland coverage areas, install the soil environmental monitoring devices and the external facilities of the automatic irrigation system in the farmland to cover the service area.
[0077] Step Two: In the card-based service platform, establish corresponding numbers for each soil environmental monitoring device and each automatic irrigation system using a unified naming convention. This involves establishing a mapping relationship between the soil environmental monitoring devices and each automatic irrigation system. Once the relevant card application is activated, it automatically reports information such as ICCID, IMSI, and MSISDN (phone number), or the card service platform initiates an information synchronization function to collect card information. The platform then establishes a correspondence between the soil environmental monitoring device, automatic irrigation system, and the card application information at the control end, and the bound information is then sent to the card application through the platform.
[0078] Step 3: The smart terminal contains a smart card with a loaded application. Users can access the operation interface through the USIM card entry point in the terminal. For example, on a mobile terminal, users can access the program through the "SIM Card Application" entry point and perform various business operations. The module in the terminal needs to support the MQTT protocol. The terminal establishes a communication link with the server through the smart card and wireless communication network to subscribe to data information collected and released by the soil environmental monitoring device; it initiates active commands from the card to the irrigation system through the 7816 communication protocol; and it receives instructions through the card application in the irrigation system, converting communication commands into circuit commands, thereby realizing remote control operation.
[0079] Step 4: The soil environment monitoring device is powered by its own power supply and the main controller. The monitoring devices, sensors, positioning devices, and other components in the system are controlled by the main controller to collect various types of data. The collected data is transmitted to the MQTTSVR via a wireless communication module.
[0080] Step 5: The MQTT server relies on the publish / subscribe protocol of the TCP / IP network to establish a communication connection with the terminal module on the user side and the wireless communication device in the soil environment monitoring device, and communicates according to the content subscribed by the user side or the custom QoS level.
[0081] Step Six: The irrigation system is powered by a power module. The card application in the system is responsible for receiving and executing operation commands issued by the control terminal. The built-in main control module completes the conversion between communication quality and circuit command sheets, thereby realizing the automatic opening and closing of the irrigation system.
[0082] Step 7: When an MQTT client initiates a connection request to the server, it can configure the session using the 'Clean Session' flag. Setting 'Clean Session' to 0 indicates a persistent session is created; the session retains and saves offline messages even when the client disconnects, until the session times out and is cancelled. Setting 'Clean Session' to 1 indicates a new temporary session is created; this session is automatically destroyed when the client disconnects.
[0083] Figure 3 It shows Figure 2 The diagram shows the system's workflow. Figure 3 The system is divided into a business initialization phase and a business execution phase. The business initialization phase handles operations such as connecting devices, powering on, acquiring information, and reporting data. The business execution phase provides corresponding processing flows for three QoS modes. As mentioned above, the MQTT protocol supports three QoS levels: QoS0, QoS1, and QoS2. Accordingly, in... Figure 3 The document provides detailed procedures for each QoS level.
[0084] First, the initialization and binding steps (i.e., business initialization) are introduced: During the initial construction phase, a corresponding equipment number table will be established in the platform to represent the correspondence between equipment and service areas for the agricultural areas covered by this business. Numbering rules: M represents soil and environmental monitoring equipment; I represents automatic irrigation systems; the agricultural areas covered by the business can be divided into areas A, B, C, etc.; if multiple system devices are used in each area, they will be recorded with numerical numbers, but the monitoring equipment numbers must match the irrigation equipment numbers; for example: MA001 and IA001 form one group of business coverage areas; MA002 and IA002 form another group of business coverage areas.
[0085] Then, the designated terminal / smart card application acts as the information subscriber, and the monitoring system acts as the information publisher. Both establish communication connections, publish and receive subscription information via the MQTT protocol. When the monitoring device initiates its first connection request, it includes the device number information with the MQTTTSVR. The card service management platform (hereinafter referred to as the "Platform") provides background capability support for the card application. After all devices in this example are powered on, the card application on the user side and the card application in the irrigation system have completed the card activation operation. The Platform obtains information such as the card's ICCID, IMSI, and MSSID through the "Information Synchronization" function. The Platform connects to the MQTT server via the internet and obtains the monitoring device information connected to the MQTT server through "Information Synchronization". Monitoring devices that have been synchronized to the Platform are considered to be in an activated state, and the corresponding irrigation devices are also in an activated state. The Platform automatically generates a list of activated devices and synchronizes it to the card application on the user side. Users can then subscribe to information publication in a specified area through the card application entry, and can also remotely control the irrigation system to perform irrigation system opening and closing operations.
[0086] Next, we will introduce how to automatically acquire monitoring data:
[0087] First, based on the three roles defined in the MQTT protocol, the land environment monitoring device is set as the information publisher, and the smart terminal / card application is set as the information subscriber; the MQTT server acts as a proxy server for connection, and the QoS service level is set according to the business scenario.
[0088] QoS0: Similar to a broadcast mechanism, users subscribe to a lighting information service from the monitoring system. The monitoring system publishes the information to the MQTT server through the sensing module and the main controller. The message field is composed of QoS level + device number + data information. Assuming the lighting information publication is set to QoS0, the QoS0 level is taken, and the content to be published is combined into a single data message and published to the MQTT server. After receiving the message, the MQTT server pushes the information to the message subscribers. Users can view the received messages through the card application entry, or they can set a pop-up window in the card application to view the information.
[0089] QoS1: Assuming air temperature / humidity information dissemination is set to QoS1, the terminal has a pre-installed smart card and provides a card program interface. The card program interface subscribes to the air temperature / humidity service from the MQTT server. When the sensors in the monitoring device detect the current temperature / humidity value, they cache the value and publish it to the MQTT server via the main control system and wireless communication module. The MQTT server stores the value in its server storage area. After receiving the message, the MQTT server pushes the information to the subscribers to publish the temperature / humidity value. Upon receiving the value, the card application sends a message to the MQTT server to delete the cached value and publishes a message to the monitoring system to delete the cached value. If the monitoring system does not receive a message confirmation from the card application (or the message is lost or the terminal is abnormally interrupted), the monitoring system will resend the message according to the QoS1 mechanism until the card application sends a confirmation message back to the monitoring system. Based on the received data, the user determines whether irrigation operation needs to be performed. If the operation is confirmed, the user can initiate an active command from the card end through the operation interface in the card program (based on the bound service area). The active command is received by the card application in the irrigation system through the 7816 communication protocol, and the communication command is converted into a circuit command by the main control module of the irrigation system to execute the opening and closing operation of the irrigation system valve.
[0090] QoS2: Assuming soil moisture information publishing is configured for QoS2, the terminal has a pre-installed smart card and provides a card program interface. The user subscribes to the soil moisture information publishing service from the MQTT server through the card program interface. When the sensing device in the detection system detects the current (or a specified time within the clock on the main control panel) soil moisture value and caches it, the value is published to the MQTT server via the main control system and wireless communication module. The MQTT server stores the value in its server storage area and publishes the soil moisture value of the service coverage area to subscribers. To avoid message loss or abnormal terminal interruption, the card application sends a confirmation message to the publisher after receiving the message. Upon receiving the confirmation message, the publisher sends a release feedback to the card program. The server then deletes the cached information and sends a "Message published successfully" message to the publisher. The publisher then deletes the cached information, completing the publishing process. The user uses the currently received data or multiple data values to help determine whether irrigation operation is needed. If irrigation is needed, refer to the previous step to perform remote control operation. Therefore, "message publication record" guarantees the publisher, ensuring that the publisher will not be lost; "message release" guarantees the "message record," ensuring that the "message record" will not be lost; "successful message publication" guarantees the "message release," ensuring that the "message release" will not be lost.
[0091] Figure 4 A schematic diagram of the automatic irrigation operation process is shown.
[0092] First, let's explain the names and functions of each functional module in the process:
[0093] CPU: Converts signals into control signals via software, and drives KM / KMn to work through the output interface circuit.
[0094] Output interface: Composed of an optocoupler and an intermediate relay, it controls the on / off state of the AC contactor.
[0095] Feedback interface: Feeds back the conduction status of the KM / KMn circuit; and sends the feedback electrical signal back to the CPU for digital signal conversion.
[0096] KM: This refers to an AC contactor (or similar product). Each KM includes three contacts: one connects to 220V voltage; another connects to the water pump, controlling its opening and closing via current; and the third connects to an output / feedback interface for status query and controlling the on / off state of the main circuit or individual circuits. A low voltage setting represents off, and a high voltage setting represents on.
[0097] Based on the equipment distribution in the irrigation area, KM is further divided into KM1, KM2, KM3, and KMn, corresponding to irrigation systems IA001, IA002, IA003, etc. The continuity of the system is determined by detecting the contact status of the AC contactor of the target equipment.
[0098] Water pump: The water pump is turned on and off according to the current conduction status. The water pump is turned off when the voltage is low and turned on when the voltage is high.
[0099] Figure 4 The flowcharts for the status query phase and the automatic irrigation control phase are shown below.
[0100] First, after the card application in the irrigation system is powered on, it automatically completes network authentication and sends network registration information to the business management platform through proactive commands; the business management platform can also issue instructions to the card application to obtain card status, and the card returns status parameters.
[0101] Then, the user operates the business management platform through the computer interface or the "USIM card entry" on the mobile terminal, and sends a circuit loop opening / closing status query command to the card application in the main controller of the target irrigation system through the card application on the user's terminal. The card application in the irrigation system receives the user's command and performs command conversion through the CPU in the main controller.
[0102] Next, the CPU receives the instructions from the card application and converts them into circuit signals via software, obtaining the high / low level indices of the specified KM / KMn from the feedback interface. For example, a high-level signal (i.e., 5V voltage) indicates that the main circuit 220V is on, and a low-level signal (i.e., 0V voltage) indicates that the main circuit 220V is off. Irrigation operations are performed based on the on / off state of the circuit.
[0103] In addition, the CPU converts the received circuit signals into communication signals and sends them to the card application in the main controller; then the signals are sent to the business management platform or the user's mobile terminal to be displayed to the user.
[0104] Finally, based on the feedback status, the user sends an on / off command to the card in the target irrigation system. This command is converted by the CPU and then driven by the output interface to operate the KM / KMn, causing all contacts to close or open. After a short interval, the platform automatically sends a circuit loop opening / closing status query command to the target KM / KMn, and retrieves the execution result from the KM / KMn according to the query command flow.
[0105] In summary, this example demonstrates a method for remotely acquiring and analyzing soil and weather information for a designated agricultural area through the integration of smart card technology, MQTT communication protocol, and circuit conversion technology. It also utilizes smart cards for remote control via circuit conversion. This solution enables truly distance-free intelligent irrigation operations, contributing to greater intelligence and convenience in agriculture. Furthermore, it improves the accuracy of irrigation control.
[0106] According to another aspect of the present invention, an irrigation method based on the Internet of Things, applied to a user terminal, includes:
[0107] Step 1: Subscribe to environmental monitoring data from the proxy server via smart card;
[0108] Step 2: Obtain environmental monitoring data from the environmental monitoring module fed back by the proxy server;
[0109] Step 3: Based on the environmental monitoring data, send irrigation instructions to the irrigation control module.
[0110] According to another aspect of the present invention, an irrigation method based on the Internet of Things is provided, applied to a proxy server, specifically including:
[0111] Step 1: Receive the subscription request sent by the user terminal via the smart card, and subscribe the user terminal to environmental monitoring data according to the subscription request;
[0112] Step 2: Obtain environmental monitoring data fed back by the environmental monitoring module;
[0113] Step 3: Send the environmental monitoring data to the user terminal so that the user terminal can send irrigation instructions to the irrigation control module based on the environmental monitoring data.
[0114] The specific implementation details of each of the above steps can be found in the description of the corresponding part in the previous embodiment, and will not be repeated here.
[0115] According to another aspect of the present invention, a user terminal for irrigation is provided, comprising:
[0116] The subscription module is suitable for subscribing to environmental monitoring data from a proxy server via a smart card;
[0117] The acquisition module is adapted to acquire environmental monitoring data fed back by the proxy server from the environmental monitoring module;
[0118] The sending module is adapted to send irrigation instructions to the irrigation control module based on the environmental monitoring data.
[0119] According to another aspect of the present invention, a proxy server for irrigation is provided, comprising:
[0120] The receiving module is adapted to receive a subscription request sent by a user terminal via a smart card, and to subscribe to environmental monitoring data for the user terminal according to the subscription request;
[0121] The acquisition module is suitable for acquiring environmental monitoring data fed back by the environmental monitoring module.
[0122] The sending module is adapted to send the environmental monitoring data to the user terminal, so that the user terminal can send irrigation instructions to the irrigation control module based on the environmental monitoring data.
[0123] The specific structure and working principle of each of the above modules can be found in the description of the corresponding part in the method embodiment, and will not be repeated here.
[0124] Additionally, refer to Figure 5 Another embodiment of the present invention provides an electronic device comprising:
[0125] One or more processors 501;
[0126] The memory 502 stores one or more programs that, when executed by one or more processors, cause the one or more processors to implement any of the above evaluation methods.
[0127] One or more I / O interfaces 503 are connected between the processor and the memory and configured to enable information exchange between the processor and the memory.
[0128] Among them, processor 501 is a device with data processing capabilities, including but not limited to central processing unit (CPU); memory 502 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); I / O interface (read-write interface) 503 is connected between processor 501 and memory 502, and can realize information interaction between processor 501 and memory 502, including but not limited to data bus (Bus).
[0129] In some embodiments, the processor 501, memory 502, and I / O interface 503 are interconnected via a bus, and thus connected to other components of the computing device.
[0130] Finally, another embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described service provision methods.
[0131] Those skilled in the art will understand that all or some of the steps, systems, or apparatuses in the methods, systems, and apparatuses described above can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0132] This document has described exemplary embodiments, and while specific terminology has been used, it is intended and should be interpreted only in a general illustrative sense and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.
Claims
1. An irrigation system based on the Internet of Things, characterized in that, include: User terminal, proxy server, environmental monitoring module, and irrigation control module; among them, The user terminal communicates with the proxy server via a smart card to subscribe to environmental monitoring data from the proxy server and send irrigation instructions to the irrigation control module based on the received environmental monitoring data. The proxy server is communicatively connected to the user terminal and the environmental monitoring module, and is used to realize data forwarding operations between the user terminal and the environmental monitoring module; The environmental monitoring module is installed in the irrigation area and is used to send the acquired environmental monitoring data associated with the irrigation area to the user terminal through the proxy server; The irrigation control module is used to perform irrigation operations according to the received irrigation instructions; The user terminal has a first card application installed on its smart card, which communicates with the proxy server. The first card application is used to perform at least one of the following functions: acquiring environmental monitoring data, setting early warning thresholds, and sending irrigation instructions to control the irrigation control module. The irrigation instructions include an irrigation start instruction to control the irrigation switch to turn on, and an irrigation end instruction to control the irrigation switch to close.
2. The system according to claim 1, characterized in that, The irrigation control module is equipped with a second card application, which receives irrigation instructions from the user terminal. Furthermore, the user terminal is specifically used to send irrigation instructions from the first card application to the second card application in the irrigation control module via the 7816 communication protocol.
3. The system according to claim 1, characterized in that, The user terminal is specifically used for: setting a service quality level by the first card application according to a user-triggered custom setting instruction; wherein, the service quality level is used to determine the frequency at which the environmental monitoring module feeds back environmental monitoring data to the proxy server; The environmental monitoring data is divided into a first category, a second category, and a third category according to its importance and / or timeliness. The custom setting instructions include: a first setting instruction for setting the first category of environmental monitoring data to a first service quality level; a second setting instruction for setting the second category of environmental monitoring data to a second service quality level; and a third setting instruction for setting the third category of environmental monitoring data to a third service quality level.
4. The system according to any one of claims 1-3, characterized in that, The environmental monitoring module includes: a monitoring housing and sensing components; The monitoring housing includes a soil monitoring sub-housing and a weather monitoring sub-housing; the sensing component is used to sense soil property information; wherein the soil property information includes soil moisture content, soil composition, air moisture content, and light information.
5. The system according to any one of claims 1-3, characterized in that, The proxy server is specifically used to communicate with the user terminal and the environmental monitoring module via a message queue telemetry transmission protocol.
6. An irrigation method based on the Internet of Things, characterized in that, Applied to user terminals, including: Subscribe to environmental monitoring data from the agent server via smart card; Obtain environmental monitoring data from the environmental monitoring module as returned by the proxy server; Based on the environmental monitoring data, an irrigation command is sent to the irrigation control module; The smart card is equipped with a first card application, which communicates with the proxy server. The first card application is used to perform at least one of the following functions: acquiring environmental monitoring data, setting early warning thresholds, and sending irrigation instructions to control the irrigation control module. The irrigation instructions include: an irrigation start instruction to control the irrigation switch to turn on, and an irrigation end instruction to control the irrigation switch to close.
7. An irrigation method based on the Internet of Things, characterized in that, Applied to proxy servers, including: Receive a subscription request sent by a user terminal via a smart card, and subscribe to environmental monitoring data for the user terminal according to the subscription request; Obtain environmental monitoring data fed back by the environmental monitoring module; The environmental monitoring data is sent to the user terminal so that the user terminal can send irrigation instructions to the irrigation control module based on the environmental monitoring data; The smart card is equipped with a first card application, which communicates with the proxy server. The first card application is used to perform at least one of the following functions: acquiring environmental monitoring data, setting early warning thresholds, and sending irrigation instructions to control the irrigation control module. The irrigation instructions include: an irrigation start instruction to control the irrigation switch to turn on, and an irrigation end instruction to control the irrigation switch to close.
8. A user terminal for irrigation, comprising: The subscription module is suitable for subscribing to environmental monitoring data from a proxy server via a smart card; The acquisition module is adapted to acquire environmental monitoring data fed back by the proxy server from the environmental monitoring module; The sending module is adapted to send irrigation instructions to the irrigation control module based on the environmental monitoring data; The smart card is equipped with a first card application, which communicates with the proxy server. The first card application is used to perform at least one of the following functions: acquiring environmental monitoring data, setting early warning thresholds, and sending irrigation instructions to control the irrigation control module. The irrigation instructions include: an irrigation start instruction to control the irrigation switch to turn on, and an irrigation end instruction to control the irrigation switch to close.
9. A proxy server for irrigation, comprising: The receiving module is adapted to receive a subscription request sent by a user terminal via a smart card, and to subscribe to environmental monitoring data for the user terminal according to the subscription request; The acquisition module is suitable for acquiring environmental monitoring data fed back by the environmental monitoring module. The sending module is adapted to send the environmental monitoring data to the user terminal, so that the user terminal can send irrigation instructions to the irrigation control module based on the environmental monitoring data; The smart card is equipped with a first card application, which communicates with the proxy server. The first card application is used to perform at least one of the following functions: acquiring environmental monitoring data, setting early warning thresholds, and sending irrigation instructions to control the irrigation control module. The irrigation instructions include: an irrigation start instruction to control the irrigation switch to turn on, and an irrigation end instruction to control the irrigation switch to close.
10. An electronic device, characterized in that, include: One or more processors; A memory having stored one or more programs that, when executed by one or more processors, cause the one or more processors to implement the method according to claim 6 or 7; One or more I / O interfaces are connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
11. A computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method according to claim 6 or 7.
Citation Information
Patent Citations
Wireless intelligent irrigation system
CN102499028A
Information subscription and release method and device, server, system, equipment and medium
CN111866161A