KR101585856B1 - Method and Apparatus for UART and CAN Communication in Vehicle with the Same CAN Transceiver - Google Patents
Method and Apparatus for UART and CAN Communication in Vehicle with the Same CAN Transceiver Download PDFInfo
- Publication number
- KR101585856B1 KR101585856B1 KR1020140192857A KR20140192857A KR101585856B1 KR 101585856 B1 KR101585856 B1 KR 101585856B1 KR 1020140192857 A KR1020140192857 A KR 1020140192857A KR 20140192857 A KR20140192857 A KR 20140192857A KR 101585856 B1 KR101585856 B1 KR 101585856B1
- Authority
- KR
- South Korea
- Prior art keywords
- uart
- data
- transceiver
- mcu
- circuit
- 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
-
- 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
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Dc Digital Transmission (AREA)
Abstract
Description
본 실시예는 차량 내 UART 및 CAN 통합 통신 방법 및 장치에 관한 것이다.The present embodiment relates to an in-vehicle UART and CAN integrated communication method and apparatus.
이하의 배경기술로서 설명된 사항들은 본 발명의 배경에 대한 이해 증진을 위한 것일 뿐, 이 기술분야에서 통상의 지식을 가진자에게 이미 알려진 종래기술에 해당함을 인정하는 것으로 받아들여져서는 안 될 것이다.It should be understood that the following description of the background art is merely for the purpose of promoting an understanding of the background of the present invention and is not to be construed as adhering to the prior art already known to those skilled in the art.
CAN 통신은 차량용 네트워크를 위해 고안된 시리얼 통신 네트워크의 통신 방식으로 2개의 선으로 여러 가지 ECU를 병렬로 연결하여 ECU 상호간의 정보 교환을 우선순위 대로 처리하는 방식이 있으며, 노이즈에 강한 통신 방법이다. 일반적인 차량에서 사용되는 CAN 통신은 통신 속도로 500kbps를 사용하며, CAN 통신 자체의 스펙은 최대 1Mbps이다. 따라서, 그 이상의 고속 통신을 사용하기 위해서는 전용 칩을 이용한 회로를 구성해야 한다. CAN communication is a communication method of a serial communication network designed for a car network. It has two ways of linking several ECUs in parallel and exchanging information among ECUs in priority order, and it is a noise-resistant communication method. The CAN communication used in a typical vehicle uses 500kbps for the communication speed, and the specification of the CAN communication itself is maximum 1Mbps. Therefore, in order to use higher-speed communication, a circuit using a dedicated chip must be constructed.
이에 따라, 별도의 고속통신용 회로를 구성하지 않고 1Mbps 이상의 고속통신을 사용하기 위한 방안이 필요하다. Accordingly, there is a need for a scheme for using a high-speed communication of 1 Mbps or higher without constructing a separate high-speed communication circuit.
본 실시예는 MCU의 UART 모듈에 CAN 트랜시버를 연결하여 데이터 통신에 활용하므로 높은 통신 속도를 지원하는 데 주된 목적이 있다.In this embodiment, a CAN transceiver is connected to the UART module of the MCU and is used for data communication, so that the main purpose is to support a high communication speed.
본 발명이 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical object of the present invention is not limited to the above-mentioned technical objects and other technical objects which are not mentioned can be clearly understood by those skilled in the art from the following description will be.
본 실시예의 일 측면에 의하면, 제1 UART 통신모듈과 제1 CAN통신모듈을 포함하는 제1 MCU; 제2 UART 통신모듈과 제2 CAN통신모듈을 포함하는 제2 MCU; 상기 제1 MCU와 전기적으로 연결된 제1 CAN 트랜시버; 상기 제2 MCU와 전기적으로 연결되며 상기 제1 CAN 트랜시버와 통신하는 제2 CAN 트랜시버; 상기 제1 MCU와 상기 제1 CAN 트랜시버 사이에 연결되어, 상기 제1 MCU로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 상기 UART 데이터 또는 상기 CAN 데이터를 상기 제1 CAN 트랜시버로 전송하는 제1 회로; 및 상기 제2 MCU와 상기 제2 CAN 트랜시버 사이에 연결되어, 상기 제2 MCU로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 상기 UART 데이터 또는 상기 CAN 데이터를 상기 제2 CAN 트랜시버로 전송하는 제2 회로를 포함하는 차량 내 UART/CAN 통합 통신 시스템을 제공한다.According to an aspect of the present embodiment, there is provided a communication system including a first MCU including a first UART communication module and a first CAN communication module; A second MCU including a second UART communication module and a second CAN communication module; A first CAN transceiver electrically coupled to the first MCU; A second CAN transceiver electrically connected to the second MCU and communicating with the first CAN transceiver; A first circuit coupled between the first MCU and the first CAN transceiver for transmitting the UART data or the CAN data to the first CAN transceiver according to whether the data to be transmitted from the first MCU is UART data or CAN data, ; And a second CAN transceiver coupled between the second MCU and the second CAN transceiver for transmitting the UART data or the CAN data to the second CAN transceiver according to whether data to be transmitted from the second MCU is UART data or CAN data, In-vehicle UART / CAN integrated communication system including a circuit.
또한, 본 실시예의 다른 측면에 의하면, UART 통신모듈과 CAN통신모듈을 포함하는 MCU; 상기 MCU와 전기적으로 연결된 CAN 트랜시버; 및 상기 MCU와 상기 CAN 트랜시버 사이에 연결되어, 상기 MCU로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 상기 UART 데이터 또는 상기 CAN 데이터를 상기 CAN 트랜시버로 전송하는 회로를 포함하는 차량 내 UART/CAN 통합 통신 시스템을 제공한다.According to another aspect of the present invention, there is provided an MCU including a UART communication module and a CAN communication module; A CAN transceiver electrically coupled to the MCU; And a circuit coupled between the MCU and the CAN transceiver for transmitting the UART data or the CAN data to the CAN transceiver according to whether the data to be transmitted from the MCU is UART data or CAN data. Communication system.
이상에서 설명한 바와 같이 본 실시예에 의하면, 외부 통신선인 CAN LINE을 이용해 1Mbps 이상의 고속 통신이 가능 함으로서 S/W Reprogram 및 Firmware Update 시간을 단축할 수 있는 효과가 있다.As described above, according to the present embodiment, high-speed communication of 1 Mbps or more can be performed using CAN LINE, which is an external communication line, so that S / W reprogram and firmware update time can be shortened.
본 실시예에 의하면, UART 모듈과 CAN 트랜시버를 이용하여 별도의 설정 없이 CAN data 및 UART data를 구분하기 위한 데이터 처리가 가능할 수 있는 효과가 있다.According to the present embodiment, there is an effect that data processing for distinguishing CAN data and UART data can be performed without a separate setting by using the UART module and the CAN transceiver.
도 1은 본 실시예에 따른 차량 내 UART/CAN 통합 통신 시스템을 개략적으로 나타낸 도면이다.
도 2는 본 실시예에 따른 차량 내 UART/CAN 통합 통신 시스템 동작을 개략적으로 나타낸 도면이다.
도 3은 본 실시예에 따른 제1 회로를 개략적으로 나타낸 도면이다.
도 4는 본 실시예에 따른 제1 회로의 동작을 나타낸 도면이다.1 is a schematic diagram of an in-vehicle UART / CAN unified communication system according to the present embodiment.
FIG. 2 is a diagram schematically illustrating operation of an in-vehicle UART / CAN unified communication system according to the present embodiment.
3 is a schematic diagram of a first circuit according to the present embodiment.
4 is a diagram showing the operation of the first circuit according to the present embodiment.
이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail with reference to exemplary drawings. It should be noted that, in adding reference numerals to the constituent elements of the drawings, the same constituent elements are denoted by the same reference numerals whenever possible, even if they are shown in different drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear.
또한, 본 발명의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 명세서 전체에서, 어떤 부분이 어떤 구성요소를 '포함', '구비'한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미한다. 또한, 명세서에 기재된 '…부', '모듈' 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어나 소프트웨어 또는 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다.In describing the components of the present invention, terms such as first, second, A, B, (a), and (b) may be used. These terms are intended to distinguish the constituent elements from other constituent elements, and the terms do not limit the nature, order or order of the constituent elements. Throughout the specification, when an element is referred to as being "comprising" or "comprising", it means that it can include other elements as well, without excluding other elements unless specifically stated otherwise . In addition, '... Quot ;, " module ", and " module " refer to a unit that processes at least one function or operation, and may be implemented by hardware or software or a combination of hardware and software.
도 1은 본 실시예에 따른 차량 내 UART/CAN 통합 통신 시스템을 개략적으로 나타낸 도면이다.1 is a schematic diagram of an in-vehicle UART / CAN unified communication system according to the present embodiment.
본 실시예에 따른 차량 내 UART/CAN 통합 통신 시스템은 제1 MCU(110), 제2 MCU(120), 제1 CAN 트랜시버(130), 제2 CAN 트랜시버(140), 제1 회로(150), 제2 회로(160)를 포함한다.The in-vehicle UART / CAN integrated communication system according to the present embodiment includes a
여기서, 상기 제1 MCU(110), 제1 CAN 트랜시버(130), 제1 회로(150)는 차량 내의 제1 장치에 포함될 수 있고, 상기 제2 MCU(120), 제2 CAN 트랜시버(140), 제2 회로(160)는 차량 내의 제2 장치에 포함될 수 있다. 예컨대, 상기 제1 MCU(110)는 ECU(Engine Control Unit)일 수 있으며, 상기 제2 MCU(120)는 TCU(Transmission Control Unit)일 수 있다.Here, the
제1 MCU(110)는 제1 UART 송신부(112) 및 제1 UART 수신부(114)를 포함하는 제1 UART 통신모듈을 포함하고, 제1 CAN 송신부(116) 및 제1 CAN 송신부(118)을 포함하는 제1 CAN 통신모듈을 포함한다.The
제2 MCU(120)는 제2 UART 송신부(122) 및 제2 UART 수신부(124)를 포함하는 제2 UART 통신모듈을 포함하고, 제2 CAN 송신부(126) 및 제2 CAN 수신부(128)를 포함하는 제2 CAN 통신모듈을 포함한다.The second MCU 120 includes a second UART communication module including a second
제1 CAN 트랜시버(130)는 제1 MCU(110)와 전기적으로 연결된 Rx/Tx신호를 CAN 규격의 물리계층 신호로 변환해주는 장치이다. 또한, 제2 CAN 트랜시버(140)는 제2 MCU(120)와 전기적으로 연결되며 상기 제1 CAN 트랜시버(130)와 통신 가능한 CAN 규격의 물리계층 신호로 변환해주는 장치이다.The
제1 회로(150)는 제1 MCU(110)와 제1 CAN 트랜시버(130) 사이에 연결되어, 제1 MCU(110)로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 UART 데이터 또는 CAN 데이터를 제1 CAN 트랜시버(130)로 전송한다.The
제1 회로(150)는 제1 AND Gate를 포함한다. 제1 UART 통신모듈의 제1 UART 송신부(112)와 상기 제1 CAN 통신모듈의 제1 CAN 송신부(116)가 제1 AND Gate(미도시)의 입력단에 연결된다. 그리고, 상기 제1 CAN 트랜시버(130)의 제1 CAN 트랜시버 송신부가 제1 AND Gate의 출력단으로 연결된다.The
제1 회로(150)는 제1 UART 송신부(112)와 제1 CAN 송신부(116)가 연결된 각각의 입력단과 기준전압을 각각 연결하는 저항을 추가로 포함한다.The
제1 회로(150)는 제1 제어 로직에 의해 구동된다.The
구체적으로, 제1 제어 로직은, 제1 회로(150)에 기준전압에 전원을 인가하며, CAN 데이터를 전송할 경우에는 제1 UART 송신부(112)를 High로 유지하고, 제1 CAN 송신부(116)로부터 출력되는 CAN 데이터가 제1 AND Gate의 출력단으로 출력되도록 한다.Specifically, the first control logic applies power to the reference voltage to the
또한, 제1 제어 로직은, UART 데이터를 전송할 경우에는, 제1 CAN 송신부(116)를 High로 유지하고, 제2 UART 송신부(122)로부터 출력되는 UART 데이터가 제1 AND Gate의 출력단으로 출력되도록 한다.When the UART data is to be transmitted, the first control logic maintains the first
한편, 제2 회로(160)는 제2 MCU(120)와 제2 CAN 트랜시버(140) 사이에 연결되어, 제2 MCU(120)로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 UART 데이터 또는 CAN 데이터를 제2 CAN 트랜시버(140)로 전송한다.The
제2 회로(160)는 제2 AND Gate(미도시)를 포함한다. 제2 UART 통신모듈의 제2 UART 송신부(122)와 제2 CAN 통신모듈의 제2 CAN 송신부(126)는 제2 AND Gate의 입력단에 연결된다. 그리고, 제2 CAN 트랜시버(140)의 제2 CAN 트랜시버 송신부가 제2 AND Gate의 출력단으로 연결된다.The
제2 회로(160)는 제2 UART 송신부(122)와 제2 CAN 송신부(126)가 연결된 각각의 입력단과 기준전압을 각각 연결하는 저항을 추가로 포함한다.The
제2 회로(160)는 제2 제어 로직에 의해 구동된다.The
제2 제어 로직은, 제2 회로(160)에 기준전압에 전원을 인가하고, CAN 데이터를 전송할 경우에는 제2 UART 송신부(122)를 High로 유지하고, 제2 CAN 송신부(126)로부터 출력되는 CAN 데이터가 제2 AND Gate의 출력단으로 출력되도록 한다. The second control logic applies power to the reference voltage to the
또한, 제2 제어 로직은 UART 데이터를 전송할 경우에는, 제2 CAN 송신부(126)를 High로 유지하고, 제2 UART 송신부(122)로부터 출력되는 UART 데이터가 제2 AND Gate의 출력단으로 출력되도록 한다.When transmitting the UART data, the second control logic causes the second
도 2는 본 실시예에 따른 차량 내 UART/CAN 통합 통신 시스템 동작을 개략적으로 나타낸 도면이다.FIG. 2 is a diagram schematically illustrating operation of an in-vehicle UART / CAN unified communication system according to the present embodiment.
제1 MCU(110)는 데이터를 수신하는 경우(S10), CAN 데이터와 UART 데이터를 동시에 저장한다(S20). 제1 MCU(110)는 UART MODE인지를 판단하여(S30) UART MODE인 경우, UART Checksum 데이터 유무를 확인한다(S40). 그리고, UART Checksum 데이터가 있는 경우(도 2에서 Yes 1의 경우), 제 1 MCU(110)는 UART 데이터로 처리한다(S60). 한편, 이때, UART Checksum 데이터가 없는 경우에는 CAN 데이터인지 여부를 판단하여(S70) CAN 데이터인 경우 CAN 데이터로 처리한다(S80).When the
또한, 상기에서 UART MODE가 아닌 경우에는 CAN 데이터인지 여부를 확인한다(S70). CAN 데이터인 경우에는 CAN 데이터로 처리한다(S80). 여기서, CAN 데이터가 아닌 경우에는 UART Checksum 데이터 유무를 확인하고(S40), UART Checksum 데이터가 있는 경우(도 2에서 Yes 2의 경우), 제 1 MCU(110)는 UART Mode로 설정하고(S50), UART 데이터로 처리한다(S60).If it is not UART MODE, it is checked whether the data is CAN data (S70). If it is the CAN data, it is processed as CAN data (S80). If there is UART Checksum data (Yes in FIG. 2), the
도 2에서는 단계 S10 내지 단계 S80을 순차적으로 실행하는 것으로 기재하고 있으나, 이는 본 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 실시예가 속하는 기술분야에서 통상의 지식을 가진 자라면 본 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 도 2에 기재된 순서를 변경하여 실행하거나 단계 S10 내지 단계 S80 중 하나 이상의 단계를 병렬적으로 실행하는 것으로 다양하게 수정 및 변형하여 적용 가능할 것이므로, 도 2는 시계열적인 순서로 한정되는 것은 아니다.Although it is described in FIG. 2 that steps S10 to S80 are sequentially executed, it is only described by way of example of the technical idea of the present embodiment. As long as those skilled in the art are familiar with the present invention, It is to be understood that the invention is not limited to the above-described embodiments, and that various changes and modifications may be made by executing the steps described in Fig. 2 or by executing at least one of steps S10 to S80 in parallel without departing from the essential characteristics. But is not limited thereto.
도 3은 본 실시예에 따른 제1 회로(150)를 개략적으로 나타낸 도면이다.3 is a schematic diagram of a
도 3을 보면, 제1 MCU(110)는 제1 UART 통신모듈과 제1 CAN 통신모듈을 포함한다. 제1 UART 통신모듈은 제1 UART 송신부(112) 및 제1 UART 수신부(114)를 포함한다. 제1 CAN 통신모듈은 제1 CAN 송신부(116) 및 제1 CAN 송신부(118)를 포함한다. 제1 CAN 송신부(116) 및 제1 UART 송신부(112)는 제1 AND Gate의 입력단에 연결되고, 기준전압을 이용하여 출력 데이터를 생성한다. 여기서, 제1 회로(150)는 제1 UART 송신부(112)와 제1 CAN 송신부(116)가 연결된 각각의 입력단과 기준전압을 각각 연결하는 저항을 추가로 포함한다. 제1 회로(150)는 출력 데이터를 제1 CAN 트랜시버(130)로 전송한다. 또한, 제1 MCU(110)는 제1 CAN 수신부(118) 및 제1 UART 수신부(114) 출력 데이터를 제1 CAN 트랜시버(130)로 전송한다. Referring to FIG. 3, the
도 4는 본 실시예에 따른 제1 회로(150)의 동작을 나타낸 도면이다.4 is a diagram showing the operation of the
제1 제어 로직은 제1 회로(150)에 포함되는 기준전압에 전원을 인가하고, CAN 데이터를 전송할 경우에는, 제1 UART 송신부(112)를 High로 유지하고, 제1 CAN 송신부(116)로부터 출력되는 CAN 데이터가 제1 AND Gate의 출력단으로 출력되도록 한다. 여기서, CAN 데이터는 예컨대, 0x55로 0101 0101일 수 있으며, 입력된 대로 제1 AND Gate로부터 출력된다.The first control logic applies power to the reference voltage included in the
제1 제어 로직은 제1 회로(150)에 포함되는 기준전압에 전원을 인가하고, UART 데이터를 전송할 경우에는, 제1 CAN 송신부(116)를 High로 유지하고, 제1 UART 송신부(112)로부터 출력되는 UART 데이터가 제1 AND Gate의 출력단으로 출력되도록 한다.The first control logic applies power to the reference voltage included in the
이상의 설명은 본 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 실시예가 속하는 기술 분야에서 통산의 지식을 가진 자라면 본 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 실시예들은 본 실시예의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 실시예의 기술 사상의 범위가 한정되는 것을 아니다. 본 실시예의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하면, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 실시예의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The above description is merely illustrative of the technical idea of the present embodiment, and various changes and modifications may be made by those skilled in the art without departing from the essential characteristics of the embodiments. Therefore, the present embodiments are to be construed as illustrative rather than limiting, and the scope of the technical idea of the present embodiment is not limited by these embodiments. It is to be understood that the scope of the present invention is to be construed as being limited only by the scope of the appended claims.
110: 제1 MCU 112: 제1 UART 송신부
114: 제1 UART 수신부 116: 제1 CAN 송신부
118: 제1 CAN 수신부 120: 제2 MCU
122: 제2 UART 송신부 124: 제2 UART 수신부
126: 제2 CAN 송신부 128: 제2 CAN 수신부
130: 제1 CAN 트랜시버 140: 제2 트랜시버
150: 제1 회로 160: 제2 회로110: first MCU 112: first UART transmitter
114: first UART receiving unit 116: first CAN transmitting unit
118: first CAN receiving unit 120: second MCU
122: second UART transmitting unit 124: second UART receiving unit
126: second CAN transmission unit 128: second CAN reception unit
130: first CAN transceiver 140: second transceiver
150: first circuit 160: second circuit
Claims (8)
제2 UART 통신모듈과 제2 CAN통신모듈을 포함하는 제2 MCU;
상기 제1 MCU와 전기적으로 연결된 제1 CAN 트랜시버;
상기 제2 MCU와 전기적으로 연결되며 상기 제1 CAN 트랜시버와 통신하는 제2 CAN 트랜시버;
상기 제1 MCU와 상기 제1 CAN 트랜시버 사이에 연결되어, 상기 제1 MCU로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 상기 UART 데이터 또는 상기 CAN 데이터를 상기 제1 CAN 트랜시버로 전송하는 제1 회로; 및
상기 제2 MCU와 상기 제2 CAN 트랜시버 사이에 연결되어, 상기 제2 MCU로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 상기 UART 데이터 또는 상기 CAN 데이터를 상기 제2 CAN 트랜시버로 전송하는 제2 회로
를 포함하고,
상기 제1 회로는, 상기 제1 UART 통신모듈의 제1 UART 송신부와 상기 제1 CAN 통신모듈의 제1 CAN 송신부가 입력단에 연결되고, 상기 제1 CAN 트랜시버의 제1 CAN 트랜시버 송신부가 출력단으로 연결되는 제1 AND Gate를 포함하고,
상기 제2 회로는, 상기 제2 UART 통신모듈의 제2 UART 송신부와 상기 제2 CAN 통신모듈의 제2 CAN 송신부가 입력단에 연결되고, 상기 제2 CAN 트랜시버의 제2 CAN 트랜시버 송신부가 출력단으로 연결되는 제2 AND Gate를 포함하며,
상기 제1 회로는, 상기 제1 UART 송신부와 상기 제1 CAN 송신부가 연결된 각각의 입력단과 기준전압을 각각 연결하는 저항을 추가로 포함하고,
상기 제2 회로는, 상기 제2 UART 송신부와 상기 제2 CAN 송신부가 연결된 각각의 입력단과 기준전압을 각각 연결하는 저항을 추가로 포함하고,
상기 제1 회로 또는 제2 회로를 제어하기 위한 제어 로직을 추가로 포함하되, 상기 제어 로직은:
상기 제1 회로 또는 제2 회로의 상기 기준전압에 전원을 인가하고,
CAN 데이터를 전송할 경우에는, 상기 제1 또는 제2 UART 송신부를 High로 유지하고, 상기 제1 또는 제2 CAN 송신부로부터 출력되는 상기 CAN 데이터가 상기 제1 또는 제2 AND Gate의 출력단으로 출력되도록 하며,
UART 데이터를 전송할 경우에는, 상기 제1 또는 제2 CAN 송신부를 High로 유지하고, 상기 제1 또는 제2 UART 송신부로부터 출력되는 상기 UART 데이터가 상기 제1 또는 제2 AND Gate의 출력단으로 출력되도록 하는 것을 특징으로 하는 차량 내 UART/CAN 통합 통신 시스템.A first MCU including a first UART communication module and a first CAN communication module;
A second MCU including a second UART communication module and a second CAN communication module;
A first CAN transceiver electrically coupled to the first MCU;
A second CAN transceiver electrically connected to the second MCU and communicating with the first CAN transceiver;
A first circuit coupled between the first MCU and the first CAN transceiver for transmitting the UART data or the CAN data to the first CAN transceiver according to whether the data to be transmitted from the first MCU is UART data or CAN data, ; And
A second circuit coupled between the second MCU and the second CAN transceiver for transmitting the UART data or the CAN data to the second CAN transceiver according to whether the data to be transmitted from the second MCU is UART data or CAN data,
Lt; / RTI >
Wherein the first circuit is connected to the first UART transmitter of the first UART communication module and the first CAN transmitter of the first CAN communication module and the first CAN transceiver transmitter of the first CAN transceiver is connected to the output terminal, And a second AND gate,
The second circuit may include a second UART transmission unit of the second UART communication module and a second CAN transmission unit of the second CAN communication module are connected to an input terminal and a second CAN transceiver transmission unit of the second CAN transceiver is connected to an output terminal And a second AND gate,
Wherein the first circuit further includes a resistor for connecting a reference voltage to each input terminal to which the first UART transmitter and the first CAN transmitter are connected,
Wherein the second circuit further comprises a resistor for connecting a reference voltage to each input terminal to which the second UART transmitter and the second CAN transmitter are connected,
Further comprising control logic for controlling the first circuit or the second circuit, the control logic comprising:
Applying power to the reference voltage of the first circuit or the second circuit,
When the CAN data is to be transmitted, the first or second UART transmitting unit is maintained at High, and the CAN data output from the first or second CAN transmitting unit is output to the output terminal of the first or second AND gate ,
When the UART data is to be transmitted, the first or second CAN transmission unit is maintained at High, and the UART data output from the first or second UART transmission unit is output to the output end of the first or second AND gate (UART) / CAN integrated communication system.
상기 MCU와 전기적으로 연결된 CAN 트랜시버; 및
상기 MCU와 상기 CAN 트랜시버 사이에 연결되어, 상기 MCU로부터 전송할 데이터가 UART 데이터인지 CAN 데이터인지에 따라 상기 UART 데이터 또는 상기 CAN 데이터를 상기 CAN 트랜시버로 전송하는 회로
를 포함하고,
상기 회로는, 상기 UART 통신모듈의 UART 송신부와 상기 CAN 통신모듈의 CAN 송신부가 입력단에 연결되고, 상기 CAN 트랜시버의 CAN 트랜시버 송신부가 출력단으로 연결되는 AND Gate를 포함하며,
상기 회로는, 상기 UART 송신부와 상기 CAN 송신부가 연결된 각각의 입력단과 기준전압을 각각 연결하는 저항을 추가로 포함하고,
상기 회로를 제어하기 위한 제어 로직을 추가로 포함하되, 상기 제어 로직은:
상기 회로의 상기 기준전압에 전원을 인가하고,
CAN 데이터를 전송할 경우에는, 상기 UART 송신부를 High로 유지하고, 상기 CAN 송신부로부터 출력되는 상기 CAN 데이터가 상기 AND Gate의 출력단으로 출력되도록 하며,
UART 데이터를 전송할 경우에는, 상기 CAN 송신부를 High로 유지하고, 상기 UART 송신부로부터 출력되는 상기 UART 데이터가 상기 AND Gate의 출력단으로 출력되도록 하는 것을 특징으로 하는 차량 내 UART/CAN 통합 통신 시스템.An MCU including a UART communication module and a CAN communication module;
A CAN transceiver electrically coupled to the MCU; And
A circuit connected between the MCU and the CAN transceiver for transmitting the UART data or the CAN data to the CAN transceiver according to whether data to be transmitted from the MCU is UART data or CAN data,
Lt; / RTI >
The circuit includes an AND gate in which a UART transmission unit of the UART communication module and a CAN transmission unit of the CAN communication module are connected to an input terminal and a CAN transceiver transmission unit of the CAN transceiver is connected to an output terminal,
Wherein the circuit further comprises a resistor for connecting a reference voltage to each input terminal to which the UART transmitter and the CAN transmitter are connected,
Further comprising control logic for controlling said circuit, said control logic comprising:
Applying power to the reference voltage of the circuit,
When the CAN data is to be transmitted, the UART transmission unit is maintained at High, and the CAN data output from the CAN transmission unit is output to the output terminal of the AND gate,
Wherein when the UART data is transmitted, the CAN transmission unit is maintained at High, and the UART data output from the UART transmission unit is output to the output terminal of the AND gate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140192857A KR101585856B1 (en) | 2014-12-30 | 2014-12-30 | Method and Apparatus for UART and CAN Communication in Vehicle with the Same CAN Transceiver |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140192857A KR101585856B1 (en) | 2014-12-30 | 2014-12-30 | Method and Apparatus for UART and CAN Communication in Vehicle with the Same CAN Transceiver |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101585856B1 true KR101585856B1 (en) | 2016-01-15 |
Family
ID=55173535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020140192857A KR101585856B1 (en) | 2014-12-30 | 2014-12-30 | Method and Apparatus for UART and CAN Communication in Vehicle with the Same CAN Transceiver |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101585856B1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187698A (en) * | 2019-07-01 | 2021-01-05 | 云丁网络技术(北京)有限公司 | Communication method, service system, electronic equipment and main MCU thereof |
CN114900392A (en) * | 2022-05-16 | 2022-08-12 | 株洲嘉成科技发展股份有限公司 | Method for transmitting serial port data by CAN bus |
KR20220125649A (en) | 2021-03-05 | 2022-09-14 | 숭실대학교산학협력단 | Method for multiple uart communications using can bus, recording medium and device for performing the method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006020038A (en) * | 2004-07-01 | 2006-01-19 | Denso Corp | Physical quantity sensor device and inspecting device therefor |
KR20110013760A (en) * | 2009-08-03 | 2011-02-10 | (주)아이머큐리 | Apparatus for processing of multi-protocol using vehicles and method thereof |
JP2013243758A (en) * | 2009-05-20 | 2013-12-05 | Renesas Electronics Corp | Communication system for automobile |
-
2014
- 2014-12-30 KR KR1020140192857A patent/KR101585856B1/en active IP Right Grant
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006020038A (en) * | 2004-07-01 | 2006-01-19 | Denso Corp | Physical quantity sensor device and inspecting device therefor |
JP2013243758A (en) * | 2009-05-20 | 2013-12-05 | Renesas Electronics Corp | Communication system for automobile |
KR20110013760A (en) * | 2009-08-03 | 2011-02-10 | (주)아이머큐리 | Apparatus for processing of multi-protocol using vehicles and method thereof |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187698A (en) * | 2019-07-01 | 2021-01-05 | 云丁网络技术(北京)有限公司 | Communication method, service system, electronic equipment and main MCU thereof |
KR20220125649A (en) | 2021-03-05 | 2022-09-14 | 숭실대학교산학협력단 | Method for multiple uart communications using can bus, recording medium and device for performing the method |
KR102535563B1 (en) * | 2021-03-05 | 2023-05-26 | 숭실대학교 산학협력단 | Method for multiple uart communications using can bus, recording medium and device for performing the method |
CN114900392A (en) * | 2022-05-16 | 2022-08-12 | 株洲嘉成科技发展股份有限公司 | Method for transmitting serial port data by CAN bus |
CN114900392B (en) * | 2022-05-16 | 2023-07-25 | 株洲嘉成科技发展股份有限公司 | Method for transmitting serial port data by CAN bus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10581906B2 (en) | Security system for electronic equipment | |
CN105409175B (en) | Subscriber station for a bus system and method for improving the error robustness of a subscriber station of a bus system | |
WO2018075333A3 (en) | System and method for communication of analyte data | |
CN106063198A (en) | Subscriber station for a bus system and method for improving the quality of transmission in a bus system | |
CN111149326B (en) | Transmitting/receiving device for a bus system and method for reducing the tendency of oscillations during transitions between different bit states | |
WO2017013829A1 (en) | Communication system | |
US8681881B2 (en) | Communication signal generating device and communication apparatus for use in communication system | |
KR101585856B1 (en) | Method and Apparatus for UART and CAN Communication in Vehicle with the Same CAN Transceiver | |
US20120290753A1 (en) | Connection method for bus controllers and communication system | |
JP2016518095A5 (en) | ||
US20160294578A1 (en) | Control device for connecting a can bus to a radio network, and motor vehicle having such a control device | |
US20160294724A1 (en) | Control device for connecting a can bus to a radio network, and motor vehicle having such a control device | |
JP2020527915A (en) | How to detect a short circuit with a transmitter / receiver for a CAN bus system and a CAN transmitter / receiver | |
RU2015140120A (en) | COMMUNICATION DEVICE, METHOD FOR MANAGING THEM AND PROGRAM | |
KR20190103202A (en) | Subscriber station for bus system, and data transmission method in bus system | |
CN204389963U (en) | A kind of control circuit and controller | |
JP2015053633A (en) | Communication system | |
CN111164937B (en) | Transmitting/receiving device for a bus system and method for reducing the tendency of oscillations during transitions between different bit states | |
CN111149328B (en) | Transmitting/receiving device for a bus system and method for reducing the tendency of oscillations during transitions between different bit states | |
US10361838B2 (en) | Two-wire communication interface system | |
JP2013098871A (en) | Communication system, communication device, and communication method | |
WO2014133864A3 (en) | A machine communication system and a communication unit | |
US10225099B2 (en) | Vehicle electronic computer compatible with the CAN-FD communication protocol | |
US20150050897A1 (en) | Transceiver with wake up detection | |
JP2016123054A (en) | Communication system, communication device and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |