The Research of Delay Characteristics in CAN Bus Networked Control System

Similar documents
ADVANCES in NATURAL and APPLIED SCIENCES

The Study of Intelligent Scheduling Algorithm in the Vehicle ECU based on CAN Bus

Qiqihar University, China *Corresponding author. Keywords: Highway tunnel, Variant monitoring, Circle fit, Digital speckle.

Research Article Delay Analysis of Networked Control Systems Based on 100 M Switched Ethernet

Design of Precise Control and Dynamic Simulation of Manipulator for Die-casting Mould

A Design of Remote Monitoring System based on 3G and Internet Technology

Modeling And Simulation Of Polar Coordinates Seeker Control System Based On Full-Map Plane

result, it is very important to design a simulation system for dynamic laser scanning

Exploration of Fault Diagnosis Technology for Air Compressor Based on Internet of Things

Research of Traffic Flow Based on SVM Method. Deng-hong YIN, Jian WANG and Bo LI *

SIMULATION OF NETWORK USING TRUETIME TOOLBOX

Research Of Data Model In Engineering Flight Simulation Platform Based On Meta-Data Liu Jinxin 1,a, Xu Hong 1,b, Shen Weiqun 2,c

A Tentative Study on Ward Monitoring System based on Zigbee Technology Jifeng Liang

Type-2 fuzzy controller in ZigBee network

Design of student information system based on association algorithm and data mining technology. CaiYan, ChenHua

Aero-engine PID parameters Optimization based on Adaptive Genetic Algorithm. Yinling Wang, Huacong Li

Research on Heterogeneous Communication Network for Power Distribution Automation

Fuzzy Neural Network-based Time Delay Prediction for Networked Control Systems

Cmm-based Profile Measuring Method for Unknown Screw Compressor Rotor

The Design of Electronic Color Screen Based on Proteus Visual Designer Ting-Yu HOU 1,a, Hao LIU 2,b,*

World Scientific Research Journal (WSRJ) ISSN: Design and Implementation of Stepper Motor Control System Based on 52 MCU

Research of tooling test signal collection and analysis Guozhuang Liang 1, a, Xuan Chen 1,b,Yufeng Yao 2,c

[Telchy, 4(11): November, 2015] ISSN: (I2OR), Publication Impact Factor: 3.785

Study on GA-based matching method of railway vehicle wheels

The Analysis of the Loss Rate of Information Packet of Double Queue Single Server in Bi-directional Cable TV Network

Research on Design and Application of Computer Database Quality Evaluation Model

Study on Gear Chamfering Method based on Vision Measurement

Best traffic carrier frequency number and cell wireless utilization research

Research on Hybrid Network Technologies of Power Line Carrier and Wireless MAC Layer Hao ZHANG 1, Jun-yu LIU 2, Yi-ying ZHANG 3 and Kun LIANG 3,*

5th International Conference on Information Engineering for Mechanics and Materials (ICIMM 2015)

Network protocol for Internet of Things based on 6LoWPAN

CHAOTIC ANT SYSTEM OPTIMIZATION FOR PATH PLANNING OF THE MOBILE ROBOTS

Battery Energy Storage System Information Modeling Based on IEC 61850

A Real-time Detection for Traffic Surveillance Video Shaking

Design of Liquid Level Control System Based on Simulink and PLC

Research on time optimal trajectory planning of 7-DOF manipulator based on genetic algorithm

Design and Implementation of Dual-Mode Wireless Video Monitoring System

Framework Research on Privacy Protection of PHR Owners in Medical Cloud System Based on Aggregation Key Encryption Algorithm

Research on Two - Way Interactive Communication and Information System Design Analysis Dong Xu1, a

Design of Coal Mine Power Supply Monitoring System

Design of the Control System for Step Motor Based on MCU

An Adaptive Threshold LBP Algorithm for Face Recognition

A method of three-dimensional subdivision of arbitrary polyhedron by. using pyramids

Parameter Modeling for Single Screw Pump Based On CATIA Secondary Development Platform Heng Fu 1,a, Yanhua Gu 2,b *, Xiaoyu Wang 3,b, Xiu Fang Zhang 4

Research on the Knowledge Representation Method of Instance Based on Functional Surface

Citation for the original published paper (version of record):

A Dynamic TDMA Protocol Utilizing Channel Sense

2017 International Conference on Economics, Management Engineering and Marketing (EMEM 2017) ISBN:

Deadlock Avoidance Based on Graph Theory

Chapter 2 A Second-Order Algorithm for Curve Parallel Projection on Parametric Surfaces

Implementation Of Distributed Control System In Process Control Management Using MATLAB

TrueTime: Real-time Control System Simulation with MATLAB/Simulink

Journal of Chemical and Pharmaceutical Research, 2014, 6(6): Research Article

Intelligent Control of Micro Grid: A Big Data-Based Control Center

The Design and Development of the Precision Planter Sowing Depth Control System

The Parameters Optimization of Fusion Winglet Based on Orthogonal Experiment Yue LUO 1, *, Qi WANG 1, Qi DU 1 and Hou-An DING 1

Research Article. Three-dimensional modeling of simulation scene in campus navigation system

Fault Analysis of Distribution Network with Flexible Ring Network Control Device

Research on Approach of Equipment Status and Operation Information Acquisition Based on Equipment Control Bus

Study on Image Position Algorithm of the PCB Detection

An improved PageRank algorithm for Social Network User s Influence research Peng Wang, Xue Bo*, Huamin Yang, Shuangzi Sun, Songjiang Li

Study on Improving the Quality of Reconstructed NURBS Surfaces

Research Article. ISSN (Print) *Corresponding author Chen Hao

Lightning Protection Performance Assessment of Transmission Line Based on ATP model Automatic Generation

Study of Smart Home System based on Zigbee Wireless Sensor System. Jie Huang 1

A liquid level control system based on LabVIEW and MATLAB hybrid programming

Remote Monitoring System of Ship Running State under Wireless Network

Utilizing Restricted Direction Strategy and Binary Heap Technology to Optimize Dijkstra Algorithm in WebGIS

A Secure Data Transmission Scheme in Wireless Sensor Networks

PID Temperature Control System Based on PLC

Design of point to multi-point wireless communication system based on ZigBee

manufacturing process.

Design of an Intelligent PH Sensor for Aquaculture Industry

Intelligent bus temperature measurement system based on Zigbee networks

A Low-Overhead Hybrid Routing Algorithm for ZigBee Networks. Zhi Ren, Lihua Tian, Jianling Cao, Jibi Li, Zilong Zhang

A Finite State Mobile Agent Computation Model

The Application of Floyd Algorithm for Returning Path Algorithm with

International Conference on Information Sciences, Machinery, Materials and Energy (ICISMME 2015)

Quality Assessment of Power Dispatching Data Based on Improved Cloud Model

The Gene Modular Detection of Random Boolean Networks by Dynamic Characteristics Analysis

The Research of Collision Detection Algorithm Based on Separating axis Theorem

Design and Implementation of Full Text Search Engine Based on Lucene Na-na ZHANG 1,a *, Yi-song WANG 1 and Kun ZHU 1

A Network Disk Device Based on Web Accessing

Distribution Network Reconfiguration Based on Relevance Vector Machine

Research Article Modeling and Simulation Based on the Hybrid System of Leasing Equipment Optimal Allocation

A New Evaluation Method of Node Importance in Directed Weighted Complex Networks

Application of Redundant Backup Technology in Network Security

Research and Design of Universal Proportional Valve Controller

Open Access Research on the Prediction Model of Material Cost Based on Data Mining

IMPROVED ARTIFICIAL FISH SWARM ALGORITHM AND ITS APPLICATION IN OPTIMAL DESIGN OF TRUSS STRUCTURE

Research of Multi-axis NC Machining Method of Cylindrical Cam Based on UG NX

Event-based sampling for wireless network control systems with QoS

A QR code identification technology in package auto-sorting system

The Improved LEACH-C Protocol with the Cuckoo Search Algorithm

Performance Comparison and Analysis of Power Quality Web Services Based on REST and SOAP

Existence and Dynamics of Bounded Traveling Wave Solutions to Getmanou Equation

Model the P2P Attack in Computer Networks

A Method of Identifying the P2P File Sharing

Tag Based Image Search by Social Re-ranking

Application of Geometry Rectification to Deformed Characters Recognition Liqun Wang1, a * and Honghui Fan2

Transcription:

Journal of Computational Information Systems 9: 18 (2013) 7517 7523 Available at http://www.jofcis.com The Research of Delay Characteristics in CAN Bus Networked Control System Yi WANG 1, Liren HE 2, Ming SU 3, 1 College of Physics and Electronics Science, Guizhou Normal University, Guiyang 550001, China 2 College of Science, Guizhou University, Guiyang 550025, China 3 College of Mechanical and Electrical Engineering, Guizhou Normal University, Guiyang 550001, China Abstract The network induced delay seriously effect the real-time and stability of CAN bus networked control systems. In this article, the structure of CAN bus NCS was analyzed, meanwhile studied the cause and integral part of delay. Then adopted TrueTime to build simulation model of CAN bus NCS. Discussed the effects of CAN bus network delay on performance of control system in three cases. Then drew a conclusion that reduce the proportion of forward delay of CAN bus network can effectively improved the performance of CAN bus NCS. Keywords: CAN Bus; Network Delay; Control Performance; Real-time; Stability 1 Introduction CAN bus is a serial communication network which could effectively support a distributed implementation control. It has form an international standard (ISO 11898), then become a standardized protocol. It has been widely used in industrial control, engineering vehicles, marine equipment, small aircraft and other fields. Meanwhile it has achieve the share of information and resources, simplify wiring, coordination and control, improve the overall performance of system in vehicle. However, introduction of CAN bus network also brings some uncertainty, the biggest problem is system performance degradation and even instability that bring out by network delay. Therefore, in order to ensure the real-time and stability of CAN bus control system, it is necessary to do a depth theoretical study on delay problem of CAN bus control system. In paper [1], the stability of the delay networked control system(ncs) was studied. In case of no more than one sample delay effects, a discrete model of the NCS was built, and analysis stability of the model. Project supported by the National Nature Science Foundation of China (No. 61262007), Guizhou Science and Technology Department School Cooperation Project (No. [2013]7001), Guiyang Science and Technology Department Platform for innovation plan (No. 2012303). Corresponding author. Email address: summing629@163. com (Ming SU). 1553 9105 / Copyright 2013 Binary Information Press DOI: 10.12733/jcisP5802 September 15, 2013

7518 Y. Wang et al. /Journal of Computational Information Systems 9: 18 (2013) 7517 7523 And in paper [2], in order to solve the delay issues in NCS, adopt the random delay modeling method to expressed delay that under different load conditions as interval variables. And verified the effectiveness of the algorithm by means of numerical simulation. While in article [3], the network delay issues in the NCS was analyzed. And it has proposed a delay compensation strategy of segmentation dynamic matric to compensate delay in network transmission. Paper [4] considered the network induced delay as fundamental factors of decrease or even instability in system performance. So, it put forward an adaptive PID control method based on BP neural network compensation, which could achieve the online adaptive compensation network delay without changing the control parameter of existing PID controller. Based on the analysis of the delay issue in the NCS, paper [5] pointed out that network induced delay is the main factors of performance degradation or even instability in NCS. Then discussed and summarized the findings of delay problem. At last, this paper mainly studies the effects of forward and feedback delay in the CAN bus NCS to the performance of control system. Then draw a conclusion that there are some reference value of the design of vehicle CAN bus NCS. 2 The Relationship Between Delay of CAN Bus Control System and Sampling Period CAN bus control system is a real-time closed-loop feedback control system that transport data through CAN bus network. The typical structure of control system is shown in Fig. 1. Fig. 1: CAN Bus NCS Structure Due to the intervention of CAN bus network, the delay of data transmission is inevitable [6]. From control perspective, the network delay will lagged the phase of system, deteriorated the system performance, narrowed the range of stability of system, or even caused system instability. And from the scheduling perspective, the information will not arrive on time or even discard. CAN bus network delay could do an important impact on the performance of control system, so it is the factors that can not be ignored during the analysis and design of vehicle CAN bus NCS. As the presence of network delay also increases the complexity of NCS research, the analysis and model of existing control theory can not be applied directly to the vehicle CAN bus NCS [7, 8]. Base on size, the CAN bus network delay can be divided into long delay and short delay. If the delay τ [0, τ max ], and τ max is less than the sampling period T, that is τ max < T, then claimed the delay of the network as the short delay. If the delay τ [0, τ max ], and τ max is greater than T, that is τ max > T, then claimed the delay of the network as the long delay. For the long delay, it can convert into a short delay by selecting the sampling period and use an appropriate scheduling algorithm. Therefore, this article only study the short delay that less than one sampling period.

Y. Wang et al. /Journal of Computational Information Systems 9: 18 (2013) 7517 7523 7519 In the CAN bus network control system, as the delay τ is less than one sampling period, the relationship between the control object and the controller is expressed as the state equation: { ẋ(t) = Ax(t) + Bu(t) (1) y(t) = Cx(t) u(t) = Kx(t τ) (2) In the equation, x R n, u R m, y R l, represent the state, input and output variables of the system. And A R n n, B R n m, C R l n, K R m n, represent the state matrix of the system. The discrete-time state equation of the upper equation is: { x((k + 1)T ) = Φx(t) + Γ0 (τ) u(kt ) + Γ 1 (τ) u((k 1)T ) y(t) = Cx(kT ) (3) Meanwhile: Φ = e AT, Γ 0 (τ) = T τ e As Bds, Γ 0 1 (τ) = T T τ eas Bds. Define the augmented state vector: [ ] x(kt ) Z(kT ) = u((k 1)T ) (4) Then, the closed-loop system can be expressed as: Z((k + 1)T ) = Φ Z(kT ) (5) And Φ = [ Φ Γ0 (τ)k Γ 1 (τ) k 0 ] (6) When the formula (6) in the spectral radius is less than 1 [9], the formula (5) is stable, which can draw the following relationship: max{ 1 2 1 kt, 0} < τ T < min{ 1, 1} (7) kt The formula (7) is the constraint relationship between delay and sampling period. From the formula, the smaller the sampling period, the larger the allowable stability range of delay. It also shows that, in the case of a stable system, the sampling period is small means that the large amount of data transmitted over the network will increase the network transmission delay. 3 Delay Model of CAN Bus Control System In the CAN bus NCS, the transmit sequence of information is transmitted sequentially in accordance with the SensorController Actuator Controlled object. As shown in Fig. 2.

7520 Y. Wang et al. /Journal of Computational Information Systems 9: 18 (2013) 7517 7523 Fig. 2: Delay Model of CAN Bus Control System The whole process, that from sensor sample to actuator act in the plant, constitute the signal flow of control system. In the ideal sampling control system, it is often assumed that the signal stream transfer process is instantaneous [10]. But due to the introduce of CAN bus network in forward and feedback channels, delay in the control loop is inevitable. So the transmission of signal stream is delayed. That is: sensor act the sample to the output need a processing time; based on the sensors signal, the controller need a calculate time to the control amount signal; and actuator led the control amount applied to controlled object has a drive time; then during the information transmit in the CAN bus network, there is a transmission time. Therefore, the delay of the CAN bus NCS can be divided into implementation process delay and network transmission delay. The implementation process delay produced in the running process of sensors, controllers and actuators. Include the delay τ s of sensors sampled data and complete the initialization of CAN controller; after receive the packet, the time τ c that controller calculate the amount of control signal and converts it into a CAN message that identifies required; and the computation time τ a that actuators receives CAN messages and translate them into the plant signals. Network transmission delay consist by the feedback delay τ sc that from sensor to controller and the forward delay τ ca that from controller to actuator. Thus, the total delay of CAN bus control system can be expressed as: τ = τ sc + τ ca + τ s + τ c + τ a (8) The delay of execution process vary depends on the overall performance of each node, and select a high speed processor and optimization algorithm could reduce the execution impact of delay to a minimal extent. Therefore, during the analysis and design of CAN bus NCS, the delay of execution process is consist by τ sc and τ ca. The total delay of the CAN bus NCS can be expressed as the sum of forward delay τ ca and feedback delay τ sc. τ = τ sc + τ ca (9) 4 The Impact of Delay on CAN Bus NCS In order to analysis impact of forward delay τ ca and feedback delay τ sc on control performance of CAN Bus NCS, adopt sensors, controllers, actuators, interference, DC motor and CAN bus to build a closed-loop control system, as shown in Fig. 3. Use the sensor to sample the speed of

Y. Wang et al. /Journal of Computational Information Systems 9: 18 (2013) 7517 7523 7521 DC motor and process, then sent information to the controller via CAN bus network, and the controller calculates the control amount, at last sent the message to actuator. Interference node is used to produce periodic and non-periodic signal, and regulate traffic load on the network. Fig. 3: CAN Bus Network Close-loop Control System TrueTime, which was developed by LUND University, has a strong simulation capabilities. It often used to study effect of time uncertainty such as network transmission delay on the control performance, and can also be used on the simulation of multi-scheduling algorithm in the NCS. The TrueTime mainly includes four functional modules: real-time kernel module (TrueTime Kernel), network communication module (TrueTime Network), wireless network module (TrueTime Wireless Network), and battery module (TrueTime Battery). The TrueTime Kernel is used for analog the sensors, controllers and actuators and other control elements, include A/D and D/A conversion, outer channel and the network interface. The TrueTime Kernel execute operations in accordance with the user-defined tasks, often use MATLAB or C++ to write the execute code. TrueTime Network is used to simulate a variety of networks, the optional parameters includes the number of nodes, network number, network type (optional media access control protocol includes: CSMA/CD, CSMA/CA, TDMA, FDMA, ROUND ROBIN), the pretreatment and subsequent processing delay, packet loss rate. TrueTime Network is driven by a event mode, while the news come in/out from the network, then execute. The main steps of established real-time NCS by the TrueTime is: (1). Established real-time CAN bus network structure diagram of the control system through the Simulink module; (2). Initialized the kernel module, set the number of input and output, real-time scheduling algorithm, etc. (3). Set other parameters, and create individual tasks, then execute simulation. Fig. 4 is CAN bus NCS simulation model build by using the the TrueTime Kernel. Select stepper motor as control plant, mathematical model is shown as follow: G(s) = 1000 s(s + 3) Select four Kernel modules respectively as the sensor, controller, actuator and interfering node. The network module adopt CAN protocol (CSMA/AMP) to achieve communication. Select unit step signal as a system input, then simulate network delay effect performance of control system in three case: τ = 0, τ ca >> τ sc, and τ ca << τ sc. As shown in Fig. 5. Through the simulation results: (1). When the delay of CAN bus NCS is 0, that is: τ = 0. The rise time of system step response and overshoot are relatively small, which is consistent with the results of theoretical analysis. (10)

7522 Y. Wang et al. /Journal of Computational Information Systems 9: 18 (2013) 7517 7523 Fig. 4: The Simulation Model of CAN Bus NCS Fig. 5: Simulation Result of Delay in Vehicle CAN Bus NCS (2). When the vehicle CAN bus NCS forward delay τ ca is less than feedback delay τ sc, performance of the system is better than the situation that forward delay is greater than feedback delay, and the greater the forward delay, the greater system overshoot. 5 Conclusion While the network was shared by sensor, controller, actuator, and controlled object, based on the characteristics of CAN bus NCS, analysis effect of network delay on performance of control system. And established discrete mathematical model of the CAN bus NCS, given the relationship of CAN bus control system delay and sampling period under a stable conditions. Simulation results shown that forward delay τ ca has a greater effect than feedback delay τ sc in the CAN bus NCS. With the increase of τ ca, the overshoot of system increases and the rise time becomes longer. So during the design of CAN bus NCS, minimize the forward delay could improve the performance of CAN bus NCS. The conclusion has some reference value to design of CAN bus NCS. Acknowledgement This work was financially supported by the National Natural Science Foundation of China (Grant No. 61262007), Guizhou Science and Technology Department School Cooperation Project (Qian

Y. Wang et al. /Journal of Computational Information Systems 9: 18 (2013) 7517 7523 7523 Bureau No. [2013] 7001) and Guiyang Science and Technology Department Platform for innovation plan (2012303). References [1] ZHAO Hua-zheng, Stability Analysis of Networked Control Systems with Time Delay, Science Technology and Engineering 12(2) (2012) 342-344. [2] Chen Meng-wei, Jing Chao-yong, Zhu Jing-li, etc, Design of Stochastic Interval Delay Controllers of Networked Control Systems, Journal of Guangdong University of Technology 29(1) (2012) 59-63. [3] ZHU Kong Yang, Compensating strategy based on dynamic matrix control for networked control system, Microcomputer & Its Applications 12 (2010) 75-77. [4] Huang Jinhua, Liu Jiqing, Self-adapting compensation study to the network-induced delay of networked control system, xjournal of Jiangsu University of Science and Technology (Natural Science Edition) 23(4) 2009 335-337. [5] GUO Ge, JIA Er-na, Delays in networked control systems:analysis and preview, Control and Decision 24(1) (2009) 1-6. [6] Xiaoqian Guo, Bin Wu, The Impact of Time-delay on Networked Control System and Stability Region Analysis of PID Controllers, 2010 International Conference on Computer, Mechatronics, Control and Electronic Engineering (CMCE), Changchun, 2010, pp. 163-166. [7] Zhou Hai, Heng Qing-hai, Liu Yin, Analysis and Simulation of Network Control System Delay Based on Truetime, Industrial Control Computer 25(2) 2012 29-35. [8] XU Lin, LEI Hong, RU Jingyu, Research on Predictive Control of Stochastic Network-induced Delay for Network Control Systems, 2011 Chinese Control and Decision Conference (CCDC), Tianyuan, 2011, pp. 929-932. [9] JING Nan, WANG Lin, AN Bai-yue, Analysis and policy of network latency in CAN control system, Computer Engineering and Design 30(20) 2009 4599-4602. [10] Deng Rui, Tang Xian-ming, Yu Jin-shou, Analysis of Delay Compensation in NCS based on TrueTime Tool Box, Industrial Control Computer 23(2) 2010 24-26.