[go: up one dir, main page]

JP2013233904A - Electronic control system - Google Patents

Electronic control system Download PDF

Info

Publication number
JP2013233904A
JP2013233904A JP2012108804A JP2012108804A JP2013233904A JP 2013233904 A JP2013233904 A JP 2013233904A JP 2012108804 A JP2012108804 A JP 2012108804A JP 2012108804 A JP2012108804 A JP 2012108804A JP 2013233904 A JP2013233904 A JP 2013233904A
Authority
JP
Japan
Prior art keywords
ecu
data
proxy
request
response signal
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.)
Pending
Application number
JP2012108804A
Other languages
Japanese (ja)
Inventor
Takayuki Mineyama
貴行 峯山
Makoto Tabei
誠 田部井
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 JP2012108804A priority Critical patent/JP2013233904A/en
Publication of JP2013233904A publication Critical patent/JP2013233904A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic control system which prevents the hindering of an original control process of an in-vehicle ECU even if data acquisition requests are issued frequently from the outside.SOLUTION: An ECU-A10 specified as a data-sender ECU measures its processing load, and when the measured processing load exceeds a first level, asks the other ECU-B20 which possesses the same data to transmit a response signal as a proxy. This allows the ECU-A10 to avoid the case of an increased processing load. When transmitting a response signal as the proxy, the ECU-B20 makes the response signal to which an ID of the ECU-A10 specified as the data-sender ECU is attached. Therefore, even if an ECU different from the data-sender ECU specified by an OBD2 user device 60 transmits a response signal, the OBD2 user device 60 can recognize the transmitted response signal as the response signal from the specified data-sender ECU.

Description

本発明は、ネットワーク接続された複数のECUを有し、それら複数のECUの中の少なくとも1つのECUが、外部装置から、データの送信を要求する要求信号を受信したとき、その要求信号に応じて、当該ECUが保有しているデータを含む応答信号を外部装置に送信する電子制御システムに関する。   The present invention includes a plurality of ECUs connected to a network, and when at least one of the plurality of ECUs receives a request signal for requesting data transmission from an external device, the ECU responds to the request signal. The present invention also relates to an electronic control system that transmits a response signal including data held by the ECU to an external device.

例えば、特許文献1には、車両に搭載された複数の電子制御装置と、それら複数の電子制御装置に外部接続用コネクタを介して接続され、当該複数の電子制御装置の入出力データを診断する車両診断装置とからなる車両診断システムが開示されている。   For example, in Patent Document 1, a plurality of electronic control devices mounted on a vehicle and connected to the plurality of electronic control devices via an external connection connector are used to diagnose input / output data of the plurality of electronic control devices. A vehicle diagnostic system including a vehicle diagnostic device is disclosed.

特開平1−247741号公報JP-A-1-247774

近年、車両に装備されている故障診断用コネクタであるOBD2コネクタに、スマートフォンなどの携帯型情報端末を接続して、車両に関する様々なデータを車載ECUから取得して表示する技術が普及しつつある。   2. Description of the Related Art In recent years, a technique for connecting a portable information terminal such as a smartphone to an OBD2 connector, which is a failure diagnosis connector installed in a vehicle, and acquiring and displaying various data related to the vehicle from an in-vehicle ECU is becoming widespread. .

このような、車両に関するデータを取得する携帯型情報端末(以下、OBD2ユーザデバイスと呼ぶ)が使用されることで、車載ECUにデータ取得要求が行われた場合、車載ECUはそのデータ取得要求に対して応答する必要が生じる。このため、OBD2ユーザデバイスによって頻繁にデータ取得要求が出されると、その受信及び応答処理のために車載ECUの処理負荷が増加し、本来、車載ECUが実施すべき制御処理に支障をきたす虞が生じる。   When a data acquisition request is made to the in-vehicle ECU by using such a portable information terminal (hereinafter referred to as an OBD2 user device) that acquires data relating to the vehicle, the in-vehicle ECU makes a request for the data acquisition. It is necessary to respond to this. For this reason, if a data acquisition request is frequently issued by the OBD2 user device, the processing load of the in-vehicle ECU increases due to the reception and response processing, and there is a possibility that the control processing that the in-vehicle ECU should originally perform may be hindered. Arise.

本発明は、このような点に鑑みてなされたもので、外部からのデータ取得要求が頻繁に行われる場合であっても、極力、車載ECUの本来の制御処理に支障が生じることを防止することが可能な電子制御システムを提供することを目的とする。   The present invention has been made in view of the above points, and prevents the occurrence of problems in the original control processing of the in-vehicle ECU as much as possible even when external data acquisition requests are frequently made. It is an object of the present invention to provide an electronic control system capable of performing the above.

上述した目的を達成するために、請求項1に記載の電子制御システムは、それぞれ固有のIDが付与され、ネットワーク接続された複数のECU(10、20、30)を有し、それら複数のECUの中の少なくとも1つのECUは、前記ネットワークに接続された外部装置(60)から、前記IDを用いてデータ送信元ECUが指定された、データの送信を要求する要求信号を受信したとき、その要求信号に応じて、当該ECUが保有しているデータを含む応答信号を前記外部装置に送信するものであって、
前記データ送信元ECUとして指定されるECUは、
自身の処理負荷を計測する計測手段(S130)と、
前記計測手段によって計測された処理負荷が所定の第1のレベルを超えた場合に、同じデータを保有している他のECUに対して、代理として応答信号の送信を行うよう依頼する依頼手段(S140、S170、S200)と、備え、
前記他のECUは、代理として前記外部装置に前記応答信号を送信する際に、前記データ送信元ECUとして指定されたECUのIDを付加した応答信号を作成して、前記外部装置に向けて送信する送信制御手段(S380、S390)を備えることを特徴とする。
In order to achieve the above-described object, the electronic control system according to claim 1 has a plurality of ECUs (10, 20, 30) each having a unique ID and network-connected, and the plurality of ECUs. When at least one of the ECUs receives from the external device (60) connected to the network a request signal for requesting data transmission, designated by the data transmission source ECU using the ID, In response to a request signal, a response signal including data held by the ECU is transmitted to the external device,
The ECU designated as the data transmission source ECU is:
Measuring means (S130) for measuring its own processing load;
Request means for requesting another ECU having the same data to transmit a response signal as a proxy when the processing load measured by the measurement means exceeds a predetermined first level. S140, S170, S200), and
When the other ECU transmits the response signal to the external device as a substitute, the other ECU creates a response signal to which the ID of the ECU designated as the data transmission source ECU is added and transmits the response signal to the external device Transmission control means (S380, S390) to be provided.

上記のように、データ送信元ECUとして指定されるECUは、自身の処理負荷を計測し、その計測された処理負荷が第1のレベルを超えた場合に、同じデータを保有している他のECUに、応答信号の代理送信を依頼する。従って、データ送信元ECUとして指定されたECUにおいて、外部装置からのデータ送信要求に応えるために、処理負荷が増大する事態の発生を回避することが可能となる。また、他のECUが応答信号を代理送信する場合には、データ送信元ECUとして指定されたECUのIDを付加した応答信号を作成する。従って、外部装置が指定したデータ送信元ECUとは異なる他のECUが応答信号を送信しても、外部装置には、指定したデータ送信元ECUからの応答信号と認識させることが可能となる。   As described above, the ECU designated as the data transmission source ECU measures its own processing load, and when the measured processing load exceeds the first level, other ECUs holding the same data The ECU is requested to perform proxy transmission of a response signal. Therefore, in the ECU designated as the data transmission source ECU, it is possible to avoid a situation in which the processing load increases in order to respond to the data transmission request from the external device. When another ECU transmits a response signal by proxy, a response signal to which the ID of the ECU designated as the data transmission source ECU is added is created. Therefore, even if another ECU different from the data transmission source ECU designated by the external device transmits the response signal, the external device can recognize the response signal from the designated data transmission source ECU.

なお、上記括弧内の参照番号は、本発明の理解を容易にすべく、後述する実施形態における具体的な構成との対応関係の一例を示すものにすぎず、なんら本発明の範囲を制限することを意図したものではない。   Note that the reference numerals in the parentheses merely show an example of a correspondence relationship with a specific configuration in an embodiment described later in order to facilitate understanding of the present invention, and limit the scope of the present invention. It is not intended.

また、上述した特徴以外の本発明の特徴に関しては、後述する実施形態の説明及び添付図面から明らかになる。   Further, the features of the present invention other than the features described above will be apparent from the description of embodiments and the accompanying drawings described later.

実施形態に係る電子制御システムの構成を示す構成図である。It is a block diagram which shows the structure of the electronic control system which concerns on embodiment. 各ECU及びOBD2ユーザデバイス間での通信に用いられるCANフレームのフォーマットを示す図である。It is a figure which shows the format of the CAN frame used for communication between each ECU and OBD2 user device. 定義されたCAN−IDの一覧を示す図である。It is a figure which shows the list of defined CAN-ID. ECU−Aが、OBD2ユーザデバイスによってデータ送信元ECUとして指定された場合に、そのECU−Aが他のECUに向けて送信するCANフレームの一例を示す図である。When ECU-A is designated as data transmission origin ECU by an OBD2 user device, it is a figure which shows an example of the CAN flame | frame which ECU-A transmits toward other ECU. ECU−Bが、ECU−Aから代理送信の依頼を受けた場合に、そのECU−Bが他のECUに向けて送信するCANフレームの一例を示す図である。When ECU-B receives a request for proxy transmission from ECU-A, it is a diagram illustrating an example of a CAN frame that ECU-B transmits to another ECU. OBD2ユーザデバイスが、ECU−Aにデータ送信要求(データモニタ要求)を行う場合に送信するCANフレームの一例を示す図である。It is a figure which shows an example of the CAN frame transmitted when an OBD2 user device makes a data transmission request (data monitor request) to ECU-A. ECU−Aが、OBD2ユーザデバイスからデータ送信要求を受けて、その応答信号をOBD2ユーザデバイスに返送する場合のCANフレームの一例を示す図である。It is a figure which shows an example of a CAN frame when ECU-A receives a data transmission request from an OBD2 user device and returns a response signal to the OBD2 user device. 各ECUが保有するデータに関する情報をまとめたテーブルである。It is the table which summarized the information regarding the data which each ECU holds. ECU−Aが、OBD2ユーザデバイスからデータの送信を要求する信号(CANフレーム)を受信したときに、割り込みにより実行される処理を示すフローチャートである。It is a flowchart which shows the process performed by interruption, when ECU-A receives the signal (CAN frame) which requests | requires transmission of data from an OBD2 user device. ECU間において、センサ検出値や演算値を送信するために、ECU−Aにおいて定期的に繰り返し実行される処理を示すフローチャートである。It is a flowchart which shows the process periodically repeated in ECU-A in order to transmit a sensor detection value and a calculated value between ECUs. 代理送信を依頼した他のECUからの定期送信信号を受信したときに、ECU−Aにおいて、割り込みにより実行される処理を示すフローチャートである。It is a flowchart which shows the process performed by interruption in ECU-A, when the regular transmission signal from other ECU which requested proxy transmission is received. ECU−Aからの定期送信信号を受信したときに、ECU−Bにおいて、割り込みにより実行される処理を示すフローチャートである。It is a flowchart which shows the process performed by interruption in ECU-B, when the regular transmission signal from ECU-A is received. ECU間において、センサ検出値や演算値を送信するために、ECU−Bにおいて、定期的に繰り返し実行される処理を示すフローチャートである。It is a flowchart which shows the process periodically and repeatedly performed in ECU-B in order to transmit a sensor detection value and a calculated value between ECUs. ECU−Bが、OBD2ユーザデバイスからデータの送信を要求する信号(CANフレーム)を受信したときに、割り込みにより実行する処理を示すフローチャートであるIt is a flowchart which shows the process performed by interruption when ECU-B receives the signal (CAN frame) which requests | requires transmission of data from an OBD2 user device. OBD2ユーザデバイスから最初にデータ送信要求信号が出力されたときに、ECU−Aが行う処理を示す説明図である。It is explanatory drawing which shows the process which ECU-A performs when the data transmission request signal is first output from an OBD2 user device. OBD2ユーザデバイスから2回目以降のデータ送信要求信号が出力されたときに、ECU−Bが行う処理を示す説明図である。It is explanatory drawing which shows the process which ECU-B performs when the data transmission request signal after the 2nd time is output from the OBD2 user device. 処理負荷が、平準化される様子を概念的に示す説明図である。It is explanatory drawing which shows notionally a mode that a processing load is equalized.

以下、本発明の実施形態に係る電子制御システムについて、図面を参照しつつ説明する。   Hereinafter, an electronic control system according to an embodiment of the present invention will be described with reference to the drawings.

図1に示すように、本実施形態による電子制御システムは、ネットワーク接続された複数のECU(ECU−A10、ECU−B20,ECU−C30,…)を有している。例えば、電子制御システムは、車両の駆動力を制御するために適用可能なものであって、その場合、各ECU(ECU−A10、ECU−B20,ECU−C30)は、エンジンの燃料噴射量、点火時期、バルブタイミング、スロットル開度、トランスミッションのギヤ位置などをそれぞれ制御する。   As shown in FIG. 1, the electronic control system according to the present embodiment includes a plurality of ECUs (ECU-A10, ECU-B20, ECU-C30,...) Connected to a network. For example, the electronic control system can be applied to control the driving force of the vehicle, and in this case, each ECU (ECU-A10, ECU-B20, ECU-C30) is an engine fuel injection amount, It controls ignition timing, valve timing, throttle opening, transmission gear position, and so on.

各ECU(ECU−A10、ECU−B20,ECU−C30)は、データの共有化や協調制御を行うため、車両に設けられたローカルエリアネットワーク(車内LAN)40を介して相互に通信可能に接続されている。この相互通信においては、通信プロトコルとして、例えばCANプロトコルが用いられる。   Each ECU (ECU-A10, ECU-B20, ECU-C30) is communicably connected to each other via a local area network (in-vehicle LAN) 40 provided in the vehicle for data sharing and cooperative control. Has been. In this mutual communication, for example, a CAN protocol is used as a communication protocol.

車内LAN40には、故障診断用コネクタであるOBD2コネクタ50が設けられている。このOBD2コネクタは、例えば車両が不調となったとき、ディーラー等において、ダイアグ装置を接続するために設けられている。このダイアグ装置を用いて、ダイアグコードなどの内部データを各ECU(ECU−A10、ECU−B20,ECU−C30)から読み出すことにより、車両の正常、異常の判断や、異常部位の特定を容易に行うことができる。   The in-vehicle LAN 40 is provided with an OBD2 connector 50 that is a failure diagnosis connector. The OBD2 connector is provided for connecting a diagnostic device at a dealer or the like, for example, when the vehicle is malfunctioning. Using this diagnostic device, internal data such as diagnostic codes are read from each ECU (ECU-A10, ECU-B20, ECU-C30), making it easy to determine whether the vehicle is normal or abnormal and to identify abnormal parts. It can be carried out.

ただし、近年では、スマートフォンやタブレットPCなどの携帯型情報端末のアプリケーションとして、OBD2コネクタ50を介して車両の様々なデータ(エンジン回転数、空気流量、アクセル開度、燃料噴射量など)を取得し、それをそのままもしくは加工して表示するものがある。このようなアプリケーションをインストールした携帯型情報端末(以下、OBD2ユーザデバイス)60が、OBD2コネクタ50に有線もしくは無線にて接続され、特定のECUに対してデータ送信要求を頻繁に行うと、そのECUにおいて、本来実施されるべき制御処理に支障が生じる虞がある。   However, in recent years, as an application for portable information terminals such as smartphones and tablet PCs, various vehicle data (engine speed, air flow rate, accelerator opening, fuel injection amount, etc.) are acquired via the OBD2 connector 50. Some of them are displayed as they are or after being processed. When a portable information terminal (hereinafter referred to as an OBD2 user device) 60 in which such an application is installed is connected to the OBD2 connector 50 by wire or wirelessly and frequently sends data requests to a specific ECU, the ECU However, there is a risk that the control process that should be originally performed may be hindered.

そのため、本実施形態では、データ送信要求対象となったECU(データ送信元ECUとして指定されたECU)における処理負荷を計測し、その処理負荷が所定の第1レベルを超えた場合には、送信すべき同じデータを保有している他のECUが、代理して応答することを可能としたものである。この点については、後に詳細に説明する。   Therefore, in the present embodiment, the processing load in the ECU (the ECU designated as the data transmission source ECU) that is the data transmission request target is measured, and if the processing load exceeds a predetermined first level, the transmission is performed. Other ECUs having the same data to be allowed can respond on behalf of them. This point will be described in detail later.

図2は、各ECU((ECU−A10、ECU−B20,ECU−C30)及びOBD2ユーザデバイス60間での通信に用いられるCANフレームのフォーマットの一例を示す図である。このCANフレームでは、その先頭に、送信元を識別するとともに送信先を特定するためのCAN−IDを記録するためのCAN−ID部が設けられている。   2 is a diagram illustrating an example of a format of a CAN frame used for communication between each ECU ((ECU-A10, ECU-B20, ECU-C30)) and the OBD2 user device 60. In this CAN frame, At the beginning, a CAN-ID section for recording a CAN-ID for identifying a transmission source and specifying a transmission destination is provided.

このCAN−IDに関して、以下に詳しく説明する。本実施形態では、例えば図3に示すように、CAN−IDが定義されている。例えば、CAN−IDが「7E0」の場合、送信元はOBD2ユーザデバイス60であり、送信先はECU−A10であることを意味し、「7E1」の場合、送信元はOBD2ユーザデバイス60であり、送信先はECU−B20であることを意味し、「7E2」の場合、送信元はOBD2ユーザデバイス60であり、送信先はECU−C30であることを意味する。また、CAN−IDが「7E8」の場合、送信元はECU−A10であり、送信先はOBD2ユーザデバイス60であることを意味し、「7E9」の場合、送信元はECU−B20であり、送信先はOBD2ユーザデバイス60であることを意味し、「7EA」の場合、送信元はECU−C30であり、送信先はOBD2ユーザデバイス60であることを意味する。   This CAN-ID will be described in detail below. In the present embodiment, for example, CAN-ID is defined as shown in FIG. For example, when the CAN-ID is “7E0”, the transmission source is the OBD2 user device 60 and the transmission destination is the ECU-A10. When the CAN-ID is “7E1”, the transmission source is the OBD2 user device 60. Means that the transmission destination is ECU-B20. In the case of “7E2,” it means that the transmission source is the OBD2 user device 60 and the transmission destination is ECU-C30. When the CAN-ID is “7E8”, the transmission source is the ECU-A10, and the transmission destination is the OBD2 user device 60. When the CAN-ID is “7E9”, the transmission source is the ECU-B20. This means that the transmission destination is the OBD2 user device 60. In the case of “7EA”, the transmission source is the ECU-C30, and the transmission destination is the OBD2 user device 60.

なお、各ECU(ECU−A10、ECU−B20,ECU−C30)間の通信においては、送信先ECUとして、自身以外のECUを一括して指定することが可能なように、CAN−IDが定められている。例えば、電子制御システムが、ECU−A10、ECU−B20、及びECU−C30からなる場合、CAN−IDとして「120」を用いるケースでは、送信元はECU−A10、送信先はその他のECU−B20及びECU−C30となる。同様に、CAN−IDとして「121」を用いるケースでは、送信元はECU−B20、送信先はECU−A10及びECU−C30となり、「122」を用いるケースでは、送信元はECU−C30、送信先はECU−A10及びECU−B20となる。   In communication between each ECU (ECU-A10, ECU-B20, ECU-C30), a CAN-ID is determined so that an ECU other than itself can be collectively designated as a transmission destination ECU. It has been. For example, when the electronic control system is composed of ECU-A10, ECU-B20, and ECU-C30, when “120” is used as the CAN-ID, the transmission source is ECU-A10, and the transmission destination is other ECU-B20. And ECU-C30. Similarly, in the case where “121” is used as the CAN-ID, the transmission source is ECU-B20 and the transmission destinations are ECU-A10 and ECU-C30. In the case where “122” is used, the transmission source is ECU-C30. The destination is ECU-A10 and ECU-B20.

再び図2を参照すると、CANフレームでは、先頭のCAN−ID部に続いて、DATA部が定められている。このDATA部には、他のECUとの共用等のため、図示しない各種のセンサにて検出された検出値や、各ECUでの演算値が格納されたり、他のECUへの代理送信の依頼や、その依頼に対する受諾・拒否の回答などが格納されたりする。さらに、OBD2ユーザデバイス60とECU間で通信されるCANフレームの場合、DATA部には、要求するサービス内容や、要求データ名などが格納されたり、その要求に応答するデータが格納されたりする。   Referring to FIG. 2 again, in the CAN frame, a DATA part is defined following the first CAN-ID part. This DATA section stores detection values detected by various sensors (not shown) and calculation values in each ECU for sharing with other ECUs, etc., and requests for proxy transmission to other ECUs In addition, an answer of acceptance / rejection to the request is stored. Further, in the case of a CAN frame communicated between the OBD2 user device 60 and the ECU, the requested service content, the requested data name, and the like are stored in the DATA section, and data in response to the request is stored.

図4から図7は、CANフレームのDATA部に格納される各種の情報の例を示している。まず、図4は、ECU−A10が、OBD2ユーザデバイス60によってデータ送信元ECUとして指定された場合に、そのECU−A10が他のECUに向けて送信するCANフレームの一例を示している。なお、各ECU間においては、所定時間毎に、CANフレームを作成して、相互に通信を行なっている。   4 to 7 show examples of various types of information stored in the DATA part of the CAN frame. First, FIG. 4 shows an example of a CAN frame that the ECU-A 10 transmits to another ECU when the ECU-A 10 is designated by the OBD2 user device 60 as the data transmission source ECU. In addition, between each ECU, a CAN frame is created and communicated with each other every predetermined time.

図4に示すように、ECU−A10から他のECUに送信されるCANフレームには、回転数、空気流量、アクセル開度などのセンサ検出値、演算値などが格納される。さらに、データ送信元ECUとして指定されたECU−A10は、自身の処理負荷に応じて、他のECUに、OBD2ユーザデバイス60への応答信号の代理送信を依頼する場合があり、そのような代理送信を依頼するために必要な情報も格納される。具体的には、代理送信の依頼の有無を示す代理要求情報フラグB、要求データ名C、及び代理送信の依頼先のECUを示すCAN−ID情報Dなどが格納される。なお、CAN−ID情報Dには、送信元を示すIDが用いられ、例えばECU−B20に代理送信を依頼する場合には、CAN−ID情報Dとして「121」を格納する。   As shown in FIG. 4, the CAN frame transmitted from the ECU-A 10 to another ECU stores sensor detection values such as the rotation speed, air flow rate, accelerator opening, and the like. Furthermore, the ECU-A 10 designated as the data transmission source ECU may request other ECUs to perform proxy transmission of response signals to the OBD2 user device 60 according to its processing load. Information necessary for requesting transmission is also stored. Specifically, a proxy request information flag B indicating whether there is a request for proxy transmission, a request data name C, CAN-ID information D indicating the ECU to which proxy transmission is requested, and the like are stored. Note that the CAN-ID information D uses an ID indicating the transmission source. For example, when the proxy transmission is requested to the ECU-B 20, “121” is stored as the CAN-ID information D.

図5は、ECU−B20が、ECU−A10から代理送信の依頼を受けた場合に、そのECU−B20が他のECUに向けて送信するCANフレームの一例を示している。図5に示すように、ECU−B20は、代理送信の依頼を受諾するか拒否するかを示す代理受諾フラグX、要求データ名C、及び代理送信の依頼元のECU(ECU−A10)を示すCAN−ID情報Yなどが格納される。   FIG. 5 shows an example of a CAN frame that the ECU-B 20 transmits to another ECU when the ECU-B 20 receives a request for proxy transmission from the ECU-A 10. As shown in FIG. 5, the ECU-B 20 indicates a proxy acceptance flag X indicating whether to accept or reject a request for proxy transmission, a request data name C, and an ECU (ECU-A10) requesting proxy transmission. CAN-ID information Y and the like are stored.

このような、図4及び図5に示すCANフレームが、ECU−A10とECU−B20との間でやり取りされることにより、代理送信の依頼要求、及びその依頼要求が受諾されたか否かをそれぞれ認識することができる。   Such a CAN frame shown in FIG. 4 and FIG. 5 is exchanged between the ECU-A 10 and the ECU-B 20 to determine whether a request for proxy transmission and whether or not the request is accepted. Can be recognized.

図6は、OBD2ユーザデバイス60が、ECU−A10にデータ送信要求(データモニタ要求)を行う場合に送信するCANフレームの一例を示している。この場合、図6に示すように、CAN−ID部には、送信元がOBD2ユーザデバイス60であり、送信先がECU−A10であることを示す「7E0」が格納される。そして、DATA部においては、要求するサービス内容を示すサービス番号と、要求データ名とが格納される。なお、図示のサービス番号「01」は、データモニタ(データ送信要求)を意味する。また、要求データ名は、1つのみである場合に限られず、複数の要求データ名が格納される場合もある。   FIG. 6 shows an example of a CAN frame transmitted when the OBD2 user device 60 makes a data transmission request (data monitor request) to the ECU-A 10. In this case, as illustrated in FIG. 6, “7E0” indicating that the transmission source is the OBD2 user device 60 and the transmission destination is the ECU-A10 is stored in the CAN-ID portion. In the DATA section, a service number indicating the requested service content and a request data name are stored. The service number “01” shown in the figure means a data monitor (data transmission request). Further, the number of request data names is not limited to one, and a plurality of request data names may be stored.

図7は、ECU−A10が、OBD2ユーザデバイス60からデータ送信要求を受けて、その応答信号をOBD2ユーザデバイス60に返送する場合のCANフレームの一例を示している。なお、ECU−B20が代理送信を行う場合にも、図7に示す各情報を含むCANフレームを送信する。   FIG. 7 shows an example of a CAN frame when the ECU-A 10 receives a data transmission request from the OBD 2 user device 60 and returns a response signal to the OBD 2 user device 60. In addition, also when ECU-B20 performs proxy transmission, the CAN frame including each information shown in FIG. 7 is transmitted.

図7に示すように、CAN−ID部には、送信元がECU−A10であり、送信先がOBD2ユーザデバイス60であることを示す「7E8」が格納される。そして、DATA部においては、要求されたデータを送信することを示すサービス番号(図示の例では「41」)と、要求データ名、及びそのデータの値とが格納される。   As illustrated in FIG. 7, “7E8” indicating that the transmission source is the ECU-A 10 and the transmission destination is the OBD2 user device 60 is stored in the CAN-ID portion. In the DATA section, a service number (“41” in the illustrated example) indicating transmission of the requested data, a requested data name, and a value of the data are stored.

ここで、本実施形態に係る電子制御システムにおいて、各ECU(ECU−A10、ECU−B20,ECU−C30)が保有するデータは、図8に一例として示すように、予め定められており、各ECU及びOBD2ユーザデバイス60それぞれにおいて既知である。従って、OBD2ユーザデバイス60は、所望のデータの取得希望がある場合、そのデータを保有しているECUをCAN−IDにより指定して、上述したCANフレームを送信することが可能である。   Here, in the electronic control system according to the present embodiment, the data held by each ECU (ECU-A10, ECU-B20, ECU-C30) is predetermined as shown in FIG. Each of the ECU and OBD2 user device 60 is known. Therefore, when there is a desire to acquire desired data, the OBD2 user device 60 can transmit the above-described CAN frame by designating the ECU holding the data by the CAN-ID.

また、OBD2ユーザデバイス60からデータ送信要求を受けたECUは、自身の処理負荷が大きいときに、図8に示すテーブルを参照して、同じデータを保有している他のECUを検索することが可能であり、その検索したECUに代理送信の依頼を行うことができる。なお、本実施形態においては、同じデータを保有するECUが複数ある場合、代理送信を依頼するECUは、図8に示すテーブルからランダムに選択される。また、同じデータを保有するとは、要求されたデータが複数である場合には、その複数のデータのすべてを保有していることを意味する
次に、ECU−A10が、OBD2ユーザデバイス60によってデータ送信元ECUとして指定された場合に、そのECU−A10において実行される具体的な処理について、図9〜図11のフローチャートを用いて説明する。
In addition, the ECU that has received the data transmission request from the OBD2 user device 60 can search for another ECU having the same data with reference to the table shown in FIG. 8 when the processing load of the ECU is large. It is possible to make a request for proxy transmission to the retrieved ECU. In the present embodiment, when there are a plurality of ECUs that have the same data, the ECU that requests proxy transmission is randomly selected from the table shown in FIG. Also, possessing the same data means that if there is a plurality of requested data, it means that all of the plurality of data are retained. Next, the ECU-A 10 performs data transmission using the OBD2 user device 60. Specific processing executed in the ECU-A 10 when designated as the transmission source ECU will be described with reference to the flowcharts of FIGS. 9 to 11.

図9のフローチャートは、ECU−A10が、OBD2ユーザデバイス60からデータの送信を要求する信号(CANフレーム)を受信したときに、割り込みにより実行される処理を示している。この場合、ECU−A10は、まず、ステップS100において、他のECUが代理送信の実行中であるときにONとなる代理応答中フラグAを参照する。このとき、代理応答中フラグAがONとなっていれば、ECU―A10が、データの送信要求信号に対して応答する必要はないので、そのまま処理を終了する。一方、代理応答中フラグAがOFFとなっている場合には、ステップS110に進んで、要求されたデータを含む応答信号を作成して送信する。これにより、最初に、OBD2ユーザデバイス60からデータの送信要求信号が受信された場合に、遅滞なく、応答信号を送信することができる。   The flowchart of FIG. 9 shows processing executed by an interrupt when the ECU-A 10 receives a signal (CAN frame) requesting transmission of data from the OBD2 user device 60. In this case, first, in step S100, the ECU-A 10 refers to the proxy response flag A that is turned ON when another ECU is executing proxy transmission. At this time, if the proxy response flag A is ON, it is not necessary for the ECU-A 10 to respond to the data transmission request signal, so the processing is terminated as it is. On the other hand, if the proxy response flag A is OFF, the process proceeds to step S110, where a response signal including the requested data is created and transmitted. Accordingly, when a data transmission request signal is first received from the OBD2 user device 60, a response signal can be transmitted without delay.

そして、OBD2ユーザデバイス60からデータ送信要求を受けたことにより、図9のフローチャートに示す処理が実行されたのであるから、OBD2コネクタ50にはOBD2ユーザデバイス60が接続され、今後、繰り返しデータ送信要求信号を受ける可能性がある。そのため、ステップS120では、代理要求情報フラグBの状態を、代理送信の必要性があることを示す「REQ」に設定する。   Since the processing shown in the flowchart of FIG. 9 is executed by receiving the data transmission request from the OBD2 user device 60, the OBD2 user device 60 is connected to the OBD2 connector 50, and the data transmission request is repeated in the future. There is a possibility of receiving a signal. Therefore, in step S120, the state of the proxy request information flag B is set to “REQ” indicating that proxy transmission is necessary.

次に、図10のフローチャートについて説明する。図10のフローチャートは、ECU間において、センサ検出値や演算値を送信するために、ECU−A10において定期的に繰り返し実行されるものである。   Next, the flowchart of FIG. 10 will be described. The flowchart of FIG. 10 is periodically and repeatedly executed by the ECU-A 10 in order to transmit sensor detection values and calculation values between ECUs.

まず、ステップS130では、例えば、アイドルタスクによるインクリメントカウンタ値を処理負荷値とみなして、そのインクリメントカウンタ値により処理負荷を算出する。ただし、処理負荷の算出はこのような例に限られず、例えば、ECU−A10におけるCPUの使用率から処理負荷を算出しても良い。   First, in step S130, for example, the increment counter value by the idle task is regarded as the processing load value, and the processing load is calculated from the increment counter value. However, the calculation of the processing load is not limited to such an example. For example, the processing load may be calculated from the CPU usage rate in the ECU-A 10.

続くステップS140では、ステップS130で算出した処理負荷が、所定の第1レベルを超えているか否かにより、処理負荷が大きいか否かを判定する。処理負荷が大きいと判定された場合には、ステップS150の処理に進み、処理負荷が大きくないと判定された場合には、ステップS160の処理に進む。   In subsequent step S140, it is determined whether or not the processing load is large depending on whether or not the processing load calculated in step S130 exceeds a predetermined first level. If it is determined that the processing load is large, the process proceeds to step S150. If it is determined that the processing load is not large, the process proceeds to step S160.

ステップS150では、代理要求情報フラグBの状態が、代理送信の必要性があることを示す「REQ」に設定されているか否かを判定する。この判定処理において「YES」と判定された場合、ECU−A10の処理負荷が大きく、かつ、今後、繰り返しデータ送信要求信号を受ける可能性があるので、ステップS170に進み、図8に示すテーブルを参照して、代理送信を依頼するECUを検索して決定する。一方、ステップS150の判定処理において「NO」と判定された場合には、ECU−A10の処理負荷は大きいが、現在のところ、データ送信要求信号を受ける可能性がないので、ステップS180に進んで、代理要求情報フラグBの状態を、代理送信の必要性がないことを示す「NONE」に設定する。   In step S150, it is determined whether or not the state of the proxy request information flag B is set to “REQ” indicating that proxy transmission is necessary. If “YES” is determined in this determination processing, the processing load on the ECU-A 10 is large and there is a possibility that the data transmission request signal will be repeatedly received in the future. Therefore, the process proceeds to step S170, and the table shown in FIG. Referring to and determining the ECU that requests proxy transmission. On the other hand, if “NO” is determined in the determination process of step S150, the processing load on the ECU-A10 is heavy, but there is currently no possibility of receiving a data transmission request signal, so the process proceeds to step S180. The proxy request information flag B is set to “NONE” indicating that there is no need for proxy transmission.

ステップS160では、代理応答中フラグAがOFFであるか否かを判定する。代理応答中フラグAがOFFではない、すなわち代理応答中フラグAがONと判定された場合、ステップS190の処理に進む。この場合、他のECUが代理送信を実行中であるが、その代理送信の依頼元のECU−A10の処理負荷が低下しており、ECU−A10にて応答信号の作成及び送信を行いうる状況になったといえる。そのため、ステップS190では、代理要求情報フラグBの状態を、代理送信の依頼の取り消しを示す「CANCEL」に設定する。さらに、「CANCEL」に設定された代理要求情報フラグBを含むCANフレームが、後述するステップS200において代理送信の依頼先ECUに送信されることにより、代理送信が終了するので、代理応答中フラグAをOFFに設定する。   In step S160, it is determined whether the proxy response flag A is OFF. If the proxy response flag A is not OFF, that is, if it is determined that the proxy response flag A is ON, the process proceeds to step S190. In this case, the other ECU is executing proxy transmission, but the processing load of the ECU-A10 that requested the proxy transmission is reduced, and the ECU-A10 can create and transmit a response signal. It can be said that it became. Therefore, in step S190, the state of the proxy request information flag B is set to “CANCEL” indicating cancellation of the request for proxy transmission. Further, since the CAN frame including the proxy request information flag B set to “CANCEL” is transmitted to the proxy transmission request destination ECU in step S200 described later, the proxy transmission is completed. Is set to OFF.

一方、ステップS160において、代理応答中フラグAがOFFであると判定された場合には、ステップS180の処理に進む。これにより、図9のフローチャートのステップS120の処理により、代理要求情報フラグBの状態が、代理送信の必要性があることを示す「REQ」に設定されていたとしても、ECU−A10の処理負荷が低いため、代理送信の必要性がないことを示す「NONE」に再設定することができる。   On the other hand, if it is determined in step S160 that the proxy response flag A is OFF, the process proceeds to step S180. Accordingly, even if the state of the proxy request information flag B is set to “REQ” indicating that proxy transmission is necessary by the processing of step S120 in the flowchart of FIG. 9, the processing load of the ECU-A10 Therefore, it can be reset to “NONE” indicating that there is no need for proxy transmission.

ステップS200では、ECU−A10は、定期送信信号として、図4に示すような各種の情報を格納したCANフレームを、他のECUに向けて送信する。そして、ステップS210では、他のECUへの送信が完了したため、代理要求情報フラグBの状態を、初期状態である「NONE」に設定する。   In step S200, the ECU-A 10 transmits a CAN frame storing various pieces of information as shown in FIG. 4 to other ECUs as a periodic transmission signal. In step S210, since the transmission to the other ECU is completed, the state of the proxy request information flag B is set to “NONE” which is the initial state.

なお、上述したステップS140において、ECU−A10の処理負荷のレベルを判定する際、代理送信が必要であると判定するための処理負荷のレベル(第1のレベル)と、実行中の代理送信の取り消しを判定するための処理負荷のレベル(第2のレベル)とは、同一のレベルであっても良いが、第1のレベルよりも第2のレベルの方を低くしても良い。このように、第1のレベルと第2のレベルとを異ならせることにより、代理送信の依頼と取り消しが頻繁に繰り返されることを防止することができる。   In step S140 described above, when determining the processing load level of the ECU-A 10, the processing load level (first level) for determining that proxy transmission is necessary, and the proxy transmission being executed are determined. The processing load level (second level) for determining cancellation may be the same level, but the second level may be lower than the first level. In this way, by making the first level different from the second level, it is possible to prevent the request for proxy transmission and cancellation from being repeated frequently.

次に、図11のフローチャートについて説明する。図11のフローチャートは、代理送信を依頼した他のECUからの定期送信信号を受信したときに、割り込みにより実行される処理を示している。   Next, the flowchart of FIG. 11 will be described. The flowchart of FIG. 11 shows a process executed by interruption when a periodic transmission signal is received from another ECU that has requested proxy transmission.

まず、ステップS220では、他のECUから受信した定期送信信号(CANフレーム)に含まれる代理受諾フラグXを参照する。この代理受諾フラグXがONであれば、代理送信の依頼が受諾されたことを意味し、OFFであれば、代理送信の依頼が拒否されたことを意味する。そして、ステップS220において、代理受諾フラグXがONと判定された場合には、ステップS230に進んで、代理応答中フラグAをONに設定する。この代理応答中フラグAがONとなっている間は、ECU−A10ではなく他のECUが、OBD2ユーザデバイス60からのデータ送信要求に応じて応答信号を送信する。   First, in step S220, the proxy acceptance flag X included in the periodic transmission signal (CAN frame) received from another ECU is referred to. If this proxy acceptance flag X is ON, it means that the proxy transmission request has been accepted, and if it is OFF, it means that the proxy transmission request has been rejected. If it is determined in step S220 that the proxy acceptance flag X is ON, the process proceeds to step S230, and the proxy response flag A is set to ON. While this proxy response flag A is ON, not the ECU-A 10 but another ECU transmits a response signal in response to a data transmission request from the OBD 2 user device 60.

一方、ステップS220において、代理受諾フラグXがOFFと判定された場合には、ステップS240に進んで、代理応答中フラグAをOFFに設定する。代理応答中フラグAがOFFとなっている間は、たとえ自身の処理負荷のレベルが高くても、ECU−A10は、OBD2ユーザデバイス60からデータ送信要求信号を受信した場合、その応答信号を作成し、返送する。   On the other hand, if it is determined in step S220 that the proxy acceptance flag X is OFF, the process proceeds to step S240, and the proxy response flag A is set to OFF. While the proxy response flag A is OFF, the ECU-A 10 generates a response signal when it receives a data transmission request signal from the OBD2 user device 60 even if its processing load level is high. And return it.

なお、他のECUによって代理送信の依頼が拒否された場合には、代理要求情報フラグBの状態を、再び、代理送信の必要性があることを示す「REQ」に設定し、次回の定期送信処理において、代理送信を拒否したECU以外のECUに対して、代理送信の依頼を行うようにしても良い。   When a request for proxy transmission is rejected by another ECU, the state of the proxy request information flag B is set again to “REQ” indicating that proxy transmission is necessary, and the next periodic transmission is performed. In the processing, a request for proxy transmission may be made to an ECU other than the ECU that refuses proxy transmission.

次に、ECU−A10から代理送信の依頼を受けた、あるいは既にその依頼を受諾している他のECU(例えば、ECU−B20)において実行される処理について、図12〜図14のフローチャートを用いて説明する。   Next, processing executed in another ECU (for example, ECU-B20) that has received a request for proxy transmission from the ECU-A10 or has already accepted the request is used with reference to the flowcharts of FIGS. I will explain.

まず、図12のフローチャートは、ECU−A10からの定期送信信号を受信したときに、割り込みにより実行される処理を示している。この場合、ECU−B20は、ステップS300において、受信した定期送信信号に含まれる代理要求情報フラグBを参照する。そして、代理要求情報フラグBの状態が、「REQ」の場合、ステップS310に進んで、一旦、代理受諾フラグXをONに設定する。また、代理要求情報フラグBの状態が「CANCEL」である場合には、ステップS320に進んで、代理受諾フラグXをOFFに設定する。代理要求情報フラグBの状態が「NONE」である場合には、代理受諾フラグXに関する設定を行うことなく、そのまま図12のフローチャートに示す処理を終了する。   First, the flowchart of FIG. 12 shows processing executed by interruption when a periodic transmission signal from the ECU-A 10 is received. In this case, the ECU-B 20 refers to the proxy request information flag B included in the received periodic transmission signal in step S300. Then, when the state of the proxy request information flag B is “REQ”, the process proceeds to step S310, and the proxy acceptance flag X is once set to ON. If the state of the proxy request information flag B is “CANCEL”, the process proceeds to step S320, and the proxy acceptance flag X is set to OFF. When the state of the proxy request information flag B is “NONE”, the processing shown in the flowchart of FIG. 12 is terminated without setting the proxy acceptance flag X.

次に、図13のフローチャートについて説明する。図13のフローチャートは、ECU間において、センサ検出値や演算値を送信するために、ECU−B20において定期的に繰り返し実行されるものである。   Next, the flowchart of FIG. 13 will be described. The flowchart of FIG. 13 is periodically and repeatedly executed by the ECU-B 20 in order to transmit sensor detection values and calculation values between ECUs.

まず、ステップS330において、ECU−B20の処理負荷が算出される。この処理負荷の算出は、図10のフローチャートのステップS130の処理と同様に行われる。続くステップS340では、ステップS330で算出した処理負荷が、所定のレベルを超えているか否かにより、処理負荷が大きいか否かを判定する。処理負荷が大きいと判定された場合には、ステップS350の処理に進み、代理受諾フラグXをOFFに設定する。これにより、図12のフローチャートのステップS310において、代理受諾フラグXがONに設定された場合であっても、ECU−B20の処理負荷が大きいときには、代理受諾フラグXがOFFに再設定される。さらに、一旦、ECU−Aからの代理送信の依頼を受諾した後であっても、定期送信処理時に、ECU−B20の処理負荷が大きくなっていると、代理受諾フラグXがOFFに設定され、代理送信の受諾が取り消される。   First, in step S330, the processing load on the ECU-B 20 is calculated. The calculation of the processing load is performed in the same manner as the processing in step S130 in the flowchart of FIG. In subsequent step S340, it is determined whether or not the processing load is large depending on whether or not the processing load calculated in step S330 exceeds a predetermined level. If it is determined that the processing load is large, the process proceeds to step S350, and the proxy acceptance flag X is set to OFF. Thereby, even if the proxy acceptance flag X is set to ON in step S310 of the flowchart of FIG. 12, the proxy acceptance flag X is reset to OFF when the processing load of the ECU-B 20 is large. Furthermore, even after accepting a request for proxy transmission from ECU-A once, if the processing load on ECU-B 20 is large during periodic transmission processing, proxy acceptance flag X is set to OFF, Acceptance of proxy transmission is cancelled.

そして、ステップS360では、ECU−B20は、上述したように設定された代理受諾フラグXを含み、かつ、図5に示すような各種の情報を格納したCANフレームを、定期送信信号として、他のECUに向けて送信する。ECU−A10が、この定期送信信号を受信して、代理受諾フラグXを参照することにより、ECU−B20が代理送信の依頼を受諾したか拒否したか、あるいは受諾済みの代理送信の取り消しを行ったかなどを認識することができる。   In step S360, the ECU-B 20 uses the CAN frame that includes the proxy acceptance flag X set as described above and stores various types of information as shown in FIG. Transmit to the ECU. The ECU-A 10 receives this periodic transmission signal and refers to the proxy acceptance flag X, so that the ECU-B 20 has accepted or rejected the request for proxy transmission, or cancels the accepted proxy transmission. Can recognize.

次に、図14のフローチャートについて説明する。図14のフローチャートは、ECU−B20が、OBD2ユーザデバイス60からデータの送信を要求する信号(CANフレーム)を受信したときに、割り込みにより実行される処理を示している。なお、ECU−B20は、車内LAN40に接続されているので、OBD2ユーザデバイス60からECU−A10に向けられた信号であっても、受信可能である。   Next, the flowchart of FIG. 14 will be described. The flowchart of FIG. 14 illustrates processing executed by an interrupt when the ECU-B 20 receives a signal (CAN frame) requesting data transmission from the OBD2 user device 60. Note that since the ECU-B 20 is connected to the in-vehicle LAN 40, even a signal directed from the OBD2 user device 60 to the ECU-A 10 can be received.

まず、ステップS370では、代理受諾フラグXがONに設定されているか否かを判定する。このとき、代理受諾フラグXがONに設定されていると判定されると、ECU−B20が、OBD2ユーザデバイス60からのデータ要求信号に応答する必要があるので、ステップS380の処理に進む。ステップS380では、OBD2ユーザデバイス60への応答信号としてのCANフレームにおいて、CAN−IDの書換えを行う。つまり、ECU−B20が、OBD2ユーザデバイス60に信号を送信する場合には、通常、CAN−IDは「7E9」が用いられる。しかしながら、ECU−B20が、ECU−A10に代わって応答信号を送信する場合には、CAN−IDを、ECU−A10であることを示す「7E8」に書き換えるのである。これにより、OBD2ユーザデバイス60は、応答信号を受信したとき、データ送信要求信号に対する正当な応答信号であると認識し、受信処理を行うことになる。換言すると、もし、CAN−IDとして、ECU−B20であることを示す「7E9」をそのまま使用してしまうと、OBD2ユーザデバイス60は、自身のデータ送信要求信号に応答するものではないと判断する。この結果、例えば、自身のデータ送信要求に対して未回答であるため、繰り返しECU−A10に対してデータ送信を要求することになってしまったりする。   First, in step S370, it is determined whether the proxy acceptance flag X is set to ON. At this time, if it is determined that the proxy acceptance flag X is set to ON, the ECU-B 20 needs to respond to the data request signal from the OBD2 user device 60, and thus the process proceeds to step S380. In step S380, the CAN-ID is rewritten in the CAN frame as a response signal to the OBD2 user device 60. That is, when the ECU-B 20 transmits a signal to the OBD2 user device 60, “7E9” is normally used as the CAN-ID. However, when the ECU-B 20 transmits a response signal instead of the ECU-A 10, the CAN-ID is rewritten to “7E8” indicating the ECU-A 10. As a result, when the OBD2 user device 60 receives the response signal, the OBD2 user device 60 recognizes that the response is a valid response signal to the data transmission request signal, and performs reception processing. In other words, if “7E9” indicating that it is ECU-B20 is used as it is as the CAN-ID, the OBD2 user device 60 determines that it does not respond to its own data transmission request signal. . As a result, for example, since it has not yet responded to its own data transmission request, the ECU-A 10 is repeatedly requested to transmit data.

そして、ステップS390では、書き換えたCAN−IDを含むCANフレームを、応答信号として、代理送信する。   In step S390, the CAN frame including the rewritten CAN-ID is transmitted as a response signal by proxy.

ECU−A10及びECU−B20が、上述したような処理を行うことにより、OBD2ユーザデバイス60から最初にデータ送信要求信号が出力されたときには、図15に示すように、ECU−A10が応答信号を作成して返送する。しかしながら、その際、自身の処理負荷が大きい場合には、他のECUに対して、応答信号の代理送信を依頼する。その依頼が受諾された場合には、図16に示すように、2回目以降のデータ送信要求信号に対する応答信号は、他のECU(ECU−B20)によって作成され返送される。従って、図17に示すように、ECU−A10よりも処理負荷の低い他のECUに、データ送信要求信号に対する応答処理、すなわち、データ送信要求信号の受信処理及び応答信号の作成及び送信処理を移管することで、ECU−A10が本来処理すべき制御処理に支障が生じることを極力回避することができる。   When the ECU-A 10 and the ECU-B 20 perform the above-described processing, when the data transmission request signal is first output from the OBD2 user device 60, the ECU-A 10 sends a response signal as shown in FIG. Create and return. However, at that time, if its own processing load is large, it requests other ECUs to substitute the response signal. When the request is accepted, as shown in FIG. 16, a response signal for the second and subsequent data transmission request signals is created and returned by another ECU (ECU-B20). Accordingly, as shown in FIG. 17, the response processing for the data transmission request signal, that is, the reception processing of the data transmission request signal and the generation and transmission of the response signal are transferred to another ECU having a lower processing load than the ECU-A10. By doing so, it is possible to avoid as much as possible the trouble in the control process that the ECU-A 10 should originally process.

以上、本発明の好ましい実施形態について説明したが、本発明は、上述した実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することが可能である。   The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention. .

例えば、上述した実施形態では、OBD2ユーザデバイスからのデータ送信要求信号を受信したときに、他のECUに対して代理送信を依頼したが、予め、要求されるデータの種類ごとに、各ECUの処理負荷に応じて、応答信号を代理送信するECUを決定しておいても良い。なお、各ECUの処理負荷は常に一定ではないので、代理送信するECUは、定期的に更新されることが好ましい。   For example, in the above-described embodiment, when a data transmission request signal is received from the OBD2 user device, proxy transmission is requested to another ECU, but for each type of data requested in advance, Depending on the processing load, an ECU for proxy transmission of the response signal may be determined. Since the processing load of each ECU is not always constant, it is preferable to periodically update the ECU that performs proxy transmission.

また、上述した実施形態では、データ送信元ECUとして指定されたECUが、代理送信を依頼するECUを、同じデータを保有するECUの中からランダムに決定した。しかしながら、定期送信されるデータに各ECUの処理負荷情報を含ませておき、データ送信元ECUとして指定されたECUが代理送信を依頼する際に、同じデータを保有するECUの中で処理負荷が最も低いECUを選択するようにしても良い。あるいは、データ送信元ECUとして指定されたECUが、同じデータを保有している複数のECUごとに、代理送信を依頼したときの受諾、拒否の実績を記録しておき、受諾確率の高い順に、代理送信の依頼を行うようにしても良い。   Further, in the above-described embodiment, the ECU designated as the data transmission source ECU randomly determines the ECU that requests the proxy transmission from among the ECUs having the same data. However, the processing load information of each ECU is included in the periodically transmitted data, and when the ECU designated as the data transmission source ECU requests proxy transmission, the processing load is reduced among the ECUs having the same data. The lowest ECU may be selected. Alternatively, for each of a plurality of ECUs that have the same data, the ECU designated as the data transmission source ECU records the acceptance and rejection results when requesting proxy transmission, and in order of decreasing acceptance probability, A request for proxy transmission may be made.

さらに、上述した実施形態において、代理送信の依頼が拒否された場合、その代理送信を依頼したECUが、さらに別のECUに代理送信の依頼を行う旨の説明を行ったが、代理送信の依頼を拒否するECUが、他のECUに代理送信の依頼を行うようにすることも可能である。   Furthermore, in the above-described embodiment, when the request for proxy transmission is rejected, the ECU that requested the proxy transmission has explained that another ECU requests the proxy transmission. It is also possible for an ECU that refuses to make a request for proxy transmission to another ECU.

10 ECU−A
20 ECU−B
30 ECU−C
40 車内LAN
50 OBD2コネクタ
60 OBD2ユーザデバイス
10 ECU-A
20 ECU-B
30 ECU-C
40 in-car LAN
50 OBD2 connector 60 OBD2 user device

Claims (7)

それぞれ固有のIDが付与され、ネットワーク接続された複数のECU(10、20、30)を有し、それら複数のECUの中の少なくとも1つのECUは、前記ネットワークに接続された外部装置(60)から、前記IDを用いてデータ送信元ECUが指定された、データの送信を要求する要求信号を受信したとき、その要求信号に応じて、当該ECUが保有しているデータを含む応答信号を前記外部装置に送信する電子制御システムであって、
前記データ送信元ECUとして指定されるECUは、
自身の処理負荷を計測する計測手段(S130)と、
前記計測手段によって計測された処理負荷が所定の第1のレベルを超えた場合に、同じデータを保有している他のECUに対して、代理として応答信号の送信を行うよう依頼する依頼手段(S140、S170、S200)と、備え、
前記他のECUは、代理として前記外部装置に前記応答信号を送信する際に、前記データ送信元ECUとして指定されたECUのIDを付加した応答信号を作成して、前記外部装置に向けて送信する送信制御手段(S380、S390)を備えることを特徴とする電子制御システム。
Each of the plurality of ECUs (10, 20, 30) is assigned a unique ID and is connected to the network. At least one of the ECUs is an external device (60) connected to the network. When a request signal for requesting data transmission is received, designated by the data transmission source ECU using the ID, a response signal including data held by the ECU is sent in response to the request signal. An electronic control system for transmitting to an external device,
The ECU designated as the data transmission source ECU is:
Measuring means (S130) for measuring its own processing load;
Request means for requesting another ECU having the same data to transmit a response signal as a proxy when the processing load measured by the measurement means exceeds a predetermined first level. S140, S170, S200), and
When the other ECU transmits the response signal to the external device as a substitute, the other ECU creates a response signal to which the ID of the ECU designated as the data transmission source ECU is added and transmits the response signal to the external device An electronic control system comprising transmission control means (S380, S390) for performing
前記データ送信元ECUとして指定されるECUは、最初に、前記外部装置から要求信号を受信したとき、自身で応答信号を送信するとともに、処理負荷が所定の第1レベルを超えた場合に、前記依頼手段が、前記他のECUに対して応答信号の代理送信を依頼するものであって、
前記外部装置からの次回以降の要求信号に対して、前記他のECUが、代理として応答信号を送信することを特徴とする請求項1に記載の電子制御システム。
When the ECU designated as the data transmission source ECU first receives a request signal from the external device, it transmits a response signal by itself, and when the processing load exceeds a predetermined first level, The requesting unit requests proxy transmission of a response signal to the other ECU,
2. The electronic control system according to claim 1, wherein the other ECU transmits a response signal as a proxy in response to a request signal from the external device on and after the next time.
前記他のECUも、自身の処理負荷を計測する計測手段(S330)を備え、
前記他のECUは、前記依頼手段から代理で応答信号の送信を行うよう依頼を受けたとき、前記計測手段によって計測される処理負荷が所定のレベル以下である場合に、その依頼を受諾し、所定のレベルを超えている場合には、依頼を拒否することを特徴とする請求項1又は2に記載の電子制御システム。
The other ECU also includes measuring means (S330) for measuring its own processing load,
The other ECU accepts the request when the processing load measured by the measuring unit is equal to or lower than a predetermined level when the request unit receives a request to transmit a response signal on behalf of the request unit. 3. The electronic control system according to claim 1, wherein the request is rejected when the predetermined level is exceeded.
前記データ送信元ECUとして指定されるECU以外に、前記外部装置に送信すべきデータと同じデータを保有しているECUが複数ある場合であって、代理送信を依頼した他のECUが、その依頼を拒否した場合には、前記データ送信元ECUとして指定されたECU、もしくは代理送信の依頼を拒否したECUが、同じデータを保有している別のECUに、さらに代理送信を依頼することを特徴とする請求項3に記載の電子制御システム。   In addition to the ECU designated as the data transmission source ECU, there are a plurality of ECUs that hold the same data as the data to be transmitted to the external device, and the other ECU that requested the proxy transmission requests that The ECU designated as the data transmission source ECU or the ECU that rejected the request for proxy transmission further requests another ECU holding the same data for proxy transmission. The electronic control system according to claim 3. 前記データ送信元ECUとして指定されるECUは、前記同じデータを保有している複数のECUごとに、代理送信を依頼したときの受諾、拒否の実績を記録しておき、受諾確率の高い順に、代理送信の依頼を行うことを特徴とする請求項3又は4に記載の電子制御システム。   The ECU designated as the data transmission source ECU records the acceptance and rejection results when requesting proxy transmission for each of the plurality of ECUs having the same data, in order of decreasing acceptance probability, 5. The electronic control system according to claim 3, wherein a request for proxy transmission is made. 前記外部装置に送信すべきデータと同じデータを保有しているECUが複数ある場合、それら同じデータを保有している複数のECUがそれぞれ自身の処理負荷を計測する処理負荷計測手段(S330)を有し、
前記データ送信元ECUとして指定されるECUは、前記同じデータを保有している複数のECUから、それぞれの処理負荷を取得し、最も処理負荷の低いECUに対して、代理送信の依頼を行うことを特徴とする請求項3に記載の電子制御システム。
When there are a plurality of ECUs that have the same data as the data to be transmitted to the external device, a plurality of ECUs that have the same data measure processing load measuring means (S330) for measuring their own processing loads. Have
The ECU designated as the data transmission source ECU acquires the respective processing loads from the plurality of ECUs having the same data, and requests proxy transmission to the ECU with the lowest processing load. The electronic control system according to claim 3.
前記他のECUが、代理送信の依頼を受託した後に、前記データ送信元ECUとして指定されたECUの処理負荷が所定の第2レベルよりも低下したとき、もしくは、前記他のECUの処理負荷が所定レベル以上に増加したとき、前記他のECUによる代理送信がキャンセルされ、前記データ送信元ECUとして指定されたECUが応答信号を送信することを特徴とする請求項3乃至6のいずれかに記載の電子制御システム。   After the other ECU receives a request for proxy transmission, when the processing load of the ECU designated as the data transmission source ECU falls below a predetermined second level, or the processing load of the other ECU 7. The proxy transmission by the other ECU is canceled when it increases to a predetermined level or more, and an ECU designated as the data transmission source ECU transmits a response signal. Electronic control system.
JP2012108804A 2012-05-10 2012-05-10 Electronic control system Pending JP2013233904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012108804A JP2013233904A (en) 2012-05-10 2012-05-10 Electronic control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012108804A JP2013233904A (en) 2012-05-10 2012-05-10 Electronic control system

Publications (1)

Publication Number Publication Date
JP2013233904A true JP2013233904A (en) 2013-11-21

Family

ID=49760374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012108804A Pending JP2013233904A (en) 2012-05-10 2012-05-10 Electronic control system

Country Status (1)

Country Link
JP (1) JP2013233904A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015205545A (en) * 2014-04-18 2015-11-19 三菱電機株式会社 Control apparatus switching system
JP2016000613A (en) * 2015-08-19 2016-01-07 三菱電機株式会社 Control unit change-over system
JP2019064723A (en) * 2017-10-04 2019-04-25 エムケー精工株式会社 Vehicle maintenance equipment
WO2019146760A1 (en) * 2018-01-26 2019-08-01 株式会社タダノ Wireless communication device, work vehicle, and work vehicle wireless communication system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015205545A (en) * 2014-04-18 2015-11-19 三菱電機株式会社 Control apparatus switching system
US9493167B2 (en) 2014-04-18 2016-11-15 Mitsubishi Electric Corporation Control device switching system
JP2016000613A (en) * 2015-08-19 2016-01-07 三菱電機株式会社 Control unit change-over system
JP2019064723A (en) * 2017-10-04 2019-04-25 エムケー精工株式会社 Vehicle maintenance equipment
JP7071812B2 (en) 2017-10-04 2022-05-19 エムケー精工株式会社 Vehicle maintenance equipment
WO2019146760A1 (en) * 2018-01-26 2019-08-01 株式会社タダノ Wireless communication device, work vehicle, and work vehicle wireless communication system
JPWO2019146760A1 (en) * 2018-01-26 2020-02-27 株式会社タダノ Mobile crane and wireless communication system for mobile crane
US12020517B2 (en) 2018-01-26 2024-06-25 Tadano Ltd. Wireless communication device, work vehicle, and work vehicle wireless communication system

Similar Documents

Publication Publication Date Title
JP5709055B2 (en) Electronic control device for vehicle
JP5637190B2 (en) Communication system and communication method
JP6654738B1 (en) Processing telemetry data based on the operating state of the data source
JP5505493B2 (en) Electronic control system and electronic control device
JP2013233904A (en) Electronic control system
JP2016141160A (en) Electronic control unit and electronic control system
JP2016037211A (en) Diagnostic system for vehicles
JP2017118487A (en) Information aggregation method to be executed in communication system
JP2010206697A (en) Onboard communication network system and malfunction diagnostic method of the same
US20210327165A1 (en) Vehicle malfunction prediction system, monitoring device, vehicle malfunction prediction method, and vehicle malfunction prediction program
CN114615103B (en) Vehicle-mounted network system
JP2019139315A (en) Vehicular communication system
JP5966697B2 (en) Information processing device
JP2020022019A (en) Vehicle system
US8620559B2 (en) Method for executing tasks and system comprising a first and a second control device
JP6741119B1 (en) Engine diagnosis system and engine diagnosis method
JP7347380B2 (en) Processing devices, communication systems, and programs for processing devices
JP2021529128A (en) Vehicle performance wireless interface
JP2014031077A (en) Vehicle operation verification system
JP2016143908A (en) Electronic controller and electronic control system
JP2020100202A (en) Fault diagnosis system
JP7207252B2 (en) converter
JP2009118113A (en) Communication abnormality detection device
JP7081462B2 (en) Vehicle electronic control device and diagnostic system
JP2018122659A (en) Display device and program