CN108243071A - A kind of data transmission real-time performance testing method of automatic irrigating control system - Google Patents

A kind of data transmission real-time performance testing method of automatic irrigating control system Download PDF

Info

Publication number
CN108243071A
CN108243071A CN201611211415.9A CN201611211415A CN108243071A CN 108243071 A CN108243071 A CN 108243071A CN 201611211415 A CN201611211415 A CN 201611211415A CN 108243071 A CN108243071 A CN 108243071A
Authority
CN
China
Prior art keywords
data
delay
client
time
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611211415.9A
Other languages
Chinese (zh)
Inventor
马廷彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Paiteng Agricultural Technology Co Ltd
Original Assignee
Harbin Paiteng Agricultural Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Paiteng Agricultural Technology Co Ltd filed Critical Harbin Paiteng Agricultural Technology Co Ltd
Priority to CN201611211415.9A priority Critical patent/CN108243071A/en
Publication of CN108243071A publication Critical patent/CN108243071A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of data transmission real-time performance testing methods of automatic irrigating control system, the described method comprises the following steps:The first step, test design formulate system delay testing scheme, to obtain time-consuming data of the data in entire transmission process for different data transmission procedures;Second step, the performance test results and analysis.The data transmission real-time performance testing method of the automatic irrigating control system of the present invention, greatly improved system real time energy, and implementing accurate irrigation control for system provides guarantee.

Description

A kind of data transmission real-time performance testing method of automatic irrigating control system
Technical field
The present invention relates to a kind of data transmission real-time performance testing methods of automatic irrigating control system, belong to agriculture interconnection Network technology field.
Background technology
One of typical case as Internet technology, automatic irrigating control system are not only industrialized agriculture irrigation and city Great lot of water resources has been saved in the fields such as green area irrigation, also to carry out personalized irrigation and use according to the water-requiring property of crop and flowers and trees The metering of crystal's quasi- provides the foundation;Automatic irrigating control system is made of two parts of hardware and software, and hardware components include filling Controller, solenoid valve and sensor are irrigate, software installation runs on industrial personal computer _ fore-telling and is connected with hardware components, is human-computer interaction population And control centre, according to monitoring data and model progress is irrigated automatically with automatic irrigation control;Automatic irrigation mode mainly has Two kinds:One kind is to establish periodic irrigation scheme, is timed irrigation;Another kind is with monitoring soil moisture data and meteorology Data are input, and irrigation time and irrigation quantity are calculated by irrigation decision model, realize and irrigate on demand.Real-time for filling automatically Irrigate that control system is most important, the real-time of sensor data acquisition also determines the timeliness of irrigation decision, meanwhile, irrigate control System instruction must also be transferred to solenoid valve in real time, ensure the accurate control of irrigation quantity;Network environment and system architecture are to influence The principal element of real-time, usually under certain engineering specifications, what network transfer speeds were to determine, system architecture is to reality at this time When property plays decisive role;Current irrigation control software systems are mainly based upon client/server (C/S) mechanical development Multipad, communication efficiency is very high between client software and database, and network structure is simple, therefore system is real-time Performance accesses effective guarantee;But it since C/S structure programs must run on specific hardware and software platform, can not realize more The covering of kind equipment platform, the scope of application is very limited, and is developed in most cases not for platform is possible to It is feasible;In addition, C/S structure program upgrade maintenance costs are higher, while it is difficult to realize multiple project centralized management.
Invention content
To solve the above problems, the present invention proposes a kind of data transmission real-time performance testing of automatic irrigating control system System real time energy greatly improved in method, and implementing accurate irrigation control for system provides guarantee.
The data transmission real-time performance testing method of the automatic irrigating control system of the present invention, the method includes following steps Suddenly:
The first step, test design formulate system delay testing scheme, to obtain data whole for different data transmission procedures Time-consuming data in a transmission process;Under LAN environment, tested by browser access system, data acquisition Without human intervention, system obtains latest data and updates interface display automatically, and control process needs manually pass through client journey Sequence performs equipment control operation;Data pull pattern is respectively adopted 0.25,1.00, the interval that pulls of 10.00s tested, The data pull operation of extremely high frequency, high-frequency and normal frequency is represented respectively;Before test, to hardware device in system and software The system clock of platform synchronizes, and then carries out 10 acquisitions to the pull mode of data push mode and different interval respectively It is tested with control, and using the data transmission average delay of each node of following proposal computational software system;
A. the gathered data transmission delay from sensor to client-side program is measured using following scheme:Controller is certain In time range, sensing data reading is carried out, and data value and data acquisition time are sent to data using random fashion Library records the time for receiving and updating the data in database, Web server and client-side program respectively, with data acquisition time Subtract each other to obtain the delay that data reach each section;
B. the delay for controlling data transmission is measured using following scheme:It performs and opens or closes in client-side program Valve operation, and record operating time, after data are sent to solenoid valve, solenoid valve open and-shut mode changes, and again will later Newer status data returns to client-side program, records data in control instruction transmission process and control result return course Library, Web server and client-side program receive the time updated the data, and the time with being operated in user interface subtracts each other, and is controlled Data and returned data processed reach the delay of each section;
Second step, the performance test results and analysis, in data acquisition, pull mode slave device sends out data to client The total delay for receiving one-way transmission is 1676 ms, and hardware data is sent to database and taken by wherein data communication module 1552ms accounts for 92.6% to be always delayed, is taken essentially from SMS message transmission;It is averagely time-consuming etc. from database to client-side program In reach client with reach database average delay difference be 124ms;It is taken essentially from calculating with network transmission, this The result shows that by the design and realization of data-pushing, the delay in software systems is greatly cut down;It is drawn using data Modulus formula reaches delay 124ms, and data pull interval will at least reach 248ms, the access with the test of 0.25s intervals pull mode Frequency approaches, and pull mode is led the average of client from database and taken as 228ms at this time, more than the delay of push mode, and It needs to perform 4 data queries in system 1s, in the case where multi-client accesses, operation system will bear huge access pressure Power influences the stable operation of system;When the interval that pulls of pull mode increases to 1s and 10s, total delay reaches 2231ms and 6 641ms reaches the average of client-side program from database at this time and takes as 588ms and 5079ms, it can be seen that is delayed with drawing Interval is taken to extend, average delay greatly increases or even remote communication delay between super hardware system and software systems;
During control, push mode sends out operational order to being always delayed for return operating result is received from client and is 3378ms, unidirectional average out to be always delayed 1/2, i.e. overall transmission time in 1689ms, wherein data communication module is tied in order to control It is 3260-127=3133ms that fruit, which reaches database and the difference of control instruction arrival database delay, accounts for 92.7% to be always delayed, controls Delay of the director data processed from client-side program to database is 127ms;Device status data is from database to client-side program Average take be equal to that reach client and reach the average delay difference of database be 3378-3260=118ms, as a result similary table Delay in bright software systems is already close to the limit calculated with network delay, and data-pushing mechanism is for improving real-time performance Significant effect;In pull mode, 0.25,1.00,10.00s pulls the lower control instruction in interval and is sent to database from client Delay respectively 138,122,120s, approach with the 127s under push mode, this is because in different access modules, control The request/response process for instructing transmission process all identical, and it is unrelated with pulling interval;But in control result return course, 0.25th, 1.00,10.00s pull average from database to client-side program of the lower device status data in interval take reach 256, 749th, 4918ms is delayed with interval increase is pulled and increases, similar with data acquisition.
Further, in the performance test results of the second step and analysis under push mode equipment and client-side program it Between one-way data transfer average delay all within 2s, disclosure satisfy that substantially automatic irrigation control demand;And pull mode There is the contradiction between real-time and server access pressure, to improve real-time will necessarily be multiplied service tolerance, together When more bandwidth and floating resources is brought to consume;Result above is under LAN environment obtained by test, is interconnected when passing through When net or 4G wireless network access systems, being influenced system delay by connection speed may increase, and usually delay is at 102ms grades Not, system real time is influenced little.
The present invention compared with prior art, the data transmission real-time performance testing of automatic irrigating control system of the invention Method solves to inscribe between data transmission real-time in the automatic irrigating control system based on Web, passes through the data in software systems Observer Pattern is designed and Implemented in transmission process, real time data push-mechanism is formed, is not bringing more bandwidth and calculating Under the premise of resource consumption, the delay of data acquisition and control process average is 1676ms and 3378ms, number wherein in software systems It is only 124ms and 118ms according to the data transmission average delay in library to client, system real time energy greatly improved, is system Implement accurate irrigation control and provide guarantee.
Specific embodiment
The data transmission real-time performance testing method of the automatic irrigating control system of the present invention, the method includes following steps Suddenly:
The first step, test design formulate system delay testing scheme, to obtain data whole for different data transmission procedures Time-consuming data in a transmission process;Under LAN environment, tested by browser access system, data acquisition Without human intervention, system obtains latest data and updates interface display automatically, and control process needs manually pass through client journey Sequence performs equipment control operation;Data pull pattern is respectively adopted 0.25,1.00, the interval that pulls of 10.00s tested, The data pull operation of extremely high frequency, high-frequency and normal frequency is represented respectively;Before test, to hardware device in system and software The system clock of platform synchronizes, and then carries out 10 acquisitions to the pull mode of data push mode and different interval respectively It is tested with control, and using the data transmission average delay of each node of following proposal computational software system;
A. the gathered data transmission delay from sensor to client-side program is measured using following scheme:Controller is certain In time range, sensing data reading is carried out, and data value and data acquisition time are sent to data using random fashion Library records the time for receiving and updating the data in database, Web server and client-side program respectively, with data acquisition time Subtract each other to obtain the delay that data reach each section;
B. the delay for controlling data transmission is measured using following scheme:It performs and opens or closes in client-side program Valve operation, and record operating time, after data are sent to solenoid valve, solenoid valve open and-shut mode changes, and again will later Newer status data returns to client-side program, records data in control instruction transmission process and control result return course Library, Web server and client-side program receive the time updated the data, and the time with being operated in user interface subtracts each other, and is controlled Data and returned data processed reach the delay of each section;
Second step, the performance test results and analysis, in data acquisition, pull mode slave device sends out data to client The total delay for receiving one-way transmission is 1676 ms, and hardware data is sent to database and taken by wherein data communication module 1552ms accounts for 92.6% to be always delayed, is taken essentially from SMS message transmission;It is averagely time-consuming etc. from database to client-side program In reach client with reach database average delay difference be 124ms;It is taken essentially from calculating with network transmission, this The result shows that by the design and realization of data-pushing, the delay in software systems is greatly cut down;It is drawn using data Modulus formula reaches delay 124ms, and data pull interval will at least reach 248ms, the access with the test of 0.25s intervals pull mode Frequency approaches, and pull mode is led the average of client from database and taken as 228ms at this time, more than the delay of push mode, and It needs to perform 4 data queries in system 1s, in the case where multi-client accesses, operation system will bear huge access pressure Power influences the stable operation of system;When the interval that pulls of pull mode increases to 1s and 10s, total delay reaches 2231ms and 6 641ms reaches the average of client-side program from database at this time and takes as 588ms and 5079ms, it can be seen that is delayed with drawing Interval is taken to extend, average delay greatly increases or even remote communication delay between super hardware system and software systems;
During control, push mode sends out operational order to being always delayed for return operating result is received from client and is 3378ms, unidirectional average out to be always delayed 1/2, i.e. overall transmission time in 1689ms, wherein data communication module is tied in order to control It is 3260-127=3133ms that fruit, which reaches database and the difference of control instruction arrival database delay, accounts for 92.7% to be always delayed, controls Delay of the director data processed from client-side program to database is 127ms;Device status data is from database to client-side program Average take be equal to that reach client and reach the average delay difference of database be 3378-3260=118ms, as a result similary table Delay in bright software systems is already close to the limit calculated with network delay, and data-pushing mechanism is for improving real-time performance Significant effect;In pull mode, 0.25,1.00,10.00s pulls the lower control instruction in interval and is sent to database from client Delay respectively 138,122,120s, approach with the 127s under push mode, this is because in different access modules, control The request/response process for instructing transmission process all identical, and it is unrelated with pulling interval;But in control result return course, 0.25th, 1.00,10.00s pull average from database to client-side program of the lower device status data in interval take reach 256, 749th, 4918ms is delayed with interval increase is pulled and increases, similar with data acquisition.
Wherein, in the performance test results of the second step and analysis under push mode between equipment and client-side program One-way data transfer average delay disclosure satisfy that the demand of automatic irrigation control substantially all within 2s;And pull mode exists The contradiction between real-time and server access pressure, to improve real-time will necessarily be multiplied service tolerance, while band Come more bandwidth and floating resources consumption;Result above is under LAN environment obtained by test, when by internet or During 4G wireless network access systems, being influenced system delay by connection speed may increase, and usually delay is right in 102ms ranks System real time influences little.
Above-described embodiment is only the better embodiment of the present invention, therefore all structures described according to present patent application range It makes, the equivalent change or modification that feature and principle are done, is included in the range of present patent application.

Claims (2)

1. a kind of data transmission real-time performance testing method of automatic irrigating control system, which is characterized in that the method includes Following steps:
The first step, test design formulate system delay testing scheme, to obtain data whole for different data transmission procedures Time-consuming data in a transmission process;Under LAN environment, tested by browser access system, data acquisition Without human intervention, system obtains latest data and updates interface display automatically, and control process needs manually pass through client journey Sequence performs equipment control operation;Data pull pattern is respectively adopted 0.25,1.00, the interval that pulls of 10.00s tested, The data pull operation of extremely high frequency, high-frequency and normal frequency is represented respectively;Before test, to hardware device in system and software The system clock of platform synchronizes, and then carries out 10 acquisitions to the pull mode of data push mode and different interval respectively It is tested with control, and using the data transmission average delay of each node of following proposal computational software system;
A. the gathered data transmission delay from sensor to client-side program is measured using following scheme:Controller is certain In time range, sensing data reading is carried out, and data value and data acquisition time are sent to data using random fashion Library records the time for receiving and updating the data in database, Web server and client-side program respectively, with data acquisition time Subtract each other to obtain the delay that data reach each section;
B. the delay for controlling data transmission is measured using following scheme:It performs and opens or closes in client-side program Valve operation, and record operating time, after data are sent to solenoid valve, solenoid valve open and-shut mode changes, and again will later Newer status data returns to client-side program, records data in control instruction transmission process and control result return course Library, Web server and client-side program receive the time updated the data, and the time with being operated in user interface subtracts each other, and is controlled Data and returned data processed reach the delay of each section;
Second step, the performance test results and analysis, in data acquisition, pull mode slave device sends out data to client The total delay for receiving one-way transmission is 1676 ms, and hardware data is sent to database and taken by wherein data communication module 1552ms accounts for 92.6% to be always delayed, is taken essentially from SMS message transmission;It is averagely time-consuming etc. from database to client-side program In reach client with reach database average delay difference be 124ms;It is taken essentially from calculating with network transmission, this The result shows that by the design and realization of data-pushing, the delay in software systems is greatly cut down;It is drawn using data Modulus formula reaches delay 124ms, and data pull interval will at least reach 248ms, the access with the test of 0.25s intervals pull mode Frequency approaches, and pull mode is led the average of client from database and taken as 228ms at this time, more than the delay of push mode, and It needs to perform 4 data queries in system 1s, in the case where multi-client accesses, operation system will bear huge access pressure Power influences the stable operation of system;When the interval that pulls of pull mode increases to 1s and 10s, total delay reaches 2231ms and 6 641ms reaches the average of client-side program from database at this time and takes as 588ms and 5079ms, it can be seen that is delayed with drawing Interval is taken to extend, average delay greatly increases or even remote communication delay between super hardware system and software systems;
During control, push mode sends out operational order to being always delayed for return operating result is received from client and is 3378ms, unidirectional average out to be always delayed 1/2, i.e. overall transmission time in 1689ms, wherein data communication module is tied in order to control It is 3260-127=3133ms that fruit, which reaches database and the difference of control instruction arrival database delay, accounts for 92.7% to be always delayed, controls Delay of the director data processed from client-side program to database is 127ms;Device status data is from database to client-side program Average take be equal to that reach client and reach the average delay difference of database be 3378-3260=118ms, as a result similary table Delay in bright software systems is already close to the limit calculated with network delay, and data-pushing mechanism is for improving real-time performance Significant effect;In pull mode, 0.25,1.00,10.00s pulls the lower control instruction in interval and is sent to database from client Delay respectively 138,122,120s, approach with the 127s under push mode, this is because in different access modules, control The request/response process for instructing transmission process all identical, and it is unrelated with pulling interval;But in control result return course, 0.25th, 1.00,10.00s pull average from database to client-side program of the lower device status data in interval take reach 256, 749th, 4918ms is delayed with interval increase is pulled and increases, similar with data acquisition.
2. the data transmission real-time performance testing method of automatic irrigating control system according to claim 1, feature exist In the one-way data in the performance test results of the second step and analysis under push mode between equipment and client-side program passes Defeated average delay is all within 2s;When by internet or 4G wireless network access systems, usually delay is in 102ms ranks.
CN201611211415.9A 2016-12-24 2016-12-24 A kind of data transmission real-time performance testing method of automatic irrigating control system Pending CN108243071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611211415.9A CN108243071A (en) 2016-12-24 2016-12-24 A kind of data transmission real-time performance testing method of automatic irrigating control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611211415.9A CN108243071A (en) 2016-12-24 2016-12-24 A kind of data transmission real-time performance testing method of automatic irrigating control system

Publications (1)

Publication Number Publication Date
CN108243071A true CN108243071A (en) 2018-07-03

Family

ID=62703876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611211415.9A Pending CN108243071A (en) 2016-12-24 2016-12-24 A kind of data transmission real-time performance testing method of automatic irrigating control system

Country Status (1)

Country Link
CN (1) CN108243071A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830331A (en) * 2019-12-06 2020-02-21 中国交通建设股份有限公司 Physical model test process data transmission system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830331A (en) * 2019-12-06 2020-02-21 中国交通建设股份有限公司 Physical model test process data transmission system and method
CN110830331B (en) * 2019-12-06 2024-03-15 中国交通建设股份有限公司 Physical model test process data transmission system and method

Similar Documents

Publication Publication Date Title
CN109673232A (en) A kind of wisdom trickle irrigation cloud service management system based on micro services framework
Dobrescu et al. Context-aware control and monitoring system with IoT and cloud support
CN105830870B (en) A kind of long distance wireless farmland monitoring system and method
CN203241793U (en) Agriculture production monitoring and management system based on internet of things
CN110214506A (en) Liquid manure management-control method and system
CN104904570A (en) Wireless sensor network based water-saving litchi orchard irrigation control system and method
Selmani et al. Agricultural cyber-physical system enabled for remote management of solar-powered precision irrigation
CN110036881A (en) A kind of wisdom agricultural irrigation systems and its control method
CN102132646A (en) Remote control-based intelligent fertilizer applying system
CN106613790A (en) Automatic irrigation control system based on cloud platform and smartphone
CN115530054A (en) Irrigation control method and device, electronic equipment and storage medium
Feng et al. Development of IoT cloud platform based intelligent raising system for rice seedlings
CN113191914A (en) Digital twin body construction system for precise monitoring of sunlight greenhouse
CN108919831A (en) A method of can be realized in a browser simulation unmanned plane during flying scene in real time
Barkunan et al. Automatic irrigation system with rain fall detection in agricultural field
CN115685799A (en) Digital twin remote control method and platform for ecological irrigation area informatization
CN110579961B (en) Three-dimensional planting-oriented garden intelligent water supply method and system
CN107844149A (en) A kind of greenhouse intelligent detecting system based on Internet of Things
CN108243071A (en) A kind of data transmission real-time performance testing method of automatic irrigating control system
Li et al. AIoT platform design based on front and rear end separation architecture for smart agricultural
CN106502856A (en) A kind of information processing method and device
CN108064671A (en) A kind of mountainous region citrus orchard irrigation system and method
CN107018207A (en) A kind of greenhouse cloud control system and its control method
CN106688826A (en) Method and system for crop quantitative irrigation control on basis of Internet of Things
Zhang Application of Internet of Things technology in agricultural production

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180703

WD01 Invention patent application deemed withdrawn after publication