JP2020068454A - Electronic control device - Google Patents
Electronic control device Download PDFInfo
- Publication number
- JP2020068454A JP2020068454A JP2018200015A JP2018200015A JP2020068454A JP 2020068454 A JP2020068454 A JP 2020068454A JP 2018200015 A JP2018200015 A JP 2018200015A JP 2018200015 A JP2018200015 A JP 2018200015A JP 2020068454 A JP2020068454 A JP 2020068454A
- Authority
- JP
- Japan
- Prior art keywords
- transmission data
- priority
- low
- transmission
- fifo memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40143—Bus networks involving priority mechanisms
- H04L12/4015—Bus networks involving priority mechanisms by scheduling the transmission of messages at the communication node
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/28—Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
- G06F13/30—Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal with priority control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
Abstract
Description
本発明は、電子制御装置に関する。 The present invention relates to an electronic control device.
従来より、通信バスを介して外部装置との間でデータ通信を行う電子制御装置が供されている。この種の電子制御装置に設けられているマイクロコンピュータ(以下、マイコンと称する)は、優先度が異なる複数の送信要求を処理する場合がある。例えば特許文献1には、優先度が異なる複数の送信要求に対し、同一の先入れ先出しメモリ(以下、FIFO(First In First Out)メモリと称する)を使用し、その優先度に応じて送信データを送信させる構成が開示されている。具体的には、先行する低優先の送信データの送信要求よりも高優先の送信データの送信要求が発生すると、送信処理を待機中の低優先の送信データを廃棄し、高優先の送信データの送信処理を優先して行い、高優先の送信データの送信処理を完了後に低優先の送信データの送信処理を行う。又、特許文献2には、優先度が異なる複数のFIFOメモリを用意し、送信データを送信要求の優先度に応じたFIFOメモリに格納し、高優先のFIFOメモリに格納された送信データから順番に送信データを送信させる構成が開示されている。
2. Description of the Related Art Conventionally, there has been provided an electronic control device that performs data communication with an external device via a communication bus. A microcomputer (hereinafter referred to as a microcomputer) provided in this type of electronic control device may process a plurality of transmission requests having different priorities. For example, in
しかしながら、特許文献1の構成では、送信処理を待機中の低優先の送信データを廃棄するので、その廃棄した低優先の送信データをRAMからFIFOメモリに再度転送させる必要があり、ソフトウェアのオーバヘッドが発生する問題がある。又、特許文献2の構成では、優先度が異なる複数のFIFOメモリを必要とするので、構成の複雑化やコスト高を招く問題がある。
However, in the configuration of
本発明は、上記した事情に鑑みてなされたものであり、その目的は、優先度が異なる複数の送信要求に対し、構成の複雑化やコスト高を招くことがなく、ソフトウェアのオーバヘッドの発生を回避しつつ、送信データを適切に送信させることができる電子制御装置を提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to prevent a software overhead from being generated for a plurality of transmission requests having different priorities without incurring a complicated configuration and a high cost. An object of the present invention is to provide an electronic control device capable of appropriately transmitting transmission data while avoiding it.
請求項1に記載した発明によれば、データ処理部(6,7)は、FIFOメモリ(10)に格納されている送信データの送信処理を行い、送信データを送信させる。バッファ(12)は、FIFOメモリに格納されている送信データを格納可能である。データ処理部は、低優先の送信データがFIFOメモリに格納されている状態で高優先の送信データの送信要求が発生すると、FIFOメモリに格納されている低優先の送信データをバッファに退避させ、高優先の送信データの送信処理を完了後に、バッファに退避させておいた低優先の送信データをFIFOメモリに復帰させる。
According to the invention described in
低優先の送信データがFIFOメモリに格納されている状態で高優先の送信データの送信要求が発生すると、FIFOメモリに格納されている低優先の送信データをバッファに退避させることで、低優先の送信データ廃棄することなく、高優先の送信データの送信処理を優先して行うようにした。そして、高優先の送信データの送信処理を完了後に、バッファに退避させておいた低優先の送信データをFIFOメモリに復帰させることで、低優先の送信データの送信処理を行うようにした。 When a transmission request for high-priority transmission data is generated while low-priority transmission data is stored in the FIFO memory, the low-priority transmission data stored in the FIFO memory is saved in the buffer, so that the low-priority transmission data is saved. The transmission process of high-priority transmission data is prioritized without discarding the transmission data. Then, after the transmission process of the high-priority transmission data is completed, the low-priority transmission data saved in the buffer is restored to the FIFO memory, so that the transmission process of the low-priority transmission data is performed.
優先度が異なる複数のFIFOメモリを必要とせず、構成の複雑化やコスト高を回避することができる。又、低優先の送信データを廃棄せず、低優先の送信データをRAMからFIFOメモリに再度転送させる必要もなく、ソフトウェアのオーバヘッドの発生を回避することができる。これにより、優先度が異なる複数の送信要求に対し、構成の複雑化やコスト高を招くことがなく、ソフトウェアのオーバヘッドの発生を回避しつつ、送信データを適切に送信させることができる。 It is not necessary to use a plurality of FIFO memories having different priorities, and it is possible to avoid complication of the configuration and high cost. Further, it is not necessary to discard the low-priority transmission data and transfer the low-priority transmission data from the RAM to the FIFO memory again, and it is possible to avoid the occurrence of software overhead. As a result, it is possible to appropriately transmit the transmission data with respect to a plurality of transmission requests having different priorities without causing the configuration to be complicated and increasing the cost and avoiding the occurrence of software overhead.
以下、本発明を、例えば自動車のエンジンを制御する電子制御装置に適用した一実施形態について図面を参照して説明する。電子制御装置は、例えばエンジン冷却水の温度を示すセンサ信号を水温センサから入力し、吸入空気の温度を示すセンサ信号を吸気温センサから入力し、アクセルの開度を示すセンサ信号をアクセル開度センサから入力し、スロットルバルブの開度を示すセンサ信号をスロットル開度センサから入力し、エンジンの回転数及び回転角を示すセンサ信号をエンジン回転角センサから入力することで、エンジンの動作状態を制御する。 An embodiment in which the present invention is applied to, for example, an electronic control device that controls an engine of an automobile will be described below with reference to the drawings. The electronic control unit inputs, for example, a sensor signal indicating a temperature of engine cooling water from a water temperature sensor, a sensor signal indicating a temperature of intake air from an intake temperature sensor, and a sensor signal indicating an opening degree of an accelerator to an accelerator opening degree. By inputting the sensor signal indicating the opening of the throttle valve from the sensor and the sensor signal indicating the engine speed and the rotation angle of the engine from the engine rotation angle sensor, the operating state of the engine can be determined. Control.
図1に示すように、電子制御装置1は、マイコン2と、データ送受信部3とを有し、通信バス4を介して外部装置5a,5bとの間でデータ通信を行い、外部装置5a,5bと連携して動作する。外部装置5a,5bは、他の電子制御装置やASIC(Application Specific Integrated Circuit)等であり、任意の個数である。マイコン2は、CPU(Central Processing Unit)6(データ処理部)と、DMA(Direct Memory Access)7(データ処理部)と、RAM(Random Access Memory)8と、通信制御部9とを有する。通信制御部9は、FIFOメモリ10と、送信用キュー11、バッファ12とを有する。
As shown in FIG. 1, the
CPU6及びDMA7は、それぞれRAM8、FIFOメモリ10、送信用キュー11、バッファ12にアクセスすることが可能である。RAM8には優先度が異なる複数の送信データが格納され、優先度が相対的に低い低優先の送信データと、優先度が相対的に高い高優先の送信データとが格納される。低優先の送信データは、緊急性が相対的に低く、所定周期で定期的に送信されれば良い性質のデータであり、例えばセンサにより取得されたセンサ値を通知するためのデータである。高優先の送信データは、緊急性が相対的に高く、送信要求の発生後に速やかに送信される必要がある性質のデータであり、例えば動作異常や動作停止命令を通知するためのデータである。
The CPU 6 and the
CPU6及びDMA7は、送信データの送信要求が発生すると、RAM8に格納されている送信データをFIFOメモリ10に転送させる。CPU6及びDMA7は、低優先の送信データの送信要求が発生した場合であれば、送信要求が発生したタイミングに拘らず、自己が保持する転送タイミングに追従し、低優先の送信データをRAM8からFIFOメモリ10に転送させる。即ち、CPU6及びDMA7は、低優先の送信データを非同期通信によりRAM8からFIFOメモリ10に転送させる。一方、CPU6及びDMA7は、高優先の送信データの送信要求が発生した場合であれば、自己が保持する転送タイミングに拘らず、送信要求が発生したタイミングに追従し、高優先の送信データをRAM8からFIFOメモリ10に転送させる。即ち、CPU6及びDMA7は、高優先の送信データを同期通信によりRAM8からFIFOメモリ10に転送させる。
When a transmission data transmission request is generated, the CPU 6 and the
CPU6及びDMA7は、送信用キュー11が空であるか否かを監視しており、送信用キュー11が空であると判定すると、FIFOメモリ10に格納されている送信データを送信用キュー11に転送させ、FIFOメモリ10に格納されている送信データの送信処理を行う。即ち、CPU6及びDMA7は、送信用キュー11が空であると判定する毎に、FIFOメモリ10に格納されている送信データを送信用キュー11に順次転送させ、FIFOメモリ10に格納されている送信データの送信処理を順次行う。
送信用キュー11に格納されたデータは、データ送受信部3に転送され、データ送受信部3から通信バス4を介して外部装置5a,5bに送信される。
The CPU 6 and the
The data stored in the
バッファ12は、FIFOメモリ10に格納されている送信データを一時的に格納可能である。CPU6及びDMA7は、FIFOメモリ10に格納されている送信データをバッファ12に転送させることで、FIFOメモリ10に格納されている送信データをバッファ12に退避させる。CPU6及びDMA7は、バッファ12に格納されている送信データをFIFOメモリ10に転送させることで、バッファ12に退避させておいた送信データをFIFOメモリ10に転送させて復帰させる。
The
次に、上記した構成の作用について図2から図6を参照して説明する。本実施形態では、CPU6が送信要求の監視処理を行う場合を説明するが、DMA7が送信要求の監視処理を行う場合も同様である。
Next, the operation of the above configuration will be described with reference to FIGS. 2 to 6. In the present embodiment, the case where the CPU 6 performs the transmission request monitoring process will be described, but the same applies when the
CPU6は、送信要求の監視処理の開始イベントが発生したと判定し、送信要求の監視処理を開始すると、送信要求が発生しているか否かを判定する(S1)。CPU6は、送信要求が発生していないと判定すると(S1:NO)、送信要求の監視処理を終了し、次回の送信要求の監視処理の開始イベントの発生を待機する。 When the CPU 6 determines that a start event of the transmission request monitoring process has occurred and starts the transmission request monitoring process, the CPU 6 determines whether a transmission request has occurred (S1). When the CPU 6 determines that the transmission request has not been generated (S1: NO), it terminates the transmission request monitoring process and waits for the next start event of the transmission request monitoring process.
CPU6は、送信要求が発生していると判定すると(S1:YES)、その発生している送信要求が高優先の送信データの送信要求であるか否かを判定する(S2)。CPU6は、その発生している送信要求が高優先の送信データの送信要求でなく、低優先の送信データの送信要求であると判定すると(S2:NO)、RAM8に格納されている低優先の送信データをFIFOメモリ10に転送させ(S3)、送信要求の監視処理を終了し、次回の送信要求の監視処理の開始イベントの発生を待機する。これ以降、CPU6は、送信用キュー11が空であると判定すると、FIFOメモリ10に格納されている低優先の送信データを送信用キュー11に転送させ、低優先の送信データの送信処理を行う。送信用キュー11に格納された低優先の送信データは、データ送受信部3に転送され、データ送受信部3から通信バス4を介して外部装置5a,5bに送信される。
When the CPU 6 determines that the transmission request is generated (S1: YES), the CPU 6 determines whether or not the generated transmission request is a transmission request for high-priority transmission data (S2). When the CPU 6 determines that the generated transmission request is not a transmission request for high-priority transmission data but a transmission request for low-priority transmission data (S2: NO), the low-priority transmission data stored in the
CPU6は、その発生している送信要求が高優先の送信データの送信要求であると判定すると(S2:YES)、FIFOメモリ10に低優先の送信データが格納されているか否かを判定する(S4)。CPU6は、FIFOメモリ10に低優先の送信データが格納されていないと判定すると(S4:NO)、RAM8に格納されている高優先の送信データをFIFOメモリ10に転送させ(S5)、送信要求の監視処理を終了し、次回の送信要求の監視処理の開始イベントの発生を待機する。これ以降、CPU6は、送信用キュー11が空であると判定すると、FIFOメモリ10に格納されている高優先の送信データを送信用キュー11に転送させ、高優先の送信データの送信処理を行う。送信用キュー11に格納された高優先の送信データは、データ送受信部3に転送され、データ送受信部3から通信バス4を介して外部装置5a,5bに送信される。
When the CPU 6 determines that the generated transmission request is a transmission request for high-priority transmission data (S2: YES), it determines whether or not low-priority transmission data is stored in the FIFO memory 10 ( S4). When the CPU 6 determines that the low-priority transmission data is not stored in the FIFO memory 10 (S4: NO), the high-priority transmission data stored in the
CPU6は、FIFOメモリ10に低優先の送信データが格納されていると判定すると(S4:YES)、そのFIFOメモリ10に格納されている低優先の送信データをバッファ12に転送させて退避させる(S6)。CPU6は、低優先の送信データのバッファ12への退避を完了すると、RAM8に格納されている高優先の送信データをFIFOメモリ10に転送させる(S7)。この場合も、これ以降、CPU6は、送信用キュー11が空であると判定すると、FIFOメモリ10に格納されている高優先の送信データを送信用キュー11に転送させ、高優先の送信データの送信処理を行う。送信用キュー11に格納された高優先の送信データは、データ送受信部3に転送され、データ送受信部3から通信バス4を介して外部装置5a,5bに送信される。
When determining that the low-priority transmission data is stored in the FIFO memory 10 (S4: YES), the CPU 6 transfers the low-priority transmission data stored in the
CPU6は、その高優先の送信データの送信完了を待機し(S8)、送信用キュー11が空になったと判定し、高優先の送信データの送信完了を判定すると(S8:YES)、送信要求が発生しているか否かを判定する(S9)。CPU6は、送信要求が発生していないと判定すると(S9:NO)、バッファ12に退避させておいた低優先の送信データをFIFOメモリ10に転送させて復帰させ(S10)、送信要求の監視処理を終了し、次回の送信要求の監視処理の開始イベントの発生を待機する。
The CPU 6 waits for the completion of the transmission of the high-priority transmission data (S8), determines that the
CPU6は、送信要求が発生していると判定すると(S9:YES)、その発生している送信要求が高優先の送信データの送信要求であるであるか否かを判定する(S11)。CPU6は、その発生している送信要求が高優先の送信データの送信要求でなく、低優先の送信データの送信要求であると判定すると(S11:NO)、この場合も、バッファ12に退避させておいた低優先の送信データをFIFOメモリ10に転送させて復帰させ(S10)、送信要求の監視処理を終了し、次回の送信要求の監視処理の開始イベントの発生を待機する。
When the CPU 6 determines that the transmission request is generated (S9: YES), the CPU 6 determines whether or not the generated transmission request is a transmission request for high-priority transmission data (S11). When the CPU 6 determines that the generated transmission request is not a transmission request for high-priority transmission data but a transmission request for low-priority transmission data (S11: NO), the CPU 6 also saves it in the
CPU6は、その発生している送信要求が高優先の送信データの送信要求であると判定すると(S11:YES)、上記したステップS7に戻り、ステップS7以降を繰り返して行う。 When the CPU 6 determines that the generated transmission request is a transmission request for high-priority transmission data (S11: YES), the CPU 6 returns to step S7 and repeats step S7 and subsequent steps.
CPU6は、以上に説明した処理を行うことで、通信制御部9の内部で送信データを以下のように処理する。尚、後述する図3から図6において、A[n(nは0,1,2,…)]は外部装置5aを送信先とする低優先の送信データであり、B[m(mは0,1,2,…)]は外部装置5bを送信先とする高優先の送信データであるとする。
By performing the processing described above, the CPU 6 processes the transmission data inside the
図3は、低優先の送信データがFIFOメモリ10に格納されている、即ち、低優先の送信データの送信処理を待機中に高優先の送信データの送信要求が発生した場合を示している。CPU6は、RAM8に低優先の送信データA[0],A[1],A[2]が格納されており、低優先の送信データA[0],A[1],A[2]の送信要求が発生すると(時刻1)、そのRAM8に格納されている低優先の送信データA[0],A[1],A[2]をFIFOメモリ10に順次転送させる(時刻2)。CPU6は、送信用キュー11が空になる毎に、FIFOメモリ10に格納されている低優先の送信データA[0],A[1],A[2]を送信用キュー11に順次転送させる。
FIG. 3 shows a case where low-priority transmission data is stored in the
ここで、CPU6は、低優先の送信データA[0]を送信用キュー11に転送させた後であり、次の低優先の送信データA[1]を送信用キュー11に転送させる前に、高優先の送信データB[0]の送信要求が発生すると(時刻3)、FIFOメモリ10に格納されている低優先の送信データA[1],A[2]をバッファ12に転送させて退避させ、高優先の送信データB[0]をFIFOメモリ10に転送させる(時刻4)。CPU6は、送信用キュー11が空であれば、FIFOメモリ10に転送させた高優先の送信データB[0]を送信用キュー11に転送させる(時刻5)。
Here, the CPU 6 transfers the low-priority transmission data A [0] to the
CPU6は、高優先の送信データB[0]を送信用キュー11に転送させ、高優先の送信データB[0]の送信処理を完了すると、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に転送させて復帰させる(時刻6)。これ以降、CPU6は、送信用キュー11が空になる毎に、FIFOメモリ10に復帰させた低優先の送信データA[1],A[2]を送信用キュー11に順次転送させる(時刻7)。
When the CPU 6 transfers the high-priority transmission data B [0] to the
このように、CPU6は、低優先の送信データA[1],A[2]がFIFOメモリ10に格納されている状態で高優先の送信データB[0]の送信要求が発生すると、FIFOメモリ10に格納されている低優先の送信データA[1],A[2]をバッファ12に退避させることで、低優先の送信データA[1],A[2]を廃棄することなく、高優先の送信データB[0]の送信処理を優先して行う。そして、CPU6は、高優先の送信データB[0]の送信処理を完了後に、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に復帰させることで、低優先の送信データA[1],A[2]の送信処理を行う。
As described above, when the CPU 6 issues a transmission request for high-priority transmission data B [0] while the low-priority transmission data A [1] and A [2] are stored in the
図4及び図5は、低優先の送信データをバッファ12に退避中に新たな高優先の送信データの送信要求が発生した場合を示している。CPU6は、時刻1から時刻4までは図3と同様の処理を行う。
FIG. 4 and FIG. 5 show a case where a new transmission request for high-priority transmission data is generated while saving low-priority transmission data in the
CPU6は、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に転送させて復帰させる前に、新たな高優先の送信データB[1]の送信要求が発生すると(時刻5)、低優先の送信データA[1],A[2]のバッファ12への退避を継続し、高優先の送信データB[1]をFIFOメモリ10に転送させる(時刻6)。CPU6は、送信用キュー11が空であれば、FIFOメモリ10に転送させた高優先の送信データB[1]を送信用キュー11に転送させる(時刻7)。
The CPU 6 transfers the new high-priority transmission data B [1] before transferring the low-priority transmission data A [1] and A [2] saved in the
CPU6は、高優先の送信データB[1]を送信用キュー11に転送させ、高優先の送信データB[1]の送信処理を完了すると、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に転送させて復帰させる(時刻8)。これ以降、CPU6は、送信用キュー11が空になる毎に、FIFOメモリ10に復帰させた低優先の送信データA[1],A[2]を送信用キュー11に順次転送させる(時刻9)。
When the CPU 6 transfers the high-priority transmission data B [1] to the
このように、CPU6は、低優先の送信データA[1],A[2]をバッファ12に退避させている状態で新たな高優先の送信データB[1]の送信要求が発生すると、低優先の送信データA[1],A[2]のバッファ12への退避を継続し、高優先の送信データB[1]の送信処理を優先して行う。そして、CPU6は、高優先の送信データB[1]の送信処理を完了後に、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に復帰させることで、低優先の送信データA[1],A[2]の送信処理を行う。
As described above, when the CPU 6 saves the low-priority transmission data A [1] and A [2] in the
図6は、低優先の送信データをバッファ12に退避中に低優先の送信データが更新され、新たな低優先の送信データの送信要求が発生した場合を示している。CPU6は、時刻1から時刻4までは図3と同様の処理を行う。
FIG. 6 shows a case where the low-priority transmission data is updated while the low-priority transmission data is being saved in the
CPU6は、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に転送させて復帰させる前に、低優先の送信データA[0],A[1],A[2]がそれぞれ低優先の送信データA[3],A[4],A[5]に更新され、新たな低優先の送信データ[3],A[4],A[5]の送信要求が発生すると(時刻5)、そのRAM8に格納されている低優先の送信データA[3],A[4],A[5]をFIFOメモリ10に順次転送させる前に、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に転送させて復帰させる(時刻6)。
The CPU 6 transfers the low-priority transmission data A [1], A [2] saved in the
その後、CPU6は、RAM8に格納されている低優先の送信データA[3],A[4],A[5]をFIFOメモリ10に順次転送させる。これ以降、CPU6は、送信用キュー11が空になる毎に、FIFOメモリ10に復帰させた低優先の送信データA[1],A[2],A[3],A[4],A[5]を送信用キュー11に順次転送させる(時刻7)。
After that, the CPU 6 sequentially transfers the low-priority transmission data A [3], A [4], A [5] stored in the
このように、CPU6は、低優先の送信データA[1],A[2]をバッファ12に退避させている状態で低優先の送信データA[0],A[1],A[2]がそれぞれ低優先の送信データA[3],A[4],A[5]に更新され、新たな低優先の送信データA[3],A[4],A[5]の送信要求が発生すると、新たな低優先の送信データA[3],A[4],A[5]をFIFOメモリ10に転送させるよりも先に、バッファ12に退避させておいた低優先の送信データA[1],A[2]をFIFOメモリ10に復帰させ、低優先の送信データA[1],A[2],[3],A[4],A[5]の送信処理を行う。
In this way, the CPU 6 saves the low-priority transmission data A [1], A [2] in the
以上に説明したように本実施形態によれば、次に示す効果を得ることができる。
電子制御装置1において、低優先の送信データがFIFOメモリ10に格納されている状態で高優先の送信データの送信要求が発生すると、FIFOメモリ10に格納されている低優先の送信データをバッファ12に退避させることで、高優先の送信データの送信処理を優先して行うようにした。そして、高優先の送信データの送信処理を完了後に、バッファ12に退避させておいた低優先の送信データをFIFOメモリ10に復帰させることで、低優先の送信データの送信処理を行うようにした。
As described above, according to this embodiment, the following effects can be obtained.
In the
優先度が異なる複数のFIFOメモリを必要とせず、構成の複雑化やコスト高を回避することができる。又、低優先の送信データを廃棄せず、低優先の送信データをRAM8からFIFOメモリ10に再度転送させる必要もなく、ソフトウェアのオーバヘッドの発生を回避することができる。これにより、優先度が異なる複数の送信要求に対し、構成の複雑化やコスト高を招くことがなく、ソフトウェアのオーバヘッドの発生を回避しつつ、送信データを適切に送信させることができる。
It is not necessary to use a plurality of FIFO memories having different priorities, and it is possible to avoid complication of the configuration and high cost. Further, it is not necessary to discard the low-priority transmission data and to transfer the low-priority transmission data from the
又、電子制御装置1において、低優先の送信データをバッファ12に退避させている状態で新たな高優先の送信データの送信要求が発生すると、その新たな高優先の送信データの送信処理を完了後に、バッファ12に退避させておいた低優先の送信データをFIFOメモリ10に復帰させるようにした。高優先の送信データの送信要求が連続して発生する場合でも、ソフトウェアのオーバヘッドの発生を回避しつつ、送信データを適切に送信させることができる。
Further, in the
又、電子制御装置1において、低優先の送信データをバッファ12に退避させている状態で新たな低優先の送信データの送信要求が発生すると、その新たな低優先の送信データをFIFOメモリ10に格納するよりも先に、バッファ12に退避させておいた低優先の送信データをFIFOメモリ10に復帰させるようにした。低優先の送信データが更新された場合でも、更新前の低優先の送信データの送信抜けが発生することなく、送信データを適切に送信させることができる。
Further, in the
又、電子制御装置1において、低優先の送信データの送信処理を非同期処理で行い、高優先の送信データの送信処理を同期処理で行うようにした。高優先の送信データの送信処理を速やかに行うことができ、その後、中断した位置から低優先の送信データの送信処理を適切に再開することができる。
Further, in the
本開示は、実施例に準拠して記述されたが、当該実施例や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、更には、それらに一要素のみ、それ以上、或いはそれ以下を含む他の組み合わせや形態をも、本開示の範疇や思想範囲に入るものである。 Although the present disclosure has been described with reference to exemplary embodiments, it is understood that the disclosure is not limited to those exemplary embodiments and structures. The present disclosure also includes various modifications and modifications within an equivalent range. In addition, various combinations and forms, and other combinations and forms including only one element, more, or less than those, are also within the scope and spirit of the present disclosure.
自動車のエンジンを制御する電子制御装置に限らず、例えばトランスミッション等の別の機器を制御する電子制御装置に適用しても良い。又、車載の電子制御装置に限らず、車載以外の用途の電子制御装置に適用しても良い。
バッファ12の容量は、低優先の送信データの送信要求の発生頻度や高優先の送信データの送信要求の発生頻度に応じて決定すれば良い。即ち、低優先の送信データの送信要求の発生頻度及び高優先の送信データの送信要求の発生頻度が両方とも相対的に高ければ、低優先の送信データをバッファ12に退避させる機会が相対的に多くなるので、バッファ12の容量を相対的に大きくすれば良い。一方、低優先の送信データの送信要求の発生頻度及び高優先の送信データの送信要求の発生頻度のうち少なくとも何れかが相対的に低ければ、低優先の送信データをバッファ12に退避させる機会が相対的に少なくなるので、バッファ12の容量を相対的に小さくすれば良い。
The invention may be applied not only to the electronic control device that controls the engine of the automobile but also to an electronic control device that controls another device such as a transmission. Further, the electronic control device is not limited to the in-vehicle electronic control device, and may be applied to an electronic control device for purposes other than in-vehicle use.
The capacity of the
図面中、1は電子制御装置、6はCPU(データ処理部)、7はDMA(データ処理部)、10はFIFOメモリ、12はバッファである。 In the drawing, 1 is an electronic control device, 6 is a CPU (data processing unit), 7 is a DMA (data processing unit), 10 is a FIFO memory, and 12 is a buffer.
Claims (5)
前記FIFOメモリに格納されている送信データの送信処理を行うデータ処理部(6,7)と、
前記FIFOメモリに格納されている送信データを格納可能なバッファ(12)と、を備え、
前記データ処理部は、低優先の送信データが前記FIFOメモリに格納されている状態で高優先の送信データの送信要求が発生すると、前記FIFOメモリに格納されている低優先の送信データを前記バッファに退避させ、高優先の送信データの送信処理を完了後に、前記バッファに退避させておいた低優先の送信データを前記FIFOメモリに復帰させる電子制御装置。 A FIFO memory (10) for storing transmission data,
A data processing unit (6, 7) for performing transmission processing of transmission data stored in the FIFO memory,
A buffer (12) capable of storing transmission data stored in the FIFO memory,
When a request for transmission of high-priority transmission data is generated while low-priority transmission data is stored in the FIFO memory, the data processing unit buffers the low-priority transmission data stored in the FIFO memory. An electronic control unit that restores the low-priority transmission data saved in the buffer to the FIFO memory after the transmission processing of the high-priority transmission data is completed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018200015A JP2020068454A (en) | 2018-10-24 | 2018-10-24 | Electronic control device |
DE102019212463.1A DE102019212463A1 (en) | 2018-10-24 | 2019-08-21 | Electronic control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018200015A JP2020068454A (en) | 2018-10-24 | 2018-10-24 | Electronic control device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2020068454A true JP2020068454A (en) | 2020-04-30 |
Family
ID=70388662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018200015A Pending JP2020068454A (en) | 2018-10-24 | 2018-10-24 | Electronic control device |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2020068454A (en) |
DE (1) | DE102019212463A1 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS54102818A (en) * | 1978-01-30 | 1979-08-13 | Nippon Telegr & Teleph Corp <Ntt> | Data frame transmission system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3230339B2 (en) | 1993-05-25 | 2001-11-19 | ヤマハ株式会社 | Communication control device |
JP4457306B2 (en) | 2005-03-30 | 2010-04-28 | 株式会社デンソー | Automotive control unit |
-
2018
- 2018-10-24 JP JP2018200015A patent/JP2020068454A/en active Pending
-
2019
- 2019-08-21 DE DE102019212463.1A patent/DE102019212463A1/en not_active Withdrawn
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS54102818A (en) * | 1978-01-30 | 1979-08-13 | Nippon Telegr & Teleph Corp <Ntt> | Data frame transmission system |
Also Published As
Publication number | Publication date |
---|---|
DE102019212463A1 (en) | 2020-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5557744A (en) | Multiprocessor system including a transfer queue and an interrupt processing unit for controlling data transfer between a plurality of processors | |
US10871992B2 (en) | Level two first-in-first-out transmission | |
JP5829890B2 (en) | Semiconductor data processing apparatus, time trigger communication system, and communication system | |
EP1750202A1 (en) | Combining packets for a packetized bus | |
WO2007146479A2 (en) | Data communication flow control device and methods thereof | |
US7617389B2 (en) | Event notifying method, event notifying device and processor system permitting inconsistent state of a counter managing number of non-notified events | |
JP2006191337A (en) | Gateway device for transferring message between buses and network system using the device | |
US8761190B2 (en) | Message loss prevention by using sender and receiver buffers in event-triggered distributed embedded real-time systems | |
JPH07210519A (en) | Data transfer control method and transmission/reception controller | |
JP2020068454A (en) | Electronic control device | |
US7949813B2 (en) | Method and system for processing status blocks in a CPU based on index values and interrupt mapping | |
JP3713977B2 (en) | Real-time distributed system | |
JP4457407B2 (en) | Gateway device | |
JP4361540B2 (en) | Gateway device, data transfer method, and program | |
JP2004252574A (en) | Inter-task communication method, program, recording medium and electronic equipment | |
US20200264922A1 (en) | Task management apparatus | |
US10579555B2 (en) | Electronic control unit and data transmission method | |
JP2833307B2 (en) | Timer control method in communication control system | |
JPH1049344A (en) | Buffer busy control system | |
JP7226169B2 (en) | electronic controller | |
US20220269546A1 (en) | Control device, method, program, and vehicle | |
JPH10320350A (en) | Remote pio control system | |
CN116821039A (en) | Application communication system, method, device and readable storage medium for multi-core SOC | |
JPH03208131A (en) | Task control system for operating system | |
JPH06334705A (en) | Communication controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210413 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20211222 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220111 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220228 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20220621 |