DOI QR코드

DOI QR Code

DLC와 전송 데이터 압축영역 설정을 이용한 CAN 데이터 압축

CAN Data Compression Using DLC and Compression Area Selection

  • Wu, Yujing (Department of Electronic Engineering, Chonbuk National University) ;
  • Chung, Jin-Gyun (Department of Electronic Engineering, Chonbuk National University)
  • 투고 : 2013.08.16
  • 발행 : 2013.11.25

초록

Controller Area Network (CAN)의 개발 목적은 차량 내 Electronic Control Units (ECUs)간의 다중 통신을 통해 자동차에서 큰 부피와 무게를 차지하는 와이어 하네스를 저비용의 네트워크 케이블로 대체하기 위한 것이었다. 차량에 탑재되는 ECU들의 증가로 인해 CAN 데이터 전송량이 많아짐에 따라 CAN 버스로드와 오류 확률도 증가하고 있다. CAN 데이터 전송 시간은 CAN 프레임의 길이에 비례하기 때문에 프레임의 길이를 줄이게 되면 효율적으로 CAN 버스로드와 오류확률을 감소시킬 수 있다. 본 논문에서는 CAN 메시지 길이를 감소시키기 위해 Data Length Code(DLC)와 전송 데이터 압축영역 설정 절차를 사용한 CAN 메시지 압축 알고리즘을 제안한다. 제안한 방법에서는 기존의 알고리즘과 달리 변화량을 저장하기 위한 최대 변화량의 범위를 설정하지 않아도 되기 때문에 부정확한 설정에서 발생하는 오류나 지나친 설정에서 발생하는 압축효율 저하를 피할 수 있다. 또한, DLC 크기에 의해 압축 유무를 판단함으로써 기존 방법에서 제안된 두 개의 ID로 압축 여부를 판단하는 비효율적인 문제점을 해결할 수 있다. 실제차량 주행 후 얻은 데이터로 시뮬레이션 해본 결과, 기존의 방법에 비해 최대 52%까지 더 압축된 것을 확인하였다. 또한, 임베디드 테스트 보드를 이용하여 테스트 했을 때 한 개의 64비트 EMS CAN 데이터를 압축하는데 0.16ms가 소요되어 차량용 CAN 통신에 사용가능함을 보인다.

Controller area network (CAN) was designed for multiplexing communication between electronic control units (ECUs) in vehicles and thus for decreasing the overall wire harness. The increasing number of ECUs causes the CAN bus overloaded and consequently the error probability of data transmission increases. Since the time duration for the data transmission is proportional to CAN frame length, it is desirable to reduce the frame length. In this paper, a CAN message compression method is proposed using Data Length Code (DLC) and compression area selection algorithm to reduce the CAN frame length and the error probability during the transmission of CAN messages. By the proposed method, it is not needed to predict the maximum value of the difference in successive CAN messages as opposed to other compression methods. Also, by the use of DLC, we can determine whether the received CAN message has been compressed or not without using two ID's as in conventional methods. By simulations using actual CAN data, it is shown that the CAN transmission data is reduced up to 52 % by the proposed method, compared with conventional methods. By using an embedded test board, it is shown that 64bit EMS CAN data compression can be performed within 0.16ms and consequently the proposed algorithm can be used in automobile applications without any problem.

키워드

참고문헌

  1. Road Vehicles-Low Speed Serial Data Communication Part 2: Low Speed Controller Area Network, ISO 11519-2, 1994.
  2. Road Vehicles-Interchange of Digital Information -Controller Area Network for High-Speed Communication, ISO 11898, 1994.
  3. Rebert Bosch GmbH, "CAN specification 2.0", Chuck Powers, Motorola MCTG Multiplex, April 5, 1995.
  4. S. Channon and P. Miller, "The requirement of future in-vehicle networks and an example implementation", SAE paper 2004-01-0206, Mar. 2004.
  5. Wolfhard Lawrenz, CAN System Engineering: from Theory to Practical Applications. Sringer, 1997.
  6. Yongwook Son, Heeseok Moon, Jaeil Jeong, and Sooyong Lee, "Active CAN data reduction algorithm for in-vehicle network," Proceedings of The Korean Society of Automotive Engineers, pp. 1427-1477, Korea, 2006.
  7. Kyungju Cho, "Variable length can message compression using bit rearrangement," IEEK of Korea, 48(4) pp. 51-56, 2011.