KR100764201B1 - A communicaton speed setiing method of can communication node - Google Patents
A communicaton speed setiing method of can communication node Download PDFInfo
- Publication number
- KR100764201B1 KR100764201B1 KR1020030069096A KR20030069096A KR100764201B1 KR 100764201 B1 KR100764201 B1 KR 100764201B1 KR 1020030069096 A KR1020030069096 A KR 1020030069096A KR 20030069096 A KR20030069096 A KR 20030069096A KR 100764201 B1 KR100764201 B1 KR 100764201B1
- Authority
- KR
- South Korea
- Prior art keywords
- communication
- communication node
- transceiver
- pulse
- bus
- 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/4013—Management of data rate on the bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/02—Details ; arrangements for supplying electrical power along data transmission lines
- H04L25/0262—Arrangements for detecting the data rate of an incoming signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/20—Traffic policing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/25—Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
-
- 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/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Quality & Reliability (AREA)
- Communication Control (AREA)
Abstract
본 발명은 캔 통신노드의 통신속도 설정방법에 관한 것으로, 캔 트랜시버와 캔 통신노드간에 통신속도 설정회로를 구비하는 제1과정과, 상기 캔 통신노드에서통신속도 설정회로를 제어하여 초기 통신속도 설정시간동안 통신속도 설정을 위한 캔 버스 메시지 프레임의 펄스를 상기 캔 트랜시버로부터 수신하는 제2과정과, 상기 제2과정에서 수신되는 캔 버스 메시지 프레임의 펄스 변화기간을 모니터링하여 캔 버스의 전송속도를 구하는 제3과정과, 상기 제3과정에서 구한 전송속도로 테스트 메시지를 캔 버스를 통해 상기 캔 트랜시버로 전송하여 에러가 없는 경우 해당 전송속도를 캔 통신노드의 통신속도로 자동 설정하는 제4과정으로 이루어지는 것을 특징으로 하며, 이와 같이 초기 통신속도 설정시간동안 캔 버스 메시지 프레임의 펄스 변화기간을 모니터링하고, 이를 이용하여 캔 통신노드의 전송속도를 알아낸 후 자동으로 통신속도를 설정함으로써 캔 통신노드에서 프로그램 변경없이 어떠한 캔 버스에도 연결 가능하여 캔 트랜시버와의 원할한 통신이 이루어질 수 있게 되는 효과가 있다.The present invention relates to a communication speed setting method for a CAN communication node, comprising a first step of providing a communication speed setting circuit between a CAN transceiver and a CAN communication node, and a step of controlling the communication speed setting circuit in the CAN communication node, Receiving a can bus message frame pulse for setting a communication speed from the can transceiver for a predetermined period of time; monitoring a pulse change period of the can bus message frame received in the second process, And a fourth step of transmitting the test message to the can transceiver through the CAN bus at the transmission rate determined in the third step and automatically setting the transmission rate at the can communication node if there is no error Thus, during the initial communication rate setting time, the pulse change period of the can bus message frame is The can communication node can connect to any can bus without changing the program, so that the can communication can be performed smoothly with the can transceiver. .
캔 통신노드, 캔 트랜시버, 캔 버스CAN communication node, CAN transceiver, CAN bus
Description
도 1은 본 발명에 따른 캔 통신노드의 통신속도 설정방법을 수행하기 위한 캔 트랜시버 및 캔 통신노드간의 통신속도 설정회로를 보인 도면.BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram showing a communication speed setting circuit between a CAN transceiver and a CAN communication node for performing a communication speed setting method of a CAN communication node according to the present invention; Fig.
도 2는 본 발명에 따른 캔 통신노드의 통신속도 설정방법을 보인 동작 흐름도.2 is a flow chart illustrating a communication speed setting method of a can communication node according to the present invention;
<도면의 주요부분에 대한 부호의 설명>Description of the Related Art
10 : 캔 통신노드 20 : 캔 트랜시버 10: CAN communication node 20: CAN transceiver
Q1 : 트랜시스터1 Q2 : 트랜지스터2Q1:
본 발명은 캔(CAN : Controller Area Network) 통신노드의 통신속도 설정방법에 관한 것으로, 특히 캔 버스(Bus) 메시지 프레임의 펄스 변화기간을 모니터링하여 캔 통신노드의 통신속도를 자동으로 설정할 수 있도록 한 캔 통신노드의 통신속도 설정방법에 관한 것이다.BACKGROUND OF THE
종래에는 캔 통신노드, 즉 캔 모듈을 캔 트랜시버(CAN Transceiver)의 캔 버 스에 연결할 때, 캔 버스의 통신속도, 즉 보드 레이트(Baud Rate)를 미리 알아내어 그 값으로 통신속도 변수를 변경하고, 해당 프로그램을 캔 모듈에 다시 깔아주어야 한다.Conventionally, when connecting a CAN communication node, that is, a CAN module, to a CAN bus of a CAN transceiver, the CAN bus communication speed, that is, the baud rate, is determined in advance and the communication speed variable is changed , And re-install the program in the can module.
그러나, 상기와 같은 방법은 다음과 같은 문제점이 있다.However, the above method has the following problems.
첫째, OTP(One Type Programming) 타입의 MCU(Micro Controller Unit)와 같은 캔 모듈일 경우에는 통신속도 변경 자체가 불가능하여 지정된 통신속도의 캔 버스에서만 사용할 수 있고, 특히 상품화된 캔 모듈의 경우에는 외함으로 싸여져 있기 때문에 그것을 제거하고 프로그래밍할 경우 그 절차가 매우 복잡하고 번거롭다는 문제점이 있다.First, in case of a can module such as an MCU (Micro Controller Unit) of OTP (One Type Programming) type, it is impossible to change the communication speed itself, so that it can be used only in a CAN bus having a designated communication speed. The process is very complicated and troublesome when the program is removed and programmed.
둘째, 상기와 같은 프로그래밍하는 수고를 감수한다 하더라도, 통신속도를 아예 모르는 캔 버스에는 캔 모듈을 설치할 수 없다고 하는 문제점이 있다. Second, even if the above-mentioned programming work is taken, there is a problem that the CAN module can not be installed in the CAN bus which does not know the communication speed at all.
본 발명은 상기와 같은 문제점을 해결하기 위한 것으로서, 그 목적은 초기 통신속도 설정시간동안 캔 트랜시버로부터 출력되는 캔 버스 메시지 프레임의 펄스 변화기간을 모니터링하고, 이를 이용하여 캔 통신노드의 전송속도를 알아낸 후 자동으로 통신속도를 설정함으로써 캔 통신노드에서 프로그램 변경없이 어떠한 캔 버스에도 연결 가능하여 캔 트랜시버와의 원할한 통신이 이루어질 수 있도록 한 캔 통신노드의 통신속도 설정방법을 제공하는 데에 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to monitor a pulse change period of a CANBUS message frame output from a CAN transceiver during an initial communication speed setting time, The can communication node can be connected to any can bus without changing the program at the can communication node so that the can communication can be performed smoothly with the can transceiver.
상기와 같은 목적을 달성하기 위한 본 발명의 캔 통신노드의 통신속도 설정 방법은, 캔 트랜시버와 캔 통신노드간에 통신속도 설정회로를 구비하는 제1과정과, 상기 캔 통신노드에서 통신속도 설정회로를 제어하여 초기 통신속도 설정시간동안 통신속도 설정을 위한 캔 버스 메시지 프레임의 펄스를 상기 캔 트랜시버로부터 수신하는 제2과정과, 상기 제2과정에서 수신되는 캔 버스 메시지 프레임의 펄스 변화기간을 모니터링하여 캔 버스의 전송속도를 구하는 제3과정과, 상기 제3과정에서 구한 전송속도로 테스트 메시지를 캔 버스를 통해 상기 캔 트랜시버로 전송하여 에러가 없는 경우 해당 전송속도를 캔 통신노드의 통신속도로 자동 설정하는 제4과정으로 이루어지는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a communication speed setting method for a can communication node including a first step of providing a communication speed setting circuit between a can transceiver and a can communication node, A second step of receiving a can bus message frame pulse for setting a communication speed during the initial communication speed setting time from the can transceiver; A third step of obtaining a transmission speed of the CAN communication node, and a test message is transmitted to the CAN transceiver through the CAN bus at a transmission rate determined in the third process, And a fourth step of performing the second step.
이하, 첨부된 도면을 참고하여 본 발명에 따른 캔 통신노드의 통신속도 설정방법을 상세히 설명한다.Hereinafter, a communication speed setting method of the CAN communication node according to the present invention will be described in detail with reference to the accompanying drawings.
도 1은 본 발명에 따른 캔 통신노드의 통신속도 설정방법을 수행하기 위한 캔 트랜시버 및 캔 통신노드간의 통신속도 설정회로를 보인 도면으로서, 캔 통신노드(10)는 캔 버스를 통해 캔 트랜시버(20)에 연결되며, 특히 캔 통신노드(10)내 각각의 송수신 포트(CANTX, CANRX)는 캔 트랜시버(20)내 해당 송수신 포트(TxD,RxD)에 연결된다.FIG. 1 is a diagram showing a communication speed setting circuit between a can transceiver and a can communication node for performing a communication speed setting method of a can communication node according to the present invention. The
그리고, 상기 캔 통신노드(10)에는 송수신 포트(CANTX, CANRX) 이외에도 클럭 카운터 포트(Clock Counter) 및 별도의 일반 출력 포트(General Output)가 구비된다.The
한편, 상기 캔 통신노드(10)의 통신속도 설정방법을 수행하기 위한 캔 트랜시버(20) 및 캔 통신노드(10)간의 통신속도 설정회로는 두 개의 트랜지스터(Q1,Q2) 로 구성된다.The communication speed setting circuit between the can transceiver 20 and the
즉, 상기 캔 트랜시버(20)의 수신 포트(RxD) 및 캔 통신노드(10)의 클럭 카운터 포트(Clock Counter)에 연결된 PNP 타입의 트랜지스터1(Q1)과, 이 트랜지스터1(Q1) 및 상기 캔 통신노드(10)의 일반 출력 포트(General Output)에 연결되어, 상기 트랜지스터1(Q1)의 스위칭 동작을 제어하는 NPN 타입의 트랜지스터2(Q2)로 구성된다.That is, the PNP type transistor 1 (Q1) connected to the receiving port RxD of the can transceiver 20 and the clock counter of the
상기와 같이 구성된 통신속도 설정회로에서는 초기 통신속도 설정시간동안 트랜지스터2(Q2)의 제어에 따라 트랜지스터1(Q1)를 스위칭 온시켜 캔 통신노드(10)에서 캔 트랜시버(20)내 수신 포트(RxD)를 통해 출력되는 캔 버스 메시지 프레임의 펄스를 수신하고, 이 수신되는 펄스의 변화기간을 모니터링하여 캔 통신노드(10)가 캔 버스의 통신속도를 알아낼 수 있도록 한다.In the communication rate setting circuit configured as described above, the transistor 1 (Q1) is switched on under the control of the transistor 2 (Q2) during the initial communication rate setting time to set the receiving port RxD in the can transceiver 20 And monitors the change period of the received pulse so that the
이후, 보다 상세하게 본 발명에 따른 캔 통신노드의 통신속도 설정방법을 도 2의 동작 흐름도를 참고하여 설명하면 다음과 같다.Hereinafter, the communication speed setting method of the CAN communication node according to the present invention will be described in detail with reference to the operation flowchart of FIG.
먼저, 캔 통신노드(10)에서는 초기 통신속도 설정시간 변수 T2의 값을 100으로 설정하고, 일련의 펄스 변화에 대한 횟수 변수 N을 0으로 초기 설정한다(S1).First, the can
즉, 캔 통신노드(10)에서는 트랜지스터2(Q2)를 제어하여 상기 100이라는 초기 통신속도 설정시간동안 트랜지스터1(Q1)를 스위칭 온시켜 캔 트랜시버(20)내 수신 포트(RxD)를 통해 출력되는 캔 버스 메시지 프레임의 펄스를 수신하고, 이 수신되는 펄스의 변화기간을 모니터링하도록 한다. 이후, 통신속도 설정이 최종 완료되면 다시 트랜지스터2(Q2)를 제어하여 트랜지스터1(Q1)를 스위칭 오프시켜 캔 통신 노드(10)와 캔 트랜시버(20)간의 원할한 통신이 이루어지도록 한다.That is, the
이어, 캔 통신노드(10)에서는 상기와 같이 초기 통신속도 설정시간동안에 캔 트랜시버(20)내 수신 포트(RxD)를 통해 출력되는 캔 버스 메시지 프레임에 대한 펄스 엣지(Pulse Edge) 발생 여부를 확인하여(S2), 펄스 엣지가 발생하면 타이머를 온시켜 시간을 카운터하기 시작한다(S3).Next, the can
이후, 계속해서 펄스 엣지 발생 여부를 확인하여(S4), 캔 버스 메시지 프레임에 대한 펄스 엣지가 발생하면 캔 버스 메시지 프레임의 펄스가 변화한 것이므로, 타이머를 오프시킨다(S5).Thereafter, whether or not a pulse edge has been generated is checked (S4). If a pulse edge for a can bus message frame occurs, the pulse of the can bus message frame is changed, and the timer is turned off (S5).
이때, 캔 통신노드(10)에서는 캔 버스 메시지 프레임의 펄스 변화기간을 카운터하기 위해 어셈블리언어로 프로그래밍하거나, 또는 클럭 카운터 포트(Clock Counter)의 인터럽트를 이용하게 된다.At this time, in the CAN
이어, 상기와 같은 일련의 펄스 변화에 대한 횟수 변수 N 값을 1씩 증가시키고(S6), 펄스가 변화되기전까지 카운트된 타이머 시간값을 통신속도 설정시간 변수 T1로 설정한다(S7).Next, the number N of values for the series of pulse changes is increased by 1 (S6), and the timer time value counted until the pulse is changed is set as the communication speed setting time variable T1 (S7).
이후, 상기 N이 일정 기준 횟수인 100보다 작은지를 판단하여(S8), 100보다 작다면 상기 초기 통신속도 설정시간 T2가 통신속도 설정시간 T1보다 큰지를 판단하고(S9), 이때 T2가 T1보다 크다면 T1의 시간을 T2로 설정한 후(S10), 이렇게 다른 값으로 설정된 T2로 1/T2 계산하여 전송속도인 보드 레이트를 구한다(S11). 한편, 상기 단계(S8)에서 N이 100보다 작지 않다면 바로 상기 단계(S11)로 진행하여 100으로 설정된 초기 통신속도 설정시간 T2를 그대로 사용하여 1/T2 계산하여 보드 레이트를 구한다.If it is smaller than 100, it is determined whether the initial communication speed setting time T2 is greater than the communication speed setting time T1 (S9). If T2 is less than T1 If it is greater, the time of T1 is set to T2 (S10), and the baud rate, which is a transmission rate, is calculated by calculating 1 / T2 with T2 set to such another value (S11). On the other hand, if N is not smaller than 100 in step S8, the process proceeds to step S11 and the baud rate is calculated by calculating 1 / T2 using the initial communication rate setting time T2 set to 100 as it is.
그리고 나서, 캔 통신노드(10)에서는 상기 단계(S11)에서 구한 보드 레이트의 전송속도로 테스트 메시지를 캔 버스 통해 캔 트랜시버(20)에 전송한다(S12).Then, the
이후, 에러 프레임의 발생 여부를 확인하여(S13), 에러 프레임이 발생되지 않으면 캔 통신노드(10)에서는 이 전송속도를 통신속도로 최종 결정함으로써(S14) 캔 통신노드(10)와 캔 트랜시버(20)간의 원할한 통신이 가능해지도록 한다.If the error frame is not generated, the
상기에서 설명한 바와 같이, 본 발명은 초기 통신속도 설정시간동안 캔 버스 메시지 프레임의 펄스 변화기간을 모니터링하고, 이를 이용하여 캔 통신노드의 전송속도를 알아낸 후 자동으로 통신속도를 설정함으로써 캔 통신노드에서 프로그램 변경없이 어떠한 캔 버스에도 연결 가능하여 캔 트랜시버와의 원할한 통신이 이루어질 수 있게 되는 효과가 있다.
As described above, the present invention monitors the pulse change period of the CANBAS message frame during the initial communication rate setting time, finds the transmission speed of the CAN communication node using it, and automatically sets the communication speed, It is possible to connect to any can bus without changing the program, thereby enabling the communication with the can transceiver to be performed smoothly.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020030069096A KR100764201B1 (en) | 2003-10-06 | 2003-10-06 | A communicaton speed setiing method of can communication node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020030069096A KR100764201B1 (en) | 2003-10-06 | 2003-10-06 | A communicaton speed setiing method of can communication node |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20050033138A KR20050033138A (en) | 2005-04-12 |
KR100764201B1 true KR100764201B1 (en) | 2007-10-05 |
Family
ID=37237404
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020030069096A KR100764201B1 (en) | 2003-10-06 | 2003-10-06 | A communicaton speed setiing method of can communication node |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100764201B1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100747760B1 (en) * | 2006-09-04 | 2007-08-08 | 한양대학교 산학협력단 | Time division scheduling method on can and the can system thereof |
CN108984453B (en) * | 2018-07-12 | 2021-02-02 | 山东超越数控电子股份有限公司 | PCIE bus speed measuring system and method based on Shenwei platform |
KR101987890B1 (en) * | 2019-04-09 | 2019-09-30 | 브이에스아이 주식회사 | Method for determining the transmission speed of a communication module in mediating connection of the communication module to a bus, and a device for said method |
KR102274671B1 (en) * | 2019-12-06 | 2021-07-08 | 현대오트론 주식회사 | Apparatus and method for setting baud rate of electronic control unit based on can communication |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960027148A (en) * | 1994-12-08 | 1996-07-22 | 전성원 | Communication speed converting device and control method of internal combustion engine controller |
KR19980017128A (en) * | 1996-08-30 | 1998-06-05 | 박병재 | Ken communication data module device |
KR20020001403A (en) * | 2000-06-28 | 2002-01-09 | 홍승호 | Methode for allocating bandwidth in control area network protocol |
KR20030000578A (en) * | 2001-06-26 | 2003-01-06 | 주식회사 엘지이아이 | detecting method of communication speed in device through receiver signal detection |
-
2003
- 2003-10-06 KR KR1020030069096A patent/KR100764201B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960027148A (en) * | 1994-12-08 | 1996-07-22 | 전성원 | Communication speed converting device and control method of internal combustion engine controller |
KR19980017128A (en) * | 1996-08-30 | 1998-06-05 | 박병재 | Ken communication data module device |
KR20020001403A (en) * | 2000-06-28 | 2002-01-09 | 홍승호 | Methode for allocating bandwidth in control area network protocol |
KR20030000578A (en) * | 2001-06-26 | 2003-01-06 | 주식회사 엘지이아이 | detecting method of communication speed in device through receiver signal detection |
Also Published As
Publication number | Publication date |
---|---|
KR20050033138A (en) | 2005-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0939511B1 (en) | Method and arrangement in a network repeater for automatically changing link speed | |
EP2701024B1 (en) | Portable device maintenance support apparatus, system, and method | |
WO2012062219A1 (en) | Modbus repeater with self-adaptive baud rate and self-adaptive baud rate system and method | |
KR100764201B1 (en) | A communicaton speed setiing method of can communication node | |
JP7251324B2 (en) | Communication device, automatic baud rate setting method, and communication system | |
EP0679038B2 (en) | Television receiver | |
US7509510B2 (en) | Energy detect with auto pair select | |
EP0543359B1 (en) | Bus competitive control apparatus | |
CN108259706B (en) | Video signal adjusting device and adjusting method | |
JPH08221108A (en) | Remote i/o system of plc | |
CN112130053A (en) | Method for performing chip function synchronous test on ATE | |
US5528760A (en) | Data transmission/receive system and control method using dummy data to signify transmission/reception state and to detect transmission error | |
JP2709720B2 (en) | Line connection method between the numerical controller and its peripheral devices | |
CN100466566C (en) | Automatic configuration equipment for linking network media and its method | |
JPH05101007A (en) | Serial transmission equipment | |
EP1316181B1 (en) | Energy detect with auto pair select | |
KR100201818B1 (en) | Apparatus and method for processing q signalling using additional channel | |
JP2509520Y2 (en) | Signal attenuation circuit | |
JPH0362652A (en) | Data communication controller | |
JPH05158723A (en) | Abnormality diagnostic device for decentralized processing type controller | |
JPH07284168A (en) | Two-way signal transmission system | |
JPH04356848A (en) | Abnormality detector for controller | |
JP2001211176A (en) | Automatic setting system for identification number of terminal in network | |
JPH113484A (en) | Signal transmitter having communication function | |
JPH08171406A (en) | Data transmission controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20130624 Year of fee payment: 7 |
|
FPAY | Annual fee payment |
Payment date: 20140618 Year of fee payment: 8 |
|
LAPS | Lapse due to unpaid annual fee |