KR20020042139A - Method for message frame operation of can system - Google Patents

Method for message frame operation of can system Download PDF

Info

Publication number
KR20020042139A
KR20020042139A KR1020000071904A KR20000071904A KR20020042139A KR 20020042139 A KR20020042139 A KR 20020042139A KR 1020000071904 A KR1020000071904 A KR 1020000071904A KR 20000071904 A KR20000071904 A KR 20000071904A KR 20020042139 A KR20020042139 A KR 20020042139A
Authority
KR
South Korea
Prior art keywords
controller
data
priority
field
message frame
Prior art date
Application number
KR1020000071904A
Other languages
Korean (ko)
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 KR1020000071904A priority Critical patent/KR20020042139A/en
Publication of KR20020042139A publication Critical patent/KR20020042139A/en

Links

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
    • H04L12/40143Bus networks involving priority mechanisms
    • H04L12/40163Bus networks involving priority mechanisms by assigning priority to messages according to a message field
    • 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/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

PURPOSE: A method for operating a message frame in a CAN(Controller Area Network) system is provided to enhance the field configuration system of a CAN message frame in a car so that each controller can recognize a data transmitted/received location only with the identifier field of a CAN message frame. CONSTITUTION: A user segments an identifier field into 3 field domains such as a destination field, a source field and an order field(ST21) and defines priority for the CAN data of each controller in accordance with the segmented field domains(ST22). The user defines priority for the internal CAN data for each controller according to the defined CAN data priority(ST23). Based on the defined CAN data priority of each controller, a transmitting side controller configures an identifier(ST24). If the transmitting side creates a CAN message frame, the transmitting side controller transmits the message frame through a CAN bus(ST25). The CAN message frame transmitted through the CAN bus is received by a controller that the destination field appoints(ST26).

Description

캔 시스템의 메시지 프레임 운용방법{METHOD FOR MESSAGE FRAME OPERATION OF CAN SYSTEM}Message frame operation method of CAN system {METHOD FOR MESSAGE FRAME OPERATION OF CAN SYSTEM}

본 발명은 캔 시스템(Controller Area Network system, 이하 CAN 시스템으로 약칭함)의 메시지 프레임(Message Frame) 운용방법에 관한 것으로, 보다 상세하게는 자동차내 각 제어기를 제어하기 위한 CAN 시스템의 메시지 프레임의 운용방법에관한 것이다.The present invention relates to a method of operating a message frame of a CAN system (hereinafter, abbreviated as CAN system), and more particularly, to a message frame of a CAN system for controlling each controller in a vehicle. It's about how.

일반적으로 CAN 시스템은 자동차내에 구비된 각종 제어기들간의 데이터 교환을 위한 경로인 CAN 버스를 제공하고, 상기 CAN 버스를 통해 교환되는 데이터들의 우선 순위를 조정하게 된다.In general, the CAN system provides a CAN bus which is a path for data exchange between various controllers provided in a vehicle, and adjusts the priority of data exchanged through the CAN bus.

즉, 도1에 도시된 바와 같이 CAN 시스템(11)은 CAN 버스(13)를 통해 ETC(Engine Timing Controller)(15), ECU(Electronic Control Unit)(17), TCU(Transaxle Control Unit)(19), LCD(Liquid Crystal Display)(21) 및 GCU(Generator Control Unit)(23) 등의 각 제어기를 감시하고 제어하게 된다.That is, as shown in FIG. 1, the CAN system 11 includes an engine timing controller (ETC) 15, an electronic control unit (ECU) 17, and a transaxle control unit (TCU) 19 via a CAN bus 13. ), Each controller such as a liquid crystal display (LCD) 21 and a generator control unit (GCU) 23 is monitored and controlled.

이러한 CAN 시스템의 기술적 구성 및 자동차에의 적용을 위한 제반의 기술 사항은 ISO 11898(고속 응용)과 ISO 11519-2(저속 응용) 등에 기술되어 있다.The technical configuration of these CAN systems and their technical requirements for automotive applications are described in ISO 11898 (high speed applications) and ISO 11519-2 (low speed applications).

그리고 도2에 도시된 바와 같이 CAN 버전 2.0A의 표준안에 따라 구성되는 CAN 시스템의 메시지 프레임에 있어서, 각 프레임은 7개의 상이한 비트 필드로 구성된다.And in the message frame of a CAN system constructed according to the standard of CAN version 2.0A as shown in Fig. 2, each frame is composed of seven different bit fields.

메시지 프레임내의 비트 필드는 각각 SOF(Start of Frame) 필드, 중재(Arbitration) 필드, 제어(Control) 필드, 데이터(Data) 필드, CRC(Cyclic Redundancy Check) 필드, ACK(Acknowledgement) 필드 및 EOF(End of Frame) 필드 등이다. 이때 각 필드에는 일정한 체계에 따라 비트수가 할당되어 있다. 예를 들어 각 제어기와 CAN 시스템간에 교환하고자 하는 데이터는 0~8바이트 크기의 데이터 필드에 적재되며, 순환 중복 검사(CRC check)를 위한 CRC 필드에는 15 비트가 할당되는 등의 체계이다.The bit fields in the message frame are the Start of Frame (SOF) field, the Arbitration field, the Control field, the Data field, the Cyclic Redundancy Check (CRC) field, the Acknowledgment field (ACK), and the End of Field (EOF), respectively. of Frame) field. At this time, each field is assigned a number of bits according to a predetermined scheme. For example, the data to be exchanged between each controller and the CAN system is loaded in a data field having a size of 0 to 8 bytes, and 15 bits are allocated to the CRC field for cyclic redundancy check (CRC check).

그리고 중재 필드에는 12개의 비트수가 할당되는데, 그 중 11 비트는 식별자(identifier) 필드이고 1비트는 RTR 비트이다. 11비트로 이루어지는 식별자 필드는 CAN 통신시 전송되는 CAN 메시지 프레임의 처리 우선 순위를 지시하기 위한 것으로, 상기 우선 순위를 판단할 수 있도록 각 제어기 내부에서 발생하는 CAN 데이터마다 고유의 식별자 또는 식별번호가 할당된다.Twelve bits are allocated to the arbitration field, of which 11 bits are identifier fields and 1 bit is an RTR bit. The 11-bit identifier field is used to indicate the processing priority of CAN message frames transmitted during CAN communication, and a unique identifier or identification number is assigned to each CAN data generated in each controller so as to determine the priority. .

그러므로 식별자 필드는 CAN 데이터의 우선 순위를 지시하기 위하여 11비트가 모두 사용되며, 11비트로 이루어지는 비트 패턴을 모두 해석하여야만 해당 메시지 프레임에 적재된 데이터의 우선 순위를 판단할 수 있게 된다.Therefore, all 11 bits are used to indicate the priority of the CAN data, and the priority of the data loaded in the corresponding message frame can be determined only when all 11 bit patterns are interpreted.

그러나 종래기술은 프로그래머가 모든 CAN 데이터에 대한 우선 순위를 고려하여 직접 식별번호를 정의하고 데이터 쉬트(data sheet)를 작성하여야만 하는 문제점이 있다.However, the prior art has a problem that a programmer must define an identification number and prepare a data sheet in consideration of the priority of all CAN data.

더불어 CAN 데이터 추가시 식별번호를 추가적으로 정의하여야 하는데, 이러한 경우에 있어서 프로그래머가 일일이 CAN 데이터를 기존의 데이터 쉬트에서 찾아 각 CAN 데이터의 우선 순위를 다시 고려하여 재설정하여야 하는 문제점이 있다.In addition, when adding CAN data, an identification number must be additionally defined. In this case, there is a problem that a programmer must find CAN data from an existing data sheet and reset the CAN data by considering the priority of each CAN data again.

다시 말해 데이터 관리기법에 있어서 뿐만 아니라 프로그래밍을 과정이 대단히 복잡하다.In other words, the programming process is very complicated not only in data management techniques.

또한, 일반적인 CAN 데이터를 분석할 경우 CAN 버스 상에서 식별자 필드만을 보고 어느 제어기에서 보낸 데이터인지를 먼저 확인해야만 CAN 데이터의 해석이 가능하므로, CAN 데이터 쉬트를 일일이 찾아 보면서 판단하지 않는다면 CAN 데이터를 분석하기란 불가능하게 되는 문제점이 있다.In addition, when analyzing general CAN data, it is possible to interpret CAN data only by looking at the identifier field on the CAN bus and confirming which data is sent from which controller. There is a problem that becomes impossible.

본 발명은 상기와 같은 문제점을 해소하기 위해 창출된 것으로, 본 발명의 목적은 자동차내 CAN 메시지 프레임의 필드 구성 체계를 개선함으로써, 각 제어기가 상기 메시지 프레임의 식별자 필드만을 참조하여 데이터 송수신 위치를 식별할 수 있도록 한 캔 시스템의 메시지 프레임 운용방법을 제공하는 데 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to improve the field structure of the CAN message frame in a vehicle, whereby each controller identifies a data transmission / reception position by referring only to the identifier field of the message frame. To provide a way to operate a message frame in a can system.

도1은 일반적인 CAN 시스템의 블록 구성도.1 is a block diagram of a typical CAN system.

도2는 도1에 적용되는 종래의 CAN 메시지 프레임의 구성도.2 is a block diagram of a conventional CAN message frame applied to FIG.

도3은 본 발명의 일실시예에 의한 캔 시스템의 메시지 프레임 운용방법의 순서도.Figure 3 is a flow chart of a message frame operating method of the can system according to an embodiment of the present invention.

도4는 본 발명에 따른 CAN 메시지 프레임의 구성도.4 is a block diagram of a CAN message frame according to the present invention;

도5a는 본 발명에 따른 각 제어기의 CAN 데이터 우선 순위 정의 예시도.5A is an exemplary CAN data priority definition of each controller in accordance with the present invention.

도5b는 도5a에서 ETC 내부의 CAN 데이터에 대한 우선 순위 정의 예시도.FIG. 5B is an exemplary diagram of priority definition for CAN data inside the ETC in FIG. 5A; FIG.

도5c는 도5a 및 도5b의 정의에 근거하여 식별자 필드를 구성한 경우의 예시도.FIG. 5C is an exemplary diagram when an identifier field is configured based on the definitions of FIGS. 5A and 5B. FIG.

상기 목적을 달성하기 위하여 본 발명에 의한 캔 시스템의 메시지 프레임 운용방법은, CAN 시스템을 통해 전송되도록 하기 위한 CAN 메시지 프레임의 식별자 필드를 복수의 분할필드로 분할한 후, 상기 식별자 필드의 각 분할필드의 크기에 따른 비트 패턴으로 각 제어기의 CAN 데이터에 대한 우선 순위를 정의하는 단계와; 상기 정의된 CAN 데이터 우선 순위에 따라 상기 복수의 분할필드마다 수신측 제어기, 송신측 제어기 및 송신측 제어기 내부의 CAN 데이터에 대한 우선 순위 정보를 각각 적재하여 식별자 필드를 구성한 후, 상기 식별자 필드가 포함된 메시지 프레임을 송수신하는 단계를 포함한다.In order to achieve the above object, a method of operating a message frame of a can system according to the present invention comprises: splitting an identifier field of a CAN message frame into a plurality of partitioned fields to be transmitted through a CAN system, and then each partitioned field of the identifier field. Defining a priority for CAN data of each controller in a bit pattern according to the size of the controller; According to the defined CAN data priority, the identifier field is configured by loading priority information on CAN data in a receiver controller, a transmitter controller and a transmitter controller for each of the plurality of divided fields, and configuring the identifier field. And transmitting and receiving the message frame.

이하, 본 발명에 따른 바람직한 실시예를 첨부도면을 참조하여 상세히 설명한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도3에 도시된 바와 같이, 식별자 필드를 3개의 필드영역으로 분할하여 상기 분할된 필드영역에 적합하도록 CAN 데이터 우선 순위를 정의하게 된다. 이때 CAN 데이터 우선 순위의 정의는 CAN 시스템과 데이터를 교환하는 모든 제어기마다 정의되어야 한다.As shown in Fig. 3, the identifier field is divided into three field areas to define the CAN data priority to be suitable for the divided field areas. The definition of CAN data priority should then be defined for every controller that exchanges data with the CAN system.

식별자 필드의 분할 필드영역은 목적지 필드, 원천 필드 및 순위 필드 등이다. 분할된 각 필드에는 CAN 데이터의 우선 순위 판단을 위한 각종 정보가 적재된다(ST21~ST22).The split field area of the identifier field is a destination field, a source field and a rank field. In each of the divided fields, various kinds of information for determining the priority of CAN data are loaded (ST21 to ST22).

보다 상세하게는 도4에 도시된 바와 같이, CAN 메시지 프레임 중 식별자 필드를 구성하는 11비트에 대하여 3개의 필드영역으로 분할하게 된다. 이때 필드영역의 분할은 여러 가지 형태가 가능한데, 바람직하게는 목적지 필드에 3개의 비트를 할당하고 원천 필드에 4개의 비트가 할당되며 순위 필드에 4개의 비트가 할당되도록 한다.More specifically, as shown in FIG. 4, 11 bits constituting the identifier field in the CAN message frame are divided into three field areas. In this case, the division of the field area may be variously performed. Preferably, three bits are allocated to the destination field, four bits are allocated to the source field, and four bits are allocated to the rank field.

상기 분할된 각 필드영역은 고유의 기능을 담당하게 된다. 우선, 목적지 필드는 해당 프레임을 수신할 수신측 제어기를 지시하기 위한 것이며, 원천 필드는 해당 프레임을 송신하는 제어기를 지시하기 위한 것이고, 순위 필드는 해당 프레임을 송신하는 제어기 내부의 CAN 데이터 우선 순위를 지시하기 위한 것이다.Each divided field area has a unique function. First, the destination field is for indicating a receiving controller to receive the frame, the source field is for indicating a controller for transmitting the frame, and the priority field is for CAN data priority inside the controller for transmitting the frame. It is to direct.

그리고 도5a와 같이 3개의 비트를 이용하여 ETC, ECU, MCU, TCU, BMS, LCD 및 GCU와 같은 제어기들의 CAN 데이터에 대한 우선 순위를 정의하게 된다. 이때 우선 순위 정의를 위해 사용 가능한 비트수는 각 분할 필드영역 중 최소의 크기를 갖는 분할 필드영역의 비트수를 초과하지 않도록 하여야 한다.As shown in FIG. 5A, three bits are used to define priorities for CAN data of controllers such as ETC, ECU, MCU, TCU, BMS, LCD, and GCU. At this time, the number of bits available for priority definition should not exceed the number of bits of the split field area having the smallest size among the divided field areas.

좀더 부연하여 설명하면 각 제어기의 우선 순위는 3비트의 비트 패턴에 따라 정의되는 것으로, 제어기의 가장 높은 우선 순위를 '001'의 비트 패턴으로 정의하기 시작하여 가장 낮은 우선 순위를 '111'의 비트 패턴으로 정의하는 체계를 이루게 된다. 3개의 비트수로 구성되는 비트 패턴을 통해 우선 순위를 정의하게 되면,최대 8(23=8)개의 제어기에 대한 우선 순위를 정의가 가능하다.More specifically, the priority of each controller is defined according to the 3-bit bit pattern. The controller begins to define the highest priority of the controller as the bit pattern of '001' and the lowest priority is the bit of '111'. A system is defined by patterns. If priority is defined through a bit pattern consisting of three bits, priority of up to eight (2 3 = 8) controllers can be defined.

이어서 우선 순위가 정의된 각 제어기에 대해 내부의 CAN 데이터에 대한 우선 순위를 정의한다. 각 제어기 내부의 CAN 데이터에 대한 우선 순위를 정의하는 이유는 각 제어기 내부에서 발생되는 CAN 데이터마다 서로 다른 우선 순위를 할당함으로써, 높은 우선 순위를 갖는 데이터를 우선적으로 처리할 수 있도록 하기 위함이다(ST23).Then, for each controller for which priority is defined, priority for internal CAN data is defined. The reason for defining the priority of CAN data inside each controller is to assign different priority to each CAN data generated inside each controller, so that the data with high priority can be processed first (ST23). ).

예들 들어, 도5b에 도시된 바와 같이 ETC라는 제어기 내부의 CAN 데이터에 대한 우선 순위를 정의할 수 있다. 즉, ETC 제어기에는 4개의 데이터가 있고 각 데이터를 각각 CAN_DATA1, CAN_DATA2, CAN_DATA3 및 CAN_DATA4 라 하면, 상기 각 데이터마다 4개의 비트로 이루어지는 비트 패턴을 이용하여 우선 순위를 정의한다.For example, as shown in FIG. 5B, priority of CAN data inside a controller called ETC may be defined. That is, if there are four data in the ETC controller and each data is CAN_DATA1, CAN_DATA2, CAN_DATA3, and CAN_DATA4, the priority is defined using a bit pattern of four bits for each data.

즉, '0001'의 비트 패턴은 최우선의 순위를 갖고 '1111'은 최하위의 순위를 갖도록 하여 상기 최상위 비트 패턴과 최하위 비트 패턴의 사이에서 적정한 비트 패턴을 선택하여 우선 순위를 정의할 수 있다.That is, the bit pattern of '0001' has the highest priority and '1111' has the lowest priority, so that the priority can be defined by selecting an appropriate bit pattern between the most significant bit pattern and the least significant bit pattern.

그런데 우선 순위를 정의할 데이터의 수가 많지 않을 경우에는 연속하는 비트 패턴으로 정의해나가기 보다는 적정한 간격을 두고 정의해 나가는 것이 바람직하다. 즉, CAN 데이터의 순위를 연속해서 사용하지 않으면, 차후 CAN 데이터를 추가할 경우에 적정한 위치에서 미사용된 비트 패턴을 찾아 우선 순위 정의시 사용할 수 있게 된다. 그러면 CAN 데이터의 추가시 모든 데이터의 우선 순위를 재정의 하는 번거로움을 회피할 수 있게 된다.However, when the number of data to define the priority is not large, it is preferable to define at a proper interval rather than to define a continuous bit pattern. In other words, if the rank of the CAN data is not used continuously, the unused bit pattern can be found at the proper position when the CAN data is added later, and used for defining the priority. This avoids the hassle of redefining all data priorities when adding CAN data.

그리고 정의된 각 제어기의 CAN 데이터 우선 순위에 근거하여 식별자 필드를 구성하게 된다. 식별자 필드의 구성은 CAN 메시지 프레임의 생성시 수행된다(ST24).The identifier field is configured based on the CAN data priority of each defined controller. The configuration of the identifier field is performed when generating a CAN message frame (ST24).

즉, 메시지 프레임을 송신하고자 하는 제어기에서 상기 설명된 체계에 따라 식별자 필드를 구성하고 메시지 프레임내 나머지 필드는 표준적인 메시지 프레임 구성체계에 따라 구성하고 CAN 데이터를 적재하게 된다.That is, the controller to transmit the message frame configures the identifier field according to the scheme described above, and the remaining fields in the message frame configure according to the standard message frame scheme and load CAN data.

보다 구체적으로 설명하면, 송신측에서 데이터를 전송하기 위하여 CAN 메시지 프레임에 있어서, 해당 프레임을 수신할 제어기의 우선 순위를 3개의 비트로 구성된 목적지 필드에 적재하고, 해당 프레임을 송신하는 측의 우선 순위에 대한 정보를 4개의 비트로 구성된 원천 필드에 적재하며, 해당 프레임에 적재되는 CAN 데이터의 우선 순위에 대한 정보를 4개의 비트로 구성된 순위 필드에 적재한다.More specifically, in the CAN message frame in order to transmit data on the transmitting side, the priority of the controller that will receive the frame is loaded in a destination field consisting of three bits, and the priority of the transmitting side of the CAN message frame. It loads the information on the source field consisting of four bits, and loads the information on the priority of the CAN data loaded in the frame into the priority field consisting of four bits.

예를 들어, 도5c와 같이 데이터를 수신하여 참조할 제어기가 LCD이고 송신하는 제어기가 ETC이며 송신되는 데이터가 CAN_DATA1임을 지시하는 식별자 필드를 구성하게 되는 것이다.For example, as shown in FIG. 5C, an identifier field indicating that a controller to receive and refer to data is an LCD, a controller to be transmitted is an ETC, and data to be transmitted is CAN_DATA1.

한편, 송신하는 제어기의 우선 순위는 3개의 비트로 정의되어 있는데, 해당 제어기의 우선 순위가 적재될 원천 필드의 비트수는 4개이다. 그래서 원천 필드의 최선단 1개 비트는 사용되지 않는다.Meanwhile, the priority of the transmitting controller is defined as three bits, and the number of bits of the source field to which the priority of the controller is to be loaded is four. So the most significant one bit of the source field is not used.

도5c의 경우, 전체 식별자 필드는 '11000010010'의 비트 패턴을 갖게 되며, 상기 비트 패턴을 16진수로 표현하게 되면 '0x612'이다. 상기 16진수의 표현을 해석하게 되면, 첫 번째 디지트인 '6'은 LCD 제어기를 지시하게 되고, 두 번째 디지트인 '1'은 ETC 제어기를 지시하며, 세 번째 디지트인 '2'는 상기 ETC 제어기 내부의 CAN_DATA1 을 지시하게 된다.In the case of FIG. 5C, the entire identifier field has a bit pattern of '11000010010', and when the bit pattern is expressed in hexadecimal, it is '0x612'. When interpreting the hexadecimal representation, the first digit '6' indicates the LCD controller, the second digit '1' indicates the ETC controller, and the third digit '2' indicates the ETC controller. It indicates internal CAN_DATA1.

그리고 송신측에서 CAN 메시지 프레임을 생성하게 되면, 송신측 제어기는 해당 메시지 프레임을 CAN 버스를 통해 전송한다(ST25).When the transmitting side generates the CAN message frame, the transmitting side controller transmits the corresponding message frame through the CAN bus (ST25).

CAN 버스를 통해 전송된 메시지 프레임은 목적지 필드에 지시된 제어기에 의해 수신된다. 상기 메시지 프레임을 수신하는 제어기는 해당 메시지 프레임내 식별자 필드를 해석하게 되는데, 해당 프레임을 송신한 제어기를 원천 필드를 통해 식별하고, 송신 제어기 내부의 CAN 데이터에 대한 우선 순위는 순위 필드를 통해 식별하게 된다(ST26).Message frames sent over the CAN bus are received by the controller indicated in the destination field. The controller receiving the message frame interprets the identifier field in the corresponding message frame, identifying the controller that transmitted the frame through the source field, and the priority of the CAN data inside the transmitting controller through the priority field. (ST26).

이상에서 설명한 본 발명에 따르면, 각 제어기와 CAN 시스템간에 교환되는 CAN 메시지 프레임의 식별자 필드를 정의하는 방식을 개선하여 해당 프레임을 수신하는 제어기와 송신하는 제어기 및 전송되는 데이터의 우선 순위를 정의하게 됨으로써, 각 제어기는 CAN 버스상에서 전송되는 프레임의 식별자 필드를 참조하여 해당 프레임의 송수신측을 식별할 수 있으므로 CAN 버스상에서 유발되는 에러의 검출이 용이하게 되는 효과가 있다.According to the present invention as described above, by improving the manner of defining the identifier field of the CAN message frame exchanged between each controller and the CAN system to define the priority of the controller to receive the frame, the controller to transmit and the data transmitted Each controller can identify the transmitting / receiving side of the frame by referring to the identifier field of the frame transmitted on the CAN bus, thereby making it easy to detect an error caused on the CAN bus.

그리고 차후 CAN 버스상에서 에러가 발생되는 경우에도 전송중인 프레임에 유발된 에러의 감지가 용이하게 되며, CAN 데이터의 추가 및 관리측면에서도 효율의 향상을 기대할 수 있는 효과가 있다.And when an error occurs on the CAN bus in the future, it is easy to detect the error caused in the frame being transmitted, and the efficiency can be expected to be improved in terms of addition and management of CAN data.

더불어, 각 제어기 내부의 CAN 데이터 우선 순위를 정의함에 있어서 가용한비트 패턴을 연속적으로 사용하지 않고 불연속적으로 사용함으로써, 차후에 추가되는 CAN 데이터에 따라 식별번호를 재 정의하는 경우에 해당 데이터의 우선 순위를 상기 불연속적인 구간내에 있는 미사용의 비트 패턴을 이용하여 용이하게 정의할 수 있는 장점이 있다.In addition, in defining the CAN data priority within each controller, by using the available bit pattern discontinuously instead of continuously, the priority of the data when redefining the identification number according to the additional CAN data Can be easily defined using an unused bit pattern within the discontinuous section.

또한, 우선 순위를 정의하여야 할 CAN 데이터가 많은 경우에도 3개의 분할필드로 구성된 식별자 필드에 적합하도록 단계별로 정의해 나갈 수 있기 때문에, CAN 데이터의 우선 순위 정의가 체계적이 되고 그에 따라 CAN 데이터의 추가/삭제/우선 순위의 변경 등과 같은 관리상의 편리성을 증대시킬 수 있는 효과가 있다.In addition, even if there is a large number of CAN data that needs to be defined, it can be defined step by step to suit the identifier field consisting of three partitioned fields. There is an effect that can increase the administrative convenience, such as / delete / change the priority.

이상에서 본 발명의 바람직한 실시예를 설명하였으나, 본 발명은 다양한 변화와 변경 및 균등물을 사용할 수 있다. 본 발명은 상기 실시예를 적절히 변형하여 동일하게 응용할 수 있음이 명확하다. 따라서 상기 기재 내용은 하기 특허청구범위를 한정하지 않는다.Although the preferred embodiment of the present invention has been described above, the present invention may use various changes, modifications, and equivalents. It is clear that the present invention can be applied in the same manner by appropriately modifying the above embodiments. Therefore, the above description does not limit the scope of the following claims.

Claims (5)

(a) CAN 시스템을 통해 전송되도록 하기 위한 CAN 메시지 프레임의 식별자 필드를 복수의 분할필드로 분할한 후, 상기 식별자 필드의 각 분할필드의 크기에 따른 비트 패턴으로 각 제어기의 CAN 데이터에 대한 우선 순위를 정의하는 단계와;(a) After splitting the identifier field of the CAN message frame to be transmitted through the CAN system into a plurality of partition fields, the priority of the CAN data of each controller in a bit pattern according to the size of each partition field of the identifier field. Defining a; (b) 상기 정의된 CAN 데이터 우선 순위에 따라 상기 복수의 분할필드마다 수신측 제어기, 송신측 제어기 및 송신측 제어기 내부의 CAN 데이터에 대한 우선 순위 정보를 각각 적재하여 식별자 필드를 구성한 후, 상기 식별자 필드가 포함된 메시지 프레임을 송수신하는 단계를 포함하는 것을 특징으로 하는 캔 시스템의 메시지 프레임 운용방법.(b) constructing an identifier field by loading priority information on CAN data inside a receiving controller, a transmitting controller, and a transmitting controller for each of the plurality of divided fields according to the defined CAN data priority, and then configuring the identifier field And transmitting and receiving the message frame including the field. 제 1항에 있어서, 상기 식별자 필드는,The method of claim 1, wherein the identifier field, 상기 CAN 시스템에 연결된 수신측 제어기의 우선 순위를 지시하기 위한 목적지 필드와;A destination field for indicating a priority of a receiving controller connected to the CAN system; 상기 CAN 시스템에 연결된 송신측 제어기의 우선 순위를 지시하기 위한 원천 필드와;A source field for indicating a priority of a transmitting controller connected to the CAN system; 상기 CAN 시스템에 연결된 송신측 제어기의 내부 CAN 데이터에 대한 우선 순위를 지시하기 위한 순위 필드를 포함하는 3개의 분할필드로 이루어지며,It is composed of three divided fields including a priority field for indicating the priority of the internal CAN data of the transmitting controller connected to the CAN system, 상기 식별자 필드에 할당된 전체 비트수 중에서 목적지 필드에는 3개의 비트를 할당하고, 원천 필드에는 4개의 비트를 할당하며, 순위 필드에는 잔여 비트수를할당하고, 상기 각 분할필드에 할당된 비트수로 구성 가능한 비트 패턴을 이용하여 각 CAN 데이터의 우선 순위를 정의하게 되는 것을 특징으로 하는 캔 시스템의 메시지 프레임 운용방법.Of the total number of bits assigned to the identifier field, three bits are allocated to the destination field, four bits are assigned to the source field, remaining bits are allocated to the rank field, and the number of bits allocated to each split field is assigned. Method of operating a message frame of a can system, characterized by defining the priority of each CAN data using a configurable bit pattern. 제 1항에 있어서, 상기 단계 (a)는,The method of claim 1, wherein step (a) comprises: 상기 CAN 시스템에 연결된 각 제어기의 CAN 데이터에 대한 우선 순위를 3개의 비트로 이루어진 비트 패턴에 따라 정의하는 (a1) 단계와;(A1) defining priority of CAN data of each controller connected to the CAN system according to a bit pattern consisting of three bits; 상기 3개 비트수의 비트 패턴으로 우선 순위가 정의된 제어기 내부의 각 CAN 데이터에 대한 우선 순위를 4개의 비트수로 이루어진 비트 패턴에 따라 정의하는 (a2) 단계를 포함하여 이루어진 것을 특징으로 하는 캔 시스템의 메시지 프레임 운용방법.And (a2) defining a priority of each CAN data in the controller having a priority defined by the bit pattern of the three bits according to a bit pattern consisting of four bits. How to operate the message frame of the system. 제 3항에 있어서, 상기 (a2) 단계는,The method of claim 3, wherein step (a2) comprises: 상기 정의 대상 제어기 내부의 각 CAN 데이터에 대해 4비트로 구성 가능한 비트 패턴중의 일부를 불연속적으로 사용하여 우선 순위를 정의함으로써, 각 CAN 데이터의 우선 순위를 정의하는 비트 패턴의 사이에 미사용의 비트 패턴이 존재하도록 하는 단계와;Unused bit patterns between bit patterns defining the priority of each CAN data by defining the priority by discontinuously using a part of the bit patterns configurable as 4 bits for each CAN data in the controller to be defined. Making it exist; 상기 각 CAN 데이터에 대해 정의된 비트 패턴들의 사이에 존재하는 미사용의 비트 패턴을 이용하여 추가되는 CAN 데이터의 우선 순위를 정의하는 단계를 포함하는 것을 특징으로 하는 캔 시스템의 메시지 프레임 운용방법.And defining a priority of the added CAN data by using an unused bit pattern existing between the bit patterns defined for the respective CAN data. 제 1항에 있어서, 상기 단계 (b)는,The method of claim 1, wherein step (b) comprises: 상기 CAN 데이터를 전송하고자 하는 송신측 제어기에서 상기 복수로 분할된 분할필드에 수신측 제어기, 송신측 제어기, 송신측 제어기 내부의 CAN 데이터 우선 순위에 대한 정보를 차례로 적재하여 식별자 필드를 구성하는 단계와;Constructing an identifier field by loading information on CAN data priorities in a receiving controller, a transmitting controller, and a transmitting controller in a plurality of divided fields in the transmitting controller to transmit the CAN data; ; 상기 송신측 제어기에서 상기 구성된 식별자 필드를 포함하는 메시지 프레임을 생성한 후 상기 CAN 시스템의 CAN 버스를 통해 송신하는 단계와;Generating, by the transmitting controller, a message frame including the configured identifier field and transmitting the same over the CAN bus of the CAN system; 상기 송신측 제어기에 의해 전송된 메시지 프레임상의 식별자 필드중 수신측 제어기를 지시하는 분할필드에 의해 지시되는 수신측 제어기가 상기 메시지 프레임을 수신하고, 상기 수신측 제어기가 상기 수신된 프레임상의 식별자 필드를 모두 해석하여 정의된 우선 순위에 따라 상기 메시지 프레임상에 적재된 CAN 데이터를 처리하는 단계를 포함하는 것을 특징으로 하는 캔 시스템의 메시지 프레임 운용방법.A receiving side controller indicated by a split field indicating a receiving side controller among the identifier fields on a message frame transmitted by the transmitting side controller receives the message frame, and the receiving side controller receives the identifier field on the received frame. And processing CAN data loaded on the message frame according to a priority defined by interpreting all of the message frames.
KR1020000071904A 2000-11-30 2000-11-30 Method for message frame operation of can system KR20020042139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000071904A KR20020042139A (en) 2000-11-30 2000-11-30 Method for message frame operation of can system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000071904A KR20020042139A (en) 2000-11-30 2000-11-30 Method for message frame operation of can system

Publications (1)

Publication Number Publication Date
KR20020042139A true KR20020042139A (en) 2002-06-05

Family

ID=19702448

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000071904A KR20020042139A (en) 2000-11-30 2000-11-30 Method for message frame operation of can system

Country Status (1)

Country Link
KR (1) KR20020042139A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100442258B1 (en) * 2002-03-21 2004-07-30 엘지전자 주식회사 Method for processing message in communication system
KR100460905B1 (en) * 2002-09-13 2004-12-09 현대자동차주식회사 Identifier establish method of can message in vehicle
KR20160087149A (en) 2015-01-13 2016-07-21 부산대학교 산학협력단 Method for CAN based communication for sensing CNC processing process
CN106789694A (en) * 2016-11-12 2017-05-31 驭联智能科技发展(上海)有限公司 Novel on-vehicle equipment communication control method and system
CN115174304A (en) * 2022-06-24 2022-10-11 南京国电南自维美德自动化有限公司 CAN bus communication method with self-defined identifier segments

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5502811A (en) * 1993-09-29 1996-03-26 International Business Machines Corporation System and method for striping data to magnetic tape units
US5854454A (en) * 1996-09-16 1998-12-29 Otis Elevator Company Message routing in control area network (CAN) protocol
KR20000007451A (en) * 1998-07-03 2000-02-07 박호군 Controller area network communication terminal featured universal control board

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5502811A (en) * 1993-09-29 1996-03-26 International Business Machines Corporation System and method for striping data to magnetic tape units
US5854454A (en) * 1996-09-16 1998-12-29 Otis Elevator Company Message routing in control area network (CAN) protocol
KR20000007451A (en) * 1998-07-03 2000-02-07 박호군 Controller area network communication terminal featured universal control board

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100442258B1 (en) * 2002-03-21 2004-07-30 엘지전자 주식회사 Method for processing message in communication system
KR100460905B1 (en) * 2002-09-13 2004-12-09 현대자동차주식회사 Identifier establish method of can message in vehicle
KR20160087149A (en) 2015-01-13 2016-07-21 부산대학교 산학협력단 Method for CAN based communication for sensing CNC processing process
CN106789694A (en) * 2016-11-12 2017-05-31 驭联智能科技发展(上海)有限公司 Novel on-vehicle equipment communication control method and system
CN115174304A (en) * 2022-06-24 2022-10-11 南京国电南自维美德自动化有限公司 CAN bus communication method with self-defined identifier segments
CN115174304B (en) * 2022-06-24 2023-12-22 南京国电南自维美德自动化有限公司 CAN bus communication method with sectional self-definition identifier

Similar Documents

Publication Publication Date Title
US10204072B2 (en) Method for automatically allocating addresses to similar bus users
US5644754A (en) Bus controller and electronic device in a system in which several electronic devices are networked
CN1922827A (en) Method and communication system for the transmission of data in a motor vehicle
EP2512163A1 (en) Method, system for defining message in machine-to-machine platform, and machine-to-machine platform
CN105657000A (en) Message transmission method and device
AU2023202626A1 (en) Control of vehicle-carried warning system through controller area network (CAN) communications of global variables processed as operands of behavioral equations
EP1161823B1 (en) Bilevel node identifiers in control area network (can) protocol
CN112953801A (en) Vehicle gateway and control method thereof
KR20020042139A (en) Method for message frame operation of can system
US5659683A (en) Distributed computer system and method using a common transmission line in a plurality of processors interconneted for executing a program module utilizing attributes
EP1751925B1 (en) Data transfer method in a distributed process control system
US7283488B2 (en) J1850 application specific integrated circuit (ASIC) and messaging technique
KR101704300B1 (en) Method for transmitting/receiving can message and system performing the same
KR20090029073A (en) Air-conditioner and operating method thereof
CN111404793B (en) Method, system, equipment and readable storage medium for controlling mapping of physical CAN port and virtual CAN port
US5448563A (en) Communication control method
CA2267515A1 (en) Generic bus system
CN101945045B (en) Method for updating status information of data stream, system and equipment thereof
KR100460905B1 (en) Identifier establish method of can message in vehicle
US6529505B1 (en) System for expanding a parameter encoding field in a message to allow additional parameters to be added while maintaining compatibility with existing parameter encodings
KR100583811B1 (en) The can message identifier allocation method and the can message transfer arbitration method for the humanoid robot
KR20020058688A (en) Method for constituting a message to communicate data in a controller area network
US7529268B1 (en) Multi-point electronic control system protocol
CN108052338A (en) A kind of software refreshing method and device
CN103812893A (en) Virtual desktop external equipment transmission method and system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application