Umirov 2008
Umirov 2008
Abstract: This paper discusses networked real-time control systems. The common network and ZigBee specific
problems are discussed and methods to overcome them are explained. Limitations of ZigBee networks, sources of delay
and benefits of broadcast mode over unicast mode for control loop time delay minimization are reviewed. It is
explained how play-back buffer, originally used in multimedia play-back, can help to eliminate variance of loop time
delay. To cope with achieved constant loop time delay the Smith predictor is used. Performance of control loop utilizing
conventional PID controller, Smith predictor and play-back buffer is verified via experiments and proved to be efficient.
2937
because each hop retransmission in clustered tree and 3.2. DC Motor Controller
mesh networks increases packet delay, negatively
The DC motor model is derived during experiment,
impacting on control performance. Average measured
and has the form of first-order transfer function, where
hop-to-hop time delay is 20ms, giving average RTT
input is torque, and output is angular velocity.
40ms. In fact, in not congested network the RTT varies
uniformly between 30 and 50ms. 1450
Gm ( s) = (1)
In RTC process packets are sent continually, thus s + 150
packet loss is acceptable and retransmissions are not Encoder is used in the role of sensor, thus the plant
required, moreover retransmissions are undesirable, has integrator block added to the motor block as shown
because they introduce additional lag. ZigBee allows us in Fig. 3.
to disable ACK mechanism for that purpose. By
disabling ACK we do not only minimize lag, but also
save channel throughput. However, some vendors’
T w a
ZigBee modules do not allow ACK disabling for unicast 1450 1
packets, then we can use broadcast packets, which do s + 150 s
2938
accordingly, but in NCSs, the delays are typically 4. EXPERIMENTS
random. A play-back buffer at the actuator can be
designed to hold a control signal and apply it only after In order to verify effectiveness of Smith predictor
a specified amount of time has passed. Thus, the delay and play-back buffer we performed several experiments
in the loop is reshaped to be more deterministic, but the on system using single DC motor and 3 DC motors. As
delay must be increased for this to happen, a potentially controller the conventional PI controller is used. Smith
costly drawback. predictor’s prediction time is set to 50ms, same as
Play-back buffers were originally designed for play-back buffer. All experiments use step-function for
multimedia play-back [4]. In [5], Liberatore proposed reference angle. The step is equal to π/2 rad.
an algorithm to integrate a play-back buffer with
networked control for the control algorithm, actuator 4.1 Single Remote I/O
and sensor. The main feature is a play-back actuator
As we mentioned before, in case of single Remote
which delays the application of a control signal until a
I/O (2 nodes in network) the maximum achievable
specified play-back time is reached. If control signal is
control frequency is 40Hz (Ts=25ms). PI controller uses
arrived after specified play-back time, it is dropped, thus
Kp=10 and Ki=0.1 gains. It is shown in Fig. 7, that
play-back time has to be chosen carefully.
utilization of only PI controller causes oscillations of
The structure of system with play-back buffering is
motor shaft. Fig. 8 represents results of experiment
represented in Fig. 5.
utilizing predictor and play-back buffer. As we can see,
the oscillations are eliminated in that case.
1.8
1.3
angle (rad)
0.8 angle
reference
0.3
Fig. 5 Remote I/O with play-back buffer
-0.2 0 1 2 3 4 5 6 7 8 9 10
For an example of the effects of play-back buffering,
see Fig. 6. The f(t) is function sampled by level and sent time (s)
1.8
1.3
angle (rad)
0.8 angle
f (t ) f (t )
f d (t ) f d (t ) reference
0.3
t t
-0.2 0 1 2 3 4 5 6 7 8 9 10
Fig. 6 An example of the effects of play-back buffering. time (s)
2939
and Fig. 10, which demonstrate identical behavior to 5. CONCLUSION
Fig. 7 and Fig. 8.
The problems of common and ZigBee networks and
their solution are discussed. Also the common problem
1.8 of variable time delay in networked control loop is
discussed in this paper and play-back buffer solution is
1.3 verified. It is verified that play-back buffering and
angle (rad)
ACKNOWLEDGEMENT
0.8 angle
This research was supported by the Center for
reference
0.3 Embedded Software Technology research grants in
2007.
-0.2 0 1 2 3 4 5 6 7 8 9 10
time (s)
REFERENCES
[1] D. Hristu-Varsakelis and W. S. Levine, editors.
Fig. 10 Multiple Remote I/O, Ts=100ms, PI Controller + Handbook of Networked and Embedded Control
Smith predictor + Play-back buffer Systems. Springer Verilag, 2005.
[2] J. Nillson, “Real-Time Control Systems with
Another experiment has been done for only PI Delays”. PhD thesis, Department of Automatic
controlled system with lower Kp=2 gain, to verify Control. Lund Institute of Technology, 1998.
whether it is possible to eliminate oscillations in that [3] O. J. M. Smith. “Closer control of loops with
case. As Fig. 11 demonstrates, the oscillations are deadtime,” Chemical Engineering Progress, 1957.
eliminated; however the raising time is obviously [4] L. L. Peterson and B. S. Davie, Computer
increased, what is undesirable. Networks, Morgan Kaufman, 2000.
[5] V. Liberatore, “Integrated play-back, sensing, and
networked control,” IEEE Infocom, 2006.
1.8
1.3
angle (rad)
0.8 angle
reference
0.3
-0.2 0 1 2 3 4 5 6 7 8 9 10
time (s)
2940