Skip to main content

The improvement of centralized intelligent control architecture and data collection algorithm

Abstract

The commonly used structure of centralized temperature control systems is the bi-layer structure with upper computer directly controlling thermostats. But this kind of structure has obvious drawbacks, such as high cost, inability to scale up, low degree of intelligence, etc.. This paper presents a design scheme of an intelligent three-tier structure, namely thermostats, intelligent logging devices, and upper computer. The upper computer can read data directly from both thermostats and logging devices. This scheme can solve the problems in bi-layer structure well, and it is also suitable for other types of large-scale control system. However, there still exists data loss problem in this scheme when systems reach a great scale. A method of using historical data in the database and linear feature of temperature curves is also proposed in this paper to improve data collection algorithm, which preferably solve this data loss problem. Appropriate products have been developed based on the techniques of this scheme, and have been applied in practical industrial production and experimental teaching.

1 Introduction

1.1 Problem proposition

Temperature control systems are widely used in chemical, food processing, motor painting [1] and tobacco processing industries, most of which adopt bi-layer control structure with intelligent and more complex thermostats at the bottom, as shown in Fig. 1.

Fig. 1
figure 1

Temperature control systems with bi-layer control structure

From the perspective of practical application effects, there are several deficiencies [2] in this control structure: (1) thermostats are required to possess more powerful processing and storage capabilities; (2) upper computer uses sophisticated software and must always be with power on; (3) the number and location of temperature control points are limited; and (4) the price is high but the cost performance is relatively low.

2 Intelligent design scheme

To solve the above problems [3], the author proposes a control system with a three-layer structure, called intelligent centralized temperature control system. This system can solve the above four problems preferably, whose structure is shown in Fig. 2.

Fig. 2
figure 2

Temperature control system with a three-layer structure

2.1 The system constituting

At the bottom are still the most common portable thermostats (also called basal meters), simple hardware components without CPU used as the control equipment of the proportional-integral-derivative (PID) controller. Intelligent centralized temperature control detectors (or intelligent logging devices for short) are located at the middle layer. Intelligent control system is consisted of MS51 series chips, possessing strong processing and storage capabilities. At the top layer [4] stands the upper-computer system.

2.2 System advantages

Thermostats [5] (basal meters) at the bottom can adopt the simplest design and are not required to have powerful processing and storage capabilities, the cost is greatly reduced. At the same time, RS485 communication interface lines is used to improve the transmission distance, the number of temperature control points which can also be flexibly customizable, thus widening geographical scope. The functions such as collecting and storing data can be performed by intelligent centralized temperature control detector, which is a good solution to make up for the deficiency of the bi-layer control structure. The control management function between upper computer and thermostats is also performed by intelligent logging devices, thus more control functions are extended to services, such as providing queries for historical data, comparing historical data with the current data, statistically analyzing reports in many ways and many directions, monitoring the real-time state of thermostats, intelligently adjusting temperature curves, generating and drawing temperature curves, missing data complement tours [6], etc. Good solution to the bi-layer control structure in the second defect. Intelligent data logging devices using intelligent design will be focused on the next section.

3 Intelligent logging devices

Intelligent logging devices [7] play a role in connecting link between the preceding and the following because the basal meters adopt the simplest design with PID controller and thermocouple as the core components, and it can concentrate the scattered thermostat together. This can well solve the problems of expanding control scale, reducing the cost [8], keeping upper computer in working state all the time, or allowing it to stay offline, etc.

3.1 Composition

Intelligent logging device is composed of MS51 series CPU chip, RS485 communication interface, 8 K and 32 K RAM. Each intelligent logging devices [9] can connect up to 80 thermostats, an acquisition cycle using RAM approximately 1.2 KB.

3.2 Function

The functions of the intelligent logging devices are to collect, to store and forward thermostat data, to control the action of thermostat, and to receive the order from upper computer [10] (Table 1).

Table 1 Some protocols and commands

3.3 Intelligent logging devices tested

Test conditions were CPU MS51, RAM 8 M, communication port is with a bit rate of 9800 RS485, and simulation of the thermostat is 16 to 80.

Table 2 shows that the ROM data is essentially the same, the resources needed for the program, RAM use is up to 1.2 K in a collection cycle. Due to 32 KB of RAM, therefore the data can be stored in the case of 30 cycles upper computer offline. An upper computer data acquisition takes 4 s. Assuming moderate precise temperature control system, the acquisition cycle is 2 min, according to the design requirements of this article: to achieve 80 logging devices, each logging devices connected 80 thermostats. Have done a test shown in Table 3. Because the time to transmit a data to upper computer is with a fixed value of 1 s, 80 thermostats need 80 s to upload data logging devices; therefore, each logging devices can only capture 80 thermostats with a 0.5-s time data, that is, for each collecting data logging device, temperature data can only be used 6 ms, but the actual test time is 15 ms. The phenomenon of data loss occurs. In another paper of this issue, “intelligent control system based on centralized upper computer data acquisition algorithm” was discussed in detail. To this end, a third experiment was made to find an optimal system design size. Most of the final products are based on the data in Table 4.

Table 2 Test data
Table 3 Test data
Table 4 Test data

Table 5 shows the test data comparison of the non-centralized structure of the system and centralized architecture system; at the same time, the data collection and the transmission of data points with the host computer, the data logging devices acquisition cycle is 300 ms, and the obviously centralized structure of the system acquisition cycle is short, easy for system expansion.

Table 5 Test data comparison

Decentralized architecture with a strong thermostat system control functions are programmable, and having a CPU processing power and storage capacity. Table 6 is the same size of the temperature control system in accordance with the moderately priced under market conditions, the price comparison of the two control schemes.

Table 6 Price comparison (US dollar)

4 Upper computer software

The intelligent logging device is required to be connected to upper computer, and its parameters are set through the upper computer programs. The main content of upper computer programs includes the following:

  1. 1.

    System initialization

    To set the number of logging devices, the number of basal meters connected to each logging device, and the location of each meter.

  2. 2.

    Initialization of basal meter function

    Serial port setting, clock correction, determination of the number and address of basal meters, meter curve setting, intervals (or cycle) of meters collecting data, and intervals (or cycle) of upper computer collecting data from logging devices.

  3. 3.

    Inspection function

    To read out or repeatedly read out the current data from the specified basal meter; to clean up the data of logging devices; and to read out data from logging devices in real time.

  4. 4.

    Curve plotting

    To plot the current temperature inspection data curve graph of some specified meter or several meters.

  5. 5.

    Historical data inquiry and historical curve plotting

    To store the inspection data in database as historical data allowing managerial staff to inquire or draw curves according to requirements.

  6. 6.

    Warning function

  7. 7.

    Report printing

  8. 8.

    Real-time communication between logging device and basal meters (Fig. 3)

    Fig. 3
    figure 3

    Flowchart

  9. 9.

    Shift of basal meters

    The shift of basal meters refers to the shift of meters from one logging device to another. Thus, system is required to perform shift operation, delete the basal meter information from the original logging device, and add the meter information to the new device.

5 Experiments

After completion of the study design of the entire system, two laboratories, Wuhan University of Textile Industry and Wuhan University of Light Industry, both use the system for more than 2 years. They believe that the basic design requirements met their needs. Figure 4 shows centralized three-tier structure of the temperature control system. Figure 5 shows interface screenshots of the major upper software during field trials.

Fig. 4
figure 4

System consisting of three intelligent logging devices

Fig. 5
figure 5

Several major upper computer software interface screenshots of field experiments. a Set curve data of thermostat. b Reserving technology curve. c Monitoring the state of implementation of the thermostat. d Output test report

6 Contrast

Using a centralized control system whose system performance, scalability, and cost price is significantly better than the non-centralized. The comparison between the specific descriptions is shown in Table 7.

Table 7 Performance, price, cost, and scalability

7 Data collection algorithm improve

The intelligent centralized temperature control system hardware structure is shown in Fig. 2.

The topmost is called upper computer which is the heart of the system and where all the inputs and outputs are performed. At the middle layer are the logging devices which can distribute temperature curves, collect data from basal meters, and control meters. There can be at most 80 logging devices connected at this layer. At the bottom are the basal meters (or thermostat) which perform such functions as raising temperature, reducing temperature, keeping constant temperature, communicating with logging device and warning, etc. For each logging device, there can be at most 80 thermostats connected at this layer.

The merits of this structure are as follows:

  1. (1)

    The scale of the system can be expanded flexibly

  2. (2)

    Upper computer can be shut and then the real-time data of basal meters can be stored in the logging devices

  3. (3)

    The design complexity of basal meters can be greatly simplified, reducing the system costs considerably

In theory, the value of temperature control points connected to intelligent centralized temperature control system is 80 × 80, which means the upper bound of logging devices in the system is 80 and that of thermostats is also 80; thus, the upper limit of the number of thermostats in the system is 6400. Logging devices collect data every 1 ms, 10 ms, 100 ms, and 1 s, and then, the upper limit values of collecting cycle are 6.4, 64, 640, and 6400 s, respectively (Table 8). In the case of temperature control accuracy is not very high, most devices collect data every 100 ms and 1 s; the upper limit value of collecting cycle being 11 and 110 min. In the actual industry, however, temperature during this period must have been changed; thus, the collected data will not be continuous, the plotted temperature curve will be on and off. This means that there are possibilities that data is lost when upper computer collects data according to the theoretical maximum of temperature control points:

Table 8 Data acquisition cycle (with the thermostat 6400)
  1. 1.

    The logging device sends wrong data due to environmental interferences and the upper computer loses this data

  2. 2.

    Because of too many temperature control points, the upper computer just misses them in acquisition cycles and data which logging devices have collected on the period covered by the new data, the original data cannot be read and loss, severely creating a vicious circle. The upper computer does not read out data, resulting in data loss

The author proposes data sampling compensation algorithm in order to use computational methods to make up the lost data on acquisition points, keeping data integrity when system draws temperature curves in real time, and at the same time, adding this data into database to preserve the integrity of experiment data.

7.1 Design philosophy

If thermostats are to be read every 1 min, the upper limit value of acquisition is 11 min, which means every thermostat loses 10 data. We can acquire these 10 data by computation through the following formula. To simplify the computation, we fetch the upper or lower limit of the interval (60, 6400) as the number of thermostats described in the algorithm, i.e., 60 or 6400.

Linear equation method: let x be time and y be temperature value of thermostats, then the linear equation of any segment of temperature curve is:

$$ Y=\left({y}_2\hbox{-} {y}_1\right)/\left({x}_2\hbox{-} {x}_1\right)*X+\left({y}_1*{x}_2\hbox{-} {y}_2*{x}_1\right)/\left({x}_2\hbox{-} {x}_1\right) $$
(1)

where x 1 and x 2 are the beginning and ending time of some section of the curve; y 1 and y 2 are the temperature value at the beginning and ending of the curve section.

Historical data reference: let U ji be lost temperature value and V ji be the temperature value of the same basal meter i and the same logging device j at the same moment during the same temperature control period of the same prescribed temperature curve in the database; ∑V ji (t = 1……n) is the sum of n historical data; Y ji is the value of the same meter computed according to the prescribed temperature curve value, that is, formula (1), then U ji is formula (2) or (3).

$$ {U}_{ji}=\mathrm{M}\mathrm{i}\mathrm{n}\left\{\left({Y}_{ji}\hbox{-} {V}_{ji}\right){\;_1}^2,\ \left({Y}_{ji}\hbox{-} {V}_{ji}\right){\;_2}^2,\ \left({Y}_{ji}\hbox{-} {V}_{ji}\right){\;_3}^2\dots \dots \left({Y}_{ji}\hbox{-} {V}_{ji}\right){\;_{n\hbox{-} 1}}^2,\ \left({Y}_{ji}\hbox{-} {V}_{ji}\right){\;_{\;n}}^2\right\} $$
(2)
$$ {U}_{ji}={\displaystyle \sum {V}_{ji}/n} $$
(3)

Simplified system workflow Fig. 6.

Fig. 6
figure 6

The work flow

7.2 Algorithm design

(1) Description of algorithm STEDAFA (Statistics Temperature Data Fitting Algorithm)

The data fitting algorithm for temperature control data acquisition is described with pseudo-C language as follows, where 60 ≤ ThermostatNum ≤ 6400 for the thermostat number, 1 ≤ j ≤ 80 for the logging device number, 1 ≤ i ≤ 80 for the number on the thermostat logging devices connected, U is calculated compensation value, vector V ji [n] for the same point, the same process temperature curve in, earlier time different values of n.

(2) Temperature data collecting algorithm

Within the prescribed sampling period, logging devices may without send data or send wrong data; temperature data collecting algorithm means that upper computer reads out the real-time temperature values may not right. In the paper, we proposed temperature data collecting algorithm. The algorithm can resolve the defect of missing data and wrong data. The algorithm is called TDCA(int j, int i). Its work flow can be seen in Fig. 7, and its pseudo-C language code is described as follow. The variables ThermostatNum, j, and i meaning the same with STEDAFA (ThermostatNum, j, i). U is the collected or calculated compensation value, m is the number of losing data and num is the loop control variable.

Fig. 7
figure 7

Upper computer acquisition process

7.3 Contrast

(1) Performance contrasting

According to the proposed algorithm, the hardware and software designs are completed, and a centralized control system is realized. The system has been used by many university laboratories and a number of enterprises recently. The users who offered statistical results are reflected in Table 9.

Table 9 Performance contrasting

(2) Curve contrasting

An experimental comparison of the technology curve is displayed in Fig. 4. The experimental conditions, which are a simulation environment, are shown in Table 10. Data can be collected by upper computer read from logging devices once per minute. There are 10 logging devices. Each logging devices connected to 80 thermostats.

Table 10 The simulation environment

After several tests, the ideal technology curve, missing data technology curve, and after using the algorithm (shown in Fig. 4) technology curves are shown in Fig. 8. In this test, t0 to t8 are time 0 to 120 min. The temperatures are 20 to 60 °C. Obviously, after the adoption of this algorithm to compensate for the lost data, the curve seemed to be more complete in this process.

Fig. 8
figure 8

Contrast of technology curve. a Ideal technology curve. b Missing data technology curve. c After using the algorithm technology curve

(3) Price contrasting

In order to correctly compare different scale systems, the sizes of the assumed temperature control system are 160, 640, 1280, and 2560 units; according to the market price of modest hardware equipment, the system using data fitting algorithm and system without using data fitting algorithm, these results are recorded in Table 11.

Table 11 Price contrasting (ten thousand US dollar)

7.4 Software screenshot

The upper computer software has been completed, temperature control, for example, and is currently being controlled on-site corporate and university laboratories test run, looking forward to the follow-up gradually improved (Fig. 9).

Fig. 9
figure 9

Test shots. a Set curve data the thermostat. b Real-time status of the thermostat. c Real-time Technology curve graph. d Output test report

8 Conclusions

Temperature control system structure used mostly for the upper computer is connected directly to the control thermostat decentralized bi-slayer structure, which has obvious flaws, such as high cost, not to scale and low intelligence. This article proposes a design scheme of intelligent three-layer structure including thermostats, intelligent logging devices, and upper computer; it can be called centralized control systems. Upper computer can read out data not only directly from thermostats, but also from intelligent logging devices. This scheme solves the problems in the application of bi-layer structure preferably, and it is also suitable for larger scale control systems of other kinds. Based on it, the corresponding products have been developed and applied in practical industrial manufacture and experiment teaching. There are still some imperfections in this scheme, for example, the logging intelligent devices may lose the collected data.

There also exists data loss during data gathering of upper computer in this scheme when systems reach a great scale. In this article, the author proposes an algorithm making use of the historical data in DB and the linear characteristics of temperature curves to improve data collection, preferably solving the problem of data loss. For this algorithm, we have applied for the country patent of invention and have already succeeded in applying it to the products of centralized temperature control system.

References

  1. M Ondrovicova, M Bakosova, PID controllers of industry system semantic[C]. 7th International Scientific Technical Conference—process control 2006 (Kouty nad Desnou, Czech Republic, 2006)

    Google Scholar 

  2. Gibler J, Schmid M, Vom Prozeb zur Regelung. Analyze Realisierung in der Praxis. Siemens AG[M]. 2008, ISBN 3-8009-1551-0.

  3. S Jaszczak, J Kołodziejczyk, A method of fast application of the fuzzy PID algorithm using industrial control device[M] (Springer, Berlin Heidelberg, 2011). ISBN 978-3-642-29346-7

    Google Scholar 

  4. G Zaidner, S Korotkin, Non linear PID and its application in process control[C]. 2010 IEEE 26th Convention of IEEE Electrical and Electronics Engineers in Israel (IEEEI), 2010:000574-000577 (IEEE press, Eliat)

  5. J Han, From PID to active disturbance rejection control[J]. IEEE Transaction on Industrial Electronics 56 (no.3), 432–438 (2009)

    Article  Google Scholar 

  6. S Zhi-gang, Q-x Yu, A design of hyperbola and parabola drawing apparatus[J]. Mechanical Design and Manufacturing 4, 11–13 (2003)

    Google Scholar 

  7. Y Zheng-rui, X Ke-xin, Identification of temperature and humidity control systems based on neural system [J]. Transactions of China Electrotechnical Society, 2004(10)

  8. Y Qi-wei, C Yi. The comparison of common methods of controlling temperature[J]. Ordnance Industry Automation, 2005(6):86-88

  9. X-J Liu, CW Chan, Neuro-Fuzzy Generalized Predictive Control of Boiler Steam Temperature[J]. IEEE Transactions on Energy Conversion 21(4), 900–908 (2006)

  10. Y Ge, C Wang, H Wang, et al. Research on scanning motor digital control system based on single neuron self-adaptive PID[C]// Computer Science and Information Technology (ICCSIT), 2010 3rd IEEE International Conference on. IEEE, Cheng du, China, 2010:134-138

Download references

Acknowledgements

We have benefited a lot from Professor Liao Bin’s guidance. We very much appreciate the comments made by Professor Wang from Wuhan Textile University. Fund subsidized: The Hubei Technology Support Program No. 2014BAA089. This study has applied for People’s Republic of China’s national invention patents, patent application number is 201310037466.4.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yue-xin Li.

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Li, Yx., Ming, Z. & Chunjie, S. The improvement of centralized intelligent control architecture and data collection algorithm. J Wireless Com Network 2016, 16 (2016). https://doi.org/10.1186/s13638-015-0504-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13638-015-0504-1

Keywords