JP5178805B2 - Communication control system - Google Patents
Communication control system Download PDFInfo
- Publication number
- JP5178805B2 JP5178805B2 JP2010243205A JP2010243205A JP5178805B2 JP 5178805 B2 JP5178805 B2 JP 5178805B2 JP 2010243205 A JP2010243205 A JP 2010243205A JP 2010243205 A JP2010243205 A JP 2010243205A JP 5178805 B2 JP5178805 B2 JP 5178805B2
- Authority
- JP
- Japan
- Prior art keywords
- message
- transmission timing
- control device
- cmu
- change
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Description
本発明は、例えば車両制御用の車載通信ネットワーク等、ネットワークに接続された複数の装置がそれぞれに周期的にメッセージを送信している環境下で、ネットワーク負荷をコントロールするために各装置のメッセージ送信タイミングを変更する通信制御システムに関する。 The present invention provides a message transmission for each device to control the network load in an environment where a plurality of devices connected to the network periodically transmit messages to each other, such as an in-vehicle communication network for vehicle control. The present invention relates to a communication control system that changes timing.
現在車両には、センサやECU(Electric Control Unit:電子制御ユニット)などの電子装置が数多く搭載されており、それぞれがネットワークを介してメッセージの送受信を行っている。このようなネットワークでは通信プロトコルとして、CSMA/CA(Carrier Sense Multiple Access with Collision Avoidance:搬送波感知多重アクセス/衝突回避方式)が用いられている。 Currently, vehicles are equipped with many electronic devices such as sensors and ECUs (Electric Control Units), each of which transmits and receives messages via a network. In such a network, CSMA / CA (Carrier Sense Multiple Access with Collision Avoidance) is used as a communication protocol.
このようなネットワークでは、接続されている装置は、メッセージ送信時にネットワークの使用状況を確認し、ネットワークが未使用である場合、メッセージの送信を行うが、ネットワークが使用されていた場合、所定時間経過後に再度メッセージの送信を行う。 In such a network, the connected device checks the network usage status at the time of message transmission, and sends a message if the network is not used, but if the network is used, a predetermined time elapses. Send the message again later.
さらに、複数の装置がネットワークは未使用であると判断し、同時にメッセージを送信する可能性がある。この場合はメッセージの衝突が発生するため、衝突を検知した装置は再度メッセージの送信を行う。 Further, there is a possibility that a plurality of devices determine that the network is unused and send a message at the same time. In this case, since a collision of messages occurs, the device that detects the collision transmits the message again.
上述したようなメッセージの再送信は、複数の装置の送信タイミングが近いもしくは等しい場合に発生する。そのため、複数の装置が同一周期でメッセージを送信する環境では、複数の装置の送信タイミングが近いもしくは等しい場合、毎周期メッセージの再送信が発生する。 The above-described message retransmission occurs when the transmission timings of a plurality of apparatuses are close or equal. For this reason, in an environment in which a plurality of devices transmit a message at the same cycle, when the transmission timings of the plurality of devices are close or equal, a message is retransmitted every cycle.
また、車両制御の複雑化に伴い、ネットワークに接続された複数の装置の間で、第1の制御装置と、複数の第2の制御装置という構成を取り、第1の制御装置が複数の第2の制御装置からのメッセージを基に、制御を行うシステムが登場している。
Further, as vehicle control becomes more complicated, a configuration of a first control device and a plurality of second control devices is taken between a plurality of devices connected to the network, and the first control device has a plurality of first control devices. A system for performing control based on a message from the
この場合、第1の制御装置は一つの第2の制御装置からメッセージを受信しただけでは、制御を行うことができず、制御を行うには、一つの第2の制御装置からメッセージを受信してからも、すべての第2の制御装置からメッセージを受信するまで待つ必要がある。 In this case, the first control device cannot perform control only by receiving a message from one second control device. To perform control, the first control device receives a message from one second control device. After that, it is necessary to wait until messages are received from all the second control devices.
上述したようなメッセージ待ち時間は、複数の第2の制御装置の送信タイミングが時間的に離れている場合は大きくなる。そのため、複数の第2の制御装置が同一周期でメッセージを送信する環境では、複数の第2の制御装置の送信タイミングが時間的に離れている場合、毎周期メッセージ待ち時間が大きくなる。 The message waiting time as described above becomes large when the transmission timings of the plurality of second control devices are separated in time. Therefore, in an environment in which a plurality of second control devices transmit messages in the same cycle, when the transmission timings of the plurality of second control devices are separated in time, the message waiting time for each cycle is increased.
このように、複数の装置がネットワークを介して、メッセージを送受信する環境において、複数の装置が同一周期でメッセージを送信する場合、メッセージ送信タイミングが時間的に近いもしくは等しい場合、毎周期メッセージの再送信が発生し、メッセージの送信タイミングが時間的に離れている場合、毎周期メッセージの待ち時間が大きくなるという問題があった。 As described above, in an environment in which a plurality of devices transmit and receive messages via a network, when a plurality of devices transmit a message at the same cycle, if the message transmission timing is close or equal in time, the message is retransmitted every cycle. When transmission occurs and the transmission timing of the message is separated in time, there is a problem that the waiting time of the message of every cycle becomes large.
そこで、下記特許文献1では、複数の装置が接続された車載ネットワークにおいて、一つの第1の制御装置がすべての第2の制御装置のメッセージの周期的送信タイミングを受信し、受信結果を基に、すべての第2の制御装置の送信タイミングを決定し、すべての第2の制御装置へ通知することですべての第2の制御装置の送信タイミングを変更する車両用通信制御システムが提供されている。 Therefore, in the following Patent Document 1, in a vehicle-mounted network to which a plurality of devices are connected, one first control device receives the periodic transmission timings of messages of all second control devices, and based on the reception results. There is provided a vehicle communication control system that determines transmission timings of all the second control devices and notifies the transmission timings of all the second control devices by notifying all the second control devices. .
図15に構成を示す従来の車両用通信制御システム100では、第1の制御装置である車両用通信制御ユニット101と、複数の第2の制御装置であるECU(A) (B)108が車載LAN網107を介して、メッセージの送受信を行う。ECU(A) (B)108は、自身のメッセージ送信開始時点(又は時刻)、メッセージ送信終了時点、およびメッセージ送信周期を含んだメッセージ送信時間を車両用通信制御ユニット101に通知する。車両用通信制御ユニット101は各ECU(A) (B)108から受信したメッセージ送信時間を基にそれぞれの送信タイミングを割り振り設定し、各ECU(A) (B)108へ設定した送信タイミングを通知する。これにより各ECU(A) (B)108は通知された送信タイミングでメッセージを送信する。
In the conventional vehicle
このような構成により、図16の(a)に示すように、変更前は第2の制御装置である複数のECU(A) (B)の送信タイミングが等しくメッセージの衝突が発生する場合でも、図16の(b)に示すように、各ECU(A) (B)の送信時間が他のECUからのメッセージの送信開始時点から送信終了時点までの時間と重ならないように送信開始時点を変更することで、メッセージの衝突を解消することができる。 With such a configuration, as shown in FIG. 16 (a), even when the transmission timings of the plurality of ECUs (A) and (B) as the second control device are equal and message collision occurs before the change, As shown in FIG. 16 (b), the transmission start time is changed so that the transmission time of each ECU (A) (B) does not overlap with the time from the transmission start time of the message from the other ECU to the transmission end time. By doing so, the collision of messages can be resolved.
しかしながら、上記特許文献1に記載の車両用通信制御システムでは、第2の制御装置の送信タイミングの変更要否および変更値を決定するためには、すべての第2の制御装置の周期メッセージに関する情報(メッセージ送信開始時点、メッセージ送信終了時点、メッセージ送信周期)が必要である。そのため、第2の制御装置の送信タイミング変更要否および変更値の決定を行う第1の制御装置は多くの情報を扱う必要があり、送信タイミング変更にかかる処理負荷が高くなってしまう。また、すべての第2の制御装置の送信タイミングの決定後、すべての第2の制御装置へ送信タイミングを通知するため、送信タイミング変更に関して多くのメッセージが必要となる。 However, in the vehicle communication control system described in Patent Document 1, in order to determine whether or not the transmission timing of the second control device needs to be changed and the change value, information on the periodic messages of all the second control devices. (Message transmission start time, message transmission end time, message transmission cycle) are required. Therefore, the first control device that determines whether or not to change the transmission timing of the second control device and the change value needs to handle a large amount of information, which increases the processing load for changing the transmission timing. Further, since the transmission timing is notified to all the second control devices after the determination of the transmission timings of all the second control devices, many messages are required regarding the transmission timing change.
本発明は上述した問題に鑑みてなされたものであり、第1の制御装置と所定周期でメッセージを送信する複数の第2の制御装置が接続された車両ネットワークにおいて、第2の制御装置の送信タイミング変更要否および変更値の決定を行う第1の制御装置の送信タイミング変更にかかる処理負荷をできるだけ抑えて、第2の制御装置の送信タイミングを変更可能であり、送信タイミングの変更に多くのメッセージを必要としない通信制御システムを提供することを目的とする。 The present invention has been made in view of the above-described problems. In a vehicle network in which a plurality of second control devices that transmit messages at a predetermined cycle are connected to a first control device, transmission of the second control device. It is possible to change the transmission timing of the second control device while minimizing the processing load for changing the transmission timing of the first control device that determines whether or not to change the timing and the change value. An object of the present invention is to provide a communication control system that does not require a message.
本発明は、第1の制御装置と前記第1の制御装置にそれぞれが所定周期でメッセージを送信する複数の第2の制御装置とがネットワークに接続され、前記第1の制御装置が前記第2の制御装置から受信する連続するメッセージの受信時間間隔に従い前記第2の制御装置にメッセージ送信タイミングを変更させる送信タイミング変更メッセージを送信することを特徴とする通信制御システムにある。 In the present invention, a first control device and a plurality of second control devices each transmitting a message to the first control device at a predetermined cycle are connected to a network, and the first control device is connected to the second control device. The transmission control system transmits a transmission timing change message for changing the message transmission timing to the second control apparatus according to the reception time interval of consecutive messages received from the control apparatus.
本発明では、第1の制御装置と第1の制御装置にそれぞれが所定周期でメッセージを送信する複数の第2の制御装置とがネットワークに接続された通信制御システムにおいて、第2の制御装置のメッセージ送信タイミングの変更のための処理負荷をできるだけ抑えて、第2の制御装置の送信タイミングを変更可能であり、送信タイミングの変更に多くのメッセージを必要としない通信制御システムを提供することができる。 According to the present invention, in a communication control system in which a first control device and a plurality of second control devices each transmitting a message to the first control device at a predetermined cycle are connected to a network, the second control device It is possible to provide a communication control system capable of changing the transmission timing of the second control device while suppressing the processing load for changing the message transmission timing as much as possible and not requiring many messages for changing the transmission timing. .
以下、本発明による通信制御システムを各実施の形態に従って図面を用いて説明する。各実施の形態は本発明による通信制御システムを例えばバッテリ制御システムに適用した場合を示す。各実施の形態において、同一もしくは相当部分は同一符号で示す。 Hereinafter, a communication control system according to the present invention will be described with reference to the drawings according to each embodiment. Each embodiment shows a case where the communication control system according to the present invention is applied to, for example, a battery control system. In each embodiment, the same or corresponding parts are denoted by the same reference numerals.
実施の形態1.
図1は本発明の実施の形態1によるバッテリ制御システムの構成を示す図である。図1のように、このバッテリ制御システム300では、第1の制御装置であるBMU(Battery Management Unit:バッテリ管理ユニット)301と、第2の制御装置であるCMU(Cell Management Unit:セル管理ユニット)(A)307、CMU(B)308がCANネットワーク306によって接続されている。CANは、CSMA/CA方式の通信プロトコルである。
Embodiment 1 FIG.
FIG. 1 is a diagram showing a configuration of a battery control system according to Embodiment 1 of the present invention. As shown in FIG. 1, in this
CMU(A)307、CMU(B)308はバッテリのセルの制御を行い、BMU301はCMU(A)307、CMU(B)308からのメッセージの受信およびCMU(A)307、CMU(B)308へ制御命令メッセージ(送信タイミング変更メッセージ)の送信を行う。
The CMU (A) 307 and CMU (B) 308 control the battery cells, and the
また、CMU(A)307、CMU(B)308の構成・機能は等しい。さらに、第2の制御装置としてCMU(A)307、CMU(B)308の2つがCANネットワーク306に接続されているとしているが、3つ以上接続されていても良い。 Further, the configurations and functions of the CMU (A) 307 and the CMU (B) 308 are the same. Furthermore, although two CMU (A) 307 and CMU (B) 308 are connected to the CAN network 306 as the second control device, three or more may be connected.
BMU301は、通信インタフェース部302と、メッセージ受信時間取得部303と、送信タイミング変更要否判断部304と、第1の送信タイミング変更メッセージ送信部305から構成される。CMU(A)307、CMU(B)308は、それぞれ通信インタフェース部309と、送信タイミング変更部310から構成される。
The
CMU(A)307はメッセージID:「0x100」のメッセージを所定周期で送信し、「0x150」のメッセージを受信する。また、CMU(B)308はメッセージID:「0x200」のメッセージを所定周期で送信し、「0x250」のメッセージを受信する。 The CMU (A) 307 transmits a message ID: “0x100” in a predetermined cycle and receives a message “0x150”. Further, the CMU (B) 308 transmits a message ID: “0x200” at a predetermined cycle and receives a message “0x250”.
また、連続した複数のメッセージの受信時間の間隔が、しきい値(40ms)未満であった場合、CMUのメッセージ送信タイミングの変更が必要であると判断する。 Further, if the interval between the reception times of a plurality of consecutive messages is less than the threshold (40 ms), it is determined that the CMU message transmission timing needs to be changed.
さらにここでは、連続した複数の受信メッセージの内、後から受信したメッセージを送信したCMUの送信タイミングを、遅くする方向へずらすように変更する。 Furthermore, here, the transmission timing of the CMU that has transmitted a message received later from among a plurality of consecutive received messages is changed so as to be delayed.
次に、図2を用いてBMU301のメッセージ受信時の動作を説明する。図2は実施の形態1における第1の制御装置の動作を説明するフローチャートである。
Next, the operation of the
ステップS501では、BMU301の通信インタフェース部302は、CMU(A)307またはCMU(B)308からメッセージを受信する。
In step S <b> 501, the
ステップS502では、BMU301のメッセージ受信時間取得部303が、メッセージ受信時間を求める。
In step S502, the message reception
ステップS503では、CMUから受信したメッセージが偶数番目のメッセージであるかどうかを判断する。偶数番目のメッセージである場合、ステップS504へ進み、奇数番目のメッセージである場合、本動作を終了する。 In step S503, it is determined whether the message received from the CMU is an even-numbered message. If it is an even-numbered message, the process proceeds to step S504. If it is an odd-numbered message, this operation is terminated.
ステップS504では、BMU301の送信タイミング変更要否判断部304が、メッセージ受信時間に基づいて、CMUのメッセージ送信タイミングを変更する必要があるかどうかを判断する。変更する必要がある場合、ステップS505へ進み、変更する必要が無い場合、本動作を終了する。送信タイミング変更要否判断部304は該偶数番目のメッセージとその前の奇数番目のメッセージの受信時間の間隔が、上述のしきい値(40ms)未満であった場合、CMUのメッセージ送信タイミングの変更が必要であると判断する。
In step S504, the transmission timing change
ステップS505では、BMU301は、CMUの送信タイミングのずらし時間を決定する。
In step S505, the
ステップS506では、BMU301の第1の送信タイミング変更メッセージ送信部305が、メッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信する。
In step S506, the first transmission timing change
上述したBMU301の処理は、メッセージを受信するたびに実施される。また上述した処理以外にも処理は存在するが、本例の特徴には関連が無いため、説明を省略する。
The above-described processing of the
次に図3を用いて、CMU(A)307、CMU(B)308のメッセージ受信時の動作を説明する。図3は実施の形態1における第2の制御装置の動作を説明するフローチャートである。CMU(A)307、CMU(B)308は同じ動作をするため、ここではCMU(A)307のみを対象として説明する。 Next, the operation of the CMU (A) 307 and CMU (B) 308 when receiving a message will be described with reference to FIG. FIG. 3 is a flowchart for explaining the operation of the second control apparatus according to the first embodiment. Since the CMU (A) 307 and the CMU (B) 308 perform the same operation, only the CMU (A) 307 will be described here.
ステップS601では、CMU(A)307の通信インタフェース部309は、BMU301からメッセージを受信したかどうかを判断する。メッセージを受信したと判断した場合、ステップS602へ進み、受信していないと判断した場合、本動作を終了する。
In step S <b> 601, the
ステップS602では、受信したメッセージがメッセージ送信タイミング変更命令とずらし時間を含んだ第1の送信タイミング変更メッセージであるかどうかを判断する。受信したメッセージが第1の送信タイミング変更メッセージであると判断した場合、ステップS603へ進み、第1の送信タイミング変更メッセージで無いと判断した場合、本動作を終了する。 In step S602, it is determined whether the received message is a first transmission timing change message including a message transmission timing change command and a shift time. If it is determined that the received message is the first transmission timing change message, the process proceeds to step S603. If it is determined that the received message is not the first transmission timing change message, this operation is terminated.
ステップS603では、第1の送信タイミング変更メッセージからずらし時間を抽出する。 In step S603, the shift time is extracted from the first transmission timing change message.
ステップS604では、CMU(A)307の送信タイミング変更部310が、抽出したずらし時間を基に自身の送信タイミングを変更する。
In step S604, the transmission
上述したCMU(A)307の処理は、メッセージを受信するたびに実施される。また上述した処理以外にも処理は存在するが、本例の特徴には関連が無いため、説明を省略する。 The process of CMU (A) 307 described above is performed every time a message is received. Although there are processes other than those described above, the description is omitted because they are not related to the features of this example.
図4は本実施の形態1における、第1の送信タイミング変更メッセージのメッセージフォーマットを示す。第1の送信タイミング変更命令メッセージのヘッダ801は、SOF(Start Of Frame)、メッセージID、CRC(Cyclic Redundancy Check)などを含み、ペイロード802は、メッセージ送信タイミング変更命令とずらし時間を含む。
FIG. 4 shows a message format of the first transmission timing change message in the first embodiment. The
以下、バッテリ制御システム300におけるBMU301と、CMU(A)307、CMU(B)308の動作について図2および図3を用いて詳述する。
Hereinafter, the operations of the
最初に、BMU301がCMU(A)307とCMU(B)308と連続してメッセージを受信し、また2つのメッセージの受信時間の間隔がしきい値以上であった場合の動作について説明する。
First, an operation when the
まず、BMU301の通信インタフェース部302がCMU(A)307からメッセージIDが「0x100」のメッセージを受信する(S501)。
First, the
次に、BMU301のメッセージ受信時間取得部303はCMU(A)307からのメッセージ受信時間を求める(S502)。
Next, the message reception
そしてBMU301は、CMU(A)307から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S503)。この段階では、BMU301はCMU(A)307のメッセージしか受信していないため、奇数番目と判断し、本動作を終了する。
Then, the
次に、BMU301の通信インタフェース部302がCMU(B)308からメッセージIDが「0x200」のメッセージを受信する(S501)。
Next, the
そして、BMU301のメッセージ受信時間取得部303はCMU(B)308からのメッセージ受信時間を求める(S502)。
Then, the message reception
そしてBMU301は、CMU(B)308から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S503)。この段階では、BMU301はCMU(A)307およびCMU(B)308のメッセージを受信しているため、2つ目のメッセージであり、偶数番目と判断し、ステップS504へ進む。
Then, the
次にBMU301の送信タイミング変更要否判断部304は、CMU(A)307、CMU(B)308からのメッセージ受信時間に基づいて、CMUのメッセージ送信タイミングを変更する必要があるかどうかを判断する(S504)。
Next, the transmission timing change
ここでは、CMU(A)307のメッセージ受信時間とCMU(B)308のメッセージ受信時間の間隔はしきい値以上であるため、変更する必要が無いと判断し、本動作を終了する。 Here, since the interval between the message reception time of the CMU (A) 307 and the message reception time of the CMU (B) 308 is equal to or greater than the threshold value, it is determined that there is no need to change, and this operation ends.
次に、CMU(A)307、CMU(B)308のメッセージ受信時の動作について説明する。 Next, the operation of the CMU (A) 307 and CMU (B) 308 when receiving a message will be described.
CMU(A)307の通信インタフェース部309は、BMU301からメッセージを受信したかどうかを判断する(S601)。BMU301はメッセージを送信していないため、CMU(A)307はメッセージを受信していないと判断し、本動作を終了する。CMU(B)308も同様に受信時の動作を終了する。
The
次に、バッテリ制御システム300において実施の形態1の特徴となる、CMU(A)307、CMU(B)308がBMU301から受信した送信タイミング変更命令とずらし時間を含んだ第1の送信タイミング変更メッセージの内容に基づいて、自身の送信タイミングを変更する手順について図2から図5を用いて詳述する。ここでは、図5の(a)に示すように、BMU301は、CMU(A)307からメッセージIDが「0x100」のメッセージを、CMU(B)308からメッセージIDが「0x200」のメッセージを、20ms間隔で連続して受信し、2つのメッセージの受信時間の間隔がしきい値(40ms)未満であるとする。
Next, in the
まず、BMU301のメッセージ受信時の動作について説明する。BMU301の通信インタフェース部302は、CMU(A)307からメッセージIDが「0x100」のメッセージを受信する(S501)。
First, the operation of the
次に、BMU301のメッセージ受信時間取得部303はCMU(A)307からのメッセージ受信時間を求める(S502)。
Next, the message reception
そしてBMU301は、CMU(A)307から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S503)。この段階では、BMU301はCMU(A)307のメッセージしか受信していないため、奇数番目と判断し、本動作を終了する。
Then, the
次に、BMU301の通信インタフェース部302がCMU(B)308からメッセージIDが「0x200」のメッセージを受信する(S501)。
Next, the
そして、BMU301のメッセージ受信時間取得部303はCMU(B)308からのメッセージ受信時間を求める(S502)。
Then, the message reception
そしてBMU301は、CMU(B)308から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S503)。この段階では、BMU301はCMU(A)307およびCMU(B)308のメッセージを受信しているため、2つ目のメッセージであり、偶数番目と判断し、ステップS504へ進む。
Then, the
次にBMU301の送信タイミング変更要否判断部304は、CMU(A)307、CMU(B)308からのメッセージ受信時間に基づいて、CMUのメッセージ送信タイミングを変更する必要があるかどうかを判断する(S504)。
Next, the transmission timing change
ここでは、CMU(A)307のメッセージ受信時間とCMU(B)308のメッセージ受信時間の間隔はしきい値未満であるため、変更する必要があると判断し、ステップS505へ進む。 Here, since the interval between the message reception time of the CMU (A) 307 and the message reception time of the CMU (B) 308 is less than the threshold value, it is determined that it needs to be changed, and the process proceeds to step S505.
次に、BMU301は、CMUの送信タイミングのずらし時間を決定する(S505)。連続したメッセージのメッセージ受信時間の間隔をしきい値以上にするため、30msとする。
Next, the
そして、BMU301の第1の送信タイミング変更メッセージ送信部305は、メッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信する(S506)。ここでは連続した複数のメッセージの内、後から受信したメッセージを送信したCMU(B)308の送信タイミングを変更するため、CMU(B)308のメッセージ受信IDである、「0x250」を第1の送信タイミング変更メッセージのヘッダ801のIDへ設定し、ペイロード802のずらし時間にS505で決定したずらし時間である30msを設定する。
Then, the first transmission timing change
次に、CMU(A)307、CMU(B)308のメッセージ受信時の動作について説明する。 Next, the operation of the CMU (A) 307 and CMU (B) 308 when receiving a message will be described.
CMU(A)307の通信インタフェース部309は、BMU301からメッセージを受信したかどうかを判断する(S601)。ここではBMU301は、第1の送信タイミング変更メッセージのIDとして、「0x250」を設定しているため、CMU(A)307は、メッセージを受信していないと判断し、受信時の動作を終了する。
The
一方で、CMU(B)308の通信インタフェース部309は、BMU301からメッセージを受信したかどうかを判断する(S601)。ここではBMU301は、第1の送信タイミング変更メッセージのIDとして、「0x250」を設定しているため、CMU(B)308は、メッセージを受信したと判断し、ステップS602へ進む。
On the other hand, the
BMU301からメッセージを受信したCMU(B)308は、受信したメッセージがメッセージ送信タイミング変更命令とずらし時間を含んだ第1の送信タイミング変更メッセージであるかどうかを判断する(S602)。ここではBMU301は、メッセージのペイロード802に、メッセージ送信タイミング変更命令とずらし時間を含めているため、CMU(B)308は、受信したメッセージが第1の送信タイミング変更メッセージであると判断し、ステップS603へ進む。
The CMU (B) 308 that has received the message from the
次に、CMU(B)308は第1の送信タイミング変更メッセージからずらし時間を抽出する(S603)。ここでは、第1の送信タイミング変更メッセージのずらし時間には、30msが含まれているため、30msが抽出される。 Next, the CMU (B) 308 extracts a shift time from the first transmission timing change message (S603). Here, since the shift time of the first transmission timing change message includes 30 ms, 30 ms is extracted.
最後に、CMU(B)308は、図5の(b)のように、第1の送信タイミング変更メッセージに含まれていたずらし時間である30msだけ、自身の送信タイミングをずらす。 Finally, as shown in FIG. 5B, the CMU (B) 308 shifts its transmission timing by 30 ms, which is the shift time included in the first transmission timing change message.
このように、第1の制御装置であるBMU301が所定周期でメッセージを送信する複数の第2の制御装置(CMU(A)307、CMU(B)308)から受信したメッセージの内、連続したメッセージの受信時間の間隔が、所定の値未満であった場合、第1の制御装置は第2の制御装置の送信タイミングの変更が必要であると判断し、送信タイミングの変更要否判断に使用したメッセージを送信した第2の制御装置の内一つの第2の制御装置へ、メッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第1の制御装置が指定したずらし時間だけ変更することで、複数の第2の制御装置の送信タイミングの間隔を広げるように変更することができ、第2の制御装置のメッセージ再送信を低減することができる。
As described above, continuous messages are received from the plurality of second control devices (CMU (A) 307 and CMU (B) 308) that the
また、第1の制御装置は、第2の制御装置からのメッセージ受信時間のみによって、第2の制御装置の送信タイミングの変更要否を決定することができるため、第1の制御装置の送信タイミング変更にかかる処理負荷をできる限り抑えることができる。 Further, since the first control device can determine whether or not the transmission timing of the second control device needs to be changed based only on the message reception time from the second control device, the transmission timing of the first control device can be determined. The processing load related to the change can be suppressed as much as possible.
さらに、第1の制御装置は一つの第2の制御装置のみに送信タイミング変更に関するメッセージを送信すればよいため、送信タイミング変更に関して多くのメッセージを必要としない。 Furthermore, since the first control device only needs to transmit a message related to the transmission timing change to only one second control device, many messages are not necessary for the transmission timing change.
なお上記の例では、第1の制御装置であるBMU301が、送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置(CMU(A)307、CMU(B)308)の内、メッセージ受信時間が遅かったCMU(B)308へ第1の送信タイミング変更メッセージを送信し、CMU(B)308の送信タイミングを遅くする方向へ変更することとしたが、図6の(b)のように、メッセージ受信時間が早いCMU(A)307へ第1の送信タイミング変更メッセージを送信し、CMU(A)307の送信タイミングを早くする方向へずらすことによって、複数の第2の制御装置の送信タイミングの間隔を広げるように送信タイミングを変更することもでき、同様の効果が得られる。
In the above example, among the second control devices (CMU (A) 307, CMU (B) 308) that the
また上記の例では、送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置(CMU(A)307、CMU(B)308)の内、一つのCMU(B)308へメッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信することとしたが、図7の(b)に示すように、メッセージ送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置(CMU(A)307、CMU(B)308)のすべての制御装置へ第1の送信タイミング変更メッセージを送信し、送信タイミングをずらすことによって、複数の第2の制御装置の送信タイミングの間隔を広げるように送信タイミングを変更することができるため、同様の効果が得られる。 In the above example, the message is transmitted to one CMU (B) 308 among the second control devices (CMU (A) 307 and CMU (B) 308) that have transmitted the message used for determining whether or not the transmission timing needs to be changed. Although the first transmission timing change message including the timing change command and the shift time is transmitted, as shown in FIG. 7B, the message used for determining whether or not the message transmission timing is changed is transmitted. By transmitting the first transmission timing change message to all the control devices of the second control devices (CMU (A) 307 and CMU (B) 308) and shifting the transmission timing, the plurality of second control devices Since the transmission timing can be changed to widen the transmission timing interval, the same effect can be obtained.
また、複数の第2の制御装置の送信タイミングを変更することで、第2の制御装置の送信タイミングのずらし時間を小さくすることができる。 Further, by changing the transmission timings of the plurality of second control devices, the transmission timing shift time of the second control device can be reduced.
本発明では、第2の制御装置の送信周期は変更せず、送信タイミングを変更することで、複数の第2の制御装置(CMU(A)、CMU(B))のメッセージ間隔を変更する。図14の(a)に示すように、送信タイミング変更前は、CMU(A)、CMU(B)からBMUが受信するこれらのメッセージ間隔は20msである。各CMUは一定周期(ここでは100ms)でメッセージを送信しているため、この間隔は変化しない。そこで、図14の(b)に示すように、CMU(B)の送信周期は変更せず、送信タイミングを遅くする方向へずらすことにより(ここでは30msずらす)、CMU(8A)、CMU(B)からBMUが受信するこれらのメッセージ間隔は、毎周期50msとなる。 In the present invention, the message interval of the plurality of second control devices (CMU (A), CMU (B)) is changed by changing the transmission timing without changing the transmission cycle of the second control device. As shown in FIG. 14A, before changing the transmission timing, the interval between these messages received by the BMU from the CMU (A) and the CMU (B) is 20 ms. Since each CMU transmits a message at a constant period (here, 100 ms), this interval does not change. Therefore, as shown in FIG. 14B, the transmission cycle of CMU (B) is not changed, and the transmission timing is shifted in the direction of delaying (here, 30 ms is shifted), so that CMU (8A), CMU (B ) Between these messages received by the BMU is 50 ms per period.
実施の形態2.
次に本発明の実施の形態2によるバッテリ制御システムについて説明する。バッテリ制御システムの構成は図1に示したものと同じである。実施の形態1との相違点は、実施の形態1では、連続した複数のメッセージの受信時間の間隔が、しきい値(40ms)未満であった場合、CMUのメッセージ送信タイミングの変更が必要であるとしていたが、本実施の形態2では、連続した複数のメッセージの受信時間の間隔が、しきい値(60ms)超であった場合、CMUのメッセージ送信タイミングの変更が必要であると判断する。
Next, a battery control system according to
また、本実施の形態2では、連続した複数の受信メッセージの内、後から受信したメッセージを送信したCMUの送信タイミングを早くする方向へずらすように変更する。
Moreover, in this
次に、バッテリ制御システム300において本実施の形態の特徴となる、CMU(A)307、CMU(B)308がBMU301から受信したメッセージ送信タイミング変更命令とずらし時間を含んだ第1の送信タイミング変更メッセージの内容に基づいて、自身の送信タイミングを変更する手順について図2、図3、図8を用いて詳述する。ここでは、図8の(a)に示すように、BMU301は、CMU(A)307からメッセージIDが「0x100」のメッセージを、CMU(B)308からメッセージIDが「0x200」のメッセージを、80ms間隔で連続して受信し、2つのメッセージの受信時間の間隔がしきい値(60ms)超であるとする。
Next, in the
まず、BMU301のメッセージ受信時の動作について説明する。BMU301の通信インタフェース部302は、CMU(A)307からメッセージIDが「0x100」のメッセージを受信する(S501)。
First, the operation of the
次に、BMU301のメッセージ受信時間取得部303はCMU(A)307からのメッセージ受信時間を求める(S502)。
Next, the message reception
そしてBMU301は、CMU(A)307から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S503)。この段階では、BMU301はCMU(A)307のメッセージしか受信していないため、奇数番目と判断し、本動作を終了する。
Then, the
次に、BMU301の通信インタフェース部302がCMU(B)308からメッセージIDが「0x200」のメッセージを受信する(S501)。
Next, the
そして、BMU301のメッセージ受信時間取得部303はCMU(B)308からのメッセージ受信時間を求める(S502)。
Then, the message reception
そしてBMU301は、CMU(B)308から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S503)。この段階では、BMU301はCMU(A)307およびCMU(B)308のメッセージを受信しているため、2つ目のメッセージであり、偶数番目と判断し、ステップS504へ進む。
Then, the
次にBMU301の送信タイミング変更要否判断部304は、CMU(A)307、CMU(B)308からのメッセージ受信時間に基づいて、CMUのメッセージ送信タイミングを変更する必要があるかどうかを判断する(S504)。
Next, the transmission timing change
ここでは、CMU(A)307のメッセージ受信時間とCMU(B)308のメッセージ受信時間の間隔はしきい値超であるため、変更する必要があると判断し、ステップS505へ進む。 Here, since the interval between the message reception time of CMU (A) 307 and the message reception time of CMU (B) 308 exceeds the threshold, it is determined that it needs to be changed, and the process proceeds to step S505.
次に、BMU301は、CMUの送信タイミングのずらし時間を決定する(S505)。ここでは、連続したメッセージのメッセージ受信時間の間隔をしきい値以下にするため、−30msとする。
Next, the
そして、BMU301の第1の送信タイミング変更メッセージ送信部305は、メッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信する(S506)。ここでは、連続した複数のメッセージの内、後から受信したメッセージを送信したCMU(B)308の送信タイミングを変更するため、CMU(B)308のメッセージ受信IDである、「0x250」を第1の送信タイミング変更メッセージのヘッダ801のIDへ設定し、ペイロード802のずらし時間にS505で決定したずらし時間である−30msを設定する。
Then, the first transmission timing change
次に、CMU(A)307、CMU(B)308のメッセージ受信時の動作について説明する。 Next, the operation of the CMU (A) 307 and CMU (B) 308 when receiving a message will be described.
CMU(A)307の通信インタフェース部309は、BMU301からメッセージを受信したかどうかを判断する(S601)。ここでは、BMU301は、第1の送信タイミング変更メッセージのIDとして、「0x250」を設定しているため、CMU(A)307は、メッセージを受信していないと判断し、受信時の動作を終了する。
The
一方で、CMU(B)308の通信インタフェース部309は、BMU301からメッセージを受信したかどうかを判断する(S601)。ここでは、BMU301は、第1の送信タイミング変更メッセージのIDとして、「0x250」を設定しているため、CMU(B)308は、メッセージを受信したと判断し、ステップS602へ進む。
On the other hand, the
BMU301からメッセージを受信したCMU(B)308は、受信したメッセージがメッセージ送信タイミング変更命令とずらし時間を含んだ第1の送信タイミング変更メッセージであるかどうかを判断する(S602)。ここでは、BMU301は、メッセージのペイロード802に、送信タイミング変更命令とずらし時間を含めているため、CMU(B)308は、受信したメッセージが第1の送信タイミング変更メッセージであると判断し、ステップS603へ進む。
The CMU (B) 308 that has received the message from the
次に、CMU(B)308は第1の送信タイミング変更メッセージからずらし時間を抽出する(S603)。ここでは、第1の送信タイミング変更メッセージのずらし時間には、−30msが含まれているため、−30msが抽出される。 Next, the CMU (B) 308 extracts a shift time from the first transmission timing change message (S603). Here, since the shift time of the first transmission timing change message includes -30 ms, -30 ms is extracted.
最後に、CMU(B)308は、図8の(b)のように、第1の送信タイミング変更メッセージに含まれていたずらし時間である−30msだけ、自身の送信タイミングをずらす。 Finally, as shown in FIG. 8B, the CMU (B) 308 shifts its transmission timing by −30 ms, which is the shift time included in the first transmission timing change message.
このように、第1の制御装置であるBMU301が所定周期でメッセージを送信する複数の第2の制御装置(CMU(A)307、CMU(B)308)から受信したメッセージの内、連続したメッセージの受信時間の間隔が、所定の値超であった場合、第1の制御装置は第2の制御装置の送信タイミングの変更が必要であると判断し、送信タイミングの変更要否判断に使用したメッセージを送信した第2の制御装置の内一つの第2の制御装置へ、メッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第1の制御装置が指定したずらし時間だけ変更することで、複数の第2の制御装置の送信タイミングの間隔を狭めるように変更することができ、第1の制御装置がすべての第2の制御装置のメッセージを短時間で受信することができる。
As described above, continuous messages are received from the plurality of second control devices (CMU (A) 307 and CMU (B) 308) that the
また、第1の制御装置は、第2の制御装置からのメッセージ受信時間のみによって、第2の制御装置の送信タイミングの変更要否を決定することができるため、第1の制御装置の送信タイミング変更にかかる処理負荷をできる限り抑えることができる。 Further, since the first control device can determine whether or not the transmission timing of the second control device needs to be changed based only on the message reception time from the second control device, the transmission timing of the first control device can be determined. The processing load related to the change can be suppressed as much as possible.
さらに、第1の制御装置は一つの第2の制御装置のみに送信タイミング変更に関するメッセージを送信すればよいため、送信タイミング変更に関して多くのメッセージを必要としない。 Furthermore, since the first control device only needs to transmit a message related to the transmission timing change to only one second control device, many messages are not necessary for the transmission timing change.
また上記の例では、第1の制御装置であるBMU301が、送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置(CMU(A)307、CMU(B)308)の内、メッセージ受信時間が遅かったCMU(B)308へ第1の送信タイミング変更メッセージを送信し、CMU(B)308の送信タイミングを早くする方向へ変更することとしたが、メッセージ受信時間が早いCMU(A)307へ第1の送信タイミング変更メッセージを送信し、CMU(A)307の送信タイミングを遅くする方向へずらすことによって、複数の第2の制御装置の送信タイミングの間隔を狭めるように送信タイミングを変更することもでき、同様の効果が得られる。
In the above example, the
また上記の例では、送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置(CMU(A)307、CMU(B)308)の内、一つのCMU(B)308へメッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信することとしたが、メッセージ送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置(CMU(A)307、CMU(B)308)のすべての制御装置へ第1の送信タイミング変更メッセージを送信し、送信タイミングをずらすことによって、複数の第2の制御装置の送信タイミングの間隔を狭めるように送信タイミングを変更することにでき、同様の効果が得られる。 In the above example, the message is transmitted to one CMU (B) 308 among the second control devices (CMU (A) 307 and CMU (B) 308) that have transmitted the message used for determining whether or not the transmission timing needs to be changed. Although the first transmission timing change message including the timing change command and the shift time is transmitted, the second control device (CMU (A) 307 that has transmitted the message used for determining whether the message transmission timing change is necessary or not is transmitted. , The first transmission timing change message is transmitted to all the control devices of the CMU (B) 308), and the transmission timings are reduced so as to narrow the transmission timing intervals of the plurality of second control devices by shifting the transmission timings. The same effect can be obtained.
また、複数の第2の制御装置の送信タイミングを変更することで、第2の制御装置の送信タイミングのずらし時間を小さくすることができる。 Further, by changing the transmission timings of the plurality of second control devices, the transmission timing shift time of the second control device can be reduced.
実施の形態3.
図9は本発明の実施の形態3によるバッテリ制御システムの構成を示す図である。図9のように、このバッテリ制御システム400では、実施の形態1および実施の形態2と同様に、第1の制御装置であるBMU401と、第2の制御装置であるCMU(A)407、CMU(B)408から構成されている。
FIG. 9 is a diagram showing a configuration of a battery control system according to the third embodiment of the present invention. As shown in FIG. 9, in the
CMU(A)407、CMU(B)408の構成・機能は等しい。さらに、第2の制御装置としてCMU(A)407、CMU(B)408の2つがCANネットワーク406に接続されているとしているが、3つ以上接続されていても良い。 The configurations and functions of the CMU (A) 407 and the CMU (B) 408 are the same. Furthermore, although two CMU (A) 407 and CMU (B) 408 are connected to the CAN network 406 as the second control device, three or more may be connected.
BMU401は、通信インタフェース部402と、メッセージ受信時間取得部403と、送信タイミング変更要否判断部404と、第2の送信タイミング変更メッセージ送信部405から構成される。CMU(A)407、CMU(B)408は、それぞれ通信インタフェース部409と、送信タイミング変更部410と、タイミング変更時間記憶部411から構成される。
The
CMU(A)407はメッセージID:「0x100」のメッセージを所定周期で送信し、「0x150」のメッセージを受信する。また、CMU(B)408はメッセージID:「0x200」のメッセージを所定周期で送信し、「0x250」のメッセージを受信する。また、それぞれのタイミング変更時間記憶部411には、ずらし時間として30msが記憶されている。
The CMU (A) 407 transmits a message ID: “0x100” in a predetermined cycle and receives a message “0x150”. Also, the CMU (B) 408 transmits a message ID: “0x200” in a predetermined cycle and receives a message “0x250”. Each timing change
また、連続した複数のメッセージの受信時間の間隔が、しきい値(40ms)未満であった場合、CMUのメッセージ送信タイミングの変更が必要であると判断する。 Further, if the interval between the reception times of a plurality of consecutive messages is less than the threshold (40 ms), it is determined that the CMU message transmission timing needs to be changed.
さらにここでは、連続した複数の受信メッセージの内、後から受信したメッセージを送信したCMUの送信タイミングを、遅くする方向へずらすように変更する。 Furthermore, here, the transmission timing of the CMU that has transmitted a message received later from among a plurality of consecutive received messages is changed so as to be delayed.
次に、図10を用いてBMU401のメッセージ受信時の動作を説明する。図10は実施の形態3における第1の制御装置の動作を説明するフローチャートである。
Next, the operation when the
ステップS1201では、BMU401の通信インタフェース部402は、CMU(A)407またはCMU(B)408からメッセージを受信する。
In step S1201, the
ステップS1202では、BMU401のメッセージ受信時間取得部403が、メッセージ受信時間を求める。
In step S1202, the message reception
ステップS1203では、CMUから受信したメッセージが偶数番目のメッセージであるかどうかを判断する。偶数番目のメッセージである場合、ステップS1204へ進み、奇数番目のメッセージである場合、本動作を終了する。 In step S1203, it is determined whether the message received from the CMU is an even-numbered message. If it is an even-numbered message, the process proceeds to step S1204. If it is an odd-numbered message, this operation is terminated.
ステップS1204では、BMU401の送信タイミング変更要否判断部404が、メッセージ受信時間に基づいて、CMUのメッセージ送信タイミングを変更する必要があるかどうかを判断する。変更する必要がある場合、ステップS1205へ進み、変更する必要が無い場合、本動作を終了する。送信タイミング変更要否判断部404は該偶数番目のメッセージとその前の奇数番目のメッセージの受信時間の間隔が、上述のしきい値(40ms)未満であった場合、CMUのメッセージ送信タイミングの変更が必要であると判断する。
In step S1204, the transmission timing change
ステップS1205では、BMU401の第2の送信タイミング変更メッセージ送信部405が、メッセージ送信タイミング変更命令を含んだ、第2の送信タイミング変更メッセージを送信する。
In step S1205, the second transmission timing change
上述したBMU401の処理は、メッセージを受信するたびに実施される。また上述した処理以外にも処理は存在するが、本例の特徴には関連が無いため、説明を省略する。
The above-described processing of the
次に図11を用いて、CMU(A)407、CMU(B)408のメッセージ受信時の動作を説明する。図11は実施の形態3における第2の制御装置の動作を説明するフローチャートである。CMU(A)407、CMU(B)408は同じ動作をするため、ここではCMU(A)407のみを対象として説明する。 Next, the operation of the CMU (A) 407 and CMU (B) 408 when receiving a message will be described with reference to FIG. FIG. 11 is a flowchart for explaining the operation of the second control device according to the third embodiment. Since the CMU (A) 407 and the CMU (B) 408 operate in the same manner, only the CMU (A) 407 will be described here.
ステップS1301では、CMU(A)407の通信インタフェース部409は、BMU401からメッセージを受信したかどうかを判断する。メッセージを受信したと判断した場合、ステップS1302へ進み、受信していないと判断した場合、本動作を終了する。
In step S1301, the
ステップS1302では、受信したメッセージがメッセージ送信タイミング変更命令を含んだ第2の送信タイミング変更メッセージであるかどうかを判断する。受信したメッセージが第2の送信タイミング変更メッセージであると判断した場合、ステップS1303へ進み、第2の送信タイミング変更メッセージで無いと判断した場合、本動作を終了する。 In step S1302, it is determined whether the received message is a second transmission timing change message including a message transmission timing change command. If it is determined that the received message is the second transmission timing change message, the process proceeds to step S1303. If it is determined that the received message is not the second transmission timing change message, this operation is terminated.
ステップS1303では、自身のタイミング変更時間記憶部411からずらし時間を抽出する。
In step S1303, the shift time is extracted from its own timing change
ステップS1304では、CMU(A)407の送信タイミング変更部410が、抽出したずらし時間を基に自身の送信タイミングを変更する。
In step S1304, the transmission
上述したCMU(A)407の処理は、メッセージを受信するたびに実施される。また上述した処理以外にも処理は存在するが、本例の特徴には関連が無いため、説明を省略する。 The process of CMU (A) 407 described above is performed every time a message is received. Although there are processes other than those described above, the description is omitted because they are not related to the features of this example.
図12は本実施の形態3における、第2の送信タイミング変更メッセージのメッセージフォーマットである。第2の送信タイミング変更命令メッセージのヘッダ1501は、SOF(Start Of Frame)、メッセージID、CRC(Cyclic Redundancy Check)などを含み、ペイロード1502は、メッセージ送信タイミング変更命令を含む。
FIG. 12 shows a message format of the second transmission timing change message in the third embodiment. The
次に、バッテリ制御システム400において本実施の形態3の特徴となる、CMU(A)407、CMU(B)408がBMU401から受信したメッセージ送信タイミング変更命令を含んだ第2の送信タイミング変更メッセージの内容と自身で記憶するずらし時間に基づいて、自身の送信タイミングを変更する手順について図10から図12を用いて詳述する。ここでは、図13の(a)に示すように、BMU401は、CMU(A)407からメッセージIDが「0x100」のメッセージを、CMU(B)408からメッセージIDが「0x200」のメッセージを、20ms間隔で連続して受信し、2つのメッセージの受信時間の間隔がしきい値(40ms)未満であるとする。
Next, in the
まず、BMU401のメッセージ受信時の動作について説明する。BMU401の通信インタフェース部402は、CMU(A)407からメッセージIDが「0x100」のメッセージを受信する(S1201)。
First, the operation of the
次に、BMU401のメッセージ受信時間取得部403はCMU(A)407からのメッセージ受信時間を求める(S1202)。
Next, the message reception
そしてBMU401は、CMU(A)407から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S1203)。この段階では、BMU401はCMU(A)407のメッセージしか受信していないため、奇数番目と判断し、本動作を終了する。
The
次に、BMU401の通信インタフェース部402がCMU(B)408からメッセージIDが「0x200」のメッセージを受信する(S1201)。
Next, the
そして、BMU401のメッセージ受信時間取得部403はCMU(B)408からのメッセージ受信時間を求める(S1202)。
Then, the message reception
そしてBMU401は、CMU(B)408から受信したメッセージが偶数番目のメッセージであるかどうかを判断する(S1203)。この段階では、BMU401はCMU(A)407およびCMU(B)408のメッセージを受信しているため、2つ目のメッセージであり、偶数番目と判断し、ステップS1204へ進む。
The
次にBMU401の送信タイミング変更要否判断部404は、CMU(A)407、CMU(B)408からのメッセージ受信時間に基づいて、CMUのメッセージ送信タイミングを変更する必要があるかどうかを判断する(S1204)。
Next, the transmission timing change
ここでは、CMU(A)407のメッセージ受信時間とCMU(B)408のメッセージ受信時間の間隔はしきい値未満であるため、変更する必要があると判断し、ステップS1205へ進む。 Here, since the interval between the message reception time of CMU (A) 407 and the message reception time of CMU (B) 408 is less than the threshold value, it is determined that it needs to be changed, and the process proceeds to step S1205.
そして、BMU401は、メッセージ送信タイミング変更命令を含んだ、第2の送信タイミング変更メッセージを送信する(S1205)。ここでは連続した複数のメッセージの内、後から受信したメッセージを送信したCMU(B)408の送信タイミングを変更するため、CMU(B)408のメッセージ受信IDである、「0x250」を第2の送信タイミング変更メッセージのヘッダ1501のIDへ設定し、ペイロード1502にメッセージ送信タイミング変更命令を設定する。
Then, the
次に、CMU(A)407、CMU(B)408のメッセージ受信時の動作について説明する。 Next, the operation of the CMU (A) 407 and CMU (B) 408 when receiving a message will be described.
CMU(A)407の通信インタフェース部409は、BMU401からメッセージを受信したかどうかを判断する(S1301)。ここではBMU401は、第2の送信タイミング変更メッセージのIDとして、「0x250」を設定しているため、CMU(A)407は、メッセージを受信していないと判断し、受信時の動作を終了する。
The
一方で、CMU(B)408の通信インタフェース部409は、BMU401からメッセージを受信したかどうかを判断する(S1301)。ここではBMU401は、第2の送信タイミング変更メッセージのIDとして、「0x250」を設定しているため、CMU(B)408は、メッセージを受信したと判断し、ステップS1302へ進む。
On the other hand, the
BMU401からメッセージを受信したCMU(B)408は、受信したメッセージがメッセージ送信タイミング変更命令を含んだ第2の送信タイミング変更メッセージであるかどうかを判断する(S1302)。ここではBMU401は、メッセージのペイロード1502に、メッセージ送信タイミング変更命令を含めているため、CMU(B)408は、受信したメッセージが第2の送信タイミング変更メッセージであると判断し、ステップS1303へ進む。
The CMU (B) 408 that has received the message from the
次に、CMU(B)408は自身のタイミング変更時間記憶部411からずらし時間を抽出する(S1303)。ここではタイミング変更時間記憶部411には、30msが記憶されているため、30msが抽出される。
Next, the CMU (B) 408 extracts the shift time from its own timing change time storage unit 411 (S1303). Here, since 30 ms is stored in the timing change
最後に、CMU(B)408は、図13の(b)のように、抽出したずらし時間である30msだけ、自身の送信タイミングをずらす(S1304)。 Finally, the CMU (B) 408 shifts its transmission timing by 30 ms, which is the extracted shift time, as shown in FIG. 13B (S1304).
このように、第1の制御装置であるBMU401が所定周期でメッセージを送信する複数の第2の制御装置(CMU(A)407、CMU(B)408)から受信したメッセージの内、連続したメッセージの受信時間の間隔が、所定の値未満であった場合、第1の制御装置は第2の制御装置の送信タイミングの変更が必要であると判断し、送信タイミングの変更要否判断に使用したメッセージを送信した第2の制御装置の内一つの第2の制御装置へ、メッセージ送信タイミング変更命令を含んだ、第2の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第2の制御装置が記憶するずらし時間だけ変更することで、複数の第2の制御装置の送信タイミングの間隔を広げるように変更することができ、第2の制御装置のメッセージ再送信を低減することができる。
As described above, a continuous message among messages received from a plurality of second control devices (CMU (A) 407, CMU (B) 408) to which the
また、第1の制御装置は、第2の制御装置からのメッセージ受信時間のみによって、第2の制御装置の送信タイミングの変更要否を決定することができ、また、変更値であるずらし時間を、第2の制御装置に記憶させることで、第1の制御装置がずらし時間を決定する必要が無いため、第1の制御装置の送信タイミング変更にかかる処理負荷をできる限り抑えることができる。 Further, the first control device can determine whether or not the transmission timing of the second control device needs to be changed based only on the message reception time from the second control device, and can also set the shift time that is the change value. By storing in the second control device, it is not necessary for the first control device to determine the shift time, so that the processing load for changing the transmission timing of the first control device can be suppressed as much as possible.
さらに、第1の制御装置は一つの第2の制御装置のみに送信タイミング変更に関するメッセージを送信すればよいため、送信タイミング変更に関して多くのメッセージを必要としない。 Furthermore, since the first control device only needs to transmit a message related to the transmission timing change to only one second control device, many messages are not necessary for the transmission timing change.
また上記の例では、第1の制御装置であるBMU401が所定周期でメッセージを送信する複数の第2の制御装置(CMU(A)407、CMU(B)408)から受信したメッセージの内、連続したメッセージの受信時間の間隔が、所定の値未満であった場合、第1の制御装置は第2の制御装置の送信タイミングの変更が必要であると判断したが、上記実施の形態2のように所定の値超であった場合、送信タイミングの変更が必要であると判断し、送信タイミングの変更要否判断に使用したメッセージを送信した第2の制御装置の内一つの第2の制御装置へ、送信タイミング変更命令を含んだ、第2の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第2の制御装置が記憶するずらし時間だけ変更することで、複数の第2の制御装置の送信タイミングの間隔を狭めるように変更することができ、第1の制御装置がすべての第2の制御装置のメッセージを短時間で受信することができる。
In the above example, the
また、変更値であるずらし時間を、第2の制御装置に記憶させることで、第1の制御装置がずらし時間を決定する必要が無いため、第1の制御装置の送信タイミング変更にかかる処理負荷をできる限り抑えることができる。 Moreover, since the shift time which is a change value is memorize | stored in a 2nd control apparatus, since the 1st control apparatus does not need to determine a shift time, the processing load concerning the transmission timing change of a 1st control apparatus Can be suppressed as much as possible.
さらに、第1の制御装置は一つの第2の制御装置のみに送信タイミング変更に関するメッセージを送信すればよいため、送信タイミング変更に関して多くのメッセージを必要としない。 Furthermore, since the first control device only needs to transmit a message related to the transmission timing change to only one second control device, many messages are not necessary for the transmission timing change.
本発明にかかる制御システムによれば、周期的にメッセージを送信する第2の制御装置からのメッセージ受信時間に基づいて、第1の制御装置は特定の第2の制御装置へ、メッセージ送信タイミング変更命令とずらし時間を含んだ、第1の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第1の制御装置が指定したずらし時間だけ変更することで、第2の制御装置の送信タイミングを変更することができる。
このように、第1の制御装置は第2の制御装置からのメッセージ受信時間のみによって、第2の制御装置の送信タイミングの変更要否および変更値を決定することができるため、第1の制御装置の送信タイミング変更にかかる処理負荷をできる限り抑えることができる。
According to the control system of the present invention, the first control device changes the message transmission timing to the specific second control device based on the message reception time from the second control device that periodically transmits the message. The first transmission timing change message including the command and the shift time is transmitted, and the transmission timing of the second control device is changed by the shift time specified by the first control device, so that the second control device Transmission timing can be changed.
In this way, the first control device can determine whether or not the transmission timing of the second control device needs to be changed and the change value based only on the message reception time from the second control device. The processing load for changing the transmission timing of the apparatus can be suppressed as much as possible.
また、本発明にかかる制御システムによれば、周期的にメッセージを送信する複数の第2の制御装置からのメッセージ受信時間に基づいて、第1の制御装置は特定の第2の制御装置へ、メッセージ送信タイミング変更命令を含んだ、第2の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを、第2の制御装置が記憶するずらし時間だけ変更することで、第2の制御装置の送信タイミングを変更することができる。
このように、第1の制御装置は第2の制御装置からのメッセージ受信時間のみによって、第2の制御装置の送信タイミングの変更要否を決定することができ、また、変更値であるずらし時間を、第2の制御装置に記憶させることで、第1の制御装置がずらし時間を決定する必要が無いため、第1の制御装置の送信タイミング変更にかかる処理負荷をできる限り抑えることができる。
Further, according to the control system according to the present invention, the first control device sends the specific second control device to the specific second control device based on the message reception times from the plurality of second control devices that periodically transmit messages. The second control is performed by transmitting the second transmission timing change message including the message transmission timing change command, and changing the transmission timing of the second control device by the shift time stored in the second control device. The transmission timing of the device can be changed.
In this way, the first control device can determine whether or not the transmission timing of the second control device needs to be changed based only on the message reception time from the second control device, and the shift time that is the change value. Is stored in the second control device, the first control device does not need to determine the shift time, and therefore the processing load required for changing the transmission timing of the first control device can be suppressed as much as possible.
さらに、本発明にかかる制御システムによれば、第1の制御装置が第2の制御装置から受信したメッセージの内、連続したメッセージの受信時間の間隔が、しきい値未満であった場合、複数の第2の制御装置の送信タイミングの間隔を広げるように、第2の制御装置の送信タイミングを変更することで、第2の制御装置のメッセージの再送信を低減させることができる。 Further, according to the control system of the present invention, when the interval of the reception time of consecutive messages among the messages received by the first control device from the second control device is less than the threshold, a plurality of By changing the transmission timing of the second control device so as to widen the transmission timing interval of the second control device, it is possible to reduce the retransmission of the message of the second control device.
さらにまた、本発明にかかる制御システムによれば、第1の制御装置が第2の制御装置から受信したメッセージの内、連続したメッセージの受信時間の間隔が、しきい値超であった場合、複数の第2の制御装置の送信タイミングの間隔を狭めるように、第2の制御装置の送信タイミングを変更することで、第1の制御装置がすべての第2の制御装置のメッセージを短時間で受信することができる。 Furthermore, according to the control system according to the present invention, among the messages received by the first control device from the second control device, the interval of the continuous message reception times exceeds a threshold value, By changing the transmission timing of the second control device so as to narrow the transmission timing intervals of the plurality of second control devices, the first control device can send messages of all the second control devices in a short time. Can be received.
さらにまた、本発明にかかる制御システムによれば、メッセージ送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置の内、一つの第2の制御装置のみに第1の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第1の制御装置が指定したずらし時間だけ変更することで、複数の第2の制御装置の送信タイミングの間隔を、広げたり狭めたりすることができる。このように、第1の制御装置は、一つの第2の制御装置のみに送信タイミング変更に関するメッセージを送信すればよいため、送信タイミング変更に関して多くのメッセージを必要としない。 Furthermore, according to the control system of the present invention, the first transmission timing change is made only to one second control device among the second control devices that have transmitted the message used for determining whether the message transmission timing change is necessary. By transmitting a message and changing the transmission timing of the second control device by the shift time specified by the first control device, the intervals of the transmission timings of the plurality of second control devices are widened or narrowed. Can do. As described above, the first control device only needs to transmit a message related to the transmission timing change to only one second control device, and thus does not require many messages regarding the transmission timing change.
さらにまた、本発明にかかる制御システムによれば、メッセージ送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置の内、一つの第2の制御装置のみに第2の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第2の制御装置が記憶するずらし時間だけ変更することで、複数の第2の制御装置の送信タイミングの間隔を、広げたり狭めたりすることができる。このように、第1の制御装置は、一つの第2の制御装置のみに送信タイミング変更に関するメッセージを送信すればよいため、送信タイミング変更に関して多くのメッセージを必要としない。 Furthermore, according to the control system of the present invention, the second transmission timing change is made only to one second control device among the second control devices that have transmitted the message used for determining whether or not the message transmission timing change is necessary. By transmitting a message and changing the transmission timing of the second control device by the shift time stored in the second control device, the intervals of the transmission timings of the plurality of second control devices are widened or narrowed. Can do. As described above, the first control device only needs to transmit a message related to the transmission timing change to only one second control device, and thus does not require many messages regarding the transmission timing change.
さらにまた、本発明にかかる制御システムによれば、メッセージ送信タイミング変更要否判断に使用したメッセージを送信した第2の制御装置のすべてに第1の送信タイミング変更メッセージを送信し、第2の制御装置の送信タイミングを第1の制御装置が指定したずらし時間だけ変更することで、複数の第2の制御装置の送信タイミングの間隔を、広げたり狭めたりすることができる。このように、第1の制御装置は、すべての第2の制御装置ではなく、特定の第2の制御装置のみに送信タイミング変更に関するメッセージを送信すればよいため、送信タイミング変更に関して多くのメッセージを必要としない。また、複数の第2の制御装置の送信タイミングを変更することで、第2の制御装置の送信タイミングのずらし時間を小さくすることができる。 Furthermore, according to the control system of the present invention, the first transmission timing change message is transmitted to all of the second control devices that have transmitted the message used for determining whether or not the message transmission timing is changed, and the second control is performed. By changing the transmission timing of the device by the shift time designated by the first control device, the intervals of the transmission timings of the plurality of second control devices can be widened or narrowed. As described above, the first control device only needs to send a message related to the transmission timing change to only the specific second control device, not to all the second control devices. do not need. Further, by changing the transmission timings of the plurality of second control devices, the transmission timing shift time of the second control device can be reduced.
なお、本発明は上記各実施の形態に限定されるものではなく、これらの可能な組み合わせを全て含むことは云うまでもない。 The present invention is not limited to the above-described embodiments, and it goes without saying that all of these possible combinations are included.
さらに上記説明では本発明による通信制御システムをバッテリ制御システムに適用した場合について説明したが、本発明はこれに限定されるものではなく、各種ネットワークシステムに適用可能であり、同様な効果を奏する。 Further, in the above description, the case where the communication control system according to the present invention is applied to a battery control system has been described. However, the present invention is not limited to this, and can be applied to various network systems and has the same effects.
300,400 バッテリ制御システム、301,401 BMU、302,402 通信インタフェース部、303,403 メッセージ受信時間取得部、304,404 送信タイミング変更要否判断部、305 第1の送信タイミング変更メッセージ送信部、306,406 CANネットワーク、307,308,407,408 CMU、309,409 通信インタフェース部、310,410 送信タイミング変更部、405 第2の送信タイミング変更メッセージ送信部、411 タイミング変更時間記憶部、801,1501 ヘッダ、802,1502 ペイロード。 300, 400 battery control system, 301, 401 BMU, 302, 402 communication interface unit, 303, 403 message reception time acquisition unit, 304, 404 transmission timing change necessity determination unit, 305 first transmission timing change message transmission unit, 306, 406 CAN network, 307, 308, 407, 408 CMU, 309, 409 Communication interface unit, 310, 410 Transmission timing change unit, 405 Second transmission timing change message transmission unit, 411 Timing change time storage unit, 801 1501 header, 802, 1502 payload.
Claims (8)
A first control device and a plurality of second control devices each transmitting a message to the first control device at a predetermined cycle are connected to a network, and the first control device is connected to the second control device. a communication control system and transmits the transmission timing change message to change the message transmission timing to the second control unit according to the received time interval of the message consecutive to receive.
前記ネットワークを介してメッセージの送受信を行う通信インタフェース部と、
前記第2の制御装置から受信するメッセージの受信時間を求めるメッセージ受信時間取得部と、
メッセージ受信時間間隔を基に前記第2の制御装置のメッセージ送信タイミングの変更の要否を判断する送信タイミング変更要否判断部と、
前記送信タイミング変更要否判断部の判断結果に基づいて、特定の前記第2の制御装置へメッセージ送信タイミング変更命令とずらし時間を含んだ第1の送信タイミング変更メッセージを送信する第1の送信タイミング変更メッセージ送信部と、を含み、
前記第2の制御装置がそれぞれ、
前記ネットワークを介してメッセージの送受信を行う通信インタフェース部と、
受信した前記第1の送信タイミング変更メッセージの内容に基づきメッセージの送信タイミングを変更する送信タイミング変更部と、を含む、
ことを特徴とする請求項1に記載の通信制御システム。 The first control device comprises:
A communication interface unit for transmitting and receiving messages via the network;
A message reception time acquisition unit for obtaining a reception time of a message received from the second control device;
A transmission timing change necessity determination unit that determines whether or not the message transmission timing of the second control device needs to be changed based on a message reception time interval;
First transmission timing for transmitting a first transmission timing change message including a message transmission timing change command and a shift time to the specific second control device based on the determination result of the transmission timing change necessity determination unit A change message sending unit,
Each of the second control devices is
A communication interface unit for transmitting and receiving messages via the network;
A transmission timing change unit that changes the transmission timing of the message based on the content of the received first transmission timing change message,
The communication control system according to claim 1.
前記ネットワークを介してメッセージの送受信を行う通信インタフェース部と、
前記第2の制御装置から受信するメッセージの受信時間を求めるメッセージ受信時間取得部と、
メッセージ受信時間間隔を基に前記第2の制御装置のメッセージ送信タイミングの変更の要否を判断する送信タイミング変更要否判断部と、
前記送信タイミング変更要否判断部の判断結果に基づいて、特定の前記第2の制御装置へメッセージ送信タイミング変更命令を含んだ第2の送信タイミング変更メッセージを送信する第2の送信タイミング変更メッセージ送信部と、を含み、
前記第2の制御装置がそれぞれ、
前記ネットワークを介してメッセージの送受信を行う通信インタフェース部と、
前記メッセージの送信タイミングのずらし時間を記憶するタイミング変更時間記憶部と、
受信した前記第2の送信タイミング変更メッセージの内容および記憶された前記ずらし時間に基づきメッセージの送信タイミングを変更する送信タイミング変更部と、を含む、
ことを特徴とする請求項1に記載の通信制御システム。 The first control device comprises:
A communication interface unit for transmitting and receiving messages via the network;
A message reception time acquisition unit for obtaining a reception time of a message received from the second control device;
A transmission timing change necessity determination unit that determines whether or not the message transmission timing of the second control device needs to be changed based on a message reception time interval;
Second transmission timing change message transmission for transmitting a second transmission timing change message including a message transmission timing change command to the specific second control device based on the determination result of the transmission timing change necessity determination unit. And
Each of the second control devices is
A communication interface unit for transmitting and receiving messages via the network;
A timing change time storage unit for storing a shift time of the transmission timing of the message;
A transmission timing change unit that changes the transmission timing of the message based on the content of the received second transmission timing change message and the stored shift time,
The communication control system according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010243205A JP5178805B2 (en) | 2010-10-29 | 2010-10-29 | Communication control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010243205A JP5178805B2 (en) | 2010-10-29 | 2010-10-29 | Communication control system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012099877A JP2012099877A (en) | 2012-05-24 |
JP5178805B2 true JP5178805B2 (en) | 2013-04-10 |
Family
ID=46391352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010243205A Expired - Fee Related JP5178805B2 (en) | 2010-10-29 | 2010-10-29 | Communication control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5178805B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6048991B1 (en) * | 2015-10-28 | 2016-12-21 | 三菱電機株式会社 | Power conversion control system |
JP6113321B1 (en) * | 2016-04-05 | 2017-04-12 | 三菱電機株式会社 | Power conversion control system |
JP6437073B1 (en) * | 2017-10-12 | 2018-12-12 | 三菱電機株式会社 | Power conversion control system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000269989A (en) * | 1999-03-18 | 2000-09-29 | Hitachi Ltd | Collision avoidance system |
JP2003333048A (en) * | 2002-05-16 | 2003-11-21 | Denso Corp | Mounted vehicle communication control system |
JP4014533B2 (en) * | 2003-04-18 | 2007-11-28 | 日本電信電話株式会社 | Wireless access system and wireless access method |
JP4673749B2 (en) * | 2006-01-10 | 2011-04-20 | 株式会社オートネットワーク技術研究所 | Vehicle communication control unit and vehicle communication control system |
JP2007228338A (en) * | 2006-02-24 | 2007-09-06 | Fujitsu Ten Ltd | Electronic control unit and transmitting method of electronic control unit |
JP2007300331A (en) * | 2006-04-28 | 2007-11-15 | Auto Network Gijutsu Kenkyusho:Kk | Onboard database system |
-
2010
- 2010-10-29 JP JP2010243205A patent/JP5178805B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2012099877A (en) | 2012-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10893524B2 (en) | System and method for OFDMA resource management in WLAN | |
EP2445166B1 (en) | Method and device for controlling information channel flow | |
CN105191216A (en) | System and method for buffer status reporting for multi-stream aggregation | |
EP2925047B1 (en) | Method for transmitting and receiving data | |
CN112261613B (en) | Resource selection processing method and device and terminal | |
CN101978760A (en) | Hybrid multiple access method and system in wireless networks with extended content free access period | |
JP2004274321A (en) | Communication method and communication terminal device | |
JP2008187336A (en) | Communicating system and equipment, and flow control method | |
US7996534B2 (en) | File distribution in wireless networks | |
JP2010135909A (en) | Radio communication apparatus, and radio communication method | |
JP5178805B2 (en) | Communication control system | |
CN106411443A (en) | Message transmission method, in-vehicle network system and vehicle | |
EP3304996B1 (en) | Adaptive time slot allocation in tsch wireless communication network | |
US9985902B2 (en) | Method and system for providing deterministic quality of service for communication devices | |
KR20120003869A (en) | Control device in a network, network, and routing method for messages in a network | |
US7693127B2 (en) | Time-division synchronous wireless modem device | |
CN104349475A (en) | TDD-FDD (time division duplex-frequency division duplex) cross-carrier scheduling method and device | |
US9538365B2 (en) | Method for transmitting and receiving data | |
CN111817824B (en) | Information transmission method, terminal equipment and control node | |
US10856297B2 (en) | Pre-calculation of sub-event RF channel | |
CN102067712B (en) | communication signal transmission method | |
CN110892748A (en) | Link processing method, device and storage medium | |
CN101902381A (en) | In having hiding user's wireless data bus system, datagram is distributed to time slot method | |
JP4563210B2 (en) | Communication control method, communication node, and communication system | |
CN103281732A (en) | Method used for improving wireless sensor network channel efficiency |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120927 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121009 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121107 |
|
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: 20121211 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130108 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5178805 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
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 |
|
LAPS | Cancellation because of no payment of annual fees |