JP5790514B2 - Electronic equipment - Google Patents
Electronic equipment Download PDFInfo
- Publication number
- JP5790514B2 JP5790514B2 JP2012010855A JP2012010855A JP5790514B2 JP 5790514 B2 JP5790514 B2 JP 5790514B2 JP 2012010855 A JP2012010855 A JP 2012010855A JP 2012010855 A JP2012010855 A JP 2012010855A JP 5790514 B2 JP5790514 B2 JP 5790514B2
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- rewriting
- program
- microcomputers
- distribution
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Description
本発明は、複数のマイクロコンピュータが内部バスを介して相互通信可能に接続されて構成される電子装置に関するものである。 The present invention relates to an electronic device configured by connecting a plurality of microcomputers via an internal bus so as to be able to communicate with each other.
従来、複数のマイクロコンピュータが内部バスを介して相互通信可能に接続されて構成される電子装置として、下記特許文献1に開示される車両用通信装置が知られている。この車両用通信装置のマザーボードには、機能の異なる複数のECUがモジュール化されて共通の内部バスによってそれぞれ接続されている。また、マザーボードには、整備用端末等の外部機器との相互通信を可能とするデータリンクコネクタが、外部バスによって接続されている。 2. Description of the Related Art Conventionally, a vehicle communication device disclosed in Patent Document 1 is known as an electronic device configured by connecting a plurality of microcomputers via an internal bus so as to be capable of mutual communication. A plurality of ECUs having different functions are modularized and connected to a motherboard of the vehicle communication device by a common internal bus. Further, a data link connector that enables mutual communication with an external device such as a maintenance terminal is connected to the motherboard via an external bus.
そして、マザーボードに搭載される通信制御用マイクロコンピュータは、整備用端末から受信したデータを、内部バスを介して他のECUのマイクロコンピュータへ送信可能であって、内部バスを介して他のECUのマイクロコンピュータから受信したデータを、整備用端末へ送信可能に構成されている。 The communication control microcomputer mounted on the motherboard can transmit the data received from the maintenance terminal to the microcomputer of the other ECU via the internal bus, and the data of the other ECU can be transmitted via the internal bus. The data received from the microcomputer can be transmitted to the maintenance terminal.
ところで、マザーボードに接続される各マイクロコンピュータは、フラッシュROM等の記憶手段に所定のプログラムが記憶されており、このプログラムを実行することでそれぞれ所定の機能を実現するように構成されている。このようにフラッシュROM等に記憶されるプログラムを書換える場合には、上記データリンクコネクタに書換用外部装置を接続し、この書換用外部装置からデータリンクコネクタおよび外部バスを介して送信される書換用プログラムを、マザーボードおよび内部バスを介して書換対象のマイクロコンピュータのRAM等へ送信される。そして、このように送信された書換用プログラムは、フラッシュROM書換えモードに設定された書換対象マイクロコンピュータに規定の手順により、フラッシュROM等に記憶されるプログラムが書換えられることとなる。 By the way, each microcomputer connected to the motherboard stores a predetermined program in a storage means such as a flash ROM, and is configured to execute a predetermined function by executing this program. When rewriting a program stored in a flash ROM or the like in this way, a rewrite external device is connected to the data link connector, and the rewrite transmitted from the rewrite external device via the data link connector and the external bus Is transmitted to the RAM of the microcomputer to be rewritten via the mother board and the internal bus. The rewriting program transmitted in this way is rewritten with the program stored in the flash ROM or the like according to the procedure prescribed in the microcomputer to be rewritten set in the flash ROM rewriting mode.
しかしながら、規定の手順において、フラッシュROM書換完了し外部バスを開放するまでの時間は、外部バス、内部バスの通信速度、書換対象マイコロコンピュータの書換え速度等により決定され、その間外部バスは占有された状態となる。このため、書換対象マイクロコンピュータの性能が低く書換対象マイクロコンピュータの書換え速度がネックとなっている場合、一時的に書換え対象のマイクロコンピュータのRAM等に一時的に記憶することで、外部バス開放までの時間を短縮することが可能ではあるが、一般的にRAM等の記憶容量は、フラッシュROMの記憶容量よりも小さく、全ての書換えプログラムをRAMに一時保存することができず、当該書換用プログラムを分割した一部のデータがフラッシュROMに記憶される記憶処理中でも残りのデータにより外部バスが占有された状態となる。この場合、書換用外部装置からの書換用プログラムの一部がRAM等に一時記憶された後にフラッシュROM等に記憶される処理を順次繰り返すことで、プログラムの書換えが完了する。そうすると、書換対象マイクロコンピュータに対するプログラムの書換えが完了するまで、書換用プログラムにより外部バスが占有されることとなり、この外部バスを共用する他の電子装置のマイクロコンピュータにおけるプログラムの書換えが実施できない状態となる。すなわち、外部バスを共用する複数の電子装置におけるトータルのプログラム書換時間が長くなってしまう。特に自動車業界では、車両上には、多くの電子装置、マイクロコンピュータが搭載されている為、それらトータルのプログラムの書換時間を短くすることが、強く求められている。 However, in the specified procedure, the time from the completion of flash ROM rewriting until the external bus is released is determined by the communication speed of the external bus, internal bus, rewriting speed of the reprogramming target Mikolo computer, etc., and the external bus is occupied during that time. It becomes a state. For this reason, when the performance of the microcomputer to be rewritten is low and the rewriting speed of the microcomputer to be rewritten is a bottleneck, it is temporarily stored in the RAM of the microcomputer to be rewritten until the external bus is released. However, in general, the storage capacity of the RAM or the like is smaller than the storage capacity of the flash ROM, and all the rewriting programs cannot be temporarily stored in the RAM. Even during the storage process in which a part of the data obtained by dividing is stored in the flash ROM, the external bus is occupied by the remaining data. In this case, the rewriting of the program is completed by sequentially repeating the processing stored in the flash ROM or the like after a part of the rewriting program from the external device for rewriting is temporarily stored in the RAM or the like. Then, the rewriting program occupies the external bus until the rewriting of the program to the rewriting target microcomputer is completed, and the rewriting of the program in the microcomputer of another electronic device sharing the external bus is not possible. Become. That is, the total program rewriting time in a plurality of electronic devices sharing the external bus becomes long. Particularly in the automobile industry, since many electronic devices and microcomputers are mounted on a vehicle, it is strongly required to shorten the total program rewriting time.
そこで、マザーボードに搭載されるマイクロコンピュータにおけるRAM等の記憶容量を、想定される書換用プログラムの情報量を超えるように増量し、このRAM等に書換用プログラムを分割することなく一度に記憶できるようにして外部バスの早期開放を図ることで、上述した書換時間を短縮することができる。しかしながら、記憶容量の増量は、マザーボードのコストアップになるという問題がある。 Therefore, the storage capacity of the RAM or the like in the microcomputer mounted on the mother board is increased so as to exceed the information amount of the assumed rewriting program, and the rewriting program can be stored in the RAM or the like at once without being divided. Thus, the above-described rewrite time can be shortened by opening the external bus early. However, there is a problem that an increase in storage capacity increases the cost of the motherboard.
本発明は、上述した課題を解決するためになされたものであり、その目的とするところは、書換用プログラムの情報量が多い場合でもコストアップを招くことなく各プログラムの書換時間の短縮を図り得る電子装置を提供することにある。 The present invention has been made to solve the above-described problems, and the object of the present invention is to shorten the rewriting time of each program without causing an increase in cost even when the amount of information of the rewriting program is large. It is to provide an electronic device to obtain.
上記目的を達成するため、特許請求の範囲の請求項1に記載の電子装置は、所定の機能を実現するためのプログラムが記憶される第1の記憶手段(32,42)を有するマイクロコンピュータ(30,40)を複数備え、機能の異なる複数の前記マイクロコンピュータが内部バス(14)を介して互いに通信可能に接続されて構成される電子装置(10)であって、前記電子装置は、前記第1の記憶手段に記憶される前記プログラムを書換えるための書換用プログラムをマイクロコンピュータごとに送信するための書換用外部装置(1)と接続される事により通信可能となる外部バスと接続され、前記外部バスは他の電子装置と共用されており、前記書換用外部装置から前記外部バスを介して受信した前記書換用プログラムを、前記複数のマイクロコンピュータのうち書換対象となる書換対象マイクロコンピュータに前記内部バスを介して配信するための配信用マイクロコンピュータ(20)と、を備え、前記複数のマイクロコンピュータは、前記内部バスを介して受信した前記書換用プログラムの少なくとも一部を記憶可能な第2の記憶手段(33,43)をそれぞれ有し、前記第2の記憶手段に一時記憶されていた前記書換用プログラムを利用して前記第1の記憶手段に記憶される前記プログラムを書換え、前記配信用マイクロコンピュータは、受信した前記書換用プログラムのうち、一部を前記書換対象マイクロコンピュータに前記内部バスを介して送信し、また、残部を前記複数のマイクロコンピュータのうち前記書換対象マイクロコンピュータを除く少なくともいずれか1つの経由用マイクロコンピュータに前記内部バスを介して送信し、前記経由用マイクロコンピュータは、受信した前記残部を、前記一部の書換用プログラムの少なくとも一部の前記第1の記憶手段への書換えが完了した前記書換対象マイクロコンピュータに前記内部バスを介して送信し、前記複数のマイクロコンピュータは、前記配信用マイクロコンピュータからの要求に応じて前記第2の記憶手段の記憶容量に関する記憶容量情報をそれぞれ返信し、前記配信用マイクロコンピュータは、前記書換用外部装置から前記書換用プログラムを受信すると、前記複数のマイクロコンピュータのそれぞれに対する前記要求に応じて受信した前記各記憶容量情報に基づいて、当該複数のマイクロコンピュータから前記経由用マイクロコンピュータを選択することを特徴とする。
なお、特許請求の範囲および上記手段の括弧内の符号は、後述する実施形態に記載の具体的手段との対応関係を示すものである。
In order to achieve the above object, an electronic device according to claim 1 is a microcomputer having first storage means (32, 42) in which a program for realizing a predetermined function is stored. 30 and 40), and an electronic device (10) configured such that a plurality of microcomputers having different functions are communicably connected to each other via an internal bus (14). It is connected to an external bus which can communicate by being connected to a rewriting external device (1) for transmitting a rewriting program for rewriting the program stored in the first storage means for each microcomputer. The external bus is shared with other electronic devices, and the rewriting program received from the rewriting external device via the external bus is transferred to the plurality of macros. A distribution microcomputer (20) for distributing to the rewrite target microcomputer to be rewritten among the microcomputers via the internal bus, the plurality of microcomputers receiving via the internal bus Second rewriting means (33, 43) capable of storing at least a part of the rewriting program are provided, and the first rewriting program temporarily stored in the second storage means is used for the first rewriting program. Rewriting the program stored in the storage means, the distribution microcomputer transmits a part of the received rewriting program to the rewriting target microcomputer via the internal bus, and the remaining part At least one of the plurality of microcomputers excluding the microcomputer to be rewritten To the two via microcomputers via the internal bus, and the via microcomputer can rewrite the received remaining part into at least a part of the part of the rewriting program into the first storage means. The completed microcomputer to be rewritten is transmitted via the internal bus, and the plurality of microcomputers respectively store storage capacity information regarding the storage capacity of the second storage unit in response to a request from the distribution microcomputer. In response, when the distribution microcomputer receives the rewrite program from the rewrite external device, the distribution microcomputer receives the plurality of microcomputers based on the storage capacity information received in response to the request to each of the plurality of microcomputers. Select the via microcomputer from other microcomputers It is characterized by choosing .
In addition, the code | symbol in the parenthesis of a claim and the said means shows a corresponding relationship with the specific means as described in embodiment mentioned later.
請求項1の発明では、配信用マイクロコンピュータは、外部バスを介して書換用外部装置から受信した書換用プログラムのうち、一部を書換対象マイクロコンピュータに内部バスを介して送信し、また、残部を経由用マイクロコンピュータに内部バスを介して送信する。そして、経由用マイクロコンピュータは、受信した残部を、一部の書換用プログラムの少なくとも一部の第1の記憶手段への書換えが完了した書換対象マイクロコンピュータに内部バスを介して送信する。 In the invention of claim 1, the distribution microcomputer transmits a part of the rewriting program received from the rewriting external device via the external bus to the rewriting target microcomputer via the internal bus, and the remaining part. Is transmitted to the via microcomputer via the internal bus. Then, the relay microcomputer transmits the received remaining part to the rewriting target microcomputer that has been rewritten into at least a part of the first storage means of a part of the rewriting program via the internal bus.
これにより、書換対象マイクロコンピュータにおける第2の記憶手段の記憶容量が書換用プログラムの情報量未満であっても、書換用プログラムが分割されて経由用マイクロコンピュータの第2の記憶手段にも記憶されるので、電子装置における書換用プログラムを一時的に記憶可能な記憶容量を増量することができる。このため、書換対象マイクロコンピュータに対するプログラムの書換えが完了していなくても、外部バスが開放されるため、他の電子装置におけるプログラムの書換えを早期に開始することができる。
したがって、書換用プログラムの情報量が多い場合でも、経由用マイクロコンピュータにおける第2の記憶手段を利用することで、記憶容量を増大させるようなコストアップを招くことなく各プログラムの書換時間の短縮を図ることができる。
なお、記憶容量は、マイクロコンピュータ仕様上のRAM値の上限ではなく、経由するのに使用可能な容量を示すものであっても良い。
Thus, even if the storage capacity of the second storage means in the microcomputer to be rewritten is less than the information amount of the rewriting program, the rewriting program is divided and stored in the second storage means of the via microcomputer. Therefore, the storage capacity capable of temporarily storing the rewriting program in the electronic device can be increased. For this reason, even if the rewriting of the program to the rewriting target microcomputer is not completed, the external bus is released, so that the rewriting of the program in another electronic device can be started at an early stage.
Therefore, even when the information amount of the rewriting program is large, the rewriting time of each program can be shortened without incurring a cost increase by increasing the storage capacity by using the second storage means in the via microcomputer. Can be planned.
Note that the storage capacity may not be the upper limit of the RAM value according to the microcomputer specification, but may indicate the capacity that can be used for passing.
また、書換用プログラムの一部の情報量は、書換対象マイクロコンピュータにおける第2の記憶手段の記憶容量以下に設定するのが望ましい。これにより、一部の情報量が当該第2の記憶手段の記憶容量を超える場合と比較して、配信用マイクロコンピュータから書換対象マイクロコンピュータに送信される情報による内部バスの占有時間が短くなる。このため、書換用プログラムの残部を早期に内部バスを介して経由用マイクロコンピュータに送信することができることから、書換用外部装置から配信用マイクロコンピュータに送信される情報による外部バスの占有時間が短くなる。その結果、外部バスが早期に開放されるため、他の電子装置におけるプログラムの書換えをより早期に開始することができる。 Further, it is desirable that the information amount of a part of the rewriting program is set to be equal to or less than the storage capacity of the second storage unit in the rewriting target microcomputer. As a result, as compared with a case where a part of the information amount exceeds the storage capacity of the second storage unit, the occupation time of the internal bus by the information transmitted from the distribution microcomputer to the rewrite target microcomputer is shortened. For this reason, since the remaining part of the rewriting program can be transmitted to the via microcomputer via the internal bus at an early stage, the occupation time of the external bus due to the information transmitted from the rewriting external device to the distribution microcomputer is shortened. Become. As a result, since the external bus is opened early, rewriting of the program in another electronic device can be started earlier.
特に、配信用マイクロコンピュータは、書換用外部装置から書換用プログラムを受信すると、複数のマイクロコンピュータのそれぞれに対する要求に応じて受信した各記憶容量情報に基づいて、当該複数のマイクロコンピュータから経由用マイクロコンピュータを選択する。
なお、経由用マイクロコンピュータの一つとして、自身の配信用マイクロコンピュータを含めて選択しても良い。
In particular , when the distribution microcomputer receives the rewriting program from the rewriting external device, the distribution microcomputer receives the rewriting program from the plurality of microcomputers based on the respective storage capacity information received in response to the request for each of the plurality of microcomputers. Select a computer.
It should be noted that one of the delivery microcomputers may be selected including its own distribution microcomputer.
これにより、配信用マイクロコンピュータでは、複数のマイクロコンピュータにおける第2の記憶手段の記憶容量がそれぞれ把握されるので、例えば、複数のマイクロコンピュータのいずれかが仕様変更等により記憶容量やフラッシュROMの容量が変更される場合であっても、適切な経由用マイクロコンピュータを複数のマイクロコンピュータから容易に選択することができる。
なお、電子装置の構成として、複数のマイクロコンピュータが複数のプリント基板に渡って搭載されている構成の場合、共通のプリント基板に搭載されている場合に比べて、局所的に仕様変更が可能なため、記憶容量やフラッシュROMの容量が変更する可能性や回数も多くなる為、より効果的である。
Thereby, in the distribution microcomputer, the storage capacity of the second storage means in each of the plurality of microcomputers is grasped. For example, any one of the plurality of microcomputers has a storage capacity or flash ROM capacity due to a specification change or the like. Even when the change is made, it is possible to easily select an appropriate via microcomputer from a plurality of microcomputers.
In addition, as a configuration of the electronic device, in a configuration in which a plurality of microcomputers are mounted over a plurality of printed circuit boards, the specification can be locally changed as compared with a case in which they are mounted on a common printed circuit board. Therefore, since the possibility and the number of times of changing the storage capacity and the capacity of the flash ROM increase, it is more effective.
また、仕様変更等されるごとに複数のマイクロコンピュータの仕様に応じてその都度、書き換え用プログラムに複数のマイクロコンピュータの仕様情報を付与し、ソフトウエア品番等を付すことでソフトウエア品番等に基づいて複数のマイクロコンピュータにおける第2の記憶手段の記憶容量を把握することもできるが、本発明では、ソフトウエア品番等を利用する必要もない。このため、書換え対象以外のマイクロピュータの仕様変更等に起因するソフトウエア品番等の増加を防止することができる。
請求項2の発明では、配信用マイクロコンピュータは、複数のマイクロコンピュータのいずれかに書換用プログラムが配信中の場合には、他のマイクロコンピュータがプログラムの書換不可状態であることを示す書換不可情報を書換用外部装置に送信する。
書換用プログラムが分割されて経由用マイクロコンピュータの第2の記憶手段にも記憶されている状態では、分割された書換用プログラムにより内部バスが占有された状態となる。この状態では、書換対象マイクロコンピュータと異なるマイクロコンピュータがプログラムの書換不可状態となる。そこで、上記書換不可情報を書換用外部装置に送信し、この書換不可情報を受信した書換用外部装置により書換用プログラムを送信するタイミングが調整されることで、書換不可状態の電子装置への書換用プログラムの送信に起因して外部バスの占有時間が長くなることもなく、複数の電子装置におけるトータルのプログラム書換時間を短くすることができる。
請求項3の発明では、配信用マイクロコンピュータは、経由用マイクロコンピュータの性能に応じて内部バスを介する残部の通信速度を変化させるため、例えば、性能の低いマイクロコンピュータにあわせて内部バスを介する情報の通信速度が低い速度で定速化される場合と比較して、経由用マイクロコンピュータへの上記残部の送信時間が短縮されて、外部バスの占有時間を短縮することができる。
In addition, each time the specification is changed, the specification information of the plurality of microcomputers is given to the rewriting program according to the specifications of the plurality of microcomputers, and the software product number is added to the program for rewriting. The storage capacity of the second storage means in the plurality of microcomputers can be grasped, but in the present invention, it is not necessary to use the software product number or the like. For this reason, it is possible to prevent an increase in the software product number and the like due to a change in the specifications of the microcomputer other than the rewriting target.
In the invention of claim 2, when the rewriting program is being distributed to any of the plurality of microcomputers, the distribution microcomputer indicates that the other microcomputer is in a program non-rewritable state. To the external device for rewriting.
In a state where the rewriting program is divided and stored in the second storage means of the relay microcomputer, the internal bus is occupied by the divided rewriting program. In this state, a microcomputer different from the microcomputer to be rewritten is in a state in which the program cannot be rewritten. Therefore, the above-mentioned non-rewritable information is transmitted to the rewritable external device, and the timing at which the rewritable external device receives the rewritable information is adjusted to rewrite the electronic device in the non-rewritable state. The total time for rewriting the program in the plurality of electronic devices can be shortened without increasing the occupation time of the external bus due to the transmission of the program for use.
In the invention according to claim 3, the distribution microcomputer changes the remaining communication speed via the internal bus in accordance with the performance of the via microcomputer. For example, information via the internal bus in accordance with the low-performance microcomputer Compared with the case where the communication speed is constant at a low speed, the remaining transmission time to the via microcomputer is shortened, and the occupation time of the external bus can be shortened.
請求項5の発明では、配信用マイクロコンピュータは、受信した各記憶容量情報に基づいて、複数のマイクロコンピュータのうち第2の記憶手段の記憶容量が残部の情報量よりも大きいマイクロコンピュータを経由用マイクロコンピュータとして選択する。このため、書換用プログラムの残部は1つのマイクロコンピュータにて一時記憶された後に書換対象マイクロコンピュータに送信されるため、当該残部が複数のマイクロコンピュータにて一時記憶される場合と比較して、書換用プログラムの分割数が少なくなり配信用マイクロコンピュータの処理負荷の軽減や処理時間の短縮等を図ることができる。 According to the fifth aspect of the present invention, the distribution microcomputer uses a microcomputer whose storage capacity of the second storage means is larger than the remaining information amount among the plurality of microcomputers based on each received storage capacity information. Select as a microcomputer. For this reason, the remaining portion of the rewriting program is temporarily stored in one microcomputer and then transmitted to the rewriting target microcomputer, so that the remaining portion is rewritten as compared with the case where the remaining portion is temporarily stored in a plurality of microcomputers. Therefore, the number of divisions of the distribution program can be reduced, and the processing load of the distribution microcomputer can be reduced and the processing time can be reduced.
請求項6の発明では、配信用マイクロコンピュータは、残部の情報量よりも大きい第2の記憶手段を有するマイクロコンピュータが無い場合、第2の記憶手段の記憶容量の大きいマイクロコンピュータから順に経由用マイクロコンピュータとして選択する。これにより、選択される経由用マイクロコンピュータの数は、極力少なくなる。つまり、書換用プログラムの分割数が少なくなり配信用マイクロコンピュータの処理負荷の軽減や処理時間の短縮等を図ることができる。 In the invention of claim 6 , when there is no microcomputer having the second storage means larger than the remaining information amount, the distribution microcomputer is in order from the microcomputer with the larger storage capacity of the second storage means. Select as computer. Thereby, the number of via microcomputers to be selected is reduced as much as possible. That is, the number of divisions of the rewriting program is reduced, and the processing load of the distribution microcomputer can be reduced and the processing time can be shortened.
請求項7の発明では、配信用マイクロコンピュータは、書換用プログラムの情報量が複数のマイクロコンピュータのそれぞれの第2の記憶手段の記憶容量の総和を超える場合には、当該総和に関する情報を書換用外部装置に送信する。 In the invention according to claim 7 , when the information amount of the rewriting program exceeds the sum of the storage capacities of the second storage means of each of the plurality of microcomputers, the distribution microcomputer rewrites information on the sum. Send to external device.
当該総和に関する情報を受信した書換用外部装置は、この情報を送信した電子装置が一度に受信可能な情報量を把握できる。このため、書換用外部装置は、上記総和を超えない情報量で分割された書換用プログラムを送信し終えてから他の電子装置に対応する書換用プログラムを送信した後に、第2の記憶手段が一時記憶可能状態となった上記電子装置に残りの書換用プログラムを送信することができる。これにより、上記書換対象マイクロコンピュータを有する電子装置に起因する外部バスの占有時間が短くなり、外部バスを共用する複数の電子装置におけるトータルのプログラム書換時間を短くすることができる。 The external device for rewriting that has received the information related to the sum can grasp the amount of information that can be received at once by the electronic device that has transmitted this information. For this reason, after the rewriting external device has transmitted the rewriting program corresponding to another electronic device after transmitting the rewriting program divided by the information amount not exceeding the total sum, the second storage means The remaining rewriting program can be transmitted to the electronic device in the temporary storage enabled state. Thereby, the occupation time of the external bus due to the electronic device having the microcomputer to be rewritten is shortened, and the total program rewriting time in a plurality of electronic devices sharing the external bus can be shortened.
請求項8の発明では、配信用マイクロコンピュータは、受信した各記憶容量情報を書換用外部装置に送信し、この送信に応じて当該書換用外部装置にて設定された経由用マイクロコンピュータを選択するための選択情報を受信すると、この選択情報に基づいて複数のマイクロコンピュータから経由用マイクロコンピュータを選択する。 In the invention according to claim 8 , the distribution microcomputer transmits each received storage capacity information to the rewriting external device, and selects the via microcomputer set in the rewriting external device according to the transmission. When the selection information is received, a via microcomputer is selected from a plurality of microcomputers based on the selection information.
このようにしても、適切な経由用マイクロコンピュータを複数のマイクロコンピュータから選択することができる。特に、書換用外部装置にて経由用マイクロコンピュータが選択されるので、配信用マイクロコンピュータにおける経由用マイクロコンピュータを選択するための処理負荷を軽減することができる。 Even in this case, an appropriate via microcomputer can be selected from a plurality of microcomputers. In particular, since the relay microcomputer is selected by the rewriting external device, the processing load for selecting the relay microcomputer in the distribution microcomputer can be reduced.
[第1実施形態]
以下、本発明の第1実施形態に係る電子装置について、図面を参照して説明する。
図1に示す電子装置10は、車両に搭載されたエンジン等の車載機器を所定のプログラムを実施することで制御するための装置であり、他の電子装置とともに共用される外部バス11を介してデータリンクコネクタ12に接続されて構成されている。データリンクコネクタ12は、上記プログラムを書換える書換えツールとして機能する書換用外部装置1が接続されることで、当該書換用外部装置1からの各マイクロコンピュータに応じた所定の書換用プログラムを、各電子装置にて外部バス11を介して受信可能に構成されている。
[First Embodiment]
Hereinafter, an electronic device according to a first embodiment of the present invention will be described with reference to the drawings.
An
なお、本実施形態では、外部バス11として、例えば、イーサネット(登録商標)が採用されている。また、図1では、外部バス11に接続される他の電子装置として、2つの電子装置2および電子装置3が例示されているが、これに限らず、1つまたは3つ以上の電子装置が外部バス11に対してデータリンクコネクタ12を利用可能に接続されてもよい。
In the present embodiment, for example, Ethernet (registered trademark) is adopted as the
次に、電子装置10の構成について説明する。
電子装置10は、筐体13を備えており、その筐体13内には、所定の機能を実現するための複数のマイクロコンピュータと、これら各マイクロコンピュータに関するデータの配信等を制御する配信用マイクロコンピュータ(以下、配信用マイコン20という)とが、LDVS等の規格に基づく内部バス14を介して互いに通信可能に接続されて配置されている。本実施形態では、上記複数のマイクロコンピュータとして、ブレーキに関する機能を実現するためのマイクロコンピュータ(以下、ブレーキ用マイコン30という)と、エンジンに関する機能を実現するためのマイクロコンピュータ(以下、エンジン用マイコン40という)とが、内部バス14に接続されている。
Next, the configuration of the
The
配信用マイコン20は、マイコンの全体的な制御を司るCPU21と、記憶手段として例えばフラッシュROM22およびRAM23とを備えている。CPU21は、フラッシュROM22に記憶される所定のプログラムを実行して後述する書換用プログラム配信処理を実施する。この書換用プログラム配信処理の実施により、外部バス11を介して受信した書換用プログラムに対して後述する配信先情報が付加されて、所定のマイクロコンピュータに内部バス14を介して送信される。
The
より具体的には、書換用プログラムは、受信バッファ24にて分割された分割データで順次受信されて、RAM23の受信用領域23aにて順次一時記憶される。そして、CPU21により、受信用領域23aに一時記憶された分割データに対して配信先情報が付加されて、送信用領域23bに順次一時記憶される。送信用領域23bに一時記憶された分割データは、送信バッファ25により配信先情報に対応するマイクロコンピュータに内部バス14を介して順次送信される。
More specifically, the rewriting program is sequentially received by the divided data divided by the
ブレーキ用マイコン30は、マイコンの全体的な制御を司るCPU31と、記憶手段として例えばフラッシュROM32およびRAM33とを備えている。CPU31は、フラッシュROM32に記憶されるブレーキ制御用のプログラムを実行することで、ブレーキに関する処理を実現する。RAM33は、その記憶領域が、受信バッファ34を介して順次受信したデータが一時記憶される受信用領域33aと送信バッファ35を介して順次送信するためのデータが一時記憶される送信用領域33bとを有するように構成されている。
The
そして、CPU31は、RAM33の受信用領域33aに自らが配信先情報の分割データが一時記憶されると、この分割データを後述するようにフラッシュROM32に記憶する。このフラッシュROM32に対して全ての分割データ、すなわち、書換用プログラムが記憶されることで、フラッシュROM32に記憶されるブレーキ制御用のプログラムの書換えが完了する。なお、上記分割データが受信用領域33aに一時記憶されると、CPU31による指示を待つことなく、当該分割データが順次フラッシュROM32に記憶されるように構成されてもよい。
Then, when the divided data of the distribution destination information is temporarily stored in the
エンジン用マイコン40は、マイコンの全体的な制御を司るCPU41と、記憶手段として例えばフラッシュROM42およびRAM43とを備えている。CPU41は、フラッシュROM42に記憶されるエンジン制御用のプログラムを実行することで、エンジンに関する処理を実現する。RAM43は、その記憶領域が、受信バッファ44を介して順次受信したデータが一時記憶される受信用領域43aと送信バッファ45を介して順次送信するためのデータが一時記憶される送信用領域43bとを有するように構成されている。
The
そして、CPU41は、RAM43の受信用領域43aに自らが配信先情報の分割データが一時記憶されると、この分割データをフラッシュROM42に記憶する。このフラッシュROM42に対して全ての分割データ、すなわち、書換用プログラムが記憶されることで、フラッシュROM42に記憶されるエンジン制御用のプログラムの書換えが完了する。なお、上記分割データが受信用領域43aに一時記憶されると、CPU41による指示を待つことなく、当該分割データが順次フラッシュROM42に記憶されるように構成されてもよい。
Then, when the divided data of the delivery destination information is temporarily stored in the
なお、本実施形態では、ブレーキ用マイコン30のフラッシュROM32の記憶容量は64kであり、RAM33の記憶容量は4kである。また、エンジン用マイコン40のフラッシュROM42の記憶容量は1Mであり、RAM43の記憶容量は128kであり、ブレーキ用マイコン30のフラッシュROM32およびRAM33よりも性能が高くその記憶容量が大きくなっている。なお、フラッシュROM32およびフラッシュROM42は、特許請求の範囲に記載の「第1の記憶手段」の一例に相当し、RAM33およびRAM43は、特許請求の範囲に記載の「第2の記憶手段」の一例に相当し得る。
In this embodiment, the storage capacity of the
ここで、配信用マイコン20やブレーキ用マイコン30およびエンジン用マイコン40は、それぞれ所定の回路基板20a,30a,40aに搭載されることでモジュール化されている。ここで、モジュール化とは、例えば、機能毎に回路基板が用意されており、回路基板を所定のコネクタ等を介して内部バス14に接続することで、所定の機能を実現可能に構成されることをいう。また、このようにモジュール化された回路基板に搭載されるマイクロコンピュータ等が内部バス14に接続されることで、当該内部バス14を介して他の回路基板に搭載されるマイクロコンピュータ等と通信可能に構成されることとなる。
Here, the
次に、配信用マイコン20のCPU21にて実施される書換用プログラム配信処理について、以下に説明する。
フラッシュROM32,42等に記憶されるプログラムを書換える場合には、データリンクコネクタ12に書換用外部装置1を接続し、この書換用外部装置1からデータリンクコネクタ12および外部バス11を介して送信される書換用プログラムを、配信用マイコン20および内部バス14を介して書換対象のマイクロコンピュータ(以下、書換対象マイコンという)のRAMに一時的に記憶する。そして、このように一時的に記憶された書換用プログラムを利用して、フラッシュROMに記憶されるプログラムが書換えられることとなる。
Next, the rewrite program distribution process performed by the
When rewriting a program stored in the
ところで、書換対象マイコンの性能が低く、かつ外部バス11の通信速度が高速な場合(=(書換用プログラムの容量と外部バスの通信速度から計算される送信完了までの時間)<(マイコン内でのフラッシュROM書換え時間))、書換対象マイコン内でのフラッシュROM書換え速度がネックとなり、外部バス11のイーサネットの様な高速な通信の速度が十分に活かしきれず、より長い時間、外部バス11を占有することになる。これに対し、別途、配信用マイコン20等に、一次保存用の記憶手段を追加すれば良いが、コストアップ要因となってしまう。また、書換対象マイコンにおいて、フラッシュROM容量よりも大きいRAMを有していれば、一次的にRAMに保存しておくことは可能ではあるが、一般的なマイコンの仕様として、フラッシュROM容量>RAM容量となっている為、フラッシュROMの全容量を書き換える際は、一次保存は不可能である。
具体的には例えば、書換対象マイコンがブレーキ用マイコン30であり、RAM33の記憶容量(4k)が書換用プログラムの情報量(例えば32k)未満である場合、当該書換用プログラムの一部の分割データがフラッシュROM32に記憶される記憶処理中でも残りの分割データにより外部バス11が占有された状態となる。この場合、書換用外部装置1からの書換用プログラムを分割した分割データがRAM33に一時記憶された後にフラッシュROM32に記憶される処理を順次繰り返すことで、ブレーキ制御用のプログラムの書換えが完了する。そうすると、RAM33に最後に送信される分割データが記憶されるまで、書換用プログラムにより外部バス11が占有されることとなり、この外部バス11を共用する他の電子装置2,3のマイクロコンピュータにおけるプログラムの書換えが実施できない状態となる。すなわち、外部バス11を共用する複数の電子装置10,2,3におけるトータルのプログラム書換時間が長くなってしまう。
By the way, when the performance of the microcomputer to be rewritten is low and the communication speed of the
Specifically, for example, when the rewriting target microcomputer is the
そこで、本実施形態では、外部バス11に受信すべき書換用プログラムが存在する場合に書換用プログラム配信処理を実施して、書換用プログラムを書換対象マイコンのRAMだけでなく経由用のマイクロコンピュータ(以下、経由用マイコンという)のRAMも利用して一時記憶する。これにより、外部バス11の占有時間の短縮を図り、外部バス11を共用する複数の電子装置10,2,3におけるトータルのプログラム書換時間を短くする。
Therefore, in the present embodiment, when there is a rewriting program to be received on the
以下、配信用マイコン20のCPU21にて実施される書換用プログラム配信処理について、図2に示すフローチャートを用いて詳細に説明する。図2は、第1実施形態における書換用プログラム配信処理の流れを示すフローチャートである。
Hereinafter, the rewriting program distribution process executed by the
外部バス11に受信すべき書換用プログラムが存在することで、書換用プログラムが受信バッファ24にて分割されて分割データとしてRAM23の受信用領域23aにて順次一時記憶される状態になると、CPU21にて書換用プログラム配信処理が開始される。まず、図2のステップS101に示す判定処理がなされ、書換用プログラムの情報量が書換対象マイコンのRAMに一時記憶可能な情報量以下であるか否かについて判定される。
When the rewriting program to be received on the
ここで、書換対象マイコンがエンジン用マイコン40であって書換用プログラムがエンジン制御用のプログラムを書換えるためのプログラムであり、その情報量が、例えば64kであることから、エンジン用マイコン40のRAM43に一時記憶可能な情報量(128k)以下となる場合には、(S101でYes)、ステップS103に示す第1配信用情報付加処理がなされる。この処理では、受信用領域23aに一時記憶される全ての分割データに対して、エンジン用マイコン40のRAM43を配信先とする配信用情報が付加されて、送信用領域23bに順次一時記憶される。
Here, since the microcomputer to be rewritten is the
このように送信用領域23bに一時記憶された分割データは、送信バッファ25により配信先情報に対応するエンジン用マイコン40に内部バス14を介して順次送信される。これにより、エンジン用マイコン40では、上記分割データが受信バッファ44によりRAM43の受信用領域43aに一時記憶され、この分割データがフラッシュROM42に記憶される。そして、フラッシュROM42に対して全ての分割データが記憶されることで、フラッシュROM42に記憶されるエンジン制御用のプログラムの書換えが完了する。
The divided data temporarily stored in the
一方、書換対象マイコンがブレーキ用マイコン30であって書換用プログラムがブレーキ制御用のプログラムを書換えるためのプログラムであり、その情報量が、例えば32kであることから、ブレーキ用マイコン30のRAM33に一時記憶可能な情報量(4k)を越える場合には、(S101でNo)、ステップS105に示す第2配信用情報付加処理がなされる。この処理では、受信用領域23aに一時記憶される分割データのうち、先に記憶されてRAM33に一時記憶可能な情報量に相当する分に対して、ブレーキ用マイコン30を配信先とする配信用情報(以下、直接配信用情報という)が付加されて送信用領域23bに順次一時記憶される。そして、上記分割データのうち、RAM33に一時記憶可能な情報量を超える分に対して、エンジン用マイコン40を経由用マイコンとして経由して最終的にブレーキ用マイコン30を配信先とする配信用情報(以下、経由配信用情報という)が付加されて送信用領域23bに順次一時記憶される。なお、直接配信用情報が付加された分割データは、特許請求の範囲に記載の「書換用プログラムの一部」の一例に相当し、経由配信用情報が付加された分割データは、特許請求の範囲に記載の「書換用プログラムの残部」の一例に相当し得る。
On the other hand, the microcomputer to be rewritten is the
このように送信用領域23bに一時記憶された分割データは、送信バッファ25により、まず、直接配信用情報が付加された分割データがブレーキ用マイコン30に内部バス14を介して順次送信され、その後、経由配信用情報が付加された分割データがエンジン用マイコン40に内部バス14を介して順次送信される。
The divided data temporarily stored in the
そして、ブレーキ用マイコン30では、配信用マイコン20から直接送信された分割データが受信バッファ34によりRAM33に一時記憶されると、この分割データがフラッシュROM32に記憶される。
In the
また、エンジン用マイコン40では、配信用マイコン20から送信された分割データが受信バッファ44によりRAM43の受信用領域43aに一時記憶されると、この分割データは、経由配信用情報が付加されていることから、ブレーキ用マイコン30を最終の配信先とするように送信用領域43bに一時記憶される。
In the
そして、RAM33に一時記憶された分割データの、フラッシュROM32への書換え完了状態となると、ブレーキ用マイコン30は配信用マイコン20に通知し、配信用マイコン20は、経由用マイコンであるエンジン用マイコン40に内部バス14の使用許可を出す。エンジン用マイコン40は、送信バッファ45により送信用領域43bに一時記憶される分割データをブレーキ用マイコン30に内部バス14を介して順次送信する。そして、ブレーキ用マイコン30では、エンジン用マイコン40から送信された分割データが受信バッファ34によりRAM33に一時記憶されると、この分割データがフラッシュROM32に記憶される。そして、送信用領域43bに一時記憶される分割データが全て送信されてRAM33に一時記憶されたことでフラッシュROM32に記憶されると、フラッシュROM32に記憶されるブレーキ制御用のプログラムの書換えが完了する。
なお、書換え完了状態であることの通知は、経由用マイコンが一つの場合は、配信用マイコン20の負荷を軽減する為、直接エンジン用マイコン40に送信しても良いが、経由用マイコンが複数存在する場合は、経由用マイコンへの通信許可を配信用マイコン20が選択して出す事により、ブレーキ用マイコン30は、次にどの経由データを受信するかを意識する必要がなくなる為、望ましい。
When the divided data temporarily stored in the
The notification of the completion of rewriting may be sent directly to the
ここで、上述したように書換用プログラムを書換対象マイコンのRAMだけでなく経由用マイコンのRAMも利用して一時記憶することによる効果を、図1および図3を用いて詳細に説明する。図3は、書換用プログラム配信処理を実施することによる効果を説明する説明図である。 Here, the effect of temporarily storing the rewriting program using not only the RAM of the microcomputer to be rewritten but also the RAM of the via microcomputer as described above will be described in detail with reference to FIGS. FIG. 3 is an explanatory diagram for explaining the effect of performing the rewrite program distribution process.
書換用外部装置1から配信用マイコン20に書換用プログラムが送信されている間(図1,図3のT1参照)、外部バス11が占有されて通信不能状態となる。そして、書換用外部装置1から配信用マイコン20への書換用プログラムの送信が開始されることで、配信用マイコン20から書換対象マイコンに直接配信用情報が付加された分割データが送信されている間(図1,図3のT2参照)、内部バス14が占有されて通信不能状態となる。この分割データの送信が完了し内部バス14が開放されると、配信用マイコン20から経由用マイコンに経由配信用情報が付加された分割データが送信されている間(図1,図3のT3参照)、再び内部バス14が占有されて通信不能状態となる。
While the rewriting program is transmitted from the rewriting external device 1 to the distribution microcomputer 20 (see T1 in FIGS. 1 and 3), the
また、配信用マイコン20による書換対象マイコンへの分割データの送信が完了すると、上記経由配信用情報が付加された分割データの送信と並行して、書換対象マイコンにてRAMに一時記憶された分割データがフラッシュROMに記憶される(図1,図3のT4参照)。また、書換対象マイコンにおけるフラッシュROMへの分割データの記憶処理が比較的時間がかかることからこの記憶処理中に、配信用マイコン20から経由用マイコンのRAMの受信用領域への分割データの送信が完了すると、経由用マイコンにてRAMの受信用領域に一時記憶された分割データが、書換対象マイコンを最終の配信先とするように送信用領域に記憶される(図1,図3のT5参照)。
In addition, when the transmission of the divided data to the rewrite target microcomputer by the
そして、書換対象マイコンのRAMが一時記憶可能な状態である場合に、経由用マイコンから書換対象マイコンに当該分割データが送信され、この送信間(図1,図3のT6参照)、内部バス14が占有されて通信不能状態となる。この書換対象マイコンのRAMへの分割データの送信が完了すると、このRAMに一時記憶された分割データがフラッシュROMに記憶される(図1,図3のT7参照)。なお、書換対象マイコンのRAMの記憶容量が小さい場合には、経由用マイコンから書換対象マイコンへの分割データの送信(図1,図3のT6参照)と、書換対象マイコンにおけるRAMからフラッシュROMへの分割データの書き込み(図1,図3のT7参照)とが繰り返され、分割データが全てフラッシュROMに記憶されると、フラッシュROMに記憶されるプログラムの書換えが完了する。
Then, when the RAM of the microcomputer to be rewritten is in a state where it can be temporarily stored, the divided data is transmitted from the via microcomputer to the microcomputer to be rewritten, and during this transmission (see T6 in FIGS. 1 and 3), the
この場合、図3からわかるように、書換用外部装置1から配信用マイコン20への書換用プログラムの送信が完了することで、フラッシュROMに記憶されるプログラムの書換えが完了する前に、外部バス11が開放される。このため、プログラムの書換えが完了した後に外部バス11が開放される従来の処理と比較して、外部バス11の開放後に書換用外部装置1から他の電子装置への書換用プログラムの送信を早期に開始することができる(図1,図3のT8参照)。
In this case, as can be seen from FIG. 3, the transmission of the rewriting program from the rewriting external device 1 to the
以上説明したように、本実施形態に係る電子装置10では、配信用マイコン20は、データリンクコネクタ12および外部バス11を介して書換用外部装置1から受信した書換用プログラムのうち、直接配信用情報が付加された分割データ(書換用プログラムの一部)を書換対象マイコンに内部バス14を介して送信し、また、経由配信用情報が付加された分割データ(書換用プログラムの残部)を経由用マイコンに内部バス14を介して送信する。そして、経由用マイコンは、受信した分割データを、分割データの少なくとも一部のフラッシュROMへの書換えが完了した書換対象マイコンに内部バス14を介して送信する。
As described above, in the
これにより、書換対象マイコンにおけるRAMの記憶容量が書換用プログラムの情報量未満であっても、書換用プログラムが分割されて経由用マイコンのRAMにも記憶されるので、電子装置10における書換用プログラムを一時的に記憶可能な記憶容量を増量することができる。このため、書換対象マイコンに対するプログラムの書換えが完了していなくても、外部バス11が開放されるため、他の電子装置2,3におけるプログラムの書換えを早期に開始することができる。
したがって、書換用プログラムの情報量が多い場合でも、経由用マイコンにおけるRAM等を利用することで、記憶容量を増大させるようなコストアップを招くことなく各プログラムの書換時間の短縮を図ることができる。
なお、記憶容量は、マイクロコンピュータ仕様上のRAM値の上限ではなく、経由するのに使用可能な容量を示すものであっても良い。
Thereby, even if the storage capacity of the RAM in the microcomputer to be rewritten is less than the information amount of the rewriting program, the rewriting program is divided and stored in the RAM of the relay microcomputer. Can be temporarily increased. For this reason, even if the rewriting of the program for the rewriting target microcomputer is not completed, the
Therefore, even when the information amount of the rewriting program is large, the rewriting time of each program can be shortened without incurring a cost increase that increases the storage capacity by using the RAM or the like in the via microcomputer. .
Note that the storage capacity may not be the upper limit of the RAM value according to the microcomputer specification, but may indicate the capacity that can be used for passing.
特に、直接配信用情報が付加された分割データの情報量は、書換対象マイコンにおけるRAMに一時記憶可能な情報量に相当し、当該RAMの記憶容量以下に設定されるため、その情報量が当該RAMの記憶容量を超える場合と比較して、配信用マイコン20から書換対象マイコンに送信される情報による内部バス14の占有時間が短くなる。このため、経由配信用情報が付加された分割データを早期に内部バス14を介して経由用マイコンに送信することができることから、書換用外部装置1から配信用マイコン20に送信される情報による外部バス11の占有時間が短くなる。その結果、外部バス11が早期に開放されるため、他の電子装置2,3におけるプログラムの書換えをより早期に開始することができる。
In particular, the information amount of the divided data to which the information for direct distribution is added corresponds to the information amount that can be temporarily stored in the RAM in the rewriting target microcomputer, and is set to be equal to or less than the storage capacity of the RAM. Compared with the case where the storage capacity of the RAM is exceeded, the occupation time of the
[第2実施形態]
次に、本発明の第2実施形態に係る電子装置について図を参照して説明する。図4は、第2実施形態における書換用プログラム配信処理の流れを示すフローチャートである。
本第2実施形態に係る電子装置10は、各マイクロコンピュータの仕様を把握した上で経由用マイコンを選択するため、書換用プログラム配信処理を図2に示すフローチャートに代えて図4に示すフローチャートに基づいて実施する点が、上記第1実施形態に係る電子装置と異なる。したがって、第1実施形態の電子装置と実質的に同一の構成部分には、同一符号を付し、その説明を省略する。
[Second Embodiment]
Next, an electronic device according to a second embodiment of the present invention will be described with reference to the drawings. FIG. 4 is a flowchart showing the flow of the rewrite program distribution process in the second embodiment.
The
本実施形態では、上述した配信用マイコン20、ブレーキ用マイコン30およびエンジン用マイコン40に加えて、他のマイクロコンピュータが内部バス14を介して互いに通信可能に接続されて構成されている。各マイクロコンピュータは、回路基板に搭載されてモジュール化されているため仕様変更等が容易であり、例えば、RAMの記憶容量が変更された回路基板が単に差し替えられる場合には、配信用マイコン20では、その仕様変更内容を把握することができない。このため、配信用マイコン20は、上記第1実施形態にて述べた書換用プログラム配信処理を実施することでは、複数のマイクロコンピュータから適切な経由用マイコンを選択できない場合がある。
In the present embodiment, in addition to the
そこで、本実施形態における書換用プログラム配信処理では、各マイクロコンピュータに対して記憶容量に関する情報を要求し、この要求に応じて受信した情報に基づいて、経由用マイコンを選択する。
以下、本実施形態において、配信用マイコン20のCPU21にて実施される書換用プログラム配信処理について、図4に示すフローチャートを用いて詳細に説明する。
Therefore, in the rewrite program distribution processing in the present embodiment, information on storage capacity is requested from each microcomputer, and a via microcomputer is selected based on the information received in response to this request.
Hereinafter, in the present embodiment, the rewriting program distribution process executed by the
外部バス11に受信すべき書換用プログラムが存在することで、書換用プログラムが受信バッファ24にて分割されて分割データとしてRAM23の受信用領域23aにて順次一時記憶される状態になると、CPU21にて書換用プログラム配信処理が開始される。まず、図4のステップS201に示す記憶容量情報要求処理がなされ、内部バス14を介して接続される各マイクロコンピュータ(30,40等)に対して、そのRAMの記憶容量や性能等に関する情報(以下、記憶容量情報という)を要求するための要求情報が送信される。このように送信される要求情報を受信した各マイクロコンピュータは、そのRAMの記憶容量情報や自身のフラッシュROM書換え速度等をそれぞれ配信用マイコン20に返信する。
When the rewriting program to be received on the
このように内部バス14を介して送信された各記憶容量情報がステップS203に示す受信処理により受信されると、ステップS205に示す判定処理がなされ、書換用プログラムの情報量が書換対象マイコンのRAMに一時記憶可能な情報量以下であるか否かについて判定される。そして、書換用プログラムの情報量が書換対象マイコンのRAMに一時記憶可能な情報量以下であれば(S205でYes)、経由マイコンを選択する必要もないので、ステップS207に示す第1配信用情報付加処理がなされる。この処理では、上記ステップS103に示す第1配信用情報付加処理と同様の処理がなされて、書換対象マイコンのプログラムの書換えが実施される。
Thus, when each storage capacity information transmitted via the
一方、書換用プログラムの情報量が書換対象マイコンのRAMに一時記憶可能な情報量を超える場合には(S205でNo)、ステップS209に示す経由用マイコン選択処理がなされる。この処理では、上記受信処理にて受信した各記憶容量情報に基づいて、上記経由配信用情報が付加される分割データの情報量よりも大きい記憶容量のRAMを有するマイクロコンピュータが経由用マイコンとして選択される。なお、上記経由用マイコン選択処理では、1つのマイクロコンピュータが経由用マイコンとして選択されることに限らず、2以上のマイクロコンピュータが経由用マイコンとして選択されてもよい。 On the other hand, if the amount of information in the rewriting program exceeds the amount of information that can be temporarily stored in the RAM of the rewriting target microcomputer (No in S205), the via microcomputer selection process shown in step S209 is performed. In this process, based on each storage capacity information received in the reception process, a microcomputer having a RAM having a storage capacity larger than the information amount of the divided data to which the delivery information is added is selected as the transit microcomputer. Is done. In the route microcomputer selection process, one microcomputer is not necessarily selected as the route microcomputer, and two or more microcomputers may be selected as the route microcomputers.
続いて、ステップS211に示す第2配信用情報付加処理がなされ、上記ステップS105に示す第2配信用情報付加処理と同様の処理がなされて、直接配信用情報が付加された分割データが書換対象マイコンに送信され、その後、経由配信用情報が付加された分割データが上記経由用マイコン選択処理にて選択された経由用マイコンに送信されることで、書換対象マイコンのプログラムの書換えが実施される。 Subsequently, the second distribution information addition process shown in step S211 is performed, and the same process as the second distribution information addition process shown in step S105 is performed, and the divided data to which the direct distribution information is added is rewritten. The divided data, which is transmitted to the microcomputer and added with the information for route distribution, is transmitted to the routed microcomputer selected in the routed microcomputer selection process, thereby rewriting the program of the microcomputer to be rewritten. .
以上説明したように、本実施形態に係る電子装置10では、配信用マイコン20は、書換用外部装置1から書換用プログラムを受信すると、複数のマイクロコンピュータのそれぞれに対する要求に応じて受信した各記憶容量情報に基づいて、当該複数のマイクロコンピュータから経由用マイコンを選択する。
なお、経由用マイクロコンピュータの一つとして、自身の配信用マイコン20を含めて選択しても良い。
As described above, in the
It should be noted that one of the via microcomputers may be selected including its
これにより、配信用マイコン20では、複数のマイクロコンピュータにおけるRAMの記憶容量がそれぞれ把握されるので、例えば、複数のマイクロコンピュータのいずれかが仕様変更等により記憶容量やフラッシュROMの容量が変更される場合であっても、適切な経由用マイコンを複数のマイクロコンピュータから容易に選択することができる。
なお、電子装置10の構成として、複数のマイクロコンピュータが複数のプリント基板に渡って搭載されている構成の場合、共通のプリント基板に搭載されている場合に比べて、局所的に仕様変更が可能なため、記憶容量やフラッシュROMの容量が変更する可能性や回数も多くなる為、より効果的である。
Thereby, the
In addition, when the configuration of the
また、仕様変更等されるごとに複数のマイクロコンピュータの仕様に応じてその都度、書き換え用プログラムに複数のマイクロコンピュータの仕様情報を付与し、ソフトウエア品番等を付すことでソフトウエア品番等に基づいて複数のマイクロコンピュータにおけるRAMの記憶容量を把握することもできるが、本発明では、ソフトウエア品番等を利用する必要もない。このため、書換え対象以外のマイクロピュータの仕様変更等に起因するソフトウエア品番等の増加を防止することができる。 In addition, each time the specification is changed, the specification information of the plurality of microcomputers is given to the rewriting program according to the specifications of the plurality of microcomputers, and the software product number is added to the program for rewriting. The storage capacity of the RAM in a plurality of microcomputers can be grasped, but in the present invention, it is not necessary to use a software product number or the like. For this reason, it is possible to prevent an increase in the software product number and the like due to a change in the specifications of the microcomputer other than the rewriting target.
また、配信用マイコン20は、受信した各記憶容量情報に基づいて、複数のマイクロコンピュータのうちRAMの記憶容量が経由配信用情報が付加される分割データ(書換用プログラムの残部)の情報量よりも大きいマイクロコンピュータを経由用マイコンとして選択する。このため、経由配信用情報が付加される分割データは1つのマイクロコンピュータにて一時記憶された後に書換対象マイコンに送信されるため、当該分割データが複数のマイクロコンピュータにて一時記憶される場合と比較して、書換用プログラムの分割数が少なくなり配信用マイコン20の処理負荷の軽減や処理時間の短縮等を図ることができる。
Further, the
なお、上記第2実施形態の第1変形例として、上記ステップS209に示す経由用マイコン選択処理にて、経由配信用情報が付加される分割データ(書換用プログラムの残部)の情報量よりも大きいRAMを有するマイクロコンピュータが無い場合、RAMの記憶容量の大きいマイクロコンピュータから順に経由用マイコンとして選択してもよい。これにより、選択される経由用マイコンの数は、極力少なくなる。つまり、書換用プログラムの分割数が少なくなり配信用マイコン20の処理負荷の軽減や処理時間の短縮等を図ることができる。
また、上記第2実施形態の第2変形例として、配信用マイコン20は、受信した各記憶容量情報を書換用外部装置に送信し、この送信に応じて当該書換用外部装置1にて設定された経由用マイコンを選択するための選択情報を受信すると、この選択情報に基づいて複数のマイクロコンピュータから経由用マイコンを選択してもよい。この場合、書換用外部装置1は、配信用マイコン20から送信される各記憶容量情報に基づいて、経由用マイコンを選択し、上記選択情報を配信用マイコン20に送信する。
As a first modification of the second embodiment, the amount of information is larger than the information amount of the divided data (remaining part of the rewriting program) to which the route distribution information is added in the route microcomputer selection process shown in step S209. If there is no microcomputer having RAM, the microcomputer may be selected in order from the microcomputer having the largest RAM storage capacity. Thereby, the number of via microcomputers to be selected is reduced as much as possible. That is, it is possible to reduce the number of divisions of the rewriting program and reduce the processing load on the
Further, as a second modification of the second embodiment, the
このようにしても、上記書換用プログラム配信処理にて、適切な経由用マイコンを複数のマイクロコンピュータから選択することができる。特に、書換用外部装置1にて経由用マイコンが選択されるので、配信用マイコン20における経由用マイコンを選択するための処理負荷を軽減することができる。
Even in this case, an appropriate via microcomputer can be selected from a plurality of microcomputers in the rewriting program distribution process. In particular, since the relay microcomputer is selected in the rewriting external device 1, the processing load for selecting the relay microcomputer in the
[第3実施形態]
次に、本発明の第3実施形態に係る電子装置について図を参照して説明する。図5は、第3実施形態における書換用プログラム配信処理の流れを示すフローチャートである。
本実施形態に係る電子装置10は、書換用プログラムの情報量が各マイクロコンピュータのそれぞれのRAMの記憶容量の総和を超える場合でも外部バス11の早期開放を図るため、書換用プログラム配信処理を図4に示すフローチャートに代えて図5に示すフローチャートに基づいて実施する点が、上記第2実施形態に係る電子装置と異なる。したがって、第2実施形態の電子装置と実質的に同一の構成部分には、同一符号を付し、その説明を省略する。
[Third Embodiment]
Next, an electronic device according to a third embodiment of the invention will be described with reference to the drawings. FIG. 5 is a flowchart showing the flow of the rewrite program distribution process in the third embodiment.
The
書換用プログラムの情報量が各マイクロコンピュータのそれぞれのRAMの一時記憶可能な記憶容量の総和(以下、総記憶容量という)を超える場合、書換用プログラムが書換対象マイコンを有する電子装置10単体で完全に受信しきれずに外部バス11を占有してしまい、外部バス11の開放が遅くなってしまう。
When the information amount of the rewriting program exceeds the total storage capacity (hereinafter referred to as total storage capacity) of each RAM of each microcomputer, the rewriting program is completely completed by the
そこで、本実施形態では、書換用外部装置1からの書換用プログラムを、送信する情報量が総記憶容量以下となるように分割することで調整して、書換対象マイコンを有する電子装置10に送信する。
Therefore, in the present embodiment, the rewriting program from the rewriting external device 1 is adjusted by dividing the rewriting program so that the amount of information to be transmitted is less than the total storage capacity, and transmitted to the
以下、本実施形態において、配信用マイコン20のCPU21にて実施される書換用プログラム配信処理について、図5に示すフローチャートを用いて詳細に説明する。
上記第2実施形態と同様に、図5のステップS205に示す判定処理にて、書換用プログラムの情報量が書換対象マイコンのRAMに一時記憶可能な情報量以下であるか否かについて判定され、書換用プログラムの情報量が書換対象マイコンのRAMに一時記憶可能な情報量を超える場合には(S205でNo)、ステップ208に示す判定処理がなされる。この判定処理では、書換用プログラムの情報量が総記憶容量以下であるか否かについて判定され、書換用プログラムの情報量が、上記S203にて受信した各記憶容量情報から求められる総記憶容量以下である場合には(S208でYes)、上述したステップS209以降の処理がなされる。なお、上記総記憶容量には、配信用マイコン20のRAMの記憶容量が含まれてもよい。
Hereinafter, in the present embodiment, the rewrite program distribution process performed by the
As in the second embodiment, it is determined whether or not the information amount of the rewriting program is equal to or less than the information amount that can be temporarily stored in the RAM of the rewriting target microcomputer in the determination processing shown in step S205 of FIG. When the information amount of the rewriting program exceeds the information amount that can be temporarily stored in the RAM of the rewriting target microcomputer (No in S205), the determination processing shown in step 208 is performed. In this determination processing, it is determined whether or not the information amount of the rewriting program is less than or equal to the total storage capacity, and the information amount of the rewriting program is less than or equal to the total storage capacity obtained from each storage capacity information received in S203. (Yes in S208), the above-described processing after Step S209 is performed. The total storage capacity may include the RAM storage capacity of the
一方、書換用プログラムの情報量が総記憶容量を超える場合には(S208でNo)、ステップS213に示す総記憶容量情報送信処理がなされる。この処理では、総記憶容量に関する情報が書換用外部装置1に送信され、当該書換用プログラム配信処理が終了する。なお、総記憶容量情報は、特許請求の範囲に記載の「総和に関する情報」の一例に相当し得る。 On the other hand, when the information amount of the rewriting program exceeds the total storage capacity (No in S208), the total storage capacity information transmission process shown in step S213 is performed. In this process, information relating to the total storage capacity is transmitted to the rewriting external device 1, and the rewriting program distribution process ends. Note that the total storage capacity information may correspond to an example of “information about the sum” described in the claims.
上記総記憶容量情報を受信した書換用外部装置1は、この総記憶容量情報を送信した電子装置10が外部バス11を占有することなく受信可能な情報量を把握できる。そこで、書換用外部装置1は、総記憶容量情報を超えない情報量で分割された書換用プログラムを送信し終えてから他の電子装置2,3に対応する書換用プログラムを送信した後に、書換対象マイコンのRAMが一時記憶可能状態となった電子装置10に、残りの書換用プログラムを送信する。この残りの書換用プログラムが外部バス11を介して送信されることで、上記書換用プログラム配信処理が開始されて、当該電子装置10に全ての書換用プログラムの送信がなされると、プログラムの書換えが完了する。
The rewriting external device 1 that has received the total storage capacity information can grasp the amount of information that the
このように、書換用プログラム配信処理にて上記総記憶容量情報を書換用外部装置1に送信することで、上記書換対象マイコンを有する電子装置10に起因する外部バス11の占有時間が短くなり、外部バス11を共用する複数の電子装置におけるトータルのプログラム書換時間を短くすることができる。
なお、本実施形態における特徴的処理は、他の実施形態にて適用することができる。
Thus, by transmitting the total storage capacity information to the rewriting external device 1 in the rewriting program distribution process, the occupation time of the
Note that the characteristic processing in this embodiment can be applied in other embodiments.
[第4実施形態]
次に、本発明の第4実施形態に係る電子装置について図を参照して説明する。図6は、第4実施形態における書換用プログラム配信処理の流れを示すフローチャートである。
本実施形態に係る電子装置10は、各マイクロコンピュータの書き換えが連続することでトータルの書換時間が長くなることを防止するため、書換用プログラム配信処理を図2に示すフローチャートに代えて図6に示すフローチャートに基づいて実施する点が、上記第1実施形態に係る電子装置と異なる。したがって、第1実施形態の電子装置と実質的に同一の構成部分には、同一符号を付し、その説明を省略する。
[Fourth Embodiment]
Next, an electronic device according to a fourth embodiment of the invention will be described with reference to the drawings. FIG. 6 is a flowchart showing the flow of the rewrite program distribution process in the fourth embodiment.
In the
書換用プログラムが分割されて経由用マイコンのRAMにも記憶されている状態では、経由用マイコンのプログラムを同時に書換えることが不可能である。また、分割された書換用プログラムにより内部バス14が基本的に占有された状態となる。この状態では、書換対象マイコンと異なるマイクロコンピュータがプログラムの書換不可状態となる。書換対象マイコンにおいて、フラッシュROM書換え中の間に内部バス14を開放することも不可能ではないが、分割された書換用プログラムの送信に待ち時間が発生する可能性があり、この状態で、当該電子装置の他のマイクロコンピュータが次の書換対象マイコンとなるとき、対応する書換用プログラムが当該電子装置10単体で完全に受信しきれずに外部バス11を占有してしまい、外部バス11の開放が遅くなってしまう。
In a state where the rewriting program is divided and stored in the RAM of the via microcomputer, it is impossible to rewrite the program of the via microcomputer at the same time. Further, the
そこで、本実施形態では、複数のマイクロコンピュータのいずれかに書換用プログラムが配信中の場合には、他のマイクロコンピュータがプログラムの書換不可状態であることを示す書換不可情報を書換用外部装置1に送信し、この書換不可情報を受信した書換用外部装置1により書換用プログラムを送信するタイミングを調整する。 Therefore, in the present embodiment, when the rewrite program is being distributed to any of the plurality of microcomputers, the rewrite disable information indicating that the other microcomputer is in a program rewrite disable state is displayed. And the timing for transmitting the rewriting program by the rewriting external device 1 that has received this rewrite disable information is adjusted.
以下、本実施形態において、配信用マイコン20のCPU21にて実施される書換用プログラム配信処理について、図6に示すフローチャートを用いて詳細に説明する。
上記第1実施形態と同様に、図6のステップS101に示す判定処理にて、書換用プログラムの情報量が書換対象マイコンのRAMに一時記憶可能な情報量を超えと判定されると(S101でNo)、ステップS104に示す書換不可情報送信処理がなされる。この処理では、上述した書換不可情報が書換用外部装置1に送信される。
Hereinafter, in the present embodiment, the rewriting program distribution process executed by the
As in the first embodiment, when it is determined in the determination process shown in step S101 of FIG. 6 that the information amount of the rewriting program exceeds the information amount that can be temporarily stored in the RAM of the rewriting target microcomputer (in S101). No), the non-rewritable information transmission process shown in step S104 is performed. In this process, the above-described non-rewritable information is transmitted to the external device 1 for rewriting.
続いて、上記ステップS105に示す第2配信用情報付加処理がなされて、直接配信用情報が付加された分割データが送信用領域23bに一時記憶され、その後、経由配信用情報が付加された分割データが送信用領域23bに一時記憶される。そして、ステップS107にてプログラムの書換えが完了したか否かについて判定され、書換えが完了するまで、Noとの判定が繰り返される。
Subsequently, the second distribution information adding process shown in step S105 is performed, and the divided data to which the direct distribution information is added is temporarily stored in the
そして、上記第1実施形態と同様に、直接配信用情報が付加された分割データがRAMを介してフラッシュROMされた後に、経由配信用情報が付加された分割データがRAMを介してフラッシュROMされることでプログラムの書換えが完了すると(S107でYes)、ステップS109に示す書換可能情報送信処理がなされる。この処理では、他のマイクロコンピュータがプログラムの書換可能状態であることを示す書換可能情報が書換用外部装置1に送信され、当該書換用プログラム配信処理が終了する。 Similarly to the first embodiment, after the divided data to which the direct distribution information is added is flash ROM via the RAM, the divided data to which the via distribution information is added is flash ROM via the RAM. Thus, when the rewriting of the program is completed (Yes in S107), a rewritable information transmission process shown in step S109 is performed. In this process, rewritable information indicating that another microcomputer is in a rewritable state of the program is transmitted to the rewritable external device 1, and the rewritable program distribution process ends.
書換用外部装置1は、上記書換対象マイコンと異なるマイクロコンピュータに対して対応する書換用プログラムを送信する場合には、上記書換可能情報を受信した後に外部バス11が開放されると、当該書換用プログラムを外部バス11を介して対象の電子装置10に送信する。
When the
このように、本実施形態では、書換不可情報を受信した書換用外部装置1により書換用プログラムを送信するタイミングが調整されることで、書換不可状態の電子装置10への書換用プログラムの送信に起因して外部バス11の占有時間が長くなることもなく、複数の電子装置におけるトータルのプログラム書換時間を短くすることができる。
なお、本実施形態における特徴的処理は、他の実施形態にて適用することができる。
As described above, in this embodiment, the timing for transmitting the rewrite program is adjusted by the rewrite external device 1 that has received the non-rewritable information, so that the rewrite program can be transmitted to the
Note that the characteristic processing in this embodiment can be applied in other embodiments.
なお、本発明は上記各実施形態に限定されるものではなく、以下のように具体化してもよい。
(1)上記各実施形態において、各マイクロコンピュータは、分割データを、RAMに一時記憶するように構成されることに限らず、一時記憶可能な他の記憶手段に一時記憶するように構成されてもよい。この場合、当該他の記憶手段は、特許請求の範囲に記載の「第2の記憶手段」の一例に相当し得る。
In addition, this invention is not limited to said each embodiment, You may actualize as follows.
(1) In each of the above embodiments, each microcomputer is not limited to be configured to temporarily store the divided data in the RAM, but may be configured to temporarily store the data in other storage means that can be temporarily stored. Also good. In this case, the other storage means may correspond to an example of “second storage means” recited in the claims.
(2)上記各実施形態において、各マイクロコンピュータでは、所定の機能を実現するためのプログラムが、フラッシュROMに記憶されるように構成されること限らず、書換え可能な他の記憶手段に記憶されるように構成されてもよい。この場合、当該他の記憶手段は、特許請求の範囲に記載の「第1の記憶手段」の一例に相当し得る。 (2) In each of the embodiments described above, in each microcomputer, a program for realizing a predetermined function is not necessarily configured to be stored in the flash ROM, but is stored in other rewritable storage means. You may be comprised so that. In this case, the other storage means may correspond to an example of “first storage means” recited in the claims.
(3)上記各実施形態において、経由用マイコンの性能に応じて、配信用マイコン20から当該経由用マイコンへの内部バス14を介する分割データの通信速度を変化させてもよい。これにより、例えば、性能の低いマイクロコンピュータにあわせて内部バス14を介する情報の通信速度が低い速度で定速化される場合と比較して、経由用マイコンへの分割データの送信時間が短縮されて、外部バス11の占有時間を短縮することができる。
(3) In the above embodiments, the communication speed of the divided data via the
(4)上記各実施形態において、電子装置10内にて内部バス14を介して接続される複数のマイクロコンピュータとして、ブレーキ用マイコン30やエンジン用マイコン40を採用することに限らず、例えば、アクティブサスペンションや、トランスミッション、エアコンディショナー、パワーウィンドウ、電動ドアミラー、パワーシート、エアバック、カーナビゲーション装置やオーディオ装置等の車載機器を制御するためのマイクロコンピュータ等を採用してもよい。
(4) In each of the above embodiments, the
1…書換用外部装置 2,3…電子装置
10…電子装置
11…外部バス
12…データリンクコネクタ
14…内部バス
20…配信用マイコン(配信用マイクロコンピュータ)
30…ブレーキ用マイコン(マイクロコンピュータ)
32…フラッシュROM(第1の記憶手段) 33…RAM(第2の記憶手段)
40…エンジン用マイコン(マイクロコンピュータ)
42…フラッシュROM(第1の記憶手段) 43…RAM(第2の記憶手段)
DESCRIPTION OF SYMBOLS 1 ... External device for rewriting 2, 3 ...
30 ... Brake microcomputer (microcomputer)
32 ... Flash ROM (first storage means) 33 ... RAM (second storage means)
40 ... microcomputer for engine (microcomputer)
42 ... Flash ROM (first storage means) 43 ... RAM (second storage means)
Claims (8)
前記電子装置は、前記第1の記憶手段に記憶される前記プログラムを書換えるための書換用プログラムをマイクロコンピュータごとに送信するための書換用外部装置(1)と接続される事により通信可能となる外部バスと接続され、前記外部バスは他の電子装置と共用されており、
前記書換用外部装置から前記外部バスを介して受信した前記書換用プログラムを、前記複数のマイクロコンピュータのうち書換対象となる書換対象マイクロコンピュータに前記内部バスを介して配信するための配信用マイクロコンピュータ(20)と、を備え、
前記複数のマイクロコンピュータは、前記内部バスを介して受信した前記書換用プログラムの少なくとも一部を記憶可能な第2の記憶手段(33,43)をそれぞれ有し、前記第2の記憶手段に一時記憶されていた前記書換用プログラムを利用して前記第1の記憶手段に記憶される前記プログラムを書換え、
前記配信用マイクロコンピュータは、受信した前記書換用プログラムのうち、一部を前記書換対象マイクロコンピュータに前記内部バスを介して送信し、また、残部を前記複数のマイクロコンピュータのうち前記書換対象マイクロコンピュータを除く少なくともいずれか1つの経由用マイクロコンピュータに前記内部バスを介して送信し、
前記経由用マイクロコンピュータは、受信した前記残部を、前記一部の書換用プログラムの少なくとも一部の前記第1の記憶手段への書換えが完了した前記書換対象マイクロコンピュータに前記内部バスを介して送信し、
前記複数のマイクロコンピュータは、前記配信用マイクロコンピュータからの要求に応じて前記第2の記憶手段の記憶容量に関する記憶容量情報をそれぞれ返信し、
前記配信用マイクロコンピュータは、前記書換用外部装置から前記書換用プログラムを受信すると、前記複数のマイクロコンピュータのそれぞれに対する前記要求に応じて受信した前記各記憶容量情報に基づいて、当該複数のマイクロコンピュータから前記経由用マイクロコンピュータを選択することを特徴とする電子装置。 A plurality of microcomputers (30, 40) having first storage means (32, 42) for storing a program for realizing a predetermined function are provided, and the plurality of microcomputers having different functions are connected to the internal bus (14). An electronic device (10) configured to be communicably connected to each other via
The electronic device is communicable by being connected to a rewriting external device (1) for transmitting to each microcomputer a rewriting program for rewriting the program stored in the first storage means. Connected to an external bus, which is shared with other electronic devices,
A distribution microcomputer for distributing the rewrite program received from the external rewrite device via the external bus to the rewrite target microcomputer among the plurality of microcomputers via the internal bus. (20)
Each of the plurality of microcomputers has second storage means (33, 43) capable of storing at least a part of the rewriting program received via the internal bus, and temporarily stores the second storage means in the second storage means. Rewriting the program stored in the first storage means using the stored rewriting program,
The distribution microcomputer transmits a part of the received rewriting program to the rewriting target microcomputer via the internal bus, and the remaining part of the rewriting target microcomputer among the plurality of microcomputers. Is transmitted via the internal bus to at least one via microcomputer except
The relay microcomputer transmits the received remaining part to the rewriting target microcomputer that has been rewritten to the first storage unit of at least a part of the part of the rewriting program via the internal bus. And
The plurality of microcomputers respectively return storage capacity information related to the storage capacity of the second storage means in response to a request from the distribution microcomputer.
When the distribution microcomputer receives the rewrite program from the rewrite external device, the plurality of microcomputers based on the storage capacity information received in response to the request to each of the plurality of microcomputers An electronic apparatus comprising: selecting the via microcomputer from the above .
前記電子装置は、前記第1の記憶手段に記憶される前記プログラムを書換えるための書換用プログラムをマイクロコンピュータごとに送信するための書換用外部装置(1)と接続される事により通信可能となる外部バスと接続され、前記外部バスは他の電子装置と共用されており、
前記書換用外部装置から前記外部バスを介して受信した前記書換用プログラムを、前記複数のマイクロコンピュータのうち書換対象となる書換対象マイクロコンピュータに前記内部バスを介して配信するための配信用マイクロコンピュータ(20)と、を備え、
前記複数のマイクロコンピュータは、前記内部バスを介して受信した前記書換用プログラムの少なくとも一部を記憶可能な第2の記憶手段(33,43)をそれぞれ有し、前記第2の記憶手段に一時記憶されていた前記書換用プログラムを利用して前記第1の記憶手段に記憶される前記プログラムを書換え、
前記配信用マイクロコンピュータは、受信した前記書換用プログラムのうち、一部を前記書換対象マイクロコンピュータに前記内部バスを介して送信し、また、残部を前記複数のマイクロコンピュータのうち前記書換対象マイクロコンピュータを除く少なくともいずれか1つの経由用マイクロコンピュータに前記内部バスを介して送信し、
前記経由用マイクロコンピュータは、受信した前記残部を、前記一部の書換用プログラムの少なくとも一部の前記第1の記憶手段への書換えが完了した前記書換対象マイクロコンピュータに前記内部バスを介して送信し、
前記配信用マイクロコンピュータは、前記複数のマイクロコンピュータのいずれかに前記書換用プログラムが配信中の場合には、他のマイクロコンピュータが前記プログラムの書換不可状態であることを示す書換不可情報を前記書換用外部装置に送信することを特徴とする電子装置。 A plurality of microcomputers (30, 40) having first storage means (32, 42) for storing a program for realizing a predetermined function are provided, and the plurality of microcomputers having different functions are connected to the internal bus (14). An electronic device (10) configured to be communicably connected to each other via
The electronic device is communicable by being connected to a rewriting external device (1) for transmitting to each microcomputer a rewriting program for rewriting the program stored in the first storage means. Connected to an external bus, which is shared with other electronic devices,
A distribution microcomputer for distributing the rewrite program received from the external rewrite device via the external bus to the rewrite target microcomputer among the plurality of microcomputers via the internal bus. (20)
Each of the plurality of microcomputers has second storage means (33, 43) capable of storing at least a part of the rewriting program received via the internal bus, and temporarily stores the second storage means in the second storage means. Rewriting the program stored in the first storage means using the stored rewriting program,
The distribution microcomputer transmits a part of the received rewriting program to the rewriting target microcomputer via the internal bus, and the remaining part of the rewriting target microcomputer among the plurality of microcomputers. Is transmitted via the internal bus to at least one via microcomputer except
The relay microcomputer transmits the received remaining part to the rewriting target microcomputer that has been rewritten to the first storage unit of at least a part of the part of the rewriting program via the internal bus. And
When the rewriting program is being distributed to any one of the plurality of microcomputers, the distribution microcomputer stores the rewrite disable information indicating that another microcomputer is in a state in which the program cannot be rewritten. you wherein electronic device to transmit to the Yogaibu device.
前記電子装置は、前記第1の記憶手段に記憶される前記プログラムを書換えるための書換用プログラムをマイクロコンピュータごとに送信するための書換用外部装置(1)と接続される事により通信可能となる外部バスと接続され、前記外部バスは他の電子装置と共用されており、
前記書換用外部装置から前記外部バスを介して受信した前記書換用プログラムを、前記複数のマイクロコンピュータのうち書換対象となる書換対象マイクロコンピュータに前記内部バスを介して配信するための配信用マイクロコンピュータ(20)と、を備え、
前記複数のマイクロコンピュータは、前記内部バスを介して受信した前記書換用プログラムの少なくとも一部を記憶可能な第2の記憶手段(33,43)をそれぞれ有し、前記第2の記憶手段に一時記憶されていた前記書換用プログラムを利用して前記第1の記憶手段に記憶される前記プログラムを書換え、
前記配信用マイクロコンピュータは、受信した前記書換用プログラムのうち、一部を前記書換対象マイクロコンピュータに前記内部バスを介して送信し、また、残部を前記複数のマイクロコンピュータのうち前記書換対象マイクロコンピュータを除く少なくともいずれか1つの経由用マイクロコンピュータに前記内部バスを介して送信し、
前記経由用マイクロコンピュータは、受信した前記残部を、前記一部の書換用プログラムの少なくとも一部の前記第1の記憶手段への書換えが完了した前記書換対象マイクロコンピュータに前記内部バスを介して送信し、
前記配信用マイクロコンピュータは、前記経由用マイクロコンピュータの性能に応じて前記内部バスを介する前記残部の通信速度を変化させることを特徴とする電子装置。 A plurality of microcomputers (30, 40) having first storage means (32, 42) for storing a program for realizing a predetermined function are provided, and the plurality of microcomputers having different functions are connected to the internal bus (14). An electronic device (10) configured to be communicably connected to each other via
The electronic device is communicable by being connected to a rewriting external device (1) for transmitting to each microcomputer a rewriting program for rewriting the program stored in the first storage means. Connected to an external bus, which is shared with other electronic devices,
A distribution microcomputer for distributing the rewrite program received from the external rewrite device via the external bus to the rewrite target microcomputer among the plurality of microcomputers via the internal bus. (20)
Each of the plurality of microcomputers has second storage means (33, 43) capable of storing at least a part of the rewriting program received via the internal bus, and temporarily stores the second storage means in the second storage means. Rewriting the program stored in the first storage means using the stored rewriting program,
The distribution microcomputer transmits a part of the received rewriting program to the rewriting target microcomputer via the internal bus, and the remaining part of the rewriting target microcomputer among the plurality of microcomputers. Is transmitted via the internal bus to at least one via microcomputer except
The relay microcomputer transmits the received remaining part to the rewriting target microcomputer that has been rewritten to the first storage unit of at least a part of the part of the rewriting program via the internal bus. And
The distribution microcomputer, the remainder of the to that electronic device wherein Rukoto the communication speed is changed through the internal bus in accordance with the performance of the via microcomputer.
前記配信用マイクロコンピュータは、前記書換用外部装置から前記書換用プログラムを受信すると、前記複数のマイクロコンピュータのそれぞれに対する前記要求に応じて受信した前記各記憶容量情報に基づいて、当該複数のマイクロコンピュータから前記経由用マイクロコンピュータを選択することを特徴とする請求項2または3に記載の電子装置。 The plurality of microcomputers respectively return storage capacity information related to the storage capacity of the second storage means in response to a request from the distribution microcomputer.
When the distribution microcomputer receives the rewrite program from the rewrite external device, the plurality of microcomputers based on the storage capacity information received in response to the request to each of the plurality of microcomputers 4. The electronic apparatus according to claim 2, wherein the via microcomputer is selected from the electronic device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012010855A JP5790514B2 (en) | 2012-01-23 | 2012-01-23 | Electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012010855A JP5790514B2 (en) | 2012-01-23 | 2012-01-23 | Electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013147209A JP2013147209A (en) | 2013-08-01 |
JP5790514B2 true JP5790514B2 (en) | 2015-10-07 |
Family
ID=49045154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012010855A Active JP5790514B2 (en) | 2012-01-23 | 2012-01-23 | Electronic equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5790514B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5625036B2 (en) * | 2012-12-25 | 2014-11-12 | 本田技研工業株式会社 | Data writing method and data writing apparatus |
JP6314775B2 (en) * | 2014-09-29 | 2018-04-25 | 株式会社オートネットワーク技術研究所 | Communication system, in-vehicle device, communication device, and computer program |
JP6394291B2 (en) * | 2014-11-05 | 2018-09-26 | 株式会社デンソー | Electronic control device and memory rewriting method |
JP7424900B2 (en) * | 2020-04-20 | 2024-01-30 | 矢崎総業株式会社 | vehicle control system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3251053B2 (en) * | 1992-05-29 | 2002-01-28 | 富士通株式会社 | Data communication method |
JP4711531B2 (en) * | 2001-03-23 | 2011-06-29 | ルネサスエレクトロニクス株式会社 | Semiconductor memory device |
JP2004302944A (en) * | 2003-03-31 | 2004-10-28 | Suzuki Motor Corp | Control system for vehicle |
JP2009298331A (en) * | 2008-06-13 | 2009-12-24 | Toyota Motor Corp | Vehicle condition recording system, vehicle condition recording device, and vehicle condition recording method |
JP2010258990A (en) * | 2009-04-28 | 2010-11-11 | Autonetworks Technologies Ltd | Control system and control program updating method |
JP2010272971A (en) * | 2009-05-19 | 2010-12-02 | Nagoya Univ | Control system and method for rewriting control program |
JP5522072B2 (en) * | 2010-03-04 | 2014-06-18 | 株式会社デンソー | Vehicle communication device and vehicle communication system |
-
2012
- 2012-01-23 JP JP2012010855A patent/JP5790514B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2013147209A (en) | 2013-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5255579B2 (en) | In-car data relay device, vehicle control system | |
JP4410661B2 (en) | Distributed control system | |
JP5790514B2 (en) | Electronic equipment | |
JP2017157003A (en) | System, method, and computer program for updating programs | |
JP5353545B2 (en) | In-vehicle network device | |
JP2007034359A (en) | Distributed control system | |
CN112099465A (en) | Vehicle diagnosis communication device and method, and system including vehicle diagnosis communication device | |
JP2004287475A (en) | Electronic controller and electronic driving device | |
JP2010033435A (en) | Control apparatus, control method, and computer program | |
JP2008506204A (en) | Apparatus and method for exchanging data between a plurality of data buses | |
US10300923B2 (en) | Device for storing data in a motor vehicle | |
JP5365584B2 (en) | Control device | |
JP5728043B2 (en) | Gateway device | |
JP5035395B2 (en) | Vehicle control apparatus and vehicle control system using the same | |
EP2081093A2 (en) | Vehicle control apparatus | |
JP2005332145A (en) | Data transfer control circuit and data transfer method | |
JP4954832B2 (en) | In-vehicle communication system | |
JP5299261B2 (en) | Electronic control unit | |
JP2021128531A5 (en) | ||
WO2023195324A1 (en) | In-vehicle system, update control device, and program update control method | |
WO2023209820A1 (en) | In-vehicle electronic device | |
Schwabel | Technical challenges in future electrical architectures | |
WO2021166956A1 (en) | Data distribution device, data distribution system, and data distribution program | |
WO2023189468A1 (en) | Vehicle-mounted device, information processing method, and information processing program | |
JP7405142B2 (en) | In-vehicle equipment, vehicle management system, resource management method, and resource management program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140512 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150213 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150303 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150403 |
|
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: 20150707 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150720 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5790514 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |