JP2021087170A - Arithmetic device - Google Patents

Arithmetic device Download PDF

Info

Publication number
JP2021087170A
JP2021087170A JP2019216543A JP2019216543A JP2021087170A JP 2021087170 A JP2021087170 A JP 2021087170A JP 2019216543 A JP2019216543 A JP 2019216543A JP 2019216543 A JP2019216543 A JP 2019216543A JP 2021087170 A JP2021087170 A JP 2021087170A
Authority
JP
Japan
Prior art keywords
data
load
communication bus
arithmetic unit
microcomputer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2019216543A
Other languages
Japanese (ja)
Inventor
貴志 山田
Takashi Yamada
貴志 山田
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Astemo Ltd
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 Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2019216543A priority Critical patent/JP2021087170A/en
Publication of JP2021087170A publication Critical patent/JP2021087170A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

To provide a technique that reduces variations in loads and averages the processing load in data communication.SOLUTION: An ECU 10 includes: at least two or more microcomputers (for example, a transmitting-side microcomputer 11 and a receiving-side microcomputer 12), and the microcomputers are connected to each other by two types of communication buses of a first communication bus 30 and a second communication bus 31. The first communication bus transmits and receives environment information on a load on the ECU 10, and the second communication bus transmits and receives data between the microcomputers, selects a data compression method so as to distribute the processing load according to the environment information, and transmits the compressed data via the second communication bus.SELECTED DRAWING: Figure 1

Description

本発明は、演算装置におけるマイクロコンピュータ間におけるデータ通信技術に関する。 The present invention relates to a data communication technique between microcomputers in an arithmetic unit.

演算装置の一種であるECU(Electronic Control Unit)などの電子制御装置は、マイクロコンピュータ(以下、マイコン)により、様々なデータ通信を実施している。
現在、データ通信には様々な通信バス(例えば、インターネット、LAN(Local Area Network)等)が使用されている。
Electronic control devices such as ECUs (Electronic Control Units), which are a type of arithmetic unit, carry out various data communications using microcomputers (hereinafter referred to as microcomputers).
Currently, various communication buses (for example, the Internet, LAN (Local Area Network), etc.) are used for data communication.

近年、自動運転の技術実現にあたって、周辺の人や物体などのセンシングが重要になり、カメラ、RADAR(Radio Detecting and Ranging)、LiDAR(Light Detection and Ranging)等からデータを取得し、制御することが必要となっている。これらのデータ量は、自動運転や運転支援のレベルが上がることに比例して、増加している。このデータ量の増加により、ECUの負荷も増大している。この負荷を低減するために、データ通信においては、送信側でデータを圧縮し、受信側でデータを伸長することにより、データを取得している。例えば、特許文献1では、1つのネットワーク回線で接続され、ネットワーク負荷と計算機のCPU負荷を比較し、データ通信におけるデータ圧縮率を決定している。 In recent years, sensing of people and objects in the vicinity has become important in realizing autonomous driving technology, and it is possible to acquire and control data from cameras, RADAR (Radio Detecting and Ranging), LiDAR (Light Detection and Ranging), etc. It is needed. The amount of these data is increasing in proportion to the increase in the level of autonomous driving and driving support. Due to this increase in the amount of data, the load on the ECU is also increasing. In order to reduce this load, in data communication, data is acquired by compressing the data on the transmitting side and decompressing the data on the receiving side. For example, in Patent Document 1, the data compression rate in data communication is determined by comparing the network load and the CPU load of a computer, which are connected by one network line.

特開2002−229886号公報JP-A-2002-229886

しかし、データ通信において送信側マイコンと受信側マイコンのCPU負荷状況によってはデータ圧縮(伸長)処理に時間を要することで、CPU負荷にバラツキが発生する。また、通信バスの負荷や送信データ量などによっては、データの送信制御方式により、演算装置全体の負荷バランスが崩れることはある。その結果、周期時間内(例えば、10ミリ秒)に処理が完了せず、後発の処理(例えば、周期処理)に影響を及ぼす可能性がある。 However, in data communication, depending on the CPU load status of the transmitting side microcomputer and the receiving side microcomputer, it takes time for the data compression (decompression) processing, so that the CPU load varies. Further, depending on the load of the communication bus, the amount of transmitted data, and the like, the load balance of the entire arithmetic unit may be lost depending on the data transmission control method. As a result, the processing may not be completed within the cycle time (for example, 10 milliseconds), which may affect the subsequent processing (for example, the cycle processing).

そこで、本発明では、負荷バランスにおけるバラつきを軽減し、処理負荷がより平準化されるような(例えば、負荷を分散させる)技術を提供することを目的とする。 Therefore, an object of the present invention is to provide a technique for reducing variation in load balance and further leveling the processing load (for example, distributing the load).

上記の目的を達成するために、本発明では、それぞれが、処理対象のデータの送受信、演算装置における負荷に関する環境情報の送受信を行う異なる通信バスを用いて、環境情報に従ったデータの送信制御を行うものである。 In order to achieve the above object, in the present invention, data transmission control according to the environmental information is performed by using different communication buses, each of which transmits / receives the data to be processed and the environmental information regarding the load in the arithmetic unit. Is to do.

より具体的には、所定の演算を実行する演算装置において、複数のマイコンと、前記複数のマイコン間を接続し、互いに異なる2種類の通信バスを有し、前記2種類の通信バスは、それぞれ当該演算装置における負荷に関する環境情報を送受信する第1の通信バスおよび前記複数のマイコン間で演算すべきデータを送受信する第2の通信バスであり、前記第1の通信バスで送信された環境情報を用いて、前記データを前記第2の通信バスで送信する際の送信制御方式を特定し、特定された前記送信制御方式に従って送信制御を実行する演算装置である。 More specifically, in an arithmetic unit that executes a predetermined calculation, a plurality of microcomputers and the plurality of microcomputers are connected to each other and have two types of communication buses that are different from each other. A first communication bus for transmitting and receiving environmental information regarding a load in the arithmetic unit and a second communication bus for transmitting and receiving data to be calculated between the plurality of microcomputers, and environmental information transmitted by the first communication bus. Is an arithmetic unit that specifies a transmission control method when transmitting the data on the second communication bus, and executes transmission control according to the specified transmission control method.

また、送信制御方式には、データの圧縮率などの圧縮方式や送信タイミングの制御が含まれる。 Further, the transmission control method includes control of a compression method such as a data compression rate and transmission timing.

また、本発明には、上記演算装置での処理方法や当該方法を実行するためのプログラム製品も含まれる。 The present invention also includes a processing method in the arithmetic unit and a program product for executing the method.

本発明によれば、負荷バランスにおけるバラつきを軽減し、処理負荷がより平準化されるような送信制御が可能になる。上記した以外の課題、構成及び効果は、以下の実施形態の説明により明らかにされる。 According to the present invention, it is possible to reduce the variation in the load balance and control the transmission so that the processing load is more leveled. Issues, configurations and effects other than those described above will be clarified by the description of the following embodiments.

本発明の実施例におけるECU10の構成を示す図。The figure which shows the structure of the ECU 10 in the Example of this invention. 本発明の実施例におけるマイコン(送信側マイコン11、受信側マイコン12)の構成を示す図。The figure which shows the structure of the microcomputer (the transmitting side microcomputer 11, the receiving side microcomputer 12) in the Example of this invention. 実施例1の処理を示すフローチャート。The flowchart which shows the process of Example 1. 実施例1および3で用いられる判定表(その1)を示す図。The figure which shows the judgment table (the 1) used in Examples 1 and 3. 実施例2の処理を示すフローチャート。The flowchart which shows the process of Example 2. 実施例2で用いられる判定表(その2)を示す図。The figure which shows the judgment table (the 2) used in Example 2. 実施例3の処理を示すフローチャート。The flowchart which shows the process of Example 3. データ量、圧縮時間、伸長時間、圧縮率、CPU負荷率の相関関係を示す図。The figure which shows the correlation of the data amount, compression time, decompression time, compression rate, and CPU load factor. 各マイコンのCPU40における周期処理中の負荷状況の一例を示す図。It is a figure which shows an example of the load situation during periodic processing in CPU 40 of each microcomputer. 実施例4の処理を示すフローチャート。The flowchart which shows the process of Example 4.

以下、図面を用いて本発明を実施するための実施形態について説明する。 Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.

図1は、実施例1における演算装置の一種であるECU10の構成を示す図である。ECUには2つのマイコン(送信側マイコン11、受信側マイコン12)が搭載されており、第1の通信バス30と第2の通信バス31を介して通信する。第1および第2の通信バスとしては例えば、SPI通信とEthernet(登録商標)通信がある。第2の通信バス31の通信や外部ネットワーク20との通信は、Switch13を介して行われる。 FIG. 1 is a diagram showing a configuration of an ECU 10 which is a kind of arithmetic unit in the first embodiment. Two microcomputers (transmitting side microcomputer 11 and receiving side microcomputer 12) are mounted on the ECU, and communication is performed via the first communication bus 30 and the second communication bus 31. The first and second communication buses include, for example, SPI communication and Ethernet® communication. The communication of the second communication bus 31 and the communication with the external network 20 are performed via the Switch 13.

第1の通信バス30は、環境情報を送受信するために使用し、第2の通信バス31はデータを送受信するために使用する。なお、本実施例では、異なる2種類の通信バスを用いているが、同じ種類の通信バスとして、一方を環境情報の送受信に、他方をデータ送受信に用いてもよい。また、通信バスの種類は、SPI通信とEthernetに限定されない。また、第1の通信バスよりも第2の通信バスの方が高速ないし大容量対応であることがより望ましいが、これに限定されない。なお、環境情報とは、CPU負荷情報等のECU10ないし各マイコン(送信側マイコン11、受信側マイコン)の処理負荷に関する情報である。 The first communication bus 30 is used for transmitting and receiving environmental information, and the second communication bus 31 is used for transmitting and receiving data. In this embodiment, two different types of communication buses are used, but one of them may be used for transmitting and receiving environmental information and the other may be used for transmitting and receiving data as the same type of communication bus. Further, the type of communication bus is not limited to SPI communication and Ethernet. Further, it is more desirable that the second communication bus supports high speed or large capacity than the first communication bus, but the present invention is not limited to this. The environmental information is information related to the processing load of the ECU 10 or each microcomputer (transmitting side microcomputer 11, receiving side microcomputer) such as CPU load information.

図2は、ECU10に含まれる各マイコンの構成を示す図である。本明細書では、マイコンを、データを送信する送信側マイコン11とデータを受信する受信側マイコン12とする。ここでは、送信側マイコン11、受信側マイコン12は同様の構成のため、その機能概要をまとめて説明する。このため、各マイコンに振られた符号のハイフン以下の表示はここでは省略する。なお、送信側マイコン11、受信側マイコン12の詳細な機能については、図3のフローチャートの説明の際に後述する。 FIG. 2 is a diagram showing a configuration of each microcomputer included in the ECU 10. In the present specification, the microcomputers are a transmitting side microcomputer 11 for transmitting data and a receiving side microcomputer 12 for receiving data. Here, since the transmitting side microcomputer 11 and the receiving side microcomputer 12 have the same configuration, the outline of their functions will be described together. Therefore, the display below the hyphen of the code assigned to each microcomputer is omitted here. The detailed functions of the transmitting side microcomputer 11 and the receiving side microcomputer 12 will be described later when the flowchart of FIG. 3 is described.

各マイコンは、演算処理を行うCPU40と揮発性のRAM41(Random Access Memory)、不揮発性のROM42(Read Only Memory)から構成されている。また、CPUの負荷を示すCPU負荷を算出するCPU負荷算出部43、データの圧縮・伸長処理を行う圧縮伸長制御部44、通信バス負荷を算出する通信バス負荷算出部45、データ通信を実施する通信制御部46を備えている。なお、図2においては、第1および第2の通信バスを纏めて表現している。 Each microcomputer is composed of a CPU 40 that performs arithmetic processing, a volatile RAM 41 (Random Access Memory), and a non-volatile ROM 42 (Read Only Memory). Further, a CPU load calculation unit 43 that calculates a CPU load indicating a CPU load, a compression / decompression control unit 44 that performs data compression / decompression processing, a communication bus load calculation unit 45 that calculates a communication bus load, and data communication are performed. It includes a communication control unit 46. In FIG. 2, the first and second communication buses are collectively represented.

ここで、CPU負荷算出部43は、例えば、CPU負荷を単位時間あたりのプログラムの処理時間から算出する。通信バス負荷算出部45は、通信バス負荷を例えば、ネットワーク帯域における単位時間あたりに送受信したパケット数、パケットサイズから算出する。通信制御部46は、一定周期ないし他のマイコンからの要求に応じてCPU負荷算出部43から取得したCPU負荷を他マイコンに送信している。例えば、10ミリ秒周期で通知する。また、通信制御部46は、他マイコンから送信されたCPU負荷を受信する。 Here, the CPU load calculation unit 43 calculates, for example, the CPU load from the processing time of the program per unit time. The communication bus load calculation unit 45 calculates the communication bus load from, for example, the number of packets transmitted / received per unit time in the network band and the packet size. The communication control unit 46 transmits the CPU load acquired from the CPU load calculation unit 43 to the other microcomputer in a fixed cycle or in response to a request from the other microcomputer. For example, it notifies every 10 milliseconds. Further, the communication control unit 46 receives the CPU load transmitted from another microcomputer.

なお、図2では、CPU負荷算出部43、圧縮伸長制御部44、通信バス負荷を算出する通信バス負荷算出部45を異なる構成で表現したが、1つのプロセッサで実現してもよいし、CPU40にその機能を持たせてもよい。 In FIG. 2, the CPU load calculation unit 43, the compression / expansion control unit 44, and the communication bus load calculation unit 45 for calculating the communication bus load are represented by different configurations, but they may be realized by one processor, or the CPU 40. May have that function.

次に、本実施例の処理を示すフローチャートを図3に示す。本実施例では、環境情報として、CPU負荷と通信バス負荷を用いて、データ圧縮方式(圧縮率)と送信タイミングを決定する。このような環境情報を用いるのは、CPU負荷と通信バス負荷が変動する可能性が高い、つまり、他の環境情報(例えば、送信データ量)が一定であるためである。このため、送信データ量が一定である場合、本フローチャートを実行することになる。 Next, a flowchart showing the processing of this embodiment is shown in FIG. In this embodiment, the data compression method (compression rate) and the transmission timing are determined using the CPU load and the communication bus load as the environmental information. Such environmental information is used because the CPU load and the communication bus load are likely to fluctuate, that is, other environmental information (for example, the amount of transmitted data) is constant. Therefore, when the amount of transmitted data is constant, this flowchart is executed.

なお、上述した図1、2の構成は、実施例2以降の各実施例でも共通する。 The configurations of FIGS. 1 and 2 described above are also common to each of the examples after the second embodiment.

以下、図3を用いて、その処理内容を説明する。なお、本処理は、送信タイミングごとないしECU10での処理周期ごとに実行される。また、ここでは、送信側マイコン11から受信側マイコン12へ演算のためのデータが送信されることを想定する。 Hereinafter, the processing content will be described with reference to FIG. This process is executed every transmission timing or every process cycle in the ECU 10. Further, here, it is assumed that data for calculation is transmitted from the transmitting side microcomputer 11 to the receiving side microcomputer 12.

まず、ステップS201において、送信側マイコン11のCPU40−1が、CPU負荷算出部43−1から自身(CPU40−1)の負荷を示す送信側CPU負荷を取得する。 First, in step S201, the CPU 40-1 of the transmitting side microcomputer 11 acquires the transmitting side CPU load indicating the load of itself (CPU 40-1) from the CPU load calculating unit 43-1.

次に、ステップS202において、CPU40−1が、通信制御部46−1から受信側マイコン12のCPU40−2の負荷を示す受信側CPU負荷を取得する。 Next, in step S202, the CPU 40-1 acquires the receiving side CPU load indicating the load of the CPU 40-2 of the receiving side microcomputer 12 from the communication control unit 46-1.

このために、CPU40−1は、通信制御部46−1を介して、受信側マイコン12に対して、CPU負荷要求を、第1の通信バスを介して送信する。受信側マイコン12では、通信制御部46−2がCPU負荷要求を受信する。そして、CPU負荷算出部43−2で算出された受信側CPU負荷を、通信制御部46−1から第1の通信バス30を介して送信側マイコン11へ送信する。このようにして、
なお、CPU負荷算出部43−2では、受信側CPU負荷をECU10での処理周期ごとに算出してもよいし、CPU負荷要求を受信した場合に算出してもよい。
For this purpose, the CPU 40-1 transmits a CPU load request to the receiving side microcomputer 12 via the communication control unit 46-1 via the first communication bus. In the receiving-side microcomputer 12, the communication control unit 46-2 receives the CPU load request. Then, the receiving side CPU load calculated by the CPU load calculating unit 43-2 is transmitted from the communication control unit 46-1 to the transmitting side microcomputer 11 via the first communication bus 30. In this way
The CPU load calculation unit 43-2 may calculate the CPU load on the receiving side for each processing cycle in the ECU 10, or may calculate it when a CPU load request is received.

次に、ステップS203において、CPU40−1は、通信バス負荷算出部45−1から第2の通信バスの負荷を示す通信バス負荷を取得する。 Next, in step S203, the CPU 40-1 acquires a communication bus load indicating the load of the second communication bus from the communication bus load calculation unit 45-1.

最後に、ステップS204において、CPU40−1は、ROM42に格納された判定表(図4)に従い、ステップS201〜S203で取得した送信側CPU負荷、受信側CPU負荷および通信バス負荷を用いて、データ圧縮方式と送信タイミングを決定する。 Finally, in step S204, the CPU 40-1 uses the transmitting side CPU load, the receiving side CPU load, and the communication bus load acquired in steps S201 to S203 according to the determination table (FIG. 4) stored in the ROM 42 to perform data. Determine the compression method and transmission timing.

以下、図4に示す判定表を参照して、ステップS204の詳細を説明する。図4は、送信データ量が一定の場合におけるCPU負荷と通信バス負荷からデータ圧縮方式と送信タイミングを決定するための判定表である。 Hereinafter, the details of step S204 will be described with reference to the determination table shown in FIG. FIG. 4 is a determination table for determining the data compression method and the transmission timing from the CPU load and the communication bus load when the amount of transmission data is constant.

ここで、送信データ量が一定とは、予め定めた条件を満たす場合を示す。具体的には、送信データ量の変動が一定範囲内であることを含む。これは、周期ごとの変動を示すものであり、特に1つ前の周期の送信データ量との差分が範囲内であるかを用いることが好適である。 Here, the constant transmission data amount indicates a case where a predetermined condition is satisfied. Specifically, it includes that the fluctuation of the amount of transmitted data is within a certain range. This indicates the fluctuation for each cycle, and it is particularly preferable to use whether the difference from the amount of transmitted data in the previous cycle is within the range.

本判定表は、送信側CPU負荷と受信側CPU負荷を縦軸に、通信バス負荷を縦軸に取っている。つまり、送信側CPU負荷と受信側CPU負荷のセットと、通信バス負荷の組み合わせからなる環境情報と、データ圧縮方式と送信タイミングからなる通信制御方式が対応付けられている。 In this determination table, the transmission side CPU load and the reception side CPU load are on the vertical axis, and the communication bus load is on the vertical axis. That is, the environment information including the set of the transmission side CPU load and the reception side CPU load, the combination of the communication bus load, and the communication control method including the data compression method and the transmission timing are associated with each other.

このため、S204では、S201、S202で取得した送信側CPU負荷と受信側CPU負荷と、S203で取得した通信バス負荷の値が、それぞれ判定表のいずれに該当するか特定する。 Therefore, in S204, it is specified which of the determination tables corresponds to the values of the transmission side CPU load and the reception side CPU load acquired in S201 and S202, and the communication bus load acquired in S203, respectively.

ここで、例えば、CPU負荷が50%以上を「高」、それ未満を「低」とする。また、通信バス負荷の閾値を80%と設定している。 Here, for example, a CPU load of 50% or more is defined as "high", and a CPU load of less than 50% is defined as "low". Further, the threshold value of the communication bus load is set to 80%.

そこで、取得した送信側CPU負荷と受信側CPU負荷が「高」「低」のいずれであるかを判断する。また、S203で取得した通信バス負荷が「閾値以上」「閾値未満」のいいずれであるかを判断する。これら判断結果に対応する情報、つまり、データ圧縮方式と送信タイミングを判定表から特定する。 Therefore, it is determined whether the acquired transmission side CPU load or reception side CPU load is "high" or "low". Further, it is determined whether the communication bus load acquired in S203 is "greater than or equal to the threshold value" or "less than or equal to the threshold value". The information corresponding to these judgment results, that is, the data compression method and the transmission timing are specified from the judgment table.

ここで、環境情報と送信制御方式の関係を示す図8を用いて、判定表の考え方を説明する。具体的には、図8では、送信データ量、圧縮時間、圧縮率、CPU負荷、伸長時間の相関関係を纏めたものである。本図によれば、圧縮率、CPU負荷、圧縮時間は伸長時間と反比例することが理解できる。つまり、圧縮率が高いほどCPU負荷や圧縮時間は増えるが、伸長時間は短くなる。 Here, the concept of the determination table will be described with reference to FIG. 8 showing the relationship between the environmental information and the transmission control method. Specifically, FIG. 8 summarizes the correlation between the amount of transmitted data, the compression time, the compression rate, the CPU load, and the decompression time. According to this figure, it can be understood that the compression rate, the CPU load, and the compression time are inversely proportional to the decompression time. That is, the higher the compression rate, the higher the CPU load and compression time, but the shorter the decompression time.

このため、送信側CPU負荷、受信側CPU負荷および通信バス負荷と、圧縮方式の関係は以下のとおり把握可能である。
(1)送信側CPU負荷が高い場合(例えば、50%以上)は圧縮率を比較的低くし、送信側CPU負荷が低い場合(例えば、50%未満)は、圧縮率を比較的高くすることが望まれる。
(2)受信側CPU負荷が高い場合、伸長時間を短くするように圧縮率を比較的高くし、受信側CPU負荷が低い場合、伸長時間を長くとも対応可能なため圧縮率を比較的低くすることが可能である。
Therefore, the relationship between the transmission side CPU load, the reception side CPU load, the communication bus load, and the compression method can be grasped as follows.
(1) When the transmission side CPU load is high (for example, 50% or more), the compression rate is relatively low, and when the transmission side CPU load is low (for example, less than 50%), the compression rate is relatively high. Is desired.
(2) When the CPU load on the receiving side is high, the compression rate is relatively high so as to shorten the decompression time, and when the CPU load on the receiving side is low, the decompression time can be long, so the compression rate is relatively low. It is possible.

また、通信バス負荷が大きいほど、新たなデータの送信に時間、負荷がかかるため、このため、通信バス負荷に応じて送信タイミングを制御することが望ましい。 Further, as the communication bus load is larger, it takes more time and load to transmit new data. Therefore, it is desirable to control the transmission timing according to the communication bus load.

これらを勘案し、図4の判定表は、以下の特性を有する。 In consideration of these, the judgment table of FIG. 4 has the following characteristics.

通信バス負荷が閾値以上(例えば、80%以上)であり、送信側CPU負荷が高い場合は、データ圧縮・送信処理を実施すると後発の周期処理に影響が出る可能性がある。また、通信バス負荷も閾値以上であるため、データを送信してもデータを正常に送信できる保証がないことから、当該タイミングでの送信を見合わせる。そして、次回タイミングでデータの圧縮・送信処理を実施する。 When the communication bus load is equal to or higher than the threshold value (for example, 80% or higher) and the transmission side CPU load is high, the data compression / transmission processing may affect the subsequent periodic processing. Further, since the communication bus load is also equal to or higher than the threshold value, there is no guarantee that the data can be transmitted normally even if the data is transmitted. Therefore, the transmission at the relevant timing is postponed. Then, the data compression / transmission process is performed at the next timing.

なお、次回タイミングには、次回以降を含み、次々回タイミングなどでもよい。また、次回タイミングで再判断してもよい。 In addition, the next timing may include the next and subsequent times, and may be the timing one after another. In addition, the judgment may be made again at the next timing.

通信バス負荷が閾値以上であり、送信側CPU負荷が低い場合は、後発の周期処理に影響はないため、データ圧縮を実施し、データの送信は次回タイミングで実施する。この場合のデータ圧縮の圧縮率は高低のいずれでもよい。 If the communication bus load is equal to or higher than the threshold value and the CPU load on the transmitting side is low, the subsequent periodic processing is not affected. Therefore, data compression is performed and data transmission is performed at the next timing. In this case, the compression rate of data compression may be either high or low.

通信バス負荷が閾値未満であり、送信側、受信側CPU負荷の双方が高い場合は、データ圧縮を実施すると後発の周期処理に影響が出る可能性がある。また、通信バス負荷も閾値以上であるため、データを送信してもデータを正常に送信できる保証がないことから、次回タイミングでデータの圧縮・送信処理を実施する。 If the communication bus load is less than the threshold value and both the transmitting side and receiving side CPU loads are high, performing data compression may affect the subsequent periodic processing. Further, since the communication bus load is also equal to or higher than the threshold value, there is no guarantee that the data can be transmitted normally even if the data is transmitted. Therefore, the data compression / transmission process is performed at the next timing.

通信バス負荷が閾値未満であり、一方のCPU負荷が高い場合は、処理負荷が平準となるデータ圧縮方式を選択する。つまり、送信側CPU負荷が低い場合は、CPU40−1の負荷が低減するように比較的圧縮率が高い方式で圧縮する。逆に、受信側CPU負荷が高い場合は、CPU40−2の負荷が低減するように比較的圧縮率が高い方式で圧縮する。 When the communication bus load is less than the threshold value and one of the CPU loads is high, a data compression method in which the processing load is leveled is selected. That is, when the transmission side CPU load is low, compression is performed by a method having a relatively high compression rate so that the load on the CPU 40-1 is reduced. On the contrary, when the CPU load on the receiving side is high, compression is performed by a method having a relatively high compression rate so that the load on the CPU 40-2 is reduced.

通信バス負荷が閾値未満であり、送信側、受信側CPU負荷双方が低い場合は、圧縮率を高くしても、低くしても、後発の周期処理には影響がないため、どのデータ圧縮方式を選択してもよい。 If the communication bus load is less than the threshold value and both the transmitting side and receiving side CPU loads are low, either the compression rate is increased or decreased, which does not affect the subsequent periodic processing. Therefore, which data compression method is used. May be selected.

通信バス負荷が閾値未満であり、送信側のCPU負荷が低く、受信側のCPU負荷が高い場合は、圧縮率の高い方式でデータ送信をする。これは、受信側マイコン12のCPU負荷が高いため、受信側マイコン12のCPU40−2に伸長処理による負荷をなるべくかけないようにするためである。 When the communication bus load is less than the threshold value, the CPU load on the transmitting side is low, and the CPU load on the receiving side is high, data is transmitted by a method having a high compression rate. This is because the CPU load of the receiving side microcomputer 12 is high, so that the load due to the decompression processing is not applied to the CPU 40-2 of the receiving side microcomputer 12 as much as possible.

なお、図3のフローチャートにおいて、S201およびS202により送信側、受信側CPU負荷双方が「高」の場合、ステップS203をスキップして、S204に進んでもよい。つまり、送信側、受信側CPU負荷双方が「高」の場合、通信バス負荷によらず次回タイミングで送信することと、送信制御方式を特定する。 In the flowchart of FIG. 3, when both the transmitting side and the receiving side CPU load are “high” according to S201 and S202, step S203 may be skipped and the process may proceed to S204. That is, when both the transmitting side and the receiving side CPU load are "high", the transmission is performed at the next timing regardless of the communication bus load, and the transmission control method is specified.

図9は、各マイコンのCPU40における周期処理中の負荷状況の一例を示す図である。送信側マイコン11のCPU負荷が低く、受信側マイコン12のCPU負荷が高い例である。送信側マイコン11のCPU40−1は負荷が低い(空き時間に余裕あり)のため、圧縮率を高くし、データ送信をする。受信側マイコン12のCPU40−2はデータ受信後、伸長処理を行う。仮にこの場合で圧縮率が低い方式を選択してしまうとデータ伸長時間が長くなり、受信側マイコンのCPU空き時間内に伸長処理が完了しない恐れがある。 FIG. 9 is a diagram showing an example of a load status during periodic processing in the CPU 40 of each microcomputer. This is an example in which the CPU load of the transmitting side microcomputer 11 is low and the CPU load of the receiving side microcomputer 12 is high. Since the CPU 40-1 of the transmitting side microcomputer 11 has a low load (there is a margin in free time), the compression rate is increased and data is transmitted. After receiving the data, the CPU 40-2 of the receiving-side microcomputer 12 performs decompression processing. If a method having a low compression rate is selected in this case, the data decompression time becomes long, and the decompression process may not be completed within the free time of the CPU of the receiving microcomputer.

このように、送信側マイコン11のCPU負荷、受信側マイコン12のCPU負荷、通信バス負荷情報をチェックし、処理負荷が平準となる圧縮方式を選択することで、周期時間内に処理を完了ないし完了に近づけることができる。逆に、周期時間内に処理を完了させるように、送信制御を行うことも本実施例に含まれる。 In this way, by checking the CPU load of the transmitting side microcomputer 11, the CPU load of the receiving side microcomputer 12, and the communication bus load information, and selecting the compression method in which the processing load is leveled, the processing is not completed within the cycle time. You can get closer to completion. On the contrary, the present embodiment also includes performing transmission control so that the processing is completed within the cycle time.

本実施例は、実施例1におけるデータ圧縮方式の選択として、ステップS203の通信バス負荷情報の代わりに送信データ量を用いるものである。つまり、環境情報として、CPU負荷と送信データ量を用いて、データ圧縮方式(圧縮率)と送信タイミングを決定する。このような環境情報を用いるのは、CPU負荷と送信データ量が変動する可能性が高い、つまり、他の環境情報(例えば、通信バス負荷)が一定であるためである。このため、通信バス負荷が一定である場合、本フローチャートを実行することになる。なお、本実施例での一定の考え方は、実施例1と同様である。 In this embodiment, the amount of transmitted data is used instead of the communication bus load information in step S203 as the selection of the data compression method in the first embodiment. That is, the data compression method (compression rate) and the transmission timing are determined by using the CPU load and the amount of transmission data as the environment information. Such environmental information is used because the CPU load and the amount of transmitted data are likely to fluctuate, that is, other environmental information (for example, the communication bus load) is constant. Therefore, when the communication bus load is constant, this flowchart is executed. In addition, a certain idea in this Example is the same as Example 1.

図5に、本実施例のフローチャートを示す。ステップS201およびS202は、図3に示すフローチャートと同様の処理を実行するため、その説明を省略する。 FIG. 5 shows a flowchart of this embodiment. Since steps S201 and S202 execute the same processing as the flowchart shown in FIG. 3, the description thereof will be omitted.

ステップS303において、ステップS203において、CPU40−1は、通信制御部46−1から送信データ量を取得する。これは、この周期における第2の通信バスで送信したデータ量を取得することになる。 In step S303, in step S203, the CPU 40-1 acquires the transmission data amount from the communication control unit 46-1. This will acquire the amount of data transmitted by the second communication bus in this cycle.

最後に、ステップS304において、データ圧縮方式と送信タイミングを決定する。この際、CPU40−1は、ROM42に格納された判定表(図6)に従い、ステップS201、S202およびS303で取得した送信側CPU負荷、受信側CPU負荷および送信データ量を用いる。 Finally, in step S304, the data compression method and the transmission timing are determined. At this time, the CPU 40-1 uses the transmission side CPU load, the reception side CPU load, and the transmission data amount acquired in steps S201, S202, and S303 according to the determination table (FIG. 6) stored in the ROM 42.

以下、図6に示す判定表を参照して、ステップS304の詳細を説明する。図6は、通信バス負荷が一定の場合におけるCPU負荷と送信データ量からデータ圧縮方式と送信タイミングを決定するための判定表である。 Hereinafter, the details of step S304 will be described with reference to the determination table shown in FIG. FIG. 6 is a determination table for determining the data compression method and the transmission timing from the CPU load and the amount of transmission data when the communication bus load is constant.

本判定表は、送信側CPU負荷と受信側CPU負荷を縦軸に、送信データ量を縦軸に取っている。つまり、送信側CPU負荷と受信側CPU負荷のセットと、送信データ量の組み合わせからなる環境情報と、データ圧縮方式と送信タイミングからなる通信制御方式が対応付けられている。 In this determination table, the transmission side CPU load and the reception side CPU load are on the vertical axis, and the transmission data amount is on the vertical axis. That is, the environment information including the set of the transmission side CPU load and the reception side CPU load, the combination of the transmission data amount, and the communication control method including the data compression method and the transmission timing are associated with each other.

このため、S304では、S201、S202で取得した送信側CPU負荷と受信側CPU負荷と、S303で取得した通信データ量の値が、それぞれ判定表のいずれに該当するか特定する。 Therefore, in S304, it is specified which of the determination table corresponds to the transmission side CPU load and the reception side CPU load acquired in S201 and S202, and the value of the communication data amount acquired in S303, respectively.

ここでは、例えば、CPU負荷が50%以上を「高」、それ未満を「低」とする。また、送信データ量の閾値を1メガバイト以上と設定している。 Here, for example, a CPU load of 50% or more is defined as “high”, and a CPU load of less than 50% is defined as “low”. In addition, the threshold value for the amount of transmitted data is set to 1 megabyte or more.

そこで、取得した送信側CPU負荷と受信側CPU負荷が「高」「低」のいずれであるかを判断する。また、S303で取得した送信データ量が「閾値以上」「閾値未満」のいいずれであるかを判断する。これら判断結果に対応する情報、つまり、データ圧縮方式と送信タイミングを判定表から特定する。 Therefore, it is determined whether the acquired transmission side CPU load or reception side CPU load is "high" or "low". Further, it is determined whether the amount of transmitted data acquired in S303 is "greater than or equal to the threshold value" or "less than or equal to the threshold value". The information corresponding to these judgment results, that is, the data compression method and the transmission timing are specified from the judgment table.

ここで、再度図8を参照する。図8は、送信データ量、圧縮時間、圧縮率、CPU負荷、伸長時間の相関関係を纏めたものである。図8によれば、データ量は圧縮時間に比例する。また、圧縮率、CPU負荷、圧縮時間は伸長時間と反比例する。 Here, reference is made to FIG. 8 again. FIG. 8 summarizes the correlation between the amount of transmitted data, the compression time, the compression rate, the CPU load, and the decompression time. According to FIG. 8, the amount of data is proportional to the compression time. The compression rate, CPU load, and compression time are inversely proportional to the decompression time.

このため、図8によれば、上述の(1)(2)に加え、以下のことが把握可能である。
(3)送信データ量が大きい(多い)ほど、新たなデータの送信に時間、負荷がかかるため、このため、送信データ量に応じて送信タイミングを制御することが望ましい。
Therefore, according to FIG. 8, in addition to the above-mentioned (1) and (2), the following can be grasped.
(3) The larger (larger) the amount of transmitted data, the longer it takes to transmit new data, and therefore it is desirable to control the transmission timing according to the amount of transmitted data.

これらを勘案し、図6の判定表は、以下の特定を有する。 In consideration of these, the judgment table of FIG. 6 has the following specifications.

送信データ量に関わらず、送信側、受信側CPU負荷双方が高い場合は、データ圧縮・送信処理を実施すると後発の周期処理に影響が出る可能性があるため、当該タイミングでの送信を見合わせる。そして、次回タイミングでデータの圧縮・送信処理を実施する。 なお、次回タイミングには、次回以降を含み、次々回タイミングなどでもよい。また、次回タイミングで再判断してもよい。 Regardless of the amount of data to be transmitted, if both the CPU load on the transmitting side and the CPU load on the receiving side are high, performing data compression / transmission processing may affect the subsequent periodic processing, so transmission at that timing is postponed. Then, the data compression / transmission process is performed at the next timing. In addition, the next timing may include the next and subsequent times, and may be the timing one after another. In addition, the judgment may be made again at the next timing.

送信データ量が閾値以上(例えば、1メガバイト以上)であり、送信側、受信側CPU負荷の一方が高い場合は、処理負荷が平準となるデータ圧縮方式を選択する。つまり、送信側CPU負荷が低い場合は、CPU40−1の負荷が低減するように比較的圧縮率が高い方式で圧縮する。逆に、受信側CPU負荷が高い場合は、CPU40−2の負荷が低減するように比較的圧縮率が高い方式で圧縮する。 If the amount of data to be transmitted is equal to or greater than the threshold value (for example, 1 megabyte or more) and one of the CPU load on the transmitting side and the receiving side is high, a data compression method in which the processing load is leveled is selected. That is, when the transmission side CPU load is low, compression is performed by a method having a relatively high compression rate so that the load on the CPU 40-1 is reduced. On the contrary, when the CPU load on the receiving side is high, compression is performed by a method having a relatively high compression rate so that the load on the CPU 40-2 is reduced.

送信データ量が閾値以上(例えば、1メガバイト以上)であり、送信側、受信側CPU負荷の双方が低い場合は、圧縮率を高くしても、低くしても、後発の周期処理には影響がないため、どのデータ圧縮方式を選択してもよい。 When the amount of transmitted data is equal to or greater than the threshold value (for example, 1 megabyte or more) and both the transmitting side and receiving side CPU loads are low, whether the compression rate is increased or decreased affects the subsequent periodic processing. Any data compression method may be selected because there is no data.

送信データ量が閾値未満(例えば、1メガバイト未満)であり、送信側、受信側CPU負荷の双方が高い状態以外の場合は、送信データ量が少なく、データ圧縮をしても効率が良くなるとは限らないため、データを圧縮せずに、データ送信を実施する。 When the amount of transmitted data is less than the threshold (for example, less than 1 megabyte) and the CPU load on both the transmitting side and the receiving side is not high, the amount of transmitted data is small and the efficiency is improved even if data compression is performed. Since it is not limited, data transmission is performed without compressing the data.

なお、本実施例においても、図5のフローチャートでS201およびS202により送信側、受信側CPU負荷双方が「高」の場合、ステップS203をスキップして、S204に進んでもよい。つまり、送信側、受信側CPU負荷双方が「高」の場合、送信データ量によらず次回タイミングで送信することと、その送信制御方式を特定する。 Also in this embodiment, if both the transmitting side and the receiving side CPU load are "high" according to S201 and S202 in the flowchart of FIG. 5, step S203 may be skipped and the process may proceed to S204. That is, when both the transmitting side and the receiving side CPU load are "high", the transmission is performed at the next timing regardless of the amount of transmission data, and the transmission control method is specified.

このように実施例2においても、送信側CPU負荷、受信側CPU負荷、送信データ量をチェックし、処理負荷が平準となる圧縮方式を選択することで、周期時間内に処理を完了ないし完了に近づけることができる。また、実施例1と同様に、周期時間内に処理を完了させるように、送信制御を行うことも本実施例に含まれる。 In this way, also in the second embodiment, the processing is completed or completed within the cycle time by checking the transmitting side CPU load, the receiving side CPU load, and the amount of transmitted data and selecting a compression method in which the processing load is leveled. You can get closer. Further, as in the first embodiment, the present embodiment also includes performing transmission control so as to complete the process within the cycle time.

実施例1では、受信CPU負荷を、実際に通知された値を使用しているが、通信バス1の故障等により、受信側CPU負荷を取得できない可能性もある。そこで、本実施例では、実施例1のステップS202の受信側CPU負荷の代わりに、送信側マイコン11が予測した受信側CPU負荷を用いる。 In the first embodiment, the value actually notified is used for the receiving CPU load, but there is a possibility that the receiving CPU load cannot be acquired due to a failure of the communication bus 1 or the like. Therefore, in this embodiment, the receiving side CPU load predicted by the transmitting side microcomputer 11 is used instead of the receiving side CPU load in step S202 of the first embodiment.

図7に、本実施例のフローチャートを示す。ここで、ステップS201、S202およびS204の説明は、実施例1と重複するため省略する。 FIG. 7 shows a flowchart of this embodiment. Here, the description of steps S201, S202, and S204 will be omitted because they overlap with those of the first embodiment.

ステップS402では、CPU40−1は、通信制御部46−1が予測した受信側CPU負荷を取得するか、もしくは自身で受信側CPU負荷を予測する。このために、CPU40−1は、一定回数(例えば、3回)受信側マイコン12から受信側CPU負荷を取得できないかを判断する。この判断を、CPU負荷要求を送信した回数を用いて実行してもよいし、取得タイミングの回数を用いて実行してもよい。この結果、取得できない場合、
直近3回分の受信側CPU負荷情報の平均値を含む代表値などを用いて、予測を行う。この予測には、受信側マイコン12以外のCPU負荷を用いて実行してもよいし、履歴データを用いて、過去の同時期の受信側CPU負荷を用いてもよい。
In step S402, the CPU 40-1 acquires the receiving side CPU load predicted by the communication control unit 46-1, or predicts the receiving side CPU load by itself. For this purpose, the CPU 40-1 determines whether or not the receiving side CPU load can be acquired from the receiving side microcomputer 12 a certain number of times (for example, three times). This determination may be executed using the number of times the CPU load request is transmitted, or may be executed using the number of times of acquisition timing. As a result, if you cannot get it
Prediction is performed using a representative value including the average value of the CPU load information on the receiving side for the last three times. This prediction may be executed by using a CPU load other than the receiving side microcomputer 12, or may use the historical data and use the receiving side CPU load of the same period in the past.

なお、本実施例は、取得できない場合に限定されない。例えば、受信側CPU負荷を取得できないかを判断を省略して予測を行ってもよい。さらに、本実施例は、実施例2の送信データ量を用いる場合にも適用可能である。 In addition, this embodiment is not limited to the case where it cannot be obtained. For example, the prediction may be made by omitting the judgment as to whether or not the receiving side CPU load can be acquired. Further, this embodiment can be applied to the case where the transmitted data amount of the second embodiment is used.

送信側CPU負荷、通信バス負荷をチェックし、受信側CPU負荷を予測し、処理負荷が平準となる圧縮方式を選択することで、周期時間内に処理を完了ないし完了に近づけることができる。逆に、周期時間内に処理を完了させるように、送信制御を行うことも本実施例にも含まれる。 By checking the CPU load on the transmitting side and the CPU load on the communication bus, predicting the CPU load on the receiving side, and selecting a compression method in which the processing load is leveled, the processing can be completed or approached within the cycle time. On the contrary, the transmission control is also included in this embodiment so that the processing is completed within the cycle time.

上述の各実施例においては、通信バス負荷もしくは送信データ量が一定であることを前提にした処理を示している。そこで、本実施例では、通信バス負荷もしくは送信データ量のいずれが一定であるかを判断し、その結果に応じて送信制御方式を特定する。以下、図10を用いて、その内容を説明する。 In each of the above-described embodiments, processing is shown on the premise that the communication bus load or the amount of transmitted data is constant. Therefore, in this embodiment, it is determined whether the communication bus load or the transmission data amount is constant, and the transmission control method is specified according to the result. Hereinafter, the contents will be described with reference to FIG.

まず、ステップS501において、CPU40−1は、送信タイミングであるかを判断する。これは、周期的に行っている送信の次周期かを判断する。この結果、送信タイミングであれば、ステップS502に進む。送信タイミングでなければ、元に戻る。なお、本ステップS501は省略し、ステップS502から開始してもよい。この場合、後述する図3や図5を開始する際、送信タイミングかを判断することが好適である。 First, in step S501, the CPU 40-1 determines whether the transmission timing is reached. This determines whether it is the next cycle of the periodic transmission. As a result, if it is the transmission timing, the process proceeds to step S502. If it is not the transmission timing, it returns to the original. The step S501 may be omitted and the step S502 may be started. In this case, it is preferable to determine the transmission timing when starting FIGS. 3 and 5, which will be described later.

次に、ステップS502において、CPU40−1は、通信バス負荷および送信データ量のいずれの変動が一定かを判断する。ここで、変動とは、上述のとおり、周期ごとの変動を示すものであり、特に1つ前の周期の通信バス負荷ないし送信データ量との差分が範囲内であるかを用いることが好適である。さらに、過去の一定回数の送信において、よりバラつきが小さい方を選択してもよい。この場合、バラつきとして、最小値と最大値の差が小さい、偏差がより少ないことを用いることが可能である。 Next, in step S502, the CPU 40-1 determines whether the fluctuation of the communication bus load or the amount of transmitted data is constant. Here, the fluctuation indicates the fluctuation for each cycle as described above, and it is particularly preferable to use whether the difference from the communication bus load or the amount of transmitted data in the previous cycle is within the range. is there. Further, it may be selected that the variation is smaller in the past fixed number of transmissions. In this case, it is possible to use that the difference between the minimum value and the maximum value is small and the deviation is small as the variation.

この結果、ステップS502で送信データ量が一定であると判断した場合は図3ないし7の処理へ進む。通信バス負荷が一定であると判断した場合は図5の処理へ進む。なお、図5の処理には、ステップS202の代わりにステップS402、つまり、受信側CPU負荷の予測を行うことも含まれる。さらに、図10の処理と、図3、5および7におけるステップS201およびS202(もしくはS402)の処理を並行処理してもよい。この場合、ステップS502以降の処理は、それぞれS203ないしS303へ進む。以上で、実施例4の説明を終了する。 As a result, if it is determined in step S502 that the amount of transmitted data is constant, the process proceeds to the processes of FIGS. 3 to 7. If it is determined that the communication bus load is constant, the process proceeds to FIG. Note that the process of FIG. 5 includes step S402 instead of step S202, that is, predicting the CPU load on the receiving side. Further, the process of FIG. 10 and the processes of steps S201 and S202 (or S402) in FIGS. 3, 5 and 7 may be processed in parallel. In this case, the processes after step S502 proceed to S203 to S303, respectively. This is the end of the description of Example 4.

以上の各実施例においては、環境情報として、CPU負荷と、送信データ量ないし通信バス負荷を用いているが、CPU負荷、送信データ量および通信バス負荷の少なくとも1つを用いる構成としてもよい。特に、これらのうち、いずれか1つを用いる場合、図4、6に相当する判定表の代わりに、環境情報と送信制御方式が1対1に対応付けられた情報を用いることになる。 In each of the above embodiments, the CPU load and the transmission data amount or the communication bus load are used as the environmental information, but at least one of the CPU load, the transmission data amount, and the communication bus load may be used. In particular, when any one of these is used, the information in which the environmental information and the transmission control method are associated with each other on a one-to-one basis is used instead of the determination table corresponding to FIGS.

この場合、CPU負荷、送信データ量および通信バス負荷のいずれの環境情報を用いるかの判断について、以下のとおり実行することが好適である。送信データ量ないし通信バス負荷のいずれを用いるか(いずれが一定か)の判断をCPU負荷についても行い、条件に従って判断する。条件には、上述したように、負荷が一定かを用いることが好適である。さらに、上記判断の処理を省略して各環境情報を用いてもよいし、ほかの環境情報を用いてもよい。 In this case, it is preferable to execute the determination of which environmental information to use, the CPU load, the amount of transmitted data, or the communication bus load, as follows. Whether to use the transmission data amount or the communication bus load (which is constant) is also determined for the CPU load, and the determination is made according to the conditions. As described above, it is preferable to use whether the load is constant. Further, each environmental information may be used by omitting the above-mentioned determination process, or other environmental information may be used.

また、各実施例では、2つのマイコン間通信を例にとったが、3つ以上のマイコンでもよく、全てのマイコンが同一である必要はない。また、データを通信する媒体を問わず(例えば、ECU間通信、コア間通信)でも各実施例を同様に利用できる。 Further, in each embodiment, communication between two microcomputers is taken as an example, but three or more microcomputers may be used, and not all microcomputers need to be the same. Further, each embodiment can be similarly used regardless of the medium for communicating data (for example, communication between ECUs and communication between cores).

なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることも可能である。また、各実施例の構成の一部について、他の構成の追加・削除・置換をすることが可能である。また、上記の各構成、機能、処理部、処理手順等は、それらの一部または全部を、例えば集積回路で設計する等によりハードウェアで実現してもよい。各機能を実現するプログラム、テーブル、ファイル等の情報は、メモリや、ハードディスク、SSD(Solid State Drive)等の記録装置、または、SDカード等の記録媒体に置くことができる。 The present invention is not limited to the above-described examples, and includes various modifications. For example, the above-described embodiment has been described in detail in order to explain the present invention in an easy-to-understand manner, and is not necessarily limited to the one including all the described configurations. Further, it is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. Further, it is possible to add / delete / replace a part of the configuration of each embodiment with another configuration. Further, each of the above configurations, functions, processing units, processing procedures, and the like may be realized by hardware by designing a part or all of them by, for example, an integrated circuit. Information such as programs, tables, and files that realize each function can be stored in a memory, a hard disk, a recording device such as an SSD (Solid State Drive), or a recording medium such as an SD card.

さらに、各実施例には、ECU10を含む自動車制御モジュールや自動車が含まれるほか、これらを用いた制御方法も含まれる。またさらに、ECU10の代わりに演算装置に各実施例を適用した場合、当該演算装置を含む情報装置(コンピュータ)やそれを含むしシステムも各実施例の範疇である。この場合、情報装置やシステムでの処理方法も各実施例の範疇に含まれる。 Further, each embodiment includes an automobile control module including the ECU 10 and an automobile, and also includes a control method using these. Furthermore, when each embodiment is applied to an arithmetic unit instead of the ECU 10, an information device (computer) including the arithmetic unit and a system including the arithmetic unit are also included in the category of each embodiment. In this case, the processing method in the information device or the system is also included in the category of each embodiment.

10…ECU
11…送信側マイコン11
12…受信側マイコン12
13…Switch
20…外部ネットワーク
30…第1の通信バス
31…第2の通信バス
40…CPU
41…RAM
42…ROM
43…CPU負荷算出部
44…圧縮伸長制御部
45…通信バス負荷算出部
46…通信制御部
10 ... ECU
11 ... Transmitter microcomputer 11
12 ... Receiving microcomputer 12
13 ... Switch
20 ... External network 30 ... First communication bus 31 ... Second communication bus 40 ... CPU
41 ... RAM
42 ... ROM
43 ... CPU load calculation unit 44 ... Compression / decompression control unit 45 ... Communication bus load calculation unit 46 ... Communication control unit

Claims (10)

所定の演算を実行する演算装置において、
複数のマイコンと、
前記複数のマイコン間を接続し、互いに異なる2種類の通信バスを有し、
前記2種類の通信バスは、それぞれ当該演算装置における負荷に関する環境情報を送受信する第1の通信バスおよび前記複数のマイコン間で演算すべきデータを送受信する第2の通信バスであり、
前記第1の通信バスで送信された環境情報を用いて、前記データを前記第2の通信バスで送信する際の送信制御方式を特定し、
特定された前記送信制御方式に従って送信制御を実行することを特徴とする演算装置。
In an arithmetic unit that executes a predetermined operation,
With multiple microcomputers
It connects between the plurality of microcomputers and has two types of communication buses that are different from each other.
The two types of communication buses are a first communication bus for transmitting and receiving environmental information regarding a load in the arithmetic unit and a second communication bus for transmitting and receiving data to be calculated between the plurality of microcomputers, respectively.
Using the environmental information transmitted by the first communication bus, the transmission control method when transmitting the data by the second communication bus is specified.
An arithmetic unit characterized in that transmission control is executed according to the specified transmission control method.
請求項1に記載の演算装置において、
前記環境情報と前記送信制御方式と対応関係を示す判定表を用いて、前記送信制御方式を特定することを特徴とする演算装置。
In the arithmetic unit according to claim 1,
An arithmetic unit characterized in that the transmission control method is specified by using a determination table showing a correspondence relationship between the environment information and the transmission control method.
請求項1または2のいずれかに記載の演算装置において、
前記送信制御方式として、前記データに対する圧縮率および送信タイミングの少なくとも一方を特定することを特徴とする演算装置。
In the arithmetic unit according to any one of claims 1 or 2.
As the transmission control method, an arithmetic unit characterized in that at least one of a compression rate and a transmission timing for the data is specified.
請求項1乃至3のいずれかに記載の演算装置において、
前記環境情報には、前記マイコンのCPU負荷、前記通信バスの通信バス負荷および送信データ量のうちいずれか1つが含まれることを特徴とする演算装置。
In the arithmetic unit according to any one of claims 1 to 3.
An arithmetic unit characterized in that the environmental information includes any one of the CPU load of the microcomputer, the communication bus load of the communication bus, and the amount of transmitted data.
請求項1乃至3のいずれかに記載の演算装置において、
前記環境情報には、前記マイコンのCPU負荷と、前記通信バスの通信バス負荷ないし送信データ量のうちいずれか一方が含まれることを特徴とする演算装置。
In the arithmetic unit according to any one of claims 1 to 3.
An arithmetic unit characterized in that the environmental information includes either the CPU load of the microcomputer and the communication bus load of the communication bus or the amount of transmitted data.
請求項5に記載の演算装置において、
前記通信バス負荷および前記送信データ量のいずれが一定かを判断し、
当該判断の結果、一定でない情報を前記環境情報として用いることを特徴とする演算装置。
In the arithmetic unit according to claim 5.
It is determined whether the communication bus load or the transmitted data amount is constant, and the result is determined.
As a result of the determination, an arithmetic unit characterized in that non-constant information is used as the environmental information.
請求項5または6のいずれか記載の演算装置において、
前記送信制御方式として、前記データに対する送信タイミングを特定し、
前記CPU負荷が、前記データを送信する第1のマイコンおよび前記データを受信する第2のマイコンのいずれでも予め定めた基準よりも高い場合には、前記データの送信を予め定められた送信タイミングより後の送信タイミングで送信することを特徴とする演算装置。
In the arithmetic unit according to any one of claims 5 or 6.
As the transmission control method, the transmission timing for the data is specified, and the transmission timing is specified.
When the CPU load is higher than a predetermined reference in both the first microcomputer for transmitting the data and the second microcomputer for receiving the data, the data is transmitted from the predetermined transmission timing. An arithmetic unit characterized by transmitting at a later transmission timing.
請求項7に記載の演算装置において、
前記送信制御方式として、前記データに対する圧縮率をさらに特定し、
前記通信バス負荷ないし前記送信データ量が予め定められた閾値との関係に従って、少なくとも圧縮率を特定することを特徴とする演算装置。
In the arithmetic unit according to claim 7.
As the transmission control method, the compression ratio for the data is further specified.
An arithmetic unit characterized in that at least the compression rate is specified according to the relationship between the communication bus load or the transmitted data amount and a predetermined threshold value.
請求項8に記載の演算装置において、
前記CPU負荷が、前記データを送信する第1のマイコンおよび前記データを受信する第2のマイコンのいずれか一方で、前記基準よりも高い場合に、前記圧縮率の特定を実行することを特徴とする演算装置。
In the arithmetic unit according to claim 8.
When the CPU load is higher than the reference by either the first microcomputer for transmitting the data or the second microcomputer for receiving the data, the compression ratio is specified. Arithmetic logic unit.
請求項1乃至9のいずれかに記載の演算装置において、
前記環境情報は、前記マイコンで予測される予測値を用いることを特徴とする演算装置。
In the arithmetic unit according to any one of claims 1 to 9.
An arithmetic unit characterized in that the environmental information uses a predicted value predicted by the microcomputer.
JP2019216543A 2019-11-29 2019-11-29 Arithmetic device Pending JP2021087170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019216543A JP2021087170A (en) 2019-11-29 2019-11-29 Arithmetic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019216543A JP2021087170A (en) 2019-11-29 2019-11-29 Arithmetic device

Publications (1)

Publication Number Publication Date
JP2021087170A true JP2021087170A (en) 2021-06-03

Family

ID=76085832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019216543A Pending JP2021087170A (en) 2019-11-29 2019-11-29 Arithmetic device

Country Status (1)

Country Link
JP (1) JP2021087170A (en)

Similar Documents

Publication Publication Date Title
US20160378570A1 (en) Techniques for Offloading Computational Tasks between Nodes
CN108173698B (en) Network service management method, device, server and storage medium
CN110196770B (en) Cloud system memory data processing method, device, equipment and storage medium
CN110933178B (en) Method for adjusting node configuration in cluster system and server
US20220137876A1 (en) Method and device for distributed data storage
CN109062739B (en) Scheduling server, load balancing method, system and readable storage medium
CN113254375A (en) Data transmission method and device, electronic equipment and storage medium
CN114401250A (en) Address allocation method and device
CN116149846A (en) Application performance optimization method and device, electronic equipment and storage medium
CN111538572A (en) Task processing method, device, scheduling server and medium
CN108599774B (en) Compression method, system, device and computer readable storage medium
CN113885794A (en) Data access method and device based on multi-cloud storage, computer equipment and medium
JP2021087170A (en) Arithmetic device
US10104571B1 (en) System for distributing data using a designated device
CN114173396B (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN114125941B (en) Data packetizing method and device, electronic equipment and storage medium
CN111556043B (en) Message processing method, device, system, equipment and readable storage medium
CN111857996B (en) Interrupt processing method, system, equipment and computer readable storage medium
CN104267803A (en) Information processing method and electronic equipment
US9742706B2 (en) Method for setting capacity of buffer
US11137934B2 (en) Memory block type processing method applicable to electronic device electronic device and non-transitory computer readable storage medium
US10177929B1 (en) System for distributing data to multiple devices
CN111147556A (en) Load balancing method, device, equipment and storage medium
US20180123953A1 (en) Virtual network switch system and method of constructing the same
CN112416253B (en) Storage area dynamic adjustment method and device based on distributed storage