JP7081415B2 - Communication equipment, communication methods, and communication programs - Google Patents

Communication equipment, communication methods, and communication programs Download PDF

Info

Publication number
JP7081415B2
JP7081415B2 JP2018172680A JP2018172680A JP7081415B2 JP 7081415 B2 JP7081415 B2 JP 7081415B2 JP 2018172680 A JP2018172680 A JP 2018172680A JP 2018172680 A JP2018172680 A JP 2018172680A JP 7081415 B2 JP7081415 B2 JP 7081415B2
Authority
JP
Japan
Prior art keywords
vehicle
communication
communication device
authentication
initial value
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
JP2018172680A
Other languages
Japanese (ja)
Other versions
JP2020046743A (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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2018172680A priority Critical patent/JP7081415B2/en
Publication of JP2020046743A publication Critical patent/JP2020046743A/en
Application granted granted Critical
Publication of JP7081415B2 publication Critical patent/JP7081415B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、車両に搭載される通信装置に関する。 The present invention relates to a communication device or the like mounted on a vehicle.

車両には、複数のECU(Electronic Control Unit)と呼ばれる車載機器が搭載されており、車両の各種機能の制御を行う。これらのECUに対して、車両製造時の車両工場や出荷後の整備場等において、プログラムを書き換えるリプログラミングと呼ばれる作業や、その他の各種作業が行われる場合がある。このような作業は、車両に備えられたコネクタに外部ツールを接続し、外部ツールから作業対象のECUに書き換えプログラムを送信したり、その他の作業に必要なデータを送信したりすることによって行うことができる。 The vehicle is equipped with a plurality of in-vehicle devices called ECUs (Electronic Control Units) to control various functions of the vehicle. For these ECUs, a work called reprogramming for rewriting a program or various other works may be performed at a vehicle factory at the time of vehicle manufacturing, a maintenance shop after shipment, or the like. Such work is performed by connecting an external tool to the connector provided in the vehicle, sending a rewrite program from the external tool to the ECU to be worked on, or sending data necessary for other work. Can be done.

外部ツールを用いて車載機器のプログラムの書き換えを行う際には、不正な作業が行われないようにするため、各種の認証を行うことが提案されている。特許文献1は、車載機器が外部ツールの認証を行うことを開示している。また、特許文献2は、外部ツールを車内のネットワークに接続してプログラムの書き換え等を行う際に、イモビキー用の検出装置の認証を、公共ネットワークを介してサーバが行い、その検出装置が検出したイモビキーの認証を車載機器が行うことを開示している。 When rewriting a program of an in-vehicle device using an external tool, it has been proposed to perform various authentications in order to prevent unauthorized work. Patent Document 1 discloses that an in-vehicle device authenticates an external tool. Further, in Patent Document 2, when an external tool is connected to the network in the vehicle to rewrite the program, the server authenticates the detection device for the immobility key via the public network, and the detection device detects it. It discloses that the in-vehicle device authenticates the immobility key.

特開2016-112909号公報Japanese Unexamined Patent Publication No. 2016-11299 特開2013-168007号公報Japanese Unexamined Patent Publication No. 2013-168007

車載機器と外部ツールとの通信による認証によって、不正な外部ツールを用いた不正な作業が行われる可能性を排除することができる。外部ツールは解析されるおそれがあるので、さらに好適に管理されたセンタのサーバを認証に用いることによって、セキュリティをより強く保証することができる。 Authentication by communication between an in-vehicle device and an external tool can eliminate the possibility of unauthorized work using an unauthorized external tool. Since external tools may be analyzed, security can be further guaranteed by using a server in a well-managed center for authentication.

しかしながら、サーバとの通信を行って認証すると、車両工場での作業時には、サーバとの通信の所要時間だけタクトタイムが増加する。また、サーバとの通信不良が発生した場合、復旧するまで作業が停止することになる。このように、一律にサーバを認証に用いると車両工場において生産性の低下をもたらすおそれがあった。 However, if authentication is performed by communicating with the server, the takt time increases by the time required for communication with the server when working in the vehicle factory. In addition, if a communication failure with the server occurs, the work will be stopped until it is restored. In this way, if the server is used uniformly for authentication, there is a risk that productivity will decrease in the depot.

本発明は、上記課題を鑑みてなされたものであり、車両出荷後のセキュリティの向上と車両工場での生産性の維持とを可能にする車両用の通信装置を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a communication device for a vehicle, which enables improvement of security after shipment of a vehicle and maintenance of productivity in a vehicle factory. ..

上記課題を解決するために、本発明の一局面は、車両に搭載された通信装置であって、所定のフラグの状態を表す値として、車両の製造時には初期値を記憶し、車両の出荷後には初期値以外の値を記憶する記憶部と、通信装置が外部ツールから所定の信号を受信した場合に、記憶部を参照して、所定のフラグの状態を表す値が初期値であるか否かの判定をする判定部と、所定のフラグの状態を表す値が、初期値である場合に外部ツールとの通信による認証処理を行い、初期値でない場合に外部のサーバとの通信を含む認証処理を行う認証部とを備える、通信装置である。 In order to solve the above problems, one aspect of the present invention is a communication device mounted on a vehicle, in which an initial value is stored at the time of manufacturing the vehicle as a value indicating a state of a predetermined flag, and after the vehicle is shipped. Refers to the storage unit that stores values other than the initial value and the storage unit when the communication device receives a predetermined signal from an external tool, and whether or not the value indicating the state of the predetermined flag is the initial value. If the value indicating the state of the predetermined flag is the initial value, the authentication process is performed by communication with the external tool, and if it is not the initial value, the authentication including the communication with the external server is performed. It is a communication device provided with an authentication unit that performs processing.

本発明によれば、車両出荷後のセキュリティの向上と車両工場での生産性の維持とを可能にする車両用の通信装置を提供することができる。 According to the present invention, it is possible to provide a communication device for a vehicle that enables improvement of security after shipment of a vehicle and maintenance of productivity in a vehicle factory.

本発明の実施形態に係る作業の一態様を示す機能ブロック図A functional block diagram showing one aspect of the work according to the embodiment of the present invention. 本発明の実施形態に係る作業の他の態様を示す機能ブロック図A functional block diagram showing another aspect of the work according to the embodiment of the present invention. 本発明の実施形態に係る処理を示すフローチャートA flowchart showing the process according to the embodiment of the present invention. 本発明の参考例に係る処理を示すフローチャートA flowchart showing a process according to a reference example of the present invention. 本発明の参考例に係る処理を示すフローチャートA flowchart showing a process according to a reference example of the present invention.

(実施形態)
本発明に係る通信装置は、車両の製造時の車両工場においては、外部ツールを用いた作業時に、通信装置と外部ツールとの間の認証を、サーバとの通信をせずに行う。これにより一定のセキュリティを確保しつつ、サーバとの通信の所要時間によるタクトタイムの増加を回避し、また、サーバとの通信不良による作業停止のおそれをなくし、車両の生産性の低下を抑制できる。また、車両の出荷後は、外部ツールを用いた作業時に、サーバとの通信を含んだ認証処理を行うことによって、車両工場における認証処理よりさらにセキュリティを強化することができる。
(Embodiment)
The communication device according to the present invention performs authentication between the communication device and the external tool without communicating with the server at the time of work using the external tool in the vehicle factory at the time of manufacturing the vehicle. As a result, while ensuring a certain level of security, it is possible to avoid an increase in takt time due to the time required for communication with the server, eliminate the risk of work stoppage due to poor communication with the server, and suppress a decrease in vehicle productivity. .. Further, after the vehicle is shipped, the security can be further enhanced as compared with the authentication process in the vehicle factory by performing the authentication process including the communication with the server when working with the external tool.

以下、本発明の一実施形態について、図面を参照しながら詳細に説明する。 Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

<構成>
図1に、本実施形態に係る外部ツールを用いた作業の第1態様を示す機能ブロック図を示す。車両1は、通信装置10と、複数のECU21、22…と、コネクタ30とを含む。通信装置10、複数のECU21、22…は、車内用通信バス32によって、互いに接続されている。なお、通信装置10は、車内用通信バス32および複数のECU21、22…と同様に、他の車内用通信バスによって他の複数のECUと互いに接続された構成をさらに1つ以上備えてもよい。また、通信装置10およびコネクタ30は、車外用通信バス31によって、互いに接続されている。
<Structure>
FIG. 1 shows a functional block diagram showing a first aspect of work using an external tool according to the present embodiment. The vehicle 1 includes a communication device 10, a plurality of ECUs 21, 22 ..., And a connector 30. The communication device 10, the plurality of ECUs 21, 22 ... Are connected to each other by the in-vehicle communication bus 32. The communication device 10 may further include one or more configurations connected to each other by another in-vehicle communication bus by another in-vehicle communication bus, similarly to the in-vehicle communication bus 32 and the plurality of ECUs 21, 22 .... .. Further, the communication device 10 and the connector 30 are connected to each other by an external communication bus 31.

通信装置10は、車内用通信バス32と車外用通信バス31とを接続するゲートウェイであり、各バスの通信制御を行う。通信装置10は、記憶部11、判定部12、認証部13、制御部14を含む。記憶部11は、制御に用いるデータやプログラム等の情報を記憶する。判定部12は、記憶部11を参照して情報を取得し、処理内容の決定のための判定を行う。認証部13は、判定部12の判定結果に応じた認証処理を行う。また制御部14は、これらの各部の制御や通信制御を行う。 The communication device 10 is a gateway that connects the communication bus 32 for the inside of the vehicle and the communication bus 31 for the outside of the vehicle, and controls the communication of each bus. The communication device 10 includes a storage unit 11, a determination unit 12, an authentication unit 13, and a control unit 14. The storage unit 11 stores information such as data and programs used for control. The determination unit 12 acquires information with reference to the storage unit 11 and makes a determination for determining the processing content. The authentication unit 13 performs an authentication process according to the determination result of the determination unit 12. Further, the control unit 14 controls each of these units and controls communication.

この態様では、車外の外部ツール40がコネクタ30に接続される。認証部13は、外部ツール40との通信による認証処理を行い、認証に成功すると、制御部14は、外部ツール40による作業を許可する。 In this aspect, the external tool 40 outside the vehicle is connected to the connector 30. The authentication unit 13 performs an authentication process by communicating with the external tool 40, and when the authentication is successful, the control unit 14 permits the work by the external tool 40.

図2に、本実施形態に係る外部ツールを用いた作業の第2態様を示す機能ブロック図を示す。この態様においては、外部ツール40は特定のサーバ50と例えば公共ネットワーク経由で通信可能であり、認証部13は、外部ツール40を介して、サーバ50との通信を含む認証処理を行う点が第1態様と異なる。認証部13が認証に成功すると、制御部14は、外部ツール40による作業を許可する。 FIG. 2 shows a functional block diagram showing a second aspect of work using an external tool according to the present embodiment. In this aspect, the external tool 40 can communicate with the specific server 50 via, for example, a public network, and the authentication unit 13 performs an authentication process including communication with the server 50 via the external tool 40. It is different from one aspect. When the authentication unit 13 succeeds in authentication, the control unit 14 permits the work by the external tool 40.

図3は、通信装置10が実行する処理の例を示すフローチャートである。図3を参照して通信装置10の処理を説明する。ここでは、作業の例として、外部ツール40を用いてECU21をリプログラミングするものとする。本処理は、外部ツール40がコネクタ30に接続され、外部ツール40が、通信装置10に、所定の信号を送信することによって開始される。所定の信号とは、本例では、通信装置10の動作モードをリプログラミング通信中継モードに切り替えることを要求する信号である。リプログラミング通信中継モードでは、通信装置10は、外部ツール40が車外用通信バス31に送出したプログラムの更新データを、車内用通信バス32に中継し、作業対象となるECU21が受信できるモードである。 FIG. 3 is a flowchart showing an example of processing executed by the communication device 10. The processing of the communication device 10 will be described with reference to FIG. Here, as an example of work, it is assumed that the ECU 21 is reprogrammed using an external tool 40. This process is started by connecting the external tool 40 to the connector 30, and the external tool 40 transmitting a predetermined signal to the communication device 10. The predetermined signal is, in this example, a signal requesting that the operation mode of the communication device 10 be switched to the reprogramming communication relay mode. In the reprogramming communication relay mode, the communication device 10 relays the update data of the program sent by the external tool 40 to the vehicle external communication bus 31 to the vehicle internal communication bus 32, and the ECU 21 to be worked on can receive the update data. ..

(ステップS101):記憶部11は、初期状態フラグを記憶している。初期状態フラグは、車両1の製造時に通信装置10が車両1に取り付けられた時点では、オン状態を表す初期値に設定されている。車両1の出荷までに、後述するように、初期状態フラグの状態を表す値は、初期値以外のオフ状態を表す値に書き換えられる。判定部12は、本ステップで、記憶部11を参照して、初期状態フラグの状態を表す値を取得する。初期状態フラグの状態を表す値がオンを表す場合、ステップS102に進む。初期状態フラグの状態を表す値がオフを表す場合(オンでない場合)、ステップS104に進む。 (Step S101): The storage unit 11 stores the initial state flag. The initial state flag is set to an initial value indicating an on state when the communication device 10 is attached to the vehicle 1 at the time of manufacturing the vehicle 1. By the time the vehicle 1 is shipped, as will be described later, the value representing the state of the initial state flag is rewritten to the value representing the off state other than the initial value. In this step, the determination unit 12 refers to the storage unit 11 and acquires a value indicating the state of the initial state flag. If the value representing the state of the initial state flag indicates on, the process proceeds to step S102. If the value representing the state of the initial state flag indicates off (if it is not on), the process proceeds to step S104.

(ステップS102):認証部13は、外部ツール40と通信し、認証を行う。すなわち図1に示す第1態様で認証処理を行う。認証方法は、認証部13が外部ツール40の認証を行うことができれば、限定されないが、例えばチャレンジレスポンス方式を用いることができる。 (Step S102): The authentication unit 13 communicates with the external tool 40 to perform authentication. That is, the authentication process is performed in the first aspect shown in FIG. The authentication method is not limited as long as the authentication unit 13 can authenticate the external tool 40, and for example, a challenge response method can be used.

(ステップS103):認証部13は、ステップS102での認証に成功した場合、ステップS106に進む。認証に失敗した場合、本処理を終了する。 (Step S103): If the authentication unit 13 succeeds in the authentication in step S102, the authentication unit 13 proceeds to step S106. If authentication fails, this process ends.

(ステップS104):認証部13は、外部ツール40を介してサーバ50と通信し、認証を行う。すなわち図2に示す第2態様で認証処理を行う。認証方法は、認証部13が、サーバ50との通信結果を利用して最終的に外部ツール40の認証を行うことができれば、限定されないが、通信の過程で、認証部13とサーバ50との間の認証、認証部13と外部ツール40との間の認証、外部ツール40とサーバ50との間の認証を行い、これらを組み合わせることで、解析を困難にして、ステップS102の認証よりも、信頼性を高めることができる。これらの認証は、例えばチャレンジレスポンス方式を用いることができる。また、デジタル署名等を適宜組み合わせて通信の信頼性を高めてもよい。 (Step S104): The authentication unit 13 communicates with the server 50 via the external tool 40 to perform authentication. That is, the authentication process is performed in the second aspect shown in FIG. The authentication method is not limited as long as the authentication unit 13 can finally authenticate the external tool 40 by using the communication result with the server 50, but the authentication unit 13 and the server 50 are in the process of communication. Authentication between the authentication unit 13 and the external tool 40, authentication between the external tool 40 and the server 50 are performed, and by combining these, analysis becomes difficult, and the authentication in step S102 is performed. It can increase reliability. For these authentications, for example, a challenge response method can be used. Further, the reliability of communication may be enhanced by appropriately combining digital signatures and the like.

(ステップS105):認証部13は、ステップS104での認証に成功した場合、ステップS106に進む。認証に失敗した場合、本処理を終了する。 (Step S105): If the authentication unit 13 succeeds in the authentication in step S104, the authentication unit 13 proceeds to step S106. If authentication fails, this process ends.

(ステップS106):制御部14は、通信装置10の動作モードとしてリプログラミング通信中継モードを開始し、例えばリプログラミング通信中継モードを開始したことを外部ツール40に通知する。外部ツール40は通知を受けると車外用通信バス31にプログラムの更新データを送出し、通信装置10が、更新データを車内用通信バス32に中継する。ECU21は更新データを取得し、プログラムの書き換えを行う。 (Step S106): The control unit 14 starts the reprogramming communication relay mode as the operation mode of the communication device 10, and notifies the external tool 40 that, for example, the reprogramming communication relay mode has started. Upon receiving the notification, the external tool 40 sends the update data of the program to the communication bus 31 for outside the vehicle, and the communication device 10 relays the update data to the communication bus 32 for inside the vehicle. The ECU 21 acquires the update data and rewrites the program.

(ステップS107):制御部14は、プログラムの更新データの通信が終了したか否かを判定する。判定は、例えば、外部ツール40から通信が終了したことを表す通知を受信したか否かに基づいて行うことができる。制御部14は、通信が終了したと判定した場合は、ステップS108に進み、通信が終了していないと判定した場合は本ステップを繰り返し、通信の終了を待機する。 (Step S107): The control unit 14 determines whether or not the communication of the update data of the program is completed. The determination can be made, for example, based on whether or not a notification indicating that the communication has ended is received from the external tool 40. If it is determined that the communication is completed, the control unit 14 proceeds to step S108, and if it is determined that the communication is not completed, the control unit 14 repeats this step and waits for the end of the communication.

(ステップS108):制御部14は、リプログラミング通信中継モードを終了する。 (Step S108): The control unit 14 ends the reprogramming communication relay mode.

以上で処理を終了する。なお、複数のECU21、22…が作業対象である場合、通信装置10が上述のステップS106でリプログラミング通信中継モードとなっている間に、外部ツール40が書き換え対象の各ECUのプログラムの更新データを車外用通信バス31に送出し、通信装置10が各更新データを車内用通信バス32に中継する。各ECUは、自装置のプログラムの更新データを取得し、それぞれプログラムの書き換えを行う。 This completes the process. When a plurality of ECUs 21, 22 ... Are work targets, the external tool 40 updates the program of each ECU to be rewritten while the communication device 10 is in the reprogramming communication relay mode in step S106 described above. Is sent to the communication bus 31 for outside the vehicle, and the communication device 10 relays each update data to the communication bus 32 for inside the vehicle. Each ECU acquires the update data of the program of its own device and rewrites the program respectively.

車両1の製造時に車両工場でこのような作業を行う場合、作業対象のECUの全てに対して作業が終了すると、記憶部11に記憶されている初期状態フラグの状態を表す値は、オフを表す値に書き換えられる。例えば、作業対象のECUの全てに対して作業が終了したときに外部ツール40が、通信装置10に、初期状態フラグをオフに書き換える要求を通知するようにし、制御部14は、この要求に基づいて、記憶部11に記憶されている初期状態フラグの状態を表す値を、オフを表す値に書き換えるようにすることができる。あるいは、作業対象のECUの全てに対して作業が終了したときに、外部ツール40が、通信装置10に、その後実行する別作業のための信号を送信し、制御部14は、この信号を検知すると、記憶部11に記憶されている初期状態フラグの状態を表す値を、オフを表す値に書き換えるようにしてもよい。またあるいは、制御部14は、車両1内の他の機器からオドメータの値等を車内用通信バス32経由で取得し、これに基づいて車両1が所定距離以上走行して車両工場の外に出たことを検知すると、記憶部11に記憶されている初期状態フラグの状態を表す値を、オフを表す値に書き換えるようにしてもよい。このように初期状態フラグの状態を表す値の書き換えの方法は限定されない。 When such work is performed in the vehicle factory at the time of manufacturing the vehicle 1, when the work is completed for all the ECUs to be worked, the value indicating the state of the initial state flag stored in the storage unit 11 is turned off. Rewritten to the value to be represented. For example, when the work is completed for all the ECUs to be worked, the external tool 40 notifies the communication device 10 of a request to rewrite the initial state flag to off, and the control unit 14 is based on this request. Therefore, the value indicating the state of the initial state flag stored in the storage unit 11 can be rewritten to the value indicating off. Alternatively, when the work is completed for all the ECUs to be worked, the external tool 40 transmits a signal for another work to be executed thereafter to the communication device 10, and the control unit 14 detects this signal. Then, the value indicating the state of the initial state flag stored in the storage unit 11 may be rewritten to the value indicating off. Alternatively, the control unit 14 acquires an odometer value or the like from another device in the vehicle 1 via the in-vehicle communication bus 32, and based on this, the vehicle 1 travels for a predetermined distance or more and goes out of the vehicle factory. When it is detected, the value indicating the state of the initial state flag stored in the storage unit 11 may be rewritten to the value indicating off. In this way, the method of rewriting the value representing the state of the initial state flag is not limited.

なお、車両工場で用いる外部ツール40は、サーバ50との通信機能を持たなくてよいが、車両工場外で用いる、サーバ50との通信機能を有する外部ツール40と同じ物であってもよいし、サーバ50との通信機能を持たない別の物であってもよい。 The external tool 40 used in the vehicle factory does not have to have a communication function with the server 50, but may be the same as the external tool 40 having a communication function with the server 50 used outside the vehicle factory. , It may be another thing that does not have a communication function with the server 50.

なお、リプログラミングの対象が通信装置10であってもよい。その場合、ステップS106、S107、S108で通信装置10のリプログラミングが実施される。例えば、ステップS106で、通信装置10の制御部14は、更新データが、自装置のリプログラミング用の更新データであるか否かを判定し、自装置のリプログラミング用の更新データである場合は、更新データを車内用通信バス32に中継する代わりに、記憶部11に記憶させることにより、プログラムを更新する。 The target of reprogramming may be the communication device 10. In that case, reprogramming of the communication device 10 is performed in steps S106, S107, and S108. For example, in step S106, the control unit 14 of the communication device 10 determines whether or not the update data is the update data for reprogramming of the own device, and if it is the update data for reprogramming of the own device. Instead of relaying the update data to the in-vehicle communication bus 32, the program is updated by storing it in the storage unit 11.

<効果>
以上のように、車両1の製造時の車両工場においては、外部ツール40を用いた作業時に、通信装置10と外部ツール40との間の認証を、サーバ50との通信をせずに行う。これにより一定のセキュリティを確保しつつ、サーバ50との通信の所要時間によるタクトタイムの増加を回避し、また、サーバ50との通信不良による作業停止のおそれをなくし、車両の生産性の低下を抑制できる。また、車両1の出荷後は、外部ツール40を用いた作業時に、サーバ50との通信を含んだ認証処理を行うことによって、車両工場における認証処理よりさらにセキュリティを強化することができる。
<Effect>
As described above, in the vehicle factory at the time of manufacturing the vehicle 1, when the work using the external tool 40 is performed, the authentication between the communication device 10 and the external tool 40 is performed without communicating with the server 50. As a result, while ensuring a certain level of security, it is possible to avoid an increase in takt time due to the time required for communication with the server 50, eliminate the risk of work stoppage due to poor communication with the server 50, and reduce vehicle productivity. Can be suppressed. Further, after the vehicle 1 is shipped, the security can be further enhanced as compared with the authentication process in the vehicle factory by performing the authentication process including the communication with the server 50 when working with the external tool 40.

(第1参考例)
本発明を変形した参考例を説明する。図4は、第1参考例に係る処理の例を示すフローチャートである。図4に示す処理において、ステップS201、S202、S203、S204、S205、S206は、それぞれ、図3に示した実施形態に係る処理の例におけるステップS101、S104、S105、S106、S107、S108に対応し、ステップS102、S103に相当する処理を行わない。すなわち、第1参考例においては、車両工場で作業を行う場合を表す、初期状態フラグがオンである場合は、認証部13は、外部ツール40との認証処理を行わない点で、上述の実施形態と異なる。車両工場において、例えば、作業者が特定の者に限定され、また、外部ツール40が厳重に管理されていれば、セキュリティが十分であるとして、この例のように、外部ツール40の認証を行わなくてもよい。第1参考例によれば、車両生産時に、外部ツールとの間の認証の所要時間によるタクトタイムの増加を回避し、車両の生産性の低下を、上述の実施形態より抑制できる。また、車両1の出荷後は、外部ツールを用いた作業時に、サーバとの通信を含んだ認証処理を行うことによって、セキュリティを強化することができる。
(1st reference example)
A reference example obtained by modifying the present invention will be described. FIG. 4 is a flowchart showing an example of the process according to the first reference example. In the process shown in FIG. 4, steps S201, S202, S203, S204, S205, and S206 correspond to steps S101, S104, S105, S106, S107, and S108 in the example of the process according to the embodiment shown in FIG. 3, respectively. However, the process corresponding to steps S102 and S103 is not performed. That is, in the first reference example, when the initial state flag, which represents the case of performing work in the vehicle factory, is on, the authentication unit 13 does not perform the authentication process with the external tool 40. Different from the form. In the vehicle factory, for example, if the worker is limited to a specific person and the external tool 40 is strictly controlled, the security is sufficient, and the external tool 40 is authenticated as in this example. It does not have to be. According to the first reference example, it is possible to avoid an increase in tact time due to the time required for authentication with an external tool at the time of vehicle production, and to suppress a decrease in vehicle productivity as compared with the above-described embodiment. Further, after the vehicle 1 is shipped, security can be enhanced by performing an authentication process including communication with the server when working with an external tool.

(第2参考例)
図5は、第2参考例に係る処理の例を示すフローチャートである。図5に示す処理においてステップS301、S302、S303、S307、S308、S309は、それぞれ、図3に示した実施形態に係る処理の例におけるステップS101、S102、S103、S106、S107、S108に対応する。
(2nd reference example)
FIG. 5 is a flowchart showing an example of the process according to the second reference example. In the process shown in FIG. 5, steps S301, S302, S303, S307, S308, and S309 correspond to steps S101, S102, S103, S106, S107, and S108 in the example of the process according to the embodiment shown in FIG. 3, respectively. ..

第2参考例においては、ステップS304、S305、S306の処理が、実施形態に係る処理の例におけるステップS104、S105と異なる。以下にステップS304、S305、S306の処理を説明する。 In the second reference example, the processing of steps S304, S305, and S306 is different from the processing of steps S104 and S105 in the example of the processing according to the embodiment. The processing of steps S304, S305, and S306 will be described below.

(ステップS304):判定部12は、認証処理のための通信先として、サーバ50および外部ツール40のうち1つを選択する。例えば、判定部12は記憶部11を参照することで選択を行うことができる。この場合、記憶部11には、車両工場での作業時に、外部ツール40から、例えば車両1の仕向地に応じて、サーバ50および外部ツール40のいずれかを特定する情報が書き込まれる。あるいは、判定部12は、車両1内の他の機器が予め記憶している仕向地等の情報を車内用通信バス32経由で取得し、取得した情報に応じてサーバ50および外部ツール40のいずれかを特定するようにしてもよい。 (Step S304): The determination unit 12 selects one of the server 50 and the external tool 40 as the communication destination for the authentication process. For example, the determination unit 12 can make a selection by referring to the storage unit 11. In this case, when working in the vehicle factory, information for identifying either the server 50 or the external tool 40 is written in the storage unit 11 from the external tool 40, for example, depending on the destination of the vehicle 1. Alternatively, the determination unit 12 acquires information such as a destination stored in advance by another device in the vehicle 1 via the in-vehicle communication bus 32, and either the server 50 or the external tool 40 according to the acquired information. You may try to specify.

(ステップS305):認証部13は、選択した認証先と認証処理を行う。すなわち、選択した認証先が外部ツール40であれば、外部ツール40との通信によって認証を行う。また、選択した認証先がサーバ50であれば、外部ツール40を介してサーバ50と通信し、認証を行う。 (Step S305): The authentication unit 13 performs an authentication process with the selected authentication destination. That is, if the selected authentication destination is the external tool 40, authentication is performed by communicating with the external tool 40. If the selected authentication destination is the server 50, the server 50 is communicated with the server 50 via the external tool 40 to perform authentication.

(ステップS306):認証部13は、ステップS305での認証に成功した場合、ステップS307に進む。認証に失敗した場合、本処理を終了する。 (Step S306): If the authentication unit 13 succeeds in the authentication in step S305, the authentication unit 13 proceeds to step S307. If authentication fails, this process ends.

第2参考例においては、例えば車両1の仕向地に応じて、出荷後の認証方法を切り替えることができる。すなわち、仕向地において、サーバ50との通信が好適に実施可能であれば、サーバ50との通信に基づく認証処理を行うように設定し、サーバ50との通信が困難であれば、サーバ50との通信をせずに認証処理を行うように設定することができる。これにより、第2参考例によれば、車両1の製造時の車両工場においては、外部ツール40を用いた作業時に、通信装置10と外部ツール40との間の認証を、サーバ50との通信をせずに行う。これにより一定のセキュリティを確保しつつ、サーバ50との通信の所要時間によるタクトタイムの増加を回避し、また、サーバ50との通信不良による作業停止のおそれをなくし、車両の生産性の低下を抑制できる。また、車両1の出荷後は、サーバ50との通信が可能な仕向地であれば、外部ツール40を用いた作業時に、サーバ50との通信を含んだ認証処理を行うことによって、車両工場における認証処理よりさらにセキュリティを強化することができる。また、サーバ50との通信が困難な仕向地であっても、外部ツール40を用いた作業時に、外部ツール40との通信による認証処理を行うことによって、一定のセキュリティを確保することができる。 In the second reference example, the authentication method after shipment can be switched according to, for example, the destination of the vehicle 1. That is, at the destination, if communication with the server 50 is suitably possible, the authentication process is set to be performed based on the communication with the server 50, and if communication with the server 50 is difficult, the server 50 and the server 50 are set. It can be set to perform authentication processing without communication. As a result, according to the second reference example, in the vehicle factory at the time of manufacturing the vehicle 1, when the work using the external tool 40 is performed, the authentication between the communication device 10 and the external tool 40 is communicated with the server 50. Do without doing. As a result, while ensuring a certain level of security, it is possible to avoid an increase in takt time due to the time required for communication with the server 50, eliminate the risk of work stoppage due to poor communication with the server 50, and reduce vehicle productivity. Can be suppressed. Further, after the vehicle 1 is shipped, if the destination is capable of communicating with the server 50, the authentication process including the communication with the server 50 is performed at the time of work using the external tool 40 in the vehicle factory. Security can be further enhanced than the authentication process. Further, even in a destination where communication with the server 50 is difficult, a certain level of security can be ensured by performing an authentication process by communicating with the external tool 40 when working with the external tool 40.

以上の説明において、外部ツールからのアクセスを許可して行う作業の例としてリプログラミングを挙げたが、これに限定されず、本発明は、車両等が備える通信装置による外部ツールからのアクセス可否の判定のための認証処理全般に適用することができる。 In the above description, reprogramming has been mentioned as an example of work performed by permitting access from an external tool, but the present invention is not limited to this, and the present invention determines whether or not access from an external tool is possible by a communication device provided in a vehicle or the like. It can be applied to the whole authentication process for judgment.

以上、本発明を説明したが、本発明は、通信装置だけでなく、通信装置のコンピュータが実行する通信方法、通信プログラムおよびこれを記憶したコンピュータ読み取り可能な非一時的な記録媒体、車両等として捉えることができる。 Although the present invention has been described above, the present invention includes not only a communication device but also a communication method executed by a computer of the communication device, a communication program, a computer-readable non-temporary recording medium that stores the communication program, a vehicle, and the like. You can catch it.

本発明は、車両等に搭載される通信装置に有用である。 The present invention is useful for communication devices mounted on vehicles and the like.

1 車両
10 通信装置
11 記憶部
12 判定部
13 認証部
14 制御部
21、22 ECU
30 コネクタ
31 車外用通信バス
32 車内用通信バス
40 外部ツール
50 サーバ
1 Vehicle 10 Communication device 11 Storage unit 12 Judgment unit 13 Authentication unit 14 Control unit 21, 22 ECU
30 Connector 31 External communication bus 32 Internal communication bus 40 External tool 50 Server

Claims (8)

車両に搭載された通信装置であって、
所定のフラグの状態を表す値として、前記車両の製造時には初期値を記憶し、前記車両の出荷後には前記初期値以外の値を記憶する記憶部と、
前記通信装置が外部ツールから所定の信号を受信した場合に、前記記憶部を参照して、前記所定のフラグの状態を表す値が初期値であるか否かの判定をする判定部と、
前記判定部の判定結果に応じた認証処理を行う認証部と、を備え、
前記認証部は、
記所定のフラグの状態を表す値が前記初期値でない場合に外部のサーバとの通信を行うことを含む認証処理を行い、
前記所定のフラグの状態を表す値が前記初期値である場合に、前記外部のサーバとの通信を行うことなく前記外部ツールとの通信による認証処理を行う、通信装置。
A communication device mounted on a vehicle
As a value representing the state of a predetermined flag, a storage unit that stores an initial value at the time of manufacturing the vehicle and stores a value other than the initial value after the vehicle is shipped.
When the communication device receives a predetermined signal from an external tool, a determination unit that refers to the storage unit and determines whether or not the value representing the state of the predetermined flag is an initial value, and a determination unit.
It is provided with an authentication unit that performs authentication processing according to the determination result of the determination unit.
The certification unit
When the value representing the state of the predetermined flag is not the initial value, an authentication process including communication with an external server is performed.
A communication device that performs authentication processing by communicating with the external tool without communicating with the external server when the value representing the state of the predetermined flag is the initial value .
前記認証部が行う前記外部のサーバとの通信を含む認証処理は、前記認証部と前記外部のサーバとの間の認証、前記認証部と前記外部ツールとの間の認証、および前記外部ツールと前記外部のサーバとの間の認証を組み合わせることによって実行される、請求項1に記載の通信装置。The authentication process including communication with the external server performed by the authentication unit includes authentication between the authentication unit and the external server, authentication between the authentication unit and the external tool, and the external tool. The communication device according to claim 1, which is executed by combining authentication with the external server. 前記外部ツールは、前記車両に設けられたコネクタを介して前記通信装置と接続される、請求項1または2に記載の通信装置。The communication device according to claim 1 or 2, wherein the external tool is connected to the communication device via a connector provided on the vehicle. 前記外部のサーバは、前記外部ツールを介して前記通信装置と接続される、請求項1ないし3のいずれか1項に記載の通信装置。The communication device according to any one of claims 1 to 3, wherein the external server is connected to the communication device via the external tool. 前記所定の信号は、前記通信装置の動作モードを、前記外部ツールが送出したプログラムの更新データを前記車両が備える電子制御装置が受信できるモードに切り替えることを要求する信号である、請求項1ないし4のいずれか1項に記載の通信装置。The predetermined signal is a signal requesting that the operation mode of the communication device be switched to a mode in which the electronic control device included in the vehicle can receive the update data of the program transmitted by the external tool. The communication device according to any one of 4. 前記車両の製造時に前記車両に取り付けられた前記通信装置の前記記憶部に記憶されている前記初期値は、前記車両の出荷までに前記初期値以外の値に書き換えられる、請求項1ないし5のいずれか1項に記載の通信装置。The initial value stored in the storage unit of the communication device attached to the vehicle at the time of manufacturing the vehicle is rewritten to a value other than the initial value by the time the vehicle is shipped, according to claims 1 to 5. The communication device according to any one of the following items. 車両に搭載された通信装置が行う通信方法であって、It is a communication method performed by a communication device mounted on a vehicle.
所定のフラグの状態を表す値として、前記車両の製造時には記憶部に初期値を記憶し、前記車両の出荷後には前記記憶部に前記初期値以外の値を記憶するステップと、As a value representing the state of a predetermined flag, a step of storing an initial value in a storage unit at the time of manufacturing the vehicle and storing a value other than the initial value in the storage unit after the vehicle is shipped.
前記通信装置が外部ツールから所定の信号を受信した場合に、前記記憶部を参照して、前記所定のフラグの状態を表す値が初期値であるか否かを判定するステップと、When the communication device receives a predetermined signal from an external tool, the step of referring to the storage unit and determining whether or not the value representing the state of the predetermined flag is the initial value,
前記所定のフラグの状態を表す値が前記初期値でない場合に、外部のサーバとの通信を行うことを含む認証処理を行うステップと、A step of performing authentication processing including communication with an external server when the value representing the state of the predetermined flag is not the initial value, and
前記所定のフラグの状態を表す値が前記初期値である場合に、前記外部のサーバとの通信を行うことなく前記外部ツールとの通信による認証処理を行うステップと、を含む、通信方法。A communication method comprising a step of performing an authentication process by communicating with the external tool without communicating with the external server when the value representing the state of the predetermined flag is the initial value.
車両に搭載された通信装置のコンピュータに実行させる通信プログラムであって、A communication program that is executed by the computer of the communication device installed in the vehicle.
所定のフラグの状態を表す値として、前記車両の製造時には記憶部に初期値を記憶し、前記車両の出荷後には前記記憶部に前記初期値以外の値を記憶するステップと、As a value representing the state of a predetermined flag, a step of storing an initial value in a storage unit at the time of manufacturing the vehicle and storing a value other than the initial value in the storage unit after the vehicle is shipped.
前記通信装置が外部ツールから所定の信号を受信した場合に、前記記憶部を参照して、前記所定のフラグの状態を表す値が初期値であるか否かを判定するステップと、When the communication device receives a predetermined signal from an external tool, the step of referring to the storage unit and determining whether or not the value representing the state of the predetermined flag is the initial value,
前記所定のフラグの状態を表す値が前記初期値でない場合に、外部のサーバとの通信を行うことを含む認証処理を行うステップと、A step of performing authentication processing including communication with an external server when the value representing the state of the predetermined flag is not the initial value, and
前記所定のフラグの状態を表す値が前記初期値である場合に、前記外部のサーバとの通信を行うことなく前記外部ツールとの通信による認証処理を行うステップと、を含む、通信プログラム。A communication program including a step of performing an authentication process by communicating with the external tool without communicating with the external server when the value representing the state of the predetermined flag is the initial value.
JP2018172680A 2018-09-14 2018-09-14 Communication equipment, communication methods, and communication programs Active JP7081415B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018172680A JP7081415B2 (en) 2018-09-14 2018-09-14 Communication equipment, communication methods, and communication programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018172680A JP7081415B2 (en) 2018-09-14 2018-09-14 Communication equipment, communication methods, and communication programs

Publications (2)

Publication Number Publication Date
JP2020046743A JP2020046743A (en) 2020-03-26
JP7081415B2 true JP7081415B2 (en) 2022-06-07

Family

ID=69899600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018172680A Active JP7081415B2 (en) 2018-09-14 2018-09-14 Communication equipment, communication methods, and communication programs

Country Status (1)

Country Link
JP (1) JP7081415B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002070636A (en) 2000-08-31 2002-03-08 Suzuki Motor Corp On-vehicle electronic controller, data rewrite system, data rewrite method, and storage medium
JP2013171378A (en) 2012-02-20 2013-09-02 Denso Corp Data communication authentication system for vehicle, and gateway apparatus for vehicle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002070636A (en) 2000-08-31 2002-03-08 Suzuki Motor Corp On-vehicle electronic controller, data rewrite system, data rewrite method, and storage medium
JP2013171378A (en) 2012-02-20 2013-09-02 Denso Corp Data communication authentication system for vehicle, and gateway apparatus for vehicle

Also Published As

Publication number Publication date
JP2020046743A (en) 2020-03-26

Similar Documents

Publication Publication Date Title
JP6724717B2 (en) In-vehicle device determination system
JP5949732B2 (en) Program update system and program update method
US9635151B2 (en) In-vehicle communication system and in-vehicle relay apparatus
JP5900390B2 (en) Access restriction device, in-vehicle communication system, and communication restriction method
JP5729337B2 (en) VEHICLE AUTHENTICATION DEVICE AND VEHICLE AUTHENTICATION SYSTEM
JP6428652B2 (en) In-vehicle update device, update system, and update processing program
JP6766766B2 (en) Authentication controller, authentication control method and authentication control program
WO2019216330A1 (en) In-vehicle update device, update process method, and update process program
JP6981755B2 (en) In-vehicle network system
JP2019009639A (en) On-vehicle communication system, on-vehicle relay device, and relay program
JP6677132B2 (en) In-vehicle communication device, management device, management method, and monitoring program
JP2019202605A (en) On-vehicle communication device and communication method
JP7081415B2 (en) Communication equipment, communication methods, and communication programs
JP5783013B2 (en) In-vehicle communication system
JP6769270B2 (en) In-vehicle electronic control device, in-vehicle electronic control system, relay device
WO2019221058A1 (en) Vehicle-mounted relay device, communication system, bus determination method, and computer program
JP6264066B2 (en) Relay system
JP7211189B2 (en) Update processing system and update processing method
WO2019017175A1 (en) Transmission device, transmission method, and computer program
JP7087334B2 (en) Electronic control device
JP2014021617A (en) Authentication device, and authentication system for vehicles
JP2018164232A (en) Communication system, relay device, communication method, and computer program
JP6631676B2 (en) In-vehicle update device, update system and update processing program
CN111984284A (en) Data rewriting method and data rewriting system
WO2023187896A1 (en) Communication system, transmitter, and receiver

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211208

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220509

R151 Written notification of patent or utility model registration

Ref document number: 7081415

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151