JP2021140407A - Electronic control device and program update system for electronic control device - Google Patents
Electronic control device and program update system for electronic control device Download PDFInfo
- Publication number
- JP2021140407A JP2021140407A JP2020036870A JP2020036870A JP2021140407A JP 2021140407 A JP2021140407 A JP 2021140407A JP 2020036870 A JP2020036870 A JP 2020036870A JP 2020036870 A JP2020036870 A JP 2020036870A JP 2021140407 A JP2021140407 A JP 2021140407A
- Authority
- JP
- Japan
- Prior art keywords
- control device
- electronic control
- signal
- microcomputer
- memory
- 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
Links
- 238000012360 testing method Methods 0.000 claims abstract description 25
- 238000000034 method Methods 0.000 claims description 29
- 238000012795 verification Methods 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 239000003086 colorant Substances 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 11
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
- 230000002542 deteriorative effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Images
Abstract
Description
本発明は、マイクロコンピュータを備える電子制御装置,及び当該装置のプログラムを更新するシステムに関する。 The present invention relates to an electronic control device including a microcomputer and a system for updating a program of the device.
例えばカーナビゲーション装置や車両制御を行うECU(Electronic Control Unit)のような電子制御装置は、マイクロコンピュータ等のICを備えている。以下、「マイコン」と称する。このような電子制御装置では、マイコンの制御プログラムがバージョンアップ等された際に、通常は製品の状態でプログラムの再書込み、所謂「リプロ」を行うように構成されている。 For example, an electronic control device such as a car navigation device or an ECU (Electronic Control Unit) that controls a vehicle includes an IC such as a microcomputer. Hereinafter, it is referred to as a "microcomputer". In such an electronic control device, when the control program of the microcomputer is upgraded, the program is usually rewritten in the state of the product, so-called "repro".
しかしながら、従来はリプロを行う際に、専用のアプリケーションツールを電子制御装置に接続し、マイコンにプログラムの書込みを指示することで行っていた。そのため、電子制御装置とツールとを着脱したり、ツールを起動する等作業が必要であり、効率が悪く作業コストを上昇させる要因となっていた。 However, in the past, when performing a repro, a dedicated application tool was connected to an electronic control device and the microcomputer was instructed to write a program. Therefore, it is necessary to perform work such as attaching / detaching the electronic control device and the tool and activating the tool, which is inefficient and causes an increase in work cost.
本発明は上記事情に鑑みてなされたものであり、その目的は、専用のアプリケーションツールを用いることなく、マイコンの制御プログラムの書込みを行うことができる電子制御装置及び電子制御装置のプログラム更新システムを提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an electronic control device and a program update system for an electronic control device capable of writing a control program of a microcomputer without using a dedicated application tool. To provide.
請求項1記載の電子制御装置によれば、テスト信号が入力される信号入力端子と、マイクロコンピュータの制御プログラムが記憶されている記憶媒体が接続される接続端子とを備える。そして、マイクロコンピュータは、起動時にテスト信号が入力されていると、メモリに記憶されている制御プログラムを更新する更新モードで起動し、接続端子に接続されている記憶媒体より読み出した制御プログラムをメモリに書き込む更新処理を行う。また、それに伴い、更新処理の進行状況を報知するための報知信号を外部に出力する。
The electronic control device according to
このように構成すれば、専用のアプリケーションツールを用いずとも、信号入力端子にテスト信号を入力した状態で起動させるだけで、マイクロコンピュータを更新モードに移行させて更新処理を実行させることができる。また、その実行中に、マイクロコンピュータが外部に出力する報知信号をモニタすれば更新処理の進行状況を把握できるので、専用のアプリケーションツールがなくとも、効率を低下させることなく作業を行うことができる。 With this configuration, it is possible to shift the microcomputer to the update mode and execute the update process simply by starting the microcomputer with the test signal input to the signal input terminal without using a dedicated application tool. In addition, if the notification signal output by the microcomputer to the outside is monitored during the execution, the progress of the update process can be grasped, so that the work can be performed without degrading the efficiency without a dedicated application tool. ..
具体的には、請求項2又は3に記載したように、マイクロコンピュータは、報知信号として更新処理の実行中に実行中信号を出力し、更新処理の実行後に終了信号を出力したり(請求項2)、更新処理の実行前にスタンバイ信号を出力する(請求項3)。これにより、作業者は、更新処理の実行中か、実行が終了したか、実行前の状態か否かを把握できる。
Specifically, as described in
また、請求項4記載の電子制御装置によれば、マイクロコンピュータは、更新処理の実行が完了すると、終了信号を出力する前にメモリに制御プログラムが正しく書き込まれたか否かを検証する検証処理を行う。そして、検証処理の結果が正常であれば終了信号を出力し、前記結果が異常であれば異常信号を出力する。これにより、作業者は、制御プログラムの更新が正常に終了したか否かを把握できる。
Further, according to the electronic control device according to
請求項5記載の電子制御装置のプログラム更新システムによれば、表示器には、発光色が異なる2つの発光素子と、これらの発光素子の点灯及び消灯を制御する制御部を備える。そして、制御部は、請求項4記載の電子制御装置より入力される報知信号が変化するのに応じて、2つの発光素子の点消灯状態を組み合わせて4つの表示態様に変化させる。これにより、作業者は、表示器の発光素子の点消灯状態を参照すれば、更新処理の実行中か、実行前の状態か、更新が正常に終了したか否かを容易に把握できる。
According to the program update system of the electronic control device according to
以下、一実施形態について説明する。図1に示すように、本実施形態のプログラム更新システムは、例えばカーナビゲーション装置のような電子制御装置1が備えるメインマイコン2の制御プログラムを更新の対象とする。電子制御装置1には、車両に搭載されたバッテリである電源3が車両コネクタ4を介して接続されている。車両コネクタ4からは、電源3の正側端子に直接接続されている電源+Bと、イグニッションスイッチがオンされた際に供給される電源IGとが供給される。
Hereinafter, one embodiment will be described. As shown in FIG. 1, the program update system of the present embodiment targets the control program of the
メインマイコン2は、USBインターフェイス5を備えており、電子制御装置1には、USBポート6を介してUSBメモリ7が接続されている。記憶媒体の一例であるUSBメモリ7には、メインマイコン2の図示しないメモリに記憶されているものよりも、バージョンが新しい制御プログラムが記憶されている。USBポート6は接続端子の一例である。
The
電子制御装置1は、テスト信号の入力端子TESTを有しており、この端子TESTには、発振器8が接続される。発振器8は、例えば振幅が3.3V,周波数300Hzの矩形波信号をテスト信号として出力する。メインマイコン2は、起動時において端子TESTにテスト信号が与えられていると、動作モードが検査プログラムモードとなって起動する。検査プログラムモードは更新モードに相当する。メインマイコン2は、検査プログラムモードで起動するとUSBメモリ7にアクセスし、記憶されている制御プログラムを読み出して自身が備えるメモリに書き込んで更新する処理,つまり「リプロ」を行う。
The
また、電子制御装置1には、USBポート9及びケーブル10を介して表示器11が接続されている。表示器11も、USBポート12及びUSBインターフェイス13を備えている。USBインターフェイス13には、ドライバ14を介して発光素子である2つのLED15G,15Rが接続されている。尚、USBインターフェイス13には、図示しないが制御用のマイクロコンピュータも含まれており、USBインターフェイス13は制御部に相当する。図2に示すように、USBインターフェイス13は、電子制御装置1からUSB通信により受信した制御指令に応じて、2つのLED15G,15Rの点消灯状態を制御する。
Further, the
次に、本実施形態の作用について説明する。図3に示すように、電子制御装置1のメインマイコン2は、起動すると端子TESTにテスト信号が入力されているか否かを判断する(S1)。例えば、信号のライズエッジ間隔を計測することで周波数300Hzのテスト信号か否かを判断する。テスト信号が入力されていなければ(NO)通常モードで起動し(S11)、テスト信号が入力されていれば(YES)検査プログラムモードで起動する(S2)。検査プログラムモードでは、メインマイコン2は、先ず表示器11と通信を行い、LED15Rを点灯させる(S3)。これは、図2に示す「状態1」:「リプロ開始前のスタンバイ状態」であることを示す。尚、必要であれば、「状態1」のLED表示を維持して作業者に確実に視認させるため、所定の待機時間を設けても良い。
Next, the operation of this embodiment will be described. As shown in FIG. 3, when the
続いて、メインマイコン2は、USBメモリ7にアクセスして記憶されている上位バージョンのプログラムを読み込み、自身のメモリに書き込んで更新するリプロ処理を開始する(S4)。それから、LED15R及び15Gを共に点灯させる(S5)。これは、図2に示す「状態2」:「リプロ実行中」であることを示す。ここで、必要に応じて待機時間を設けても良いことはステップS3と同様である。
Subsequently, the
上位バージョンのプログラムを全てメモリに書き込んでリプロ処理を終了すると(S6)、メインマイコン2は、プログラムが正しくメモリに書き込まれているか否かを検証するベリファイ処理を行う(S7)。ベリファイ処理では、例えばUSBメモリ7から読み出したプログラムのデータと、対応するメモリアドレスのデータとを照合する。
When all the higher version programs are written in the memory and the repro processing is completed (S6), the
そして、全てのプログラムがメモリに正しく書き込まれており、ベリファイ処理の結果が「OK」であれば(S8;YES)、LED15Gのみを点灯させる(S9)。これは、図2に示す「状態4」:「リプロ正常終了」であることを示す。プログラムの少なくとも一部がメモリに正しく書き込まれておらず、ベリファイ処理の結果が「NG」であれば(S8;NO)、LED15を消灯させる(S10)。これは、図2に示す「状態3」:「リプロNG」であることを示す。
Then, if all the programs are correctly written in the memory and the result of the verification process is "OK" (S8; YES), only the
尚、ステップS3,S5,S9及びS10におけるLED15の制御指令には、例えば2ビットデータを用いれば良い。例えば各点消灯制御に対し、2ビットのデータ値を以下のように割り当てた際に、メインマイコン2が表示器11に送信する各データ値は報知信号の一例であり、各報知信号の内容は以下に対応する。
データ値 報知信号
00 状態1 スタンバイ信号
01 状態2 実行中信号
10 状態3 異常信号
11 状態4 終了信号
For example, 2-bit data may be used for the control command of the LED 15 in steps S3, S5, S9 and S10. For example, when a 2-bit data value is assigned to each point extinguishing control as follows, each data value transmitted by the
Data value Notification signal 00
10 State 3
以上のように本実施形態によれば、電子制御装置1に入力端子TESTと、メインマイコン2の制御プログラムが記憶されているUSBメモリ7が接続されるUSBポート6とを備える。そして、メインマイコン2は、起動時にテスト信号が入力されていると、メモリに記憶されている制御プログラムを更新する検査プログラムモードで起動し、USBメモリ7より読み出した制御プログラムをメモリに書き込むリプロ処理を行う。また、それに伴い、リプロ処理の進行状況を報知するための報知信号を表示器11に出力する。
As described above, according to the present embodiment, the
このように構成すれば、専用のアプリケーションツールを用いずとも、端子TESTにテスト信号を入力した状態で起動させるだけで、メインマイコン2を検査プログラムモードに移行させてリプロ処理を実行させることができる。また、その実行中に、メインマイコン2が外部に出力する報知信号をモニタすれば更新処理の進行状況を把握できるので、専用のアプリケーションツールがなくとも、効率を低下させることなく作業を行うことができる。
With this configuration, the
そして、メインマイコン2は、リプロ処理の実行中に実行中信号を出力し、実行後に終了信号を出力したり、実行前にスタンバイ信号を出力する。これらにより、作業者は報知信号の内容を把握すれば、リプロ処理の実行中か、実行が終了したか、実行前の状態か否かを把握できる。また、メインマイコン2は、リプロ処理の実行が完了すると、終了信号を出力する前にベリファイ処理を行い、その結果が正常であれば終了信号を出力し、前記結果が異常であれば異常信号を出力する。これにより、作業者は、制御プログラムの更新が正常に終了したか否かを把握できる。
Then, the
また、表示器11に、LED15R,15Gと、これらの点灯及び消灯を制御するUSBインターフェイス13を備え、USBインターフェイス13は、電子制御装置1より入力される報知信号が変化するのに応じて、LED15R,15Gの点消灯状態を組み合わせて4つの表示態様に変化させる。これにより、作業者は、LED15R,15Gの点消灯状態を参照すれば、リプロ処理の実行中か、実行前の状態か、更新が正常に終了したか否かを容易に把握できる。
Further, the
(その他の実施形態)
テスト信号は、周波数300Hzの矩形波信号に限ることはない。周波数を適宜変更しても良いし、テスト信号として端子TESTにハイレベルを付与しても良い。また、所定のパルス幅を有するモノパルス信号等でも良い。
LEDの発光色は、赤や緑に限らず適宜変更して良い。また、4つの状態に対応させて4色のLEDを個別に点灯させても良く、その場合の発光色は全て同じでも良い。
また、電子制御装置1に接続する周辺機器は、表示器11に限らない。例えば、7セグメントLEDにより報知信号としての2ビットデータ値をそのまま表示させる構成でも良いし、前記データ値をコードに変換して表示させる構成でも良い。
電子制御装置1と周辺機器との間で用いる通信プロトコルは、USBに限らない。
電子制御装置は、カーナビゲーション装置に限らない。
(Other embodiments)
The test signal is not limited to a rectangular wave signal having a frequency of 300 Hz. The frequency may be changed as appropriate, or a high level may be given to the terminal TEST as a test signal. Further, a monopulse signal or the like having a predetermined pulse width may be used.
The emission color of the LED is not limited to red or green and may be changed as appropriate. Further, the four color LEDs may be individually lit corresponding to the four states, and the emission colors in that case may be the same.
Further, the peripheral device connected to the
The communication protocol used between the
The electronic control device is not limited to the car navigation device.
本開示は、実施例に準拠して記述されたが、本開示は当該実施例や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、さらには、それらに一要素のみ、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範疇や思想範囲に入るものである。 Although the present disclosure has been described in accordance with the examples, it is understood that the present disclosure is not limited to the examples and structures. The present disclosure also includes various modifications and modifications within a uniform range. In addition, various combinations and forms, as well as other combinations and forms that include only one element, more, or less, are also within the scope of the present disclosure.
図面中、1は電子制御装置、2はメインマイクロコンピュータ、6はUSBポート、7はUSBメモリ、11は表示器、15はLEDを示す。 In the drawings, 1 is an electronic control device, 2 is a main microcomputer, 6 is a USB port, 7 is a USB memory, 11 is a display, and 15 is an LED.
Claims (5)
テスト信号が入力される信号入力端子(TEST)と、
前記マイクロコンピュータの制御プログラムが記憶されている記憶媒体が接続される接続端子(6)とを備え、
前記マイクロコンピュータは、起動時に前記テスト信号が入力されていると、メモリに記憶されている制御プログラムを更新する更新モードで起動し、
前記接続端子に接続されている記憶媒体より読み出した制御プログラムを前記メモリに書き込む更新処理を行うと共に、
前記更新処理の進行状況を報知するための報知信号を外部に出力する電子制御装置。 In an electronic control device including a microcomputer (2)
The signal input terminal (TEST) to which the test signal is input and
It is provided with a connection terminal (6) to which a storage medium in which the control program of the microcomputer is stored is connected.
When the test signal is input at the time of startup, the microcomputer is started in an update mode for updating the control program stored in the memory.
An update process is performed in which the control program read from the storage medium connected to the connection terminal is written to the memory, and the control program is written to the memory.
An electronic control device that outputs a notification signal to the outside to notify the progress of the update process.
前記更新処理の実行後に終了信号を出力する請求項1記載の電子制御装置。 The microcomputer outputs an execution signal as the notification signal during the execution of the update process.
The electronic control device according to claim 1, wherein an end signal is output after the update process is executed.
前記検証処理の結果が異常であれば異常信号を出力する請求項2又は3記載の電子制御装置。 When the execution of the update process is completed, the microcomputer performs a verification process for verifying whether or not the control program is correctly written in the memory before outputting the end signal, and the result of the verification process is normal. If so, output the end signal and
The electronic control device according to claim 2 or 3, which outputs an abnormal signal when the result of the verification process is abnormal.
この電子制御装置に接続されて前記報知信号が入力され、発光色が異なる2つの発光素子(15R,15G)と、これら2つの発光素子の点灯及び消灯を制御する制御部(13)とを有する表示器(11)とを備え、
前記制御部は、入力される報知信号が変化するのに応じて、前記2つの発光素子の点消灯状態を組み合わせて4つの表示態様に変化させる電子制御装置のプログラム更新システム。 The electronic control device (1) according to claim 4 and
It has two light emitting elements (15R, 15G) connected to the electronic control device and input with the notification signal and having different emission colors, and a control unit (13) for controlling lighting and extinguishing of these two light emitting elements. Equipped with a display (11)
The control unit is a program update system of an electronic control device that changes the on / off state of the two light emitting elements into four display modes in response to a change in an input notification signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020036870A JP2021140407A (en) | 2020-03-04 | 2020-03-04 | Electronic control device and program update system for electronic control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020036870A JP2021140407A (en) | 2020-03-04 | 2020-03-04 | Electronic control device and program update system for electronic control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2021140407A true JP2021140407A (en) | 2021-09-16 |
Family
ID=77668671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020036870A Pending JP2021140407A (en) | 2020-03-04 | 2020-03-04 | Electronic control device and program update system for electronic control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2021140407A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008140343A (en) * | 2006-12-05 | 2008-06-19 | Denso Corp | Electronic apparatus |
JP2015037899A (en) * | 2012-12-04 | 2015-02-26 | バブ日立工業株式会社 | Vehicle program rewrite device |
-
2020
- 2020-03-04 JP JP2020036870A patent/JP2021140407A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008140343A (en) * | 2006-12-05 | 2008-06-19 | Denso Corp | Electronic apparatus |
JP2015037899A (en) * | 2012-12-04 | 2015-02-26 | バブ日立工業株式会社 | Vehicle program rewrite device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6957136B2 (en) | Apparatus for rewriting a memory in a vehicle mounted ECU through communications | |
JP2018129093A (en) | On-vehicle program writing device | |
JP4722194B2 (en) | Rewriting system for vehicles | |
KR100317593B1 (en) | Vehicle control device | |
JPH09160766A (en) | Electronic controller | |
JP2009264828A (en) | Electronic control device | |
JP2002278783A (en) | System for rewriting firmware | |
JP2000259420A (en) | Device for updating learning value for electronic controller | |
JP2007257473A (en) | Onboard control unit | |
JP3870563B2 (en) | Electronic control device and non-volatile memory rewrite count method | |
JP2001123874A (en) | Program rewrite system or memory rewriting system for electronic control device | |
JP2021140407A (en) | Electronic control device and program update system for electronic control device | |
JP2003337748A (en) | Electronic controller | |
CN114168395A (en) | Chip power-on control method, control device and storage medium | |
JP2008143418A (en) | Data rewriting state display control device | |
KR19990013291A (en) | Vehicle Control | |
JP2005338955A (en) | Electronic control device | |
JP2006177287A (en) | Inspection device and inspection method for on-vehicle type failure diagnosis system | |
CN113050969A (en) | Display parameter updating method, driving chip and display device | |
JP2014215871A (en) | Electronic control device | |
JP2007015643A (en) | Electronic control device for vehicle | |
JP2000207194A (en) | Method for writing data into nonvolatile memory inside on-vehicle electronic unit | |
US20220019424A1 (en) | Software update apparatus, update control method, non-transitory storage medium storing update control program, server, ota master, and center | |
WO2009125474A1 (en) | Civil engineering work machinery and tool with individual information writable microcomputer | |
JP7225602B2 (en) | substrate |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220810 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230630 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230704 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20231226 |