KR101593338B1 - Apparatus for lin communication of vehicle and control method thereof - Google Patents
Apparatus for lin communication of vehicle and control method thereof Download PDFInfo
- Publication number
- KR101593338B1 KR101593338B1 KR1020140195364A KR20140195364A KR101593338B1 KR 101593338 B1 KR101593338 B1 KR 101593338B1 KR 1020140195364 A KR1020140195364 A KR 1020140195364A KR 20140195364 A KR20140195364 A KR 20140195364A KR 101593338 B1 KR101593338 B1 KR 101593338B1
- Authority
- KR
- South Korea
- Prior art keywords
- master controller
- controller
- slave
- master
- slave controllers
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40019—Details regarding a bus master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40234—Local Interconnect Network LIN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
본 발명은 차량의 LIN 통신 장치 및 그 제어 방법에 관한 것으로, 더욱 상세하게는 하나의 마스터 제어기에 연결된 다수의 슬레이브 제어기가 정상적으로 작동될 수 있도록 제어하는 차량의 LIN 통신 장치 및 그 제어 방법에 관한 것이다.
BACKGROUND OF THE
일반적으로, LIN(Local Interconnect Network)통신은 주로 ECU와 능동센서 및 능동 액추에이터 간의 데이터 전송에 사용된다. LIN은 간단한 단선 버스로서, 통상의 마스터-슬레이브(master-slave) 원리에 따라 작동한다. Generally, LIN (Local Interconnect Network) communication is mainly used for data transmission between ECU, active sensor and active actuator. LIN is a simple unidirectional bus that operates according to the usual master-slave principle.
도 1에 도시된 바와 같이, 종래 LIN통신의 마스터-슬레이브 원리란 중심이 되는 1대의 마스터 제어기(master)(10)와 이에 온라인으로 연결, 종속된 다수의 슬레이브 제어기(slave)(11)들이 각각의 데이터 처리 내용에 따라 작업을 분담해서 처리하는 시스템으로서 주/종속(master-slave) 시스템이라고도 한다.As shown in FIG. 1, one
특히, LIN 통신은 멀티플렉스 시스템과는 달리, 데이터 전송의 신호형태 및 프로토콜(데이터 정보의 형식)이 표준화되어 있기 때문에 다수의 시스템 생산회사 및 자동차 회사들이 LIN 부품을 공용할 수 있다. 따라서 표준화된 진단-툴(tool) 및 진단 소프트웨어의 사용, 그리고 고장진단의 단순화가 가능하다는 점이 장점이다.In particular, unlike multiplex systems, LIN communication can share LIN parts with a large number of system manufacturers and automobile companies because of the standardization of signal formats and protocols (data information formats) of data transmission. Therefore, it is advantageous to use standardized diagnostic tools and diagnostic software, and to simplify diagnosis of faults.
그러나 상기와 같은 종래의 LIN 통신은, 하나의 마스터에 다수의 슬레이브가 지정되어 해당 마스터 제어기가 응답하지 않을 경우, 종속된 슬레이브 제어기가 정상적이라도 마스터에 연결된 다수의 슬레이브 제어기가 모두 작동 불가하게 되는 문제점이 있었다.
However, in the conventional LIN communication as described above, when a plurality of slaves are assigned to one master and the corresponding master controller does not respond, even if the slave controller is normally operated, all the slave controllers connected to the master are disabled .
본 발명은 상술한 종래기술의 문제점을 극복하기 위한 것으로서, 마스터 제어기가 응답하지 않을 경우 슬레이브 제어기중 어느 하나가 서브 마스터로서 기능을 대신하여 응답함으로써 다수의 슬레이브 제어기가 정상적으로 작동될 수 있도록 제어하는 차량의 LIN 통신 장치 및 그 제어 방법을 제공하는 데에 그 목적이 있다.
SUMMARY OF THE INVENTION It is an object of the present invention to overcome the above-described problems of the prior art and to provide a vehicle control system and a control method thereof, in which a slave controller responds, instead of a sub- And a method of controlling the same.
상기 목적을 달성하기 위해 본 발명에 따른 차량의 LIN 통신 장치는, 차량 내에서 LIN 통신 방식에 따라 통신하는 하나의 마스터 제어기와 이에 종속 연결된 다수의 슬레이브 제어기로 구성된 차량용 LIN 통신 장치에 있어서, 상기 마스터 제어기는, 상기 다수의 슬레이브 제어기로부터 송신되는 로컬 신호에 대응하여 응답하고, 상기 다수의 슬레이브 제어기는, 순차적으로 상기 마스터 제어기에 로컬 신호를 송신하여 그 응답에 따라 동작하되, 상기 마스터 제어기의 응답이 없는 경우 상기 슬레이브 제어기중 미리 지정된 어느 하나의 슬레이브 제어기가 서브 마스터 제어기의 역할을 수행하여 각각의 다른 슬레이브 제어기를 제어하는 것을 특징으로 한다.In order to achieve the above object, a LIN communication apparatus of a vehicle according to the present invention is a LIN communication apparatus for a vehicle, which comprises a master controller communicating in accordance with a LIN communication scheme in a vehicle and a plurality of slave controllers connected thereto, A controller responds to a local signal transmitted from the plurality of slave controllers, wherein the plurality of slave controllers sequentially transmit a local signal to the master controller and operate in response to the local signal, One of the slave controllers previously designated among the slave controllers performs the role of the sub master controller and controls each of the other slave controllers.
상기 다수의 슬레이브 제어기는, 상기 마스터 제어기에 로컬 웨이크 업(wake up) 시그널을 보낸 후, 설정된 임의의 시간 동안 상기 마스터 제어기의 응답이 없고, 미리 규정된 서브 마스터 제어기의 활성조건을 만족할 때, 상기 슬레이브 제어기중 지정된 어느 하나의 슬레이브 제어기가 서브 마스터 제어기의 역할을 수행하여 각각의 다수의 다른 슬레이브 제어기를 제어할 수 있다.Wherein the plurality of slave controllers send a local wake up signal to the master controller and when there is no response of the master controller for a set time and the activation condition of the predefined sub master controller is satisfied, One of the slave controllers assigned to the slave controller can act as a sub master controller to control each of the plurality of other slave controllers.
상기 서브 마스터 제어기의 역할을 수행하는 상기 슬레이브 제어기는, 주기적으로 상기 마스터 제어기를 호출하고, 임의의 시간 이내에 응답이 있을 경우에 상기 마스터 제어기에게 통제 권한을 전달하는 것이 바람직하다.The slave controller performing the role of the sub master controller periodically calls the master controller and delivers the control authority to the master controller when there is a response within a certain time.
본 발명에 따른 차량의 LIN 통신 장치의 제어 방법은, 차량 내에서 LIN 통신 방식에 따라 통신하는 하나의 마스터 제어기와 이에 종속 연결된 다수의 슬레이브 제어기로 구성된 차량용 LIN 통신 장치의 제어 방법에 있어서, a) 상기 마스터 제어기가 상기 다수의 슬레이브 제어기로부터 송신되는 로컬 신호에 대응하여 응답하는 단계; b) 상기 다수의 슬레이브 제어기는, 순차적으로 상기 마스터 제어기에 로컬 신호를 송신하여 그 응답에 따라 동작하되, 상기 마스터 제어기의 응답이 없는 경우 상기 슬레이브 제어기중 미리 지정된 어느 하나의 슬레이브 제어기가 서브 마스터 제어기의 역할을 수행하여 각각의 다른 슬레이브 제어기를 제어하는 단계를 포함하는 것을 특징으로 한다.A control method of a LIN communication apparatus of a vehicle according to the present invention is a control method of a vehicle LIN communication apparatus comprising a master controller communicating in accordance with a LIN communication system in a vehicle and a plurality of slave controllers connected thereto, The master controller responding to local signals transmitted from the plurality of slave controllers; b) the plurality of slave controllers sequentially transmit a local signal to the master controller and operate in response to the response, wherein, when there is no response from the master controller, any one of the slave controllers, And controlling each of the other slave controllers.
상기 b) 단계에 있어서, 상기 다수의 슬레이브 제어기는, 상기 마스터 제어기에 로컬 웨이크 업 시그널을 보낸 후, 설정된 임의의 시간 동안 상기 마스터 제어기의 응답이 없고, 미리 규정된 서브 마스터 제어기의 활성조건을 만족할 때, 상기 슬레이브 제어기중 지정된 어느 하나의 슬레이브 제어기가 서브 마스터 제어기의 역할을 수행하여 상기 각각의 다른 슬레이브 제어기를 제어할 수 있다.In the step b), the plurality of slave controllers send a local wakeup signal to the master controller, and after a predetermined period of time, there is no response from the master controller, and the predetermined condition of the sub master controller is satisfied One of the slave controllers designated in the slave controller can act as a sub master controller to control each of the other slave controllers.
상기 b) 단계에 있어서, 상기 서브 마스터 제어기의 역할을 수행하는 상기 슬레이브 제어기는, 주기적으로 상기 마스터 제어기를 호출하고, 임의의 시간 이내에 응답이 있을 경우에 상기 마스터 제어기에게 통제 권한을 전달하는 것이 바람직하다.
In the step b), the slave controller performing the role of the sub master controller periodically calls the master controller, and when a response is made within a predetermined time, it is preferable to transmit the control authority to the master controller Do.
상기와 같이 구성된 본 발명에 따른 차량의 LIN 통신 장치 및 그 제어 방법에 의하면, 마스터 제어기가 응답하지 않을 경우 슬레이브 제어기중 어느 하나가 서브 마스터로서 기능을 대신하여 다수의 슬레이브 제어기가 정상적으로 작동될 수 있도록 제어함으로써, LIN 통신의 신뢰성을 향상시킴과 아울러 마스터 및 슬레이브 제어기의 신뢰성을 향상시키는 효과가 있다.
According to the LIN communication apparatus and control method of the vehicle according to the present invention configured as described above, when the master controller does not respond, any one of the slave controllers replaces the function as the sub-master so that the plurality of slave controllers can operate normally The reliability of the LIN communication is improved and the reliability of the master and slave controllers is improved.
도 1은 종래기술에 따른 LIN 통신 장치를 나타낸 개념도.
도 2는 본 발명의 바람직한 일 실시예에 따른 차량의 LIN 통신 장치를 나타낸 블록도.
도 3은 도 2의 마스터 부재시 동작상태를 나타낸 개념도.
도 4는 도 2의 마스터 활성화시 동작상태를 나타낸 개념도.
도 5는 본 발명의 LIN 메시지 프레임을 나타낸 도면.
도 6 및 도 7은 본 발명의 바람직한 일 실시예에 따른 차량의 LIN 통신 장치의 제어 방법을 나타낸 순서도.1 is a conceptual diagram showing a conventional LIN communication apparatus;
2 is a block diagram showing a LIN communication apparatus of a vehicle according to a preferred embodiment of the present invention;
3 is a conceptual diagram showing the master-in-operation state of FIG. 2;
FIG. 4 is a conceptual diagram illustrating an operation state when the master is activated in FIG. 2;
5 illustrates a LIN message frame of the present invention.
6 and 7 are flowcharts showing a control method of a LIN communication apparatus of a vehicle according to a preferred embodiment of the present invention.
본 발명은 다양한 변형 및 여러 가지 실시예를 가질 수 있는바, 특정 실시예들을 도면에 예시하고 상세한 설명에 보다 상세하게 설명하고자 한다. 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. The present invention may have various modifications and various embodiments, and specific embodiments are illustrated in the drawings and described in detail in the detailed description. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
이하, 본 발명의 바람직한 실시예를 첨부된 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 2는 본 발명의 바람직한 일 실시예에 따른 차량의 LIN 통신 장치를 나타낸 블록도이다. 또한, 도 3은 도 2의 마스터 부재시 동작상태를 나타낸 개념도이고, 도 4는 도 2의 마스터 활성화시 동작상태를 나타낸 개념도이며, 도 5는 본 발명의 LIN 메시지 프레임을 나타낸 도면이다.2 is a block diagram showing a LIN communication apparatus of a vehicle according to a preferred embodiment of the present invention. FIG. 3 is a conceptual diagram illustrating a master-absence operation state of FIG. 2, FIG. 4 is a conceptual diagram illustrating an operation state of the master activation of FIG. 2, and FIG. 5 is a diagram illustrating a LIN message frame of the present invention.
도 2에 도시된 바와 같이 본 발명에 따른 차량의 LIN 통신 장치는, 차량 내에서 LIN 통신 방식에 따라 통신하는 하나의 마스터 제어기(20)와 이에 종속 연결된 다수의 슬레이브 제어기(21,22,23)로 구성된다.2, the LIN communication apparatus of the vehicle according to the present invention includes one
상기와 같이 구성된 본 발명의 차량용 LIN 통신 장치에 있어서, 상기 마스터 제어기(20)는, 상기 다수의 슬레이브 제어기(21,22,23)로부터 송신되는 로컬 신호에 각각 순차적으로 1:1로 대응하여 응답한다.In the vehicle LIN communication apparatus configured as described above, the
또한, 상기 다수의 슬레이브 제어기(21,22,23)들도 상기 마스터 제어기(20)에 순차적으로 1:1로 로컬 신호를 송신하여 그 응답에 따라 제어 권한을 받아 동작한다.Also, the plurality of
이때, 상기 마스터 제어기(20)의 응답이 없는 경우 상기 슬레이브 제어기(21,22,23)중 미리 지정된 어느 하나의 슬레이브 제어기(21)가 서브 마스터 제어기의 역할을 수행하여 각각의 다른 슬레이브 제어기(22,23)를 제어한다.At this time, when there is no response from the
특히, 상기 다수의 슬레이브 제어기(21,22,23)는 상기 마스터 제어기(20)에 로컬 웨이크 업(wake up) 시그널을 보낸 후, 설정된 임의의 시간 동안 상기 마스터 제어기(20)의 응답이 없고, 미리 규정된 서브 마스터 제어기(20)의 활성조건을 만족할 때, 상기 슬레이브 제어기(21,22,23)중 지정된 어느 하나의 슬레이브 제어기(21)가 서브 마스터 제어기의 역할을 수행하여 상기 각각의 다른 슬레이브 제어기(22,23)를 제어하는 것이 바람직하다.In particular, the plurality of
즉, 도 3에 도시된 바와 같이, 슬레이브 제어기(22, 23)들의 로컬 웨이크 업 시그널을 보내고 임의의 시간이 경과한 후, 마스터 제어기(20)의 응답이 없고, 규정된 서브 마스터 활성조건을 만족할 때, 상기 지정된 슬레이브 제어기(21)가 서브 마스터 제어기의 역할을 수행하여 네트워크를 통제하게 된다.That is, as shown in FIG. 3, after a certain time has elapsed after sending the local wake-up signal of the
본 발명에서 규정된 상기 서브 마스터 활성조건은, 일예로 차량상태 및 특정조건에서 마스터 제어기(20)가 스케줄링을 하지 않고, 대기 상태일 때가 있으며 이때, 마스터가 제어기(20)가 활성화되어 스케줄링을 개시하거나, 슬레이브 제어기(21)가 활성화되어 스케줄링을 요청하는 경우 발생한다(LIN통신은 마스터의 스케줄링을 통해서만 통신한다). The sub-master activation condition defined in the present invention is, for example, when the
마스터의 스케줄링 개시 혹은 슬레이브 제어기의 마스터 제어기의 스케줄링을 요청하는 신호로, LIN 스펙에 규정된 웨이크 업(Wake up) 시그널을 보내 LIN 네트웍에 연결된 모든 제어기를 활성화시킨다.A signal requesting the start of scheduling of the master or the master controller of the slave controller, sends a wake up signal specified in the LIN specification to activate all the controllers connected to the LIN network.
웨이크 업 시그널이 성공적으로 송신된 이후, 규정된 시간이 지난 이후 마스터 제어기(20)의 스케줄링이 없을 경우, 서브 마스터 제어기, 즉 슬레이브 제어기(21)가 스케줄링을 시작한다. If there is no scheduling of the
서브 마스터 제어기의 역할을 하는 복수의 슬레이브 제어기(21, 22, 23)가 있을 경우, 우선순위가 가장 높은 순으로 스케줄링을 하며, 우선순위가 가장 높은 슬레이브 제어기(21)의 스케줄링이 없을 경우, 대기시간을 거쳐 다음 우선순위의 슬레이브 제어기(22 또는 23)가 활성화되어 스케줄링을 시작한다. When there is a plurality of
슬레이브 제어기(21, 22, 23)는 주기적으로, LIN 네트웍상에 연결된 마스터 제어기(20)를 포함한 모든 제어기를 스케줄링하여, 마스터 제어기(20)가 응답할 때, 네트웍의 제어권을 다시 마스터 제어기(20)에 넘겨준다. The
마스터 제어기(20)의 스케줄링에서, 마스터 제어기(20)는 슬레이브 제어기(21, 22, 23)를 호출하여 통신할 때, 1개 이상의 타임테이블을 가지고 통신하며, 타임테이블에 명시된 순서대로, 슬레이브 제어기(21, 22, 23)를 호출하여 통신한다.In the scheduling of the
따라서, 상기 서브 마스터 제어기의 역할을 수행하는 상기 슬레이브 제어기(21)는, 주기적으로 상기 마스터 제어기(20)를 호출하고, 임의의 시간 이내에 응답이 있을 경우에 상기 마스터 제어기(20)에게 통제 권한을 전달한다.Accordingly, the
즉, 도 4에 도시된 바와 같이, 서브 마스터가 네트워크를 통제하는 중 마스터 제어기가 활성화될 때는 다음과 같다.That is, as shown in FIG. 4, when the master controller is activated while the sub-master controls the network, the following will be described.
먼저, 서브 마스터 역할을 수행하는 슬레이브 제어기(21)는 주기적으로, 마스터 제어기(20)를 스케줄링 테이블에 포함한다. 이후, 마스터 제어기(20)가 서브 마스터 역할을 수행하는 슬레이브 제어기(21)에 응답시, 별도의 메시지 맵(Message Map)에 마스터 제어기(20)의 네트워크 통제를 넘겨주는 시그널을 마스터 제어기(20) 전달하고, 마스터 제어기(20)의 최종 응답 후 마스터의 통제에 응답한다. First, the
이때, 도 5의 LIN 메시지 프레임에 도시된 바와 같이, 서브마스터 네트워크 통제 시그널은 NMC(Network Management Control)값에 따라 데이터 길이가 가변될 수 있다.At this time, as shown in the LIN message frame of FIG. 5, the data length of the sub-master network control signal may vary according to the NMC (Network Management Control) value.
도 5에 도시된 바와 같이, 상기 NMC값은 네트워크 통제권 이전 요구를 위한 NMC_TRANSFER(슬레이브), 네트워크 통제권 이전 수락을 위한 NMC_TRANSFER_OK(마스터), NONE(마스터/슬레이브)을 포함한다.As shown in FIG. 5, the NMC value includes NMC_TRANSFER (slave) for network control transfer request, NMC_TRANSFER_OK (master), NONE (master / slave) for network control transfer acceptance.
도 6 및 도 7은 본 발명의 바람직한 일 실시예에 따른 차량의 LIN 통신 장치의 제어 방법을 나타낸 순서도이다.6 and 7 are flowcharts illustrating a method of controlling an LIN communication apparatus of a vehicle according to a preferred embodiment of the present invention.
도시된 바와 같이 본 발명의 바람직한 일 실시예에 따른 차량의 LIN 통신 장치의 제어 방법은, 차량 내에서 LIN 통신 방식에 따라 통신하는 하나의 마스터 제어기(20)와 이에 종속 연결된 다수의 슬레이브 제어기(21,22,23)로 구성된 차량용 LIN 통신 장치의 제어 방법에 있어서, 먼저 상기 마스터 제어기(20)가 상기 다수의 슬레이브 제어기(21,22,23)로부터 송신되는 로컬 신호, 즉 호출신호에 대응하여 응답하는 a단계를 수행한다(S101~S103).As shown in the figure, the control method of the LIN communication apparatus of the vehicle according to the preferred embodiment of the present invention includes a
이후, 상기 다수의 슬레이브 제어기(21,22,23)는, 순차적으로 상기 마스터 제어기(20)에 로컬 신호를 송신하여 그 응답에 따라 동작하되, 상기 마스터 제어기(20)의 응답이 없는 경우 상기 슬레이브 제어기(21,22,23)중 어느 하나의 슬레이브 제어기(21)가 서브 마스터 제어기의 역할을 수행하여 각각의 다수의 다른 슬레이브 제어기(22,23)를 제어하는 b단계를 수행한다(S104~S110).Thereafter, the plurality of slave controllers (21, 22, 23) sequentially transmit local signals to the master controller (20) and operate in response to the local signals. When there is no response from the master controller (20) One of the
상기 b) 단계에 있어서, 상기 다수의 슬레이브 제어기(21,22,23)는, 상기 마스터 제어기(20)에 로컬 웨이크 업(wake up) 시그널을 보낸 후, 설정된 임의의 시간 동안 상기 마스터 제어기(20)의 응답이 없고, 미리 규정된 서브 마스터 제어기(20)의 활성조건을 만족할 때, 즉 슬립(Sleep)조건을 만족하지 않을 경우(S104) 서브 마스터 스케줄링을 시작한다(S105). 이때, 상기 슬레이브 제어기(21,22,23)중 지정된 어느 하나의 슬레이브 제어기(20)가 서브 마스터 제어기의 역할을 수행하여 상기 각각의 다른 슬레이브 제어기(22,23)를 제어한다.In step b), the plurality of
상기 b) 단계에 있어서, 상기 서브 마스터 제어기의 역할을 수행하는 상기 슬레이브 제어기는, 주기적으로 상기 마스터 제어기를 호출하고, 임의의 시간 이내에 응답이 있을 경우에 상기 마스터 제어기에게 통제 권한을 전달한다(S106~S110).In step b), the slave controller that performs the role of the sub master controller periodically calls the master controller, and when there is a response within a predetermined time, transfers the control authority to the master controller (S 106 To S110).
이때, NMC값이 NMC_TRANSFER일 경우 마스터 제어기(20)에게 네트워크 통제권 이전 요구를 수행하고(S108), NMC값이 NMC_TRANSFER_OK일 경우 서브마스터(슬레이브 제어기)에게 네트워크 통제권 이전 수락을 수행하고(S109), NMC값이 NONE일 경우 마스터 제어기(20)에서 LIN 스케줄링을 다시 시작하는 단계를 수행한다(S110).At this time, if the NMC value is NMC_TRANSFER, the
여기서, 상기 NMC 값은 서브마스터 기능을 하는 슬레이브 제어기(21)가 스케줄링 권한을 마스터 제어기(20)에게 돌려주거나, 스케줄링 권한을 획득했음을 LIN 제어기들에게 알려줄 때 사용한다.Herein, the NMC value is used to notify the LIN controllers that the
따라서, 본 발명은 마스터 제어기가 응답하지 않을 경우 슬레이브 제어기중 어느 하나가 서브 마스터로서 기능을 대신하여 다수의 슬레이브 제어기가 정상적으로 작동될 수 있도록 제어함으로써, LIN 통신의 신뢰성을 향상시킴과 아울러 마스터 및 슬레이브 제어기의 신뢰성을 향상시킬 수 있다.Therefore, according to the present invention, when a master controller does not respond, any one of the slave controllers functions as a sub-master to control a plurality of slave controllers to operate normally, thereby improving the reliability of the LIN communication, The reliability of the controller can be improved.
본 명세서에 기재된 본 발명의 실시예와 도면에 도시된 구성은 본 발명의 가장 바람직한 실시예에 관한 것이고, 발명의 기술적 사상을 모두 포괄하는 것은 아니므로, 출원시점에 있어서 이들을 대체할 수 있는 다양한 균등물과 변형예들이 있을 수 있음을 이해하여야 한다. 따라서 본 발명은 상술한 실시예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변형실시가 가능한 것은 물론이고, 그와 같은 변경은 청구범위 기재의 권리범위 내에 있게 된다.
The embodiments of the present invention described in the present specification and the configurations shown in the drawings relate to the most preferred embodiments of the present invention and are not intended to encompass all of the technical ideas of the present invention so that various equivalents It should be understood that water and variations may be present. Therefore, it is to be understood that the present invention is not limited to the above-described embodiments, and that various modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims. , Such changes shall be within the scope of the claims set forth in the claims.
20 : 마스터 제어기
21 : 슬레이브 제어기(서브 마스터 제어기)
22, 23 : 슬레이브 제어기20: Master controller
21: Slave controller (sub-master controller)
22, 23: Slave controller
Claims (6)
상기 다수의 슬레이브 제어기는,
상기 마스터 제어기에 로컬 웨이크 업(wake up) 시그널을 보낸 후, 설정된 임의의 시간 동안 상기 마스터 제어기의 응답이 없고, 미리 규정된 서브 마스터 제어기의 활성조건을 만족할 때, 상기 슬레이브 제어기중 지정된 어느 하나의 슬레이브 제어기가 서브 마스터 제어기의 역할을 수행하여 각각의 다수의 다른 슬레이브 제어기를 제어하되,
상기 서브 마스터 활성조건은, 차량상태의 특정조건에서 마스터 제어기가 스케줄링을 하지 않고, 대기 상태일 때, 마스터가 제어기가 활성화되어 스케줄링을 개시하거나, 슬레이브 제어기가 활성화되어 스케줄링을 요청하되,
복수의 슬레이브 제어기가 우선순위가 가장 높은 순으로 스케줄링을 하며, 우선순위가 가장 높은 슬레이브 제어기의 스케줄링이 없을 경우, 대기시간을 거쳐 다음 우선순위의 슬레이브 제어기가 활성화되어 스케줄링을 시작하는 것을 특징으로 하는 차량의 LIN 통신 장치.A master controller for communicating in accordance with a LIN communication scheme in a vehicle and a plurality of slave controllers connected thereto, wherein the master controller responds to local signals transmitted from the plurality of slave controllers, The slave controller sequentially transmits a local signal to the master controller and operates according to the response. If there is no response from the master controller, any one of the slave controllers designated in the slave controller performs the role of the sub master controller And controls each of the other slave controllers in the LIN communication apparatus of the vehicle,
Wherein the plurality of slave controllers comprise:
When a master wake up signal is sent to the master controller and there is no response from the master controller for a set time and the activation condition of a predefined sub master controller is satisfied, The slave controller acts as a sub-master controller to control each of the plurality of different slave controllers,
The sub-master activation condition is set such that, when the master controller does not perform scheduling in a specific condition of the vehicle state, the master starts the scheduling when the controller is activated and the slave controller is activated to request the scheduling,
The plurality of slave controllers perform scheduling in the order of highest priority, and when there is no scheduling of the highest priority slave controller, the slave controller of the next priority is activated via the waiting time to start scheduling The LIN communication device of the vehicle.
상기 서브 마스터 제어기의 역할을 수행하는 상기 슬레이브 제어기는,
주기적으로 상기 마스터 제어기를 호출하고, 임의의 시간 이내에 응답이 있을 경우에 상기 마스터 제어기에게 통제 권한을 전달하는 것을 특징으로 하는 차량의 LIN 통신 장치.The method according to claim 1,
The slave controller, which performs the role of the sub master controller,
Periodically calls the master controller and delivers control authority to the master controller when there is a response within a certain time.
상기 b) 단계에 있어서, 상기 다수의 슬레이브 제어기는,
상기 마스터 제어기에 로컬 웨이크 업(wake up) 시그널을 보낸 후, 설정된 임의의 시간 동안 상기 마스터 제어기의 응답이 없고, 미리 규정된 서브 마스터 제어기의 활성조건을 만족할 때, 상기 슬레이브 제어기중 지정된 어느 하나의 슬레이브 제어기가 서브 마스터 제어기의 역할을 수행하여 각각의 다수의 다른 슬레이브 제어기를 제어하되,
상기 서브 마스터 활성조건은, 차량상태의 특정조건에서 마스터 제어기가 스케줄링을 하지 않고, 대기 상태일 때, 마스터가 제어기가 활성화되어 스케줄링을 개시하거나, 슬레이브 제어기가 활성화되어 스케줄링을 요청하되,
복수의 슬레이브 제어기가 우선순위가 가장 높은 순으로 스케줄링을 하며, 우선순위가 가장 높은 슬레이브 제어기의 스케줄링이 없을 경우, 대기시간을 거쳐 다음 우선순위의 슬레이브 제어기가 활성화되어 스케줄링을 시작하는 것을 특징으로 하는 차량의 LIN 통신 장치의 제어 방법.A master controller communicating in accordance with the LIN communication scheme in the vehicle and a plurality of slave controllers connected thereto; a) the master controller responding to local signals transmitted from the plurality of slave controllers; b) the plurality of slave controllers sequentially transmit a local signal to the master controller and operate in response to the response, wherein, when there is no response from the master controller, any one of the slave controllers, And controlling each of the other slave controllers, the method comprising:
In the step b), the plurality of slave controllers include:
When a master wake up signal is sent to the master controller and there is no response from the master controller for a set time and the activation condition of a predefined sub master controller is satisfied, The slave controller acts as a sub-master controller to control each of the plurality of different slave controllers,
The sub-master activation condition is set such that, when the master controller does not perform scheduling in a specific condition of the vehicle state, the master starts the scheduling when the controller is activated and the slave controller is activated to request the scheduling,
The plurality of slave controllers perform scheduling in the order of highest priority, and when there is no scheduling of the highest priority slave controller, the slave controller of the next priority is activated via the waiting time to start scheduling A method of controlling a LIN communication device of a vehicle.
상기 b) 단계에 있어서,
상기 서브 마스터 제어기의 역할을 수행하는 상기 슬레이브 제어기는, 주기적으로 상기 마스터 제어기를 호출하고, 임의의 시간 이내에 응답이 있을 경우에 상기 마스터 제어기에게 통제 권한을 전달하는 것을 특징으로 하는 차량의 LIN 통신 장치의 제어 방법.
5. The method of claim 4,
In the step b)
Wherein the slave controller that performs the role of the sub master controller periodically calls the master controller and delivers control authority to the master controller when there is a response within a certain time period. / RTI >
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140195364A KR101593338B1 (en) | 2014-12-31 | 2014-12-31 | Apparatus for lin communication of vehicle and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140195364A KR101593338B1 (en) | 2014-12-31 | 2014-12-31 | Apparatus for lin communication of vehicle and control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101593338B1 true KR101593338B1 (en) | 2016-02-11 |
Family
ID=55351882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020140195364A KR101593338B1 (en) | 2014-12-31 | 2014-12-31 | Apparatus for lin communication of vehicle and control method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101593338B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101836671B1 (en) * | 2016-07-19 | 2018-04-19 | 현대다이모스(주) | Method for dynamic scheduling in local interconnection network communication system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010136286A (en) * | 2008-12-08 | 2010-06-17 | Denso Corp | Onboard communication network system |
US20120079153A1 (en) * | 2005-07-19 | 2012-03-29 | Valeo Vision | Communication method and device for a motor vehicle |
KR20140061043A (en) | 2012-11-13 | 2014-05-21 | 현대모비스 주식회사 | Lin communication system for vehicle and method for driving slave module in the system |
-
2014
- 2014-12-31 KR KR1020140195364A patent/KR101593338B1/en active IP Right Grant
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120079153A1 (en) * | 2005-07-19 | 2012-03-29 | Valeo Vision | Communication method and device for a motor vehicle |
JP2010136286A (en) * | 2008-12-08 | 2010-06-17 | Denso Corp | Onboard communication network system |
KR20140061043A (en) | 2012-11-13 | 2014-05-21 | 현대모비스 주식회사 | Lin communication system for vehicle and method for driving slave module in the system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101836671B1 (en) * | 2016-07-19 | 2018-04-19 | 현대다이모스(주) | Method for dynamic scheduling in local interconnection network communication system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108933719B (en) | Vehicle-mounted CAN network management method, vehicle-mounted CAN network and vehicle | |
US7245631B2 (en) | Multiplex communication apparatus for vehicle | |
EP1784693B1 (en) | Method for providing a rapid response to queries on a vehicle bus | |
US20110046844A1 (en) | System and method for changing the state of vehicle components | |
CN107659494B (en) | Data processing method and intelligent vehicle-mounted gateway | |
KR101526413B1 (en) | Transceiver ic and operationg mwethod thereof | |
CN103314555A (en) | Method for operating an electrical system of a motor vehicle and bus system operating in accordance with said method | |
CN103078756B (en) | Mode switching method and CAN (Controller Area Network) | |
CN111095867A (en) | Management system for optical fiber Ethernet network of vehicle | |
CN111490918B (en) | Vehicle-mounted Ethernet network awakening system, method and device and computer equipment | |
KR102298186B1 (en) | How to operate a sensor device in a car based on the DSI protocol | |
KR101593338B1 (en) | Apparatus for lin communication of vehicle and control method thereof | |
US9325567B2 (en) | Communication system, method for operating such a communication system, and communication module | |
JP2012239143A (en) | Electronic control unit, on-vehicle network and data transmission method | |
CN110509870A (en) | A kind of vehicle-mounted CAN network and vehicle-mounted CAN network management | |
US10243887B2 (en) | Switch unit, ethernet network, and method for activating components in an ethernet network | |
JP2013098916A (en) | Relay system, and relay device constituting the same | |
JP2012231410A (en) | Data relay apparatus and in-vehicle network | |
JP6337783B2 (en) | In-vehicle network system | |
JP6572779B2 (en) | Communications system | |
CN112514331B (en) | Method for operating a sensor device in a motor vehicle on the basis of a DSI protocol | |
JP6451399B2 (en) | Relay device | |
JP2019016931A (en) | Network system | |
CN115224685B (en) | Power distribution management method, device, vehicle and storage medium | |
US20220393894A1 (en) | In-vehicle communication system, in-vehicle communication device, and vehicle communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20190201 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20200122 Year of fee payment: 5 |