用户名: 密码: 验证码:
基于CAN总线网络控制系统调度算法的分析与研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
通过网络闭环的反馈控制系统称为网络控制系统(Network Control System,简称NCS),它是一种完全分布式与网络化的实时反馈控制系统。不同于一般的网络系统,其传输的消息具有数据量少,传输周期短和实时性高等特点。在网络控制系统中由于所有节点共享物理传输介质,各个节点必须竞争得到网络访问权才能发送数据,基于此,必须对网络中的通信进行调度管理。本文在对近年网络控制系统的调度算法进行综述分析的基础上,基于CAN总线对网络控制系统中的调度算法进行了相关研究。
    首先针对网络控制系统分布式的特点,特别是类似于CAN总线的多主系统,由于没有单一的时钟提供同步机制,影响调度管理的同步。本文在“后期协商”同步算法的基础上,从减少网络同步开销,提高时钟同步的准确度与精确度的角度出发提出了“阶段分割”同步算法,该算法的采用使网络中同步消息的个数从n2+2n下降到3n,提高了带宽利用率。
    然后针对EDF(Earliest Deadline First)调度算法在CAN总线应用中存在的问题,研究相应的解决方案。在基本EDF调度算法的基础上提出了能够解决截止期编码的对数分区EDF调度算法。基于DM(Deadline Monotone)算法实现简单和EDF算法的灵活性强、资源利用率高等优点,提出了一种改进型EDF调度算法(简称EEDF),有效地解决了DM调度算法资源利用率低与EDF调度算法额外开销大等缺点。
    最后,基于EEDF(Enhanced Earliest Deadline First)调度算法提出了一种适用于网络控制系统的反馈控制实时调度算法FC-EEDF(Feedback Control-Enhanced Earliest Deadline First)。该调度算法针对网络控制系统的特点利用基于消息截止期的性能指标作为调节量实现反馈控制。同时在对控制理论与实时调度分析的基础上建立了一种通用的反馈调度模型,为进一步的研究奠定了基础。
When a traditional feedback control system is closed via network, which is a sort of completely distributed, networked and real-time feedback control system, then the control system is called Networked Control System (NCS). Differed from the common network system, messages transmitted in the NCS have the distinct characteristic of short data length, short transmission period and high real-time. Because in the NCS physical medium is shared by all the nodes, each node having message to transmit must win the privilege of access to the medium. For these reasons the network communication should be scheduled and managed. The scheduling algorithm of NCS in CAN field bus is researched in the thesis based on the survey and analysis of the scheduling theory of NCS in several years.
    First, aiming at the distribution of NCS, specially the multi-master system such as CAN, there is no unified network clock, so the scheduling and management are affected. In the thesis based on the posteriori agreement from the point of reducing the message for clock synchronization and improving the precision and accuracy of network clock synchronization, the phase-decoupled algorithm is proposed. When applying the algorithm to NCS, the message for synchronization will be reduced from n2+2n to 3n.
    Second, based on the analysis of the problems of applying EDF algorithm to CAN, the corresponding solutions are researched. Founded on the basic EDF algorithm, the logarithmic quantization of message deadline that can solve the problem of mapping the deadline to priority is proposed. Because of the simple implementation of DM and the flexibility and the high resource utilization of EDF, a new enhanced EDF algorithm is put forward, which solves the low resource utilization of DM and the high excess resource wasting of EDF.
    Finally, grounded on the EEDF algorithm the feedback control real-time scheduling algorithm for NCS is proposed. In the paper the proposed algorithm aiming at the characteristic of NCS the performance index relating to the message deadline is used as adjuster. In the meanwhile based on the analysis of control theory and real-time scheduling, the general feedback scheduling model is built and established and as the basis for the future research.
引文
[1] Wolfhard Lawrenz ,《 CAN System Engineering From Theory To Practical Application》, Springer-Verlag , New York , 1997.
    [2]CAN技术规范及器件,中国菲利浦单片机应用协会,1991.
    [3]姚健欣,CAN总线技术的研究和应用,硕士学位论文,华中科技大学,2001.
    [4]邬明宽,CAN总线原理和应用系统设计,北京航空航天出版社,1996。
    [5]杨慧田,亮田敏,CAN总线协议分析,中国仪器仪表,2002 (4):1-4。
    [6] Nolte, T.; Hansson, H.; Norstrom, C. Probabilistic worst-case response-time analysis for the controller area network.,Real-Time and Embedded Technology and Applications Symposium, 2003,Page(s): 200 –207.
    [7]. Shanbin Li; Zhi Wang; Youxian Sun. Fundamental problems of networked control system from the view of control and scheduling, Industrial Electronics Society, IEEE 2002 28th Annual Conference,Vol.3,2003,Page(s): 2503 –2508.
    [8]. Leen, G.; Heffernan, D. TTCAN: a new time-triggered controller area network, Microprocessors and Microsystems,Vol.26(2),2002,Page(s):77-94.
    [9]. Cavalieri, S.; Di Stefano, A.; Lo Bello, L.; Mirabella, O. Jitter-based policies to improve asynchronous bandwidth exploitation in fieldbus communication systems, Proceedings of the 1996 IEEE IECON 22nd International Conference on ,Vol.2,1996, Page(s): 916 –921.
    [10]. Vasques, F.; Juanole, G. Pre-run-time schedulability analysis in Fieldbus networks, Industrial Electronics, Control and Instrumentation, 1994. IECON '94.,Vol.2,1994,Page(s): 1200 –1204.
    [11]. Lehoczky, J.; Sha, L.; Ding, Y. The rate monotonic scheduling algorithm: exact characterization and average case behavior, Real Time Systems Symposium, 1989.,Page(s): 166 –171.
    [12]. Lopez, J.M.; Garcia, M.; Diaz, J.L.; Garcia, D.F. Worst-case utilization bound for EDF scheduling on real-time multiprocessor systems, Real-Time Systems, 2000. Euromicro RTS 2000. 12th Euromicro Conference on ,2000,Page(s): 25 –33.
    [13]. 2. Zhi Wang; Zhou Yue; Jiming Chen; Ye Qiong Song; Youxian Sun. Realtime characteristic of FF like centralized control fieldbus and its state-of-art. Industrial Electronics, 2002. ISIE 2002. Proceedings of the 2002 IEEE International Symposium, Vol 1,2002,Page(s):140-145.
    [14]. Seung Ho Hong. Scheduling algorithm of data sampling times in the integrated communication and control systems, Control Systems Technology, Vol.3(2),1995, Page(s): 225 –230.
    [15]. Seung Ho Hong; Yu Chul Kim. Implementation of bandwidth allocation scheme in the cyclic-service fieldbus networks, Instrumentation and Measurement Technology Conference, 2000. IMTC 2000,Vol.1, Page(s): 248 –253.
    [16] Seung Ho Hong. Bandwidth allocation scheme for cyclic-service fieldbus networks, Mechatronics, Vol.6(2),2001, Page(s): 197 –204.
    
    [17]. Yong Ho Kim; Wook Hyun Kwon; Hong Seong Park.. Stability and a scheduling method for network-based control systems, Industrial Electronics, Control, and Instrumentation, 1996., Proceedings of the 1996 IEEE IECON,Vol.2,1996, Page(s): 934 –939.
    [18]. Cavalieri, S.; Di Stefano, A.; Mirabella, O.. Pre-run-time scheduling to reduce schedule length in the FieldBus environment, Software Engineering , Vol.21(11): Page(s): 865 –880.
    [19]..L.Almeida;R.Pasadas;J.A.Fonseca.Using a planning scheduler to improve the flexibility of real-time fieldbus networks. Control Engineering Practice,vol 7,1999,Page(s):101-108.
    [20]. Tovar, E.; Vasques, F. Non pre-emptive scheduling of messages on SMTV token-passing networks, Real-Time Systems, 2000. Euromicro RTS 2000. 12th Euromicro Conference on ,2000,Page(s): 209 –218.
    [21]. Atlas, A.; Bestavros, A.. Statistical rate monotonic scheduling, Real-Time Systems Symposium, 1998. Proceedings., Page(s): 123 –132.
    [22]. Hasnaoui, S.; Bouallegue, A.. A proposal modification of CAN protocol to support a dynamic priority policy being able to be implemented on CAN fieldbus controller components, Industry Applications Conference, Vol.2, 2000, Page(s): 1129 –1136.
    [23]. Tovar, E.; Vasques, F.. Non pre-emptive scheduling of messages on SMTV token-passing networks, Real-Time Systems, 2000, Page(s): 209 –218.
    [24]. Cena, G.; Valenzano, A. An improved CAN fieldbus for industrial applications, Industrial Electronics, Vol.44(4), Page(s): 553 –564.
    [25]. Lonn, H.; Axelsson, J. A comparison of fixed-priority and static cyclic scheduling for distributed automotive control applications, Real-Time Systems, 1999. Proceedings of the 11th Euromicro Conference on ,1999, Page(s): 142 –149.
    [26]. Hildebrandt, J.; Golatowski, F.; Timmermann, D. Scheduling coprocessor for enhanced least-laxity-first scheduling in hard real-time systems, Real-Time Systems, 1999. Proceedings of the 11th Euromicro Conference on ,1999, Page(s): 208 –215.
    [27]. Chiussi, F.M.; Francini, A.; Khotimsky, D.A.; Krishnan, S. Feedback control in a distributed scheduling architecture, Global Telecommunications Conference, 2000. GLOBECOM '00. IEEE ,Vol.1,2000,Page(s): 525 –531.
    [28]. Martinez, L.; Soares, S. Comparison between closed-loop and partial open-loop feedback control policies in long term hydrothermal scheduling, Power Systems, IEEE Transactions on ,Vol.17(2),2002,Page(s): 330 –336.
    [29].N.Navet,Y.-Q.Song. Reliability improvement of the dual-priority protocol under unreliable transmission, Control Engineering Practice,Vol.34,1999,Page(s):975-981.
    [30].K.Tindell,A.Burns,A.J.Wellings.Calculating controller area network Message response times, Control Engineering Practice,Vol.3,1995,Page(s):1163-1169.
    [31]. Walsh, G.C.; Hong Ye. Scheduling of networked control systems, Control Systems Magazine,Vol.21(1),2001,Page(s): 57 –65.
    [32].A.Mittal, G.Manimaran , C.Siva Ram Murthy. Dynamic real-time channel establishment in multiple access bus networks, Computer Communications,Vol.26,2003,Page(s):113-127.
    
    [33]. Broster, I.; Burns, A. Timely use of the CAN protocol in critical hard real-time systems with faults, Real-Time Systems, 13th Euromicro Conference on, 2001. ,2001,Page(s): 95 –102.
    [34].Mohammad Ali Livani, Jorg Kaiser,Weijia Jia. Scheduling hard and soft real-time communication in a controller area network, Control Engineering Practice,Vol.7,1999,Page(s):1515-1523.
    [35]. Kaiser, J.; Mock, M. Implementing the real-time publisher/subscriber model on the controller area network (CAN), Object-Oriented Real-Time Distributed Computing, 1999. (ISORC '99) Proceedings. 2nd IEEE International Symposium on , 1999 Page(s): 172 –181.
    [36].G.Cena,A.Valenzano. Delay analysis of priority promotion systems, Computer Communication, Vol.23, 2000, Page(s): 1252-1262.
    [37]. Pedreiras, P.; Almeida, L. Combining event-triggered and time-triggered traffic in FTT-CAN: analysis of the asynchronous messaging system, Factory Communication Systems, 2000. Proceedings. 2000 IEEE International Workshop on , 2000 ,Page(s): 67 –75.
    [38]. Yue Zhou; Ming-zhe Yuan; Tian-ran Wang; Hai-bin Yu. Periodic messages and function blocks scheduling in FF system, Info-tech and Info-net, 2001. Proceedings. ICII 2001 - Beijing. 2001 International Conferences on , Vol. 4 , 2001 Page(s): 370 –375.
    [39]. Luis Almeida, Paulo Pedreiras, José Alberto, The FTT-CAN Protocol: Why and How, IEEE TRANSACTION ON INDUSTRIAL ELECTRONICS, December 2002,49(6): 1189-1201.
    [40]. Sename, O.; Simon, D.; Robert, D. Feedback control scheduling in distributed real-time systems, Real-Time Systems Symposium, 2001. (RTSS 2001). Proceedings. 22nd IEEE , 2001,Page(s): 59 –70.
    [41]. Pu, C.; Fuhrer, R.M. Feedback-based scheduling: a toolbox approach,Workstation Operating Systems, 1993. Proceedings., Fourth Workshop on , 14-15 Oct. 1993 Page(s): 124 –128.
    [42].苗新. 专用通信网的网络同步方式研究,光通信技术,1999,22(2):257-268。
    [43]. Li Zhang; Zhen Liu; Honghui Xia, C. Clock synchronization algorithms for network measurements, INFOCOM 2002. Twenty-First Annual Joint Conference of the IEEE Computer and Communications Societies. Proceedings. IEEE , Vol. 1 , 2002 ,Page(s): 160 -169 vol.1
    [44].李胜利等. 一种分布式实时系统中的时钟同步算法,华中科技大学学报,2001,29(1):61-62.
    [45]. Ciuffoletti, A.; Gattai, F.; Golinelli, R. Clock synchronization in virtual rings, Real-Time Systems, 1994. Proceedings., Sixth Euromicro Workshop on , 1994 ,Page(s): 72 –77.
    [46]. Jefferson, D.C.; Lichten, S.M.; Young, L.E. A test of precision GPS clock synchronization, Frequency Control Symposium, 1996. 50th., Proceedings of the 1996 IEEE International. , 1996 ,Page(s): 1206 –1210.
    [47]. Verissimo, P.; Rodrigues, L. A posteriori agreement for fault-tolerant clock
    
    
    synchronization on broadcast networks, Fault-Tolerant Computing, 1992. FTCS-22. Digest of Papers., Twenty-Second International Symposium on , 1992 ,Page(s): 527 –536.
    [48]. Couvet, D.; Florin, G.; Natkin, S. A statistical clock synchronization algorithm for anisotropic networks, Reliable Distributed Systems, 1991. Proceedings., Tenth Symposium on , 1991 ,Page(s): 42 –51.
    [49]. Jeng-Hong Chen; Lindsey, W.C. Mutual clock synchronization in global digital communication networks, Vehicular Technology Conference, 1996. 'Mobile Technology for the Human Race'., vol.2, 1996, Page(s): 1244 –1248.
    [50] . de Azevedo, M.M.; Blough, D.M. Fault-tolerant clock synchronization of large multicomputers via multistep interactive convergence, Distributed Computing Systems, 1996., Proceedings of the 16th International Conference on , 1996 ,Page(s): 249 –258
    [51]. Bittel, R.; Elsner, W.; Helm, H.; Mukundan, R.; Perreault, D. Clock Synchronization Through Discrete Control Correction, Communications,Vol.22(6),1996, Page(s): 836 –839.
    [52]. Sivaraman, V.; Chiussi, F.M.; Gerla, M. Traffic shaping for end-to-end delay guarantees with EDF scheduling, Quality of Service, 2000. IWQOS. 2000 Eighth International Workshop on , 2000 ,Page(s): 10 –18.
    [53]. Zuberi, K.M.; Shin, K.G. Non-preemptive scheduling of messages on controller area network for real-time control applications, Real-Time Technology and Applications Symposium, 1995. Proceedings ,1995 ,Page(s): 240 –249.
    [54]. Zuberi, K.M.; Shin, K.G. Scheduling messages on controller area network for real-time CIM applications, Robotics and Automation, Vol.13(2) , 1997, Page(s): 310 –316.
    [55]. Zuberi, K.M.; Shin, K.G. Design and implementation of efficient message scheduling for controller area network, Computers, Vol.49(2), 2000, Page(s): 182 –188.
    [56].D.I.Katcher, S.S.Sathaye, J.K.Strosnider. Fixed Priority Scheduling with limited Priority Levels, IEEE Transactions on Computers , Vol.44(9) , 1995, Page(s):1140-1144.
    [57].Marco Di Natale, Scheduling message with earliest deadline techniques, Real-Time Systems,Vol.20,2001,Page(s):255-285.
    [58]. Yoo-Yong Kim; Koh, K. Pessimistic Deadline Ceiling Protocol: a concurrency control protocol under earliest deadline first scheduling, Real-Time Systems, 1995. Proceedings., Seventh Euromicro Workshop on , 1995 ,Page(s): 80 –86.
    [59].Giuseppe Lipari , Giorgio Buttazzo. Schedulability analysis of periodic and aperiodic tasks with resource constraints , Journal of Systems Architecture, Vol.46, 2000, Page(s):327-338.
    [60]. Nolte, T.; Hansson, H.; Norstrom, C. Probabilistic worst-case response-time analysis for the controller area network, Real-Time and Embedded Technology and Applications Symposium, 2003. Proceedings,2003 ,Page(s): 200 –207.
    [61]. Hansson, H.; Norstrom, C.; Punnekkat, S. A simulation based approach for estimating the reliability of distributed real-time systems, Emerging Technologies and
    
    
    Factory Automation, 2001. Proceedings. 2001 8th IEEE International Conference on , vol.1,2001,Page(s): 247 –254.
    [62]. Sjodin, M.; Hansson, H. Improved response-time analysis calculations, Real-Time Systems Symposium, 1998. Proceedings., 1998 ,Page(s): 399 –408.
    [63]. Di Natale, M. Scheduling the CAN bus with earliest deadline techniques, Real-Time Systems Symposium,,2000 ,Page(s): 259 –268.
    [64]. Qiang Ling; Lernmon, M.D. Soft real-time scheduling of networked control systems with dropouts governed by a Markov chain, American Control Conference, 2003. Proceedings of the 2003 , Vol.6 , 2003 ,Page(s): 4845 –4850.
    [65].P.R.Blevins, C.V.Ramamoorthy. Aspects of a dynamically adaptive operating systems, IEEE Transaction on Computers, Vol.25(7),1976, Page(s):713-725.
    [66].J.R.Haritsa , M.Livny, M.J.Carey. Earliest Deadline Scheduling for Real-Time Database Systems , IEEE Real-Time Symposium, 1991 , Page(s):123-128.
    [67].M.Ryu, S.Hong. Toward Automatic Synthesis of Schedulable Real-Time Controllers, Integrated Computer-Aided Engineering, Vol.5(3),1998, Page(s):261-277.
    [68]. Yu Chen; Qionghai Dai. Research on dynamic feedback and elastic scheduling model and algorithm for flexible workload, Computer Networks and Mobile Computing, 2003. ICCNMC 2003. 2003 International Conference on , 2003 ,Page(s): 283 –290.
    [69]. Stankovic, J.A.; Tian He; Abdelzaher, T. Feedback control scheduling in distributed real-time systems,Real-Time Systems Symposium, Proceedings. 22nd IEEE , 2001,Page(s): 59 –70.
    [70] Stankovic, J.A.; Chenyang Lu; Son, S.H.; Gang Tao. The case for feedback control real-time scheduling, Real-Time Systems, 1999. Proceedings of the 11th Euromicro Conference on ,1999 Page(s): 11 –20.
    [71]. Lu, C.; Stankovic, J.A.; Tao, G.; Son, S.H. Design and evaluation of a feedback control EDF scheduling algorithm, Real-Time Systems Symposium, 1999. Proceedings. The 20th IEEE , 1999, Page(s): 56 –67.
    [72]. Cervin, A.; Eker, J. Feedback scheduling of control tasks, Decision and Control, 2000. Proceedings of the 39th IEEE Conference on , Vol.5 , 2000 ,Page(s): 4871 –4876.
    [73]. Chiussi, F.M.; Francini, A.; Khotimsky, D.A. Feedback control in a distributed scheduling architecture, Global Telecommunications Conference, 2000. GLOBECOM '00. IEEE , vol.1, 2000,Page(s): 525 –531.
    [74]刘鲁源,万仁君,李斌.“基于TTCAN协议调度算法及其在汽车控制系统中的应用”,汽车工程,已录用;
    [75]刘鲁源,万仁君,李斌.“基于TTCAN协议的网络控制系统静态调度算法的研究”, 控制与决策,已录用;
    [76]万仁君,李斌,刘鲁源.“基于时间窗口的网络控制系统调度算法分析”,天津大学学报增刊,2003年增刊.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700