KR100913263B1 - Method of automatically issuing local interconnect network identification to slave module and slave module - Google Patents

Method of automatically issuing local interconnect network identification to slave module and slave module Download PDF

Info

Publication number
KR100913263B1
KR100913263B1 KR1020070119076A KR20070119076A KR100913263B1 KR 100913263 B1 KR100913263 B1 KR 100913263B1 KR 1020070119076 A KR1020070119076 A KR 1020070119076A KR 20070119076 A KR20070119076 A KR 20070119076A KR 100913263 B1 KR100913263 B1 KR 100913263B1
Authority
KR
South Korea
Prior art keywords
lin
module
slave
master
slave module
Prior art date
Application number
KR1020070119076A
Other languages
Korean (ko)
Other versions
KR20090052532A (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 KR1020070119076A priority Critical patent/KR100913263B1/en
Publication of KR20090052532A publication Critical patent/KR20090052532A/en
Application granted granted Critical
Publication of KR100913263B1 publication Critical patent/KR100913263B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R1/00Details of instruments or arrangements of the types included in groups G01R5/00 - G01R13/00 and G01R31/00
    • G01R1/20Modifications of basic electric elements for use in electric measuring instruments; Structural combinations of such elements with such instruments
    • G01R1/203Resistors used for electric measuring, e.g. decade resistors standards, resistors for comparators, series resistors, shunts
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0084Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring voltage only

Abstract

슬레이브 모듈에 LIN ID를 자동으로 부여하는 방법 및 슬레이브 모듈이 개시된다. 슬레이브 모듈에 LIN ID를 자동으로 부여하는 방법은 LIN 버스를 통해 마스터 모듈로부터 LIN ID 부여 명령이 수신되면 슬레이브 모듈에 내장된 저항의 일단에 걸리는 전압을 측정하는 단계와, 측정된 전압을 마스터 모듈로 전송하는 단계와, 슬레이브 모듈에 고유한 LIN ID를 마스터 모듈로부터 수신하는 단계를 포함하며, LIN ID는 측정된 전압에 기초하여 결정되는 것을 특징으로 한다. 이를 통해 별도의 지그를 사용할 필요가 없을 뿐 아니라, LIN ID를 부여하는데 소요되는 시간을 줄일 수 있는 효과가 있다.A method for automatically assigning a LIN ID to a slave module and a slave module are disclosed. The method of automatically assigning a LIN ID to a slave module includes measuring a voltage applied to one end of a resistor built in the slave module when the LIN ID grant command is received from the master module through the LIN bus, and measuring the voltage to the master module. And transmitting, from the master module, a LIN ID unique to the slave module, wherein the LIN ID is determined based on the measured voltage. This not only eliminates the need for a separate jig, but also reduces the time required to assign a LIN ID.

Description

슬레이브 모듈에 엘아이엔 아이디를 자동으로 부여하는 방법 및 슬레이브 모듈{METHOD OF AUTOMATICALLY ISSUING LOCAL INTERCONNECT NETWORK IDENTIFICATION TO SLAVE MODULE AND SLAVE MODULE}How to automatically assign ID to slave module and slave module {METHOD OF AUTOMATICALLY ISSUING LOCAL INTERCONNECT NETWORK IDENTIFICATION TO SLAVE MODULE AND SLAVE MODULE}

본 발명은 슬레이브 모듈에 LIN ID를 부여하는 방법에 관한 것으로, 더욱 상세하게는 LIN 통신을 이용하는 시스템에서 저항 또는 절연 모듈을 이용하여 슬레이브 모듈에 자동으로 LIN ID를 부여하는 방법에 관한 것이다.The present invention relates to a method for assigning a LIN ID to a slave module, and more particularly, to a method for automatically assigning a LIN ID to a slave module using a resistor or an isolation module in a system using LIN communication.

일반적으로, LIN(Local Interconnect Network) 시스템은 CAN(Controller Area Network)을 토대로 개발된 프로토콜로서 차량 내 차체 네트워크의 CAN 통신 말단부의 시스템 분산화를 위하여 사용되는 시스템으로, 네트워크상에서 센서 및 액추에이터(Actuator) 와 같은 간단한 기능의 ECU(Electronic Control Unit)를 제어하는데 사용되며, 적은 개발 비용으로 네트워크를 구성할 수 있는 장점이 있다. LIN 시스템은 1개의 마스터 모듈과 여러 개의 슬레이브 모듈들로 구성되어, 하나의 마스터 모듈에서 모든 네트워크 관리를 처리한다.In general, the LIN (Local Interconnect Network) system is a protocol developed based on the Controller Area Network (CAN) and is used for the system decentralization of the CAN communication end of the vehicle body network in a vehicle. The LIN (Local Interconnect Network) system is a sensor and actuator in the network. It is used to control the electronic control unit (ECU) with the same simple function, and has the advantage of constructing a network with low development cost. The LIN system consists of one master module and several slave modules, which handle all network management in one master module.

이러한 종래의 LIN 시스템에서 사용되는 슬레이브 모듈들 각각에는 원도우 모터 모듈, 시트 모듈과 같이 그 특성에 따라 처음부터 각각 고유한 ID가 부여된 다. 특히 초음파 센서 모듈과 같은 슬레이브 모듈의 경우 종래에는 지그를 이용하여 장애물의 위치 차이를 분석함으로써, LIN ID를 부여하였다. 따라서, 별도의 지그가 필요할 뿐 아니라, LIN ID를 부여하기 위해 긴 시간이 소요되는 문제점이 있다.Each slave module used in the conventional LIN system is given a unique ID from the beginning according to its characteristics, such as a window motor module and a seat module. In particular, in the case of a slave module such as an ultrasonic sensor module, a LIN ID is given by analyzing a position difference of an obstacle using a jig. Therefore, not only a separate jig is required, but a long time is required to give a LIN ID.

본 발명은 상기 문제점을 해결하기 위해 안출된 것으로, 본 발명의 목적은 슬레이브 모듈에 별도의 저항을 내장시켜 저항 일단에서 측정된 전압에 기초하여 LIN ID를 부여하는 방법을 제공하는 것을 목적으로 한다.The present invention has been made to solve the above problems, an object of the present invention is to provide a method for providing a LIN ID based on the voltage measured at one end of the resistor by embedding a separate resistor in the slave module.

본 발명의 다른 목적은 슬레이브 모듈이 특히 초음파 센서 모듈인 경우 파형의 송수신을 막는 절연 모듈을 사용하여 LIN ID를 부여하는 방법을 제공하는 것을 목적으로 한다.Another object of the present invention is to provide a method for giving a LIN ID by using an isolation module that prevents transmission and reception of waveforms, especially when the slave module is an ultrasonic sensor module.

상기의 목적을 달성하기 위하여 본 발명에 따른 LIN ID 부여 방법은 LIN 버스를 통해 마스터 모듈로부터 LIN ID 부여 명령이 수신되면 슬레이브 모듈에 내장된 저항의 일단에 걸리는 전압을 측정하는 단계와, 측정된 전압을 마스터 모듈로 전송하는 단계; 및 슬레이브 모듈에 고유한 LIN ID를 마스터 모듈로부터 수신하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object, the LIN ID granting method according to the present invention includes measuring a voltage applied to one end of a resistor built in a slave module when a LIN ID grant command is received from a master module through a LIN bus, and the measured voltage. Transmitting to the master module; And receiving a LIN ID unique to the slave module from the master module.

바람직하게는, LIN ID는 측정된 전압에 기초하여 결정되며, LIN ID 부여 방법은 수신된 LIN ID를 저장하는 단계를 더 포함하며, 또한 마스터 모듈로부터 LIN ID가 수신되면, LIN ID 수신 확인 메시지를 마스터 모듈로 전송하는 단계를 더 포함하는 것을 특징으로 한다.Preferably, the LIN ID is determined based on the measured voltage, and the method of granting the LIN ID further includes storing the received LIN ID, and when the LIN ID is received from the master module, the LIN ID acknowledgment message is received. The method may further include transmitting to the master module.

또한, 바람직하게는 LIN 버스에 복수개의 슬레이브 모듈들이 연결되는 경우에 내장된 저항들은 직렬 연결되는 것을 특징으로 한다.In addition, preferably, when a plurality of slave modules are connected to the LIN bus, built-in resistors may be connected in series.

본 발명에 다른 실시예에 따르면 슬레이브 모듈이 제공되는데, 슬레이브 모듈은 슬레이브 모듈에 내장된 저항고, LIN 버스를 통해 마스터 모듈로부터 LIN ID 부여 명령이 수신되면 슬레이브 모듈에 내장된 저항의 일단에 걸리는 전압을 측정하는 전압 측정부와, 측정된 전압을 마스터 모듈로 전송하고, 슬레이브 모듈에 고유한 LIN ID를 마스터 모듈로부터 수신하는 LIN 트랜시버를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, a slave module is provided. The slave module is a resistor built in the slave module, and when a LIN ID grant command is received from the master module through the LIN bus, a voltage applied to one end of the resistor built in the slave module is received. And a LIN transceiver for transmitting the measured voltage to the master module and receiving the LIN ID unique to the slave module from the master module.

바람직하게는, LIN ID는 측정된 전압에 기초하여 결정되는 것을 특징으로 한다. 바람직하게는, 슬레이브 모듈은 수신된 LIN ID를 저장하는 LIN ID 저장부를 더 포함하며, LIN 트랜시버는 마스터 모듈로부터 LIN ID가 수신되면, LIN ID 수신 확인 메시지를 마스터 모듈로 추가로 전송하는 것을 특징으로 한다.Preferably, the LIN ID is determined based on the measured voltage. Preferably, the slave module further includes a LIN ID storage unit for storing the received LIN ID, the LIN transceiver is characterized in that additionally transmits a LIN ID acknowledgment message to the master module, when the LIN ID is received from the master module. do.

또한, LIN 버스에 복수개의 슬레이브 모듈들이 연결되는 경우에 내장된 저항들은 직렬 연결되는 것을 특징으로 한다.In addition, when a plurality of slave modules are connected to the LIN bus, built-in resistors may be connected in series.

본 발명의 또 다른 실시예에 따르면, LIN ID 부여방법이 제공되는데, 상기 LIN ID 부여방법은 슬레이브 모듈내의 초음파 센서 모듈에 부착된 절연 모듈이 제거되면, 초음파 센서 모듈의 동작 상태를 확인하기 위한 파형을 생성하는 단계와, 생성된 파형을 LIN 버스를 통해 마스터 모듈로 전송하는 단계와, 슬레이브 모듈에 고유한 LIN ID를 마스터 모듈로부터 수신하는 단계를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, there is provided a LIN ID method, wherein the LIN ID method is a waveform for checking the operation state of the ultrasonic sensor module when the insulation module attached to the ultrasonic sensor module in the slave module is removed. And generating a waveform, transmitting the generated waveform to the master module through the LIN bus, and receiving a LIN ID unique to the slave module from the master module.

바람직하게는, LIN ID는 생성된 파형에 기초하여 결정되는 것을 특징으로 한다.Preferably, the LIN ID is determined based on the generated waveform.

바람직하게는, LIN ID 부여 방법은 수신된 LIN ID를 저장하는 단계와, 마스터 모듈로부터 LIN ID가 수신되면, LIN ID 수신 확인 메시지를 마스터 모듈로 전송하는 단계를 더 포함하는 것을 특징으로 한다.Preferably, the LIN ID grant method further comprises the step of storing the received LIN ID, and if the LIN ID is received from the master module, the step of transmitting a LIN ID acknowledgment message to the master module.

본 발명의 다른 실시예에 따르면, 슬레이브 모듈이 제공되는데, 상기 슬레이브 모듈은 슬레이브 모듈내의 초음파 센서 모듈에 부착되어 초음파 센서 모듈의 동작 상태를 확인하기 위한 파형의 생성을 막는 절연모듈과, 절연 모듈이 제거되면, 초음파 센서 모듈의 동작 상태를 확인하기 위한 파형을 생성하는 초음파 센서 모듈과, 생성된 파형을 LIN 버스를 통해 마스터 모듈로 전송하고, 마스터 모듈로부터 슬레이브 모듈에 고유한 LIN ID를 수신하는 LIN 트랜시버를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, a slave module is provided, wherein the slave module is attached to an ultrasonic sensor module in the slave module and an insulation module for preventing generation of a waveform for checking an operation state of the ultrasonic sensor module and an insulation module are provided. When removed, the ultrasonic sensor module generates a waveform for confirming the operation state of the ultrasonic sensor module, the LIN transmits the generated waveform to the master module through the LIN bus, and receives a LIN ID unique to the slave module from the master module. It characterized in that it comprises a transceiver.

바람직하게는, LIN ID는 생성된 파형에 기초하여 결정되는 것을 특징으로 한다.Preferably, the LIN ID is determined based on the generated waveform.

바람직하게는, 슬레이브 모듈은 수신된 LIN ID를 저장하는 LIN ID 저장부를 더 포함하며, LIN 트랜시버는 마스터 모듈로부터 LIN ID가 수신되면, LIN ID 수신 확인 메시지를 마스터 모듈로 추가로 전송하는 특징으로 한다.Preferably, the slave module further comprises a LIN ID storage unit for storing the received LIN ID, the LIN transceiver is characterized in that additionally transmits the LIN ID acknowledgment message to the master module, when the LIN ID is received from the master module. .

상술한 바와 같이, 본 발명에 따른 LIN ID 부여방법은, 복수 개의 슬레이브 모듈들이 직렬로 연결되는 구조에서 각 슬레이브 모듈에 내장된 별도의 저항 일단에 걸리는 전압을 이용하는 한편, 전압 분배에 의해 각 슬레이브 모듈에 자동으로 LIN ID를 부여할 수 있다. 또한, 슬레이브 모듈이 특히 초음파 센서 모듈인 경우 절연 모듈을 사용하여 LIN ID를 부여할 수 있다. 이를 통해 별도의 지그를 사용할 필요가 없을 뿐 아니라, LIN ID를 부여하는데 소요되는 시간을 줄일 수 있는 효과가 있다.As described above, the LIN ID granting method according to the present invention uses a voltage applied to one end of a separate resistor built in each slave module in a structure in which a plurality of slave modules are connected in series, and each slave module is divided by voltage distribution. You can automatically assign a LIN ID to. In addition, in the case where the slave module is an ultrasonic sensor module, the LIN ID may be assigned by using an insulation module. This not only eliminates the need for a separate jig, but also reduces the time required to assign a LIN ID.

이하에서는 첨부 도면을 참조하여 본 발명에 따른 슬레이브 모듈에 LIN ID를 부여하는 방법 및 슬레이브 모듈에 대하여 가장 바람직한 실시 예를 상세히 설명하기로 한다. 그러나, 본 발명은 이하에서 개시되는 실시예에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예는 본 발명의 개시가 완전하도록 하며 통상의 지식을 가진자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이다.Hereinafter, with reference to the accompanying drawings will be described in detail the most preferred embodiment for a method and a slave module for giving a LIN ID to a slave module according to the present invention. However, the present invention is not limited to the embodiments disclosed below, but can be implemented in various forms, and only the present embodiments are intended to complete the disclosure of the present invention and to those skilled in the art. It is provided for complete information.

도 1은 본 발명의 일 실시예에 따른 슬레이브 모듈들(110, 120, 130, 140)을 포함하는 LIN 시스템의 구성도로, LIN 시스템은 하나의 마스터 모듈(100), 복수 개의 슬레이브 모듈들(110, 120, 130, 140) 및 이들을 연결하는 LIN 버스(101, 102, 103)로 구성된다. 이하에서는, 도 1을 참조하여 편의상 도면부호 130의 슬레이브 모듈을 기준으로 설명하지만, 다른 슬레이브 모듈들의 대응하는 부분들은 같은 구조 및 기능을 가진다는 점에 유의해야 한다.1 is a block diagram of a LIN system including slave modules 110, 120, 130, and 140 according to an embodiment of the present invention, wherein the LIN system includes one master module 100 and a plurality of slave modules 110. , 120, 130, 140 and LIN buses 101, 102, 103 connecting them. Hereinafter, although described with reference to the slave module of the reference numeral 130 for convenience with reference to Figure 1, it should be noted that the corresponding parts of the other slave modules have the same structure and function.

도 1을 참조하면, 저항(136)은 슬레이브 모듈(130)에 내장되며, 4개의 저항(116, 126, 136, 146)은 LIN 통신선(102)을 통해 직렬로 연결된다. 이와 같이 LIN 통신선(102)을 통해 슬레이브 모듈들(110, 120, 130, 140)을 직렬로 연결하는 이유는 LIN ID를 부여하기 위해 저항의 일단에 걸리는 전압을 사용하기 위함이다. 즉, 4개의 저항은 직렬로 연결되어 있기 때문에, 슬레이브 모듈(110)로부터 슬레이브 모듈(140)로 갈수록 전압 강하에 의해 측정되는 전압은 작아지게 되므로, 이를 이용하면 많은 수의 슬레이브 모듈들이 연결된 경우에도 슬레이브 모듈들을 구분할 수 있다.Referring to FIG. 1, resistors 136 are embedded in slave module 130, and four resistors 116, 126, 136, 146 are connected in series via LIN communication line 102. The reason why the slave modules 110, 120, 130, 140 are connected in series through the LIN communication line 102 is to use a voltage applied to one end of the resistor to give the LIN ID. That is, since the four resistors are connected in series, the voltage measured by the voltage drop decreases from the slave module 110 to the slave module 140, so that even when a large number of slave modules are connected, Slave modules can be distinguished.

전압 측정부(134)는 마스터 모듈(100)로부터 LIN ID 부여 명령이 수신되면 슬레이브 모듈(130)에 내장된 저항(136)의 일단에 걸리는 전압을 측정한다.When the LIN ID grant command is received from the master module 100, the voltage measuring unit 134 measures a voltage applied to one end of the resistor 136 embedded in the slave module 130.

한편, 트랜시버(135)는 전압 측정부(134)에서 측정한 전압을 마스터 모듈(100)로 전송하고, 이후 마스터 모듈(100)이 전송한 LIN ID를 수신한다.The transceiver 135 transmits the voltage measured by the voltage measuring unit 134 to the master module 100, and then receives the LIN ID transmitted by the master module 100.

프로세싱 모듈(133)은 LIN ID를 부여하기 위한 각부의 전반적인 동작을 제어한다.The processing module 133 controls the overall operation of each part to give the LIN ID.

LIN ID 저장부(132)는 마스터 모듈(100)로부터 수신한 LIN ID를 저장한다.The LIN ID storage unit 132 stores the LIN ID received from the master module 100.

센서 모듈(131)은 일 실시예로 초음파 센서 모듈이며, 실시예에 따라 모터 제어 모듈 등 여러 가지로 구현될 수 있다는 점은 당업자에 당연할 것이다.Sensor module 131 is an ultrasonic sensor module in one embodiment, it will be apparent to those skilled in the art that the sensor module 131 may be implemented in various ways, such as a motor control module according to the embodiment.

한편, 마스터 모듈(100)은 LIN 통신선(102)을 통해 수신된 슬레이브 모듈(130)의 측정 전압에 기초하여 슬레이브 모듈(130)에 고유한 LIN ID를 부여하고, 슬레이브 모듈(130)로 전송한다. 측정된 전압에 대응하는 LIN ID를 부여하는 방법의 일 실시예로, 위 4개의 슬레이브 모듈들(110, 120, 130, 140) 내의 저항 일단에서 측정된 전압을 모두 상이할 것이므로, 마스터 모듈(100)은 측정된 전압에 대응하는 LIN ID를 룩업 테이블의 형태로 미리 저장하여 둘 수 있다.Meanwhile, the master module 100 assigns a unique LIN ID to the slave module 130 based on the measured voltage of the slave module 130 received through the LIN communication line 102, and transmits the unique LIN ID to the slave module 130. . In one embodiment of the method for assigning the LIN ID corresponding to the measured voltage, since the voltages measured at one end of the resistors in the four slave modules 110, 120, 130, and 140 will be different, the master module 100 ) May previously store the LIN ID corresponding to the measured voltage in the form of a lookup table.

도 2는 도 1의 구성에서 슬레이브 모듈들(110, 120, 130, 140) 중 임의의 하 나에 LIN ID를 부여하는 방법의 흐름도이다.FIG. 2 is a flowchart of a method for assigning a LIN ID to any one of the slave modules 110, 120, 130, and 140 in the configuration of FIG. 1.

도 2를 참조하면, 단계 200에서 마스터 모듈(100) 및 슬레이브 모듈(130)의 초기화가 이루어진다.2, in step 200, the initialization of the master module 100 and the slave module 130 is performed.

이후, 단계 201에서, 마스터 모듈(100)로부터 슬레이브 모듈(130)로 LIN ID 부여 명령이 전송된다.Thereafter, in step 201, a LIN ID grant command is transmitted from the master module 100 to the slave module 130.

LIN ID 부여 명령을 수신하면, 단계 202에서 슬레이브 모듈(130)의 전압 측정부(134)는 저항(136)의 일단에 걸리는 전압을 측정한다. 측정된 전압은 트랜시버(135)를 통해 마스터 모듈(100)로 전송된다.When the LIN ID grant command is received, the voltage measurer 134 of the slave module 130 measures the voltage applied to one end of the resistor 136 in step 202. The measured voltage is transmitted to the master module 100 through the transceiver 135.

단계 203에서, 마스터 모듈(100)은 일 실시예로 앞에서 기술된 룩업 테이블을 참조하여 측정된 전압에 대응하는 LIN ID를 슬레이브 모듈(130)로 전송한다.In step 203, the master module 100 transmits to the slave module 130 the LIN ID corresponding to the measured voltage with reference to the look-up table described above in one embodiment.

이후, 단계 204에서 슬레이브 모듈(130)의 저장부(132)는 수신한 LIN ID를 저장한다.In operation 204, the storage unit 132 of the slave module 130 stores the received LIN ID.

단계 205에서, 슬레이브 모듈(130)의 프로세싱 모듈(133)은 트랜시버(135)를 통해 LIN ID 수신 확인 메시지를 마스터 모듈(100)로 전송한다.In operation 205, the processing module 133 of the slave module 130 transmits an LIN ID acknowledgment message to the master module 100 through the transceiver 135.

도 3은 본 발명의 다른 실시예에 따른 슬레이브 모듈들(310, 320, 330, 340)을 포함하는 LIN 시스템의 구성도로, 도 1과 마찬가지로, LIN 시스템은 하나의 마스터 모듈(300)과 복수 개의 슬레이브 모듈들(310, 320, 330, 340)로 구성된다. 이하에서는, 도 3을 참조하여 편의상 도면부호 310의 슬레이브 모듈을 기준으로 설명하지만, 다른 슬레이브 모듈들의 대응하는 부분들은 같은 구조 및 기능을 가진다는 점에 유의해야 한다.3 is a block diagram of a LIN system including slave modules 310, 320, 330, and 340 according to another embodiment of the present invention. Like FIG. 1, the LIN system includes one master module 300 and a plurality of master modules 300. It consists of slave modules 310, 320, 330, 340. Hereinafter, although described with reference to the slave module of the reference numeral 310 for convenience with reference to Figure 3, it should be noted that the corresponding parts of the other slave modules have the same structure and function.

도 3을 참조하면, 절연모듈(311)은 슬레이브 모듈(310)의 초음파 센서 모듈(312)에 부착되어 초음파 센서 모듈에서 파형이 생성되는 것을 막는다. 일반적으로 초음파 센서 모듈(332)은 일정한 주파수의 초음파 진동을 통하여 파형을 송수신한다. 따라서, 절연 모듈(311)을 부착시키면 진동이 불가능하게 되므로, 파형이 생성될 수 없다는 점을 이용한 것이다. 절연 모듈(311)은 일반적으로 주변에서 볼 수 있는 절연 테이프라도 좋다.Referring to FIG. 3, the insulation module 311 is attached to the ultrasonic sensor module 312 of the slave module 310 to prevent the waveform from being generated in the ultrasonic sensor module. In general, the ultrasonic sensor module 332 transmits and receives a waveform through ultrasonic vibration of a constant frequency. Therefore, since the vibration is impossible when the insulation module 311 is attached, the waveform cannot be generated. The insulation module 311 may be an insulation tape generally seen from the periphery.

초음파 센서 모듈(312)은 절연 모듈(311)이 제거되면, 초음파 센서 모듈(312)의 동작 상태를 확인하기 위한 파형을 생성한다.When the insulation module 311 is removed, the ultrasonic sensor module 312 generates a waveform for checking an operating state of the ultrasonic sensor module 312.

트랜시버(315)는 생성된 파형을 LIN 통신선(312)을 통해 마스터 모듈(300)로 전송하고, 마스터 모듈(300)로부터 슬레이브 모듈(310)에 고유한 LIN ID를 수신한다.The transceiver 315 transmits the generated waveform to the master module 300 through the LIN communication line 312, and receives a LIN ID unique to the slave module 310 from the master module 300.

LIN ID 저장부(313)는 마스터 모듈(300)로부터 수신한 LIN ID를 저장한다.The LIN ID storage unit 313 stores the LIN ID received from the master module 300.

프로세싱 모듈(314)은 LIN ID를 부여받기 위해 슬레이브 모듈(310)의 각 부의 동작을 제어한다.The processing module 314 controls the operation of each part of the slave module 310 to be given a LIN ID.

도 4는 도 3의 구성에서 슬레이브 모듈들(310, 320, 330, 340) 중 임의의 하나에 LIN ID를 부여하는 방법의 흐름도이다.4 is a flowchart of a method for assigning a LIN ID to any one of the slave modules 310, 320, 330, 340 in the configuration of FIG. 3.

도 4를 참조하면, 단계 400에서 단계 200에서 마스터 모듈(300) 및 슬레이브 모듈(330)의 초기화가 이루어진다.Referring to FIG. 4, in operation 400, initialization of the master module 300 and the slave module 330 is performed.

단계 401에서, 슬레이브 모듈(310)의 초음파 센서 모듈(312)에 부착된 절연 모듈(311)이 제거된다. 이때 다른 슬레이브 모듈들(320, 330,340)의 절연 모듈 들(321, 331, 341)은 초음파 센서 모듈들(322, 332, 342)에 부착된 상태여야 한다. 그 이유는 순차적으로 각각의 슬레이브 모듈에 LIN ID를 부여하기 위함이다.In operation 401, the insulation module 311 attached to the ultrasonic sensor module 312 of the slave module 310 is removed. In this case, the insulation modules 321, 331, and 341 of the other slave modules 320, 330, and 340 should be attached to the ultrasonic sensor modules 322, 332, and 342. The reason is to sequentially assign LIN IDs to each slave module.

단계 402에서는 슬레이브 모듈(310)의 초음파 센서 모듈(312)은 동작 상태를 확인하기 위한 파형을 생성하고, 생성된 파형을 트랜시버(315)를 통해 마스터 모듈(300)로 전송한다.In operation 402, the ultrasonic sensor module 312 of the slave module 310 generates a waveform for checking an operation state, and transmits the generated waveform to the master module 300 through the transceiver 315.

다음 단계 403에서, 마스터 모듈(300)은 수신된 파형이 정상인지를 검사하고, 수신된 파형이 정상인 경우 해당 슬레이브 모듈(310)로 LIN ID를 전송한다.In a next step 403, the master module 300 checks whether the received waveform is normal, and if the received waveform is normal, transmits the LIN ID to the corresponding slave module 310.

단계 404에서, 슬레이브 모듈(310)은 수신된 LIN ID를 LIN ID 저장부(313)에 저장한다.In operation 404, the slave module 310 stores the received LIN ID in the LIN ID storage unit 313.

이후, 단계 405에서, 프로세싱 모듈(314)의 제어하에 LIN ID 수신 확인 메시지를 트랜시버(315)를 통해 마스터 모듈(300)로 전송한다.Thereafter, in step 405, the LIN ID acknowledgment message is transmitted to the master module 300 through the transceiver 315 under the control of the processing module 314.

단계 406에서는, 나머지 슬레이브 모듈들(320, 330, 340)에 대해 위의 단계들 401 내지 405가 반복적으로 이루어진다.In step 406, steps 401 through 405 above are repeated for the remaining slave modules 320, 330, 340.

이상 도면과 명세서에서 최적 실시예들이 개시되었다. 여기서 특정한 용어들이 사용되었으나, 이는 단지 본 발명을 설명하기 위한 목적에서 사용된 것이지 의미 한정이나 특허청구범위에 기재된 본 발명의 범위를 제한하기 위하여 사용된 것은 아니다. 그러므로 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.The best embodiments have been disclosed in the drawings and specification above. Although specific terms have been used herein, they are used only for the purpose of describing the present invention and are not used to limit the scope of the present invention as defined in the meaning or claims. Therefore, those skilled in the art will understand that various modifications and equivalent other embodiments are possible from this. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

도 1은 본 발명의 일 실시예에 따른 슬레이브 모듈들(110, 120, 130, 140)을 포함하는 LIN 시스템의 구성도이다.1 is a block diagram of a LIN system including slave modules 110, 120, 130, and 140 according to an embodiment of the present invention.

도 2는 도 1의 구성에서 슬레이브 모듈들(110, 120, 130, 140) 중 임의의 하나에 LIN ID를 부여하는 방법의 흐름도이다.2 is a flowchart of a method for assigning a LIN ID to any one of the slave modules 110, 120, 130, 140 in the configuration of FIG. 1.

도 3은 본 발명의 다른 실시예에 따른 슬레이브 모듈들(310, 320, 330, 340)을 포함하는 LIN 시스템의 구성도이다.3 is a configuration diagram of a LIN system including slave modules 310, 320, 330, and 340 according to another embodiment of the present invention.

도 4는 도 3의 구성에서 슬레이브 모듈들(310, 320, 330, 340) 중 임의의 하나에 LIN ID를 부여하는 방법의 흐름도이다.4 is a flowchart of a method for assigning a LIN ID to any one of the slave modules 310, 320, 330, 340 in the configuration of FIG. 3.

Claims (18)

LIN 버스를 통해 마스터 모듈로부터 LIN ID 부여 명령이 수신되면 슬레이브 모듈에 내장된 저항의 일단에 걸리는 전압을 측정하는 단계;Measuring a voltage applied to one end of a resistor embedded in the slave module when a LIN ID grant command is received from the master module through the LIN bus; 상기 측정된 전압을 상기 마스터 모듈로 전송하는 단계; 및Transmitting the measured voltage to the master module; And 상기 슬레이브 모듈에 고유한 LIN ID를 상기 마스터 모듈로부터 수신하는 단계를 포함하는 것을 특징으로 하는 LIN ID 부여 방법.And receiving a LIN ID unique to the slave module from the master module. 제1항에 있어서, 상기 LIN ID는The method of claim 1, wherein the LIN ID is 상기 측정된 전압에 기초하여 결정되는 것을 특징으로 하는 LIN ID 부여방법.And determining the LIN ID based on the measured voltage. 제1항에 있어서, 상기 LIN ID 부여 방법은The method of claim 1, wherein the LIN ID is assigned. 상기 수신된 LIN ID를 저장하는 단계를 더 포함하는 것을 특징으로 하는 LIN ID 부여 방법.And storing the received LIN ID. 제1항에 있어서, 상기 LIN ID 부여 방법은The method of claim 1, wherein the LIN ID is assigned. 상기 마스터 모듈로부터 상기 LIN ID가 수신되면, LIN ID 수신 확인 메시지를 상기 마스터 모듈로 전송하는 단계를 더 포함하는 것을 특징으로 하는 LIN ID 부여 방법.And when the LIN ID is received from the master module, transmitting a LIN ID acknowledgment message to the master module. 제1항에 있어서, 상기 LIN 버스에 복수개의 슬레이브 모듈들이 연결되는 경우에 내장된 저항들은 직렬 연결되는 것을 특징으로 하는 LIN ID 부여방법.The method of claim 1, wherein the built-in resistors are connected in series when a plurality of slave modules are connected to the LIN bus. 슬레이브 모듈에 내장된 저항;A resistor built into the slave module; LIN 버스를 통해 마스터 모듈로부터 LIN ID 부여 명령이 수신되면 슬레이브 모듈에 내장된 저항의 일단에 걸리는 전압을 측정하는 전압 측정부; 및A voltage measuring unit measuring a voltage applied to one end of a resistor built in the slave module when a LIN ID grant command is received from the master module through the LIN bus; And 상기 측정된 전압을 상기 마스터 모듈로 전송하고, 상기 슬레이브 모듈에 고유한 LIN ID를 상기 마스터 모듈로부터 수신하는 LIN 트랜시버를 포함하는 것을 특징으로 하는 슬레이브 모듈.And a LIN transceiver for transmitting the measured voltage to the master module and receiving a LIN ID unique to the slave module from the master module. 제6항에 있어서, 상기 LIN ID는The method of claim 6, wherein the LIN ID is 상기 측정된 전압에 기초하여 결정되는 것을 특징으로 하는 슬레이브 모듈.And the slave module is determined based on the measured voltage. 제6항에 있어서, 상기 슬레이브 모듈은The method of claim 6, wherein the slave module 상기 수신된 LIN ID를 저장하는 LIN ID 저장부를 더 포함하는 것을 특징으로 하는 슬레이브 모듈.And a LIN ID storage unit for storing the received LIN ID. 제6항에 있어서, 상기 LIN 트랜시버는The method of claim 6, wherein the LIN transceiver 상기 마스터 모듈로부터 상기 LIN ID가 수신되면, LIN ID 수신 확인 메시지 를 상기 마스터 모듈로 추가로 전송하는 것을 특징으로 하는 슬레이브 모듈.And receiving the LIN ID from the master module, further transmitting a LIN ID acknowledgment message to the master module. 제6항에 있어서, 상기 LIN 버스에 복수개의 슬레이브 모듈들이 연결되는 경우에 내장된 저항들은 직렬 연결되는 것을 특징으로 하는 슬레이브 모듈.The slave module of claim 6, wherein the internal resistors are connected in series when a plurality of slave modules are connected to the LIN bus. 슬레이브 모듈내의 초음파 센서 모듈에 부착된 절연 모듈이 제거되면, 상기 초음파 센서 모듈의 동작 상태를 확인하기 위한 파형을 생성하는 단계;Generating a waveform for checking an operating state of the ultrasonic sensor module when the insulation module attached to the ultrasonic sensor module in the slave module is removed; 상기 생성된 파형을 LIN 버스를 통해 마스터 모듈로 전송하는 단계; 및Transmitting the generated waveform to a master module through a LIN bus; And 상기 슬레이브 모듈에 고유한 LIN ID를 상기 마스터 모듈로부터 수신하는 단계를 포함하는 것을 특징으로 하는 LIN ID 부여방법.And receiving a LIN ID unique to the slave module from the master module. 제11항에 있어서, 상기 LIN ID는The method of claim 11, wherein the LIN ID is 상기 생성된 파형에 기초하여 결정되는 것을 특징으로 하는 LIN ID 부여방법.And determining the LIN ID based on the generated waveform. 제11항에 있어서, 상기 LIN ID 부여 방법은The method of claim 11, wherein the LIN ID is assigned. 상기 수신된 LIN ID를 저장하는 단계를 더 포함하는 것을 특징으로 하는 LIN ID 부여 방법.And storing the received LIN ID. 제11항에 있어서, 상기 LIN ID 부여 방법은The method of claim 11, wherein the LIN ID is assigned. 상기 마스터 모듈로부터 상기 LIN ID가 수신되면, LIN ID 수신 확인 메시지를 상기 마스터 모듈로 전송하는 단계를 더 포함하는 것을 특징으로 하는 LIN ID 부여 방법.And when the LIN ID is received from the master module, transmitting a LIN ID acknowledgment message to the master module. 슬레이브 모듈내의 초음파 센서 모듈에 부착되어 상기 초음파 센서 모듈의 동작 상태를 확인하기 위한 파형의 생성을 막는 절연모듈;An insulation module attached to the ultrasonic sensor module in the slave module to prevent generation of a waveform for checking an operation state of the ultrasonic sensor module; 상기 절연 모듈이 제거되면, 상기 초음파 센서 모듈의 동작 상태를 확인하기 위한 파형을 생성하는 초음파 센서 모듈; 및An ultrasonic sensor module generating a waveform for checking an operation state of the ultrasonic sensor module when the insulation module is removed; And 상기 생성된 파형을 LIN 버스를 통해 마스터 모듈로 전송하고, 상기 마스터 모듈로부터 상기 슬레이브 모듈에 고유한 LIN ID를 수신하는 LIN 트랜시버;를 포함하는 것을 특징으로 하는 슬레이브 모듈.And a LIN transceiver for transmitting the generated waveform to a master module through a LIN bus and receiving a LIN ID unique to the slave module from the master module. 제15항에 있어서, 상기 LIN ID는 The method of claim 15, wherein the LIN ID is 상기 생성된 파형에 기초하여 결정되는 것을 특징으로 하는 슬레이브 모듈.And the slave module is determined based on the generated waveform. 제15항에 있어서, 상기 슬레이브 모듈은The method of claim 15, wherein the slave module 상기 수신된 LIN ID를 저장하는 LIN ID 저장부를 더 포함하는 것을 특징으로 하는 슬레이브 모듈.And a LIN ID storage unit for storing the received LIN ID. 제15항에 있어서, 상기 LIN 트랜시버는16. The apparatus of claim 15, wherein the LIN transceiver is 상기 마스터 모듈로부터 상기 LIN ID가 수신되면, LIN ID 수신 확인 메시지를 상기 마스터 모듈로 추가로 전송하는 특징으로 하는 슬레이브 모듈.And when the LIN ID is received from the master module, further transmitting a LIN ID acknowledgment message to the master module.
KR1020070119076A 2007-11-21 2007-11-21 Method of automatically issuing local interconnect network identification to slave module and slave module KR100913263B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070119076A KR100913263B1 (en) 2007-11-21 2007-11-21 Method of automatically issuing local interconnect network identification to slave module and slave module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070119076A KR100913263B1 (en) 2007-11-21 2007-11-21 Method of automatically issuing local interconnect network identification to slave module and slave module

Publications (2)

Publication Number Publication Date
KR20090052532A KR20090052532A (en) 2009-05-26
KR100913263B1 true KR100913263B1 (en) 2009-08-21

Family

ID=40860251

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070119076A KR100913263B1 (en) 2007-11-21 2007-11-21 Method of automatically issuing local interconnect network identification to slave module and slave module

Country Status (1)

Country Link
KR (1) KR100913263B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102268139B1 (en) 2020-05-29 2021-06-22 (주)엔텍시스템 Automatic ID allocation method of slave devices according to distance order

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102210890B1 (en) 2013-06-05 2021-02-02 삼성에스디아이 주식회사 Battery management system, and method of managing the same
KR101883716B1 (en) * 2017-08-09 2018-07-31 울산과학기술원 Local interconnect network communication system and address setting method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990076194A (en) * 1998-03-28 1999-10-15 홍종만 Master-slave communication device using single line
US6871250B2 (en) 2000-11-08 2005-03-22 Bayerische Motoren Werke Aktiengesellschaft Data bus, particularly in motor vehicles
JP2007028632A (en) 2005-07-19 2007-02-01 Valeo Vision Communication method and system for motor vehicle
EP1793535A1 (en) 2005-12-02 2007-06-06 BITRON S.p.A. Identifier assignemt for identical devices in a LIN network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990076194A (en) * 1998-03-28 1999-10-15 홍종만 Master-slave communication device using single line
US6871250B2 (en) 2000-11-08 2005-03-22 Bayerische Motoren Werke Aktiengesellschaft Data bus, particularly in motor vehicles
JP2007028632A (en) 2005-07-19 2007-02-01 Valeo Vision Communication method and system for motor vehicle
EP1793535A1 (en) 2005-12-02 2007-06-06 BITRON S.p.A. Identifier assignemt for identical devices in a LIN network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102268139B1 (en) 2020-05-29 2021-06-22 (주)엔텍시스템 Automatic ID allocation method of slave devices according to distance order

Also Published As

Publication number Publication date
KR20090052532A (en) 2009-05-26

Similar Documents

Publication Publication Date Title
US9836904B2 (en) Key fob dongle
US8743873B2 (en) Train communication system and train communication method
US20100023198A1 (en) System and method for emulating vehicle ignition-switched power
CN104717202A (en) Method and apparatus for enhancing security in an in-vehicle communication network
WO2018063643A1 (en) Security system for electronic equipment
KR102298187B1 (en) How to operate a sensor device in a car based on the DSI protocol
US20020046309A1 (en) Method for addressing network components
US7668991B2 (en) Address assignment to plurality of connecting elements in a bus system
EP2719585A1 (en) Electronic key registration system
JP2008155906A (en) On-vehicle connector, main control device, and load control system
KR100913263B1 (en) Method of automatically issuing local interconnect network identification to slave module and slave module
CN103825789B (en) Bus system and its operation method and the fluidic system with bus system
CN105591853A (en) Flexible Scheduling Method And Apparatus In LIN Communication
EA031491B1 (en) Plug part for authorizing operating mode of a device
CN108933776A (en) Using the network monitor ability based on special permission diagnosis link connector in the vehicle for being isolated and protecting the gateway module of In-vehicle networking
CN105874816B (en) Method for starting batteries management system
WO2020255708A1 (en) On-vehicle communication system, on-vehicle communication device, and transmission period calculation method
CN109697310B (en) Function verification method and system applied to AHB bus matrix design
JPH08275253A (en) Device for exchanging serial data between two stations
JP2004042794A (en) Control device and control system
KR20060031093A (en) Network system and method for assigning address
US7065621B2 (en) System and method for implementing a hidden address in a communication module
CN105118296A (en) Method and device for acquiring number of passengers
KR20130033703A (en) Device for assigning unique id for vechicle sensors and method thereof
JP2004193799A (en) Power supply superposition multiplex communication system and method therefor

Legal Events

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

Payment date: 20130730

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20140715

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20150720

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20160726

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20170725

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20180724

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20190725

Year of fee payment: 11