KR100193511B1 - Communication protocol between engine control unit and external computer - Google Patents

Communication protocol between engine control unit and external computer Download PDF

Info

Publication number
KR100193511B1
KR100193511B1 KR1019970010788A KR19970010788A KR100193511B1 KR 100193511 B1 KR100193511 B1 KR 100193511B1 KR 1019970010788 A KR1019970010788 A KR 1019970010788A KR 19970010788 A KR19970010788 A KR 19970010788A KR 100193511 B1 KR100193511 B1 KR 100193511B1
Authority
KR
South Korea
Prior art keywords
data
receiving
transmitting
control device
engine control
Prior art date
Application number
KR1019970010788A
Other languages
Korean (ko)
Other versions
KR19980074804A (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 KR1019970010788A priority Critical patent/KR100193511B1/en
Publication of KR19980074804A publication Critical patent/KR19980074804A/en
Application granted granted Critical
Publication of KR100193511B1 publication Critical patent/KR100193511B1/en

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

본 발명은 자동차의 ECU개발 단계에서 개발 ECU와 PC간의 통신 프로토콜을 표준화하여 향후 개발되는 ECU에 적용할 수 있도록 하므로써 ECU개발 기간을 단축시키고 데이터 전송을 보다 원활하게 하기 위하여 엔진 제어 장치와 외부에 연결되어 있는 외부 통신 제어 장치와의 통신 프로토콜에 있어서, 엔진 제어 장치의 특정 어드레스 데이터 수신을 위한 저장 모드와; 엔진 제어 장치의 지정된 어드레스에 데이터 매칭 즉 데이터 에뮬레이션을 위한 디스플레이 모드 및 에뮬레이션 모드와; 엔진 제어 장치의 선택된 어드레스 데이터 수신을 수행하는 수신 모드와; 엔진 제어 장치의 지정된 시작 어드레스부터 지정된 개수 만큼 데이터 에뮬레이션을 수행하는 송신 모드와; 엔진 제어 장치의 ROM 에뮬레이션 및 데이터 매칭을 수행하는 데이터 매칭 모드와; 데이터 통신 종료를 수행하는 종료 모드로 구분하여 통신이 이루어지는 자동차의 통신 프로토콜에 관한 것이다.The present invention connects to the engine control device and the outside in order to shorten the ECU development period and facilitate data transmission by standardizing the communication protocol between the development ECU and the PC in the ECU development stage of the vehicle and applying it to future ECUs. A communication protocol with an external communication control device, comprising: a storage mode for receiving specific address data of an engine control device; A display mode and emulation mode for data matching, ie data emulation, to a designated address of the engine control apparatus; A reception mode for performing the selected address data reception of the engine control device; A transmission mode for performing data emulation as many as a specified number starting from a specified start address of the engine control device; A data matching mode for performing ROM emulation and data matching of the engine control apparatus; The present invention relates to a communication protocol of a vehicle in which communication is performed by dividing into an end mode for terminating data communication.

Description

엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜Communication protocol between engine control unit and external computer

본 발명은 컴퓨터간의 통신 프로토콜(protocol)에 관한 것으로서, 자동차 엔진 제어 장치의 개발 또는 시험을 수행할 경우 외부 통신 제어 장치와 엔진 제어 장치간의 통신 프로토콜을 정의하고 향후 본 프로토콜을 기준으로 프로토콜을 표준화하여 엔진 제어 장치와 외부 통신 제어 장치간의 원활한 통신이 이루어지도록 하기 위한 통신 프로토콜에 관한 것이다.The present invention relates to a communication protocol between computers, and when developing or testing a vehicle engine control device, defines a communication protocol between an external communication control device and an engine control device, and standardizes the protocol based on the present protocol in the future. The present invention relates to a communication protocol for smooth communication between an engine control device and an external communication control device.

일반적으로 각 주행 상태에 따른 정확한 엔진의 동작을 제어하기 위해 많은 시험을 통해 엔진 제어 장치의 동작이나 내장되는 데이터(data)를 각각 설정하여 적절한 엔진의 제어 동작이 이루어질 수 있도록 한다.In general, in order to control the operation of the engine correctly according to each driving state, a number of tests are performed to set the operation of the engine control apparatus or embedded data, respectively, so that the appropriate control operation of the engine can be achieved.

따라서 새로운 자동차를 개발할 경우나 또는 보다 정확한 엔진의 동작을 제어할 수 있도록 하기 위해서, 엔진의 동작을 제어하는 엔진 제어 장치의 동작 상태를 외부 시험자들이 확인할 필요가 있다.Therefore, when developing a new vehicle or in order to be able to control the operation of the engine more accurately, it is necessary for external testers to confirm the operation state of the engine control device that controls the operation of the engine.

그러므로 각 제어동작을 통해 발생하는 데이터를 인식하고 제어 데이터의 상태를 새로운 제어 데이터 등으로 변경하여 여러 조건하에서 다양한 시험 동작이 이루어질 수 있도록 한다.Therefore, it recognizes the data generated through each control operation and changes the state of the control data to new control data to enable various test operations under various conditions.

상기와 같은 필요 동작에 따라 엔진 제어 장치에 내장되어 있는 메모리(memory)의 데이터를 모니터링(monitoring)하여 데이터의 상태를 확인하고 새로운 데이터로의 변경 동작을 실행할 경우엔, 제어 장치인 엔진 제어 장치와 외부에 장착되는 컴퓨터간의 통신 동작이 필요하다.According to the necessary operation as described above, when monitoring the data in the memory (memory) built in the engine control device to check the status of the data and to perform a change operation to the new data, the engine control device as a control device and Communication operation between external computers is required.

그리고 상기와 같은 해당 컴퓨터간의 통신을 위해서는 각 통신 규약이 필요하다.And each communication protocol is required for the communication between the computers as described above.

그러나 상기와 같이 엔진 제어 장치와 외부 컴퓨터간의 데이터 모니터링을 위한 별도의 통신 장치가 개발되지 않은 상태에서는 이미 개발되어 있는 통신 프로토콜을 통해 데이터 통신을 실현해야 하므로 원하는 상태로의 원활한 데이터 통신을 실현할 수 없고, 타사에서 이미 개발해 놓은 프로토콜을 사용하므로 경제적인 부담을 초래하는 문제가 발생한다.However, in the state where a separate communication device for data monitoring between the engine control device and the external computer is not developed as described above, data communication must be realized through a communication protocol that has already been developed, so that smooth data communication in a desired state cannot be realized. However, using the protocols developed by other companies, there is a problem that causes economic burden.

본 발명은 상기와 같은 문제점을 해결하기 위하여 안출된 것으로서, 엔진 제어 장치와 외부 통신 제어 장치간에 통신 동작을 실행할 경우 필요한 프로토콜을 자체 개발하므로 원활한 데이터 통신을 수행할 수 있도록 하는 통신 프로토콜을 제공하는데 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and provides a communication protocol that enables a smooth data communication since a necessary protocol is developed when a communication operation is performed between an engine control device and an external communication control device. There is a purpose.

상기한 목적을 달성하기 위한 수단으로서 본 발명은The present invention as a means for achieving the above object

엔진 제어 장치와 외부에 연결되어 있는 외부 통신 제어 장치와의 통신 프로토콜에 있어서,In the communication protocol between the engine control device and an external communication control device connected to the outside,

엔진 제어 장치의 특정 어드레스 데이터 수신을 위한 저장 모드와;A storage mode for receiving specific address data of the engine control device;

엔진 제어 장치의 지정된 어드레스에 데이터 매칭 즉 데이터 에뮬레이션을 위한 디스플레이 모드 및 에뮬레이션 모드와;A display mode and emulation mode for data matching, ie data emulation, to a designated address of the engine control apparatus;

엔진 제어 장치의 선택된 어드레스 데이터 수신을 수행하는 수신 모드와;A reception mode for performing the selected address data reception of the engine control device;

엔진 제어 장치의 지정된 시작 어드레스부터 지정된 개수 만큼 데이터 에뮬레이션을 수행하는 송신 모드와;A transmission mode for performing data emulation as many as a specified number starting from a specified start address of the engine control device;

엔진 제어 장치의 ROM 에뮬레이션 및 데이터 매칭을 수행하는 데이터 매칭 모드와;A data matching mode for performing ROM emulation and data matching of the engine control apparatus;

데이터 통신 종료를 수행하는 종료 모드로 구분하여 통신하는 것을 특징으로 한다.Characterize and communicate in the termination mode for performing the data communication termination.

도 1은 본 발명의 실시예에 따른 외부 통신 제어 장치와 엔진 제어 장치간의 통신 선로에 관한 블록도이고,1 is a block diagram of a communication line between an external communication control device and an engine control device according to an embodiment of the present invention;

도 2는 본 발명의 실시예에 따른 통신 장치에 프로그램 되어 있는 알고리즘 중 저장 모드의 초기화 단계에 관한 순서도이고,2 is a flowchart illustrating an initialization step of a storage mode among algorithms programmed in a communication device according to an embodiment of the present invention.

도 3은 저장 모드의 데이터 전송 단계에 관한 순서도이고,3 is a flowchart of a data transmission step of a storage mode;

도 4는 디스플레이 및 에뮬레이션 모드에 관한 순서도이고,4 is a flow chart related to a display and emulation mode,

도 5는 수신 모드에 관한 순서도이고,5 is a flowchart related to a reception mode,

도 6은 송신 모드에 관한 순서도이고,6 is a flowchart related to a transmission mode,

도 7은 데이터 매칭 모드에 관한 순서도이고,7 is a flowchart related to a data matching mode,

도 8은 종료 모드에 관한 순서도이다.8 is a flowchart related to an end mode.

이하, 첨부된 도면을 참조로 하여 본 발명의 가장 바람직한 실시예를 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail the most preferred embodiment of the present invention.

본 발명의 구성을 도 1을 참고로 하여 설명하면 다음과 같다.Referring to the configuration of the present invention with reference to Figure 1 as follows.

데이터 통신을 실행하기 위한 제어 동작을 실행하고 각 해당 데이터의 송/수신 동작을 실행할 수 있도록 하는 외부 통신 제어 장치(10)와, 엔진의 제어 동작에 따른 각 해당 데이터가 롬(ROM)이나 램(RAM)에 저장되어 있고 통신 동작을 위한 각 해당동작을 실행하는 엔진 제어 장치(20)를 포함하여 이루어져 있다.An external communication control device 10 for executing a control operation for executing data communication and executing a transmission / reception operation of each corresponding data, and each corresponding data according to the control operation of the engine are stored in a ROM or RAM ( And an engine control device 20 stored in a RAM) and executing each corresponding operation for a communication operation.

상기와 같이 이루어지는 본 발명의 통신 과정은 저장 모드(mode), 디스플레이(display) 및 에뮬레이션(emulation) 모드, 수신 모드, 송신 모드, 데이터 매칭(data matching) 모드, 종료 모드로 미리 구분되어 각 식별 문자를 통하여 해당 모드로 인식할 수 있도록 구성되어 있다.The communication process of the present invention made as described above is classified into a storage mode, a display and emulation mode, a reception mode, a transmission mode, a data matching mode, and an end mode. It is configured to recognize the mode through.

상기의 저장 모드는 초기화 단계와 데이터 송수신 단계로 나뉘어 지는데, 저장 모드의 커맨드 송수신 식별문자는 임의적으로 A, T로 정의하였다.The storage mode is divided into an initialization step and a data transmission / reception step. Command transmission / reception characters of the storage mode are arbitrarily defined as A and T.

도 2를 참고로 하여 초기화 단계를 상세히 설명하면 다음과 같다.The initialization step will be described in detail with reference to FIG. 2 as follows.

먼저 외부 통신 제어 장치(10)에서 통신 시작을 위하여 커맨드(command)를 엔진 제어 장치(20)로 송신한다(S10).First, the external communication control device 10 transmits a command to the engine control device 20 to start communication (S10).

이때 커맨드는 미리 정의한 A문자이며 엔진 제어 장치(20)는 연결되어 있는 통신 선로를 통해 수신되는 커맨드 즉 A문자를 수신한 후(S20), 커맨드의 수신 완료 상태를 상기 외부 통신 제어 장치(10)로 알려주기 위한 응답신호 T를 송신한다(S21).At this time, the command is a predefined letter A and the engine control device 20 receives a command received through the connected communication line, that is, the letter A (S20), the external communication control device 10 receives the command completion state of the command The response signal T for informing is transmitted (S21).

그러므로 외부 통신 제어 장치(10)는 수신되는 응답신호 T를 수신한 후(S11), 전송할 데이터의 개수(N)를 엔진 제어 장치(20)로 송신한다(S12).Therefore, the external communication control device 10 receives the received response signal T (S11), and then transmits the number N of data to be transmitted to the engine control device 20 (S12).

따라서 엔진 제어 장치(20)는 데이터 개수를 수신하고(S22), 데이터의 개수 만큼의 어드레스(address)를 송신하기 위하여 롬이나 램의 해당 어드레스를 로우(low) 상태와 하이(high) 상태로 구분하여 엔진 제어 장치(20)로 송신한다(S13,S14).Therefore, the engine control apparatus 20 receives the number of data (S22), and divides the corresponding address of the ROM or RAM into a low state and a high state in order to transmit as many addresses as the number of data. To the engine control device 20 (S13, S14).

그러므로 엔진 제어 장치(20)는 송신되는 데이터 개수에 대한 어드레스 신호를 로우 상태와 하이 상태로 구분하여 수신한다(S23,S24).Therefore, the engine control apparatus 20 receives the address signals for the number of data to be transmitted divided into a low state and a high state (S23, S24).

그리고 외부 통신 제어 장치(10)와 엔진 제어 장치(20)는 각각 어드레스 전송 회수 카운트(count) 신호가 데이터 개수 만큼 이루어졌는지를 비교판단하여(S15,S25), 데이터 개수 만큼의 어드레스 신호가 전송된 것으로 판단되면 엔진 제어 장치(20)는 실행되었던 모든 통신 동작에 대한 체크데이터(checksum)를 외부 통신 제어 장치(10)로 송신한다(S26).The external communication control device 10 and the engine control device 20 compare and determine whether the number of times of address transmission count signal is made by the number of data (S15, S25), respectively, and transmit the number of address signals by the number of data. If it is determined that the engine control device 20 transmits the check data (checksum) for all the communication operations that have been performed to the external communication control device 10 (S26).

따라서 외부 통신 제어 장치(10)는 송신되는 체크데이터를 수신한 후(S16), 수신되는 체크데이터 응답 신호가 정상인지를 비교판단한다(S17).Therefore, after receiving the check data transmitted (S16), the external communication control device 10 determines whether or not the received check data response signal is normal (S17).

응답 신호가 정상으로 판정되면 데이터 전송 모드로 리턴(return)되며, 데이터 전송 모드는 도 3을 참고로 하여 설명하면 다음과 같다.If the response signal is determined to be normal, it is returned to the data transmission mode, and the data transmission mode will be described below with reference to FIG. 3.

먼저 외부 통신 제어 장치(10)는 초기화 단계와 마찬가지로 통신 시작을 위한 커맨드를 엔진 제어 장치(20)로 송신한다(S30).First, the external communication control device 10 transmits a command for starting communication to the engine control device 20 as in the initialization step (S30).

이때 커맨드는 미리 정의한 B문자이며 엔진 제어 장치(20)는 연결되어 있는 통신 선로를 통해 수신되는 커맨드 즉 B문자를 수신한 후(S40), 커맨드의 수신 완료 상태를 상기 외부 통신 제어 장치(10)로 알려주기 위한 응답신호 U를 송신한다(S41).At this time, the command is a predefined letter B and the engine control device 20 receives the command received through the connected communication line, that is, the letter B (S40), the external communication control device 10 receives the command completion status The response signal U for notifying is transmitted (S41).

그리고 외부 통신 제어 장치(10)로 응답신호 U가 수신되면(S31), 엔진 제어 장치(20)는 데이터를 송신하고(S42), 외부 통신 제어 장치(10)는 데이터를 수신한다(S32).When the response signal U is received by the external communication control device 10 (S31), the engine control device 20 transmits data (S42), and the external communication control device 10 receives data (S32).

이때 데이터의 송수신은 카운트가 N이 될 때까지 이루어진다(S33,S43).At this time, transmission and reception of data is performed until the count reaches N (S33, S43).

다음으로 디스플레이 및 에뮬레이터 모드를 도 4를 참고로 하여 설명한다.Next, the display and emulator modes will be described with reference to FIG. 4.

먼저 외부 통신 제어 장치(10)에서 통신 시작을 위하여 커맨드를 엔진 제어 장치(20)로 송신한다(S50).First, the external communication control device 10 transmits a command to the engine control device 20 to start communication (S50).

이때 커맨드는 미리 정의한 C문자이며 엔진 제어 장치(20)는 연결되어 있는 통신 선로를 통해 수신되는 커맨드 즉 C문자를 수신한 후(S60), 커맨드의 수신 완료 상태를 상기 외부 통신 제어 장치(10)로 알려주기 위한 응답신호 V를 송신한다(S61).At this time, the command is a predefined letter C and the engine control device 20 receives the command received through the connected communication line, that is, the letter C (S60), the external communication control device 10 receives the command completion state of the command The response signal V for informing is transmitted (S61).

그러므로 외부 통신 제어 장치(10)는 수신되는 응답신호 V를 수신한 후(S51), 전송할 데이터의 개수(N)를 엔진 제어 장치(20)로 송신한다(S52).Therefore, the external communication control device 10 receives the received response signal V (S51), and then transmits the number N of data to be transmitted to the engine control device 20 (S52).

따라서 엔진 제어 장치(20)는 데이터 개수를 수신하고(S62), 데이터의 개수 만큼의 어드레스를 송신하기 위하여 롬이나 램의 해당 어드레스를 로우 상태와 하이 상태로 구분하여 엔진 제어 장치(20)로 송신한다(S53,S54).Therefore, the engine control apparatus 20 receives the number of data (S62), and transmits the address of the ROM or RAM divided into a low state and a high state to the engine control apparatus 20 in order to transmit as many addresses as the number of data. (S53, S54).

그러므로 엔진 제어 장치(20)는 송신되는 데이터 개수에 대한 어드레스 신호를 로우 상태와 하이 상태로 구분하여 수신한다(S63,S64).Therefore, the engine control apparatus 20 receives the address signals for the number of data to be transmitted divided into a low state and a high state (S63, S64).

그리고 수신된 어드레스에 해당하는 데이터를 외부 통신 제어 장치(10)로 송신한 뒤(S65), 체크 데이터를 송신한다(S66).Then, data corresponding to the received address is transmitted to the external communication control device 10 (S65), and then check data is transmitted (S66).

따라서 외부 통신 제어 장치(10)는 엔진 제어 장치(20)에서 송신되는 데이타를 수신하고(S55), 데이터 송수신이 정상적으로 이루어졌는지를 비교판단하기 위하여 체크데이타를 수신한다(S56).Therefore, the external communication control device 10 receives the data transmitted from the engine control device 20 (S55), and receives the check data in order to compare whether or not the data transmission and reception is normally performed (S56).

수신된 체크데이터를 비교하여 응답신호가 정상인지를 비교판단하여(S57), 정상이 아닌 것으로 판단된 경우 처음으로 리턴 되어 본 모드를 다시 시작하고 정상인 것으로 판단되면 종료된다.Comparing the check data received to determine whether the response signal is normal (S57), if it is determined that it is not normal is returned for the first time and restarts this mode and ends when it is determined to be normal.

다음으로 수신 모드를 도 5를 참고로 하여 설명한다.Next, the reception mode will be described with reference to FIG. 5.

먼저 외부 통신 제어 장치(10)에서 통신 시작을 위하여 커맨드를 엔진 제어 장치(20)로 송신한다(S70).First, the external communication control device 10 transmits a command to the engine control device 20 to start communication (S70).

이때 커맨드는 미리 정의한 D문자이며 엔진 제어 장치(20)는 연결되어 있는 통신 선로를 통해 수신되는 커맨드 즉 D문자를 수신한 후(S80), 커맨드의 수신 완료 상태를 상기 외부 통신 제어 장치(10)로 알려주기 위한 응답신호 W를 송신한다(S81).At this time, the command is a predefined letter D and the engine control device 20 receives the command received through the connected communication line, that is, the letter D (S80), the external communication control device 10 receives the command completion state of the command The response signal W for notifying is transmitted (S81).

그러므로 외부 통신 제어 장치(10)는 수신되는 응답신호 W를 수신한 후(S71), 전송할 데이터의 개수(N)를 엔진 제어 장치(20)로 송신한다(S72).Therefore, the external communication control device 10 receives the received response signal W (S71), and then transmits the number N of data to be transmitted to the engine control device 20 (S72).

따라서 엔진 제어 장치(20)는 데이터 개수를 수신하고(S82), 데이터 개수 만큼의 어드레스를 송신하기 위하여 롬이나 램에 저장되어 있는 시작 어드레스 신호를 로우 상태와 하이 상태로 구분하여 엔진 제어 장치(20)로 송신한다(S73,S74).Therefore, the engine control apparatus 20 receives the number of data (S82), and divides the start address signal stored in the ROM or RAM into a low state and a high state in order to transmit as many addresses as the number of data. (S73, S74).

그러므로 엔진 제어 장치(20)는 송신되는 데이터 개수에 대한 어드레스 신호를 로우 상태와 하이 상태로 구분하여 수신한다(S83,S84).Therefore, the engine control apparatus 20 receives the address signals for the number of data to be transmitted divided into a low state and a high state (S83, S84).

그리고 수신된 어드레스에 해당하는 데이터를 카운트가 N이 될 때까지(S86) 외부 통신 제어 장치(10)로 송신한 뒤(S85), 체크데이터를 송신한다(S87).The data corresponding to the received address is transmitted to the external communication control device 10 until the count reaches N (S86) (S85), and then the check data is transmitted (S87).

따라서 외부 통신 제어 장치(10)는 엔진 제어 장치(20)에서 송신되는 데이타를 카운트가 N이 될 때까지(S76) 수신한 후(S75), 엔진 제어 장치(20)로 부터 체크데이타를 수신받아(S77) 실행된 데이터 전송 회수가 정상인지를 비교판단한다(S78).Therefore, the external communication control device 10 receives the data transmitted from the engine control device 20 until the count reaches N (S76) (S75), and then receives the check data from the engine control device 20. (S77) A comparison judgment is made as to whether the number of executed data transfers is normal (S78).

S78에서 정상이 아닌 것으로 판단되면 처음으로 리턴 되어 본 모드를 다시 시작하고 정상인 것으로 판단되면 종료된다.If it is determined in S78 that it is not normal, it is returned to the beginning and restarts this mode.

다음으로 송신 모드를 도 6을 참고로 하여 설명한다.Next, the transmission mode will be described with reference to FIG.

먼저 외부 통신 제어 장치(10)에서 통신 시작을 위하여 커맨드를 엔진 제어 장치(20)로 송신한다(S90).First, the external communication control device 10 transmits a command to the engine control device 20 to start communication (S90).

이때 커맨드는 미리 정의한 E문자이며 엔진 제어 장치(20)는 연결되어 있는 통신 선로를 통해 수신되는 커맨드 즉 E문자를 수신한 후(S100), 커맨드의 수신 완료 상태를 상기 외부 통신 제어 장치(10)로 알려주기 위한 응답신호 X를 송신한다(S101).In this case, the command is a predefined letter E and the engine control device 20 receives the command received through the connected communication line, that is, the letter E (S100), the external communication control device 10 receives the command completion state of the command. The response signal X for informing is transmitted (S101).

그러므로 외부 통신 제어 장치(10)는 수신되는 응답신호 T를 수신한 후(S91), 전송할 데이터의 개수(N)를 엔진 제어 장치(20)로 송신한다(S92).Therefore, the external communication control device 10 receives the received response signal T (S91), and then transmits the number N of data to be transmitted to the engine control device 20 (S92).

따라서 엔진 제어 장치(20)는 데이터 개수를 수신하고(S102), 데이터의 개수 만큼의 어드레스를 송신하기 위하여 롬이나 램에 저장되어 있는 시작 어드레스 신호를 로우 상태와 하이 상태로 구분하여 엔진 제어 장치(20)로 송신한다(S93,S94).Therefore, the engine control apparatus 20 receives the number of data (S102), and divides the start address signal stored in the ROM or RAM into a low state and a high state in order to transmit as many addresses as the number of data. 20) (S93, S94).

그러므로 엔진 제어 장치(20)는 송신되는 데이터 개수에 대한 어드레스 신호를 로우 상태와 하이 상태로 구분하여 수신한다(S103,S104).Therefore, the engine control apparatus 20 receives the address signals for the number of data to be transmitted divided into a low state and a high state (S103, S104).

그리고 외부 통신 제어 장치(10)에서 카운트가 N이 될 때까지(S96) 데이터를 송신하면(S95), 엔진 제어 장치(20)는 카운트가 N이 될 때까지(S106) 수신된 어드레스에 해당하는 데이터를 수신받는다(S105).If the external communication control device 10 transmits data until the count reaches N (S96) (S95), the engine control device 20 corresponds to the received address until the count reaches N (S106). Receive the data (S105).

따라서 데이터 전송이 완료되면 외부 통신 제어 장치(10)는 통신이 정상적으로 이루어졌는가를 비교판단하기 위하여 엔진 제어 장치(20)로 체크데이타를 송신한다(S97).Therefore, when the data transmission is completed, the external communication control device 10 transmits the check data to the engine control device 20 in order to compare and determine whether the communication has been normally performed (S97).

상기 엔진 제어 장치(20)는 체크 데이터를 수신받으면(S107), 외부 통신 제어 장치(10)로 응답 신호를 송신한다(S108).When the engine control device 20 receives the check data (S107), it transmits a response signal to the external communication control device 10 (S108).

외부 통신 제어 장치(10)는 수신되는 응답 신호가 정상상태임을 의미하는 0인지를 비교판단한다(S99).The external communication control apparatus 10 compares and determines whether the received response signal is 0, which means that it is in a normal state (S99).

S99에서 정상이 아닌 것으로 판단되면 처음으로 리턴 되어 본 모드를 다시 시작하고 정상인 것으로 판단되면 종료된다.If it is determined in S99 that it is not normal, it is returned for the first time, and this mode is restarted.

다음으로 데이터 매칭 모드를 도 7을 참고로 하여 설명한다.Next, the data matching mode will be described with reference to FIG. 7.

먼저 외부 통신 제어 장치(10)에서 통신 시작을 위하여 커맨드를 엔진 제어 장치(20)로 송신한다(S110).First, the external communication control device 10 transmits a command to the engine control device 20 to start communication (S110).

이때 커맨드는 미리 정의한 F문자이며 엔진 제어 장치(20)는 연결되어 있는 통신 선로를 통해 수신되는 커맨드 즉 F문자를 수신한 후(S130), 커맨드의 수신 완료 상태를 상기 외부 통신 제어 장치(10)로 알려주기 위한 응답신호 Y를 송신한다(S131).At this time, the command is a predefined letter F and the engine control device 20 receives the command received through the connected communication line, that is, the letter F (S130), the external communication control device 10 to receive the command completion status The response signal Y for informing is transmitted (S131).

그러므로 외부 통신 제어 장치(10)는 수신되는 응답신호 Y를 수신한 후(S111), 전송할 데이터의 개수(N)를 엔진 제어 장치(20)로 송신한다(S112).Therefore, the external communication control device 10 receives the received response signal Y (S111), and then transmits the number N of data to be transmitted to the engine control device 20 (S112).

따라서 엔진 제어 장치(20)는 데이터 개수를 수신하고(S132), 데이터의 개수 만큼의 어드레스를 송신하기 위하여 롬이나 램에 저장되어 있는 어드레스 신호를 로우 상태와 하이로 구분하여 엔진 제어 장치(20)로 송신한다(S113,S114).Therefore, the engine control apparatus 20 receives the number of data (S132), and divides the address signal stored in the ROM or RAM into a low state and a high in order to transmit as many addresses as the number of data. (S113, S114).

그러므로 엔진 제어 장치(20)는 송신되는 데이터 개수에 대한 어드레스 신호를 로우 상태와 하이 상태로 구분하여 수신한다(S133,S134).Therefore, the engine control apparatus 20 receives the address signals for the number of data to be transmitted divided into a low state and a high state (S133, S134).

그리고 수신된 어드레스 신호에 해당하는 초기 데이터를 외부 통신 제어 장치(10)로 송신한다(S135).The initial data corresponding to the received address signal is transmitted to the external communication control device 10 (S135).

따라서 상기와 같이 외부 통신 제어 장치(10)에서 지정된 번지에 해당하는 데이터가 송신되면 외부 통신 제어 장치(10)는 송신되는 초기 데이터를 수신한 후 (S115), 해당 상태로 변경한 후 변경된 갱신 데이터를 엔진 제어 장치(20)로 송신한다(S116).Therefore, when the data corresponding to the designated address is transmitted from the external communication control device 10 as described above, the external communication control device 10 receives the initial data to be transmitted (S115), changes to the corresponding state, and then changes the updated data. Is transmitted to the engine control apparatus 20 (S116).

상기와 같이 새로운 상태로 갱신된 데이터가 송신되면, 엔진 제어 장치(20)는 갱신 데이터를 수신하여(S136), 수신된 상태로 해당번지의 데이터를 갱신한 후, 다시 갱신된 데이터를 외부 통신 제어 장치(10)로 송신하여 정확한 상태로 데이터가 변경되었는지를 확인할 수 있도록 한다(S137).When the updated data is transmitted in the new state as described above, the engine control apparatus 20 receives the update data (S136), updates the data of the corresponding address in the received state, and then controls the externally updated data. By transmitting to the device 10 it is possible to confirm whether the data has been changed in the correct state (S137).

따라서 외부 통신 제어 장치(10)는 상기 엔진 제어 장치(20)에서 송신되는 데이터를 수신한 후(S117), 외부 통신 제어 장치(10)에서 실행되었던 상기한 모든 통신 동작에 대한 에러 발생 상태에 대한 체크데이터를 엔진 제어 장치(20)로 송신한다(S118).Therefore, after the external communication control device 10 receives the data transmitted from the engine control device 20 (S117), the external communication control device 10 for the error occurrence state for all the above-described communication operation that was performed in the external communication control device 10 The check data is transmitted to the engine control device 20 (S118).

따라서 엔진 제어 장치(20)는 송신되는 체크데이터를 수신한 후(S138), 역시 엔진 제어 장치(20)에서 실행되었던 통신 결과에 대한 체크데이터와 송신된 체크 데이터의 결과를 비교하여 해당하는 상태의 응답 신호를 외부 통신 제어 장치(10)로 송신한다(S139).Therefore, after the engine control apparatus 20 receives the check data transmitted (S138), the engine control apparatus 20 compares the check data for the communication result that was executed in the engine control apparatus 20 with the result of the transmitted check data, and then checks the corresponding data. The response signal is transmitted to the external communication control device 10 (S139).

상기와 같은 엔진 제어 장치(20)의 송신 동작을 통해 송신되는 응답 신호를 외부 통신 제어 장치(10)에서 수신한 후(S119), 수신된 응답 신호의 상태를 판단한다(S120).After receiving the response signal transmitted through the transmission operation of the engine control device 20 as described above in the external communication control device 10 (S119), it determines the state of the received response signal (S120).

따라서 판단된 응답 신호의 상태가 정상 상태일 경우 통신 동작을 종료하고, 정상 상태가 아닌 것으로 판단되면 처음으로 리턴 되어 본 모드를 다시 시작하게 된다.Therefore, when the determined response signal is in the normal state, the communication operation is terminated, and when it is determined that the non-normal state is returned to the beginning, the mode is restarted.

다음으로 종료 모드를 도 8을 참고로 하여 설명한다.Next, the termination mode will be described with reference to FIG. 8.

먼저 외부 통신 제어 장치(10)에서 통신 시작을 위하여 커맨드를 엔진 제어 장치(20)로 송신한다(S140).First, the external communication control device 10 transmits a command to the engine control device 20 to start communication (S140).

이때 커맨드는 미리 정의한 G문자이며 엔진 제어 장치(20)는 연결되어 있는 통신 선로를 통해 수신되는 커맨드 즉 G문자를 수신한 후(S150), 커맨드의 수신 완료 상태를 상기 외부 통신 제어 장치(10)로 알려주기 위한 응답신호 Z를 송신한다(S151).In this case, the command is a predefined letter G and the engine control device 20 receives the command received through the connected communication line, that is, the letter G (S150), the external communication control device 10 receives the command completion status of the command. The response signal Z for informing is transmitted (S151).

그러므로 외부 통신 제어 장치(10)는 수신되는 응답신호 Z를 수신한 후(S141)프로그램을 최종적으로 종료한다.Therefore, the external communication control device 10 finally receives the received response signal Z (S141) and finally terminates the program.

이와 같은 일련의 정의된 프로토콜에 따라 엔진 제어 장치(20)와 외부 통신 제어 장치(10)간의 통신이 이루어진다.Communication between the engine control device 20 and the external communication control device 10 is made according to such a series of defined protocols.

따라서 본 발명은 엔진 제어 장치에 저장되어 있는 데이터를 연결되어 있는 컴퓨터를 이용하여 메모리에 저장되어 있는 데이터의 상태를 확인할 수 있고, 또한 원하는 데이터의 상태를 갱신할 수 있으므로 사용자의 편의를 향상시킨다.Therefore, the present invention can confirm the state of the data stored in the memory using a computer connected to the data stored in the engine control device, and can update the state of the desired data, thereby improving user convenience.

또한 사용자의 편의에 맞는 상태로 자체 개발한 프로토콜에 의해 데이터 통신 동작이 가능하므로 원하는 상태로 데이터 통신 동작을 실행할 수 있는 효과가 발생한다.In addition, since the data communication operation is possible by the protocol developed by the user in a state suitable for the user's convenience, the data communication operation can be executed in a desired state.

Claims (8)

엔진 제어 장치와 외부에 연결되어 있는 외부 통신 제어 장치와의 통신 프로토콜에 있어서,In the communication protocol between the engine control device and an external communication control device connected to the outside, 엔진 제어 장치의 특정 어드레스 데이터 수신을 위한 저장 모드와;A storage mode for receiving specific address data of the engine control device; 엔진 제어 장치의 지정된 어드레스에 데이터 매칭 즉 데이터 에뮬레이션을 위한 디스플레이 모드 및 에뮬레이션 모드와;A display mode and emulation mode for data matching, ie data emulation, to a designated address of the engine control apparatus; 엔진 제어 장치의 선택된 어드레스 데이터 수신을 수행하는 수신 모드와;A reception mode for performing the selected address data reception of the engine control device; 엔진 제어 장치의 지정된 시작 어드레스부터 지정된 개수 만큼 데이터 에뮬레이션을 수행하는 송신 모드와;A transmission mode for performing data emulation as many as a specified number starting from a specified start address of the engine control device; 엔진 제어 장치의 롬 에뮬레이션 및 데이터 매칭을 수행하는 데이터 매칭 모드와;A data matching mode for performing ROM emulation and data matching of the engine control apparatus; 데이터 통신 종료를 수행하는 종료 모드로 구분하여 통신이 이루어지는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.A communication protocol between an engine control device and an external computer in which communication is performed by dividing into an end mode for terminating data communication. 청구항 1에 있어서 저장모드 중 초기화 단계로서The method according to claim 1 as an initialization step in the storage mode 통신 시작을 위한 커맨드 송수신 단계와;Command transmission and reception for starting communication; 전송하고자 하는 데이터 개수의 송수신 단계와;Transmitting and receiving a number of data to be transmitted; 판독하고자 하는 메모리 어드레스 신호의 송/수신 단계와;Transmitting / receiving a memory address signal to be read; 해당 어드레스에 대한 신호를 모두 전송할 수 있도록 카운트를 비교하는 단계와;Comparing the counts so as to transmit all signals for the corresponding addresses; 수신된 체크 상태에 해당하는 정보를 수신한 후 자신의 체크 상태에 해당하는 정보와 비교하여 결과 신호를 송/수신하는 단계와;Receiving the information corresponding to the received check state and transmitting / receiving a result signal by comparing the information corresponding to the check state thereof; 수신된 결과 신호가 정상일 때 통신 동작을 종료하고 수신된 결과 신호가 비정상 상태일 경우 처음으로 리턴되는 단계를 포함하여 이루어지는 것을 특징으로 하는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.And ending the communication operation when the received result signal is normal, and returning for the first time when the received result signal is in an abnormal state. 청구항 1에 있어서 저장모드 중 데이터 송수신 단계는The method of claim 1, wherein the data transmission / reception step of the storage mode 통신 시작을 위한 커맨드 송수신 단계와;Command transmission and reception for starting communication; 데이터 송수신 단계와;Transmitting and receiving data; 해당 어드레스에 대한 신호를 모두 전송할 수 있도록 카운트를 비교하는 단계를 포함하여 이루어지는 것을 특징으로 하는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.And comparing the counts so as to transmit all signals for the corresponding addresses. 청구항 1에 있어서 디스플레이 모드 및 에뮬레이션 모드는The display mode of claim 1 and the emulation mode 통신 시작을 위한 커맨드 송수신 단계와;Command transmission and reception for starting communication; 전송하고자 하는 데이터 개수의 송수신 단계와;Transmitting and receiving a number of data to be transmitted; 판독하고자 하는 메모리 어드레스 신호의 송/수신 단계와;Transmitting / receiving a memory address signal to be read; 데이터 송수신 단계와;Transmitting and receiving data; 수신된 체크 상태에 해당하는 정보를 수신한 후 자신의 체크 상태에 해당하는 정보와 비교하여 결과 신호를 송/수신하는 단계와;Receiving the information corresponding to the received check state and transmitting / receiving a result signal by comparing the information corresponding to the check state thereof; 수신된 결과 신호가 정상일 때 통신 동작을 종료하고 수신된 결과 신호가 비정상 상태일 경우 처음으로 리턴되는 단계를 포함하여 이루어지는 것을 특징으로 하는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.And ending the communication operation when the received result signal is normal, and returning for the first time when the received result signal is in an abnormal state. 청구항 1에 있어서 수신 모드는The method of claim 1 wherein the reception mode 통신 시작을 위한 커맨드 송수신 단계와;Command transmission and reception for starting communication; 전송하고자 하는 데이터 개수의 송수신 단계와;Transmitting and receiving a number of data to be transmitted; 판독하고자 하는 메모리의 시작 어드레스 신호의 송/수신 단계와;Transmitting / receiving a start address signal of a memory to be read; 해당 어드레스에 대한 신호를 모두 전송할 수 있도록 카운트를 비교하여 데이터를 송수신하는 단계와;Comparing the counts to transmit and receive all signals for the corresponding address, and transmitting and receiving data; 수신된 체크 상태에 해당하는 정보를 수신한 후 자신의 체크 상태에 해당하는 정보와 비교하여 결과 신호를 송/수신하는 단계와;Receiving the information corresponding to the received check state and transmitting / receiving a result signal by comparing the information corresponding to the check state thereof; 수신된 결과 신호가 정상일 때 통신 동작을 종료하고 수신된 결과 신호가 비정상 상태일 경우 처음으로 리턴되는 단계를 포함하여 이루어지는 것을 특징으로 하는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.And ending the communication operation when the received result signal is normal, and returning for the first time when the received result signal is in an abnormal state. 청구항 1에 있어서 송신 모드는The transmission mode of claim 1, wherein 통신 시작을 위한 커맨드 송수신 단계와;Command transmission and reception for starting communication; 전송하고자 하는 데이터 개수의 송수신 단계와;Transmitting and receiving a number of data to be transmitted; 판독하고자 하는 메모리의 시작 어드레스 신호의 송/수신 단계와;Transmitting / receiving a start address signal of a memory to be read; 해당 어드레스에 대한 신호를 모두 전송할 수 있도록 카운트를 비교하여 데이터를 송수신하는 단계와;Comparing the counts to transmit and receive all signals for the corresponding address, and transmitting and receiving data; 수신된 체크 상태에 해당하는 정보를 수신한 후 자신의 체크 상태에 해당하는 정보와 비교하여 결과 신호를 송/수신하는 단계와;Receiving the information corresponding to the received check state and transmitting / receiving a result signal by comparing the information corresponding to the check state thereof; 수신된 결과 신호가 정상일 때 통신 동작을 종료하고 수신된 결과 신호가 비정상 상태일 경우 처음으로 리턴되는 단계를 포함하여 이루어지는 것을 특징으로 하는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.And ending the communication operation when the received result signal is normal, and returning for the first time when the received result signal is in an abnormal state. 청구항 1에 있어서 데이터 매칭 모드는The method of claim 1 wherein the data matching mode 통신 시작을 위한 커맨드 송수신 단계와;Command transmission and reception for starting communication; 커맨드의 수신 상태를 송신 측에 알리기 위한 응답 신호의 송수신 단계와;Transmitting / receiving a response signal for informing the transmitting side of the reception status of the command; 전송하고자 하는 데이터 개수의 송수신 단계와;Transmitting and receiving a number of data to be transmitted; 판독하고자 하는 메모리 어드레스 신호의 송/수신 단계와;Transmitting / receiving a memory address signal to be read; 수신된 어드레스 번지에 저장되어 있는 초기 데이터의 송수신 단계와;Transmitting and receiving initial data stored in the received address; 수신된 초기 데이터를 해당 상태로 변경한 후 변경된 갱신 데이터의 송수신단계와;Transmitting and receiving the changed update data after changing the received initial data to a corresponding state; 수신된 갱신 데이터로 해당 번지에 저장되어 있는 데이터를 갱신한 후, 갱신된 데이터의 상태를 송신 측이 확인할 수 있도록 하는 갱신 데이터의 송수신 단계와;Transmitting / receiving the update data so that the transmitting side can confirm the state of the updated data after updating the data stored at the corresponding address with the received update data; 실행되는 통신 동작에 따른 상태를 체크하여 체크 상태에 해당하는 정보를 송수신하는 단계와;Checking a state according to an executed communication operation and transmitting and receiving information corresponding to the checked state; 수신된 체크 상태에 해당하는 정보를 수신한 후 자신의 체크 상태에 해당하는 정보와 비교하여 결과 신호를 송/수신하는 단계와;Receiving the information corresponding to the received check state and transmitting / receiving a result signal by comparing the information corresponding to the check state thereof; 수신된 결과 신호가 정상일 때 통신 동작을 종료하고 수신된 결과 신호가 비정상 상태일 경우 처음으로 리턴되는 단계를 포함하여 이루어지는 것을 특징으로 하는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.And ending the communication operation when the received result signal is normal, and returning for the first time when the received result signal is in an abnormal state. 청구항 1에 있어서 종료 모드는The method of claim 1 wherein the termination mode 통신 시작을 위한 커맨드 송수신 단계로 이루어지는 것을 특징으로 하는 엔진 제어 장치와 외부 컴퓨터간의 통신 프로토콜.A communication protocol between an engine control device and an external computer, comprising: transmitting and receiving a command for starting communication.
KR1019970010788A 1997-03-27 1997-03-27 Communication protocol between engine control unit and external computer KR100193511B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970010788A KR100193511B1 (en) 1997-03-27 1997-03-27 Communication protocol between engine control unit and external computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970010788A KR100193511B1 (en) 1997-03-27 1997-03-27 Communication protocol between engine control unit and external computer

Publications (2)

Publication Number Publication Date
KR19980074804A KR19980074804A (en) 1998-11-05
KR100193511B1 true KR100193511B1 (en) 1999-06-15

Family

ID=65950940

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970010788A KR100193511B1 (en) 1997-03-27 1997-03-27 Communication protocol between engine control unit and external computer

Country Status (1)

Country Link
KR (1) KR100193511B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100373007B1 (en) * 2000-07-13 2003-02-25 현대자동차주식회사 Windows monitoring tool of control unit for vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100373007B1 (en) * 2000-07-13 2003-02-25 현대자동차주식회사 Windows monitoring tool of control unit for vehicle

Also Published As

Publication number Publication date
KR19980074804A (en) 1998-11-05

Similar Documents

Publication Publication Date Title
JP2007507016A (en) Software update method for electronic control device by flash programming via serial interface and state automatic device corresponding thereto
CN106126414B (en) Application software testing method and system
EP0443556A2 (en) Method and apparatus for partially running a sequence program for debugging thereof
CN108628621A (en) It is a kind of from the firmware upgrade method of equipment and slave equipment, the system of firmware upgrade
CN111831495A (en) Production automation test method and system
CN112698640B (en) ECU upgrading test system
US11537485B2 (en) Test sequencing method, configuration generating method, and configuration generating apparatus for testing devices according to their communication protocols
CN112380078B (en) USB equipment communication test method and test device
KR100193511B1 (en) Communication protocol between engine control unit and external computer
US7215253B2 (en) Method for recognizing electronic appliance in multiple control system
US6266725B1 (en) Communications protocol for asynchronous memory card
US5612961A (en) Method and system for verification of the baud rate for an asynchronous serial device residing within a data processing system
CN111459730A (en) PCH (physical channel) end parameter adjusting method and system under Whitley platform
CN112783355B (en) Touch display panel and automatic firmware burning method thereof
US20180059179A1 (en) Automatic control system and automatic instrument searching method for the same
TWI322623B (en) Diagnostic device for automotive remote control system
CN112084076A (en) Test method, electronic device, and storage medium
CN100465892C (en) Forcibly downloading program in mobile communications terminal
CN112860582A (en) Local voice recognition module production test method
CN105652114A (en) Power supply method, power supply device and testing jig in testing display screen
CN218100207U (en) Single-wire firmware verification system
CN108513169A (en) A kind of chip downloads method, chip and the LCD TV of startup program
KR100482815B1 (en) A system and method for operating lcd module
CN113849207B (en) ARM server and reservation mode selection method for option configuration of ARM server
KR970044905A (en) Communication protocol between engine controller and external computer

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: 20020205

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee