KR101689585B1 - Data transmission method in controller area network communication - Google Patents

Data transmission method in controller area network communication Download PDF

Info

Publication number
KR101689585B1
KR101689585B1 KR1020100138954A KR20100138954A KR101689585B1 KR 101689585 B1 KR101689585 B1 KR 101689585B1 KR 1020100138954 A KR1020100138954 A KR 1020100138954A KR 20100138954 A KR20100138954 A KR 20100138954A KR 101689585 B1 KR101689585 B1 KR 101689585B1
Authority
KR
South Korea
Prior art keywords
data acquisition
data
acquisition packet
packet
communication
Prior art date
Application number
KR1020100138954A
Other languages
Korean (ko)
Other versions
KR20120077117A (en
Inventor
진연실
Original Assignee
콘티넨탈 오토모티브 시스템 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 콘티넨탈 오토모티브 시스템 주식회사 filed Critical 콘티넨탈 오토모티브 시스템 주식회사
Priority to KR1020100138954A priority Critical patent/KR101689585B1/en
Publication of KR20120077117A publication Critical patent/KR20120077117A/en
Application granted granted Critical
Publication of KR101689585B1 publication Critical patent/KR101689585B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Communication Control (AREA)

Abstract

본 발명은 캔 통신에서의 데이터 전송 방법을 개시한다. 본 발명에 따른 캔 통신에서의 데이터 전송 방법은, 캔 통신장치의 마스터 디바이스에서 데이터 취득 요청이 있는 경우 이에 응답하는 슬레이브 디바이스에서 패킷 식별자(PID: Packet IDentifier)를 포함하지 않는 데이터 전송 오브젝트(DTO: Data Transfer Object)를 형성하여 8 바이트 크기의 데이터 전송을 가능하게 하고, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하는 캔 통신 아이디를 할당한다고 하더라도 단일의 캔 메시지 오브젝트를 토대로 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 가능하게 하기 위한 구성으로 이루어진다. 따라서, 본 발명은 8 바이트 크기의 데이터를 모니터링할 수 없으며, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)이 각 캔 통신 아이디를 갖게 되어 캔 통신 아이디의 개수만큼 캔 메시지 오브젝트를 사용하지 않아도 단일의 캔 메시지 오브젝트만을 통해 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 이루어 보다 더 효율적인 캔 통신을 구현할 수 있다.The present invention discloses a data transmission method in a CAN communication. A method of transmitting data in a can communication according to the present invention is a method for transmitting data in a slave device that responds to a request for data acquisition in a master device of a communication device that cancels data transfer objects (DTOs) that do not include a packet identifier (PID) Data transfer object is formed to enable data transmission of 8 bytes in size, and even if a CAN communication ID corresponding to each data acquisition packet (DAQ: Data Acquisition Packet) is allocated, each data acquisition packet (DAQ: Data Acquisition Packet). Therefore, according to the present invention, it is not possible to monitor 8-byte data, and each data acquisition packet DAQ (Data Acquisition Packet) has each can communication ID, It is possible to transmit data acquisition packets (DAQ) through only the CAN message object, thereby realizing more efficient CAN communication.

Description

캔 통신에서의 데이터 전송 방법{DATA TRANSMISSION METHOD IN CONTROLLER AREA NETWORK COMMUNICATION}TECHNICAL FIELD [0001] The present invention relates to a data transmission method,

본 발명은 캔 통신에서의 데이터 전송 방법에 관한 것으로, 더욱 상세하게는 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 효율적으로 구현하기 위한 캔 통신에서의 데이터 전송 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission method in a can communication, and more particularly, to a data transmission method in a can communication for efficiently implementing transmission of a data acquisition packet (DAQ: Data Acquisition Packet).

최근 차량에는 다양한 전자 시스템이 결합되고 있다. 전자 부트 작동기(electronic boot release), 전동 거울 조정장치, 비 탐지, 썬루프, 기상 관리장치, 파워 윈도우, 좌석 조절장치, 파워 트레인, 안정성 제어(ABS, 견인 제어, 액티브 서스펜션), 엔진 관리, 변속 같은 실시간 제어 애플리케이션, 인터넷, 디지털 TV 등의 멀티미디어 기기 등이 차량에 장착되어 사용되고 있다.Recently, various electronic systems have been combined in vehicles. Power window, seat adjuster, powertrain, stability control (ABS, traction control, active suspension), engine management, speed change, electronic control, electronic boot release, Such as real-time control applications, multimedia devices such as the Internet and digital TVs, are installed in vehicles.

이것들을 함께 연결하기 위해 보통 사용되는 배선 장치는 믿어지지 않을 정도의 엄청난 케이블들을 필요로 하며, 이것은 전체적인 차량의 무게와 제조 비용에서 상당한 부분을 차지하게 된다.Commonly used wiring devices to connect them together require an incredible amount of cables, which make up a significant portion of the overall vehicle weight and manufacturing cost.

따라서, 이러한 모든 시스템들을 차량 둘레에서 실행되는 한 개 혹은 두 개의 전선들로 구성된, 사무실의 데스크탑 PC들을 함께 연결한 것과 같은 방식인, 하나의 공통 네트워크 버스에 연결함으로써 차량에서의 배선 양을 획기적으로 감소시키고, 차량의 총 제조 비용도 감소시키게 된다. 이러한 네트워크를 캔(CAN: Controller Area Network)이라 한다.Therefore, by connecting all these systems to one common network bus, which is the same way as connecting desktop PCs in an office, consisting of one or two wires running around the vehicle, the amount of wiring in the vehicle is dramatically reduced And the total manufacturing cost of the vehicle is also reduced. Such a network is referred to as CAN (Controller Area Network).

이와 같은 캔 통신에는 CCP/XCP 프로토콜이 사용되고 있으며, 이는 전자제어유닛에서 데이터를 수집하고 교정하기 위한 프로토콜이다.The CCP / XCP protocol is used for such can communication, which is a protocol for collecting and calibrating data in the electronic control unit.

이 프로토콜은 ASEP(Arbeitskreis zur Standardisierung von Applikationssystemen)로 알려졌던, ASAM(Association for Standarisation of Automation- and Measuring System)에 의해 정의되어 있다. 이것은 여러 주요 차량제조업체들로 구성된 국제적인 기구에 의한 것이다.This protocol is defined by ASAM (Association for Stand- ardation of Automation- and Measuring System), known as ASEP (Arbeitskreis zur Standardisation von Applikationssystemen). This is due to an international organization consisting of several major vehicle manufacturers.

이러한 규격에 준하여, 종래에는 도 1에 도시된 바와 같이 데이터 전송 오브젝트(DTO: Data Transfer Object)의 생성에 있어서 데이터 취득 패킷(DAQ: Data AcQuisition Packet)으로 전송할 수 있는 최대 데이터 크기가 7 바이트로 제한된다.Conventionally, as shown in FIG. 1, in the generation of a data transfer object (DTO), the maximum data size that can be transmitted by a data acquisition packet (DAQ) is limited to 7 bytes do.

즉, 이는 Full-word(64 비트)의 데이터는 모니터링 할 수 없는 구조이고, 단일의 캔 메시지 오브젝트에 단일의 캔 통신 아이디로 데이터 취득 패킷(DAQ: Data AcQuisition Packet)를 전송하는 구조이며, 수신 측에서는 데이터 전송 오브젝트(DTO: Data Transfer Object)에 포함되어 있는 패킷 식별자(PID: Packet IDentifier)를 통해 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)를 구별하게 된다.That is, this is a structure that can not monitor full-word (64-bit) data and transmits a data acquisition packet (DAQ) to a single CAN message object with a single CAN communication ID. Each data acquisition packet (DAQ: Data Acquisition Packet) is distinguished through a packet identifier (PID) included in a data transfer object (DTO).

따라서, 종래의 캔 통신에서의 데이터 전송 구조에서는 8 바이트 크기의 데이터를 모니터링할 수 없으며, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)이 각 캔 통신 아이디를 갖게 되어 캔 통신 아이디의 개수만큼 캔 메시지 오브젝트를 사용하여야 하는 문제점이 있다.Therefore, in the data transmission structure in the conventional can communication, it is not possible to monitor data of 8 bytes in size, and each data acquisition packet (DAQ: Data Acquisition Packet) has each can communication ID, There is a problem that an object should be used.

따라서, 본 발명은 상기의 문제점들을 해결하기 위해 창출된 것으로, 본 발명의 목적은 캔 통신장치의 마스터 디바이스에서 데이터 취득 요청이 있는 경우 이에 응답하는 슬레이브 디바이스에서 패킷 식별자(PID: Packet IDentifier)를 포함하지 않는 데이터 전송 오브젝트(DTO: Data Transfer Object)를 형성하여 8 바이트 크기의 데이터 전송을 가능하게 하고, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하는 캔 통신 아이디를 할당한다고 하더라도 단일의 캔 메시지 오브젝트를 토대로 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 가능하게 하기 위한 캔 통신에서의 데이터 전송 방법을 제공하는 데 있다.SUMMARY OF THE INVENTION Accordingly, the present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a packet data communication system, which includes a packet identifier (PID) in a slave device responding to a data acquisition request from a master device Data transfer object (DTO) is formed so as to enable 8-byte data transmission, and even if a can communication ID corresponding to each data acquisition packet (DAQ: Data Acquisition Packet) is allocated, And a data transmission method in a can communication for enabling transmission of each data acquisition packet (DAQ: Data Acquisition Packet) based on a message object.

상기 목적을 달성하기 위한 본 발명의 관점에 따른 캔 통신에서의 데이터 전송 방법은, 캔 통신장치에서 데이터 취득을 위한 제어 요청에 응답하여 데이터 취득 패킷의 전송을 위한 데이터 전송 오브젝트를 패킷 식별자 없이 생성하는 단계, 상기 데이터 전송 오브젝트를 이용해 데이터 취득 패킷 리스트를 생성하고 상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷에 상응하는 캔 통신 아이디를 할당하는 단계, 상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷에 상응하는 캔 통신 아이디 중에서 공통되는 인자를 추출하여 마스크 값을 설정하고 상기 마스크 값을 이용해 아이디 필드를 설정한 후 상기 데이터 전송 오브젝트를 이용한 데이터 필드를 설정하여 단일의 캔 메시지 오브젝트를 생성하는 단계 및 상기 단일의 캔 메시지 오브젝트를 통해 상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷을 전송하는 단계를 포함하는 것을 특징으로 한다.According to an aspect of the present invention for achieving the above object, there is provided a data transmission method in a can communication, comprising: generating a data transmission object for transmission of a data acquisition packet in response to a control request for data acquisition in a can communication device Generating a data acquisition packet list using the data transfer object and assigning a can communication ID corresponding to each data acquisition packet in the data acquisition packet list; Extracting a common factor among communication IDs, setting a mask value, setting an ID field using the mask value, and setting a data field using the data transfer object to generate a single CAN message object; The message object It is characterized in that it comprises the step of transmitting each data packet of the acquired data acquired packet list.

바람직하게는, 상기 캔 통신에서의 데이터 전송 방법은 상기 데이터 취득을 위한 제어 요청이 수신되는 경우 상기 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 위한 변수 및 상기 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 인덱스를 초기화하고 상기 단일의 캔 메시지 오브젝트에 대한 레지스터를 초기화하는 단계를 더 포함하는 것을 특징으로 한다.Preferably, the method for transmitting data in the can communication includes a step of transmitting a data acquisition packet (DAQ: Data Acquisition Packet (DAQ)) for transmission of the data acquisition packet (DAQ) Initializing an index of a single can message object and initializing a register for the single can message object.

바람직하게는, 상기 데이터 전송 오브젝트는 상기 패킷 식별자(PID: Packet IDentifier)를 포함하지 아니한 것에 상응하여 해당 데이터를 나타내기 위한 ODT(Object Descriptor Table) 정보의 크기를 확장하는 구조로 구현되는 것을 특징으로 한다.Advantageously, the data transfer object is implemented in a structure that expands the size of ODT (Object Descriptor Table) information for representing the corresponding data in a manner that does not include the packet identifier (PID) do.

바람직하게는, 상기 ODT(Object Descriptor Table) 정보의 크기는 8 바이트로 설정되는 것을 특징으로 한다.Preferably, the size of the Object Descriptor Table (ODT) information is set to 8 bytes.

바람직하게는, 상기 캔 통신 아이디를 할당하는 단계는 상기 데이터 취득 패킷 리스트의 수와 상응하는 개수로 메시지 버퍼를 생성하는 단계, 상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)별로 기본 캔 통신 아이디를 할당하는 단계 및 상기 기본 캔 통신 아이디에 해당 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 메시지 버퍼의 인덱스를 더하여 상기 캔 통신 아이디를 계산하는 단계를 포함하는 것을 특징으로 한다.Preferably, the step of assigning the can communication ID includes: generating a message buffer in a number corresponding to the number of the data acquisition packet lists; generating a message buffer corresponding to each data acquisition packet (DAQ: Data Acquisition Packet) Calculating a can communication ID by adding a basic can communication ID and an index of a message buffer for a data acquisition packet (DAQ) to the basic can communication ID.

바람직하게는, 상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)을 전송하는 단계는 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 데이터 정보를 상응하는 메시지 버퍼에 복사하는 단계, 상기 메시지 버퍼에 저장되어 있는 데이터 정보를 상기 단일의 캔 메시지 오브젝트 중 데이터 필드에 복사하고, 상기 단일의 캔 메시지 오브젝트 중 아이디 필드에는 상기 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하여 계산된 캔 통신 아이디로 변경하는 단계 및 상기 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하여 아이디 필드 및 데이터 필드가 채워진 상기 단일의 캔 메시지 오브젝트로 상기 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet) 전송을 실행하는 단계를 포함하는 것을 특징으로 한다.Preferably, the step of transmitting each data acquisition packet (DAQ) in the data acquisition packet list includes a step of copying data information for a data acquisition packet (DAQ) to be transmitted into a corresponding message buffer A Data Acquisition Packet (DAQ) of the transmission object is stored in the ID field of the single CAN message object, To a can communication ID that is calculated in accordance with a data reception packet (DAQ), and acquiring data of the transmission object with the single can message object filled with an ID field and a data field corresponding to the data acquisition packet (DAQ) And performing a DAQ (Data Acquisition Packet) transmission And a gong.

바람직하게는, 상기 캔 통신장치는 캔 통신에서의 마스터 디바이스로부터 상기 데이터 취득을 위한 제어 요청을 제공받는 슬레이브 디바이스인 것을 특징으로 한다.Preferably, the can communication device is a slave device that receives a control request for data acquisition from a master device in the can communication.

따라서, 본 발명에서는 캔 통신장치의 마스터 디바이스에서 데이터 취득 요청이 있는 경우 이에 응답하는 슬레이브 디바이스에서 패킷 식별자(PID: Packet IDentifier)를 포함하지 않는 데이터 전송 오브젝트(DTO: Data Transfer Object)를 형성하여 8 바이트 크기의 데이터 전송을 가능하게 하고, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하는 캔 통신 아이디를 할당한다고 하더라도 단일의 캔 메시지 오브젝트를 토대로 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 가능하게 함으로써, 8 바이트 크기의 데이터를 모니터링할 수 없으며, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)이 각 캔 통신 아이디를 갖게 되어 캔 통신 아이디의 개수만큼 캔 메시지 오브젝트를 사용하지 않아도 단일의 캔 메시지 오브젝트만을 통해 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 이루어 보다 더 효율적인 캔 통신을 구현할 수 있는 이점이 있다.Accordingly, in the present invention, when there is a data acquisition request from the master device of the CAN communication device, a slave device responding thereto forms a data transfer object (DTO) that does not include a packet identifier (PID) (DAQ: Data Acquisition Packet (DAQ)) based on a single CAN message object even when a can communication ID corresponding to each data acquisition packet (DAQ) It is not possible to monitor data of 8 bytes in size, and each data acquisition packet (DAQ) has a communication ID for each can, so that a single message object can not be used for the number of communication IDs (DAQ: Data AcQui < RTI ID = 0.0 > and it is advantageous in that more efficient can communication can be realized.

도 1은 종래 기술에 의한 캔 메시지 오브젝트의 생성 구조를 나타내는 도면,
도 2는 본 발명에 의한 캔 통신장치를 일실시 예로 나타내는 도면,
도 3은 본 발명에 의한 캔 메시지 오브젝트의 생성 구조를 일실시 예로 나타내는 도면,
도 4는 도 3에 도시된 도면 내용 중 캔 통신 아이디의 생성 과정을 일실시 예로 나타내는 도면, 및
도 5는 도 2에 도시된 캔 통신장치의 동작 과정을 일실시 예로 나타내는 도면이다.
Brief Description of the Drawings Fig. 1 is a diagram showing a generation structure of a can message object according to the prior art,
2 is a diagram illustrating an embodiment of a can communication device according to the present invention,
FIG. 3 is a diagram illustrating a structure for generating a can message object according to an embodiment of the present invention.
4 is a diagram illustrating a process of generating a can communication ID among the contents shown in FIG. 3 as an embodiment, and FIG.
FIG. 5 is a diagram illustrating an operation procedure of the can communication apparatus shown in FIG. 2 according to an embodiment of the present invention.

이하, 첨부도면들을 참조하여 본 발명에 따른 캔 통신장치의 바람직한 실시예를 보다 상세히 설명하면 다음과 같다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a preferred embodiment of a can communication device according to the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 의한 캔 통신장치를 일실시 예로 나타내는 도면이다. 도 2에 단지 예로써 도시된 바와 같이, 캔 통신장치는 캔 버스로 연결된 마스터 디바이스(100) 및 다수의 슬레이브 디바이스(200)로 구성된다.2 is a diagram showing an embodiment of a can communication device according to the present invention. As shown only by way of example in Fig. 2, the CAN communication device is comprised of a master device 100 and a plurality of slave devices 200 connected by a CAN bus.

여기서, 마스터 디바이스(100)는 마스터 디바이스(100) 및 다수의 슬레이브 디바이스(200) 간의 모든 통신을 제어하게 되며, 다수의 슬레이브 디바이스(200) 중 1 이상으로부터 데이터 취득을 실행하기 위하여 해당 슬레이브 디바이스(200)에 데이터 취득을 위한 제어 요청을 전달한다.Here, the master device 100 controls all communication between the master device 100 and the plurality of slave devices 200. In order to perform data acquisition from at least one of the plurality of slave devices 200, the slave device 200 200). ≪ / RTI >

이에, 해당 슬레이브 디바이스(200)는 수신한 데이터 취득을 위한 제어 요청에 응답하여 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 위한 과정들을 실행한다.Accordingly, the slave device 200 executes processes for transmitting a data acquisition packet (DAQ) in response to a control request for obtaining the received data.

즉, 본 발명은 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 위한 과정을 기존과 다른 방식으로 실행하기 위한 것에 대한 것이다.That is, the present invention relates to a process for transmitting a data acquisition packet (DAQ) in a manner different from the conventional method.

구체적으로, 도 3에 도시된 캔 메시지 오브젝트의 생성 구조를 참고로 하여 이하에서 설명한다.Specifically, the following description will be made with reference to the generation structure of the can message object shown in Fig.

슬레이브 디바이스(200)는 데이터 취득을 위한 제어 요청에 응답하여 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 위한 데이터 전송 오브젝트(DTO: Data Transfer Object)를 생성한다.The slave device 200 generates a data transfer object (DTO) for transferring a data acquisition packet (DAQ) in response to a control request for data acquisition.

여기서, 데이터 전송 오브젝트(DTO: Data Transfer Object)에는 데이터 취득 패킷(DAQ: Data AcQuisition Packet)를 식별하기 위한 패킷 식별자(PID: Packet IDentifier)가 포함되지 않으며, 패킷 식별자(PID: Packet IDentifier)를 포함하지 않게 된 구조로 인해 ODT(Object Descriptor Table) 정보의 크기를 더 확장하게 되는 구조로 구현된다.Here, the data transfer object (DTO) does not include a packet IDentifier (PID) for identifying a data acquisition packet (DAQ) and includes a packet identifier (PID) The structure of the object descriptor table (ODT) information is further extended.

예컨대, ODT(Object Descriptor Table) 정보의 크기가 7 바이트에서 8 바이트로 확장됨에 따라, 전송 가능한 데이터 크기가 8 바이트로 확장되는 것이다.For example, as the size of ODT (Object Descriptor Table) information is expanded from 7 bytes to 8 bytes, the data size that can be transmitted is extended to 8 bytes.

패킷 식별자(PID: Packet IDentifier)의 생략으로 인해, 데이터 취득 패킷(DAQ: Data AcQuisition Packet)을 식별하기 위해서 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)별로 서로 다른 캔 통신 아이디를 할당하게 된다.Due to the omission of packet identifiers (PIDs), different can communication IDs are allocated for each data acquisition packet (DAQ: Data Acquisition Packet) to identify a data acquisition packet (DAQ).

또한, 데이터 취득 패킷 리스트의 각 데이터 취득 패킷에 상응하는 캔 통신 아이디 중에서 공통되는 인자를 추출하여 마스크 값을 설정하고 설정한 마스크 값을 이용해 아이디 필드를 설정한 후 데이터 전송 오브젝트를 이용한 데이터 필드를 설정하여 단일의 캔 메시지 오브젝트를 생성한다.In addition, a common factor among can communication IDs corresponding to each data acquisition packet in the data acquisition packet list is extracted, a mask value is set, an ID field is set using the set mask value, and a data field using the data transfer object is set To create a single can message object.

이와 같은 단일의 캔 메시지 오브젝트를 이용하여 여러 데이터 취득 패킷(DAQ: Data AcQuisition Packet)를 전송하게 되는데, 구체적으로는 다음과 같다.Various data acquisition packets (DAQ: Data Acquisition Packet) are transmitted using the single CAN message object.

슬레이브 디바이스(200)는 데이터 취득 패킷 리스트 중 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 할당된 캔 통신 아이디가 '6A0h ~ 6AFh'라고 가정하면, 첫 번째 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대해 '6A0h'의 캔 통신 아이디를 할당하여 상기 언급된 단일의 캔 메시지 오브젝트 중 아이디 필드에 '6A0h'의 아이디로 변경하고 상기 언급된 단일의 캔 메시지 오브젝트 중 데이터 필드에는 해당 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 DAQ 정보를 실어 전송 처리하게 된다.Assuming that the can communication ID assigned to each data acquisition packet (DAQ: Data Acquisition Packet) in the data acquisition packet list is '6A0h to 6AFh', the slave device 200 transmits the data acquisition packet DAQ: Data Quot; 6A0h " is assigned to the Acquisition Packet) to change the ID of '6A0h' in the ID field of the single can message object mentioned above, and to the data field of the single can message object mentioned above DAQ information for a DAQ (Data Acquisition Packet).

아울러, 두 번째 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대해서는 '6A0h'에서 1 증가된 아이디(즉, '6A1h')를 할당하여 상기 언급된 단일의 캔 메시지 오브젝트 중 아이디 필드에 '6A1h'의 아이디로 변경하고 상기 언급된 단일의 캔 메시지 오브젝트 중 데이터 필드에는 해당 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 DAQ 정보를 실어 전송 처리하게 된다.In addition, for the DAQ (Data Acquisition Packet) of the second transmission object, an ID (i.e., '6A1h') increased by one in '6A0h' is allocated to the ID field of the above- 6A1h ', and transmits DAQ information for the corresponding data acquisition packet (DAQ) to the data field of the single CAN message object mentioned above.

도 4는 도 3에 도시된 도면 내용 중 캔 통신 아이디의 생성 과정을 일실시 예로 나타내는 도면이다. 도 4에 단지 예로써 도시된 바와 같이, 슬레이브 디바이스(200)는 데이터 취득 패킷 리스트를 생성한 후 생성한 데이터 취득 패킷 리스트의 수(즉, 리스트에 포함된 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 수)와 동일한 수로 메시지 버퍼를 생성한다.FIG. 4 is a diagram illustrating a process of generating a can communication ID among the contents shown in FIG. As shown by way of example only in FIG. 4, the slave device 200 calculates the number of data acquisition packet lists generated after generating the data acquisition packet list (i.e., each data acquisition packet DAQ: Data Acquisition Packet The number of message buffers).

또한, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 인덱스와 이에 상응하는 각 메시지 버퍼의 인덱스를 동일하게 적용한다.Also, an index for each data acquisition packet (DAQ) and an index of each message buffer corresponding thereto are applied equally.

이후, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 캔 통신 아이디를 할당하기 위해 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)별로 기본 캔 통신 아이디를 할당한 후, 할당한 기본 캔 통신 아이디에 당 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 메시지 버퍼의 인덱스를 더하는 방식으로 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 캔 통신 아이디를 계산하여 도출한다.After that, a basic can communication ID is allocated for each data acquisition packet (DAQ) to allocate a can communication ID for each data acquisition packet (DAQ: Data Acquisition Packet), and then a basic can communication ID (DAQ) (Data Acquisition Packet) by adding the index of the message buffer to the DAQ (Data Acquisition Packet).

한편, 단일의 캔 메시지 오브젝트를 이용하여 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)를 전송하는 과정을 살펴보면, 먼저 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 데이터 정보를 상응하는 메시지 버퍼에 복사한다.In the process of transmitting each DAQ (Data Acquisition Packet) using a single CAN message object, data information on a DAQ (Data Acquisition Packet) to be transmitted is first transmitted to a corresponding message Copy to the buffer.

그리고, 슬레이브 디바이스(200)는 메시지 버퍼에 저장되어 있는 데이터 정보를 다시 단일의 캔 메시지 오브젝트 중 데이터 필드에 복사하고, 단일의 캔 메시지 오브젝트 중 아이디 필드에는 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대해 할당된 캔 통신 아이디로 변경하여, 전송하기 위한 단일의 캔 메시지 오브젝트를 완료함에 따라 완료된 데이터 구조로 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)을 마스터 디바이스(100)에 전송한다.Then, the slave device 200 copies the data information stored in the message buffer into the data field of the single CAN message object again. In the ID field of the single CAN message object, the data acquisition packet (DAQ: Data Acquisition (DAQ: Data Acquisition Packet) to the master device 100 with the completed data structure by completing a single CAN message object for transferring the data do.

이후, 다른 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)을 단일의 캔 메시지 오브젝트를 통해 전송하기 위한 과정도 상기 언급된 과정을 반복하여 실행된다.Thereafter, a process for transmitting a data acquisition packet (DAQ) of another transmission object through a single CAN message object is also repeated.

즉, 단일의 캔 메시지 오브젝트 중 아이디 필드에 다른 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 할당된 캔 통신 아이디를 적용하여 변경하고, 단일의 캔 메시지 오브젝트 중 데이터 필드에는 다른 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)와 상응하는 메시지 버퍼에 저장되어 있는 데이터 정보를 불러와 복사함에 따라, 이러한 데이터 구조로 다른 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 하게 되는 것이다.That is, a can communication ID assigned to another data acquisition packet (DAQ: Data Acquisition Packet) is applied to the ID field of a single CAN message object to change it, and a data field of another CAN object Data packets stored in a message buffer corresponding to a data acquisition packet (DAQ: Data Acquisition Packet) are copied and copied, and data transmission packets (DAQ: Data Acquisition Packet) .

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당기술 분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the present invention as defined by the following claims It can be understood that

또한, 본 발명은 캔 통신장치의 마스터 디바이스에서 데이터 취득 요청이 있는 경우 이에 응답하는 슬레이브 디바이스에서 패킷 식별자(PID: Packet IDentifier)를 포함하지 않는 데이터 전송 오브젝트(DTO: Data Transfer Object)를 형성하여 8 바이트 크기의 데이터 전송을 가능하게 하고, 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하는 캔 통신 아이디를 할당한다고 하더라도 단일의 캔 메시지 오브젝트를 토대로 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 가능하게 하기 위한 것임에 따라, 시판 또는 영업의 가능성이 충분할 뿐만 아니라 현실적으로 명백하게 실시할 수 있는 정도이므로 산업상 이용가능성이 있는 발명이다.Also, the present invention forms a data transfer object (DTO) that does not include a packet identifier (PID) in a slave device that responds to a data acquisition request from the master device of the communication device, (DAQ: Data Acquisition Packet (DAQ)) based on a single CAN message object even when a can communication ID corresponding to each data acquisition packet (DAQ) The present invention is an invention that is industrially applicable since it is possible to carry out a commercial operation or a business operation but is capable of being practically and practically apparent.

100: 마스터 디바이스 200: 슬레이브 디바이스100: master device 200: slave device

Claims (7)

캔 통신에서의 데이터 전송 방법에 있어서,
캔 통신장치에서 데이터 취득을 위한 제어 요청에 응답하여 데이터 취득 패킷의 전송을 위한 데이터 전송 오브젝트를 패킷 식별자 없이 생성하는 단계;
상기 데이터 전송 오브젝트를 이용해 데이터 취득 패킷 리스트를 생성하고 상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷에 상응하는 캔 통신 아이디를 할당하는 단계;
상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷에 상응하는 캔 통신 아이디 중에서 공통되는 인자를 추출하여 마스크 값을 설정하고 상기 마스크 값을 이용해 아이디 필드를 설정한 후 상기 데이터 전송 오브젝트를 이용한 데이터 필드를 설정하여 단일의 캔 메시지 오브젝트를 생성하는 단계; 및
상기 단일의 캔 메시지 오브젝트를 통해 상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷을 전송하는 단계;를 포함하는 것을 특징으로 하는 캔 통신에서의 데이터 전송 방법.
A method of transmitting data in a can communication,
Generating a data transfer object for transmission of a data acquisition packet in response to a control request for data acquisition in the CAN communication device without a packet identifier;
Generating a data acquisition packet list using the data transfer object and allocating a can communication ID corresponding to each data acquisition packet in the data acquisition packet list;
A common factor among can communication IDs corresponding to each data acquisition packet in the data acquisition packet list is extracted, a mask value is set, an ID field is set using the mask value, and a data field using the data transfer object is set Creating a single can message object; And
And transmitting each data acquisition packet of the data acquisition packet list through the single can message object.
제1 항에 있어서,
상기 캔 통신에서의 데이터 전송 방법은, 상기 데이터 취득을 위한 제어 요청이 수신되는 경우 상기 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 전송을 위한 변수 및 상기 데이터 취득 패킷(DAQ: Data AcQuisition Packet)의 인덱스를 초기화하고, 상기 단일의 캔 메시지 오브젝트에 대한 레지스터를 초기화하는 단계;를 더 포함하는 것을 특징으로 하는 캔 통신에서의 데이터 전송 방법.
The method according to claim 1,
The data transmission method in the can communication is characterized by comprising the steps of: when a control request for data acquisition is received, a variable for transmission of the data acquisition packet (DAQ: Data Acquisition Packet) and a data acquisition packet (DAQ: Data Acquisition Packet Initializing the index, and initializing a register for the single can message object. ≪ Desc / Clms Page number 22 >
제1 항 또는 제2 항에 있어서,
상기 데이터 전송 오브젝트는 상기 패킷 식별자(PID: Packet IDentifier)를 포함하지 아니한 것에 상응하여 해당 데이터를 나타내기 위한 ODT(Object Descriptor Table) 정보의 크기를 확장하는 구조로 구현되는 것을 특징으로 하는 캔 통신에서의 데이터 전송 방법.
3. The method according to claim 1 or 2,
Wherein the data transfer object is implemented in a structure that expands the size of ODT (Object Descriptor Table) information for representing the corresponding data in a manner that the data transfer object does not include the PID (Packet IDentifier) / RTI >
제3 항에 있어서,
상기 ODT(Object Descriptor Table) 정보의 크기는 8 바이트로 설정되는 것을 특징으로 하는 캔 통신에서의 데이터 전송 방법.
The method of claim 3,
Wherein the size of the Object Descriptor Table (ODT) information is set to 8 bytes.
제1 항 또는 제2 항에 있어서,
상기 캔 통신 아이디를 할당하는 단계는, 상기 데이터 취득 패킷 리스트의 수와 상응하는 개수로 메시지 버퍼를 생성하는 단계;
상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)별로 기본 캔 통신 아이디를 할당하는 단계; 및
상기 기본 캔 통신 아이디에 해당 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 메시지 버퍼의 인덱스를 더하여 상기 캔 통신 아이디를 계산하는 단계;를 포함하는 것을 특징으로 하는 캔 통신에서의 데이터 전송 방법.
3. The method according to claim 1 or 2,
Wherein the assigning of the CAN communication ID comprises: generating a message buffer in a number corresponding to the number of the data acquisition packet lists;
Assigning a basic can communication ID for each data acquisition packet (DAQ: Data Acquisition Packet) of the data acquisition packet list; And
And calculating the can communication ID by adding an index of a message buffer for a corresponding data acquisition packet (DAQ) to the basic can communication ID.
제1 항 또는 제2 항에 있어서,
상기 데이터 취득 패킷 리스트의 각 데이터 취득 패킷(DAQ: Data AcQuisition Packet)을 전송하는 단계는, 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 대한 데이터 정보를 상응하는 메시지 버퍼에 복사하는 단계;
상기 메시지 버퍼에 저장되어 있는 데이터 정보를 상기 단일의 캔 메시지 오브젝트 중 데이터 필드에 복사하고, 상기 단일의 캔 메시지 오브젝트 중 아이디 필드에는 상기 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하여 계산된 캔 통신 아이디로 변경하는 단계; 및
상기 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet)에 상응하여 아이디 필드 및 데이터 필드가 채워진 상기 단일의 캔 메시지 오브젝트로 상기 전송 대상의 데이터 취득 패킷(DAQ: Data AcQuisition Packet) 전송을 실행하는 단계;를 포함하는 것을 특징으로 하는 캔 통신에서의 데이터 전송 방법.
3. The method according to claim 1 or 2,
The step of transmitting each data acquisition packet (DAQ) in the data acquisition packet list includes: copying data information for a data acquisition packet (DAQ) to be transmitted into a corresponding message buffer;
Wherein the data field of the single can message object is copied in a data field of the single can message object, and the ID field of the single can message object is copied in a data packet corresponding to the data acquisition packet (DAQ: Data Acquisition Packet) Changing to a calculated can communication ID; And
(DAQ: Data Acquisition Packet) transmission to the single CAN message object filled with the ID field and the data field corresponding to the data acquisition packet (DAQ) of the transmission object And transmitting the data to the mobile station.
제1 항 또는 제2 항에 있어서,
상기 캔 통신장치는 캔 통신에서의 마스터 디바이스로부터 상기 데이터 취득을 위한 제어 요청을 제공받는 슬레이브 디바이스인 것을 특징으로 하는 캔 통신에서의 데이터 전송 방법.
3. The method according to claim 1 or 2,
Wherein the can communication device is a slave device which is provided with a control request for obtaining the data from the master device in the can communication.
KR1020100138954A 2010-12-30 2010-12-30 Data transmission method in controller area network communication KR101689585B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100138954A KR101689585B1 (en) 2010-12-30 2010-12-30 Data transmission method in controller area network communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100138954A KR101689585B1 (en) 2010-12-30 2010-12-30 Data transmission method in controller area network communication

Publications (2)

Publication Number Publication Date
KR20120077117A KR20120077117A (en) 2012-07-10
KR101689585B1 true KR101689585B1 (en) 2016-12-26

Family

ID=46710660

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100138954A KR101689585B1 (en) 2010-12-30 2010-12-30 Data transmission method in controller area network communication

Country Status (1)

Country Link
KR (1) KR101689585B1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
표준문서(CAN Calibration Protocol(CCP) Version 2.1, 18. February 1999.)

Also Published As

Publication number Publication date
KR20120077117A (en) 2012-07-10

Similar Documents

Publication Publication Date Title
US10680949B2 (en) Systems and methods for implementing a time-stamped controller area network (CAN) bus message
US8665891B2 (en) Gateway apparatus
US9160620B2 (en) Integrated fault diagnosis and prognosis for in-vehicle communications
KR101673304B1 (en) Method and apparatus for controlling AVB(Audio/Video Bridging) stream for in-vehicle ethernet
WO2021098212A1 (en) Software upgrade method, apparatus and system
US10122580B2 (en) Operation methods of communication node in network
JP2013258688A (en) Configuration method of can open network, operation method of slave unit, plc device control method, and plc device control system
JP2011109452A (en) In-vehicle communication system
KR20140102660A (en) Sensor transmission device and method for transmitting payload data from a plurality of sensors to a bus control device for a vehicle
CN107846419B (en) Method and system for transmitting OBD data of vehicle engine
CN105579968A (en) User message queue method for inter-process communication
KR101689585B1 (en) Data transmission method in controller area network communication
CN106161595B (en) Industrial Internet-based process control real-time communication method, device and system
KR101704300B1 (en) Method for transmitting/receiving can message and system performing the same
KR101573549B1 (en) Data transmission system and method for transmitting data between different type protocols
JP3643575B2 (en) Network bridge device and method
US9794197B2 (en) Method and apparatus for transmitting can frame
CN112100115B (en) Multi-device management method based on Openmmc
CN113691630B (en) DNS request processing method, device, system, electronic equipment and storage medium
US20070286116A1 (en) Wireless bridging method for wireless IEEE 1394 network environment and wireless bridge apparatus thereof
KR20060121872A (en) Setting distribution in a home network
KR102009090B1 (en) Vehicle communication system
JP4148013B2 (en) Data communication apparatus and data communication method
CN111630958B (en) Powerlink-based voice communication method
JP4161186B2 (en) Network communication equipment with asynchronous transfer function

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20191212

Year of fee payment: 4