DOI QR코드

DOI QR Code

Implementation of IEEE1588 for Clock Synchronization

CAN 네트워크의 시간동기를 위한 IEEE1588 구현

  • 박성원 (경북대학교 전자공학부 고신뢰성 임베디드 제어 시스템 연구실) ;
  • 김인성 (경상공업고등학교 지능형로봇과) ;
  • 이동익 (경북대학교 전자공학부 고신뢰성 임베디드 제어 시스템 연구실)
  • Received : 2014.02.04
  • Accepted : 2014.02.21
  • Published : 2014.02.28

Abstract

In this paper, an IEEE1588 based clock synchronization technique for CAN (Controller Area Network) is presented. Clock synchronization plays a key role to the success of a networked embedded system. Recently, the IEEE1588 algorithm making use of dedicated chipsets has been widely adopted for the synchronization of various industrial applications using Ethernet. However, there is no chipset available for CAN. This paper presents the implementation of IEEE1588 for CAN, which is implemented using only software and CAN packets without any dedicated chipset. The proposed approach is verified by the comparison between the estimated synchronization precision with a simple model and the measured precision with experimental setup.

본 논문에서는 CAN(Controller Area Network)의 시간동기를 위한 IEEE1588 알고리즘의 구현에 관한 연구결과를 제시한다. 시간동기는 네트워크 기반 임베디드 시스템의 안정성, 효율, 신뢰성 개선 측면에서 매우 중요하다. 최근 전용 칩을 이용하는 IEEE1588 표준이 Ethernet 기반 임베디드 시스템의 시간동기에 폭넓게 적용되고 있다. IEEE1588과 같은 표준화된 시간동기 기법은 기존의 'in-house' 시간동기 기법에 비해 많은 장점들을 제공하지만, CAN을 위한 IEEE1588 전용 칩은 현재까지 상용화된 제품을 찾아보기 어렵다. 본 논문에서는 전용 칩을 사용하지 않고 소프트웨어와 CAN 메시지만을 이용하여 IEEE1588 알고리즘을 구현한다. 제안된 방법의 효용성을 확인하기 위해 간단한 모델을 이용하여 추정한 동기정밀도와 실험용 네트워크를 통해 측정한 동기정밀도를 비교분석 한다.

Keywords

References

  1. ISO 11898, Road vehicles-interchange of digital information-Controller Area Network(CAN) for high-speed communication, ISO, Nov, 1993.
  2. H.A. Thompson, et al., "A CANbus-based safety-critical distributed aeroengine control systems architecture demonstrator," J. MICPRO, vol. 23, pp. 345-355, Nov. 1999.
  3. M. A. Parker, L. Ran, and S. J. Finney, "Distributed control of a fault-tolerant modular multilevel inverter for direct-drive wind turbine grid interfacing," IEEE Trans. Ind. Electron., vol. 60, no. 2, pp. 509-522, Feb. 2013. https://doi.org/10.1109/TIE.2012.2186774
  4. M. Song, E. Kim, and D. Lee, "Reliability analysis of dual-channel CAN bus for submarine combat system," J. KICS, vol. 28, no. 12, Dec. 2013. https://doi.org/10.7840/kics.2013.38C.12.1170
  5. D. Kim, S. Yang, H. Kim, Y. Son, and S. Han, "Implement of VLC System Based on CAN Communication," J. KICS, vol. 36, no. 11, Nov. 2011. https://doi.org/10.7840/KICS.2011.36B.11.1389
  6. T. Fuhrer, B. Muller, W. Dieterle, F. Hartwich, R. Hugel, M. Walther, and R. B. GmbH, "Time triggered communication on CAN," in Proc. Int. CAN Conf., Amsterdam, The Netherlands, 2000.
  7. L. Almeida, P. Pedreiras, and J. A. Fonseca, "The FTT-CAN protocol: Why and how," IEEE Trans. Ind. Electron., vol. 49, no. 6, pp. 1189-1201, Dec. 2002. https://doi.org/10.1109/TIE.2002.804967
  8. M. Short and M. Pont, "Fault-tolerant time-triggered communication using CAN," IEEE Trans. Ind. Informat., vol. 3, no. 2, pp. 131-142, May 2007. https://doi.org/10.1109/TII.2007.898477
  9. L. Lamport, "Time, clocks, and the ordering of events in a distributed system," Communication of the ACM, vol. 21, no. 7, pp. 558-565, July 1978. https://doi.org/10.1145/359545.359563
  10. G. Rodríguez-Navas and J. Proenza, "Clock synchronization in CAN distributed embedded systems," in Proc. RTN, Italy, June 2004.
  11. M. Gergeleit and H. Streich, "Implementing a distributed high-resolution real-time clock using the CAN-bus," in Proc. 1st CiA Int. CAN Conf., Sept. 1994.
  12. D. Lee, "Fault-tolerant clock synchronization for low-cost networked embedded systems," J. Korean Sensors Soc., vol. 16, no. 1, pp. 52-61, 2007. https://doi.org/10.5369/JSST.2007.16.1.052
  13. G. Rodriguez-Navas, S. Roca, and J. Proenza, "Orthogonal, fault-tolerant, and high-precision clock synchronization for the controller area network," IEEE Trans. Ind. Informat. vol. 4, no. 2, May 2008.
  14. IEEE Instrumentation and Measurement Society, "IEEE standard for a precision clock synchronization protocol for networked measurement and control system," July 2008.
  15. M. Anyaegbu, C. Wang, and W. Berrie, "Dealing with packet delay variation in IEEE 1588 synchronization using a sample-mode filter," IEEE ITS Mag., vol. 5, no. 4, pp. 20-27, 2013.
  16. G. Giorgi and C. Narduzzi, "Performance analysis of Kalman-filter-based clock synchronization in IEEE 1588 networks," IEEE Trans. Instrumentation and Measurement, Vol. 60, No. 8, pp. 2902-2909, 2011. https://doi.org/10.1109/TIM.2011.2113120
  17. J. H. Han and D. K. Jeong, "A practical implementation of IEEE 1588-2008 transparent clock for distributed measurement and control system," IEEE Trans. Instrumentation and Measurement, vol. 59, no. 2, pp. 433-439, 2010. https://doi.org/10.1109/TIM.2009.2024371
  18. Z. Du, Y. Lu, and Y. Ji, "An enhanced end-to-end transparent clock mechanism with a fixed delay ratio," IEEE Commun. Lett., vol. 15, no. 8, pp. 872-874, 2011. https://doi.org/10.1109/LCOMM.2011.062911.110918
  19. A. Bondavalli, F. Brancati, A. Flammini, and S. Rinaldi, "Master failure detection protocol in internal synchronization environment," IEEE Trans. Instrumentation and Measurement, vol. 62, no. 1, pp. 4-12, 2013. https://doi.org/10.1109/TIM.2012.2209916
  20. G. Gaderer, P. Loschmidt, and T. Sauter, "Improving fault tolerance in high-precision clock synchronization," IEEE Trans. Ind. Informat., vol. 6, no. 2, pp. 206- 215, 2010. https://doi.org/10.1109/TII.2010.2044580
  21. D. Kim, Y. Jo, D. Lee, "Analysis of Transmission Delay and Fault Recovery Performance with EtherCAT for In-Vehicle Network," J. KICS, vol. 37C, no. 11, Nov. 2012. https://doi.org/10.7840/kics.2012.37C.11.1036
  22. D. Lee, J. Allan, and S. Bennett, Distributed real-time control systems using CAN, in Fieldbus Technol. (Ed. N. P. Mahalik), Springer, 2003.
  23. T.C. Yang, "Networked control system: a brief survey," IEE Proc. Control Theory Appl., vol. 153, no. 4, pp. 403-412, 2006. https://doi.org/10.1049/ip-cta:20050178
  24. R. Luck and A. Ray, "An observer-based compensator for distributed delays," Automatica, vol. 26, no. 5, pp. 903-908, 1990. https://doi.org/10.1016/0005-1098(90)90007-5
  25. H. Chan and U. Ozguner, "Closed-loop control of systems over a communications network with queues," Int. J. Control, vol. 62, no. 3, pp. 493-510, 1995. https://doi.org/10.1080/00207179508921553
  26. H. Kopetz, Real-Time Systems: Design Principles for Distributed Embedded Applications, Kluwer, 1997.
  27. TTTech Computertechnik GmbH, Timetriggered protocol TTP/C, High-Level Specification Document, Available: http://ww w.tttech.com
  28. FlexRay Requirement Specification, ver 2.0.2, April 2002, Available: http://www.flexray.com
  29. A.V. Schedl, "Design and simulation of clock synchronization in distributed systems," Ph.D. dissertation, Technical University of Vienna, Austria, 1996.
  30. J. M. Rushby and F. Henke, "Formal verification of algorithms for critical systems", IEEE Trans. Software Engineering, vol. 19, no. 1, pp. 13-23, 1993. https://doi.org/10.1109/32.210304
  31. D. L. Mills, A. Thyagarjan, B. C. Huffman, "Internet timekeeping around the globe," Tech. Report, University of Delaware, 2002.
  32. Vector GmbH, CANalyzer, Available: http://v ector.com/vk_canalyzer_ko.html