JP6717184B2 - In-vehicle control device - Google Patents

In-vehicle control device Download PDF

Info

Publication number
JP6717184B2
JP6717184B2 JP2016243207A JP2016243207A JP6717184B2 JP 6717184 B2 JP6717184 B2 JP 6717184B2 JP 2016243207 A JP2016243207 A JP 2016243207A JP 2016243207 A JP2016243207 A JP 2016243207A JP 6717184 B2 JP6717184 B2 JP 6717184B2
Authority
JP
Japan
Prior art keywords
diagnostic
processing unit
application
processing
execute
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2016243207A
Other languages
Japanese (ja)
Other versions
JP2018095142A (en
Inventor
英揮 矢加部
英揮 矢加部
思遥 毛
思遥 毛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2016243207A priority Critical patent/JP6717184B2/en
Publication of JP2018095142A publication Critical patent/JP2018095142A/en
Application granted granted Critical
Publication of JP6717184B2 publication Critical patent/JP6717184B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本開示は、車載制御装置に関する。 The present disclosure relates to an in-vehicle control device.

特許文献1に記載のように、車両に搭載された車載制御装置が、車両の外部又は内部の診断装置からの要求に応じて、故障している部品の確認など、車両の状態の診断処理を実行する技術が知られている。診断処理は、車載制御装置に搭載されたアプリケーションによって実行される。すなわち、診断装置から診断メッセージが受信されると、アプリケーションによって診断処理が実行され、その結果が診断メッセージに対する返信データとして診断装置に送信される。車載制御装置は、データ送信処理のための応答バッファを有しており、アプリケーションにより応答バッファに格納された返信データが診断装置に送信される。 As described in Patent Document 1, an in-vehicle control device mounted on a vehicle performs a diagnostic process of a vehicle state such as confirmation of a failed component in response to a request from a diagnostic device outside or inside the vehicle. Techniques to perform are known. The diagnostic process is executed by an application installed in the in-vehicle control device. That is, when the diagnostic message is received from the diagnostic device, the diagnostic process is executed by the application, and the result is sent to the diagnostic device as reply data to the diagnostic message. The vehicle-mounted control device has a response buffer for data transmission processing, and the reply data stored in the response buffer is transmitted to the diagnostic device by the application.

特開2016−94032号公報JP, 2016-94032, A

このような診断処理の技術において、診断処理を実行するアプリケーションは、1つの車載装置について1つのみ搭載されることが通常である。ところが、近年では、車両に搭載されている複数の車載制御装置を1つに統合し、1つの車載制御装置に、診断処理を実行するアプリケーションを複数搭載する技術のニーズがある。しかしながら、単純に1つの車載制御装置に複数のアプリケーションを集約すると、アプリケーションの数の分だけ応答バッファを設ける必要があった。 In such a diagnostic processing technique, it is usual that only one application for executing the diagnostic processing is installed in one in-vehicle device. However, in recent years, there is a need for a technology in which a plurality of vehicle-mounted control devices mounted on a vehicle are integrated into one vehicle-mounted control device and a plurality of applications that execute diagnostic processing are mounted on the single vehicle-mounted control device. However, if a plurality of applications are simply aggregated in one vehicle-mounted control device, it is necessary to provide response buffers for the number of applications.

本開示の一局面は、診断処理を実行するアプリケーションが複数搭載された車載制御装置において、応答バッファを減らすことを目的としている。 An aspect of the present disclosure is to reduce the response buffer in an in-vehicle control device that includes a plurality of applications that execute diagnostic processing.

本開示の一態様は、車両に搭載され、診断装置(200)からの診断メッセージに対する診断処理を実行する車載制御装置(100)であって、第1の処理部(101)と、第2の処理部(102)と、管理実行部(103)と、を備える。第1の処理部は、第1の診断処理を実行する。第2の処理部は、第2の診断処理を実行する。管理実行部は、診断メッセージを受信した場合、第1の処理部及び第2の処理部のうち少なくとも一方に診断処理を実行させる。具体的には、管理実行部は、単独実行部(S101〜S105)と、直列実行部(S303〜S307,S504〜S508)と、を備える。単独実行部は、第1の処理部を指定した診断メッセージを受信した場合、第1の処理部に診断処理を実行させ、第2の処理部を指定した診断メッセージを受信した場合、第2の処理部に診断処理を実行させる。直列実行部は、第1の処理部及び第2の処理部の両方を指定した診断メッセージを受信した場合、第1の処理部及び第2の処理部に順に診断処理を実行させる。 One aspect of the present disclosure is an in-vehicle control device (100) that is mounted on a vehicle and executes a diagnostic process for a diagnostic message from a diagnostic device (200), the first processing unit (101), and the second processing unit (101). A processing unit (102) and a management execution unit (103) are provided. The first processing unit executes a first diagnosis process. The second processing unit executes second diagnostic processing. When receiving the diagnostic message, the management execution unit causes at least one of the first processing unit and the second processing unit to execute the diagnostic process. Specifically, the management execution unit includes a single execution unit (S101 to S105) and a serial execution unit (S303 to S307, S504 to S508). The single execution unit causes the first processing unit to execute the diagnostic processing when receiving the diagnostic message that specifies the first processing unit, and the second execution unit when receiving the diagnostic message that specifies the second processing unit. Causes the processing unit to execute diagnostic processing. When the serial execution unit receives the diagnostic message that specifies both the first processing unit and the second processing unit, the serial execution unit causes the first processing unit and the second processing unit to sequentially perform the diagnostic process.

このような構成によれば、第1の処理部が応答バッファを使用する期間と、第2の処理部が応答バッファを使用する期間とがずれるため、第1の処理部及び第2の処理部が1つの応答バッファを共有して診断処理を実行することができる。このため、第1の処理部及び第2の処理部それぞれに対して応答バッファを設ける必要がなく、診断処理を実行するアプリケーションが複数搭載された車載制御装置において、応答バッファを減らすことが可能となる。 With such a configuration, the period in which the first processing unit uses the response buffer and the period in which the second processing unit uses the response buffer deviate from each other. Therefore, the first processing unit and the second processing unit Can share one response buffer to perform diagnostic processing. Therefore, it is not necessary to provide a response buffer for each of the first processing unit and the second processing unit, and it is possible to reduce the response buffer in the vehicle-mounted control device equipped with a plurality of applications that execute diagnostic processing. Become.

第1実施形態の車載制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the vehicle-mounted control apparatus of 1st Embodiment. 物理的要求に対する診断処理のフローチャートである。It is a flowchart of the diagnostic process with respect to a physical request. 物理的要求に対する診断処理のシーケンス図である。FIG. 9 is a sequence diagram of a diagnostic process for a physical request. 第1実施形態の機能的要求に対する診断処理のフローチャートである。It is a flowchart of the diagnostic process with respect to the functional request of the first embodiment. 第1実施形態の機能的要求に対する診断処理のシーケンス図である。It is a sequence diagram of a diagnostic process for the functional request of the first embodiment. 第2実施形態の機能的要求に対する診断処理のフローチャートである。It is a flow chart of diagnostic processing to a functional demand of a 2nd embodiment. 診断メッセージに含まれる診断の種類とそのデータ長を表す図である。It is a figure showing the kind of diagnosis contained in a diagnostic message, and its data length.

以下、本開示の例示的な実施形態について図面を参照しながら説明する。
[1.第1実施形態]
[1−1.構成]
図1に示す第1実施形態の車載制御装置100は、図示しない車両に搭載されている複数の電子制御装置のうちの1つであって、マイコン1、入出力回路2、センサ3、アクチュエータ4及び通信部5を備える。
Hereinafter, exemplary embodiments of the present disclosure will be described with reference to the drawings.
[1. First Embodiment]
[1-1. Constitution]
The on-vehicle control device 100 of the first embodiment shown in FIG. 1 is one of a plurality of electronic control devices mounted on a vehicle (not shown), and includes a microcomputer 1, an input/output circuit 2, a sensor 3, and an actuator 4. And a communication unit 5.

マイコン1は、ROM10、RAM20、CPU30、I/O40、データフラッシュ50及びタイマ60を備えたマイクロコンピューターである。
ROM10は、種々のプログラム等を記憶している記憶媒体である。ROM10には、後述する各処理を実行するためのプログラムとして、第1の診断アプリケーション101、第2の診断アプリケーション102及びダイアグ・通信制御アプリケーション103が記憶されている。
The microcomputer 1 is a microcomputer including a ROM 10, a RAM 20, a CPU 30, an I/O 40, a data flash 50, and a timer 60.
The ROM 10 is a storage medium that stores various programs and the like. The ROM 10 stores a first diagnostic application 101, a second diagnostic application 102, and a diagnosis/communication control application 103 as programs for executing each processing described later.

RAM20は、CPU30が種々のプログラムを実行するためのデータを一時的に記憶するための記憶媒体である。RAM20には、各種データを記憶するための記憶領域として、ダイアグデータ領域201、要求バッファ202、応答バッファ203及び通信タイマ領域204が確保されている。ダイアグデータ領域201は、後述する診断処理を実行した結果を格納するための領域である。要求バッファ202及び応答バッファ203は、後述する診断装置200との間で送受信されるデータを、送受信処理のために一時的に格納する領域である。通信タイマ領域204は、後述する計時処理を実行する際に使用する領域である。 The RAM 20 is a storage medium for temporarily storing data for the CPU 30 to execute various programs. In the RAM 20, a diagnostic data area 201, a request buffer 202, a response buffer 203, and a communication timer area 204 are secured as storage areas for storing various data. The diagnostic data area 201 is an area for storing a result of executing a diagnostic process described later. The request buffer 202 and the response buffer 203 are areas for temporarily storing data to be transmitted/received to/from the diagnostic device 200 described later for transmission/reception processing. The communication timer area 204 is an area used when executing a timekeeping process described later.

CPU30は、ROM10に記憶されているプログラムに従い種々の処理を実行する。
I/O40は、マイコン1の外部から信号を入力し、マイコン1の外部へ信号を出力するための回路である。
The CPU 30 executes various processes according to the programs stored in the ROM 10.
The I/O 40 is a circuit for inputting a signal from the outside of the microcomputer 1 and outputting the signal to the outside of the microcomputer 1.

入出力回路2は、マイコン1と、センサ3、アクチュエータ4及び通信部5と、の間での通信を可能とするための回路である。通信部5には、車両の診断を車載制御装置100に要求する診断装置200が着脱可能に接続される。 The input/output circuit 2 is a circuit that enables communication between the microcomputer 1, the sensor 3, the actuator 4, and the communication unit 5. A diagnostic device 200 that requests the vehicle-mounted control device 100 to diagnose the vehicle is detachably connected to the communication unit 5.

ここで、診断装置200の概要について説明する。診断装置200は、車両の外部から電子制御装置と通信を行い、異常の有無を診断するための装置である。診断装置200は、診断処理を要求するメッセージである診断メッセージを電子制御装置に送信し、診断処理を実行した結果を返信データとして電子制御装置から受信することによって、車両の故障の有無を診断する。電子制御装置では、診断メッセージが受信されると、アプリケーションにより診断処理が実行され、返信データが送信される。診断処理の要求対象となる単位は、電子制御装置ではなく、診断処理を実行可能なアプリケーションである。本実施形態の車載制御装置100の場合、第1の診断アプリケーション101及び第2の診断アプリケーション102のそれぞれが診断処理の要求対象となる。 Here, the outline of the diagnostic device 200 will be described. The diagnostic device 200 is a device for communicating with an electronic control device from the outside of the vehicle to diagnose the presence or absence of an abnormality. The diagnostic device 200 transmits a diagnostic message, which is a message requesting a diagnostic process, to the electronic control device, and receives the result of the diagnostic process as return data from the electronic control device to diagnose the presence or absence of a vehicle failure. .. In the electronic control unit, when the diagnostic message is received, the application executes the diagnostic process and the reply data is transmitted. The unit that is the target of the diagnostic process is not the electronic control device but an application that can execute the diagnostic process. In the case of the in-vehicle control device 100 of the present embodiment, each of the first diagnostic application 101 and the second diagnostic application 102 is a request target for diagnostic processing.

診断装置200が車載制御装置100に要求する診断メッセージは、物理的要求と、機能的要求との2種類に分類される。物理的要求は、1つのアプリケーションを宛先として指定した診断メッセージである。つまり、診断装置200から物理的要求としての診断メッセージが送信されると、宛先として指定された1つのアプリケーションのみが診断処理を実行する。一方、機能的要求は、複数のアプリケーションを宛先として指定した診断メッセージである。つまり、診断装置200から機能的要求としての診断メッセージが送信されると、宛先として指定された複数のアプリケーションが診断処理を実行する。 The diagnostic message requested by the diagnostic device 200 to the vehicle-mounted control device 100 is classified into two types: a physical request and a functional request. The physical request is a diagnostic message with one application as the destination. That is, when the diagnostic device 200 transmits a diagnostic message as a physical request, only one application designated as the destination executes the diagnostic process. On the other hand, the functional request is a diagnostic message in which a plurality of applications are designated as destinations. That is, when the diagnostic device 200 transmits a diagnostic message as a functional request, a plurality of applications designated as destinations perform diagnostic processing.

[1−2.ダイアグ制御処理の概要]
次に、第1実施形態のダイアグ制御処理の概要について説明する。ダイアグ制御処理は、CPU30がダイアグ・通信制御アプリケーション103に従い実行する処理である。ダイアグ制御処理は、診断装置200が診断メッセージを車載制御装置100に送信することで開始される。診断メッセージには、診断装置200が要求する診断処理を実行するアプリケーションの宛先であるターゲットアドレスと、要求する診断の種類を表すデータである種類データと、診断に必要なデータと、が含まれている。
[1-2. Outline of diagnostic control processing]
Next, an outline of the diagnosis control process of the first embodiment will be described. The diagnosis control process is a process executed by the CPU 30 according to the diagnosis/communication control application 103. The diagnostic control process is started by the diagnostic device 200 transmitting a diagnostic message to the in-vehicle control device 100. The diagnostic message includes a target address that is a destination of an application that executes the diagnostic process requested by the diagnostic device 200, type data that is data that indicates the type of diagnostic that is requested, and data necessary for the diagnostic. There is.

まず、第1の診断アプリケーション101又は第2の診断アプリケーション102を宛先として指定した、物理的要求としての診断メッセージを車載制御装置100が受信した場合のダイアグ制御処理について、図2を用いて説明する。S101で、ダイアグ・通信制御アプリケーション103は、診断装置200から診断メッセージを受信する受信処理を行う。受信処理において、診断メッセージは、要求バッファ202に格納される。 First, a diagnostic control process when the vehicle-mounted control device 100 receives a diagnostic message as a physical request, which is designated by the first diagnostic application 101 or the second diagnostic application 102 as a destination, will be described with reference to FIG. .. In S101, the diagnosis/communication control application 103 performs a reception process of receiving a diagnostic message from the diagnostic device 200. In the reception process, the diagnostic message is stored in the request buffer 202.

次に、S102で、ダイアグ・通信制御アプリケーション103は、計時処理を開始する。計時処理は、診断装置200のタイムアウトを防ぐために行われる。すなわち、診断装置200は、診断メッセージを送信してからあらかじめ設定した時間を過ぎても車載制御装置100からデータを受信しない場合、車載制御装置100との通信を中断するタイムアウトの機能を有する。このような通信の中断を防ぐため、ダイアグ・通信制御アプリケーション103は、計時処理を行い、一定の時間を過ぎても診断処理が完了しない場合、通信を中断させないための待機応答データを診断装置200に送信する。 Next, in S102, the diagnosis/communication control application 103 starts the time counting process. The timing process is performed to prevent the diagnostic device 200 from timing out. That is, the diagnostic device 200 has a time-out function of interrupting communication with the in-vehicle control device 100 when data is not received from the in-vehicle control device 100 even after a preset time has elapsed after transmitting the diagnostic message. In order to prevent such communication interruption, the diagnosis/communication control application 103 performs a time counting process, and if the diagnostic process is not completed even after a certain time, the diagnostic device 200 outputs standby response data for not interrupting the communication. Send to.

次に、S103で、ダイアグ・通信制御アプリケーション103は、ターゲットアドレスが示す診断アプリケーションに診断処理を実行させる。診断アプリケーションが診断処理を実行した結果は、ダイアグデータ領域201に格納される。 Next, in S103, the diagnosis/communication control application 103 causes the diagnostic application indicated by the target address to execute diagnostic processing. The result of the diagnostic application executing the diagnostic process is stored in the diagnostic data area 201.

次に、S104で、ダイアグ・通信制御アプリケーション103は、ダイアグデータ領域201に格納されている診断処理を実行した結果を、返信データとして診断装置200に送信する送信処理を行う。送信処理において、返信データは応答バッファ203に一時的に格納される。 Next, in S104, the diagnosis/communication control application 103 performs a transmission process of transmitting the result of executing the diagnostic process stored in the diagnostic data area 201 to the diagnostic device 200 as reply data. In the transmission process, the reply data is temporarily stored in the response buffer 203.

次に、S105で、ダイアグ・通信制御アプリケーション103は、計時処理を終了する。このようにして、物理的要求に対して、第1の診断アプリケーション101及び第2の診断アプリケーション102のうちいずれか一方に診断処理を単独で実行させるダイアグ制御処理が実行される。 Next, in S105, the diagnosis/communication control application 103 ends the time counting process. In this way, the diagnostic control process that causes one of the first diagnostic application 101 and the second diagnostic application 102 to execute the diagnostic process independently in response to the physical request is executed.

次に、第1の診断アプリケーション101又は第2の診断アプリケーション102を宛先として指定した、物理的要求に対するダイアグ制御処理において車載制御装置100と診断装置200との間で行われる具体的なやりとりの例について図3のシーケンス図を用いて説明する。なお、図3では、物理的要求に対してCPU30が実行するアプリケーションである第1の診断アプリケーション101、第2の診断アプリケーション102及びダイアグ・通信制御アプリケーション103と、診断装置200とのやりとりを表し、CPU30については図示を省略する。 Next, an example of a specific exchange performed between the vehicle-mounted control device 100 and the diagnostic device 200 in the diagnostic control process for a physical request, which is designated by the first diagnostic application 101 or the second diagnostic application 102 as a destination. Will be described with reference to the sequence diagram of FIG. Note that, in FIG. 3, the interaction between the first diagnostic application 101, the second diagnostic application 102, the diagnosis/communication control application 103, which are the applications executed by the CPU 30 in response to a physical request, and the diagnostic device 200 is shown. Illustration of the CPU 30 is omitted.

S201で、ダイアグ・通信制御アプリケーション103は、第1の診断アプリケーション101を宛先として指定した、物理的要求としての診断メッセージを受信する受信処理を行う。受信処理で受信された診断メッセージは、要求バッファ202に一時的に格納される。 In step S201, the diagnosis/communication control application 103 performs a reception process of receiving a diagnostic message as a physical request, which specifies the first diagnostic application 101 as a destination. The diagnostic message received by the reception process is temporarily stored in the request buffer 202.

S202で、ダイアグ・通信制御アプリケーション103は、第1の診断アプリケーション101に診断処理を実行させる。
S203で、第1の診断アプリケーション101は、診断メッセージに応じた診断処理を実行し、その結果をダイアグデータ領域201に格納する。
In step S202, the diagnosis/communication control application 103 causes the first diagnostic application 101 to execute diagnostic processing.
In S<b>203, the first diagnostic application 101 executes diagnostic processing according to the diagnostic message and stores the result in the diagnostic data area 201.

S204で、ダイアグ・通信制御アプリケーション103は、ダイアグデータ領域201に格納されている診断処理を実行した結果を、返信データとして診断装置200に送信する送信処理を行う。送信処理において、返信データは応答バッファ203に一時的に格納される。 In step S204, the diagnosis/communication control application 103 performs a transmission process of transmitting the result of executing the diagnostic process stored in the diagnostic data area 201 to the diagnostic device 200 as reply data. In the transmission process, the reply data is temporarily stored in the response buffer 203.

S205で、ダイアグ・通信制御アプリケーション103は、第2の診断アプリケーション102を宛先として指定した、物理的要求としての診断メッセージを受信する受信処理を行う。受信処理で受信された診断メッセージは、要求バッファ202に一時的に格納される。 In step S205, the diagnostic/communication control application 103 performs a reception process of receiving a diagnostic message as a physical request, which specifies the second diagnostic application 102 as a destination. The diagnostic message received by the reception process is temporarily stored in the request buffer 202.

S206で、ダイアグ・通信制御アプリケーション103は、第2の診断アプリケーション102に診断処理を実行させる。
S207で、第2の診断アプリケーション102は、診断メッセージに応じた診断処理を実行し、その結果をダイアグデータ領域201に格納する。
In step S206, the diagnosis/communication control application 103 causes the second diagnostic application 102 to execute diagnostic processing.
In S207, the second diagnostic application 102 executes the diagnostic process according to the diagnostic message and stores the result in the diagnostic data area 201.

S208で、ダイアグ・通信制御アプリケーション103は、ダイアグデータ領域201に格納されている診断処理を実行した結果を、返信データとして診断装置200に送信する送信処理を行う。送信処理において、返信データは応答バッファ203に一時的に格納される。このようにして、物理的要求に対するダイアグ制御処理において車載制御装置100と診断装置200との間で具体的なやりとりが行われる。 In step S208, the diagnosis/communication control application 103 performs a transmission process of transmitting the result of executing the diagnostic process stored in the diagnostic data area 201 to the diagnostic device 200 as reply data. In the transmission process, the reply data is temporarily stored in the response buffer 203. In this way, a specific exchange is performed between the vehicle-mounted control device 100 and the diagnostic device 200 in the diagnostic control process for the physical request.

次に、少なくとも第1の診断アプリケーション101及び第2の診断アプリケーション102の両方を宛先として指定した、機能的要求としての診断メッセージを車載制御装置100が受信した場合のダイアグ制御処理について、図4を用いて説明する。なお、ここでいう診断メッセージには、他の宛先、例えば車載制御装置100以外の電子制御装置のアプリケーションを指定した宛先、が含まれていてもよい。また、機能的要求としての診断メッセージを受信した場合のダイアグ制御処理は、物理的要求としての診断メッセージを受信した場合のダイアグ制御処理における処理の流れと基本的に同じである。このため、物理的要求としての診断メッセージを受信した場合と同じ処理については説明を省略する。 Next, FIG. 4 shows the diagnostic control process when the vehicle-mounted control device 100 receives a diagnostic message as a functional request that specifies at least both the first diagnostic application 101 and the second diagnostic application 102 as destinations. It will be explained using. It should be noted that the diagnostic message mentioned here may include other destinations, for example, a destination that specifies an application of an electronic control device other than the in-vehicle control device 100. Further, the diagnostic control process when the diagnostic message as the functional request is received is basically the same as the process flow in the diagnostic control process when the diagnostic message as the physical request is received. Therefore, the description of the same process as when the diagnostic message as the physical request is received is omitted.

S301で、ダイアグ・通信制御アプリケーション103は、診断装置200から診断メッセージを受信する受信処理を行う。受信処理において、診断メッセージは、要求バッファ202に格納される。次に、S302で、ダイアグ・通信制御アプリケーション103は、すべての診断アプリケーション、この例では、第1の診断アプリケーション101及び第2の診断アプリケーション102のそれぞれについて計時処理を開始する。すなわち、ダイアグ・通信制御アプリケーション103は、第1の診断アプリケーション101及び第2の診断アプリケーション102のうち少なくとも一方による診断処理が一定の時間を過ぎても完了しない場合、待機応答データを診断装置200に送信する。 In step S301, the diagnosis/communication control application 103 performs a reception process of receiving a diagnostic message from the diagnostic device 200. In the reception process, the diagnostic message is stored in the request buffer 202. Next, in S302, the diagnosis/communication control application 103 starts the time counting process for all the diagnostic applications, in this example, the first diagnostic application 101 and the second diagnostic application 102, respectively. That is, when the diagnostic process by at least one of the first diagnostic application 101 and the second diagnostic application 102 is not completed after a certain time, the diagnostic/communication control application 103 sends the standby response data to the diagnostic device 200. Send.

次に、S303で、ダイアグ・通信制御アプリケーション103は、診断処理を実行する診断アプリケーションを選択する。すなわち、診断処理は、1つずつ順に実行される。診断処理の順番、換言すれば診断アプリケーションが選択される順番は、あらかじめ決められている。この例では、宛先として指定されたすべての診断アプリケーションのうち、ターゲットアドレスが若い順に選択され、第2の診断アプリケーション102よりもターゲットアドレスが若い第1の診断アプリケーション101が先に選択される。 Next, in step S303, the diagnosis/communication control application 103 selects a diagnostic application that executes diagnostic processing. That is, the diagnostic processing is sequentially executed one by one. The order of the diagnostic processing, in other words, the order in which the diagnostic application is selected is predetermined. In this example, of all the diagnostic applications designated as destinations, the first diagnostic application 101 having a smaller target address is selected first, and the first diagnostic application 101 having a smaller target address than the second diagnostic application 102 is selected first.

次に、S304で、ダイアグ・通信制御アプリケーション103は、選択した診断アプリケーションに診断処理を実行させ、その結果は、ダイアグデータ領域201に格納される。 Next, in step S304, the diagnosis/communication control application 103 causes the selected diagnosis application to execute diagnosis processing, and the result is stored in the diagnosis data area 201.

次に、S305で、ダイアグ・通信制御アプリケーション103は、ダイアグデータ領域201に格納されている診断処理を実行した結果を、返信データとして診断装置200に送信する送信処理を行う。送信処理において、返信データは応答バッファ203に一時的に格納される。 Next, in step S<b>305, the diagnosis/communication control application 103 performs a transmission process of transmitting the result of executing the diagnosis process stored in the diagnosis data area 201 to the diagnosis device 200 as reply data. In the transmission process, the reply data is temporarily stored in the response buffer 203.

次に、S306で、ダイアグ・通信制御アプリケーション103は、選択した診断アプリケーションに対する計時処理を終了する。
次に、S307で、ダイアグ・通信制御アプリケーション103は、宛先として指定されたすべての診断アプリケーションの診断処理が完了したか否かを判定する。ダイアグ・通信制御アプリケーション103は、すべての診断アプリケーションの診断処理が完了していないと判定した場合、処理をS303に移行する。そして、S303で、ダイアグ・通信制御アプリケーション103は、次に診断処理を実行する診断アプリケーション、この例では第2の診断アプリケーション102、を選択し、S304からS307までの処理を実行する。このようにして、ダイアグ・通信制御アプリケーション103は、宛先として指定されたすべての診断アプリケーションの診断処理が完了するまで、処理を繰り返す。
Next, in step S306, the diagnosis/communication control application 103 ends the timekeeping process for the selected diagnostic application.
Next, in S307, the diagnosis/communication control application 103 determines whether or not the diagnostic processing of all the diagnostic applications designated as the destinations has been completed. When the diagnosis/communication control application 103 determines that the diagnosis processing of all the diagnosis applications is not completed, the processing shifts to S303. Then, in step S303, the diagnosis/communication control application 103 selects the diagnostic application to be executed next, that is, the second diagnostic application 102 in this example, and executes the processing from step S304 to step S307. In this way, the diagnosis/communication control application 103 repeats the processing until the diagnosis processing of all the diagnosis applications designated as the destinations is completed.

一方、S307で、ダイアグ・通信制御アプリケーション103は、すべての診断処理が完了したと判定した場合、処理を終了する。このようにして、第1の診断アプリケーション101及び第2の診断アプリケーション102に、順に、換言すれば直列に、診断処理を実行させる、機能的要求に対するダイアグ制御処理が実行される。 On the other hand, when the diagnosis/communication control application 103 determines in S307 that all the diagnostic processes have been completed, the process ends. In this manner, the diagnostic control process for the functional request, which causes the first diagnostic application 101 and the second diagnostic application 102 to sequentially perform the diagnostic process, in other words, the diagnostic process, is executed.

次に、少なくとも第1の診断アプリケーション101及び第2の診断アプリケーション102の両方を宛先として指定した、機能的要求に対するダイアグ制御処理において車載制御装置100と診断装置200との間で行われる具体的なやりとりの例について図5のシーケンス図を用いて説明する。なお、図5でも、図3と同様、CPU30については図示を省略する。 Next, a specific example of the diagnostic control process for the functional request, in which at least both the first diagnostic application 101 and the second diagnostic application 102 are designated as destinations, is performed between the on-vehicle controller 100 and the diagnostic device 200. An example of the exchange will be described with reference to the sequence diagram of FIG. Note that in FIG. 5, the CPU 30 is not shown, as in FIG.

S401で、ダイアグ・通信制御アプリケーション103は、少なくとも第1の診断アプリケーション101及び第2の診断アプリケーション102の両方を宛先として指定した、機能的要求としての診断メッセージを受信する受信処理を行う。受信処理で受信された診断メッセージは、要求バッファ202に一時的に格納される。 In step S401, the diagnosis/communication control application 103 performs a reception process of receiving a diagnostic message as a functional request, in which at least both the first diagnostic application 101 and the second diagnostic application 102 are designated as destinations. The diagnostic message received by the reception process is temporarily stored in the request buffer 202.

S402で、ダイアグ・通信制御アプリケーション103は、ターゲットアドレスが若い診断アプリケーション、この例では第1の診断アプリケーション101、を先に選択し、第1の診断アプリケーション101に診断処理を実行させる。 In step S402, the diagnosis/communication control application 103 first selects a diagnostic application having a young target address, which is the first diagnostic application 101 in this example, and causes the first diagnostic application 101 to perform diagnostic processing.

S403で、第1の診断アプリケーション101は、診断メッセージに応じた診断処理を実行し、その結果をダイアグデータ領域201に格納する。
S404で、ダイアグ・通信制御アプリケーション103は、ダイアグデータ領域201に格納されている診断処理を実行した結果を、返信データとして診断装置200に送信する送信処理を行う。送信処理において、返信データは応答バッファ203に一時的に格納される。
In S403, the first diagnostic application 101 executes the diagnostic process according to the diagnostic message and stores the result in the diagnostic data area 201.
In step S<b>404, the diagnosis/communication control application 103 performs a transmission process of transmitting the result of executing the diagnostic process stored in the diagnostic data area 201 to the diagnostic device 200 as reply data. In the transmission process, the reply data is temporarily stored in the response buffer 203.

S405で、ダイアグ・通信制御アプリケーション103は、ターゲットアドレスが次に若い診断アプリケーションである第2の診断アプリケーション102を選択し、第2の診断アプリケーション102に診断処理を実行させる。 In step S405, the diagnosis/communication control application 103 selects the second diagnostic application 102, which is the diagnostic application having the next youngest target address, and causes the second diagnostic application 102 to execute the diagnostic process.

S406で、ダイアグ・通信制御アプリケーション103は、第2の診断アプリケーションによる診断処理が一定の時間を過ぎても完了しないため、待機応答データを診断装置200に送信する。 In step S<b>406, the diagnosis/communication control application 103 transmits the standby response data to the diagnostic device 200 because the diagnostic process by the second diagnostic application is not completed even after a certain period of time.

S407で、第2の診断アプリケーション102は、診断メッセージに応じた診断処理を実行した結果をダイアグデータ領域201に格納する。
S408で、ダイアグ・通信制御アプリケーション103は、ダイアグデータ領域201に格納されている診断処理を実行した結果を、返信データとして診断装置200に送信する送信処理を行う。送信処理において、返信データは応答バッファ203に一時的に格納される。このようにして、機能的要求に対するダイアグ制御処理において車載制御装置100と診断装置200との間で具体的なやりとりが行われる。
In step S407, the second diagnostic application 102 stores the result of executing the diagnostic process according to the diagnostic message in the diagnostic data area 201.
In step S<b>408, the diagnosis/communication control application 103 performs a transmission process of transmitting the result of executing the diagnosis process stored in the diagnosis data area 201 to the diagnosis device 200 as reply data. In the transmission process, the reply data is temporarily stored in the response buffer 203. In this way, a specific exchange is performed between the vehicle-mounted control device 100 and the diagnostic device 200 in the diagnostic control process for the functional request.

[1−3.効果]
以上詳述した第1実施形態によれば、以下の効果が得られる。
(1a)ダイアグ・通信制御アプリケーション103は、少なくとも第1の診断アプリケーション101及び第2の診断アプリケーション102の両方を指定した、機能的要求としての診断メッセージを受信した場合、第1の診断アプリケーション101及び第2の診断アプリケーション102に順に診断処理を実行させる。
[1-3. effect]
According to the first embodiment described in detail above, the following effects can be obtained.
(1a) When the diagnostic/communication control application 103 receives a diagnostic message as a functional request that specifies at least both the first diagnostic application 101 and the second diagnostic application 102, the first diagnostic application 101 and The second diagnostic application 102 is made to sequentially execute the diagnostic processing.

このような構成によれば、第1の診断アプリケーション101が応答バッファ203を使用する期間と、第2の診断アプリケーション102が応答バッファ203を使用する期間とがずれる。このため、第1の診断アプリケーション101及び第2の診断アプリケーション102が1つの応答バッファ203を共有して診断処理を実行することができる。その結果、第1の診断アプリケーション101及び第2の診断アプリケーション102それぞれに対して応答バッファを設ける必要がなくなり、診断処理を実行するアプリケーションが複数搭載された車載制御装置100において、応答バッファを減らすことが可能となる。 With such a configuration, the period during which the first diagnostic application 101 uses the response buffer 203 and the period during which the second diagnostic application 102 uses the response buffer 203 are displaced. Therefore, the first diagnostic application 101 and the second diagnostic application 102 can share one response buffer 203 and execute the diagnostic process. As a result, it is not necessary to provide a response buffer for each of the first diagnostic application 101 and the second diagnostic application 102, and the number of response buffers can be reduced in the vehicle-mounted control device 100 equipped with a plurality of applications that execute diagnostic processing. Is possible.

なお、第1実施形態では、第1の診断アプリケーション101が第1の処理部としての処理に相当し、第2の診断アプリケーション102が第2の処理部としての処理に相当する。また、ダイアグ・通信制御アプリケーション103が管理実行部としての処理に相当し、S101〜S105が単独実行部としての処理に相当し、S303〜S307が直列実行部としての処理に相当する。 In the first embodiment, the first diagnostic application 101 corresponds to the processing as the first processing unit, and the second diagnostic application 102 corresponds to the processing as the second processing unit. Further, the diagnosis/communication control application 103 corresponds to the processing as the management execution unit, S101 to S105 correspond to the processing as the independent execution unit, and S303 to S307 correspond to the processing as the serial execution unit.

[2.第2実施形態]
[2−1.構成]
第2実施形態は、ダイアグ制御処理が、第1実施形態のダイアグ制御処理と異なる。その他、基本的な構成及び処理の流れは第1実施形態と同様であり、第1実施形態と共通する構成及び処理については、同一符号を用いて説明を省略する。
[2. Second Embodiment]
[2-1. Constitution]
The diagnostic control process of the second embodiment is different from the diagnostic control process of the first embodiment. Other than that, the basic configuration and the flow of processing are the same as those in the first embodiment, and the same reference numerals are used for the configurations and processing that are common to the first embodiment and description thereof is omitted.

[2−2.ダイアグ制御処理の概要]
少なくとも第1の診断アプリケーション101及び第2の診断アプリケーション102の両方を宛先として指定した機能的要求としての診断メッセージを車載制御装置100が受信した場合のダイアグ制御処理について、図6を用いて説明する。なお、図6におけるS501、S502及びS504〜S508の処理は、第1実施形態のS301〜S307の処理と同様であるため、説明を省略する。
[2-2. Outline of diagnostic control processing]
Diagnosis control processing when the vehicle-mounted control device 100 receives a diagnostic message as a functional request specifying at least both the first diagnostic application 101 and the second diagnostic application 102 will be described with reference to FIG. .. Note that the processing of S501, S502, and S504 to S508 in FIG. 6 is the same as the processing of S301 to S307 of the first embodiment, so description thereof will be omitted.

S503で、ダイアグ・通信制御アプリケーションは、第1の診断アプリケーション101及び第2の診断アプリケーション102が並行して実行する診断処理である並列診断処理を実行可能であるか否かを判定する。具体的には、ダイアグ・通信制御アプリケーションは、第1の診断アプリケーション101及び第2の診断アプリケーション102を指定した診断メッセージに含まれる種類データが、あらかじめ定められた種類であるか否かを判定する。 In step S<b>503, the diagnosis/communication control application determines whether it is possible to execute parallel diagnostic processing, which is diagnostic processing that the first diagnostic application 101 and the second diagnostic application 102 execute in parallel. Specifically, the diagnosis/communication control application determines whether or not the type data included in the diagnostic message designating the first diagnostic application 101 and the second diagnostic application 102 is of a predetermined type. ..

ここで、種類データについて説明する。図7に示すように、診断メッセージに含まれる種類データは、複数種類、この例では、故障コード読出し、フリーズフレームデータ読出し、データ読出し、診断情報消去及びデータ書込み、の5種類が存在する。ここで、診断メッセージに送信される返信データのデータ量である返信データ長は、種類データに応じて異なる。この例では、診断情報消去及びデータ書込みの種類データに対する返信データ長は、故障コード読出し、フリーズフレームデータ読出し及びデータ読出しの種類データに対する返信データ長と比較して短い。つまり、対応する返信データ長が短い種類データは、あらかじめ決まっている。そこで、第1の診断アプリケーション101の返信データのデータ長と第2の診断アプリケーション102の返信データのデータ長との合計が、応答バッファ203のバッファ長を超すことがないよう、並列診断処理を実行する場合の種類データがあらかじめ設定されている。この例では、診断メッセージに含まれる種類データが、診断情報消去及びデータ書込みのうちいずれかである場合、並列診断処理が実行可能であると判定するよう、あらかじめ設定されている。なお、1つの診断メッセージに含まれる種類データの数は1つである。 Here, the type data will be described. As shown in FIG. 7, there are a plurality of types of type data included in the diagnostic message, and in this example, there are five types: fault code read, freeze frame data read, data read, diagnostic information erase and data write. Here, the reply data length, which is the data amount of the reply data transmitted to the diagnostic message, differs depending on the type data. In this example, the reply data length for the type data of diagnostic information deletion and data writing is shorter than the reply data length for the type data of fault code read, freeze frame data read, and data read. That is, the corresponding type data having a short reply data length is predetermined. Therefore, parallel diagnostic processing is executed so that the total of the data length of the reply data of the first diagnostic application 101 and the data length of the reply data of the second diagnostic application 102 does not exceed the buffer length of the response buffer 203. The type data to be used is preset. In this example, if the type data included in the diagnostic message is one of erasing diagnostic information and writing data, it is preset to determine that parallel diagnostic processing can be executed. The number of types of data included in one diagnostic message is one.

S503の処理に戻り、ダイアグ・通信制御アプリケーションは、並列診断処理が実行不可能であると判定した場合、S504の処理へ移行する。
S504〜S508で、ダイアグ・通信制御アプリケーションは、第1の診断アプリケーション101及び第2の診断アプリケーション102に順に診断処理を実行させる。
Returning to the processing of S503, when the diagnosis/communication control application determines that the parallel diagnostic processing cannot be executed, the diagnosis/communication control application proceeds to the processing of S504.
In S504 to S508, the diagnostic/communication control application causes the first diagnostic application 101 and the second diagnostic application 102 to sequentially perform diagnostic processing.

一方、S503で、ダイアグ・通信制御アプリケーションは、並列診断処理が実行可能であると判定した場合、処理をS509へ移行する。
S509で、ダイアグ・通信制御アプリケーションは、第1の診断アプリケーション101及び第2の診断アプリケーション102のそれぞれに並行して診断処理を実行させる。それぞれの診断処理の結果は、ダイアグデータ領域201に格納される。
On the other hand, when the diagnosis/communication control application determines in step S503 that the parallel diagnostic process is executable, the process proceeds to step S509.
In step S509, the diagnosis/communication control application causes the first diagnostic application 101 and the second diagnostic application 102 to execute diagnostic processing in parallel. The result of each diagnostic process is stored in the diagnostic data area 201.

S510で、ダイアグ・通信制御アプリケーションは、ダイアグデータ領域201に格納されている診断処理を実行した結果を、返信データとして診断装置200に送信する送信処理を行う。送信処理において、第1の診断アプリケーション101の返信データ及び第2の診断アプリケーション102の返信データの両方が、応答バッファ203に一時的に格納される。 In step S510, the diagnosis/communication control application performs a transmission process of transmitting the result of execution of the diagnostic process stored in the diagnostic data area 201 to the diagnostic device 200 as reply data. In the transmission process, both the reply data of the first diagnostic application 101 and the reply data of the second diagnostic application 102 are temporarily stored in the response buffer 203.

次に、S511で、ダイアグ・通信制御アプリケーションは、第1の診断アプリケーション101及び第2の診断アプリケーション102に対する計時処理を終了する。その後、図6のダイアグ制御処理を終了する。 Next, in S511, the diagnosis/communication control application ends the timekeeping process for the first diagnostic application 101 and the second diagnostic application 102. Then, the diagnostic control process of FIG. 6 is completed.

このようにして、第1の診断アプリケーション101及び第2の診断アプリケーション102に、順に又は並行して診断処理を実行させる、機能的要求に対するダイアグ制御処理が実行される。 In this way, the diagnostic control process for the functional request, which causes the first diagnostic application 101 and the second diagnostic application 102 to perform the diagnostic process in sequence or in parallel, is executed.

[2−3.効果]
以上詳述した第2実施形態によれば、前述した第1実施形態と同様の効果に加え、以下の効果が得られる。
[2-3. effect]
According to the second embodiment described in detail above, in addition to the same effects as the above-described first embodiment, the following effects can be obtained.

(2a)ダイアグ・通信制御アプリケーションは、少なくとも第1の診断アプリケーション101及び第2の診断アプリケーション102の両方を指定した診断メッセージを受信した場合、第1の診断アプリケーション101及び第2の診断アプリケーション102に、順に又は並行して診断処理を実行させる。具体的には、ダイアグ・通信制御アプリケーションは、当該診断メッセージに含まれる種類データが、診断情報消去及びデータ書込みのうちいずれかである場合、第1の診断アプリケーション101及び第2の診断アプリケーション102に、並行して診断処理を実行させる。また、ダイアグ・通信制御アプリケーションは、当該診断メッセージに含まれる種類データが、診断情報消去及びデータ書込みのうちいずれでもない場合、第1の診断アプリケーション101及び第2の診断アプリケーション102に順に診断処理を実行させる。このような構成によれば、ダイアグ・通信制御アプリケーションが、応答バッファ203のみを用いて、種類データに応じた診断処理の実行、すなわち、第1の診断アプリケーション101及び第2の診断アプリケーション102の診断処理を並列に又は順に実行させることができる。その結果、第1実施形態と比較して、診断処理に要する時間が短縮され得る。 (2a) When the diagnostic/communication control application receives a diagnostic message that specifies at least both the first diagnostic application 101 and the second diagnostic application 102, the first diagnostic application 101 and the second diagnostic application 102 receive the diagnostic message. , In sequence or in parallel. Specifically, when the type data included in the diagnostic message is one of erasing diagnostic information and writing data, the diagnostic/communication control application determines that the first diagnostic application 101 and the second diagnostic application 102 have , Execute diagnostic processing in parallel. If the type data included in the diagnostic message is neither erase diagnostic information nor write data, the diagnostic/communication control application sequentially performs diagnostic processing on the first diagnostic application 101 and the second diagnostic application 102. Let it run. According to such a configuration, the diagnosis/communication control application uses only the response buffer 203 to execute the diagnostic process according to the type data, that is, the diagnosis of the first diagnostic application 101 and the second diagnostic application 102. The processes can be run in parallel or sequentially. As a result, the time required for the diagnostic process can be shortened as compared with the first embodiment.

なお、第2実施形態では、S504〜S508が直列実行部としての処理に相当し、S509〜S511が並列実行部としての処理に相当する。
[3.他の実施形態]
以上、本開示の実施形態について説明したが、本開示は、上記各実施形態に限定されることなく、種々の形態を採り得ることは言うまでもない。
In the second embodiment, S504 to S508 correspond to the processing as the serial execution unit, and S509 to S511 correspond to the processing as the parallel execution unit.
[3. Other Embodiments]
Although the embodiments of the present disclosure have been described above, it goes without saying that the present disclosure is not limited to the above-described embodiments and can take various forms.

(3a)上記各実施形態では、1つの車載制御装置100が、診断処理を実行可能なアプリケーションを2つ有する構成を例示したが、診断処理を実行可能なアプリケーションの数はこれに限定されるものではない。例えば、1つの車載制御装置が、診断処理を実行可能なアプリケーションを3つ以上有する構成であってもよい。この場合における図6に示す第2実施形態のダイアグ制御処理は、ダイアグ・通信制御アプリケーションが、S511で並列診断処理が可能な診断アプリケーションの計時処理を終了した後、S503に戻り、診断処理がまだ実行されていない診断アプリケーションの並列診断処理が可能か否かを判定する構成としてもよい。 (3a) In each of the above embodiments, one in-vehicle control device 100 exemplifies a configuration having two applications capable of executing diagnostic processing, but the number of applications capable of executing diagnostic processing is limited to this. is not. For example, one in-vehicle control device may have a configuration including three or more applications capable of executing the diagnostic process. In the diagnostic control process of the second embodiment shown in FIG. 6 in this case, the diagnostic/communication control application returns to S503 after the diagnostic application capable of performing the parallel diagnostic process in S511 ends, and then the diagnostic process is still performed. It may be configured to determine whether or not parallel diagnosis processing of a diagnosis application that has not been executed is possible.

(3b)上記各実施形態では、車両の外部にある診断装置200を例示したが、診断装置のある場所については特に限定されるものではない。例えば、診断装置は、車両の内部にあるものであってもよい。 (3b) In each of the above embodiments, the diagnostic device 200 outside the vehicle is illustrated, but the location of the diagnostic device is not particularly limited. For example, the diagnostic device may be inside the vehicle.

(3c)上記各実施形態では、診断処理が実行される順番として、ターゲットアドレスが若い順を例示したが、これ以外の順番であってもよい。
(3d)上記第2実施形態では、診断メッセージに含まれる種類データがあらかじめ定められた種類である場合に、並列診断処理を実行させるダイアグ制御処理を例示した。しかし、ダイアグ制御処理はこれに限定されるものではなく、並列診断処理が実行可能であるか否かを他の方法によって判定してもよい。
(3c) In each of the above-described embodiments, the order in which the diagnostic processing is executed is the order in which the target addresses are young, but the order may be other than this.
(3d) In the second embodiment, the diagnosis control process for executing the parallel diagnostic process when the type data included in the diagnostic message is of a predetermined type has been illustrated. However, the diagnosis control process is not limited to this, and whether or not the parallel diagnosis process can be executed may be determined by another method.

例えば、第1変形例のダイアグ・通信制御アプリケーションは、第2実施形態の並列診断処理とは異なる並列診断処理を実行する。具体的には、第1変形例のダイアグ・通信制御アプリケーションは、並列診断処理の判定において、種類データの代わりに、受信した診断メッセージから算出される返信データの情報である、返信データ長を用いる点で第2実施形態の並列診断処理と相違する。 For example, the diagnostic/communication control application of the first modified example executes a parallel diagnostic process different from the parallel diagnostic process of the second embodiment. Specifically, the diagnosis/communication control application of the first modified example uses the reply data length, which is the information of the reply data calculated from the received diagnostic message, instead of the type data, in the determination of the parallel diagnostic processing. It is different from the parallel diagnostic processing of the second embodiment in the point.

ここで、返信データ長について説明する。第2実施形態で前述したように、返信データの返信データ長は、種類データ及び診断に必要なデータに応じてあらかじめ決まっており、返信データ長は、受信した診断メッセージから算出できる。算出した返信データ長の情報を利用し、ダイアグ・通信制御アプリケーションは、並列診断処理が実行可能であるか否かを判定する。具体的には、ダイアグ・通信制御アプリケーションは、診断メッセージを受信した時点で、各診断アプリケーションの返信データ長を合計し、合計した合計値があらかじめ定められた閾値以下である場合、並列診断処理が実行可能であると判定する。この例では、ダイアグ・通信制御アプリケーションは、診断メッセージに含まれている、第1の診断アプリケーション101の返信データのデータ長と、第2の診断アプリケーション102の返信データのデータ長とを合計し、合計値と閾値とを比較することで、並列診断処理の判定を行う。なお、閾値は、応答バッファ203のバッファ長を超すことがない値、例えばバッファ長と同じ値に設定されている。 Here, the reply data length will be described. As described above in the second embodiment, the reply data length of the reply data is predetermined according to the type data and the data necessary for diagnosis, and the reply data length can be calculated from the received diagnostic message. Using the information on the calculated reply data length, the diagnosis/communication control application determines whether or not parallel diagnostic processing can be executed. Specifically, the diagnostic/communication control application sums the reply data lengths of the diagnostic applications at the time of receiving the diagnostic message, and if the sum total value is equal to or less than a predetermined threshold value, the parallel diagnostic process is performed. Determined to be executable. In this example, the diagnostic/communication control application sums the data length of the reply data of the first diagnostic application 101 and the data length of the reply data of the second diagnostic application 102 included in the diagnostic message, By comparing the total value and the threshold value, the parallel diagnostic processing is determined. The threshold is set to a value that does not exceed the buffer length of the response buffer 203, for example, the same value as the buffer length.

合計値が閾値よりも大きい場合、ダイアグ・通信制御アプリケーションは、並列診断処理が実行不可能であると判定し、第1の診断アプリケーション101及び第2の診断アプリケーション102に順に診断処理を実行させる。 When the total value is larger than the threshold value, the diagnosis/communication control application determines that the parallel diagnostic processing cannot be executed, and causes the first diagnostic application 101 and the second diagnostic application 102 to sequentially execute the diagnostic processing.

一方、合計値が閾値以下である場合、ダイアグ・通信制御アプリケーションは、並列診断処理が実行可能であると判定し、第1の診断アプリケーション101及び第2の診断アプリケーション102に並行して診断処理を実行させる。 On the other hand, when the total value is less than or equal to the threshold value, the diagnostic/communication control application determines that parallel diagnostic processing can be performed, and executes the diagnostic processing in parallel with the first diagnostic application 101 and the second diagnostic application 102. Let it run.

このような構成によれば、前述した第2実施形態と同様の効果が得られる。
(3e)上記各実施形態における1つの構成要素が有する機能を複数の構成要素として分散させたり、複数の構成要素が有する機能を1つの構成要素に統合したりしてもよい。また、上記各実施形態の構成の一部を省略してもよい。また、上記各実施形態の構成の少なくとも一部を、他の上記各実施形態の構成に対して付加、置換等してもよい。なお、特許請求の範囲に記載の文言から特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。
With such a configuration, the same effect as that of the above-described second embodiment can be obtained.
(3e) The function of one component in each of the above embodiments may be distributed as a plurality of components, or the functions of a plurality of components may be integrated into one component. Moreover, you may omit a part of structure of each said embodiment. Further, at least a part of the configuration of each of the above-described embodiments may be added to or replaced with the configuration of the other above-described embodiments. Note that all aspects included in the technical idea specified by the wording of the claims are the embodiments of the present disclosure.

(3f)本開示は、前述した車載制御装置の他、当該車載制御装置を構成要素とするシステム、当該車載制御装置としてコンピュータを機能させるためのプログラム、このプログラムを記録した媒体、及び診断方法など、種々の形態で実現することができる。 (3f) In addition to the above-described vehicle-mounted control device, the present disclosure discloses a system including the vehicle-mounted control device as a component, a program for causing a computer to function as the vehicle-mounted control device, a medium storing the program, a diagnostic method, and the like. , Can be realized in various forms.

1…マイコン、2…入出力回路、3…センサ、4…アクチュエータ、5…通信部、10…ROM、20…RAM、30…CPU、40…I/O、50…データフラッシュ、60…タイマ、100…車載制御装置、101…第1の診断アプリケーション、102…第2の診断アプリケーション、103…ダイアグ・通信制御アプリケーション、200…診断装置、201…ダイアグデータ領域、202…要求バッファ、203…応答バッファ、204…通信タイマ領域。 1... Microcomputer, 2... Input/output circuit, 3... Sensor, 4... Actuator, 5... Communication part, 10... ROM, 20... RAM, 30... CPU, 40... I/O, 50... Data flash, 60... Timer, 100... On-vehicle control device, 101... First diagnostic application, 102... Second diagnostic application, 103... Diagnosis/communication control application, 200... Diagnostic device, 201... Diagnosis data area, 202... Request buffer, 203... Response buffer , 204... Communication timer area.

Claims (2)

車両に搭載され、診断装置(200)からの診断メッセージに対する診断処理を実行する車載制御装置(100)であって、
第1の診断処理を実行する第1の処理部(101)と、
第2の診断処理を実行する第2の処理部(102)と、
前記診断メッセージを受信した場合、前記第1の処理部及び前記第2の処理部のうち少なくとも一方に前記診断処理を実行させ、前記診断処理を実行した結果を、返信データとして前記診断装置に送信する送信処理を行う管理実行部(103)と、
前記送信処理において、前記返信データを一時的に格納する応答バッファと、
を備え、
前記管理実行部は、
前記第1の処理部を指定した前記診断メッセージを受信した場合、前記第1の処理部に前記診断処理を実行させ、前記第2の処理部を指定した前記診断メッセージを受信した場合、前記第2の処理部に前記診断処理を実行させる、単独実行部(S101〜S105)と、
前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信した場合、前記第1の処理部及び前記第2の処理部に順に前記診断処理を実行させる、直列実行部(S303〜S307,S504〜S508)と、
前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信した場合、前記第1の処理部及び前記第2の処理部に並行して前記診断処理を実行させる、並列実行部(S509〜S511)と、
を備え
前記並列実行部は、前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信し、前記診断メッセージの種類があらかじめ定められた種類である場合に、前記第1の処理部及び前記第2の処理部に並行して前記診断処理を実行させ、
前記直列実行部(S504〜S508)は、前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信し、前記診断メッセージの種類が前記あらかじめ定められた種類でない場合、前記第1の処理部及び前記第2の処理部に順に前記診断処理を実行させる、車載制御装置。
An in-vehicle control device (100) mounted on a vehicle and executing a diagnostic process for a diagnostic message from a diagnostic device (200),
A first processing unit (101) for executing a first diagnostic process,
A second processing unit (102) that executes a second diagnostic process;
When the diagnostic message is received, at least one of the first processing unit and the second processing unit is caused to execute the diagnostic process, and the result of executing the diagnostic process is transmitted to the diagnostic device as reply data. A management execution unit (103) that performs a transmission process that
In the transmitting process, a response buffer that temporarily stores the reply data,
Equipped with
The management execution unit,
When the diagnostic message designating the first processing unit is received, the first processing unit is caused to execute the diagnostic process, and when the diagnostic message designating the second processing unit is received, A single execution unit (S101 to S105) for causing the second processing unit to execute the diagnosis process;
When the diagnostic message designating both the first processing unit and the second processing unit is received, the first processing unit and the second processing unit are caused to sequentially execute the diagnostic processing, serial execution Parts (S303 to S307, S504 to S508),
When the diagnostic message specifying both the first processing unit and the second processing unit is received, the first processing unit and the second processing unit are caused to execute the diagnostic process in parallel. A parallel execution unit (S509 to S511),
Equipped with
The parallel execution unit receives the diagnostic message specifying both the first processing unit and the second processing unit, and if the type of the diagnostic message is a predetermined type, To execute the diagnosis process in parallel with the processing unit of
When the serial execution unit (S504 to S508) receives the diagnostic message specifying both the first processing unit and the second processing unit, and the type of the diagnostic message is not the predetermined type. An in- vehicle control device that causes the first processing unit and the second processing unit to sequentially perform the diagnostic processing .
車両に搭載され、診断装置(200)からの診断メッセージに対する診断処理を実行する車載制御装置(100)であって、
第1の診断処理を実行する第1の処理部(101)と、
第2の診断処理を実行する第2の処理部(102)と、
前記診断メッセージを受信した場合、前記第1の処理部及び前記第2の処理部のうち少なくとも一方に前記診断処理を実行させ、前記診断処理を実行した結果を、返信データとして前記診断装置に送信する送信処理を行う管理実行部(103)と、
前記送信処理において、前記返信データを一時的に格納する応答バッファと、
を備え、
前記管理実行部は、
前記第1の処理部を指定した前記診断メッセージを受信した場合、前記第1の処理部に前記診断処理を実行させ、前記第2の処理部を指定した前記診断メッセージを受信した場合、前記第2の処理部に前記診断処理を実行させる、単独実行部(S101〜S105)と、
前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信した場合、前記第1の処理部及び前記第2の処理部に順に前記診断処理を実行させる、直列実行部(S303〜S307,S504〜S508)と、
前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信した場合、前記第1の処理部及び前記第2の処理部に並行して前記診断処理を実行させる、並列実行部(S509〜S511)と、
を備え
前記並列実行部は、前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信し、前記第1の処理部が前記診断処理を実行した結果を表す第1の返信データのデータ量と前記第2の処理部が前記診断処理を実行した結果を表す第2の返信データのデータ量との合計が、あらかじめ定められた閾値以下であると判断した場合に、前記第1の処理部及び前記第2の処理部に並行して前記診断処理を実行させ、
前記直列実行部(S504〜S508)は、前記第1の処理部及び前記第2の処理部の両方を指定した前記診断メッセージを受信し、前記第1の返信データのデータ量と前記第2の返信データのデータ量との合計が前記閾値よりも大きいと判断した場合に、前記第1の処理部及び前記第2の処理部に順に前記診断処理を実行させる、車載制御装置。
An in-vehicle control device (100) mounted on a vehicle and executing a diagnostic process for a diagnostic message from a diagnostic device (200),
A first processing unit (101) for executing a first diagnostic process,
A second processing unit (102) that executes a second diagnostic process;
When the diagnostic message is received, at least one of the first processing unit and the second processing unit is caused to execute the diagnostic process, and the result of executing the diagnostic process is transmitted to the diagnostic device as reply data. A management execution unit (103) that performs a transmission process that
In the transmitting process, a response buffer that temporarily stores the reply data,
Equipped with
The management execution unit,
When the diagnostic message designating the first processing unit is received, the first processing unit is caused to execute the diagnostic process, and when the diagnostic message designating the second processing unit is received, A single execution unit (S101 to S105) for causing the second processing unit to execute the diagnosis process;
When the diagnostic message designating both the first processing unit and the second processing unit is received, the first processing unit and the second processing unit are caused to sequentially execute the diagnostic processing, serial execution Parts (S303 to S307, S504 to S508),
When the diagnostic message specifying both the first processing unit and the second processing unit is received, the first processing unit and the second processing unit are caused to execute the diagnostic process in parallel. A parallel execution unit (S509 to S511),
Equipped with
The parallel execution unit receives the diagnostic message that specifies both the first processing unit and the second processing unit, and represents a result of execution of the diagnostic process by the first processing unit. When it is determined that the total of the data amount of the reply data and the data amount of the second reply data indicating the result of the diagnosis process performed by the second processing unit is equal to or less than a predetermined threshold value, Causing the first processing unit and the second processing unit to execute the diagnostic processing in parallel,
The serial execution unit (S504 to S508) receives the diagnostic message that specifies both the first processing unit and the second processing unit, and determines the data amount of the first reply data and the second response data. An in- vehicle control device that causes the first processing unit and the second processing unit to sequentially perform the diagnostic process when it is determined that the total amount of the return data and the data amount is larger than the threshold value .
JP2016243207A 2016-12-15 2016-12-15 In-vehicle control device Active JP6717184B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016243207A JP6717184B2 (en) 2016-12-15 2016-12-15 In-vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016243207A JP6717184B2 (en) 2016-12-15 2016-12-15 In-vehicle control device

Publications (2)

Publication Number Publication Date
JP2018095142A JP2018095142A (en) 2018-06-21
JP6717184B2 true JP6717184B2 (en) 2020-07-01

Family

ID=62634514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016243207A Active JP6717184B2 (en) 2016-12-15 2016-12-15 In-vehicle control device

Country Status (1)

Country Link
JP (1) JP6717184B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7211036B2 (en) * 2018-11-28 2023-01-24 株式会社デンソー Vehicle electronic controller and diagnostic system
CN113341933B (en) * 2021-06-23 2022-08-19 中国第一汽车股份有限公司 Diagnostic system and method for vehicle central controller

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4306474B2 (en) * 2004-01-29 2009-08-05 株式会社デンソー Vehicle occupant protection system
JP5050653B2 (en) * 2007-05-28 2012-10-17 株式会社デンソー Electronic control device
JP5542760B2 (en) * 2011-09-20 2014-07-09 日立オートモティブシステムズ株式会社 In-vehicle control device
JP5966697B2 (en) * 2012-07-06 2016-08-10 トヨタ自動車株式会社 Information processing device
KR101491260B1 (en) * 2013-06-07 2015-02-06 현대자동차주식회사 ECU Multiple Diagnostic System and Method on Vehicle Network
JP6295113B2 (en) * 2014-03-17 2018-03-14 ルネサスエレクトロニクス株式会社 Self-diagnosis device and self-diagnosis method

Also Published As

Publication number Publication date
JP2018095142A (en) 2018-06-21

Similar Documents

Publication Publication Date Title
US9294412B2 (en) Controller area network (CAN) worst-case message latency with priority inversion
JP2007034359A (en) Distributed control system
KR20160081797A (en) Computing system with buffer and method of operation thereof
JP6717184B2 (en) In-vehicle control device
JP2015225574A (en) Control device, control method and program
JP4042790B2 (en) Electrical device and method for determining normal communication function in electrical device
JP5091694B2 (en) Information processing system and information processing program
CN110278716B (en) PLC, network unit, CPU unit, and data transfer method
JP2015215684A (en) Information processing apparatus and information processing program
JP6146306B2 (en) I / O device control system and control method of I / O device control system
JP2017033159A (en) On-vehicle electronic control device
CN109783021A (en) Data-storage system and data storage, read method, device, electronic equipment
JP2015014962A (en) Arithmetic device, arithmetic method, and program
JP6416488B2 (en) Semiconductor device
JP2007213304A (en) Cache memory system and multiprocessor system
JP5334173B2 (en) Data transfer system and retry control method
JP6768021B2 (en) Converter, conversion method and conversion program
JP6433623B2 (en) Data processing apparatus, data processing method, and data processing program
JP6384359B2 (en) Information processing apparatus having distributed shared memory, method, and program
JP6392556B2 (en) Access request issuing device, access request issuing system, access request issuing method, and access request issuing program
JP2005301714A (en) Multi-cpu system, its data transfer method, and its program
JP6394291B2 (en) Electronic control device and memory rewriting method
JP2024008514A (en) Vehicle control device
JP6100551B2 (en) Electronics
JP2007320079A (en) Image forming controlling apparatus and method for controlling image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190313

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200302

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200512

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200525

R151 Written notification of patent or utility model registration

Ref document number: 6717184

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250