A kind of apparatus control method and system based on OneNET cloud platform

文档序号:1771280 发布日期:2019-12-03 浏览:15次 中文

阅读说明:本技术 一种基于OneNET云平台的设备控制方法和系统 (A kind of apparatus control method and system based on OneNET cloud platform ) 是由 张萍 于 2019-08-01 设计创作,主要内容包括:本发明公开了一种基于OneNET云平台的设备控制方法和系统。所述方法包括:接收网关发送的第一环境数据,并将所述第一环境数据转发至用户终端;其中,所述网关用于接收环境采集终端采集的所述第一环境数据;所述用户终端用于根据需要对所述第一环境数据进行调整,得到第二环境数据;将所述用户终端上发的所述第二环境数据发送至所述网关;其中,所述网关还用于将所述第二环境数据转发至环境控制终端;所述环境控制终端用于根据所述第二环境数据对外接设备进行控制。本发明能够基于OneNET云平台管理大量终端设备,并提高数据传输的高效性和稳定性。(The invention discloses a kind of apparatus control method and system based on OneNET cloud platform.The described method includes: receiving the first environment data that gateway is sent, and by the first environment data forwarding to user terminal;Wherein, the gateway is used to receive the first environment data of environment acquisition terminal acquisition;The user terminal obtains second environment data for being adjusted as needed to the first environment data;The second environment data sent out on the user terminal are sent to the gateway;Wherein, the gateway is also used to the second environment data forwarding to environmental Kuznets Curves terminal;The environmental Kuznets Curves terminal is for controlling external equipment according to the second environment data.The present invention can manage great amount of terminals equipment, and the high efficiency and stability of improve data transfer based on OneNET cloud platform.)

1. a kind of apparatus control method based on OneNET cloud platform characterized by comprising

The first environment data that gateway is sent are received, and by the first environment data forwarding to user terminal;Wherein, the net Close the first environment data for receiving the acquisition of environment acquisition terminal;The user terminal is for as needed to described the One environmental data is adjusted, and obtains second environment data;

The second environment data sent out on the user terminal are sent to the gateway;Wherein, the gateway be also used to by The second environment data forwarding is to environmental Kuznets Curves terminal;The environmental Kuznets Curves terminal is used for according to the second environment data pair External equipment is controlled.

2. the apparatus control method according to claim 1 based on OneNET cloud platform, which is characterized in that the gateway packet Include communication module, zigbee coordinator module, main control module, memory module and power supply module.

3. the apparatus control method according to claim 2 based on OneNET cloud platform, which is characterized in that the master control mould Block is STM32F429IGT6.

4. the apparatus control method according to claim 1 based on OneNET cloud platform, which is characterized in that the environment is adopted Collection terminal includes Temperature Humidity Sensor, soil temperature sensor, Soil Moisture Sensor, illuminance sensor, pH value sensing Device and CO2The combination of sensor one or more of them.

5. the apparatus control method according to claim 1 based on OneNET cloud platform, which is characterized in that the environment control Terminal processed is the controller corresponding to the external equipment;

Wherein, the external equipment includes irrigation equipment, exhaust equipment, roller shutter equipment, light irradiation apparatus one or more of them group It closes.

6. a kind of apparatus control system based on OneNET cloud platform, which is characterized in that including OneNET cloud platform, gateway, ring Border acquisition terminal, environmental Kuznets Curves terminal;

The OneNET cloud platform is used to receive the first environment data that the gateway is sent, and the first environment data are turned It is sent to user terminal;The gateway is used to receive the first environment data of the environment acquisition terminal acquisition;Wherein, described User terminal obtains second environment data for being adjusted as needed to the first environment data;

The second environment data that the OneNET cloud platform is also used to send out on the user terminal are sent to the gateway; The gateway is also used to the second environment data forwarding to the environmental Kuznets Curves terminal;The environmental Kuznets Curves terminal is used for root External equipment is controlled according to the second environment data.

7. the apparatus control system according to claim 6 based on OneNET cloud platform, which is characterized in that the gateway packet Include communication module, zigbee coordinator module, main control module, memory module and power supply module.

8. the apparatus control system according to claim 6 based on OneNET cloud platform, which is characterized in that the master control mould Block is STM32F429IGT6.

9. the apparatus control system according to claim 6 based on OneNET cloud platform, which is characterized in that the environment is adopted Collection terminal includes Temperature Humidity Sensor, soil temperature sensor, Soil Moisture Sensor, illuminance sensor, pH value sensing Device and CO2The combination of sensor one or more of them.

10. the apparatus control system according to claim 6 based on OneNET cloud platform, which is characterized in that the environment Controlling terminal is the controller corresponding to the external equipment;

Wherein, the external equipment includes irrigation equipment, exhaust equipment, roller shutter equipment, light irradiation apparatus one or more of them group It closes.

Technical field

The present invention relates to reading intelligent agriculture internet of things field more particularly to a kind of equipment controls based on OneNET cloud platform Method and system processed.

Background technique

In agricultural production process, temperature, humidity, intensity of illumination, CO2A variety of rings such as concentration, moisture and other nutrients The growth of border factors crops, traditional agricultural management method do not accomplish fine-grained management far, it is proposed that are based on object Cloud platform of networking constructs intelligent agricultural system, such as growth of the reading intelligent agriculture temperature control system to crops from exploitation service routine Environment is monitored.

From exploitation service routine because modern agriculture regulatory requirement will usually access great amount of terminals equipment, such as temperature and humidity sensing Device and temperature and humidity controller etc., development difficulty is larger, and need to purchase corresponding hardware device, higher cost, therefore is typically based on Internet of Things Net cloud platform constructs intelligent agricultural system.But the industry viewpoint due to each company, development tactics and development hope are different, The Internet of Things cloud platform of design is also different, more to the constraint of the terminal device of access, it is difficult to meet modern agriculture management Demand.

For the intelligent comprehensive management for realizing modern agriculture, how just to be shown based on platform of internet of things access multiple terminal devices It obtains particularly critical.

Summary of the invention

Technical problem to be solved by the present invention lies in, provide a kind of apparatus control method based on OneNET cloud platform and System can manage great amount of terminals equipment, and the high efficiency and stability of improve data transfer based on OneNET cloud platform.

In order to solve the above-mentioned technical problem, the invention proposes a kind of apparatus control method based on OneNET cloud platform, Include:

The first environment data that gateway is sent are received, and by the first environment data forwarding to user terminal;Wherein, institute Gateway is stated for receiving the first environment data of environment acquisition terminal acquisition;The user terminal is used for as needed to institute It states first environment data to be adjusted, obtains second environment data;

The second environment data sent out on the user terminal are sent to the gateway;Wherein, the gateway is also used In by the second environment data forwarding to environmental Kuznets Curves terminal;The environmental Kuznets Curves terminal is used for according to the second environment number It is controlled according to external equipment.

Further, the gateway includes communication module, zigbee coordinator module, main control module, memory module and confession Electric module.

Further, the main control module is STM32F429IGT6.

Further, the environment acquisition terminal includes Temperature Humidity Sensor, soil temperature sensor, soil moisture content biography Sensor, illuminance sensor, pH value sensor and CO2The combination of sensor one or more of them.

Further, the environmental Kuznets Curves terminal is the controller corresponding to the external equipment;

Wherein, the external equipment includes irrigation equipment, exhaust equipment, roller shutter equipment, light irradiation apparatus one of which or more Kind combination.

The invention also provides a kind of apparatus control systems based on OneNET cloud platform, including OneNET cloud platform, net Pass, environment acquisition terminal, environmental Kuznets Curves terminal;

The OneNET cloud platform is used to receive the first environment data that the gateway is sent, and by the first environment number According to being forwarded to user terminal;The gateway is used to receive the first environment data of the environment acquisition terminal acquisition;Wherein, The user terminal obtains second environment data for being adjusted as needed to the first environment data;

The second environment data that the OneNET cloud platform is also used to send out on the user terminal are sent to described Gateway;The gateway is also used to the second environment data forwarding to the environmental Kuznets Curves terminal;The environmental Kuznets Curves terminal For being controlled according to the second environment data external equipment.

Further, the gateway includes communication module, zigbee coordinator module, main control module, memory module and confession Electric module.

Further, the main control module is STM32F429IGT6.

Further, the environment acquisition terminal includes Temperature Humidity Sensor, soil temperature sensor, soil moisture content biography Sensor, illuminance sensor, pH value sensor and CO2The combination of sensor one or more of them.

Further, the environmental Kuznets Curves terminal is the controller corresponding to the external equipment;

Wherein, the external equipment includes irrigation equipment, exhaust equipment, roller shutter equipment, light irradiation apparatus one of which or more Kind combination.

Implement the embodiment of the present invention to have the following beneficial effects:

The embodiment of the present invention is based on middle mobile open platform of internet of things OneNET cloud platform and gateway realize user terminal and The point-to-point communication of environment acquisition terminal, user terminal and environmental Kuznets Curves terminal, so that user can be based on OneNET cloud platform pipe Great amount of terminals equipment is managed, meanwhile, using OneNET cloud platform to the compatibility feature of various protocols, it ensure that great amount of terminals equipment energy It is enough efficiently and stably to transmit data.

Detailed description of the invention

Fig. 1 is the process signal of apparatus control method of one of the first embodiment of the invention based on OneNET cloud platform Figure;

Fig. 2 is the module connection figure of the gateway in second embodiment of the invention;

Fig. 3 is the data flow of apparatus control system of one of the fourth embodiment of the invention based on OneNET cloud platform Figure.

Specific embodiment

Below in conjunction with the attached drawing in the present invention, the technical solution in the present invention is clearly and completely described, is shown So, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the reality in the present invention Example is applied, every other embodiment obtained by those of ordinary skill in the art without making creative efforts all belongs to In the scope of protection of the invention.

It should be noted that the step in text is numbered, only for facilitating the explanation of specific embodiment, not as restriction step Execute the effect of sequencing.Method provided in this embodiment can be executed by relevant server, and hereafter with server As being illustrated for executing subject.

First embodiment.Please refer to Fig. 1.

As shown in Figure 1, a kind of apparatus control method based on OneNET cloud platform that first embodiment provides, including step S1~S2:

S1, the first environment data that gateway is sent are received, and by the first environment data forwarding to user terminal;Its In, the gateway is used to receive the first environment data of environment acquisition terminal acquisition;The user terminal is used for according to need The first environment data are adjusted, obtain second environment data.

S2, the second environment data sent out on the user terminal are sent to the gateway;Wherein, the gateway is also For by the second environment data forwarding to environmental Kuznets Curves terminal;The environmental Kuznets Curves terminal is used for according to the second environment Data control external equipment.

It is understood that environment acquisition terminal by the way that the first environment data of acquisition are sent to gateway, is incited somebody to action by gateway OneNET cloud platform is sent in first environment data, so that OneNET cloud platform can be by first environment data forwarding to user's end End, and respond user terminal and the adjustment of first environment data is operated.When user terminal returns to second environment data to OneNET When cloud platform, received second environment data are sent to gateway by OneNET cloud platform, by gateway by second environment data forwarding To environmental Kuznets Curves terminal, so that environmental Kuznets Curves terminal can control external equipment according to second environment data.

It should be noted that the user terminal terminal device, including mobile phone, computer, plate etc. are held by user can be with The communication equipment of server connection.

Due to middle mobile open platform of internet of things OneNET cloud platform, exploitation document is perfect in detail, and support HTTP, A variety of access protocols such as EDP, MQTT, RGMP, therefore only need to be according to the specification of OneNET platform by environment acquisition terminal, environmental Kuznets Curves Terminal uploads terminal device information by gateway accessing OneNET cloud platform, and OneNET platform can be established corresponding virtual Equipment realizes the functions such as data transmission, data storage, data management.For example, user passes through cell phone application login user account, with After OneNET cloud platform is communicatively coupled, first environment data can be obtained in real time online, and the second ring of upper hair as needed Border data realize remote administration terminal equipment.

In specific embodiment, the gateway includes communication module, and zigbee coordinator module, is deposited main control module Store up module and power supply module.

In the present embodiment, zigbee coordinator module is communicatively coupled with environment acquisition terminal, i.e. environment acquisition is whole The first environment data of acquisition are sent to zigbee coordinator module by zigbee communication mode by end.Similarly, zigbee Coordinator module is communicatively coupled with environmental Kuznets Curves terminal, i.e., zigbee coordinator module will be connect by zigbee communication mode The second environment data of receipts are sent to environmental Kuznets Curves terminal.

It is understood that using zigbee agreement ad hoc network characteristic, with GPIO mouthfuls of external ends of zigbee coordinator module End equipment can support great amount of terminals equipment to access network.

Implement the embodiment of the present invention to have the following beneficial effects:

The embodiment of the present invention is based on middle mobile open platform of internet of things OneNET cloud platform and gateway realize user terminal and The point-to-point communication of environment acquisition terminal, user terminal and environmental Kuznets Curves terminal, so that user can be based on OneNET cloud platform pipe Great amount of terminals equipment is managed, meanwhile, using OneNET cloud platform to the compatibility feature of various protocols, it ensure that great amount of terminals equipment energy It is enough efficiently and stably to transmit data.

Second embodiment, the embodiment based on first embodiment.Please refer to Fig. 2.

In specific embodiment, the gateway includes communication module, and zigbee coordinator module, is deposited main control module Store up module and power supply module.

In the present embodiment, the main control module is STM32F429IGT6;The communication module is ATK-ESP8266, institute Stating memory module is SD card read module.

As shown in Fig. 2, main control module (STM32F429IGT6) is attached by serial ports 2 and zigbee coordinator module, Be attached by serial ports 3 and communication module (ATK-ESP8266), by SDIO mouthfuls with memory module (SD card read module) into Row connection.

It is understood that STM32F429IGT6 by the external zigbee coordinator module of serial ports 2, i.e. environment acquisition is whole It is to pass through 2 He of serial ports by STM32F429IGT6 that end, which sends hair second environment data on first environment data and user terminal, Zigbee coordinator module, which is communicatively coupled, to be completed.

The configuration of STM32F429IGT6 is very powerful, and chip dominant frequency is up to 180Mhz, have 256KB SRAM, 1024FLASH, 12 16 bit timing devices, 2 32 bit timing devices, 2 usb, 140 universal I/O ports, 8 serial ports etc., are entirely capable of Enough meet existing demand and subsequent functions expanding.

High-performance UART-WIFI (serial ports-is wireless) module that ATK-ESP8266 is released as ALIENTEK, onboard ai- The ESP8266 module of thinker company, built-in ICP/IP protocol stack can pass through serial ports and main control module (STM32F429IGT6) Communication, to realize the conversion between serial ports and WIFI.Using ATK-ESP8266, main control module (STM32F429IGT6) is only needed Simple serial ports configuration is carried out, data can be transmitted by network (WIFI).In addition, ATK-ESP8266 supports LVTTL serial ports, Compatible 3.3V and 5V, convenient for being connect with main control module (STM32F429IGT6).

3rd embodiment, the embodiment based on first embodiment.

In specific embodiment, the environment acquisition terminal includes Temperature Humidity Sensor, soil temperature sensor, soil Earth water content sensor, illuminance sensor, pH value sensor and CO2The combination of sensor one or more of them.

It is understood that in practical applications, passing through Temperature Humidity Sensor, soil temperature sensor, soil moisture content Sensor, illuminance sensor, pH value sensor and CO2The sensors such as sensor acquire the environmental data of agricultural greenhouse, i.e., the One environmental data, so that user can obtain temperature and humidity, the soil moisture, soil moisture content, illuminance, PH in agricultural greenhouse in real time Value and CO2The environmental datas such as concentration are conducive to user according to the type of crops, growth cycle and seasonal variations in agricultural greenhouse Etc. factors comprehensive descision is carried out to a variety of environmental datas of acquisition, to be adjusted to first environment data, so that environment Controlling terminal controls external equipment according to second environment data, realizes the intelligence control comprehensively to crop growth environment System.

In specific embodiment, the environmental Kuznets Curves terminal is the controller corresponding to the external equipment;Wherein, The external equipment includes irrigation equipment, exhaust equipment, roller shutter equipment, the combination of light irradiation apparatus one or more of them.

For using exhaust equipment as external equipment.Environmental Kuznets Curves terminal connects exhaust equipment controller by relay, To control exhaust equipment switch.

Implement the embodiment of the present invention to have the following beneficial effects:

The embodiment of the present invention passes through whole based on OneNET cloud platform management great amount of terminals equipment, including the acquisition of a variety of environment End, a variety of environmental Kuznets Curves terminals are conducive to the comprehensive a variety of environmental datas of user and control external equipment.

Fourth embodiment.Please refer to Fig. 2-3

As shown in figure 3, a kind of apparatus control system based on OneNET cloud platform that fourth embodiment provides, including OneNET cloud platform, gateway, environment acquisition terminal, environmental Kuznets Curves terminal;The OneNET cloud platform is for receiving the gateway The first environment data of transmission, and by the first environment data forwarding to user terminal;The gateway is for receiving the ring The first environment data of border acquisition terminal acquisition;Wherein, the user terminal is used for as needed to the first environment Data are adjusted, and obtain second environment data;Described in the OneNET cloud platform is also used to send out on the user terminal Second environment data are sent to the gateway;The gateway is also used to the second environment data forwarding to the environmental Kuznets Curves Terminal;The environmental Kuznets Curves terminal is for controlling external equipment according to the second environment data.

It is understood that environment acquisition terminal by the way that the first environment data of acquisition are sent to gateway, is incited somebody to action by gateway OneNET cloud platform is sent in first environment data, so that OneNET cloud platform can be by first environment data forwarding to user's end End, and respond user terminal and the adjustment of first environment data is operated.When user terminal returns to second environment data to OneNET When cloud platform, received second environment data are sent to gateway by OneNET cloud platform, by gateway by second environment data forwarding To environmental Kuznets Curves terminal, so that environmental Kuznets Curves terminal can control external equipment according to second environment data.

It should be noted that the user terminal terminal device, including mobile phone, computer, plate etc. are held by user can be with The communication equipment of server connection.

Due to middle mobile open platform of internet of things OneNET cloud platform, exploitation document is perfect in detail, and support HTTP, A variety of access protocols such as EDP, MQTT, RGMP, therefore only need to be according to the specification of OneNET platform by environment acquisition terminal, environmental Kuznets Curves Terminal uploads terminal device information by gateway accessing OneNET cloud platform, and OneNET platform can be established corresponding virtual Equipment realizes the functions such as data transmission, data storage, data management.For example, user passes through cell phone application login user account, with After OneNET cloud platform is communicatively coupled, first environment data can be obtained in real time online, and the second ring of upper hair as needed Border data realize remote administration terminal equipment.

In specific embodiment, the gateway includes communication module, and zigbee coordinator module, is deposited main control module Store up module and power supply module.

In the present embodiment, zigbee coordinator module is communicatively coupled with environment acquisition terminal, i.e. environment acquisition is whole The first environment data of acquisition are sent to zigbee coordinator module by zigbee communication mode by end.Similarly, zigbee Coordinator module is communicatively coupled with environmental Kuznets Curves terminal, i.e., zigbee coordinator module will be connect by zigbee communication mode The second environment data of receipts are sent to environmental Kuznets Curves terminal.

It is understood that using zigbee agreement ad hoc network characteristic, with GPIO mouthfuls of external ends of zigbee coordinator module End equipment can support great amount of terminals equipment to access network.

In specific embodiment, the main control module is STM32F429IGT6, and the communication module is ATK- ESP8266, the memory module are SD card read module.

As shown in Fig. 2, main control module (STM32F429IGT6) is attached by serial ports 2 and zigbee coordinator module, Be attached by serial ports 3 and communication module (ATK-ESP8266), by SDIO mouthfuls with memory module (SD card read module) into Row connection.

It is understood that STM32F429IGT6 by the external zigbee coordinator module of serial ports 2, i.e. environment acquisition is whole It is to pass through 2 He of serial ports by STM32F429IGT6 that end, which sends hair second environment data on first environment data and user terminal, Zigbee coordinator module, which is communicatively coupled, to be completed.

The configuration of STM32F429IGT6 is very powerful, and chip dominant frequency is up to 180Mhz, have 256KB SRAM, 1024FLASH, 12 16 bit timing devices, 2 32 bit timing devices, 2 usb, 140 universal I/O ports, 8 serial ports etc., are entirely capable of Enough meet existing demand and subsequent functions expanding.

High-performance UART-WIFI (serial ports-is wireless) module that ATK-ESP8266 is released as ALIENTEK, onboard ai- The ESP8266 module of thinker company, built-in ICP/IP protocol stack can pass through serial ports and main control module (STM32F429IGT6) Communication, to realize the conversion between serial ports and WIFI.Using ATK-ESP8266, main control module (STM32F429IGT6) is only needed Simple serial ports configuration is carried out, data can be transmitted by network (WIFI).In addition, ATK-ESP8266 supports LVTTL serial ports, Compatible 3.3V and 5V, convenient for being connect with main control module (STM32F429IGT6).

In specific embodiment, the environment acquisition terminal includes Temperature Humidity Sensor, soil temperature sensor, soil Earth water content sensor, illuminance sensor, pH value sensor and CO2The combination of sensor one or more of them.

It is understood that in practical applications, passing through Temperature Humidity Sensor, soil temperature sensor, soil moisture content Sensor, illuminance sensor, pH value sensor and CO2The sensors such as sensor acquire the environmental data of agricultural greenhouse, i.e., the One environmental data, so that user can obtain temperature and humidity, the soil moisture, soil moisture content, illuminance, PH in agricultural greenhouse in real time Value and CO2The environmental datas such as concentration are conducive to user according to the type of crops, growth cycle and seasonal variations in agricultural greenhouse Etc. factors comprehensive descision is carried out to a variety of environmental datas of acquisition, to be adjusted to first environment data, so that environment Controlling terminal controls external equipment according to second environment data, realizes the intelligence control comprehensively to crop growth environment System.

In specific embodiment, the environmental Kuznets Curves terminal is the controller corresponding to the external equipment;Wherein, The external equipment includes irrigation equipment, exhaust equipment, roller shutter equipment, the combination of light irradiation apparatus one or more of them.

For using exhaust equipment as external equipment.Environmental Kuznets Curves terminal connects exhaust equipment controller by relay, To control exhaust equipment switch.

Implement the embodiment of the present invention to have the following beneficial effects:

The embodiment of the present invention is based on middle mobile open platform of internet of things OneNET cloud platform and gateway realize user terminal and The point-to-point communication of environment acquisition terminal, user terminal and environmental Kuznets Curves terminal, so that user can be based on OneNET cloud platform pipe Great amount of terminals equipment is managed, meanwhile, using OneNET cloud platform to the compatibility feature of various protocols, it ensure that great amount of terminals equipment energy It is enough efficiently and stably to transmit data.In addition, the embodiment of the present invention be conducive to the comprehensive a variety of environmental datas of user to external equipment into Row control.

The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

It is that can pass through those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment Computer program is completed to instruct relevant hardware, and the program can be stored in a computer-readable storage medium, The program is when being executed, it may include such as the process of the various embodiments described above.Wherein, the storage medium can for magnetic disk, CD, only Read storage memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) Deng.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种温室环境多因子协调多目标控制方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!