Disclosure of Invention
In order to solve the problems, the application provides an agricultural greenhouse guaranteeing method based on a block chain, which comprises the following steps: deploying a blockchain platform based on the blockchain framework; deploying a control platform and an environmental parameter acquisition device corresponding to the agricultural greenhouse in the block chain platform as nodes; acquiring the environmental parameters acquired by the environmental parameter acquisition device and the control instruction sent by the control platform; and writing the environment parameters and the control instructions into the blockchain platform.
In one example, the environmental parameter acquisition apparatus includes: at least one of a temperature acquisition device, a humidity acquisition device, a smoke acquisition device, an illumination acquisition device, a wind power acquisition device, a soil acquisition device and a water quality acquisition device; the environmental parameters include: at least one of a temperature parameter, a humidity parameter, a smoke parameter, a light parameter, a wind parameter, a soil parameter, and a water quality parameter.
In one example, the method further comprises: deploying an alarm device as a node in the blockchain platform; and when the smoke parameters and the temperature parameters are abnormal, the alarm device sends out alarm information and writes the alarm information into the block chain platform.
In one example, the method further comprises: deploying fire departments as nodes in the blockchain platform; and after the fire department gives an alarm according to the alarm information, writing the alarm information into the block chain platform.
In one example, before obtaining the control instruction sent by the control platform, the method further includes: when at least one of the temperature parameter, the humidity parameter, the illumination parameter and the wind power parameter is detected to be abnormal, controlling corresponding equipment to adjust through the control platform, and generating a corresponding control instruction; wherein the respective device comprises: at least one of a heater, an air conditioner, a cover film, a humidifier, a water pump and a ventilation device.
In one example, the method further comprises: generating and deploying corresponding intelligent contracts in the blockchain platform, wherein the intelligent contracts comprise: the environment parameter acquisition device and the control platform.
In one example, the intelligent contract is for: and when at least one of the temperature parameter, the humidity parameter, the illumination parameter and the wind power parameter acquired by the environment parameter acquisition device is abnormal, controlling the control platform so that the control platform can be adjusted by controlling the corresponding equipment.
In one example, the method further comprises: and generating a digital object unique identifier aiming at the agricultural greenhouse so that a user can inquire the environment parameters and the control instructions corresponding to the agricultural greenhouse.
On the other hand, this application has still provided an agricultural greenhouse support equipment based on block chain, includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: deploying a blockchain platform based on the blockchain framework; deploying a control platform and an environmental parameter acquisition device corresponding to the agricultural greenhouse in the block chain platform as nodes; acquiring the environmental parameters acquired by the environmental parameter acquisition device and the control instruction sent by the control platform; and writing the environment parameters and the control instructions into the blockchain platform.
On the other hand, the application also provides a nonvolatile computer storage medium for agricultural greenhouse protection based on a block chain, which stores computer executable instructions, and the computer executable instructions are set as follows: deploying a blockchain platform based on the blockchain framework; deploying a control platform and an environmental parameter acquisition device corresponding to the agricultural greenhouse in the block chain platform as nodes; acquiring the environmental parameters acquired by the environmental parameter acquisition device and the control instruction sent by the control platform; and writing the environment parameters and the control instructions into the blockchain platform.
The block chain-based agricultural greenhouse guaranteeing method can bring the following beneficial effects:
and the environmental parameters and the control instructions corresponding to the agricultural greenhouse are stored in the block chain platform. Because the data in the blockchain platform is public and transparent, a user can inquire the environmental parameters and the control instructions through corresponding ways at any time. And because the blockchain platform is in distributed storage, data tampering of a single node cannot be effective, and the truthfulness and the credibility of the data on the blockchain platform are ensured. Once the agricultural greenhouse or crops are abnormal, the problem can be determined through the block chain platform at any time, and then the rights and interests of users are maintained.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a method for guaranteeing an agricultural greenhouse based on a block chain, including:
s101, deploying a blockchain platform based on the blockchain framework.
The Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, and is essentially a decentralized database.
A blockchain platform is first deployed based on the blockchain framework. The blockchain frame may be any blockchain frame capable of implementing the corresponding function of the embodiment of the present application, for example, bitcoin, etherhouse, Fabric, Corda, and the like. A blockchain platform may refer to a platform that stores a blockchain, e.g., may be a distributed system, etc. Of course, the blockchain platform may also directly represent the blockchain itself, and is not limited herein.
S102, deploying a control platform and an environmental parameter acquisition device corresponding to the agricultural greenhouse in the block chain platform as nodes.
Under the general condition, agricultural greenhouses (hereinafter referred to as greenhouses) are internally provided with corresponding control platforms and environment parameter acquisition devices. Wherein, a plurality of corresponding devices, such as heaters, humidifiers and the like, are arranged in the greenhouse and used for adjusting the parameters of the temperature, the humidity and the like in the greenhouse. The control platform refers to a platform capable of controlling corresponding devices in the greenhouse, and the control may be through automatic control, manual control, or a combination of the two, which is not limited herein. The environment parameter acquisition device is used for acquiring environment parameters inside and outside the greenhouse.
Specifically, the environmental parameter collecting device may include at least one of a temperature collecting device, a humidity collecting device, a smoke collecting device, a light collecting device, a wind collecting device, a soil collecting device, and a water quality collecting device. Wherein, the temperature acquisition device, the humidity acquisition device, the smoke acquisition device, the illumination acquisition device, the wind power acquisition device and the water quality acquisition device can be corresponding temperature sensor, humidity sensor, smoke detector, illumination sensor, wind speed sensor and water quality sensor. The soil collection device can be used for collecting the content of specified elements in soil, such as nitrogen, phosphorus and the like, and can also be used as a sensor for detecting soil humidity, pH value, moisture and the like.
S103, acquiring the environmental parameters acquired by the environmental parameter acquisition device and the control instruction sent by the control platform.
And S104, writing the environmental parameters and the control instructions into the block chain platform.
After the blockchain platform is deployed, the environmental parameters acquired by the environmental acquisition device and the control instructions sent by the control platform can be acquired, and the environmental parameters and the control instructions are written into the blockchain platform. The environment parameters refer to a plurality of parameters for representing the environment, and the control commands are commands which are required to be sent when the control platform controls the corresponding equipment. And the environmental parameters and the control instructions corresponding to the agricultural greenhouse are stored in the block chain platform. Because the data in the blockchain platform is public and transparent, a user can inquire the environmental parameters and the control instructions through corresponding ways at any time. And because the blockchain platform is in distributed storage, data tampering of a single node cannot be effective, and the truthfulness and the credibility of the data on the blockchain platform are ensured. Once the agricultural greenhouse or crops are abnormal, the problem can be determined through the block chain platform at any time, and then the rights and interests of users are maintained.
Specifically, the environmental parameters may include: at least one of a temperature parameter corresponding to the temperature acquisition device, a humidity parameter corresponding to the humidity acquisition device, a smoke parameter corresponding to the smoke acquisition device, an illumination parameter corresponding to the illumination acquisition device, a wind power parameter corresponding to the wind power acquisition device, a soil parameter corresponding to the soil acquisition device, and a water quality parameter corresponding to the water quality acquisition device. The soil parameters may also include a plurality of parameters, such as a soil PH value parameter, a soil moisture parameter, a soil element content parameter, a soil hardness parameter, and the like.
In one embodiment, the alert device may be deployed as a node in a blockchain platform. When the smoke parameters and the temperature parameters are abnormal, fire is likely to be generated in the greenhouse. If no people are in the greenhouse, the fire can spread easily, and great loss is caused to users. And the greenhouse is usually internally provided with an alarm device, when the abnormity of the smoke parameters and the temperature parameters is detected, the alarm device can send alarm information and write the alarm information into the block chain platform, so that a user can find the alarm information in time. The alarm information comprises alarm time, alarm place and alarm content.
Further, fire departments may also be deployed as nodes in the blockchain platform. When the fire department inquires that the alarm information appears in the block chain platform, the fire department can give an alarm in time and then write the alarm information into the block chain platform after the alarm is given. By writing the alarm information into the block chain platform, the fire department can also give an alarm in time when a fire disaster occurs under the condition that a user is not present, and the loss of the user caused by the fire disaster is greatly reduced.
In one embodiment, when at least one of the temperature parameter, the humidity parameter, the illumination parameter and the wind power parameter is detected to be abnormal, the corresponding equipment can be controlled to adjust through the control platform, and a corresponding control instruction is generated.
Specifically, when the temperature parameter is detected to be abnormal, the heating system can be controlled to heat, the air conditioner can be controlled to heat or cool, and the covering film can be controlled to cover or open, so that the temperature in the greenhouse can be reduced or increased. The covering film is a film covering the surface of the greenhouse, and when the film is covered on the greenhouse, the light irradiated into the interior of the greenhouse is less. When the humidity parameter is detected to be abnormal, the humidifier can be controlled to carry out or stop humidifying, or the water pump is controlled to increase or decrease water supply. When the abnormal illumination parameters are detected, the covering film can be controlled to cover or open, so that the illumination inside the greenhouse can be reduced or increased. When the wind power parameters are abnormal, the ventilation equipment can be controlled to be correspondingly adjusted.
Further, a corresponding intelligent contract can be generated in advance and deployed in the blockchain platform. The intelligent contract comprises at least one of an environmental parameter acquisition device and a control platform. The intelligent contract is used for controlling the control platform when at least one of the temperature parameter, the humidity parameter, the illumination parameter and the wind power parameter acquired by the environment parameter acquisition device is abnormal, so that the control platform can be adjusted by controlling the corresponding equipment. Since the intelligent contracts on the blockchain platform are public, each node can check whether the intelligent contracts are in accordance with the preset agreement or not and deploy the intelligent contracts on the own node. The degree of trust of the user is further increased while the degree of automation of the transaction is improved. The intelligent contract can only be changed in an upgrading mode, each node needs to be synchronously deployed, once the intelligent contract is deployed, the intelligent contract can only be executed through a program, interference of human factors is avoided, and the reliability of data is enhanced.
In one embodiment, a Digital object unique Identifier (DOI) of the greenhouse can be generated, for example, a two-dimensional code, a bar code, etc., so that a user can query environmental parameters and control commands of the greenhouse more conveniently. Taking the two-dimensional code as an example, the user can access the data associated with the greenhouse by scanning the two-dimensional code corresponding to the greenhouse.
As shown in fig. 2, an embodiment of the present application further provides an agricultural greenhouse securing apparatus based on a block chain, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
deploying a blockchain platform based on the blockchain framework;
deploying a control platform and an environmental parameter acquisition device corresponding to the agricultural greenhouse in the block chain platform as nodes;
acquiring the environmental parameters acquired by the environmental parameter acquisition device and the control instruction sent by the control platform;
and writing the environment parameters and the control instructions into the blockchain platform.
The embodiment of the application also provides a nonvolatile computer storage medium for agricultural greenhouse protection based on a block chain, which stores computer executable instructions, wherein the computer executable instructions are set as follows:
deploying a blockchain platform based on the blockchain framework;
deploying a control platform and an environmental parameter acquisition device corresponding to the agricultural greenhouse in the block chain platform as nodes;
acquiring the environmental parameters acquired by the environmental parameter acquisition device and the control instruction sent by the control platform;
and writing the environment parameters and the control instructions into the blockchain platform.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.