JP5892391B2 - Communication control method - Google Patents

Communication control method Download PDF

Info

Publication number
JP5892391B2
JP5892391B2 JP2013254110A JP2013254110A JP5892391B2 JP 5892391 B2 JP5892391 B2 JP 5892391B2 JP 2013254110 A JP2013254110 A JP 2013254110A JP 2013254110 A JP2013254110 A JP 2013254110A JP 5892391 B2 JP5892391 B2 JP 5892391B2
Authority
JP
Japan
Prior art keywords
module
modules
bus
reception
initialization process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013254110A
Other languages
Japanese (ja)
Other versions
JP2015115640A (en
Inventor
文貴 溝下
文貴 溝下
英敏 小林
英敏 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2013254110A priority Critical patent/JP5892391B2/en
Priority to DE102014117616.2A priority patent/DE102014117616A1/en
Publication of JP2015115640A publication Critical patent/JP2015115640A/en
Application granted granted Critical
Publication of JP5892391B2 publication Critical patent/JP5892391B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Description

本発明は、電子制御装置において実施される通信制御方法に関する。   The present invention relates to a communication control method implemented in an electronic control device.

従来、車両に搭載された電子制御装置(ECU)において、1つの電子制御装置の内部に同一の通信バスに接続される複数のCANコントローラを有し、CAN通信を行うものが知られている。例えば、特許文献1に記載の電子制御装置は、通常モードの唯一のCANコントローラと、受信専用モードの1つ以上のCANコントローラとを有し、装置内でACKを送受信することを防止している。   Conventionally, an electronic control unit (ECU) mounted on a vehicle has a plurality of CAN controllers connected to the same communication bus inside one electronic control unit, and performs CAN communication. For example, the electronic control device described in Patent Document 1 has a single CAN controller in a normal mode and one or more CAN controllers in a reception-only mode, and prevents transmission / reception of ACK in the device. .

特開2011−131713号公報JP 2011-131713 A

特許文献1の電子制御装置は、例えばバスに断線等の異常が発生したとき、装置内部でACKを返信し合うことによってバス異常を検出できなくなるという事態を回避しようとするものである。しかし、受信専用モードのCANコントローラはACKを送信することができず、ACK受信を利用したバス異常の検出が機能しないという新たな問題が発生する。特許文献1には、このようなバス異常時の問題について何ら言及されていない。   The electronic control device disclosed in Patent Document 1 intends to avoid a situation in which a bus abnormality cannot be detected by returning ACKs within the apparatus when an abnormality such as disconnection occurs in the bus. However, the CAN controller in the reception-only mode cannot transmit ACK, and a new problem arises that detection of bus abnormality using ACK reception does not function. Patent Document 1 makes no mention of such a problem when the bus is abnormal.

本発明は、このような点に鑑みて創作されたものであり、その目的は、通常モードに設定された唯一のCANモジュール(特許文献1の「CANコントローラ」に相当する)、及び、受信専用モードに設定された1つ以上のCANモジュールを有する電子制御装置において、バス異常発生時に適切な処理を実施する通信制御方法を提供することにある。   The present invention was created in view of the above points, and its purpose is the only CAN module set in the normal mode (corresponding to the “CAN controller” in Patent Document 1), and reception only. An electronic control device having one or more CAN modules set in a mode is to provide a communication control method for performing appropriate processing when a bus abnormality occurs.

本発明の通信制御方法は、CAN通信用の同一のバスに接続されたCANモジュールA及びCANモジュールBであって、送受信可能な通常モードに設定された唯一のCANモジュールA、及び、受信専用モードに設定された1つ以上のCANモジュールBを有するマイコンと、CANモジュールA及びCANモジュールBとバスとを接続するCANトランシーバとを備える電子制御装置において実施される方法である。
この通信制御方法は、バスに異常が発生したとき、CANモジュールAが検出した情報に基づいてバスの異常を判定し、その後、すべてのCANモジュールA及びCANモジュールBを初期化するCAN初期化処理を実施することを特徴とする。
The communication control method of the present invention includes a CAN module A and a CAN module B connected to the same bus for CAN communication, the only CAN module A set in a normal mode capable of transmission and reception, and a reception-only mode. This is a method implemented in an electronic control device including a microcomputer having one or more CAN modules B set to, and a CAN transceiver that connects the CAN module A and the CAN module B to a bus.
In this communication control method, when an abnormality occurs in the bus, the CAN initialization process for determining an abnormality in the bus based on information detected by the CAN module A and then initializing all the CAN modules A and CAN modules B. It is characterized by implementing.

本発明では、バス異常発生時、通常モードのCANモジュールAがバス異常を検出することで、バス異常を判定することができる。また、その後のCAN初期化処理において、すべてのCANモジュールの初期化処理の同期を取ることで、複数のCANモジュールを「一体化した単一のCANモジュール」として制御することができる。   In the present invention, when the bus abnormality occurs, the CAN module A in the normal mode can detect the bus abnormality by detecting the bus abnormality. Further, in the subsequent CAN initialization process, by synchronizing the initialization processes of all the CAN modules, a plurality of CAN modules can be controlled as “integrated single CAN module”.

また、CAN初期化処理において、同一のバスに接続するすべてのCANモジュールA及びCANモジュールBの初期化処理が正常完了したとき、CAN通信を開始することが好ましい。CAN通信では、CANモジュールAの受信処理とCANモジュールBの受信処理とを順不同に実施した後、最後にCANモジュールAの送信処理を実施する。
送受信処理前にすべてのCANモジュールの異常検出をすることで、複数のCANモジュールを「一体化した単一のCANモジュール」として制御することができる。
Further, in the CAN initialization process, it is preferable to start the CAN communication when the initialization processes of all the CAN modules A and CAN modules B connected to the same bus are normally completed. In CAN communication, the CAN module A reception process and the CAN module B reception process are performed in random order, and finally the CAN module A transmission process is performed.
By detecting the abnormality of all the CAN modules before the transmission / reception process, a plurality of CAN modules can be controlled as “integrated single CAN module”.

さらにこの場合、CAN初期化処理において、CANモジュールAの初期化処理を優先して実施した後、CANモジュールBの初期化処理を実施することが好ましい。
主となる通常モードのCANモジュールAが正常に動作するまで、副となる受信専用モードのCANモジュールBを動作させないようにすることで、一体化制御の不整合を防止することができる。
Further, in this case, in the CAN initialization process, it is preferable to perform the initialization process of the CAN module B after the CAN module A is prioritized.
By not operating the CAN module B in the reception-only mode, which is the sub, until the main CAN module A in the main mode is operating normally, it is possible to prevent inconsistencies in the integrated control.

本発明の実施形態による電子制御装置のシステム概略図。1 is a system schematic diagram of an electronic control device according to an embodiment of the present invention. 本発明の実施形態による電子制御装置が適用される電動パワーステアリング装置の概略構成図。1 is a schematic configuration diagram of an electric power steering device to which an electronic control device according to an embodiment of the present invention is applied. 本発明の実施形態による「通信制御処理」のメインフローチャート。The main flowchart of the "communication control process" by embodiment of this invention. 図3中の「CAN初期化処理」の第1実施形態のサブフローチャート。4 is a sub-flowchart of the first embodiment of “CAN initialization process” in FIG. 3. 図3中の「CAN初期化処理」の第2実施形態のサブフローチャート。FIG. 6 is a sub-flowchart of a second embodiment of “CAN initialization process” in FIG. 3. 図4、図5中の「CANモジュールの初期化処理」のサブフローチャート。FIG. 6 is a sub-flowchart of “CAN module initialization process” in FIGS. 4 and 5; 図3中の「CANモジュールの受信処理」のサブフローチャート。FIG. 4 is a sub-flowchart of “CAN module reception processing” in FIG. 3; 図3中の「CANモジュールの送信処理」のサブフローチャート。FIG. 4 is a sub-flowchart of “CAN module transmission processing” in FIG. 3.

以下、本発明による通信制御方法を実施する電子制御装置の実施形態について、図面に基づいて説明する。
本発明の実施形態の電子制御装置(以下「ECU」という)は、車両に搭載され、操舵トルクをアシストする電動パワーステアリング装置を制御するために用いられる。最初に図2を参照して電動パワーステアリング装置の全体構成を説明する。
DESCRIPTION OF EMBODIMENTS Hereinafter, an embodiment of an electronic control device that implements a communication control method according to the present invention will be described with reference to the drawings.
An electronic control device (hereinafter referred to as “ECU”) according to an embodiment of the present invention is mounted on a vehicle and used to control an electric power steering device that assists steering torque. First, the overall configuration of the electric power steering apparatus will be described with reference to FIG.

電動パワーステアリング装置1は、ステアリングシステム90において、ステアリングシャフト92に設置され、操舵トルクを検出するトルクセンサ94を有している。ステアリングシャフト92の先端にはピニオンギア96が設けられており、ピニオンギア96はラック軸97に噛み合っている。ラック軸97の両端には、タイロッド等を介して一対の車輪98が回転可能に連結されている。   The electric power steering apparatus 1 includes a torque sensor 94 that is installed on a steering shaft 92 and detects a steering torque in the steering system 90. A pinion gear 96 is provided at the tip of the steering shaft 92, and the pinion gear 96 meshes with the rack shaft 97. A pair of wheels 98 are rotatably connected to both ends of the rack shaft 97 via tie rods or the like.

運転者がハンドル91を操作すると、ハンドル91に接続されたステアリングシャフト92が回転し、ステアリングシャフト92の回転運動は、ピニオンギア96によってラック軸97の直線運動に変換され、ラック軸97の直線運動変位に応じた角度について一対の車輪98が操舵される。   When the driver operates the handle 91, the steering shaft 92 connected to the handle 91 rotates, and the rotational motion of the steering shaft 92 is converted into the linear motion of the rack shaft 97 by the pinion gear 96. The pair of wheels 98 are steered at an angle corresponding to the displacement.

電動パワーステアリング装置1は、操舵アシストトルクを発生するモータ80、モータ80の回転を減速してステアリングシャフト92に伝える減速ギア89、及び、モータ駆動装置2を含む。モータ80は3相ブラシレスモータであり、減速ギア89を正逆回転させる。モータ駆動装置2は、制御装置であるECU10、モータ80の回転角を検出する回転角センサ85、上述のトルクセンサ94、車速を検出する車速センサ95等を含む。
この構成により、電動パワーステアリング装置1は、ハンドル91の操舵を補助するための操舵アシストトルクを発生し、ステアリングシャフト92に伝達する。
The electric power steering apparatus 1 includes a motor 80 that generates steering assist torque, a reduction gear 89 that reduces the rotation of the motor 80 and transmits the rotation to the steering shaft 92, and the motor driving apparatus 2. The motor 80 is a three-phase brushless motor, and rotates the reduction gear 89 forward and backward. The motor drive device 2 includes an ECU 10 that is a control device, a rotation angle sensor 85 that detects a rotation angle of the motor 80, the above-described torque sensor 94, a vehicle speed sensor 95 that detects a vehicle speed, and the like.
With this configuration, the electric power steering apparatus 1 generates a steering assist torque for assisting the steering of the handle 91 and transmits the steering assist torque to the steering shaft 92.

次に、図1のシステム概略図を参照し、ECU10の構成について説明する。
ECU10は、他の車載機器を制御するECUと共にCAN通信用のバス18に接続され、バス18を経由して他のECUとCANプロトコルによるデータ通信を行うことにより、制御に用いるデータを交換する。なお、バス18は、CANプロトコルで使用されるCAN−Hライン及びCAN−Lラインからなる2線式通信ラインにて構成されている。
Next, the configuration of the ECU 10 will be described with reference to the system schematic diagram of FIG.
The ECU 10 is connected to a CAN communication bus 18 together with an ECU that controls other in-vehicle devices, and exchanges data used for control by performing data communication with other ECUs via the bus 18 using the CAN protocol. The bus 18 is constituted by a two-wire communication line including a CAN-H line and a CAN-L line used in the CAN protocol.

ECU10は、マイコン11及びCANトランシーバ17を備えている。
マイコン11は、プログラムを実行するCPU(中央演算処理装置)12、CPU12による演算結果等を記憶するRAM13、CPU12によって実行されるプログラムを格納するROM14、CAN通信用のコントローラであるCANモジュールA15及びCANモジュールB16等を内蔵している。RAM13及びROM14はCPU12と相互に通信可能に接続されており、また、CANモジュールA15及びCANモジュールB16もCPU12と相互に通信可能に接続されている。
The ECU 10 includes a microcomputer 11 and a CAN transceiver 17.
The microcomputer 11 includes a CPU (central processing unit) 12 that executes programs, a RAM 13 that stores calculation results and the like by the CPU 12, a ROM 14 that stores programs executed by the CPU 12, a CAN module A15 that is a controller for CAN communication, and a CAN Module B16 and the like are incorporated. The RAM 13 and the ROM 14 are connected to the CPU 12 so that they can communicate with each other. The CAN module A15 and the CAN module B16 are also connected to the CPU 12 so that they can communicate with each other.

CANモジュールA15は、CAN通信の送受信可能な通常モードに設定されており、データ受信時に確認応答としてACKを返信する。一方、CANモジュールB16は、データ受信時にACKを返信しない受信専用モードに設定されている。この構成は特許文献1に記載された構成と同様であり、マイコン11内部で送受信のペアが成立することによって2つのCANモジュールがACKを返信し合うことを防止する。   The CAN module A15 is set in a normal mode in which CAN communication can be transmitted and received, and returns ACK as a confirmation response when data is received. On the other hand, the CAN module B16 is set to a reception-only mode in which ACK is not returned when data is received. This configuration is the same as the configuration described in Patent Document 1, and prevents the two CAN modules from returning ACKs by establishing a transmission / reception pair within the microcomputer 11.

CANモジュールA15は、1つのマイコン11について唯一の「主となるCANモジュール」である。一方、副となるCANモジュールB16は、図1ではマイコン11に1つ設けられる例を示しているが、マイコン11に2つ以上設けられる構成としてもよい。
以下の説明でCANモジュールA15とCANモジュールB16とを区別しないとき、まとめて「CANモジュール15、16」と記載する。
The CAN module A15 is the only “main CAN module” for one microcomputer 11. On the other hand, an example in which one CAN module B16 is provided in the microcomputer 11 in FIG. 1 is shown, but two or more CAN modules B16 may be provided in the microcomputer 11.
In the following description, when CAN module A15 and CAN module B16 are not distinguished, they are collectively described as “CAN modules 15 and 16”.

CANモジュール15、16は、送信用端子Txと受信用端子Rxとを有しており、各送信用端子Tx及び受信用端子Rxは、CANトランシーバ17に接続されている。CANトランシーバ17は、バス18に接続され、バス18に対して信号を入出力する。こうして、CANモジュールA15及びCANモジュールB16は、CANトランシーバ17を介して、同一のバス18に接続されている。   The CAN modules 15 and 16 each have a transmission terminal Tx and a reception terminal Rx, and each transmission terminal Tx and reception terminal Rx are connected to a CAN transceiver 17. The CAN transceiver 17 is connected to the bus 18 and inputs / outputs signals to / from the bus 18. Thus, the CAN module A15 and the CAN module B16 are connected to the same bus 18 via the CAN transceiver 17.

CANモジュール15、16は、それぞれ32個のメッセージフレーム送受信用バッファのメールボックスを有しており、この数によって1つのCANモジュールで送受信可能なメッセージ数が制限される。そこで、上記の構成により、マイコン11内部でのACKの送受信を防止しつつ2つのCANモジュール15、16を結合することで、受信可能なメッセージ数を64メッセージに増加させることができる。また、CANモジュールB16を2つ以上設けることで、受信可能なメッセージ数をさらに増加させることができる。   Each of the CAN modules 15 and 16 has 32 message frame transmission / reception buffer mailboxes, and this number limits the number of messages that can be transmitted and received by one CAN module. Thus, with the above configuration, the number of receivable messages can be increased to 64 messages by combining the two CAN modules 15 and 16 while preventing the transmission and reception of ACK within the microcomputer 11. Moreover, the number of receivable messages can be further increased by providing two or more CAN modules B16.

ところで、CAN通信用のバス18に異常が生じる場合が考えられる。例えば、過剰なデータや送信側と受信側との設定速度の不一致等による通信障害や断線等の異常である。従来技術である特許文献1には、このようなバス異常発生時の処理について何ら言及されていない。そこで、本発明の通信制御方法は、バス異常発生時にECU10が実行する独創的な処理を特徴とするものである。   Incidentally, there may be a case where an abnormality occurs in the CAN communication bus 18. For example, there is an abnormality such as communication failure or disconnection due to excessive data or a mismatch in setting speed between the transmission side and the reception side. Japanese Patent Application Laid-Open No. H10-228667, which is a conventional technology, does not mention any processing when such a bus abnormality occurs. Therefore, the communication control method of the present invention is characterized by an original process executed by the ECU 10 when a bus abnormality occurs.

次に、ECU10が実行する通信制御処理について、図3〜図8のフローチャートを参照して説明する。図3は、通信制御処理全体のメインフローチャートであり、図4〜図8は、図3中のステップを詳しく記述したサブフローチャートである。
そのうち、「CAN初期化処理」の2通りの実施形態を図4及び図5に示し、「CANモジュールの受信処理及び送信処理」をそれぞれ図7、図8に示す。また、図4及び図5の「CAN初期化処理」中の「CANモジュールの初期化処理」ステップの詳細をさらに図6に示す。
Next, communication control processing executed by the ECU 10 will be described with reference to the flowcharts of FIGS. FIG. 3 is a main flowchart of the entire communication control process, and FIGS. 4 to 8 are sub-flowcharts describing the steps in FIG. 3 in detail.
Among them, two embodiments of “CAN initialization processing” are shown in FIGS. 4 and 5, and “CAN module reception processing and transmission processing” are shown in FIGS. 7 and 8, respectively. Details of the “CAN module initialization process” step in the “CAN initialization process” of FIGS. 4 and 5 are further shown in FIG.

以下のフローチャートの説明で、記号Sは「ステップ」を示す。また、末尾の記号AはCANモジュールA15に係るステップを示し、末尾の記号BはCANモジュールB16に係るステップを示す。図4及び図5で実質的に同一のステップには同一のステップ番号を付す。   In the following description of the flowchart, the symbol S indicates “step”. The symbol A at the end indicates a step related to the CAN module A15, and the symbol B at the end indicates a step related to the CAN module B16. In FIG. 4 and FIG. 5, the same step numbers are assigned to substantially the same steps.

図3に示す通信制御処理のメインルーチンは、規定周期毎に実行され、定期的にCANの送受信処理を実行する。
ここで、バス18に異常が発生した状況を想定する。バス異常発生時、受信専用モードのCANモジュールB16はバス異常を検出することができないため、通常モードのCANモジュールA15がS01にてバス異常を検出する。そして、バス異常が検出された場合(S01:YES)、S10のCAN初期化処理に移行し、CANモジュールA15及びCANモジュールB16の両方の初期化処理を実行する。
The main routine of the communication control process shown in FIG. 3 is executed at regular intervals, and periodically performs CAN transmission / reception processing.
Here, a situation where an abnormality has occurred in the bus 18 is assumed. When a bus abnormality occurs, the CAN module B16 in the reception-only mode cannot detect a bus abnormality, so the CAN module A15 in the normal mode detects a bus abnormality in S01. If a bus abnormality is detected (S01: YES), the process proceeds to the CAN initialization process of S10, and both the CAN module A15 and the CAN module B16 are initialized.

すべてのCANモジュール15、16の初期化処理が正常完了したとき、又は、S01でバス異常が検出されなかった(NO)とき、CAN通信を開始する。CAN通信では、CANモジュールA15の受信処理(S30A)とCANモジュールB16の受信処理(S30B)とを順不同に実施した後、最後にCANモジュールA15の送信処理(S40A)を実施する。
なお、後述するように、各CANモジュール15、16に受信メッセージ又は送信メッセージが無い場合、受信処理S30A、S30B、又は送信処理S40Aにおいて実質的な処理が行われない場合もある。
When the initialization process of all the CAN modules 15 and 16 is normally completed, or when no bus abnormality is detected in S01 (NO), the CAN communication is started. In CAN communication, the reception process (S30A) of the CAN module A15 and the reception process (S30B) of the CAN module B16 are performed in random order, and finally the transmission process (S40A) of the CAN module A15 is performed.
As will be described later, when there is no reception message or transmission message in each of the CAN modules 15 and 16, substantial processing may not be performed in the reception processing S30A, S30B or transmission processing S40A.

次に、CAN初期化処理ステップ(S10)のサブフローについて、2通りの実施形態を図4、図5に示す。
図4に示す第1実施形態のCAN初期化処理では、まず、主となるCANモジュールA15の初期化処理を優先して実施(S20A)した後、CANモジュールA15が正常であるか否か判定する(S11)。CANモジュールA15が異常の場合(S11:NO)、CANモジュールB16の初期化処理を実施せずに、CANモジュールA15及びCANモジュールB16の両方を停止させる(S14)。
Next, two embodiments of the sub-flow of the CAN initialization processing step (S10) are shown in FIGS.
In the CAN initialization process of the first embodiment shown in FIG. 4, first, the initialization process of the main CAN module A15 is prioritized (S20A), and then it is determined whether or not the CAN module A15 is normal. (S11). When the CAN module A15 is abnormal (S11: NO), both the CAN module A15 and the CAN module B16 are stopped without performing the initialization process of the CAN module B16 (S14).

CANモジュールA15が正常の場合(S11:YES)、CANモジュールB16の初期化処理を実施(S20B)した後、CANモジュールB16が正常であるか否か判定する(S12)。CANモジュールB16が異常の場合(S12:NO)、CANモジュールA15及びCANモジュールB16の両方を停止させる(S14)。CANモジュールB16が正常の場合(S12:YES)、初期化処理を「正常完了」とする。   If the CAN module A15 is normal (S11: YES), the CAN module B16 is initialized (S20B), and then it is determined whether the CAN module B16 is normal (S12). When the CAN module B16 is abnormal (S12: NO), both the CAN module A15 and the CAN module B16 are stopped (S14). When the CAN module B16 is normal (S12: YES), the initialization process is set to “normal completion”.

図5に示す第2実施形態のCAN初期化処理では、CANモジュールA15の初期化処理S20AとCANモジュールB16の初期化処理S20Bとを優先順位を付けずに実施した後、CANモジュールA15及びCANモジュールB16ともに正常であるか否か判定する(S13)。いずれかのCANモジュール15、16が異常の場合、CANモジュールA15及びCANモジュールB16の両方を停止させ(S14)、すべてのCANモジュール15、16が正常の場合のみ、初期化処理を「正常完了」とする。   In the CAN initialization process of the second embodiment shown in FIG. 5, the initialization process S20A of the CAN module A15 and the initialization process S20B of the CAN module B16 are performed without assigning priorities, and then the CAN module A15 and the CAN module are processed. It is determined whether both B16 are normal (S13). If any of the CAN modules 15 and 16 is abnormal, both the CAN module A15 and the CAN module B16 are stopped (S14), and the initialization process is “normally completed” only when all the CAN modules 15 and 16 are normal. And

上記第1、第2実施形態のCAN初期化処理における各CANモジュール15、16の初期化処理ステップ(S20A、S20B)のサブフローについて、図6に示す。
CANモジュールの初期化処理では、CANモジュール15、16の各種設定を変更することができるコンフィグレーションモードに移行し(S21)、CANモジュール15、16のレジスタが固着していないことをチェックする(S22)。続いて各メールボックス(MailBox)の送受信設定(S23)、通信ボーレートの設定(S24)を実施した後、通信制御可能な通常モードに移行させる(S25)。
FIG. 6 shows a subflow of the initialization processing steps (S20A, S20B) of the CAN modules 15 and 16 in the CAN initialization processing of the first and second embodiments.
In the initialization process of the CAN module, the mode shifts to a configuration mode in which various settings of the CAN modules 15 and 16 can be changed (S21), and it is checked that the registers of the CAN modules 15 and 16 are not fixed (S22). ). Subsequently, after setting the transmission / reception of each mailbox (MailBox) (S23) and setting the communication baud rate (S24), the system shifts to a normal mode in which communication control is possible (S25).

最後に、各CANモジュール15、16の受信処理ステップ(S30A、S30B)、及びCANモジュールA15の送信処理ステップ(S40A)のサブフローについて、図7、図8に示す。
図7に示す受信処理では、S31にて各メールボックス(MailBox)の受信メッセージの有無をチェックする。受信メッセージあり(S31:YES)の場合、メールボックスからメッセージデータを取得(S32)した後、メールボックスの状態を受信メッセージなしに設定する(S33)。S31で受信メッセージなし(NO)の場合、処理を終了する。
Finally, FIG. 7 and FIG. 8 show subflows of the reception processing steps (S30A, S30B) of the CAN modules 15 and 16, and the transmission processing step (S40A) of the CAN module A15.
In the reception process shown in FIG. 7, the presence / absence of a received message in each mailbox (MailBox) is checked in S31. If there is a received message (S31: YES), after acquiring message data from the mailbox (S32), the status of the mailbox is set to no received message (S33). If there is no received message (NO) in S31, the process ends.

図8に示す送信処理では、S41にて各メールボックス(MailBox)の送信メッセージの有無をチェックする。送信メッセージあり(S41:YES)の場合、メールボックスのメッセージデータを送信(S42)した後、メールボックスの状態を送信メッセージなしに設定する(S43)。S41で送信メッセージなし(NO)の場合、処理を終了する。   In the transmission process shown in FIG. 8, the presence / absence of a transmission message in each mailbox (MailBox) is checked in S41. If there is a transmission message (S41: YES), after sending the message data of the mailbox (S42), the state of the mailbox is set to no transmission message (S43). If there is no transmission message (NO) in S41, the process ends.

上記実施形態のECU10による効果について説明する。
(1)上記実施形態では、マイコン11内部に、同一のバスに接続された通常モードのCANモジュールA15及び受信専用モードのCANモジュールB16を有することで、マイコン11内部でのACKの送受信を防止しつつ2つのCANモジュール15、16を結合することができる。これにより、ECU10が受信可能なメッセージ数を増加させることができる。
The effect by ECU10 of the said embodiment is demonstrated.
(1) In the above embodiment, the microcomputer 11 has the CAN module A15 in the normal mode and the CAN module B16 in the reception-only mode connected to the same bus, thereby preventing the transmission and reception of ACK in the microcomputer 11. The two CAN modules 15 and 16 can be combined. As a result, the number of messages that can be received by the ECU 10 can be increased.

例えば上記実施形態のECU10が適用される電動パワーステアリング装置1は、送信する情報量に比べ、回転角センサ85、トルクセンサ94、車速センサ95等から受信する情報量が多いことが特徴である。さらに、新しい技術である自動操舵支援システムや自動駐車支援システムが使用されるようになると、車両の周囲を撮影するカメラからの画像情報等を受信することになり、電動パワーステアリング装置1のECU10が受信する情報はますます増加することが予想される。したがって、受信情報量を増加させることができるという効果が特に有効に発揮される。   For example, the electric power steering apparatus 1 to which the ECU 10 of the above embodiment is applied is characterized in that the amount of information received from the rotation angle sensor 85, the torque sensor 94, the vehicle speed sensor 95, etc. is larger than the amount of information to be transmitted. Furthermore, when an automatic steering assist system and an automatic parking assist system, which are new technologies, are used, image information from a camera that captures the surroundings of the vehicle is received, and the ECU 10 of the electric power steering apparatus 1 The information received is expected to increase more and more. Therefore, the effect that the amount of received information can be increased is exhibited particularly effectively.

(2)上記実施形態では、バス異常発生時、通常モードのCANモジュールA15がバス異常を検出することで、バス異常を判定することができる。また、その後のCAN初期化処理において、すべてのCANモジュール15、16の初期化処理の同期を取ることで、複数のCANモジュール15、16を「一体化した単一のCANモジュール」として制御することができる。   (2) In the above-described embodiment, when a bus abnormality occurs, the CAN module A15 in the normal mode can detect the bus abnormality by detecting the bus abnormality. Further, in the subsequent CAN initialization process, by synchronizing the initialization process of all the CAN modules 15 and 16, a plurality of CAN modules 15 and 16 are controlled as "integrated single CAN module". Can do.

(3)また、CAN初期化処理において、同一のバスに接続するすべてのCANモジュールA15及びCANモジュールB16の初期化処理が正常完了したとき、CAN通信を開始する。送受信処理前にすべてのCANモジュール15、16の異常検出をすることで、複数のCANモジュール15、16を「一体化した単一のCANモジュール」として制御することができる。   (3) In the CAN initialization process, when the initialization process of all the CAN modules A15 and CAN module B16 connected to the same bus is normally completed, the CAN communication is started. By detecting the abnormality of all the CAN modules 15 and 16 before the transmission / reception processing, the plurality of CAN modules 15 and 16 can be controlled as “integrated single CAN module”.

(4)CAN初期化処理において図4の第1実施形態を採用し、CANモジュールA15の初期化処理を優先して実施した後、CANモジュールB16の初期化処理を実施する場合には、主となる通常モードのCANモジュールA15が正常に動作するまで、副となる受信専用モードのCANモジュールB16を動作させないようにすることで、一体化制御の不整合を防止することができる。   (4) When the first embodiment of FIG. 4 is adopted in the CAN initialization process and the initialization process of the CAN module A15 is prioritized and then the initialization process of the CAN module B16 is performed, By preventing the CAN module B16 in the reception-only mode from operating until the normal-mode CAN module A15 operates normally, inconsistency in the integrated control can be prevented.

(その他の実施形態)
上述のようにCANモジュールB16は2つ以上設けてもよい。その場合、図3における受信処理の実施順は、CANモジュールA15を含めてどの順でもよい。また、図4、図5における「CANモジュールBの初期化処理」のS20Bでは、すべてのCANモジュールB16の初期化処理を実施する。
(Other embodiments)
As described above, two or more CAN modules B16 may be provided. In that case, the order of execution of the reception processing in FIG. 3 may be any order including the CAN module A15. Further, in S20B of “CAN module B initialization process” in FIGS. 4 and 5, initialization processes of all CAN modules B16 are performed.

本発明の通信制御方法を実施する電子制御装置は、電動パワーステアリング装置用のECUに限らず、いかなる電子制御装置であってもよい。例えば、メータECU、ブレーキECU等、受信する情報量が多い電子制御装置には特に有効である。
以上、本発明はこのような実施形態に限定されるものではなく、発明の趣旨を逸脱しない範囲において、種々の形態で実施することができる。
The electronic control device that implements the communication control method of the present invention is not limited to an ECU for an electric power steering device, and may be any electronic control device. For example, this is particularly effective for electronic control devices that receive a large amount of information, such as a meter ECU and a brake ECU.
As mentioned above, this invention is not limited to such embodiment, In the range which does not deviate from the meaning of invention, it can implement with a various form.

10・・・ECU(電子制御装置)、
11・・・マイコン、
15・・・CANモジュールA、
16・・・CANモジュールB、
17・・・CANトランシーバ、
18・・・バス。
10 ... ECU (electronic control unit),
11 ... Microcomputer,
15 ... CAN module A,
16: CAN module B,
17 ... CAN transceiver,
18 ... Bus.

Claims (3)

CAN通信用の同一のバス(18)に接続されたCANモジュールA(15)及びCANモジュールB(16)であって、送受信可能な通常モードに設定された唯一のCANモジュールA、及び、受信専用モードに設定された1つ以上のCANモジュールBを有するマイコン(11)と、
前記CANモジュールA及び前記CANモジュールBと前記バスとを接続するCANトランシーバ(17)と、
を備える電子制御装置(10)において実施される通信制御方法であって、
前記バスに異常が発生したとき、前記CANモジュールAが検出した情報に基づいて前記バスの異常を判定(S01)し、その後、すべての前記CANモジュールA及び前記CANモジュールBを初期化するCAN初期化処理(S10)を実施することを特徴とする通信制御方法。
CAN module A (15) and CAN module B (16) connected to the same bus (18) for CAN communication, the only CAN module A set in the normal mode capable of transmission and reception, and reception only A microcomputer (11) having one or more CAN modules B set in a mode;
A CAN transceiver (17) for connecting the CAN module A and the CAN module B to the bus;
A communication control method implemented in an electronic control device (10) comprising:
When an abnormality occurs in the bus, an abnormality in the bus is determined based on information detected by the CAN module A (S01), and then all CAN modules A and CAN modules B are initialized. A communication control method characterized in that the processing (S10) is performed.
前記CAN初期化処理において、前記同一のバスに接続するすべての前記CANモジュールA及び前記CANモジュールBの初期化処理が正常完了したとき、CAN通信を開始することを特徴とする請求項1に記載の通信制御方法。   2. The CAN communication is started when the initialization processing of all the CAN modules A and CAN modules B connected to the same bus is normally completed in the CAN initialization processing. Communication control method. 前記CAN初期化処理において、前記CANモジュールAの初期化処理(S20A)を優先して実施した後、前記CANモジュールBの初期化処理(S20B)を実施することを特徴とする請求項2に記載の通信制御方法。   3. The CAN initialization process (S20B) is performed after the CAN module A initialization process (S20A) is prioritized and then the CAN module B initialization process (S20B) is performed. Communication control method.
JP2013254110A 2013-12-09 2013-12-09 Communication control method Active JP5892391B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2013254110A JP5892391B2 (en) 2013-12-09 2013-12-09 Communication control method
DE102014117616.2A DE102014117616A1 (en) 2013-12-09 2014-12-01 Communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013254110A JP5892391B2 (en) 2013-12-09 2013-12-09 Communication control method

Publications (2)

Publication Number Publication Date
JP2015115640A JP2015115640A (en) 2015-06-22
JP5892391B2 true JP5892391B2 (en) 2016-03-23

Family

ID=53185439

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013254110A Active JP5892391B2 (en) 2013-12-09 2013-12-09 Communication control method

Country Status (2)

Country Link
JP (1) JP5892391B2 (en)
DE (1) DE102014117616A1 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04207242A (en) * 1990-11-29 1992-07-29 Toshiba Corp Data transmission equipment
JP5299261B2 (en) * 2009-12-24 2013-09-25 株式会社デンソー Electronic control unit

Also Published As

Publication number Publication date
DE102014117616A1 (en) 2015-06-11
JP2015115640A (en) 2015-06-22

Similar Documents

Publication Publication Date Title
US10862417B2 (en) Rotary electric device control device and electric power steering device
JP5406377B2 (en) Control system and electric power steering control device
US10717462B2 (en) Sensor device and electric power steering device using same
JP5914315B2 (en) Vehicle control system
EP1574419A2 (en) Automotive electronic control system including communicably connected commanding unit and driving unit
JP2018129995A5 (en)
US11285992B2 (en) Rotating electric machine control device
JP2010143458A (en) Electric power steering device
JP6555163B2 (en) Control system
CN109017628B (en) Message sequence evaluation for redundant communication systems
WO2020149035A1 (en) Vehicle-mounted equipment control device
JP5892391B2 (en) Communication control method
JP2019041171A (en) Vehicle control device
JP6455082B2 (en) In-vehicle device control system
JP7232067B2 (en) motor controller
JP6717104B2 (en) Electronic control unit
JP5387028B2 (en) Vehicle control device
JP2013129291A (en) Vehicle communication control device, and method and program for controlling vehicle communication network
WO2021192936A1 (en) Device and method for controlling vehicle operating mechanism
JP2015214212A (en) Vehicle steering control device
JP6536011B2 (en) Electronic control unit
JP5811279B2 (en) Vehicle steering control device
JP5434683B2 (en) CAN controller
JP6600542B2 (en) Control apparatus and control method
JP4860393B2 (en) Wiper device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150522

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160125

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160210

R151 Written notification of patent or utility model registration

Ref document number: 5892391

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