KR101958477B1 - Lin communication system for vehicle and method for driving slave module in the system - Google Patents

Lin communication system for vehicle and method for driving slave module in the system Download PDF

Info

Publication number
KR101958477B1
KR101958477B1 KR1020120128173A KR20120128173A KR101958477B1 KR 101958477 B1 KR101958477 B1 KR 101958477B1 KR 1020120128173 A KR1020120128173 A KR 1020120128173A KR 20120128173 A KR20120128173 A KR 20120128173A KR 101958477 B1 KR101958477 B1 KR 101958477B1
Authority
KR
South Korea
Prior art keywords
module
master
slave module
identifier
slave
Prior art date
Application number
KR1020120128173A
Other languages
Korean (ko)
Other versions
KR20140061043A (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 KR1020120128173A priority Critical patent/KR101958477B1/en
Priority to CN201310438827.6A priority patent/CN103809552B/en
Publication of KR20140061043A publication Critical patent/KR20140061043A/en
Application granted granted Critical
Publication of KR101958477B1 publication Critical patent/KR101958477B1/en

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

본 발명에서는 마스터 모듈에서 슬레이브 모듈의 특정 동작을 요청할 때 사용하는 기존의 마스터 코멘드를 삭제하고 대신 슬레이브 모듈 1개당 1개씩 부여되는 ID를 여러 개 부여하여, 각 ID 호출시 해당 슬레이브 모듈은 미리 정의된 해당 기능을 동작한다. 이렇게 함으로써, 마스터 코맨드 송신에 소요되는 통신 시간이 줄어들어, 전체 통신 시간을 줄일 수 있다. In the present invention, an existing master command used when requesting a specific operation of a slave module in the master module is deleted, and instead, a plurality of IDs, one for each slave module, are assigned, and when the respective slave modules are called, The corresponding function is operated. By doing so, the communication time required for master command transmission is reduced, and the total communication time can be reduced.

Description

차량용 LIN 통신 시스템 및 이 시스템에서 슬레이브 모듈의 동작 방법{LIN COMMUNICATION SYSTEM FOR VEHICLE AND METHOD FOR DRIVING SLAVE MODULE IN THE SYSTEM}TECHNICAL FIELD [0001] The present invention relates to a LIN communication system for a vehicle and a method for operating the slave module in the system.

본 발명은 차량용 LIN(Local Interconnect Network) 통신 시스템 및 이 시스템을 이용한 슬레이브 모듈의 동작 방법에 관한 것으로서, LIN 통신 시간을 줄여 마스터 모듈(master module)이 슬레이브 모듈(slave module)로부터 응답 신호를 빠르게 전송받을 수 있는 차량용 LIN 통신 시스템 및 이 시스템에서 슬레이브 모듈의 동작 방법에 관한 것이다.
The present invention relates to a LIN (Local Interconnect Network) communication system for a vehicle and a method of operating a slave module using the system, and it is an object of the present invention to reduce a LIN communication time so that a master module can quickly transmit a response signal from a slave module The present invention relates to a vehicle LIN communication system and a method of operating the slave module in the system.

차량용 네트워크 통신에서는, 분산 네트워크 상에서 주차 보조 센서, 구동기 및 기타 모듈과 같은 메카트로닉 노드를 효율적으로 제어하기 위해 시리얼 통신 방식의 일종인 LIN 네트워크 통신 방식이 널리 이용되고 있다. In automotive network communication, a LIN network communication method, which is a kind of serial communication method, is widely used to efficiently control a mechatronic node such as a parking assist sensor, a driver and other modules on a distributed network.

LIN 통신에서는, 데이터를 요청하는 마스터 모듈과 마스터 모듈로부터의 데이터 요청에 응답하여 데이터를 처리하고, 응답하는 다수의 슬레이브 모듈이 존재한다.In LIN communication, there are a master module for requesting data and a plurality of slave modules for processing and responding to data requests from the master module.

도 1은 일반적인 LIN 통신에서 사용되는 메시지 프레임 구성을 보여주는 도면이다.1 is a diagram illustrating a message frame configuration used in a general LIN communication.

도 1을 참조하면, LIN 통신에서 메시지 프레임(a)의 구성은 크게 헤더(Header) 부분과 응답(Response) 부분으로 구성된다. 헤더 부분은 브레이크 필드(Break field), 동기 필드(Sync field) 및 식별자 필드(Protected Identifier field)로 구성되며, 응답 부분은 데이터 필드(Data field: Data1, Data2, ..., DataN)와 체크섬 필드(Checksum field)로 구성된다. 브레이크 필드(Break field)는 메시지 프레임의 시작을 정의하는 필드이다. 동기 필드(Sync field)는 슬레이브가 마스트 클럭과 동기를 맞추는 데 사용되는 필드이다. 식별자 필드(Protected Identifier field)는 메시지의 내용과 길이에 대한 정보를 제공한다. Referring to FIG. 1, the structure of a message frame (a) in LIN communication is mainly composed of a header part and a response part. The header part is composed of a break field, a sync field, and a protected identifier field. The response part includes a data field (Data field: Data1, Data2, ..., DataN) (Checksum field). A Break field is a field that defines the start of a message frame. The Sync field is a field used by the slave to synchronize with the master clock. The Protected Identifier field provides information about the content and length of the message.

이러한 메시지 프레임 구성에 따르면, 마스터 모듈과 슬레이브 모듈들은 각각 ID를 가지며, 도 1의 (b)에 도시된 바와 같이, 마스터 모듈이 "마스터ID + 슬레이브에 요청할 코맨드" 형식으로 마스터 코맨드(Master Command)를 구성하여 데이터를 송신하고, 해당 슬레이브 모듈의 ID를 호출하면 도 1의 (c) 에 도시된 바와 같이, "해당 슬레이브 ID + 응답 데이터" 형식으로 슬레이브 코맨드(Slave Response)를 구성하여 마스터 모듈에게 회신하는 방식으로 통신을 한다.According to such a message frame configuration, the master module and the slave modules each have an ID, and as shown in FIG. 1B, the master module transmits a master command in the form of "master ID + command to be requested to the slave" (Slave Response) in the form of "corresponding slave ID + response data" as shown in FIG. 1 (c), and transmits the slave command to the master module It communicates by way of reply.

그런데, 마스터 모듈이 슬레이브 모듈에게 어떠한 요청을 하는 경우 통신에 많은 시간이 소요된다. 8 Byte 송신시, 약 15ms의 통신시간이 소요된다. 즉, 센서 어플리케이션 등에서는 마스터 코맨드(a) 통신에 많은 통신 시간을 낭비하여 전체 스케쥴 시간이 증가하는 문제점이 있다.
However, if the master module makes any request to the slave module, it takes a lot of time for communication. Communication time of about 15 ms is required for 8 byte transmission. That is, in a sensor application or the like, a large amount of communication time is wasted in the master command (a) communication, thereby increasing the total schedule time.

따라서, 본 발명의 목적은 LIN 통신에서 마스터 코맨드의 통신 시간을 줄여, 슬레이브 모듈로부터의 응답을 빠르게 수신할 수 있는 차량용 LIN(Local Interconnect Network) 통신 시스템을 제공하는 데 있다.SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a LIN (Local Interconnect Network) communication system for a vehicle which can reduce the communication time of a master command in LIN communication and can quickly receive a response from a slave module.

본 발명의 다른 목적은 상기 시스템에서 슬레이브 모듈의 동작 방법을 제공하는 데 있다.
It is another object of the present invention to provide a method of operating a slave module in the system.

상술한 목적을 달성하기 위한 본 발명의 일면에 따른 차량용 LIN 통신 시스템은, 차량 내에서 LIN 통신 방식에 따라 통신하는 마스터 모듈과 슬레이브 모듈을 포함하고, 상기 마스터 모듈은 상기 슬레이브 모듈의 특정 동작을 요청하기 위해 상기 특정 동작과 연계된 식별자를 동작 요청 명령어로서 상기 슬레이브 모듈로 송신하고, 상기 슬레이브 모듈은 상기 동작 요청 명령어를 수신하여 상기 식별자에 연계된 상기 특정 동작을 수행하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a vehicular LIN communication system including a master module and a slave module communicating in accordance with a LIN communication scheme in a vehicle, the master module requesting a specific operation of the slave module The slave module transmits the identifier associated with the specific operation to the slave module as an operation request command, and the slave module receives the operation request command and performs the specific operation associated with the identifier.

본 발명의 다른 일면에 따른 차량 내에서 LIN 통신 방식에 따라 통신하는 마스터 모듈과 슬레이브 모듈로 구성된 차량용 LIN 통신 시스템에서 슬레이브 모듈의 구동 방법은, 상기 마스터 모듈이 상기 슬레이브 모듈이 수행하는 다수의 특정 동작과 각각 연계된 다수의 식별자를 상기 슬레이브 모듈에 부여하는 단계와, 상기 마스터 모듈이 상기 다수의 특정 동작 중 임의의 특정 동작을 요청하기 위해 상기 임의의 특정 동작과 연계된 식별자를 동작 요청 명령어로서 상기 슬레이브 모듈로 송신하는 단계 및 상기 슬레이브 모듈이 상기 동작 요청 명령어를 수신하여 상기 식별자에 연계된 상기 임의의 특정 동작을 수행하는 단계를 포함한다.
A method of driving a slave module in a vehicle LIN communication system including a master module and a slave module communicating in accordance with a LIN communication method in a vehicle according to another aspect of the present invention is characterized in that the master module includes a plurality of specific operations Assigning a plurality of identifiers associated with each of the plurality of specific operations to the slave module; and requesting, as the operation request command, an identifier associated with the certain specific operation, Transmitting to the slave module; and receiving the operation request command by the slave module to perform the specific operation associated with the identifier.

본 발명에 의하면, 마스터 모듈에서 슬레이브 모듈의 동작 요청시에 사용하는 마스터 코맨드를 삭제하는 대신, 슬레이브 모듈의 다수의 특정 동작과 연계된 다수의 식별자를 부여하여, 다수의 특정 동작과 연계된 다수의 식별자가 상기 마스터 코맨드의 역할을 대신한다. 이로 인해, 슬레이브 모듈의 동작 시간을 줄이고, 동시에 성능 향상을 도모할 수 있고, 슬레이브 모듈 구동시 복잡한 마스터 코맨드를 사용하지 않아도 되므로, 소프트웨어 개발이 용이해지고, 마스터 코맨드 삭제로 인한 소프트웨어(s/w) 및 하드웨어(h/w) 모듈의 수가 최소화되어 제품경량화가 가능하다.
According to the present invention, instead of deleting a master command to be used at the time of requesting an operation of the slave module in the master module, a plurality of identifiers associated with a plurality of specific operations of the slave module are assigned, The identifier replaces the role of the master command. As a result, it is possible to reduce the operation time of the slave module and improve the performance at the same time, and it is not necessary to use a complicated master command when driving the slave module. Therefore, software development is facilitated and software (s / w) And the number of hardware (h / w) modules is minimized.

도 1은 일반적인 LIN 통신에서 사용되는 메시지 프레임 구성을 보여주는 도면이다.
도 2는 본 발명의 일실시예에 따른 차량용 LIN 통신 시스템의 전체 구성을 나타내는 블록도이다.
도 3은 도 2에 도시된 각 슬레이브 모듈의 내부 구성과 종래의 슬레이브 모듈의 내부 구성을 함께 보여주는 블록도이다.
도 4는 본 발명의 일실시예에 따른 LIN 통신 방법을 설명하기 위한 도면이다.
도 5는 본 발명의 일실시예에 따른 LIN 통신 방법과 종래의 LIN 통신 방법을 함께 보여주는 순서도들
1 is a diagram illustrating a message frame configuration used in a general LIN communication.
2 is a block diagram showing the overall configuration of a vehicle LIN communication system according to an embodiment of the present invention.
FIG. 3 is a block diagram showing the internal structure of each slave module shown in FIG. 2 together with the internal structure of a conventional slave module.
4 is a diagram for explaining a LIN communication method according to an embodiment of the present invention.
FIG. 5 is a flow chart illustrating a LIN communication method and a conventional LIN communication method according to an embodiment of the present invention.

아래에서는 첨부한 도면을 참고로 하여 본 발명의 실시 예에 대하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention. The present invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. In order to clearly illustrate the present invention, parts not related to the description are omitted, and similar parts are denoted by like reference characters throughout the specification.

명세서 전체에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미한다. 또한, 명세서에 기재된 "…부", "…기", "모듈" 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어나 소프트웨어 또는 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다.Throughout the specification, when an element is referred to as "comprising ", it means that it can include other elements as well, without excluding other elements unless specifically stated otherwise. Also, the terms " part, "" module," and " module ", etc. in the specification mean a unit for processing at least one function or operation and may be implemented by hardware or software or a combination of hardware and software have.

도 2는 본 발명의 일실시예에 따른 차량용 LIN 통신 시스템의 전체 구성을 나타내는 블록도이다.2 is a block diagram showing the overall configuration of a vehicle LIN communication system according to an embodiment of the present invention.

도 2를 참조하면, 본 발명의 일실시예에 따른 차량용 LIN 통신 시스템(300)은 마스터 모듈(100)과 상기 마스터 모듈(100)과 LIN 통신 규약에 따라 통신하는 다수의 슬레이브 모듈(200)을 포함한다. 본 실시예에서는, 다수의 슬레이브 모듈이 4개의 슬레이브 모듈들(Sensor#1, Sensor#2, Sensor#3, Sensor#4)로 구성된다.2, a vehicle LIN communication system 300 according to an exemplary embodiment of the present invention includes a master module 100 and a plurality of slave modules 200 communicating with the master module 100 according to the LIN communication protocol. . In this embodiment, a plurality of slave modules is composed of four slave modules (Sensor # 1, Sensor # 2, Sensor # 3, Sensor # 4).

마스터 모듈(100)은 각 슬레이브 모듈(Sensor#1, Sensor#2, Sensor#3, Sensor#4)의 동작을 지시하고, 이에 따른 데이터를 요청하는 구성으로서 차량 내의 전자 제어 유닛(ECU)일 수 있다. 각 슬레이브 모듈(2)은 데이터를 처리하고, 응답하는 구성으로서, 차량 내의 주차 보조 센서, 구동기일 수 있으며, 본 실시예에서는 주차 보조 센서로 가정하고, 이하에서는 용어 "슬레이브 모듈"을 용어 "센서 모듈"이라 지칭한다.The master module 100 is a unit for instructing the operation of each slave module (Sensor # 1, Sensor # 2, Sensor # 3, Sensor # 4) have. Each slave module 2 can be a parking assistant sensor or a driver in the vehicle as a configuration for processing and responding to data. In the present embodiment, it is assumed as a parking assist sensor, and the term "slave module" Module "

본 발명의 일실시예에 따른 마스터 모듈(100)은 각 센서 모듈의 특정 동작을 요청할 때 사용하는 마스터 코맨드를 전송하는 기존과는 달리 마스터 코맨드를 전송하지 않고, 각 센서 모듈의 특정 동작과 연계된 식별자(PID: Protected Identifier)가 포함된 동작 요청 명령만을 전송한다. 여기서, 본 발명에 따른 PID는 LIN 통신에서 사용되는 센서 ID의 개념으로서, 0~59까지의 60개 ID로 구성될 수 있다. 본 실시예에서의 PID는 8bit로 구성될 수 있으며, 상위 6 bit는 0~59까지 숫자를 의미하고, 하위 2bit는 상위 6 bit의 반전을 취한 값 즉, 체크 섬(Check SUM)값으로 설정될 수 있다.The master module 100 according to the embodiment of the present invention does not transmit the master command and transmits the master command used when requesting the specific operation of each sensor module, Only an operation request command including a PID (Protected Identifier) is transmitted. Herein, the PID according to the present invention is LIN The concept of sensor ID used in communication can be composed of 60 IDs from 0 to 59. In the present embodiment, the PID may be composed of 8 bits, the upper 6 bits are numbers from 0 to 59, and the lower 2 bits are set to a value obtained by inverting the upper 6 bits, that is, a check sum .

각 센서 모듈(Sensor#1, Sensor#2, Sensor#3, Sensor#4)은 상기 동작 요청 명령어를 수신하여 상기 식별자에 연계된 상기 특정 동작을 수행한다. 이를 위해, 각 센서 모듈은 도 3에 도시된 바와 같이, PID 저장부(210) 및 PID 인식 로직(230)을 포함한다. PID 저장부(210)는 상기 다수의 PID와 상기 다수의 PID와 각각 연계된 다수의 특정 동작 정보가 저장되어 있으며, PID 인식 로직(230)은 상기 PID 저장부(210)를 참조하여, 상기 마스터 모듈(100)로부터 송신된 PID와 상기 PID에 연계된 상기 특정 동작을 인식하여 상기 PID에 미리 정의된 특정 동작을 실행한다. Each sensor module (Sensor # 1, Sensor # 2, Sensor # 3, Sensor # 4) receives the operation request command and performs the specific operation associated with the identifier. To this end, each sensor module includes a PID storage unit 210 and a PID recognition logic 230, as shown in FIG. The PID storage unit 210 stores a plurality of specific operation information associated with the plurality of PIDs and the plurality of PIDs. The PID recognition logic 230 refers to the PID storage unit 210, Recognizes the PID transmitted from the module 100 and the specific operation associated with the PID and executes a predetermined operation defined in the PID.

이렇게 함으로써, 해당 센서 모듈의 호출만으로도 마스터 코맨드를 송신하는 종래와 동일한 기능을 수행할 수 있게 된다.By doing so, it is possible to perform the same function as the conventional method of transmitting the master command by only calling the corresponding sensor module.

이하, 도 4를 참조하여 종래의 마스터 코맨드 전송 방법과의 비교를 통해 도 1에 도시된 본 발명의 일실시예에 따른 LIN 통신 시스템에서의 통신 방법에 대해 상세히 기술하기로 한다. Hereinafter, a communication method in the LIN communication system according to an embodiment of the present invention shown in FIG. 1 will be described in detail with reference to FIG. 4 in comparison with a conventional master command transmission method.

도 4는 본 발명의 일실시예에 따른 LIN 통신 방법을 설명하기 위한 도면으로서, (a), (b), (c)는 종래의 마스터 코맨드 전송방법을 설명하기 위한 도면들이고,(d)는 본 발명의 통신 방식에 따른 프레임 구성을 보여주는 도면이다.FIG. 4 is a diagram for explaining a LIN communication method according to an embodiment of the present invention, wherein (a), (b), and (c) are diagrams for explaining a conventional master command transmission method, 1 is a diagram illustrating a frame structure according to a communication method of the present invention.

도 4의 (a), (b), (c)를 참조하면, 먼저, 마스터 모듈의 센서의 ID를 "0x08"라 하고, 센서 모듈들(Sensor#1, Sensor#2, Sensor#3, Sensor#4)의 ID를 각각 "0x01", "0x02", "0x03", "0x04"라 가정한다. Referring to FIGS. 4A, 4B and 4C, first, the ID of the sensor of the master module is "0x08", and the sensor modules (Sensor # 1, Sensor # 2, # 4 are assumed to be "0x01 "," 0x02 ", "0x03 ", and" 0x04 ", respectively.

센서 모듈(Sensor#1)이 초음파 신호를 송신하고, 동시에 초음파 신호를 수신하는 직접 송수신하는 경우, 종래 기술에 따른 마스터 코맨드는 (b)와 같은 메시지 프레임을 구성해야 한다.즉, (b)의 경우, 19.2kbps의 전송률로 통신하면, data byte 3개로 구성된 마스터 코맨드 송신에 약 10ms정도가 소요된다. (b)와 같은 마스터 코맨드에 대한 센서 응답의 프레임 구성은 (c)와 같이 구성된다. In the case where the sensor module (Sensor # 1) transmits the ultrasonic signal and simultaneously transmits / receives the ultrasonic signal, the master command according to the related art should constitute a message frame as shown in (b) , It takes about 10 ms to transmit the master command composed of three data bytes if the communication is performed at a transmission rate of 19.2 kbps. (b), the frame structure of the sensor response to the master command is configured as shown in (c).

이에 반해, 본 발명의 일실시예에서는, 센서 모듈 하나당 다수의 PID를 미리 지정한다. 즉, 센서모듈(Sensor#1)에 대해서 직접 송수신("자기가 송신하고 자기가 수신하는")하고, 물체감지는 PID(1) = 0x00 라고 정의하고, 직접 노이즈 감지는 PID(2)=0x01라 정의하고, 주파수 측정은 PID(3)=0x02 라고 정의를 한다면 센서모듈(Sensor#1)은 총 3개의 ID가 부여될 수 있다. 이때, 위와 같이 센서모듈(Sensor#1)이 초음파 센서를 송,수신하고, 노이즈 측정을 한다면 마스터 코맨드 없이, 도 4의 (d)와 같은 프레임으로 구성될 수 있다.In contrast, in an embodiment of the present invention, a plurality of PIDs are preset for each sensor module. That is, it is defined that PID (1) = 0x00 and the direct noise detection is PID (2) = 0x01 in the case where the sensor module (Sensor # 1) And the frequency measurement is defined as PID (3) = 0x02, a total of three IDs can be assigned to the sensor module (Sensor # 1). At this time, if the sensor module (Sensor # 1) transmits and receives the ultrasonic sensor as described above and performs noise measurement, the frame can be configured as shown in FIG. 4 (d) without a master command.

기존 LIN 통신 방법과 비교하면, 본 발명은 마스터 코맨드 자체가 사라지고 센서 모듈에 대한 동작 요청(Slave Request 또는 Response) 명령어만으로 통신 가능하다. 즉, 3 Byte 길이의 마스터 코맨드를 가정한 경우, 3 Byte를 전송하는데 약 10ms 정도 소요가 되므로 센서 모듈 1회 측정에 10ms 정도의 시간을 절약할 수 있다. 예컨대, 센서 모듈이 물체를 1회 측정하는데 소요되는 시간은 기존의 통신 방법에서는 "마스터 코멘드(10ms) + 슬레이브 응답 요청(15ms) = 25ms이라면, 본 발명의 통신 방법에서는 "마스터 코멘드(0ms) + 슬레이브 응답 요청(15ms) = 15ms"가 되어 센서 모듈 1회 측정에 10ms 정도의 시간을 절약할 수 있다.Compared with the existing LIN communication method, the present invention disappeared from the master command itself and is able to communicate only by an operation request (Slave Request or Response) command to the sensor module. That is, assuming a master command of 3 bytes in length, it takes about 10 ms to transfer 3 bytes, so that a time of about 10 ms can be saved in one sensor module measurement. For example, in the conventional communication method, the time required for the sensor module to measure an object once is "master command (10ms) + slave response request (15ms) = 25ms. In the communication method of the present invention, Slave response request (15ms) = 15ms ", which saves about 10ms of time for one sensor module measurement.

도 5는 본 발명의 일실시예에 따른 LIN 통신 방법과 종래의 LIN 통신 방법을 함께 보여주는 순서도들로서, (a)는 본 발명의 일실시예에 따른 LIN 통신 방법을 나타내는 순서도이고, (b)는 종래의 LIN 통신 방법을 보여주는 순서도이다.FIG. 5 is a flowchart illustrating a LIN communication method and a conventional LIN communication method according to an embodiment of the present invention, wherein (a) is a flowchart illustrating a LIN communication method according to an embodiment of the present invention, and (b) FIG. 4 is a flowchart showing a conventional LIN communication method. FIG.

도 5의 (a)를 참조하면, 먼저, 마스터 모듈의 PID 명령어를 통해 각 슬레이브 모듈에 다수의 PID가 부여되면, 마스터 모듈(예컨대, ECU)이 해당 슬레이브 모듈의 특정 동작을 요청하기 위해 상기 특정 동작과 연계된 PID를 동작 요청 명령어로서 상기 슬레이브 모듈로 송신하는 단계가 수행된다(S510). Referring to FIG. 5A, if a plurality of PIDs are assigned to each slave module through the PID command of the master module, the master module (e.g., ECU) And transmitting the PID associated with the operation to the slave module as an operation request command (S510).

이어, 슬레이브 모듈은, 동작 요청 명령어로서 수신된 상기 PID를 내부 PID 인식 로직을 통해 자기 명령 여부를 판단하고(S520), 판단결과, 자기 명령이 아닌 경우, 상기 단계(S510)가 재수행된다.  Then, the slave module determines whether the PID received as an operation request command is a self command through the internal PID recognition logic (S520). If the command is not a self command, the step S510 is performed again.

판단결과 자기 명령인 경우, 상기 PID에 연계되어 사전에 설정된 특정 동작을 실행하고(S530), 실행한 센서 실행 결과를 응답 메시지로서 상기 마스터 모듈로 전송하는 단계가 수행(S540)되는 것으로 모든 단계가 종료된다.As a result of the determination, if it is a magnetic command, step S540 is performed in which the specific operation set in association with the PID is executed (S530) and the executed sensor execution result is transmitted to the master module as a response message (S540) And is terminated.

이와 같이, 본 발명의 LIN 통신 방법은 마스터 모듈이 마스터 코맨드를 송신하는 과정에 대신 PID를 송신하는 과정으로 대체함으로써, 마스터 코맨드를 송신하는 데 소요되는 시간을 줄일 수 있다. 즉, 도 5의 (b)의 마스터 코맨드를 송신하는 단계(S51)가 생략됨으로써, 센서 모듈을 동작시키기 위한 통신 시간을 줄일 수 있다. 이로 인해, 도 5의 (b)와 같이 센서 동작에 따른 결과를 요청하는 단계(S54) 및 이에 따른 자기 명령 여부를 판단하는 단계(S55)없이 센서 실행 결과에 대해 응답하는 단계로 모든 단계가 종료되므로, 슬레이브 모듈로부터의 응답 수신에 소요되는 통신 시간을 줄일 수 있다. 결과적으로, 마스터 모듈에서 센서 모듈의 동작 요청시에 사용하는 마스터 코맨드를 송신하는 과정을 각 센서 모듈의 특정 동작과 연계된 PID를 송신하는 과정으로 대체함으로써, 마스터 코맨드 송신에 소요되는 시간을 줄여, 해당 센서 모듈의 동작 및 응답을 위한 전체 통신 시간을 줄일 수 있게 된다.As described above, the LIN communication method of the present invention can reduce the time required for transmitting the master command by replacing the master module with the process of transmitting the master command instead of the process of transmitting the master command. That is, omitting the step S51 of transmitting the master command of FIG. 5 (b), the communication time for operating the sensor module can be reduced. As a result, the step of requesting the result of the sensor operation as shown in (b) of FIG. 5 and the step (S55) Communication time required for receiving a response from the slave module can be reduced. As a result, by replacing the process of transmitting the master command used when requesting the operation of the sensor module from the master module with the process of transmitting the PID associated with the specific operation of each sensor module, the time required for transmitting the master command is reduced, The total communication time for operation and response of the corresponding sensor module can be reduced.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.
The foregoing description is merely illustrative of the technical idea of the present invention, and various changes and modifications may be made by those skilled in the art without departing from the essential characteristics of the present invention. Therefore, the embodiments disclosed in the present invention are intended to illustrate rather than limit the scope of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The scope of protection of the present invention should be construed according to the following claims, and all technical ideas within the scope of equivalents should be construed as falling within the scope of the present invention.

Claims (8)

차량 내에서 LIN 통신 방식에 따라 통신하는 마스터 모듈과 슬레이브 모듈로 구성된 차량용 LIN 통신 시스템에 있어서,
상기 마스터 모듈은,
상기 슬레이브 모듈의 특정 동작을 요청하기 위해 상기 특정 동작과 연계된 식별자를 동작 요청 명령어로서 상기 슬레이브 모듈로 송신하고,
상기 슬레이브 모듈은,
상기 동작 요청 명령어를 수신하여 상기 식별자에 연계된 상기 특정 동작을 수행하는 것인 차량용 LIN 통신 시스템.
1. A vehicle LIN communication system comprising a master module and a slave module for communicating in a vehicle according to a LIN communication system,
The master module comprises:
Transmitting an identifier associated with the specific operation to the slave module as an operation request command to request a specific operation of the slave module,
The slave module includes:
And receives the operation request command to perform the specific operation associated with the identifier.
제1항에 있어서, 상기 슬레이브 모듈에는,
다수의 특정 동작과 각각 연계된 다수의 식별자가 부여된 것인 차량용 LIN 통신 시스템.
The communication system according to claim 1, wherein, in the slave module,
Wherein a plurality of identifiers are associated with each of a plurality of specific operations.
제2항에 있어서, 상기 슬레이브 모듈은,
상기 다수의 식별자와 상기 다수의 식별자와 각각 연계된 다수의 특정 동작 정보가 저장된 저장부; 및
상기 저장부를 참조하여, 상기 마스터 모듈로부터 송신된 식별자와 상기 식별자에 연계된 상기 특정 동작을 인식하는 식별자 인식부
를 포함하는 차량용 LIN 통신 시스템.
3. The system of claim 2, wherein the slave module comprises:
A storage unit storing a plurality of specific identifiers and a plurality of specific operation information associated with the plurality of identifiers; And
An identifier recognizing unit for recognizing the identifier transmitted from the master module and the specific operation associated with the identifier,
And the LIN communication system.
제2항에 있어서, 상기 다수의 식별자는 상기 마스터 모듈에 의해 부여되고,
상기 마스터 모듈은,
'Assign PID(Protected Identifier)' 명령어를 통해 상기 슬레이브 모듈의 식별자를 부여하는 것인 차량용 LIN 통신 시스템.
3. The method of claim 2, wherein the plurality of identifiers are assigned by the master module,
The master module comprises:
And assigns the identifier of the slave module via an 'Assign PID (Protected Identifier)' command.
차량 내에서 LIN 통신 방식에 따라 통신하는 마스터 모듈과 슬레이브 모듈로 구성된 차량용 LIN 통신 시스템에서 슬레이브 모듈의 구동 방법에 있어서,
상기 마스터 모듈이 상기 슬레이브 모듈이 수행하는 다수의 특정 동작과 각각 연계된 다수의 식별자를 상기 슬레이브 모듈에 부여하는 단계;
상기 마스터 모듈이 상기 다수의 특정 동작 중 임의의 특정 동작을 요청하기 위해 상기 임의의 특정 동작과 연계된 식별자를 동작 요청 명령어로서 상기 슬레이브 모듈로 송신하는 단계; 및
상기 슬레이브 모듈이 상기 동작 요청 명령어를 수신하여 상기 식별자에 연계된 상기 임의의 특정 동작을 수행하는 단계
를 포함하는 것인 차량용 LIN 통신 시스템에서 슬레이브 모듈의 동작 방법.
A method of driving a slave module in a vehicle LIN communication system including a master module and a slave module communicating in a vehicle according to a LIN communication method,
Assigning to the slave module a plurality of identifiers associated with a plurality of specific operations performed by the slave module;
Transmitting to the slave module an identifier associated with any particular operation for requesting any particular one of the plurality of specific operations by the master module as an operation request command; And
Wherein the slave module receives the operation request command and performs the certain specific operation associated with the identifier
The method comprising the steps of:
제5항에 있어서, 상기 다수의 식별자를 상기 슬레이브 모듈에 부여하는 단계는,
상기 마스터 모듈이 'Assign PID(Protected Identifier)' 명령어를 통해 부여되는 것인 차량용 LIN 통신 시스템에서 슬레이브 모듈의 동작 방법.
6. The method of claim 5, wherein the step of assigning the plurality of identifiers to the slave module comprises:
Wherein the master module is assigned via an 'Assign PID (Protected Identifier)' command.
제5항에 있어서, 상기 마스터 모듈은,
LIN 통신 표준에서 정의된 마스터 코맨드(Master Command)를 송신하지 않는 것인 차량용 LIN 통신 시스템에서 슬레이브 모듈의 동작 방법.
6. The method of claim 5,
Wherein the master command does not transmit a master command defined in the LIN communication standard.
제5항에 있어서, 상기 임의의 특정 동작을 수행하는 단계는,
상기 다수의 식별자와 상기 다수의 식별자와 각각 연계된 다수의 특정 동작 정보가 저장된 저장부를 참조하여, 상기 마스터 모듈로부터 송신된 식별자를 인식하는 단계; 및
인식된 상기 식별자와 연계된 특정 동작을 수행하는 단계;
를 포함하는 차량용 LIN 통신 시스템에서 슬레이브 모듈의 동작 방법.
6. The method of claim 5, wherein performing the particular action comprises:
Recognizing an identifier transmitted from the master module by referring to a storage unit storing a plurality of identifiers and a plurality of specific operation information associated with the plurality of identifiers; And
Performing a specific operation associated with the recognized identifier;
The method comprising the steps of:
KR1020120128173A 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system KR101958477B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020120128173A KR101958477B1 (en) 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system
CN201310438827.6A CN103809552B (en) 2012-11-13 2013-09-24 LIN communication system for vehicle and method for driving slave module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120128173A KR101958477B1 (en) 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system

Publications (2)

Publication Number Publication Date
KR20140061043A KR20140061043A (en) 2014-05-21
KR101958477B1 true KR101958477B1 (en) 2019-03-14

Family

ID=50706490

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120128173A KR101958477B1 (en) 2012-11-13 2012-11-13 Lin communication system for vehicle and method for driving slave module in the system

Country Status (2)

Country Link
KR (1) KR101958477B1 (en)
CN (1) CN103809552B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102227841B1 (en) * 2014-07-07 2021-03-15 현대모비스 주식회사 Sensor module for a vehicle and method for assigning sensor id using the system
KR101638697B1 (en) * 2014-10-28 2016-07-12 대성전기공업 주식회사 Apparatus for multi switch relay
KR101593338B1 (en) 2014-12-31 2016-02-11 현대다이모스(주) Apparatus for lin communication of vehicle and control method thereof
KR101866093B1 (en) 2016-12-06 2018-06-11 현대오트론 주식회사 Apparatus and method for controlling operation of Slave Controller
EP3799364A4 (en) * 2018-05-23 2021-07-14 Panasonic Intellectual Property Corporation of America COMMUNICATION CONTROL DEVICE, ELECTRONIC CONTROL UNIT FOR DETECTING UNAUTHORIZED ACCESS, MOBILITY NETWORK SYSTEM, COMMUNICATION CONTROL METHODS, METHODS FOR DETECTING UNAUTHORIZED PROGRAM ACCESS

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007142694A (en) 2005-11-17 2007-06-07 Fujitsu Ten Ltd Lin communication apparatus and lin communication control method
JP2010136286A (en) 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2010268066A (en) 2009-05-12 2010-11-25 Hitachi Automotive Systems Ltd Lin communication device and lin communication control method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITTO20060799A1 (en) * 2006-11-09 2008-05-10 Enzo Tarizzo CONTROL SYSTEM OF ELECTRICAL AND / OR ELECTRONIC EQUIPMENT AND DEVICES DISPLACED IN AN ENVIRONMENT, IN PARTICULAR IN A DOMESTIC ENVIRONMENT
CN101539775A (en) * 2009-04-09 2009-09-23 南京赛格微电子科技有限公司 Automobile control module system for identifying address automatically
KR101095583B1 (en) * 2009-10-28 2011-12-19 동의대학교 산학협력단 Integrated Gateway Monitoring System and Method in In-vehicle Network
FR2969451B1 (en) * 2010-12-17 2013-01-11 St Microelectronics Rousset METHOD AND DEVICE FOR COMMUNICATING BETWEEN ONE MASTER AND SEVERAL SLAVES FOLLOWING A SERIAL COMMUNICATION PROTOCOL, ESPECIALLY OF THE OPEN DRAIN TYPE
CN102156477A (en) * 2011-05-19 2011-08-17 苏州市职业大学 AGV (automatic guided vehicle) control platform and realizing method of AGV control platform
CN202285095U (en) * 2011-10-27 2012-06-27 广东省电子技术研究所 Communication system for card collector/dispenser
CN102738525A (en) * 2012-06-14 2012-10-17 沈阳中科正方新能源技术有限公司 Battery management system of vehicle-mounted lithium power battery

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007142694A (en) 2005-11-17 2007-06-07 Fujitsu Ten Ltd Lin communication apparatus and lin communication control method
JP2010136286A (en) 2008-12-08 2010-06-17 Denso Corp Onboard communication network system
JP2010268066A (en) 2009-05-12 2010-11-25 Hitachi Automotive Systems Ltd Lin communication device and lin communication control method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIN 프로토콜 시간 모델링 및 메시지 응답 시간 해석에 대한 연구(연제명 등 2명, 2005년)

Also Published As

Publication number Publication date
KR20140061043A (en) 2014-05-21
CN103809552B (en) 2017-04-12
CN103809552A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
WO2020216235A1 (en) Vehicle-mounted gateway communication method, vehicle-mounted gateway, and smart vehicle
KR101500094B1 (en) Message transmission/reception system and method for ethernet-based vehicle network
KR101958477B1 (en) Lin communication system for vehicle and method for driving slave module in the system
CN107659494B (en) Data processing method and intelligent vehicle-mounted gateway
JP7562661B2 (en) Software upgrade method, apparatus and system
CN102404306B (en) Protocol configuration method and device
US20070124439A1 (en) Device interface architecture and protocol
CN110535667A (en) Method and apparatus for the communication node in selective wake-up vehicle network
KR102707737B1 (en) Controller diagnostic device and method thereof
JP2010272971A (en) Control system and control program rewriting method
CN105897652A (en) Standard protocol based heterogeneous terminal dynamic access method
CN105388858A (en) Operation method of communication node in network
KR20180074128A (en) Diagnosis message routing system and method for gateway of vehicle
KR20160146045A (en) Operating method of a communication node in automotive network
CN102096411A (en) Method and upper computer for calibrating parameter of vehicle-mounted controller
CN101667951A (en) Network device and data transmission method thereof
CN108928213B (en) Parameter configuration method of control panel, control panel and controlled equipment
CN101950485B (en) Traffic signal lamp digital networking equipment
EP2911423A1 (en) Implementation method and device for virtual southbound interface and internet of things management platform
KR102595722B1 (en) Communication network, method and apparatus for identifying node connected thereto
KR101593840B1 (en) Method and apparatus for transmitting can frame
CN105992077A (en) Optical network unit management and control interface layer data conversion method and device
CN115580639B (en) Data processing method and system for generating vehicle wake-up instruction
CN209358540U (en) Based on configurable intelligent network repeater
US20080129466A1 (en) Matching system and method for preventing the loss of data between low-power network and non-low-power network

Legal Events

Date Code Title Description
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 20121113

PG1501 Laying open of application
A201 Request for examination
PA0201 Request for examination

Patent event code: PA02012R01D

Patent event date: 20171113

Comment text: Request for Examination of Application

Patent event code: PA02011R01I

Patent event date: 20121113

Comment text: Patent Application

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

Patent event code: PE07011S01D

Comment text: Decision to Grant Registration

Patent event date: 20190222

PR0701 Registration of establishment

Comment text: Registration of Establishment

Patent event date: 20190308

Patent event code: PR07011E01D

PR1002 Payment of registration fee

Payment date: 20190311

End annual number: 3

Start annual number: 1

PG1601 Publication of registration
PR1001 Payment of annual fee

Payment date: 20220302

Start annual number: 4

End annual number: 4

PR1001 Payment of annual fee

Payment date: 20240227

Start annual number: 6

End annual number: 6