KR101551712B1 - Control program conversion apparatus and method for air conditioner of vehicle - Google Patents
Control program conversion apparatus and method for air conditioner of vehicle Download PDFInfo
- Publication number
- KR101551712B1 KR101551712B1 KR1020140113553A KR20140113553A KR101551712B1 KR 101551712 B1 KR101551712 B1 KR 101551712B1 KR 1020140113553 A KR1020140113553 A KR 1020140113553A KR 20140113553 A KR20140113553 A KR 20140113553A KR 101551712 B1 KR101551712 B1 KR 101551712B1
- Authority
- KR
- South Korea
- Prior art keywords
- unit
- air conditioner
- control program
- conditioner control
- sequence chart
- Prior art date
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60H—ARRANGEMENTS OF HEATING, COOLING, VENTILATING OR OTHER AIR-TREATING DEVICES SPECIALLY ADAPTED FOR PASSENGER OR GOODS SPACES OF VEHICLES
- B60H1/00—Heating, cooling or ventilating [HVAC] devices
- B60H1/00507—Details, e.g. mounting arrangements, desaeration devices
- B60H1/00585—Means for monitoring, testing or servicing the air-conditioning
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60H—ARRANGEMENTS OF HEATING, COOLING, VENTILATING OR OTHER AIR-TREATING DEVICES SPECIALLY ADAPTED FOR PASSENGER OR GOODS SPACES OF VEHICLES
- B60H1/00—Heating, cooling or ventilating [HVAC] devices
- B60H1/00642—Control systems or circuits; Control members or indication devices for heating, cooling or ventilating devices
- B60H1/00985—Control systems or circuits characterised by display or indicating devices, e.g. voice simulators
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/30—Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Thermal Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
Abstract
Description
본 발명은 차량용 공조기 제어 프로그램의 컨버젼 장치 및 방법에 관한 것으로, 보다 상세하게는 기존의 차량용 공조기 프로그램을 역분석 한 후 시퀀스 차트로 구성하여 렌더링 함으로써 사용자가 공조 프로그램을 용이하게 분석할 수 있도록 하는 차량용 공조기 제어 프로그램의 컨버젼 장치 및 방법에 관한 것이다.
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and method for converting an air conditioner control program for a vehicle, and more particularly, to an apparatus and method for converting a vehicle air conditioner program into a sequence chart, To an apparatus and method for converting an air conditioner control program.
일반적으로 차량에 탑재되는 공조기(HVAC : Heating Ventilation Air Conditioning)는 차량 실내의 공기를 냉각시켜 탑승자에게 쾌적함을 더해 주는 냉방장치와 공기를 가열시켜 온기를 줄 수 있는 난방장치를 포함한다. BACKGROUND ART Generally, a heating ventilation air conditioning (HVAC) mounted on a vehicle includes a cooling device that cools air in a vehicle interior to provide comfort to a passenger, and a heating device that heats air to provide heat.
이러한 차량의 실내는 습도, 태양, 대기, 도로, 또는 엔진 등과 같이 외부 및 내부에서 가해지는 여러 가지 열에 의해 실내 공기의 온도가 상승하고 이 경우 운전자는 냉방장치를 가동하며, 동절기에는 실내 공기의 온도를 상승시키기 위하여, 혹은 습기를 제거하기 위하여 난방장치를 가동시키게 된다.In such a vehicle, the temperature of the room air is increased by various heat applied from outside and inside, such as humidity, sun, air, road, or engine. In this case, the driver operates the air conditioner, , Or to activate the heating system to remove moisture.
차량용 공조기가 자동 모드로 설정되면, 설정 온도에 비해 차량 내부 온도가 높은 경우, 냉방 장치가 동작된다. 이 때 통상적으로는 공기의 순환과 실내의 미스트 제거를 위해 외기가 유입되도록 설정되지만, 무더운 여름에 냉방 모드에서 초기 냉방시와 같이 최대의 냉방 성능이 필요한 경우에는 내기가 유입되도록 설정하여 빠른 냉각을 도모하게 된다. 한편, 난방모드일 경우나 냉방모드에서 차량 내외부의 온도차가 작은 경우에는 외기가 유입되도록 설정된다.When the in-vehicle air conditioner is set to the automatic mode, when the internal temperature of the vehicle is higher than the set temperature, the air conditioner operates. In this case, normally, outside air is set to flow in order to circulate the air and remove the mist in the room. However, when the maximum cooling performance is required in the cooling mode in the hot summer, . On the other hand, when the temperature difference between the inside and outside of the vehicle is small in the heating mode or in the cooling mode, the outside air is set to flow.
예를 들어 무더운 여름에 차량의 내부 온도가 매우 높아져 있을 때, 공조기가 동작을 시작하면, 차량 내부 온도와 설정 온도의 차이가 제1 설정치 이상으로 크기 때문에 내기가 공조기로 유입되어 최대의 냉방 성능을 도모하게 된다. 시간이 경과함에 따라 냉방이 수행되어 차량 내부 온도가 낮아져서 설정 온도와의 차이가 제2 설정치 이하가 되면 공조기로 외기가 유입되게 된다.For example, when the internal temperature of the vehicle is very high during a hot summer, when the air conditioner starts to operate, the difference between the internal temperature and the set temperature of the vehicle is larger than the first set value. . As the time elapses, the cooling is performed to lower the internal temperature of the vehicle, and when the difference from the set temperature becomes the second set value or less, the outside air flows into the air conditioner.
하지만 상기와 같은 공조기 제어 방식은 모든 차량에 대해서 동일하게 적용되지 않는다. 즉, 차량의 제조사에 따라, 또는 차량의 종류에 따라 공조기 제어 방식이 다르게 적용될 수 있는 것이며, 이미 차량에 적용된 공조기 제어 프로그램(즉, 소프트웨어)의 설계를 변형하거나 오류 분석 등의 유지보수와 추후 신규 모델 설계를 수행할 경우 프로그램의 구성요소(즉, 프로그램 소스) 전체를 분석해야 하기 때문에 많은 시간과 비용이 소요되는 문제점이 있다.However, the air conditioner control method as described above is not applied equally to all the vehicles. That is, the air conditioner control method can be applied differently depending on the manufacturer of the vehicle or the type of the vehicle. It is possible to modify the design of the air conditioner control program (i.e., software) already applied to the vehicle, When the model design is performed, it is necessary to analyze the entire program components (that is, the program source), which is time consuming and expensive.
본 발명의 배경기술은 대한민국 등록특허 10-0820565호(2008.04.01.등록, 차량용 공조기 및 그 선형 제어 방법)에 개시되어 있다.
BACKGROUND ART [0002] The background art of the present invention is disclosed in Korean Registered Patent No. 10-0820565 (registered on Apr. 01, 2008, automobile air conditioner and its linear control method).
본 발명은 상기와 같은 문제점을 해결하기 위해 창작된 것으로서, 기존의 차량용 공조기 프로그램을 역분석 한 후 시퀀스 차트로 구성하여 렌더링 함으로써 사용자가 공조 프로그램을 용이하게 분석할 수 있도록 하는 차량용 공조기 제어 프로그램의 컨버젼 장치 및 방법을 제공하는데 그 목적이 있다.
SUMMARY OF THE INVENTION The present invention has been made in an attempt to solve the above problems, and it is an object of the present invention to provide a vehicle air conditioner control program, which can reverse analyze an existing vehicle air conditioner program, And an object of the present invention is to provide an apparatus and method.
본 발명의 일 측면에 따른 차량용 공조기 제어 프로그램의 컨버젼 장치는, 차량용 공조기 제어 프로그램을 입력받아 어휘를 역으로 변환하는 리버스 어휘 분석부; 상기 역 변환된 공조기 제어 프로그램의 코드를 토큰화 하는 토큰화부; 상기 토큰화된 의미소에서 공조관련 의미소를 분류하는 의미소 분류부; 상기 공조 관련 의미소 토큰을 MSC(Message Sequence Chart) 구성 언어로 변환하는 언어 변환부; 상기 MSC 언어를 이용하여 상기 공조기 제어 프로그램의 로직을 시퀀스 차트로 구성하는 시퀀스 차트 구성부; 및 상기 시퀀스 차트를 렌더링하여 이미지 형태로 출력하는 렌더링부;를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a conversion apparatus of a vehicle air conditioner control program, the vehicle air conditioner control program comprising: a reverse lexical analyzer for receiving a vehicle air conditioner control program and reversing a vocabulary; A tokenizing unit for tokenizing the code of the inversely converted air conditioner control program; A semantic classifying unit for classifying the climate-related semantics in the tokenized semantics; A language conversion unit for converting the air-conditioning related sign token into an MSC (Message Sequence Chart) configuration language; A sequence chart constructing unit for constructing the logic of the air conditioner control program in a sequence chart using the MSC language; And a rendering unit rendering the sequence chart and outputting the image in the form of an image.
본 발명에 있어서, 상기 리버스 어휘 분석부는, 상기 차량용 공조기 제어 프로그램의 마지막 단계에서 얻어진 코드를 프로그램의 초기 단계에서 사용하는 코드나 프로그래밍 언어로 역 변환하는 것을 특징으로 한다.In the present invention, the reverse lexical analyzer may reverse the code obtained at the last stage of the vehicle air conditioner control program to a code or a programming language used at an initial stage of the program.
본 발명에 있어서, 상기 토큰화부는, 상기 공조기 제어 프로그램의 설계 로직 분석에 필요성 없는 소스 코드의 어휘나 문자열을 무시하고 실행문장을 토큰화 하되, 상기 필요성 없는 소스 코드의 어휘나 문자열은, 함수명, 변수명, 전처리, 및 매크로 중 적어도 하나 이상 포함하는 것을 특징으로 한다.In the present invention, the tokenizing unit may ignore the vocabulary or the string of the source code that is not necessary for the logic analysis of the design of the air conditioner control program and tokenize the execution sentence, and the vocabulary or the string of the unnecessary source code, Variable names, preprocessing, and macros.
본 발명에 있어서, 상기 토큰화부는, 상기 리버스 어휘 분석부를 통해 역 변환된 공조기 제어 프로그램의 단위 조각들을 입력받아 상기 공조기 제어 프로그램의 실행문을 구성하는 토큰들을 출력하는 것을 특징으로 한다.In the present invention, the tokenizing unit receives the unit pieces of the inversely converted air conditioner control program through the reverse lexical analyzer, and outputs tokens constituting execution statements of the air conditioner control program.
본 발명은, 상기 공조 관련 의미소를 미리 정의 및 저장해 두는 의미소 정의부;를 더 포함하되, 상기 의미소는, 프로그램에서 그룹 또는 루틴 형태로 어떤 임의의 동작을 실현하는 의미적 단위인 것을 특징으로 한다.
The present invention is further characterized by a semantic definition unit for defining and storing the climate related symbol in advance, wherein the semantic area is a semantic unit for realizing an arbitrary operation in the form of a group or a routine in a program.
본 발명의 다른 측면에 따른 차량용 공조기 제어 프로그램의 컨버젼 방법은, 리버스 어휘 분석부가 차량용 공조기 제어 프로그램을 입력받아 그 구성 어휘를 역으로 변환하는 단계; 토큰화부가 상기 역 변환된 공조기 제어 프로그램의 구성 코드를 토큰화 하는 단계; 의미소 분류부가 상기 토큰화부에서 출력된 토큰들 중 공조 제어에 관련된 의미소를 분류하는 단계; 언어 변환부가 상기 의미소 분류부에서 분류한 공조관련 의미소 토큰을 MSC(Message Sequence Chart) 구성 언어로 변환하는 단계; 시퀀스 차트 구성부가 상기 MSC 언어를 이용하여 상기 공조기 제어 프로그램의 로직을 시퀀스 차트로 구성하는 단계; 및 렌더링부가 상기 시퀀스 차트를 렌더링하여 이미지 형태로 출력하는 단계;를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a method of converting a vehicle air conditioner control program, the method comprising: receiving a reverse vocabulary analysis unit vehicle air conditioner control program and reversing the configuration vocabulary; The tokenizing unit tokenize the configuration code of the inversely converted air conditioner control program; Classifying the semantics related to the air conditioning control among the tokens output from the tokenizing unit; Translating the coordination related token to the MSC (Message Sequence Chart) constituent language classified by the semantic classifying unit; Configuring the sequence chart constructing unit with the MSC language as a sequence chart of the logic of the air conditioner control program; And a rendering unit rendering the sequence chart and outputting the image in the form of an image.
본 발명은, 상기 의미소를 분류하는 단계 및 상기 의미소 토큰을 MSC 구성 언어로 변환하는 단계에서 상기 의미소 분류부와 상기 언어 변환부가 참조할 수 있도록 상기 공조 관련 의미소를 의미소 정의부에 미리 정의 및 저장해 두는 단계;를 더 포함하되, 상기 의미소는, 프로그램에서 그룹 또는 루틴 형태로 어떤 임의의 동작을 실현하는 의미적 단위인 것을 특징으로 한다.The present invention is characterized in that the step of classifying the semantics and the step of converting the semantic token into the MSC configuration language are such that the semantic classifying unit and the language converting unit can refer to and store the coordination related semantic in the semantic definition defining unit Wherein the semantic area is a semantic unit for realizing any arbitrary operation in the form of a group or a routine in a program.
본 발명에 있어서, 상기 공조기 제어 프로그램의 구성 코드를 토큰화 하는 단계에서, 상기 토큰화부는 상기 공조기 제어 프로그램의 설계 로직 분석에 필요성 없는 소스 코드의 어휘나 문자열을 무시하고 실행문장을 토큰화 하되, 상기 필요성 없는 소스 코드의 어휘나 문자열은, 함수명, 변수명, 전처리, 및 매크로 중 적어도 하나 이상 포함하는 것을 특징으로 한다.In the present invention, in the step of tokenizing the configuration code of the air conditioner control program, the tokenizing unit may ignore the vocabulary or the string of the source code unnecessary for the analysis of the design logic of the air conditioner control program and tokenize the execution sentence, The vocabulary or the string of the source code which does not need to include at least one of a function name, a variable name, a preprocess, and a macro.
본 발명에 있어서, 상기 공조기 제어 프로그램의 구성 코드를 토큰화 하는 단계에서, 상기 토큰화부는 상기 리버스 어휘 분석부를 통해 역 변환된 공조기 제어 프로그램의 단위 조각들을 입력받아 상기 공조기 제어 프로그램의 실행문을 구성하는 토큰들을 출력하는 것을 특징으로 한다.
In the present invention, in the step of tokenizing the configuration code of the air conditioner control program, the tokenizing unit receives unit pieces of the inversely converted air conditioner control program through the reverse lexical analyzing unit and constructs an execution statement of the air conditioner control program And outputting the tokens.
본 발명은 기존의 차량용 공조기 프로그램을 역분석 한 후 시퀀스 차트로 구성하여 렌더링 함으로써 사용자가 공조 프로그램을 용이하게 분석할 수 있도록 하며, 그에 따라 차량용 공조기 제어 프로그램의 설계의 변형 및 유지보수, 그리고 신규 모델 설계를 보다 용이하게 수행할 수 있도록 한다.
The present invention enables a user to easily analyze an air conditioning program by inversely analyzing an existing vehicle air conditioner program and constructing it as a sequence chart, thereby facilitating the modification and maintenance of the design of the vehicle air conditioner control program, So that the design can be performed more easily.
도 1은 본 발명의 일 실시예에 따른 차량용 공조기 제어 프로그램의 컨버젼 장치의 개략적인 구성을 보인 예시도.
도 2는 상기 도 1에 있어서, 렌더링을 통해 이미지 형태로 출력되는 시퀀스 차트를 보인 예시도.
도 3은 본 발명의 일 실시예에 따른 차량용 공조기 제어 프로그램의 컨버젼 방법을 설명하기 위한 흐름도.
도 4는 본 발명의 일 실시예에 따른 차량용 공조기 제어 프로그램의 컨버젼을 위한 공조 관련 의미소를 카테고리별로 분류하여 정의하는 방법을 설명하기 위한 예시도.BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing a schematic configuration of a conversion apparatus of a vehicle air conditioner control program according to an embodiment of the present invention; FIG.
FIG. 2 is an example of a sequence chart output in an image form through rendering in FIG. 1; FIG.
3 is a flowchart illustrating a method of converting a vehicle air conditioner control program according to an embodiment of the present invention.
4 is a diagram illustrating a method for classifying air conditioning related signatures for conversion of a vehicle air conditioner control program according to an embodiment of the present invention by category.
이하, 첨부된 도면을 참조하여 본 발명에 따른 차량용 공조기 제어 프로그램의 컨버젼 장치 및 방법의 일 실시예를 설명한다. Hereinafter, an embodiment of an apparatus and method for converting a vehicle air conditioner control program according to the present invention will be described with reference to the accompanying drawings.
이 과정에서 도면에 도시된 선들의 두께나 구성요소의 크기 등은 설명의 명료성과 편의상 과장되게 도시되어 있을 수 있다. 또한, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례에 따라 달라질 수 있다. 그러므로 이러한 용어들에 대한 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.In this process, the thicknesses of the lines and the sizes of the components shown in the drawings may be exaggerated for clarity and convenience of explanation. In addition, the terms described below are defined in consideration of the functions of the present invention, which may vary depending on the intention or custom of the user, the operator. Therefore, definitions of these terms should be made based on the contents throughout this specification.
도 1은 본 발명의 일 실시예에 따른 차량용 공조기 제어 프로그램의 컨버젼 장치의 개략적인 구성을 보인 예시도이다.BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram illustrating a schematic configuration of a conversion apparatus of a vehicle air conditioner control program according to an embodiment of the present invention; FIG.
도 1에 도시된 바와 같이, 본 실시예에 따른 차량용 공조기 제어 프로그램의 컨버젼 장치는, 리버스 어휘 분석부(110), 토큰화부(120), 의미소 정의부(130), 의미소 분류부(140), 언어 변환부(150), 시퀀스 차트 구성부(160) 및 렌더링부(170)를 포함한다.1, the conversion apparatus of the vehicle air conditioner control program according to the present embodiment includes a reverse
상기 리버스 어휘 분석부(110)는 이미 개발이 완료된 차량용 공조기 제어 프로그램(또는 이미 차량에 적용되어 공조기 제어를 수행하고 있는 프로그램)의 어휘를 역으로 변환한다.The
여기서 상기 프로그램의 어휘란, C언어나 다른 컴퓨팅 언어(또는 프로그래밍 언어)로 작성된 소스 코드가 컴파일된 기계어나 어셈블리 코드를 포함한다. Here, the vocabulary of the program includes machine code or assembly code compiled with source code written in C or another computing language (or programming language).
그리고 공조기 제어 프로그램의 어휘를 역으로 변환한다는 의미는, 공조기 제어 프로그램을 구성하는 코드를 의미소 기준으로 분류하여 분석할 수 있도록 프로그래밍 언어로 컨버젼 시킨다는 의미이다. The meaning of converting the vocabulary of the air conditioner control program backwards means that the code constituting the air conditioner control program is converted into a programming language so that it can be classified and analyzed based on the semantic standard.
여기서 의미소란, 의의소 또는 형태소라고도 하는 의미를 나타내는 것으로, 단순히 문법이나 언어적 단위가 아니라, 예컨대 프로그램에서 그룹(또는 루틴) 형태로 어떤 임의의 동작을 실현하는 의미적 단위(예 : 소단위, 중단위, 대단위 등)를 의미한다. Here, semantic refers to meaning, also called meaning or morpheme, not simply a grammar or a linguistic unit, but also a semantic unit for realizing an arbitrary action in the form of a group (or a routine) in a program (for example, , Large size, etc.).
따라서 상기 리버스 어휘 분석부(110)는 공조기 제어 장치에 저장되어 있는 공조기 제어 프로그램의 기계어나 어셈블리 코드를 읽어와 역으로 C언어나 다른 컴퓨팅 언어의 소스 코드로 컨버젼 시킨다.Therefore, the reverse
상기 토큰화부(120)는 상기 리버스 어휘 분석부(110)에서 변환된 공조기 제어 프로그램을 구성하는 코드를 토큰화 한다.The tokenizing
상기 토큰화(tokenizing)는, 일종의 소스 코드의 문자열을 나누는 것을 의미하는 것으로, 다시 말해 문자 스트림을 토큰 스트림으로 전환하는 것을 의미한다. 예컨대 공조기 제어 프로그램에서 역으로 변환된 소스 코드를 토큰화 시키는 것이다.The tokenizing means dividing a string of a source code, that is, converting a character stream into a token stream. For example, tokenize the inversely transformed source code in the air conditioner control program.
이때 상기 토큰화에서 중요한 것은 함수명, 변수명, 전처리, 매크로 등의 설계 내용 분석에 필요없는 것들(즉, 소스 코드의 어휘, 문자열 등)은 무시하고 실행문장 만을 토큰화하는 것이다.At this time, what is important in the tokenization is to ignore only those executable statements which are not necessary for analyzing the design contents of the function name, variable name, preprocessing, macro, etc. (that is, source code vocabulary, string, etc.).
여기서 실행문장(또는 실행문)이란, 시스템에 작업 단계의 개시를 나타내는 제어문으로서, 프로그래밍 언어에 있어서 대입 조작, 점프, 반복, 순서 호출 등과 같이 실제 동작을 지시하는 문장을 의미한다.Here, the execution statement (or execution statement) is a control statement indicating the start of a work step in the system, which means a statement that instructs an actual operation such as an assignment operation, a jump, a repetition, a sequence call, etc. in the programming language.
다시 말해, 상기 토큰화부(120)는 상기 리버스 어휘 분석부(110)를 통해 리버스 변환된 공조기 제어 프로그램의 단위 조각들을 입력받아 상기 공조기 제어 프로그램의 실행문 구성 토큰들을 출력하는 것이다.In other words, the tokenizing
상기 의미소 분류부(140)는 상기 토큰화된 의미소에서 공조관련 의미소를 분류한다. 다시 말해, 상기 토큰화부(120)에서는 공조기 제어 프로그램의 실행문 구성 토큰들을 출력하는데 그 중 공조 제어에 관련된 의미소를 분류한다는 것이다.The
상기 공조 관련된(즉, 공조 제어에 관련된) 의미소는 미리 정의해 둘 수 있다. 즉, 상기 의미소 정의부(130)는 상기 공조 관련된(즉, 공조 제어에 관련된) 의미소를 미리 정의해 둔다.The meaning related to the air conditioning (i.e., related to the air conditioning control) can be defined in advance. That is, the
따라서 상기 의미소 분류부(140)는 상기 의미소 정의부(130)에 미리 정의 및 저장되어 있는 공조 관련된(즉, 공조 제어에 관련된) 의미소를 참조해 가면서 공조 관련된 의미소를 분류한다.Accordingly, the
상기 언어 변환부(150)는 상기 의미소 분류부(140)에서 분류한 실행문 구성 토큰을 상기 의미소 정의부에 미리 정의 및 저장되어 있는 공조 관련된(즉, 공조 제어에 관련된) 의미소의 내용을 참조하여 MSC(Message Sequence Chart) 구성 언어로 변환(또는 교체) 한다.The
다시 말해, 상기 언어 변환부(150)는 상기 공조기 제어 프로그램의 실행문 구성 토큰들을 입력받아 공조기 제어 로직 MSC(Message Sequence Chart) 언어로 변환하여 출력한다.In other words, the
상기 시퀀스 차트 구성부(160)는 상기 MSC(Message Sequence Chart) 언어를 이용하여 시퀀스 차트를 구성한다.The sequence
여기서 시퀀스 차트란, 도 2에 도시된 바와 같이, 시스템(즉, 공조기 제어 장치)의 전체 구조와 그 시스템을 구성하는 각각의 기능 블록(또는 모듈)이 상호간에 동작하는 것을 보여 주는 일종의 다중 플로우 차트라고 할 수 있다. 즉, 상기 시퀀스 차트는 시스템을 구성하는 각각의 기능 블록(또는 모듈) 간에 주고받는 메시지의 흐름(즉, 동작의 흐름)을 보여 주면서 다른 기능 블록(또는 모듈)과의 연관 동작을 보여 주는 차트를 의미한다. 편의상 도 2는 다수의 모듈(예 : 모듈1 ~ 모듈4)로 구성된 차량용 공조기 제어 프로그램의 시퀀스 차트를 보인 예시도이다.2, a sequence chart is a kind of multi-flow chart showing that the entire structure of the system (i.e., the air conditioner control apparatus) and the respective functional blocks (or modules) constituting the system operate with each other, . That is, the sequence chart shows a chart showing a flow of a message exchanged between each functional block (or module) constituting the system, and an operation associated with another functional block (or module) it means. 2 is an exemplary diagram showing a sequence chart of a vehicle air conditioner control program composed of a plurality of modules (for example, modules 1 to 4).
상기 렌더링부(170)는 상기 시퀀스 차트 구성부(160)에서 구성된 시퀀스 차트를 렌더링하여 출력한다.The
여기서 상기 렌더링은, 수학적인 알고리즘에 따른 연산 처리를 통해 2차원(또는 3차원)의 최종적인 그래픽(또는 이미지) 화면으로 만들어 내는 것을 의미한다. 즉, 상기 렌더링부(170)는 상기 시퀀스 차트 구성부(160)에서 구성된 시퀀스 차트를 이미지로 만들어 출력한다. 상기 렌더링부(170)에서 출력된 시퀀스 차트는 모니터(미도시)를 통해 디스플레이 할 수 있다.Here, the rendering means rendering a two-dimensional (or three-dimensional) final graphic (or image) screen through an operation process according to a mathematical algorithm. That is, the
상기와 같이 본 실시예에 따른 차량용 공조기 제어 프로그램의 컨버젼 장치를 통해 공조기 제어 프로그램의 시퀀스 차트를 디스플레이 함으로써 사용자가 소스 코드를 직접 분석하지 않더라도 프로그램을 용이하게 분석할 수 있도록 하며, 그에 따라 차량용 공조기 제어 프로그램의 설계의 변형 및 유지보수를 보다 용이하게 수행할 수 있도록 한다.By displaying the sequence chart of the air conditioner control program through the conversion device of the vehicle air conditioner control program according to the present embodiment as described above, it is possible to easily analyze the program even if the user does not directly analyze the source code, Thereby making it easier to carry out modification and maintenance of the design of the program.
도 3은 본 발명의 일 실시예에 따른 차량용 공조기 제어 프로그램의 컨버젼 방법을 설명하기 위한 흐름도이다.3 is a flowchart illustrating a method of converting a vehicle air conditioner control program according to an embodiment of the present invention.
도 3에 도시된 바와 같이, 상기 리버스 어휘 분석부(110)는 차량용 공조기 제어 프로그램을 입력받는다(S101). 그리고 상기 차량용 공조기 제어 프로그램의 어휘를 역으로 변환한다(S102). As shown in FIG. 3, the reverse
가령, 상기 차량용 공조기 제어 프로그램을 구성하는 코드(예 : 기계어, 어셈블리 코드 등의 프로그램의 마지막 단계에서 얻어진 코드)를 의미소 기준으로 분류하여 분석할 수 있도록 프로그래밍 언어(예 : C언어 등의 프로그램의 초기 단계에서 사용하는 코드나 언어)를 이용한 코드로 변환한다. 그러나 반드시 프로그래밍 언어의 코드로 변환해야 하는 것은 아니다. 즉, 상기와 같이 프로그래밍 언어로 변환하는 이유는 코드의 용이한 분석을 위한 것이므로, 기존의 프로그래밍 언어가 아닌 자체적인 특정 언어의 코드로 변환할 수도 있다.For example, in order to classify and analyze the code constituting the automotive air conditioner control program (for example, the code obtained at the last stage of the program such as a machine language or an assembly code) The code or language used in the step). However, it does not necessarily translate into code in the programming language. That is, since the reason for converting to the programming language as described above is for easy analysis of the code, it is possible to convert the code into a code of a specific language itself rather than an existing programming language.
그리고 상기 리버스 어휘 분석부(110)에서 역 변환된 공조기 제어 프로그램을 구성하는 코드를 상기 토큰화부(120)에서 토큰화 한다(S103).Then, the
여기서 상기 토큰화(tokenizing)는, 일종의 소스 코드의 문자 스트림을 토큰 스트림으로 전환하는 것으로, 상기 공조기 제어 프로그램에서 역으로 변환된 소스 코드 중 실행문장를 토큰화 시킨다. 이때 상기 토큰화는 함수명, 변수명, 전처리, 매크로 등의 프로그램의 설계 로직 분석에 필요없는 것들(즉, 소스 코드의 어휘, 문자열 등)은 무시하고 실행문장 만을 토큰화 하는 것이다. The tokenizing is a process of converting a character stream of a source code into a token stream, tokenize an execution sentence of the source code converted inversely in the air conditioner control program. In this case, the tokenization is to ignore only those executable statements that are not necessary for the analysis of the design logic of the program such as function name, variable name, preprocessing, macro, etc. (that is, source code vocabulary, string, etc.).
상기와 같이 토큰화부(120)는 상기 리버스 어휘 분석부(110)를 통해 역으로 변환된 공조기 제어 프로그램의 단위 조각들을 입력받아 상기 공조기 제어 프로그램의 실행문 구성 토큰들을 출력한다. As described above, the
그리고 의미소 분류부(140)는 상기 토큰화된 의미소에서 공조관련 의미소를 분류한다(S104). 즉, 상기 의미소 분류부(140)는 상기 토큰화부(120)에서 출력된 토큰들 중 공조 제어에 관련된 의미소를 분류한다. Then, the
여기서 의미소란, 의의소 또는 형태소라고도 하는 의미를 나타내는 것으로, 단순히 문법이나 언어적 단위가 아니라, 예컨대 프로그램에서 그룹(또는 루틴) 형태로 어떤 임의의 동작을 실현하는 의미적 단위(예 : 대단위, 중단위, 소단위 등)를 의미한다. Here, the term "semantics" means a meaning, also referred to as meaning or morpheme, not simply a grammar or a linguistic unit, but also a semantic unit for realizing an arbitrary action in the form of a group (or a routine) , Sub-unit, etc.).
이때 상기 공조 관련된(즉, 공조 제어에 관련된) 의미소는, 의미소 정의부(130)를 통해 미리 정의 및 저장해 둘 수 있다. At this time, the semantics associated with the air conditioning (i.e., related to the air conditioning control) can be defined and stored in advance through the semantic defining
예컨대 상기 공조 관련된 의미소는, 도 4에 도시된 바와 같이 공조(또는 공조 제어)에 관련된 카테고리(예 : Logic 제어, Display, 부가 기능, 진단, 센서 모니터링, 컴프레셔 제어, 엔진 상태, ECU 상호동작, ECU N/W 구성, 프로그램 시퀀스, Unit 등)를 분류하고, 각 카테고리별로 세부적인 의미소(예 : 대단위, 중단위, 소단위 등)를 미리 정의하여 저장해 둘 수 있다. 다만 도 4에 도시된 공조 관련 의미소의 분류 방법은 공조 관련 의미소의 분류 방법을 이해시키기 위해서 도시한 것이므로, 실제 적용시 상기 카테고리의 분류 및 각 세부적인 의미소는 얼마든지 다양한 방식으로 분류하여 정의할 수 있다.For example, as shown in FIG. 4, the meaning related to the air conditioning may be a category (for example, a logic control, a display, an additional function, a diagnosis, a sensor monitoring, a compressor control, (Eg, N / W configuration, program sequence, unit, etc.), and define detailed semantics for each category (eg, large, However, since the classification method of the air condition related symbol shown in FIG. 4 is shown in order to understand the classification method of the air condition related symbol, the classification of the category and each detailed meaning can be classified in various ways have.
그리고 언어 변환부(150)는 상기 의미소 분류부(140)에서 분류한 공조관련 의미소 토큰을 MSC(Message Sequence Chart) 구성 언어로 변환한다(S105).Then, the
상기 MSC 언어를 이용해 시퀀스 차트를 구성할 수 있다.A sequence chart can be constructed using the MSC language.
즉, 시퀀스 차트 구성부(160)는 상기 MSC 언어를 이용하여 상기 공조기 제어 프로그램의 로직을 시퀀스 차트로 구성한다(S106).That is, the sequence
여기서 시퀀스 차트란, 일종의 다중 플로우 차트로서, 도 2에 도시된 바와 같이, 시스템(즉, 공조기 제어 장치)의 전체 구조와 그 시스템을 구성하는 각각의 기능 블록(또는 모듈)이 상호간에 동작하는 것을 보여 주는 차트를 의미한다.Here, the sequence chart is a kind of multiple flow chart in which the entire structure of the system (i.e., the air conditioner control apparatus) and each functional block (or module) constituting the system operate mutually Means a chart showing.
그리고 렌더링부(170)는 상기 시퀀스 차트 구성부(160)에서 구성된 시퀀스 차트를 렌더링하여 이미지 형태로 출력한다(S107). Then, the
즉, 상기 렌더링부(170)에서 출력된 시퀀스 차트는 모니터(미도시)를 통해 이미지 형태로 디스플레이 할 수 있다.That is, the sequence chart output from the
상기와 같이 본 발명에 따른 실시예는 기존의 공조기 제어 프로그램을 역 분석하여 그 로직 구성을 시퀀스 차트로 구성하여 렌더링을 통해 이미지 형태로 출력함으로써 사용자가 공조 프로그램을 용이하게 분석할 수 있도록 한다.As described above, according to the embodiment of the present invention, the existing air conditioner control program is inversely analyzed, and the logic configuration is configured as a sequence chart, and outputted as an image through rendering, so that the user can easily analyze the air conditioning program.
이상으로 본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나, 이는 예시적인 것에 불과하며, 당해 기술이 속하는 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 기술적 보호범위는 아래의 특허청구범위에 의해서 정하여져야 할 것이다.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, I will understand the point. Accordingly, the technical scope of the present invention should be defined by the following claims.
110 : 리버스 어휘 분석부 120 : 토큰화부
130 : 의미소 정의부 140 : 의미소 분류부
150 : 언어 변환부 160 : 시퀀스 차트 구성부
170 : 렌더링부110: reverse vocabulary analysis unit 120: tokenizing unit
130: Semantic definition part 140: Semantic classification part
150: language conversion unit 160: sequence chart construction unit
170:
Claims (9)
상기 역 변환된 공조기 제어 프로그램의 코드를 토큰화 하는 토큰화부;
상기 토큰화된 의미소에서 공조관련 의미소를 분류하는 의미소 분류부;
상기 공조 관련 의미소 토큰을 MSC(Message Sequence Chart) 구성 언어로 변환하는 언어 변환부;
상기 MSC 언어를 이용하여 상기 공조기 제어 프로그램의 로직을 시퀀스 차트로 구성하는 시퀀스 차트 구성부; 및
상기 시퀀스 차트를 렌더링하여 이미지 형태로 출력하는 렌더링부;를 포함하는 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 장치.
A reverse lexical analyzer for receiving a control program for a vehicle air conditioner and converting the vocabulary inverse;
A tokenizing unit for tokenizing the code of the inversely converted air conditioner control program;
A semantic classifying unit for classifying the climate-related semantics in the tokenized semantics;
A language conversion unit for converting the air-conditioning related sign token into an MSC (Message Sequence Chart) configuration language;
A sequence chart constructing unit for constructing the logic of the air conditioner control program in a sequence chart using the MSC language; And
And a rendering unit rendering the sequence chart and outputting the same as an image form.
상기 차량용 공조기 제어 프로그램의 마지막 단계에서 얻어진 코드를 프로그램의 초기 단계에서 사용하는 코드나 프로그래밍 언어로 역 변환하는 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 장치.
The apparatus of claim 1, wherein the reverse lexical analyzer comprises:
Wherein the code obtained in the last step of the vehicle air conditioner control program is inversely converted into a code or a programming language used in an initial stage of the program.
상기 공조기 제어 프로그램의 설계 로직 분석에 필요성 없는 소스 코드의 어휘나 문자열을 무시하고 실행문장을 토큰화 하되,
상기 필요성 없는 소스 코드의 어휘나 문자열은, 함수명, 변수명, 전처리, 및 매크로 중 적어도 하나 이상 포함하는 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 장치.
The apparatus of claim 1, wherein the tokenizing unit comprises:
Ignoring the vocabulary or the string of the source code which is not necessary for the design logic analysis of the air conditioner control program and tokenize the execution sentence,
Wherein the vocabulary or the string of the unnecessary source code includes at least one of a function name, a variable name, a preprocess, and a macro.
상기 리버스 어휘 분석부를 통해 역 변환된 공조기 제어 프로그램의 단위 조각들을 입력받아 상기 공조기 제어 프로그램의 실행문을 구성하는 토큰들을 출력하는 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 장치.
The apparatus of claim 1, wherein the tokenizing unit comprises:
And outputs the tokens constituting the execution statement of the air conditioner control program by receiving unit pieces of the inversely converted air conditioner control program through the reverse lexical analysis unit.
상기 공조 관련 의미소를 미리 정의 및 저장해 두는 의미소 정의부;를 더 포함하되,
상기 의미소는, 프로그램에서 그룹 또는 루틴 형태로 어떤 임의의 동작을 실현하는 의미적 단위인 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 장치.
The method according to claim 1,
And a semantic definition unit for defining and storing the air conditioning related semantic space in advance,
Wherein said semantic area is a semantic unit for realizing any arbitrary operation in the form of a group or a routine in a program.
토큰화부가 상기 역 변환된 공조기 제어 프로그램의 구성 코드를 토큰화 하는 단계;
의미소 분류부가 상기 토큰화부에서 출력된 토큰들 중 공조 제어에 관련된 의미소를 분류하는 단계;
언어 변환부가 상기 의미소 분류부에서 분류한 공조관련 의미소 토큰을 MSC(Message Sequence Chart) 구성 언어로 변환하는 단계;
시퀀스 차트 구성부가 상기 MSC 언어를 이용하여 상기 공조기 제어 프로그램의 로직을 시퀀스 차트로 구성하는 단계; 및
렌더링부가 상기 시퀀스 차트를 렌더링하여 이미지 형태로 출력하는 단계;를 포함하는 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 방법.
Inputting a reverse vocabulary analysis unit vehicle air conditioner control program and reversing the configuration vocabulary;
The tokenizing unit tokenize the configuration code of the inversely converted air conditioner control program;
Classifying the semantics related to the air conditioning control among the tokens output from the tokenizing unit;
Translating the coordination related token to the MSC (Message Sequence Chart) constituent language classified by the semantic classifying unit;
Configuring the sequence chart constructing unit with the MSC language as a sequence chart of the logic of the air conditioner control program; And
And rendering the rendering unit to render the sequence chart and output it as an image.
상기 의미소를 분류하는 단계 및 상기 의미소 토큰을 MSC 구성 언어로 변환하는 단계에서 상기 의미소 분류부와 상기 언어 변환부가 참조할 수 있도록 하기 위한 상기 공조 관련 의미소를 의미소 정의부에 미리 정의 및 저장해 두는 단계;를 더 포함하되,
상기 의미소는, 프로그램에서 그룹 또는 루틴 형태로 어떤 임의의 동작을 실현하는 의미적 단위인 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 방법.
The method according to claim 6,
Classifying the symmetry related to the symmetry classifying unit and the language converting unit in a step of classifying the symmetry token into an MSC configuration language; Further comprising:
Wherein the semantics is a semantic unit for realizing any arbitrary operation in the form of a group or a routine in a program.
상기 공조기 제어 프로그램의 구성 코드를 토큰화 하는 단계에서,
상기 토큰화부는 상기 공조기 제어 프로그램의 설계 로직 분석에 필요성 없는 소스 코드의 어휘나 문자열을 무시하고 실행문장을 토큰화 하되,
상기 필요성 없는 소스 코드의 어휘나 문자열은, 함수명, 변수명, 전처리, 및 매크로 중 적어도 하나 이상 포함하는 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 방법.
The method according to claim 6,
In the step of tokenizing the configuration code of the air conditioner control program,
The tokenizing unit ignores the vocabulary or the string of the source code unnecessary for the logic analysis of the design of the air conditioner control program and tokenizes the execution sentence,
Wherein the vocabulary or the string of the unnecessary source code includes at least one of a function name, a variable name, a preprocess, and a macro.
상기 공조기 제어 프로그램의 구성 코드를 토큰화 하는 단계에서,
상기 토큰화부는 상기 리버스 어휘 분석부를 통해 역 변환된 공조기 제어 프로그램의 단위 조각들을 입력받아 상기 공조기 제어 프로그램의 실행문을 구성하는 토큰들을 출력하는 것을 특징으로 하는 차량용 공조기 제어 프로그램의 컨버젼 방법.The method according to claim 6,
In the step of tokenizing the configuration code of the air conditioner control program,
Wherein the tokenizing unit receives the unit pieces of the inversely converted air conditioner control program through the reverse lexical analyzer and outputs tokens constituting an execution statement of the air conditioner control program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140113553A KR101551712B1 (en) | 2014-08-28 | 2014-08-28 | Control program conversion apparatus and method for air conditioner of vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140113553A KR101551712B1 (en) | 2014-08-28 | 2014-08-28 | Control program conversion apparatus and method for air conditioner of vehicle |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101551712B1 true KR101551712B1 (en) | 2015-09-11 |
Family
ID=54247798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020140113553A KR101551712B1 (en) | 2014-08-28 | 2014-08-28 | Control program conversion apparatus and method for air conditioner of vehicle |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101551712B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112223976A (en) * | 2020-09-02 | 2021-01-15 | 东风汽车集团有限公司 | Automobile air conditioner maintenance control method, automobile air conditioner controller, automobile air conditioner system and automobile |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002091788A (en) | 2000-09-20 | 2002-03-29 | Matsushita Electric Ind Co Ltd | Method and system for version-up for car air conditioner |
KR100820565B1 (en) | 2006-11-01 | 2008-04-07 | 주식회사 두원공조 | Air conditioner for vehicle and linear control method of the same |
-
2014
- 2014-08-28 KR KR1020140113553A patent/KR101551712B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002091788A (en) | 2000-09-20 | 2002-03-29 | Matsushita Electric Ind Co Ltd | Method and system for version-up for car air conditioner |
KR100820565B1 (en) | 2006-11-01 | 2008-04-07 | 주식회사 두원공조 | Air conditioner for vehicle and linear control method of the same |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112223976A (en) * | 2020-09-02 | 2021-01-15 | 东风汽车集团有限公司 | Automobile air conditioner maintenance control method, automobile air conditioner controller, automobile air conditioner system and automobile |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Mackey et al. | The tool (s) versus the toolkit | |
KR101551712B1 (en) | Control program conversion apparatus and method for air conditioner of vehicle | |
US10921795B2 (en) | System for monitoring a technical device | |
CN101960419A (en) | Building operating system images based on applications | |
DE602005008506D1 (en) | Air conditioning unit case | |
CN105460018A (en) | Method for car driving through full-automatic site control of foreign language text | |
KR101111441B1 (en) | Archtecture skeleton generation device and method for automotive open system architecture application software | |
CN110861465B (en) | Method and device for controlling concentration of carbon dioxide in vehicle | |
CN109271147B (en) | Intelligent cabin system layered design method and intelligent cabin system | |
ATE536273T1 (en) | FORCED VENTILATION SYSTEM FOR THE INTERIOR OF A MOTOR VEHICLE AND CORRESPONDING DASHBOARD | |
JP4675635B2 (en) | Command conversion program development method and development apparatus for home appliance adapter | |
EP2891983A1 (en) | Software verification program and software verification system | |
JP6326845B2 (en) | Ventilation resistance prediction apparatus, method, and program for vehicle | |
CN115185524A (en) | Vector instruction identification method and device, electronic equipment and computer-readable storage medium | |
US20180011911A1 (en) | System and method for efficiently generating responses to queries | |
JP2009151613A (en) | Program source conversion apparatus | |
JP2005165606A (en) | Device and method for producing cad data | |
Bornschlegl et al. | From energy to key indicators the key indicator development chain | |
CN104932492A (en) | Car system with fully automatic foreign language text field control driving | |
Fuchs et al. | Future Interior Concepts | |
Schmidt et al. | Early PC-based Validation of ECU Software Using Virtual Test Driving | |
Aurelio et al. | Development of heat recovery solution for heavy duty truck cabs to improve energy efficiency. | |
KR20170082787A (en) | Method of automatic memory partitioning | |
ATE420780T1 (en) | FLAP, ESPECIALLY FOR A MOTOR VEHICLE VENTILATION SYSTEM | |
Maier et al. | Visual specification of layout |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20180904 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20190903 Year of fee payment: 5 |