KR100254446B1 - Data communication method of engine control device - Google Patents
Data communication method of engine control device Download PDFInfo
- Publication number
- KR100254446B1 KR100254446B1 KR1019970066998A KR19970066998A KR100254446B1 KR 100254446 B1 KR100254446 B1 KR 100254446B1 KR 1019970066998 A KR1019970066998 A KR 1019970066998A KR 19970066998 A KR19970066998 A KR 19970066998A KR 100254446 B1 KR100254446 B1 KR 100254446B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- data communication
- engine control
- byte
- received
- Prior art date
Links
- 238000004891 communication Methods 0.000 title claims abstract description 66
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000012790 confirmation Methods 0.000 claims description 2
- 238000007689 inspection Methods 0.000 description 14
- 238000004519 manufacturing process Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 238000004092 self-diagnosis Methods 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W50/02—Ensuring safety in case of control system failures, e.g. by diagnosing, circumventing or fixing failures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Automation & Control Theory (AREA)
- General Health & Medical Sciences (AREA)
- Marketing (AREA)
- Transportation (AREA)
- Health & Medical Sciences (AREA)
- Economics (AREA)
- Human Computer Interaction (AREA)
- Human Resources & Organizations (AREA)
- Mechanical Engineering (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
Description
본 발명은 엔진 제어장치의 데이터 통신 방법에 관한 것으로, 더욱 상세하게는 차량 양산 후 엔진의 상태를 모니터링 하기 위한 외부 점검 장치와의 데이터 통신을 하는 엔진 제어장치의 데이터 통신 방법에 관한 것이다.The present invention relates to a data communication method of an engine control apparatus, and more particularly, to a data communication method of an engine control apparatus for data communication with an external inspection apparatus for monitoring the state of an engine after mass production of a vehicle.
현재 제조되는 대부분의 차량에서 엔진 제어 즉, 연료분사 제어, 점화 제어, 공전속도 제어, 자기 진단 등의 각종 제어를 엔진 제어장치가 내부에 설정되어 있는 각종 데이터(제어 변수)에 따라 제어한다.In most vehicles currently manufactured, various controls such as engine control, that is, fuel injection control, ignition control, idle speed control, and self-diagnosis are controlled according to various data (control variables) set inside the engine controller.
이러한 엔진 제어를 하기 위하여 차량 개발시에 엔진 제어를 위한 제어 변수와 같은 각종 데이터가 설정된다.In order to perform such engine control, various data such as control variables for engine control are set at vehicle development.
그러나, 차량 양산 후 발생할 수 있는 엔진 제어의 문제점을 개선하기 위해서는 엔진을 제어하는 엔진 제어장치의 데이터를 컴퓨터 또는 HI-SCAN과 같은 점검 장치로 모니터링 하여 엔진의 상태를 파악하여야 한다.However, in order to improve the problem of engine control that may occur after mass production of the vehicle, it is necessary to monitor the data of the engine control device that controls the engine with a computer or a check device such as HI-SCAN to determine the state of the engine.
이와 같이 차량 양산 후 엔진 제어장치의 데이터를 모니터링 하기 위하여 종래에는 통신 케이블을 통해 GST(general scan tool) 통신 규약에 따라 점검 장치와 엔진 제어장치 사이의 데이터 통신을 하였다.As described above, in order to monitor data of the engine control apparatus after mass production of the vehicle, data communication between the inspection apparatus and the engine control apparatus was conventionally performed according to the GST (general scan tool) communication protocol through a communication cable.
GST 통신 규약에 의한 점검 장치와 엔진 제어장치의 데이터 통신시 점검 장치에서는 30개의 항목을 모니터링 하는 데, 점검 장치에서 한 개의 데이터 요구시 최소 8개의 바이트 전송(10msec 소요)을 하고, 엔진 제어장치 응답시 8 바이트 전송(10msec)을 한다.In the data communication between the inspection device and the engine control device according to the GST communication protocol, the inspection device monitors 30 items.At the request of one data from the inspection device, at least 8 bytes are transmitted (10msec), and the engine control device response 8 byte transmission (10msec)
전술한 바와 같은 종래의 방법에서는 차량 양산 후의 엔진 제어장치의 통신 방법과 컴퓨터의 통신 방법이 서로 다르므로 컴퓨터를 통해서는 엔진 제어장치의 데이터 모니터링을 하지 못하는 단점이 있었다.In the conventional method as described above, since the communication method of the engine control device and the computer communication method are different from each other after the mass production of the vehicle, there is a disadvantage in that data monitoring of the engine control device cannot be performed through the computer.
또한, 종래의 방법에서는 점검 장치로 엔진 제어장치 데이터를 모니터링 할 경우 한 개의 데이터를 모니터링 하는데 최소한 1초 정도의 시간이 소요되므로 문제점을 개선하는 데 효과가 없으며 단지 참고 자료로만 사용되는 단점이 있었다.In addition, in the conventional method, when monitoring the engine control device data with the inspection device, it takes at least one second to monitor a single data, so that there is no effect to improve the problem and only used as a reference.
본 발명은 이와 같은 문제점을 해결하기 위하여 안출한 것으로, 그 목적은 차량 양산 후 엔진 제어장치의 데이터를 컴퓨터를 통해 모니터링 할 수 있도록 하는 데 있다.The present invention has been made to solve the above problems, the object is to enable the computer to monitor the data of the engine control device after mass production of the vehicle.
또한, 본 발명의 목적은 컴퓨터 또는 점검장치를 통한 엔진 제어장치의 데이터 모니터링을 실시간으로 할 수 있도록 한다.It is also an object of the present invention to enable real-time monitoring of the data of the engine control device via a computer or inspection device.
도 1은 본 발명의 일 실시예에 따른 엔진 제어장치와의 데이터 통신 장치를 개략적으로 도시한 블록 구성도이고,1 is a block diagram schematically illustrating a data communication apparatus with an engine control apparatus according to an embodiment of the present invention;
도 2는 본 발명의 일 실시예에 따른 엔진 제어장치의 데이터 통신 방법을 도시한 것으로, 도 2a는 데이터 명령을 해석하는 과정을 도시한 동작 순서도이고, 도 2b는 실제 데이터를 통신하는 방법을 도시한 동작 순서도이다.FIG. 2 illustrates a data communication method of an engine control apparatus according to an embodiment of the present invention. FIG. 2A is a flowchart illustrating a process of interpreting a data command, and FIG. 2B illustrates a method of communicating actual data. One operation flow chart.
상기와 같은 목적을 달성하기 위하여 본 발명은, 통신 초기 일정 시간 간격을 가진 2 바이트 신호가 인가되면 데이터 통신 초기화를 하여 통신 인터럽트를 인에이블 시킴과 동시에 그에 따른 확인 신호를 송신한다. 이때, 초기 2 바이트 신호중 초기 1 바이트 신호가 수신된 후 후기 1 바이트 신호가 수신되지 않으면 통신 인터럽트를 디스에이블 시켜 데이터 통신 초기화를 하지 않는다.In order to achieve the above object, the present invention, when a two-byte signal having a communication initial predetermined time interval is applied, initializes the data communication to enable the communication interrupt and transmit a confirmation signal accordingly. At this time, if the later 1 byte signal is not received after the initial 1 byte signal among the initial 2 byte signals, the communication interrupt is disabled to not initialize the data communication.
데이터 통신 초기화 후 일정 시간 간격을 가진 상하위 2 바이트 신호가 인가되면 그에 따른 데이터를 송신한다. 이때, 상위 1 바이트 신호가 수신된 후 일정 시간이 경과하여 하위 1 바이트 신호가 수신되면 수신된 하위 1 바이트 신호를 상위 1 바이트 신호로 인식하여 그에 따른 데이터 통신을 한다.After the data communication is initialized, if the upper and lower two-byte signals with a predetermined time interval are applied, the corresponding data is transmitted. At this time, if a predetermined time passes after the upper 1 byte signal is received and the lower 1 byte signal is received, the received lower 1 byte signal is recognized as the upper 1 byte signal and data communication is performed accordingly.
그리고, 데이터 통신 초기화 후 일정 시간 이내에 상하위 2 바이트 신호가 수신되지 않으면 인에이블된 통신 인터럽트를 디스에이블 시켜 데이터 통신 초기화를 해제하고, 재통신시 데이터 통신 초기화부터 다시 시작한다.If the upper and lower two byte signals are not received within a predetermined time after the data communication is initialized, the enabled communication interrupt is disabled to cancel the data communication initialization and start again from the data communication initialization during recommunication.
이하, 첨부된 도면을 참조로 하여 본 발명에 따른 바람직한 일 실시예를 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings.
도 1에서 알 수 있는 바와 같이 본 발명의 일 실시예에 따른 엔진 제어장치의 데이터 통신 장치는 엔진 제어장치(10)와 점검 장치(20), 컴퓨터(30)로 이루어진다.As can be seen in Figure 1 the data communication device of the engine control apparatus according to an embodiment of the present invention is composed of the
엔진 제어장치(10)는 차량의 운행중 검출되는 각종 운행정보 신호를 분석하여 엔진을 제어하며, 통신 케이블이 접속되면 초기 데이터 통신 초기화한 후 인가되는 신호에 따른 소정의 데이터를 전송한다.The
점검 장치(20) 및 컴퓨터(30)는 엔진 제어장치(10)의 데이터를 모니터링 하기 위한 사용자의 통신 케이블 연결 등과 같은 조작에 따라 데이터 통신 초기화 신호를 전송하여 엔진 제어장치(10)와의 통신을 초기화한 후 데이터 통신을 하기 위한 소정의 신호를 전송한다.The
상기와 같이 구성된 데이터 통신 장치에 따라 본 발명의 일 실시예에 따른 엔진 제어장치의 데이터 통신 방법을 도 2a와 도 2b를 참조하여 상세히 설명하면 다음과 같다.The data communication method of the engine control apparatus according to an embodiment of the present invention according to the data communication device configured as described above will be described in detail with reference to FIGS. 2A and 2B.
사용자 또는 차량 정비사가 차량 엔진 제어의 문제점을 해결하기 위한 엔진 제어장치(10)의 제어 변수인 데이터를 모니터링 하기 위하여 HI-SCAN과 같은 점검 장치(20) 또는 컴퓨터(30)를 엔진 제어장치(10)에 통신 케이블을 통하여 접속하면 점검 장치(20) 또는 컴퓨터(30)는 데이터 통신 초기화를 위하여 10msec 간격으로 2 바이트 데이터 신호를 엔진 제어장치(10)에 송신한다.In order to monitor data, which is a control variable of the
이때, 엔진 제어장치(10)는 수신되는 데이터 신호의 초기 1 바이트 신호에 따라(S3) 제 1데이터 플래그를 1로 세팅한 후(S4) 후기 1바이트 신호가 수신되는 지를 확인한다(S5). 그리고, 후기 1바이트 신호가 있으면(S5) 2 바이트 신호의 각 바이트 사이의 전송 시간을 카운트하는 인터 바이트 타이머와 각각의 2바이트 신호 사이의 전송 시간을 카운트하는 메시지 타이머를 0으로 초기화한 후 시간 카운트를 하고, 초기화 완료 플래그를 1로 세팅하여 데이터 통신 초기화를 완료한다(S6). 이와 동시에 엔진 제어장치(10)는 1로 세팅된 제 1 데이터 플래그를 0으로 세팅하고, 점검 장치(20) 또는 컴퓨터(30)로 체크 섬 신호를 전송하여 데이터 통신 초기화 완료를 알리고, 통신 인터럽트를 인에이블 시켜 데이터 통신이 가능하게 한다(S6).At this time, the
이와는 달리 2 바이트 신호중 초기 1바이트 신호가 수신되어 제 1 데이터 플래그를 1로 세팅한 다음 후기 1바이트 신호가 수신되지 않으면(S5) 엔진 제어장치(10)는 1로 세팅된 제 1 데이터 플래그를 0으로 세팅하여 초기화하고, 초기화 완료 플래그를 0으로 세팅한 다음 통신 인터럽트를 디스에이블 시켜 데이터 통신 초기화가 이루어지지 않도록 한다(S7).On the contrary, if the initial 1 byte signal of the 2 byte signal is received and the first data flag is set to 1 and the late 1 byte signal is not received (S5), the
상기(S5)에서 2 바이트 신호가 수신되어 초기화를 완료한 다음 엔진 제어장치(10)가 통신 인터럽트를 인에이블 시키고 체크 섬 신호를 전송하면 점검 장치(20) 또는 컴퓨터(30)는 수신되는 체크 섬 데이터에 따라 데이터 통신 초기화가 이루어진 것으로 판단하여 데이터 통신을 하기 위한 어드레스 신호를 전송한다. 어드레스 송신시에는 상위 바이트부터 송신하고 그후 하위 바이트를 송신한다. 또한, 상하위 바이트 사이의 시간 간격은 20msec 이내로 한다.When the 2-byte signal is received at step S5 and the initialization is completed, when the
그러면 엔진 제어장치(10)는 초기화 완료 플래그가 1로 세팅된 상태 즉, 데이터 통신 초기화 종료 후(S10) 수신되는 어드레스 신호중 상위 바이트 신호에 따라 제 1 데이터 플래그를 1로 세팅하고 버퍼에 송신하기 위한 데이터를 로딩하여 저장한다(S12). 그리고, 상위 바이트와 하위 바이트 사이의 시간을 카운트하는 인터 바이트 타이머를 0으로 세팅한 후 시간을 카운트하고, 어드레스 신호 사이의 시간을 카운트하는 메시지 타이머를 0으로 세팅한 후 시간을 카운트한다(S13).Then, the
이후, 제 1 데이터 플래그가 1로 세팅된 상태에서(S11) 하위 바이트 신호가 수신되면 이때의 인터 바이트 타이머에 의해 카운트된 시간이 설정된 기준시간 이내인지를 판단한다(S14).Thereafter, when the lower byte signal is received in the state where the first data flag is set to 1 (S11), it is determined whether the time counted by the inter-byte timer at this time is within the set reference time (S14).
상기(S14)에서 하위 바이트 신호의 수신에 따른 인터 바이트 타이머의 시간 카운트 값이 설정된 기준 시간 이내이면 엔진 제어장치(10)는 인터 바이트 타이머와 메시지 타이머를 0으로 세팅하여 초기화하고, 1로 세팅된 제 1 데이터 플래그를 0으로 세팅한 후 수신된 어드레스 신호에 따라 버퍼에 로딩한 데이터를 전송한다(S15). 그러면, 점검 장치(20) 또는 컴퓨터(30)는 수신되는 데이터를 사용자 또는 정비사가 알 수 있도록 표시하여 준다.When the time count value of the inter-byte timer according to the reception of the lower byte signal is within the set reference time (S14), the
상기(S14)에서 하위 바이트 신호가 수신될 때의 인터 바이트 타이머 시간 카운트 값이 설정된 기준 시간보다 클 경우 엔진 제어장치(10)는 수신된 하위 바이트 신호를 상위 바이트 신호로 인식하여 상기(S12)(S13)와 같은 동작을 반복한다.If the inter-byte timer time count value when the lower byte signal is received in step S14 is greater than the set reference time, the
또한, 엔진 제어장치(10)는 데이터 통신 초기화 후(S1) 메시지 타이머의 시간 카운트 값이 설정된 기준 시간보다 클 경우에는(S8) 인터 바이트 타이머와 메시지 타이머를 0으로 세팅하여 초기화하고, 초기화 완료 플래그와 제 1 데이터 플래그를 0으로 세팅한 후 통신 인터럽트를 디스에이블 시킨다(S9).When the time count value of the message timer is greater than the set reference time (S8), the
즉, 점검 장치(20) 또는 컴퓨터(30)에서 일정 시간 이상 데이터 신호가 입력되지 않을 경우 재통신은 초기 통신부터 다시 시작한다.That is, when no data signal is input for a predetermined time from the
이와 같이 본 발명은 엔진 제어장치의 통신 방법을 변경하여 HI-SCAN과 같은 점검 장치뿐만 아니라 컴퓨터와도 데이터 통신을 할 수 있으므로 사용자가 고가의 장비 없이 쉽게 엔진 제어장치의 데이터를 모니터링 할 수 있으며, 그 데이터 통신 속도도 종래에 비해 증가되어 실시간으로 엔진 제어장치의 데이터를 모니터링 할 수 있기 때문에 문제점을 쉽게 개선할 수 있다.As described above, the present invention can change the communication method of the engine controller so that data can be communicated not only with the inspection apparatus such as HI-SCAN but also with the computer, so that the user can easily monitor the data of the engine controller without expensive equipment. The data communication speed is also increased compared to the prior art, so that the data of the engine control device can be monitored in real time, so that the problem can be easily solved.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970066998A KR100254446B1 (en) | 1997-12-09 | 1997-12-09 | Data communication method of engine control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970066998A KR100254446B1 (en) | 1997-12-09 | 1997-12-09 | Data communication method of engine control device |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19990048334A KR19990048334A (en) | 1999-07-05 |
KR100254446B1 true KR100254446B1 (en) | 2000-05-01 |
Family
ID=19526792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970066998A KR100254446B1 (en) | 1997-12-09 | 1997-12-09 | Data communication method of engine control device |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100254446B1 (en) |
-
1997
- 1997-12-09 KR KR1019970066998A patent/KR100254446B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR19990048334A (en) | 1999-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5280621A (en) | Personal computer having dedicated processors for peripheral devices interconnected to the CPU by way of a system control processor | |
US5745048A (en) | Communication system | |
US5077670A (en) | System and method applicable to vehicles for communicating between data processing stations | |
US4609908A (en) | Repeat control apparatus for a polling type serial interface keyboard apparatus | |
US5790572A (en) | Communication system with framing error detection | |
KR100254446B1 (en) | Data communication method of engine control device | |
JPH03124141A (en) | On-vehicle communication equipment | |
KR100548413B1 (en) | Data port connection status indicating method for mobile communication terminal | |
KR100202427B1 (en) | Method for setting factory control mode using by remote control pin in microprocessor | |
KR100373826B1 (en) | Frame detection method in MDS communication | |
KR100267293B1 (en) | Communication protocol between engine control unit and external computer | |
JP2591173B2 (en) | Vehicle communication device | |
JP3031050B2 (en) | Fault diagnosis device | |
KR20020031646A (en) | Ecu data monitoring/matching method | |
KR920003835B1 (en) | Apparatus and method for controlling multi-channel of asynchronous communication interface | |
JPH116648A (en) | Control method of air conditioner | |
KR100245708B1 (en) | Immobilizer system | |
KR100262609B1 (en) | A learning data monitoring device and method for vehicles | |
KR0160691B1 (en) | Detecting method of communication error data in robot control system | |
JP2709720B2 (en) | Line connection method between the numerical controller and its peripheral devices | |
JPH08181707A (en) | Overload test method for bus and its test system | |
JPH07306709A (en) | Monitor and control data transfer device for vehicle | |
KR100250533B1 (en) | Data monitoring apparatus and method of engine control device | |
JP3261830B2 (en) | Self-diagnosis method of interface of customer display having RS232 interface | |
KR100227904B1 (en) | Apparatus and method of data determination for ecu of a vehicle |
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: 20060131 Year of fee payment: 7 |
|
LAPS | Lapse due to unpaid annual fee |