Research Article | Open Access

Le Wang, Haipeng Pan, Jinfeng Gao, Dongdong Chen, "Predictive Compensation for Wireless Networked System with Time Delay and Packet Dropout Based on T-S Model", *Abstract and Applied Analysis*, vol. 2014, Article ID 953039, 8 pages, 2014. https://doi.org/10.1155/2014/953039

# Predictive Compensation for Wireless Networked System with Time Delay and Packet Dropout Based on T-S Model

**Academic Editor:**Zhitao Liu

#### Abstract

Based on the T-S model, a predictive compensation scheme including timer and counter for wireless networked system with long time delay and data packet dropout is proposed in this paper. By the separation principle, the state observation predictor and the state feedback controller are designed separately. For the case of fixed delay, the stability of the closed-loop networked control systems is discussed. Simulation by inverted pendulum system illustrates the effectiveness of the proposed method in wireless networked system based on T-S model.

#### 1. Introduction

It has always been hot research on how to reduce the network-induced delays, packet dropouts, and other factors that affect the stability of the networked control systems and wireless sensor networks [1–3]. From the perspective of communication, [4] proposes an enhanced routing protocol on ad hoc on-demand distance vector with load balance and delay restriction, which can shorten the end-to-end delay and reduce the packet dropout. A new dynamic routing control strategy for wireless networks is proposed to monitor the inclination of multiple cranes in [5], which can reduce the measurement packet dropout. The issue of analysis and grey modeling for the time delay of star topology wireless networked control systems is researched in [6]. From the perspective of control theory, the state feedback controller, the state observer, and the observer-based output feedback controller are, respectively, derived for linear time-varying system in [7] to guarantee the asymptotic stability of the closed-loop system. In [8], the sufficient condition of the asymptotic stability for the singular pulse system is derived according to Lyapunov function theory, and the design method of the quantized feedback controller is presented. Networked control with reset quantized state has been, respectively, studied in [9, 10], where the former is observer-based, while the latter is based on Bernoulli processing. Moreover, in [11], output feedback stabilization has been analyzed for Markov-based nonuniformly sampled-data networked control systems. And in [12], mixed time delays in stochastic Markovian jump neural networks have been explored in depth. Similarly, in [13] the problem of sampled-data synchronization for Markovian jump neural networks with time-varying delay and variable samplings is considered. In [14], a simplified model predictive control algorithm is designed for discrete-time Markov jump systems with mixed uncertainties. Although there are a lot of literatures for the networked linear systems, nonlinear systems, continuous systems, discrete systems, time-varying systems, time-invariant systems, or any combination of the several systems described above [15–17], which have made some achievements, time delay and packet dropout rate are rarely real-time computed while designing the controller and compensator. Therefore, referring to the model of [18] and design scheme in [19], this paper proposes a method with timers and counters which can not only calculate time delay and packet dropout rate in real time but also give the effective predictive compensation.

#### 2. Problem Formulation

The framework of the system over a network medium researched in this paper is shown in Figure 1. The sensor, the controller, and the actuator reside in physically different nodes communicating over shared communication networks. Due to the limited network bandwidth, unavoidable network congestion as well as network interruption, network transmission delay, and packet dropout during information exchange between different components appear.

For convenience, some general assumptions are given as follows.(1)The node of sensor is time-driven, and the sampling period denoted by is fixed; the controller and the actuator are event-driven and execute the appropriate action, respectively, when data packets arrive [20].(2)There is no time delay or packet dropout during a sampling period. And assume that the data are lost if the transmission time exceeds the maximum transmission delay, which is set as .(3)The time delay and packet dropout between the sensor and the controller are marked as , while between the sensor and the controller they are marked as , including computation delay in each module.(4)The output data from the sensor and the controller have a time stamp and are transmitted with a single packet without wrong order.

Consider a plant described in the following state-space form: where , , and are the state vector, control input, and output vector, respectively. , , , and are matrices with appropriate dimensions.

According to [18, 21], system (1) mentioned above can be described by the IF-THEN fuzzy rule as follows.

*Rule *. Consider
where , is the number of IF-THEN rules, are the premise variables, are fuzzy sets, and are matrices with appropriate dimensions.

By using the fuzzy inference method with a singleton fuzzifier, product inference, and center average defuzzifier, we can get the global fuzzy equation of the th rule: where , , , , and is the membership function of fuzzy sets .

#### 3. Design for Wireless Networked Control System Based on T-S Model

In real networked control system, limited by environmental or economic conditions, not all state variables are measurable. Based on hierarchical control structure, the design of networked control system with local state observer is presented in [22]. It introduces local state observer in the plant terminal and proceeds feedback control with state estimation at the end of the remote controller. As a consequence, this paper uses the state observer between the sensor and the controller. At the same time, in order to avoid data confusion and compute packet dropout rate over a period of time in real time, the data buffer and timing counter are added. It will adjust automatically when the packet dropout rate is bigger than the rate which is set to ensure the stability of the network. The networked control system designed in this paper is shown in Figure 2.

##### 3.1. Buffer/Storage and Counter

The buffer and memory are used for temporary storage of data, which can filter data and avoid the wrong order. And the main purpose of the counters is to calculate the packet dropout.

Between the sensor and the controller, define two variables, and . Consider as the timing unit. Within a sampling period, when time is up, will be increased by one. Meanwhile, if the data in the buffer are not changed at the moment, it will be ; otherwise, it will be .

Similarly, between the controller and the actuator, define two variables, and . Consider as the timing unit. Within a sampling period, when time is up, will be increased by one. Meanwhile, if the data in the buffer are not changed at the moment, it will be ; otherwise, .

Networked control system can bear a certain degree of packet dropout. Hence, computing packet dropout rate currently will help ensure the stability of the system. The packet dropout rate can be estimated by formula (5) in the improved networked control system mentioned above. For example, suppose that the data in the buffer have not been changed while the data in the memory have been changed within the time , so , , , and . Then, within the time , suppose that the data in the buffer and memory both have not been changed, so , , , and . Then, within the time , suppose that the data in the buffer and memory both have been changed, so , , , and . Then, within the time , suppose that the data in the buffer and memory both have been changed, so , , , and . Consequently, on the basis of (5), it follows that, at time , is 0.5, at time is 0.75, at time , is 0.5, and, at time , is 0.375. Consider

##### 3.2. The State Observer

For arbitrary initial value of system (1) and the state observer, will be equal to after step at most. That is to say, estimated values and state values are equal. However, the continuous system has no such properties [23].

Assume that the current moment is . And then make a comparison between the time stamp and local time so that is acquired. Next, round . If the buffer data are updated at the moment, is less than or equal to . In general, use the output and input of the plant as an input of the state observer. The feedback from the controller is . A state observer for system (4) is structured as follows [24]: where , are the state and output vector of the state observer, respectively, and is the state observer gain, which can be obtained through dual principle.

##### 3.3. The Predictor

As we all know, the packet dropout can also be converted to time delay. Values at current moment cannot be acquired because of the network-induced delay. Even so, can be acquired. Then, combine and ; the system state values from to can be further predicted as follows:

From the above formulas, the relationship between and can be built by recursion; that is,

##### 3.4. The State Feedback Controller

There exist random delay and packet dropout between the controller and the actuator, marked as . In order to keep the controller synchronized with the plant, it should calculate the controlled quantity , where .

The state feedback controller is designed as formula (9), and is the estimate value when the time delay is . Consider where and is a state feedback controller gain.

By formulas (7)~(9), the system state values from to can also be further predicted, which is as follows

Substituted into the formula (9), it follows that

Construct , , as a control sequence , which will be packaged into packets together with the time stamp and then sent to the compensator.

##### 3.5. The Compensator

Comparing the time stamp with local time or by the counter, we can achieve . After that, round . It should be noticed that the control sequence received by the compensator is generated at the moment , but now, between the sensor and the controller, the time delay value is . For this reason, at time , the total delay in the closed-loop network is not , but . Thus, the input and output of the plant are and . Then combined with formula (10), the state estimator for can be deserved as follows:

With (12), one obtains

Thus, the control law now is

At time , the control sequence in the compensator described above can be set as . The control input would be in case of time delay compensation.

#### 4. Stability Analysis

Define the following error vector: and define the following augmented vector: In addition, set , , and .

(1) When , there is .

Then combined with formula (8), it follows that

By formula (4), formula (15), and formula (17), we can get

Therefore,

Then,

Thus, with (19) and (20), it follows that

And then, with (4), (14), (15), and (21), we obtain

Then, on the basis of formulas (16), (18), and (22), we get

(2) When , define

According to (4), (6), and (15), we have

Therefore,

By formula (4) and formula (26), we can achieve

Then with (16), (25), and (27), it follows that

As we know, if all the eigenvalues of the matrix and are located in the open unit disc, the system will be asymptotically stable, even there are and . The separation principle still holds in discrete systems. It indicates that the closed-loop system with state feedback still retains the original nature of the state feedback closed-loop system after the access to the observer. So the pole assignment can be separated into two parts: for state feedback and for the observer [23]. Characteristic polynomials of the two matrices introduced above are, respectively, and . Obviously, the controller gain and the state observer gain can be conducted based on the separation principle.

#### 5. Numerical Example

Consider an inverted pendulum system [25]. Suppose sample time s, and select the following state variables: where signifies an angle that is between the pendulum and the vertical line and signifies an angular velocity. Linearize the original inverted pendulum model at five working points, 0°, ±15°, and ±30°. Then use formula (3) in [26] to discretize it, so we can get matrix coefficients and .

Then, set .

As a result, the T-S fuzzy model can be written as follows: where

By using rank criteria of system controllability and observability, the system is completely controllable and completely observable. Consider where and the system now is also completely controllable and completely observable. Consider where and the system now is also completely controllable and completely observable.

The controller poles are assigned to so that , , and could be achieved under the three kinds of preconditions described above. Three state observer gains would be obtained in the same way. In this simulation, the output variables can reflect the first state variables since . Nevertheless, it needs to design a state observer for those whose state variables cannot be observed directly.

The membership functions are chosen from [27], and the initial reference is set as . Then combine the language with the truetime to carry out the simulation. The truetime is a toolbox of Matlab, which can offer a variety of communication network models. In addition, in the simulation, we set and . The results of outputs of the wireless networked system in different situations are shown in Figure 3, where represents that there exists no time delay or packet dropout, shows that there are random time delay and packet dropout but no measures for compensation, and indicates the effect by using the compensation method proposed in this paper. It is easy to see that is stabilized faster than . Consequently, the approach has an advantage in T-S model-based wireless networked system with the random long time delay and data dropout issue.

#### 6. Conclusion

Aimed at the wireless networked control systems with random time delay more than a sampling period and packet dropout, in this paper, on the basis of a compensation method in [19], we consider the inverted pendulum T-S fuzzy system as the plant and bring in counters that can deal with the packet dropout rate over the network. According to the separation principle, the state observation predictor and the state feedback controller are designed separately. Furthermore, there is a stability analysis for the closed-loop networked control systems with fixed time delay. A numerical example illustrates that the approach provided is effective in shortening long time delay and reducing the packet dropout in wireless networked system, which could be applied to the inverted pendulum T-S fuzzy system. The next step is to model the GPS and SI4432-based wireless sensor network (WSN) into T-S fuzzy system. Hence, the method mentioned in this paper can play a role in the WSN and then be applied in practice.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

This work was supported by the National Natural Science Foundation of China under Grant no. 61374083, Science and Technology Department Project of Zhejiang Province under Grant nos. 2014C31082, 2014C33109, and Program of Graduate Innovation Research in Zhejiang Sci-Tech University (YCX12028).

#### References

- R. Lu, Y. Xu, and A. Xue, “${H}_{\infty}$ filtering for singular systems with communication delays,”
*Signal Processing*, vol. 90, no. 4, pp. 1240–1248, 2010. View at: Publisher Site | Google Scholar - R. Q. Lu, H. Y. Wu, and J. J. Bai, “New delay-dependent robust stability criteria for uncertain neutral systems with mixed delays,”
*Journal of the Franklin Institute: Engineering and Applied Mathematics*, vol. 351, no. 3, pp. 1386–1399, 2014. View at: Publisher Site | Google Scholar | MathSciNet - R. Q. Lu, H. Li, and Y. P. Zhu, “Quantized ${H}_{\infty}$ filtering for singular time-varying delay systems with unreliable communication channel,”
*Circuits, Systems, and Signal Processing*, vol. 31, no. 2, pp. 521–538, 2012. View at: Publisher Site | Google Scholar | MathSciNet - H. Qian, B. Chen, and J. Yuan, “Enhanced routing protocol on AODV with load balance and delay restriction,”
*Journal of Nanjing University of Science and Technology*, vol. 37, no. 1, pp. 25–31, 2013. View at: Google Scholar - M. Xiang, Y. Xu, and Y. Zhang, “Dynamic routing strategy of wireless networks for construction crane inclination monitoring,”
*Chinese Journal of Scientific Instrument*, vol. 33, no. 9, pp. 1921–1930, 2012. View at: Google Scholar - Y. M. He and L. S. Wei, “Grey modeling and analysis for time-delay of star topology WNCSs,”
*Computer Measurement & Control*, vol. 21, no. 3, pp. 732–734, 2013. View at: Google Scholar - J. Zhang, X. S. Xin, and H. B. Xu, “Output feedback control of a class of linear time-varying systems,”
*Acta Automatica Sinica*, vol. 40, no. 2, pp. 373–378, 2014. View at: Google Scholar - X. Zhao, S. Fei, and T. Li, “Quantized control for nonlinear singular impulsive systems with data dropouts,”
*Control Theory and Applications*, vol. 29, no. 4, pp. 539–543, 2012. View at: Google Scholar - R. Q. Lu, Y. Xu, A. K. Xue, and J. Zheng, “Networked control with state reset and quantized measurements: observer-based case,”
*IEEE Transactions on Industrial Electronics*, vol. 60, no. 11, pp. 5206–5213, 2013. View at: Publisher Site | Google Scholar - R. Q. Lu, F. Wu, and A. K. Xue, “Networked control with reset quantized state based on bernoulli processing,”
*IEEE Transactions on Industrial Electronics*, vol. 61, no. 9, pp. 4838–4846, 2014. View at: Google Scholar - Y. Xu, H. Su, and Y. Pan, “Output feedback stabilization for Markov-based nonuniformly sampled-data networked control systems,”
*Systems and Control Letters*, vol. 62, no. 8, pp. 656–663, 2013. View at: Publisher Site | Google Scholar | Zentralblatt MATH - Z. Wu, P. Shi, H. Su, and J. Chu, “Passivity analysis for discrete-time stochastic markovian jump neural networks with mixed time delays,”
*IEEE Transactions on Neural Networks*, vol. 22, no. 10, pp. 1566–1575, 2011. View at: Publisher Site | Google Scholar - Z. G. Zheng, P. Shi, H. Y. Su, and J. Chu, “Stochastic synchronization of Markovian jump neural networks with time-varying delay using sampled-data,”
*IEEE Transactions on Cybernetics*, vol. 43, no. 6, pp. 1796–1806, 1806. View at: Google Scholar - Y. Yin, Y. Liu, and H. R. Karimi, “A simplified predictive control of constrained Markov jump system with mixed uncertainties,”
*Abstract and Applied Analysis*, vol. 2014, Article ID 475808, 7 pages, 2014. View at: Publisher Site | Google Scholar | MathSciNet - Y. Xu, H. Y. Su, Y. J. Pan, and Z. Wu, “Robust ${H}_{\infty}$ filtering for networked stochastic systems with randomly occurring sensor nonlinearities and packet dropouts,”
*Signal Processing*, vol. 93, no. 7, pp. 1794–1803, 2013. View at: Publisher Site | Google Scholar - L. N. Rong, C. D. Yu, P. F. Guo, and H. Gao, “Fault detection for wireless networked control systems with stochastic uncertainties and multiple time delays,”
*Abstract and Applied Analysis*, vol. 2014, Article ID 605214, 6 pages, 2014. View at: Publisher Site | Google Scholar | MathSciNet - Z. Wu, P. Shi, H. Su, and J. Chu, “Asynchronous ${l}_{2}-{l}_{\infty}$ filtering for discrete-time stochastic Markov jump systems with randomly occurred sensor nonlinearities,”
*Automatica*, vol. 50, no. 1, pp. 180–186, 2014. View at: Publisher Site | Google Scholar | MathSciNet - Y. B. Luo, X. F. Jiang, and W. M. Zhong, “A fuzzy Lyapunov approach for constrained T-S fuzzy systems design,”
*Control Theory & Applications*, vol. 27, no. 12, pp. 1777–1782, 2010. View at: Google Scholar - R. M. Wang, S. M. Fei, and L. Chai, “Predictive compensation for networked control systems,”
*Control Theory & Applications*, vol. 28, no. 10, pp. 1473–1479, 2011. View at: Google Scholar - Y. F. Wang, Y. W. Jing, and S. Y. Zhang, “Fault-tolerant control for nonlinear networked control systems based on observer,”
*Control Theory and Applications*, vol. 29, no. 10, pp. 1348–1352, 2012. View at: Google Scholar - R. Lu, H. Wu, and J. Bai, “Networked ${H}_{\infty}$ filtering for T-S fuzzy systems with quantization and data dropouts,”
*Journal of the Franklin Institute—Engineering and Applied Mathematics*, vol. 351, no. 6, pp. 3126–3144, 2014. View at: Publisher Site | Google Scholar | MathSciNet - J. Kang and G. Z. Dai, “Design of networked control systems with state observer,”
*Control and Decision*, vol. 25, no. 6, pp. 943–952, 2010. View at: Google Scholar | MathSciNet - J. T. Feng, L. Wang, and F. Feng, “Analysis of linear time-invariant discrete system operating under the state feedback control with observer,”
*Journal of Electric Power*, vol. 25, no. 5, pp. 411–418, 2010. View at: Google Scholar - X. N. Song and L. P. Liu, “Robust observer-based H∞ control for nonlinear T-S fuzzy time-delay systems,”
*Acta Physica Sinica*, vol. 62, no. 21, pp. 490–500, 2013. View at: Google Scholar - K. Zheng, J. Xu, and L. Yu, “Takagi-Sugeno model-based optimal guaranteed cost fuzzy control for inverted pendulums,”
*Control Theory and Applications*, vol. 21, no. 5, pp. 703–708, 2004. View at: Google Scholar - H. B. Li, J. Q. Deng, Z. Q. Sun, and F. Sun, “Delay-dependent state feedback controller design for a class of networked control systems,”
*Control Theory & Applications*, vol. 29, no. 10, pp. 1325–1330, 2012. View at: Google Scholar - B. Zhong and R. J. Zhan, “Sliding-mode control for second order nonlinear system based on generalized Gauss function,”
*Computer Simulation*, vol. 27, no. 4, pp. 371–374, 2010. View at: Google Scholar

#### Copyright

Copyright © 2014 Le Wang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.