JP2016054385A - Allocation device, allocation method, computer program, and manufacturing method for relay device - Google Patents

Allocation device, allocation method, computer program, and manufacturing method for relay device Download PDF

Info

Publication number
JP2016054385A
JP2016054385A JP2014179238A JP2014179238A JP2016054385A JP 2016054385 A JP2016054385 A JP 2016054385A JP 2014179238 A JP2014179238 A JP 2014179238A JP 2014179238 A JP2014179238 A JP 2014179238A JP 2016054385 A JP2016054385 A JP 2016054385A
Authority
JP
Japan
Prior art keywords
message
messages
transmission
priority
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014179238A
Other languages
Japanese (ja)
Inventor
達也 中島
Tatsuya Nakajima
達也 中島
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2014179238A priority Critical patent/JP2016054385A/en
Publication of JP2016054385A publication Critical patent/JP2016054385A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an allocation device, an allocation method and a computer program, which determine combinations of messages and mail transmission boxes which can reduce further time required for transmission of the message, and a manufacturing method for a relay device that can surely prevent relay from delaying and reduce further time required for the relay.SOLUTION: The allocation device, when a communication device equipped with a plurality of mail transmission boxes transmits a plurality of messages received from the outside respectively, determines combinations of the messages and the mail transmission boxes in allocating each message to any of the mail transmission boxes by simulating behavior of the communication device in transmission and reception of the messages, which comprises: a storage portion that stores the plurality of messages and priorities attached to respective messages; and a deciding portion that decides respective combinations so that orders of the priorities attached to the plurality of messages to be combined with at least one mail transmission box, of the plurality of messages stored in the storage portion, are continuous.SELECTED DRAWING: Figure 9

Description

本発明は、複数のメッセージの夫々を複数の送信メールボックスに割り当てるに際してのメッセージ及び送信メールボックスの組を決定する割当装置、割当方法、及びコンピュータプログラムに関する。また、当該決定に基づく中継装置の製造方法に関する。   The present invention relates to an assigning device, an assigning method, and a computer program for determining a set of a message and a sending mailbox when assigning each of a plurality of messages to a plurality of sending mailboxes. Moreover, it is related with the manufacturing method of the relay apparatus based on the said determination.

従来、車両制御の分野では、車内に配される機器夫々を制御する多数のECU(Electronic Control Unit)を通信バスで接続し、相互にメッセージを送受信させて、多様な処理を行なう構成が一般的となっている。1つの通信バスに接続されるECUの数に制限があること、又はECUの役割によって通信速度が異なることから、ECUを複数の群に分け、群毎に1つの通信バスに接続し、異なる通信バス間を中継装置(ゲートウェイ)で接続する構成が採用されている(例えば、特許文献1参照)。   Conventionally, in the field of vehicle control, a configuration in which a large number of ECUs (Electronic Control Units) that control each device arranged in a vehicle are connected by a communication bus and messages are transmitted and received to perform various processes. It has become. Since there is a limit to the number of ECUs connected to one communication bus, or because the communication speed varies depending on the role of the ECU, the ECUs are divided into a plurality of groups, and each group is connected to one communication bus for different communication. A configuration in which buses are connected by a relay device (gateway) is employed (see, for example, Patent Document 1).

特開2012−65171号公報JP 2012-65171 A

一般に中継装置又はECUを含む通信装置は、接続される通信バス毎に送信メールボックスを備え、受信したメッセージを通信バスに送出するとき、送信メールボックスに当該メッセージを割り当てる。接続している通信バスを介して例えばCAN(Controller Area Network)プロトコルによって通信が行われる場合、通信装置は、当該通信バスに接続している他の通信装置と送信権の調停(アービトレーション)を行う。具体的には、通信装置は、送信メールボックスに割り当てられたメッセージが有する優先度に基づいてアービトレーションを行う。   In general, a communication device including a relay device or an ECU includes a transmission mailbox for each communication bus to be connected, and when a received message is sent to the communication bus, the message is assigned to the transmission mailbox. When communication is performed via a connected communication bus using, for example, a CAN (Controller Area Network) protocol, the communication device arbitrates transmission right with another communication device connected to the communication bus. . Specifically, the communication device performs arbitration based on the priority of a message assigned to the transmission mailbox.

また、一般に各送信メールボックスには、一のメッセージのみ割り当てることができ、同じ通信バスに送出されるべき複数のメッセージが通信装置に受信されている場合は、優先度に基づいてメッセージが送信メールボックスに順次割り当てられる。更に、通信装置が一の通信バスに対応する送信メールボックスを複数備える場合、当該通信装置は、各送信メールボックスに一のメッセージを割り当て、割り当てられた各メッセージ間で例えば最も優先度が高い一のメッセージについて、上記の送信権の調停を行う。そのため、例えば優先度の差が大きい2つのメッセージが一の送信メールボックスに割り当てられるように設定され、先に優先度の低いメッセージが当該一の送信メールボックスに割り当てられている場合、優先度の高いメッセージの送出に時間を要する虞がある。具体的には、当該優先度の低いメッセージよりも優先度の高い多数のメッセージが他の送信メールボックスに割り当てられるように設定されていた場合、当該多数のメッセージが通信バスに送出された後、当該優先度の低いメッセージについて送信権の調停が行われる。従って、当該一の送信メールボックスに割り当てられる優先度の高いメッセージの送出に時間を要することに起因して、車両制御に悪影響を及ぼす虞がある。   In general, only one message can be assigned to each outgoing mailbox, and when multiple messages to be sent to the same communication bus are received by the communication device, the message is sent based on the priority. Assigned to boxes sequentially. Further, when the communication device includes a plurality of transmission mailboxes corresponding to one communication bus, the communication device allocates one message to each transmission mailbox, and, for example, has the highest priority among the assigned messages. The above transmission right is arbitrated for the message. Therefore, for example, when two messages having a large priority difference are set to be assigned to one transmission mailbox, and a message having a lower priority is assigned to the one transmission mailbox, It may take time to send a high message. Specifically, if a large number of messages with a higher priority than the low priority messages are set to be assigned to other outgoing mailboxes, after the large number of messages are sent to the communication bus, The transmission right is arbitrated for the low priority message. Therefore, there is a possibility that the vehicle control may be adversely affected due to the time required for sending a high priority message assigned to the one transmission mailbox.

本発明は斯かる事情に鑑みてなされたものであり、その目的は、メッセージの送出に要する時間をより短縮可能なメッセージ及び送信メールボックスの組を決定する割当装置、割当方法、及びコンピュータプログラムを提供することにある。また、他の目的は、中継の遅延を確実に防止することができ、かつ中継に要する時間をより短縮することができる中継装置の製造方法を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide an allocating apparatus, an allocating method, and a computer program for determining a set of a message and a transmission mailbox that can further reduce the time required for message transmission. It is to provide. Another object of the present invention is to provide a method of manufacturing a relay device that can reliably prevent relay delay and can further reduce the time required for relay.

本発明に係る割当装置は、複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージを各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定する割当装置であって、前記複数のメッセージ及び各メッセージに対応する優先度を記憶する記憶部と、該記憶部に記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように、各組を決定する決定部とを備えることを特徴とする。   The assigning device according to the present invention includes a message and a transmission when assigning each message to one of the sending mailboxes when a communication device having a plurality of sending mailboxes sends a plurality of externally received messages. An allocation device that determines a set of mailboxes by simulating behavior when the communication device transmits and receives a message, the storage unit storing the plurality of messages and the priority corresponding to each message; A determination unit configured to determine each group such that a plurality of messages stored in the storage unit and a plurality of messages paired with at least one outgoing mailbox are in the order of priority corresponding thereto; It is characterized by that.

本発明にあっては、記憶部は、通信装置が外部から受信し、各送信する複数のメッセージと、各メッセージに対応する複数の優先度とを記憶する。決定部は、記憶部に記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように、各組を決定する。このような割当装置は、記憶部に記憶された複数のメッセージにおける優先度の順序を保持した状態で、異なる送信メールボックスに各メッセージを割り当て可能な組を決定することができる。例えば、複数のメッセージを3つの送信メールボックス夫々に割り当てるように組を決定する場合、割当装置は、優先順位が高位、中位、低位の一又は複数のメッセージを各送信メールボックスに割り当てるべく組を決定することができる。従って、一の送信メールボックスに割り当てられる優先度の高いメッセージが、他の送信メールボックスに割り当てられるメッセージに起因して、送信されるまでに時間を要するという事態を防止することができる。そのため、メッセージの送出に要する時間をより短縮可能なメッセージ及び送信メールボックスの組を決定することができる。   In the present invention, the storage unit stores a plurality of messages received by the communication device from the outside and transmitted, and a plurality of priorities corresponding to the messages. The determining unit determines each set so that the order of priority corresponding to each of a plurality of messages paired with at least one transmission mailbox among the plurality of messages stored in the storage unit is continuous. Such an assigning device can determine a set capable of assigning each message to different transmission mailboxes while maintaining the priority order of the plurality of messages stored in the storage unit. For example, when deciding a set so that a plurality of messages are assigned to each of three outgoing mailboxes, the assigning device assigns one or a plurality of messages having a high priority, a medium priority, and a low priority to each outgoing mailbox. Can be determined. Therefore, it is possible to prevent a situation in which it takes time until a message having a high priority assigned to one transmission mailbox is transmitted due to a message assigned to another transmission mailbox. Therefore, it is possible to determine a set of a message and a transmission mailbox that can further reduce the time required for sending the message.

本発明に係る割当装置は、前記記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する選択部と、前記複数のメッセージ夫々について、前記選択部が選択した順序で一の送信メールボックスに割り当てられたときにおける、前記通信装置が各メッセージを受信してから送信を完了するまでの所要時間を各算出する算出部と、前記算出部が算出した各所要時間が、所定の許容時間よりも短いか否かを各判定する判定部とを更に備え、前記決定部は、前記判定部が否と判定したメッセージに対応する優先度における最低の(又は最高の)優先度よりも低い(又は高い)優先度に対応する前記複数のメッセージ内のメッセージと、前記一の送信メールボックスとを組として決定するようにしてあることを特徴とする。   An allocating device according to the present invention includes a selection unit that sequentially selects a plurality of messages stored in the storage unit based on corresponding priorities, and a plurality of messages that are selected in the order selected by the selection unit. When the communication device is assigned to the transmission mailbox, the calculation unit for calculating the required time from the reception of each message to the completion of the transmission, and the required time calculated by the calculation unit are predetermined. And a determination unit that determines whether or not the allowable time is shorter than the allowable time, and the determination unit is based on the lowest (or highest) priority in the priority corresponding to the message that the determination unit determines to be negative. Further, the message in the plurality of messages corresponding to the lower (or higher) priority and the one transmission mailbox are determined as a set.

本発明にあっては、選択部は、記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する。算出部は、当該複数のメッセージ夫々について、選択部が選択した順序で一の送信メールボックスに割り当てられたときにおける所要時間を各算出する。所要時間は、通信装置がメッセージを受信してから送信を完了するまでの時間である。判定部は、算出部が算出した各所要時間が、所定の許容時間よりも短いか否かを各判定する。決定部は、判定部が否と判定したメッセージに対応する優先度の内、最低の優先度よりも低い優先度に対応する当該複数のメッセージ内のメッセージと、当該一の送信メールボックスとを組として決定する。従って、優先度の順序を保持した状態で、かつ許容時間以内に確実にメッセージを送信することができるメッセージ及び送信メールボックスの組を決定することができる。また同様に、決定部は、判定部が否と判定したメッセージに対応する優先度における最高の優先度よりも高い優先度に対応する当該複数のメッセージ内のメッセージと、当該一の送信メールボックスとを組として決定する。この場合も同様に、優先度の順序を保持した状態で、かつ許容時間以内に確実にメッセージを送信することができるメッセージ及び送信メールボックスの組を決定することができる。   In the present invention, the selection unit sequentially selects a plurality of messages stored in the storage unit based on the corresponding priority. The calculation unit calculates each required time when each of the plurality of messages is assigned to one transmission mailbox in the order selected by the selection unit. The required time is the time from when the communication device receives the message until the transmission is completed. The determination unit determines whether each required time calculated by the calculation unit is shorter than a predetermined allowable time. The determining unit is configured to combine a message in the plurality of messages corresponding to a priority lower than the lowest priority among the priorities corresponding to the messages determined by the determination unit as negative, and the one transmission mailbox. Determine as. Accordingly, it is possible to determine a set of a message and a transmission mailbox that can reliably transmit a message within the allowable time while maintaining the priority order. Similarly, the determination unit includes a message in the plurality of messages corresponding to a priority higher than the highest priority in the priority corresponding to the message determined by the determination unit, and the one transmission mailbox. Are determined as a pair. Similarly, in this case, it is possible to determine a set of a message and a transmission mailbox that can reliably transmit a message within the allowable time while maintaining the priority order.

本発明に係る割当装置は、前記記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する選択部と、前記複数のメッセージ夫々について、前記選択部が選択した順序で一の送信メールボックスに割り当てられたときにおける、前記通信装置が各メッセージを受信してから送信を完了するまでの所要時間を各算出する算出部と、対応する優先度の低い(又は高い)メッセージ順に、前記算出部が算出した所要時間が所定の許容時間よりも短いか否かを判定する判定部とを更に備え、前記決定部は、前記判定部が最初に否と判定したメッセージに対応する優先度よりも低い(又は高い)優先度に対応する前記複数のメッセージ内のメッセージと、前記一の送信メールボックスとを組として決定するようにしてあることを特徴とする。   An allocating device according to the present invention includes a selection unit that sequentially selects a plurality of messages stored in the storage unit based on corresponding priorities, and a plurality of messages that are selected in the order selected by the selection unit. When the communication device is assigned to the transmission mailbox, the calculation unit for calculating the time required from the reception of each message to the completion of the transmission, and the corresponding low priority (or high) message in order And a determination unit that determines whether or not the required time calculated by the calculation unit is shorter than a predetermined allowable time, and the determination unit prioritizes the message that the determination unit first determines to be negative A message in the plurality of messages corresponding to a lower (or higher) priority than the degree and the one outgoing mailbox are determined as a set. To.

本発明にあっては、選択部は、記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する。算出部は、複数のメッセージ夫々について、選択部に選択された順序で一の送信メールボックスに割り当てられたときにおける所要時間を各算出する。所要時間は、通信装置がメッセージを受信してから送信を完了するまでの時間である。判定部は、対応する優先度の低いメッセージ順に、算出部が算出した所要時間が所定の許容時間よりも短いか否かを判定する。決定部は、判定部が最初に否と判定したメッセージに対応する優先度よりも低い優先度に対応する当該複数のメッセージ内のメッセージと、当該一の送信メールボックスとを組として決定する。従って、優先度の順序を保持した状態で、かつ許容時間以内に確実にメッセージを送信することができるメッセージ及び送信メールボックスの組を決定することができる。また同様に、判定部は対応する優先度の高いメッセージ順に、算出部に算出された所要時間が所定の許容時間よりも短いか否かを判定する。決定部は、判定部が最初に否と判定したメッセージに対応する優先度よりも高い優先度に対応する当該複数のメッセージ内のメッセージと、当該一の送信メールボックスとを組として決定する。この場合も同様に、優先度の順序を保持した状態で、かつ許容時間以内に確実にメッセージを送信することができるメッセージ及び送信メールボックスの組を決定することができる。   In the present invention, the selection unit sequentially selects a plurality of messages stored in the storage unit based on the corresponding priority. The calculation unit calculates a required time when each of the plurality of messages is assigned to one transmission mailbox in the order selected by the selection unit. The required time is the time from when the communication device receives the message until the transmission is completed. The determination unit determines whether or not the required time calculated by the calculation unit is shorter than a predetermined allowable time in the order of corresponding low priority messages. The determination unit determines a message in the plurality of messages corresponding to a priority lower than the priority corresponding to the message that the determination unit first determines to be negative, and the one transmission mailbox as a set. Accordingly, it is possible to determine a set of a message and a transmission mailbox that can reliably transmit a message within the allowable time while maintaining the priority order. Similarly, the determination unit determines whether or not the required time calculated by the calculation unit is shorter than a predetermined allowable time in the order of corresponding high priority messages. The determination unit determines a message in the plurality of messages corresponding to a higher priority than the priority corresponding to the message that the determination unit first determines to be not, and the one transmission mailbox as a set. Similarly, in this case, it is possible to determine a set of a message and a transmission mailbox that can reliably transmit a message within the allowable time while maintaining the priority order.

本発明に係る割当装置は、前記算出部は、前記選択部がメッセージを選択する都度、該メッセージに係る前記所要時間を算出するようにしてあり、前記判定部は、前記算出部が所要時間を算出する都度、該所要時間が所定の許容時間よりも短いか否かを判定するようにしてあることを特徴とする。   In the allocating device according to the present invention, the calculation unit calculates the time required for the message every time the selection unit selects a message, and the determination unit determines the time required for the calculation unit. Each time it is calculated, it is determined whether or not the required time is shorter than a predetermined allowable time.

本発明にあっては、算出部は、選択部がメッセージを選択する都度、該メッセージに係る所要時間を算出する。判定部は、算出部が所要時間を算出する都度、当該所要時間が所定の許容時間よりも短いか否かを判定する。従って、判定部が最初に否と判定した場合、選択部、算出部、及び判定部が以降の処理を行うことなく、一の送信メールボックスと組をなすメッセージを決定することができるため、処理負担を軽減することができる。   In the present invention, each time the selection unit selects a message, the calculation unit calculates a time required for the message. Each time the calculation unit calculates the required time, the determination unit determines whether the required time is shorter than a predetermined allowable time. Therefore, when the determination unit first determines NO, the selection unit, the calculation unit, and the determination unit can determine a message paired with one transmission mailbox without performing subsequent processing. The burden can be reduced.

本発明に係る割当装置は、前記通信装置は、他の通信装置が送信するメッセージに対応する優先度よりも、自身が送信するメッセージに対応する優先度が高い場合、該メッセージを送信するものであり、前記選択部は、前記記憶部に記憶された複数のメッセージの中から対応する優先度が最低のメッセージを選択し、その後、対応する優先度が高い順にメッセージを順次選択するようにしてあることを特徴とする。   The allocation device according to the present invention is such that the communication device transmits the message when the priority corresponding to the message transmitted by itself is higher than the priority corresponding to the message transmitted by another communication device. The selecting unit selects a message having the lowest priority from the plurality of messages stored in the storage unit, and then sequentially selects the messages in order of the corresponding priority. It is characterized by that.

本発明にあっては、通信装置は、他の通信装置が送信するメッセージに対応する優先度よりも、自身が送信するメッセージに対応する優先度が高い場合、当該メッセージを送信する。選択部は、記憶部に記憶された複数のメッセージの中から最低の優先度に対応するメッセージを選択し、その後、対応する優先度が高い順にメッセージを順次選択する。従って割当装置は、通信装置が一の送信メールボックスに最低の優先度に対応するメッセージが割り当てられている状況を模し、各メッセージに係る所要時間を算出することができる。そのため、割当装置は、通信装置の通信に支障が生じ易い状況であっても、確実に許容時間を満たすようなメッセージ及び送信メールボックスの組を決定することができる。   In the present invention, the communication device transmits the message when the priority corresponding to the message transmitted by itself is higher than the priority corresponding to the message transmitted by another communication device. The selection unit selects a message corresponding to the lowest priority from the plurality of messages stored in the storage unit, and then sequentially selects messages in descending order of the corresponding priority. Therefore, the allocating device can calculate the time required for each message by simulating a situation in which the communication device allocates a message corresponding to the lowest priority to one transmission mailbox. Therefore, the allocating apparatus can determine a combination of a message and a transmission mailbox that surely satisfies the allowable time even in a situation in which the communication of the communication apparatus is likely to hinder communication.

本発明に係る割当方法は、複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージを各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定する割当方法であって、前記複数のメッセージ及び各メッセージに対応する優先度を予め記憶しておき、記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように、各組を決定するステップを含むことを特徴とする。   In the assignment method according to the present invention, when a communication device including a plurality of transmission mailboxes transmits a plurality of externally received messages, messages and transmissions when allocating each message to one of the transmission mailboxes A method of allocating a set of mailboxes by simulating behavior when the communication device transmits and receives messages, the plurality of messages and priorities corresponding to the messages are stored in advance, The method includes a step of determining each set so that a priority order corresponding to each of a plurality of messages paired with at least one transmission mailbox among the plurality of stored messages is continuous.

本発明にあっては、通信装置が外部から受信し、各送信する複数のメッセージと、各メッセージに対応する複数の優先度とを予め記憶しておく。また、記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように各組を決定する。このような割当方法は、複数のメッセージにおける優先度の順序を保持した状態で、異なる送信メールボックスに各メッセージを割り当て可能な組を決定することができる。例えば、複数のメッセージを3つの送信メールボックス夫々に割り当てるように組を決定する場合、優先順位が高位、中位、低位の一又は複数のメッセージを各送信メールボックスに割り当てるべく組を決定することができる。従って、一の送信メールボックスに割り当てられる優先度の高いメッセージが、他の送信メールボックスに割り当てられるメッセージに起因して、送信されるまでに時間を要するという事態を防止することができる。そのため、メッセージの送出に要する時間をより短縮可能なメッセージ及び送信メールボックスの組を決定することができる。   In the present invention, a plurality of messages received by the communication device from the outside and transmitted, and a plurality of priorities corresponding to the messages are stored in advance. Each set is determined so that the order of priority corresponding to each of a plurality of messages paired with at least one transmission mailbox among the plurality of stored messages is continuous. Such an assignment method can determine a set that can assign each message to a different transmission mailbox while maintaining the priority order of the plurality of messages. For example, when determining a set to assign a plurality of messages to each of three outgoing mailboxes, determine the set to assign one or more messages of high, medium, or low priority to each outgoing mailbox. Can do. Therefore, it is possible to prevent a situation in which it takes time until a message having a high priority assigned to one transmission mailbox is transmitted due to a message assigned to another transmission mailbox. Therefore, it is possible to determine a set of a message and a transmission mailbox that can further reduce the time required for sending the message.

本発明に係るコンピュータプログラムは、複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージ夫々を各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定することを、前記複数のメッセージ及び各メッセージに対応する優先度を予め記憶してあるコンピュータに行わせるコンピュータプログラムであって、コンピュータに、記憶された複数のメッセージの内、任意の送信メールボックスに割り当てるべきでないメッセージを特定するステップと、特定されたメッセージに対応する優先度よりも低い(又は高い)優先度に対応するメッセージ、及び前記送信メールボックスを組として決定するステップとを実行させることを特徴とする。   The computer program according to the present invention provides a message for assigning each message to one of the transmission mailboxes when a communication device including a plurality of transmission mailboxes transmits each of a plurality of externally received messages. The transmission mailboxes are determined by simulating the behavior of the communication device when sending and receiving messages, and the plurality of messages and priorities corresponding to the messages are stored in a computer that has been stored in advance. A computer program for identifying a message that should not be assigned to any outgoing mailbox among a plurality of stored messages and a lower (or higher) priority corresponding to the identified message ) Message corresponding to priority, Characterized in that and a step of determining the fine the transmit mailbox as a set.

本発明にあっては、記憶された複数のメッセージの内、任意の送信メールボックスに割り当てるべきでないメッセージを特定するステップをコンピュータに実行させる。また、特定されたメッセージに対応する優先度よりも低い優先度に対応するメッセージと当該送信メールボックスとを組として決定するステップをコンピュータに実行させる。このようなステップを実行するコンピュータは、複数のメッセージにおける優先度の順序を保持した状態で、異なる送信メールボックスに各メッセージを割り当て可能な組を決定することができる。例えば、複数のメッセージを3つの送信メールボックス夫々に割り当てるように組を決定する場合、コンピュータは、優先順位が高位、中位、低位の一又は複数のメッセージを各送信メールボックスに割り当てるべく組を決定することができる。従って、一の送信メールボックスに割り当てられる優先度の高いメッセージが、他の送信メールボックスに割り当てられるメッセージに起因して、送信されるまでに時間を要するという事態を防止することができる。そのため、メッセージの送出に要する時間をより短縮可能なメッセージ及び送信メールボックスの組を決定することができる。また、同様に、特定されたメッセージに対応する優先度よりも高い優先度に対応するメッセージと当該送信メールボックスとを組として決定するステップをコンピュータに実行させる。この場合も同様に、メッセージの送出に要する時間をより短縮可能なメッセージ及び送信メールボックスの組を決定することができる。   In the present invention, the computer is caused to execute a step of identifying a message that should not be assigned to any transmission mailbox among the plurality of stored messages. Further, the computer is caused to execute a step of determining a message corresponding to a priority lower than the priority corresponding to the identified message and the transmission mailbox as a set. The computer executing such steps can determine a set that can assign each message to different transmission mailboxes while maintaining the priority order of the plurality of messages. For example, when determining a set to assign a plurality of messages to each of three outgoing mailboxes, the computer sets the set to assign one or more messages of high, medium, and low priority to each outgoing mailbox. Can be determined. Therefore, it is possible to prevent a situation in which it takes time until a message having a high priority assigned to one transmission mailbox is transmitted due to a message assigned to another transmission mailbox. Therefore, it is possible to determine a set of a message and a transmission mailbox that can further reduce the time required for sending the message. Similarly, the computer is caused to execute a step of determining a message corresponding to a priority higher than the priority corresponding to the identified message and the transmission mailbox as a set. In this case as well, it is possible to determine a set of a message and a transmission mailbox that can further reduce the time required for sending the message.

本発明に係る中継装置の製造方法は、通信バスを介して複数のメッセージを送信するときに該メッセージ夫々を割り当てるべき複数の送信メールボックスを備え、異なる通信バスの間で所定のメッセージ群におけるメッセージを順次中継する中継装置を、上述の割当装置を用いて製造する中継装置の製造方法であって、前記割当装置の記憶部に、前記メッセージ群及び各メッセージに対応する優先度を記憶する工程と、前記割当装置に、前記記憶部に記憶されたメッセージ群及び複数の優先度に基づいて、前記中継装置が備える複数の送信メールボックス夫々に割り当てるべき前記メッセージ群におけるメッセージを決定させる工程とを含むことを特徴とする。   The relay device manufacturing method according to the present invention includes a plurality of transmission mailboxes to which messages are assigned when transmitting a plurality of messages via a communication bus, and messages in a predetermined message group between different communication buses. A relay apparatus that sequentially relays the relay apparatus using the above-described allocation apparatus, and storing the message group and the priority corresponding to each message in the storage unit of the allocation apparatus; And causing the assigning device to determine a message in the message group to be assigned to each of a plurality of transmission mailboxes included in the relay device based on a message group and a plurality of priorities stored in the storage unit. It is characterized by that.

本発明にあっては、上述の割当装置の記憶部に、メッセージ群及び各メッセージに対応する複数の優先度を記憶する工程を含む。また、上述の割当装置に、当該記憶部に記憶されたメッセージ群及び複数の優先度に基づいて、中継装置が備える複数の送信メールボックス夫々に割り当てるべき当該メッセージ群におけるメッセージを決定させる工程を含む。従って、中継装置は例えば、割当装置によって決定された組に従い、各メッセージを送出するときの所要時間を所定の許容時間以内とすることができる。   In this invention, the process of memorize | storing the several priority corresponding to a message group and each message in the memory | storage part of the above-mentioned allocation apparatus is included. In addition, the above-described assignment device includes a step of determining a message in the message group to be assigned to each of the plurality of transmission mailboxes included in the relay device based on the message group and the plurality of priorities stored in the storage unit. . Therefore, for example, according to the group determined by the assigning device, the relay device can set the required time for sending each message within a predetermined allowable time.

本発明によれば、メッセージの送出に要する時間をより短縮可能なメッセージ及び送信メールボックスの組を決定することができる。また、中継の遅延を確実に防止することができ、かつ中継に要する時間をより短縮することができる中継装置を製造することができる。   According to the present invention, it is possible to determine a set of a message and a transmission mailbox that can further reduce the time required for sending a message. Also, it is possible to manufacture a relay device that can reliably prevent relay delay and can further reduce the time required for relay.

実施の形態1におけるシミュレーション装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a simulation apparatus according to Embodiment 1. FIG. メッセージテーブルの具体例を示す説明図である。It is explanatory drawing which shows the specific example of a message table. シミュレーションの対象となる中継装置の構成を示すブロック図である。It is a block diagram which shows the structure of the relay apparatus used as the object of simulation. シミュレーション装置がシミュレーションを行うときの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence when a simulation apparatus performs simulation. メッセージ割当処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a message allocation process. メッセージ割当処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a message allocation process. アービトレーション処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of arbitration processing. 遅延時間算出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a delay time calculation process. 組として決定された中継メッセージ及び送信メールボックスの具体例を示す説明図である。It is explanatory drawing which shows the specific example of the relay message determined as a group, and a transmission mailbox. 実施の形態4におけるメッセージ割当処理のサブルーチンを示すフローチャートである。15 is a flowchart illustrating a subroutine for message assignment processing in the fourth embodiment. 実施の形態4におけるメッセージ割当処理のサブルーチンを示すフローチャートである。15 is a flowchart illustrating a subroutine for message assignment processing in the fourth embodiment.

以下、本発明をその実施の形態を示す図面に基づいて詳述する。   Hereinafter, the present invention will be described in detail with reference to the drawings illustrating embodiments thereof.

(実施の形態1)
図1は、実施の形態1におけるシミュレーション装置1の構成を示すブロック図である。シミュレーション装置1は、パーソナルコンピュータ等の計算機が用いられ、車両に搭載される中継装置の挙動をシミュレートする。中継装置の挙動とは、車両に搭載される複数の通信バスに接続される複数の通信装置(ECU)夫々がCANプロトコルによって、優先度を有する複数のメッセージを送受信するときに、当該中継装置が各メッセージを順次中継するときの挙動である。
(Embodiment 1)
FIG. 1 is a block diagram illustrating a configuration of a simulation apparatus 1 according to the first embodiment. The simulation device 1 uses a computer such as a personal computer to simulate the behavior of a relay device mounted on a vehicle. The behavior of a relay device means that when each of a plurality of communication devices (ECUs) connected to a plurality of communication buses mounted on a vehicle transmits and receives a plurality of messages having priority according to the CAN protocol, This is the behavior when relaying each message sequentially.

シミュレーション装置1は、制御部11を備える。制御部11は、例えば一又は複数のCPU(Central Processing Unit)、マルチコアCPU等により構成される。また、シミュレーション装置1は、記憶部12、一時記憶部13、入出力部14、読取部15、及び計時部16を備え、各部はバスを介して制御部11に接続されている。制御部11は、後述の記憶部12に記憶されているシミュレーションプログラム12aを読み出して実行することにより各部を制御する。   The simulation apparatus 1 includes a control unit 11. The control unit 11 includes, for example, one or a plurality of CPUs (Central Processing Units), a multi-core CPU, and the like. The simulation apparatus 1 includes a storage unit 12, a temporary storage unit 13, an input / output unit 14, a reading unit 15, and a time measuring unit 16. Each unit is connected to the control unit 11 through a bus. The control unit 11 controls each unit by reading and executing a simulation program 12a stored in a storage unit 12 described later.

記憶部12は、EEPROM(Electrically Erasable and Programmable ROM)、フラッシュメモリ、HDD(Hard Disk Drive)等の不揮発性メモリにより構成される。記憶部12には、シミュレーションプログラム12aが記憶されている。シミュレーションプログラム12aは、シミュレーション装置1が備える各部を制御し、中継装置の挙動をシミュレートするためのプログラムである。また、記憶部12には、メッセージテーブル12bが記憶されている。メッセージテーブル12bは、シミュレーション装置1によってシミュレートされる中継装置がネットワークを構成する通信バスに送出すべきメッセージ、及び当該通信バスに送出されるべき他のメッセージを含んだテーブル形式のデータを有しており、詳細は後述する。更に、記憶部12には、シミュレーションに用いられるシミュレーション条件が記憶されている。   The storage unit 12 includes a nonvolatile memory such as an EEPROM (Electrically Erasable and Programmable ROM), a flash memory, and an HDD (Hard Disk Drive). The storage unit 12 stores a simulation program 12a. The simulation program 12a is a program for controlling each part with which the simulation apparatus 1 is provided, and simulating the behavior of a relay apparatus. The storage unit 12 stores a message table 12b. The message table 12b has data in a table format including a message to be sent to the communication bus that configures the network by the relay apparatus simulated by the simulation apparatus 1 and other messages to be sent to the communication bus. Details will be described later. Furthermore, the storage unit 12 stores simulation conditions used for the simulation.

一時記憶部13は、SRAM(Static RAM)、DRAM(Dynamic RAM)等のメモリにより構成される。一時記憶部13は、制御部11がシミュレーションプログラム12aによる処理を行うことによって生ずる各種データを一時記憶する。   The temporary storage unit 13 is configured by a memory such as SRAM (Static RAM) or DRAM (Dynamic RAM). The temporary storage unit 13 temporarily stores various data generated when the control unit 11 performs processing by the simulation program 12a.

入出力部14には、外部からキーボード、ディスプレイ等の入出力装置が接続され、入出力装置からの入力信号を制御部11に出力し、制御部11からの出力信号を入出力装置に出力する。   An input / output device such as a keyboard and a display is connected to the input / output unit 14 from the outside, and an input signal from the input / output device is output to the control unit 11 and an output signal from the control unit 11 is output to the input / output device. .

読取部15は、CD−ROM、DVD、ブルーレイディスク、又はフレキシブルディスク等である記録媒体2から情報を読み取ることが可能に構成されている。制御部11は、読取部15により読み出された記録媒体2に記録されているデータを、一時記憶部13に記憶するか、又は記憶部12に記憶する。記録媒体2には、制御部11が実行することによりシミュレーション装置1が動作するためのシミュレーションプログラム2aが記録されている。記憶部12に記憶されているシミュレーションプログラム12aは、記録媒体2から読取部15が読み取ったシミュレーションプログラム2aの複製であってもよい。なお、記録媒体2には、メッセージテーブル12b又はシミュレーション条件等の記憶部12に記憶されるべき他の情報を記憶しておき、制御部11が記憶部12に記憶するのに用いてもよい。   The reading unit 15 is configured to be able to read information from the recording medium 2 such as a CD-ROM, DVD, Blu-ray disc, or flexible disk. The control unit 11 stores the data recorded in the recording medium 2 read by the reading unit 15 in the temporary storage unit 13 or in the storage unit 12. In the recording medium 2, a simulation program 2a for operating the simulation apparatus 1 by being executed by the control unit 11 is recorded. The simulation program 12 a stored in the storage unit 12 may be a copy of the simulation program 2 a read by the reading unit 15 from the recording medium 2. The recording medium 2 may store other information to be stored in the storage unit 12 such as the message table 12b or the simulation condition, and the control unit 11 may store the information in the storage unit 12.

計時部16は、タイマ又はリアルタイムクロックを備え、制御部11の要求に応じて計時処理を行い、計時した時間を制御部11へ出力する。   The timer unit 16 includes a timer or a real-time clock, performs a timing process in response to a request from the control unit 11, and outputs the measured time to the control unit 11.

図2は、メッセージテーブル12bの具体例を示す説明図である。メッセージテーブル12bには、各メッセージを識別するID毎に、ECU−ID、周期、データ長、及びバスIDが記憶されている。IDは、例えば16進数で表される値であり、CANプロトコルのデータフレームにおける所謂アービトレーションフィールドに相当する優先度を含んだ情報である。このときIDは、値が小さくなるほど優先度が高くなる。ECU−IDは、メッセージの送出元となる中継装置又はECUを識別する情報であり、例えば、値が0のとき中継装置が送出することを表し、それ以外は、各値に対応するECUが送出することを表す。ここで、メッセージテーブル12bの各行をメッセージと称し、中継装置が送出するメッセージを中継メッセージとも称し、ECUが送出するメッセージを送出メッセージとも称する。   FIG. 2 is an explanatory diagram showing a specific example of the message table 12b. The message table 12b stores an ECU-ID, a cycle, a data length, and a bus ID for each ID for identifying each message. The ID is a value represented by a hexadecimal number, for example, and is information including a priority corresponding to a so-called arbitration field in a data frame of the CAN protocol. At this time, the priority of the ID increases as the value decreases. The ECU-ID is information for identifying the relay device or ECU that is a message transmission source. For example, when the value is 0, it indicates that the relay device transmits, and otherwise, the ECU corresponding to each value transmits it. Represents what to do. Here, each row of the message table 12b is referred to as a message, a message transmitted from the relay device is also referred to as a relay message, and a message transmitted from the ECU is also referred to as a transmission message.

また、周期は、メッセージの送出元が中継装置のときは当該メッセージが中継装置に受信されるべき周期を表し、メッセージの送出元がECUのときは当該メッセージがECUから送出されるべき周期を表す。単位は例えばミリ秒である。データ長は、各メッセージのデータの大きさを表し、単位は例えばバイトである。バスIDは、メッセージが送出されるべき通信バスを識別するIDを表す。なお、実施の形態1においては、メッセージを識別するIDに優先度を含んでいる例を説明したが、メッセージを識別するIDとは別に優先度に係る情報を、ID毎に記憶していてもよい。   In addition, the cycle indicates a cycle in which the message is to be received by the relay device when the message is transmitted from the relay device, and indicates a cycle in which the message is transmitted from the ECU when the message is transmitted from the ECU. . The unit is, for example, milliseconds. The data length represents the data size of each message, and the unit is, for example, bytes. The bus ID represents an ID for identifying a communication bus to which a message is to be sent. In the first embodiment, an example in which a priority is included in an ID for identifying a message has been described. However, information related to a priority may be stored for each ID separately from an ID for identifying a message. Good.

図3は、シミュレーションの対象となる中継装置3の構成を示すブロック図である。中継装置3は、車両に搭載され、一又は複数のECU4が接続された複数の通信バス5に接続される。中継装置3は、制御部31を備え、制御部31は、例えば一又は複数のCPU、マルチコアCPU等により構成される。また、中継装置3は、バスを介して制御部31に接続されている記憶部32、一時記憶部33、及び通信部34を備える。制御部31は、後述の記憶部32に記憶されている制御プログラム32aを読み出して実行することにより各部を制御する。   FIG. 3 is a block diagram illustrating a configuration of the relay apparatus 3 to be simulated. The relay device 3 is mounted on a vehicle and connected to a plurality of communication buses 5 to which one or a plurality of ECUs 4 are connected. The relay device 3 includes a control unit 31, and the control unit 31 includes, for example, one or a plurality of CPUs, a multi-core CPU, and the like. In addition, the relay device 3 includes a storage unit 32, a temporary storage unit 33, and a communication unit 34 connected to the control unit 31 via a bus. The control unit 31 controls each unit by reading and executing a control program 32a stored in a storage unit 32 described later.

記憶部32は、EEPROM、フラッシュメモリ等の不揮発性メモリにより構成される。記憶部32には、制御プログラム32aが記憶されている。制御プログラム32aは、中継装置3に受信されたメッセージを中継先に送信する等の中継装置3がメッセージを中継するための処理内容と、中継装置3が備える各部を制御するための処理内容とが記述されたプログラムである。また、記憶部32は、接続している通信バス5を識別するバスIDを記憶している。   The storage unit 32 is configured by a nonvolatile memory such as an EEPROM or a flash memory. The storage unit 32 stores a control program 32a. The control program 32a includes processing details for the relay device 3 to relay a message, such as transmitting a message received by the relay device 3 to a relay destination, and processing details for controlling each unit included in the relay device 3. It is a written program. Further, the storage unit 32 stores a bus ID for identifying the connected communication bus 5.

一時記憶部33は、SRAM、DRAM等のメモリにより構成される。一時記憶部33は、制御部31が制御プログラム32aによる処理を行うことによって生ずる各種データを一時記憶する。   The temporary storage unit 33 is configured by a memory such as SRAM or DRAM. The temporary storage unit 33 temporarily stores various data generated when the control unit 31 performs processing by the control program 32a.

通信部34は、接続される通信バス5と同数備えられ、各通信バス5に伝送されるメッセージを受信し、制御部31の指令に基づいて、当該各通信バス5にメッセージを送出する。通信部34は、一又は複数の受信メールボックス34a及び送信メールボックス34bを備える。受信メールボックス34aは、対応する通信バス5に伝送するメッセージを順次格納し、制御部31に当該メッセージを出力する。制御部31は、受信メールボックス34aから出力されたメッセージに基づいて、当該メッセージを送出すべき通信バス5に対応する通信部34が備える送信メールボックス34bに当該メッセージを割り当てる。その後、制御部31は送信メールボックス34bに割り当てたメッセージを通信バス5に送出する前に、当該メッセージに含まれる優先度に基づいて、当該通信バス5に接続しているECU4とアービトレーションを行い、当該メッセージの送信権を取得する。制御部31は、送信権を取得したメッセージが割り当てられている送信メールボックス34bに指令を出し、当該メッセージを通信バス5に送出する。なお、アービトレーションの処理は、従来のCANプロトコルによるものと同じであるため、詳細な説明を省略する。   The communication units 34 are provided in the same number as the communication buses 5 to be connected, receive a message transmitted to each communication bus 5, and send the message to each communication bus 5 based on a command from the control unit 31. The communication unit 34 includes one or a plurality of reception mailboxes 34a and a transmission mailbox 34b. The reception mailbox 34 a sequentially stores messages to be transmitted to the corresponding communication bus 5 and outputs the messages to the control unit 31. Based on the message output from the reception mail box 34a, the control unit 31 assigns the message to the transmission mail box 34b provided in the communication unit 34 corresponding to the communication bus 5 to which the message is to be transmitted. Thereafter, before sending the message assigned to the transmission mailbox 34b to the communication bus 5, the control unit 31 performs arbitration with the ECU 4 connected to the communication bus 5 based on the priority included in the message. Get the right to send the message. The control unit 31 issues a command to the transmission mailbox 34 b to which the message for which the transmission right has been assigned is assigned, and sends the message to the communication bus 5. Since the arbitration process is the same as that of the conventional CAN protocol, detailed description thereof is omitted.

また、各送信メールボックス34bは、メッセージが割り当てられた場合、当該メッセージが通信バス5に送出されるまで他のメッセージを割り当てることができない。そのため、割り当てられるべき複数のメッセージが受信された場合、当該複数のメッセージにおける優先度の高いメッセージから順次送信メールボックス34bに割り当てられる。更に、通信部34内に複数の送信メールボックス34bが設けられ、かつ1つ以上の送信メールボックス34bにメッセージが割り当てられている場合、実施の形態1の制御部31は、割り当てられているメッセージの中で最高の優先度を有するメッセージをアービトレーションの対象となるメッセージとして選択する。   Further, when a message is assigned to each outgoing mail box 34 b, no other message can be assigned until the message is sent to the communication bus 5. Therefore, when a plurality of messages to be allocated are received, messages having a higher priority among the plurality of messages are sequentially allocated to the transmission mailbox 34b. Further, when a plurality of outgoing mailboxes 34b are provided in the communication unit 34 and a message is assigned to one or more outgoing mailboxes 34b, the control unit 31 of the first embodiment assigns the assigned message. The message having the highest priority is selected as the message to be arbitrated.

以上の構成の中継装置3は、異なる通信バス5に各接続されたECU4が送受信する複数のメッセージを順次中継する。このとき、中継装置3の送信メールボックス34bに割り当てられているメッセージに含まれる優先度が低かった場合、アービトレーションにより当該メッセージの送信権が取得され、通信バス5に送出されるまでに時間を要する虞がある。当該メッセージが通信バス5に送出されるまでの間に、当該送信メールボックス34bに割り当てられるべき優先度の高い他のメッセージが中継装置3に受信されたとき、当該他のメッセージが通信バス5に送出されるまでに時間を要し、車両制御に悪影響を及ぼす虞がある。そこで、シミュレーション装置1は、中継装置3がメッセージを中継するときに、遅延が生じ易い状況を作り出し、当該中継装置3の挙動を事前にシミュレートする。また、シミュレーション装置1は、シミュレートすることで車両制御に悪影響を及ぼさないようなメッセージ及び当該メッセージが割り当てられるべき送信メールボックス34bの組を、中継装置3が中継すべきメッセージ毎に決定する。なお、シミュレーション装置1は、割当装置に相当する。   The relay device 3 having the above configuration sequentially relays a plurality of messages transmitted and received by the ECUs 4 connected to different communication buses 5. At this time, if the priority included in the message assigned to the transmission mailbox 34 b of the relay device 3 is low, it takes time until the transmission right of the message is acquired by arbitration and sent to the communication bus 5. There is a fear. When another message with high priority to be assigned to the transmission mailbox 34b is received by the relay device 3 before the message is sent to the communication bus 5, the other message is sent to the communication bus 5. It takes time to be sent out, which may adversely affect vehicle control. Therefore, the simulation apparatus 1 creates a situation in which delay is likely to occur when the relay apparatus 3 relays a message, and simulates the behavior of the relay apparatus 3 in advance. Further, the simulation apparatus 1 determines, for each message to be relayed by the relay apparatus 3, a set of a message that does not adversely affect the vehicle control by simulation and a transmission mail box 34b to which the message is assigned. The simulation device 1 corresponds to an allocation device.

以下に、シミュレーション装置1が中継装置3の挙動をシミュレートすることで、当該組を決定する処理手順を説明する。ここで、シミュレーション装置1の記憶部12が記憶しているメッセージテーブル12bには、シミュレートする中継装置3が中継すべきメッセージに係る情報と、複数の通信バス5に接続されたECU4が各通信バス5に送出すべきメッセージに係る情報とが記憶されている。また、記憶部12が記憶しているシミュレーション条件には、メッセージを割り当て可能な送信メールボックス34bの数の上限値として、各通信部34が備える送信メールボックス34bの数が含まれている。また、シミュレーション条件には、中継装置3が中継すべき各メッセージにおける中継の遅延の程度を許容する時間として、当該メッセージ毎に規定時間が記憶されている。規定時間は例えば、各メッセージに対応する周期及び中継装置3の制御部31の処理能力等に応じた時間である。なお、シミュレーション条件には、中継装置3のシミュレーションに必要な各種情報が、上述した他にも記憶されている。   Below, the process sequence which determines the said group by the simulation apparatus 1 simulating the behavior of the relay apparatus 3 is demonstrated. Here, in the message table 12b stored in the storage unit 12 of the simulation apparatus 1, information related to the message to be relayed by the relay apparatus 3 to be simulated and the ECU 4 connected to the plurality of communication buses 5 communicate with each other. Information relating to a message to be sent to the bus 5 is stored. The simulation conditions stored in the storage unit 12 include the number of transmission mailboxes 34b included in each communication unit 34 as an upper limit value of the number of transmission mailboxes 34b to which messages can be assigned. In the simulation conditions, a prescribed time is stored for each message as a time allowing the degree of relay delay in each message to be relayed by the relay device 3. The specified time is, for example, a time corresponding to the cycle corresponding to each message and the processing capability of the control unit 31 of the relay device 3. In addition to the above, various information necessary for the simulation of the relay device 3 is stored in the simulation conditions.

図4は、シミュレーション装置1がシミュレーションを行うときの処理手順を示すフローチャートである。シミュレーション装置1の制御部11は、一時記憶部13にバスカウンタの領域を設け、当該バスカウンタを初期化する(ステップS101)。バスカウンタとは、シミュレーション装置1により行われる送信メールボックス34bにメッセージを割り当てるシミュレーションを、当該送信メールボックス34bに対応する通信バス5毎に行うためのカウンタである。制御部11は、例えば、バスカウンタに1の値を設定することにより初期化を行う。   FIG. 4 is a flowchart showing a processing procedure when the simulation apparatus 1 performs a simulation. The control unit 11 of the simulation apparatus 1 provides a bus counter area in the temporary storage unit 13 and initializes the bus counter (step S101). The bus counter is a counter for performing, for each communication bus 5 corresponding to the transmission mail box 34b, a simulation for assigning a message to the transmission mail box 34b performed by the simulation apparatus 1. For example, the control unit 11 performs initialization by setting a value of 1 to the bus counter.

次いで制御部11は、記憶部12に記憶されたメッセージテーブル12bから、一時記憶部13に記憶されたバスカウンタの値に対応するバスIDを持つメッセージを抽出する(ステップS102)。制御部11は例えば、バスカウンタの値と同一のバスIDの値を持つメッセージを抽出してもよいし、予め記憶部12にバスカウンタの値とバスIDの値との対応関係を表した対応表を記憶しておき、当該対応表に基づいて、メッセージを抽出してもよい。   Next, the control unit 11 extracts a message having a bus ID corresponding to the value of the bus counter stored in the temporary storage unit 13 from the message table 12b stored in the storage unit 12 (step S102). For example, the control unit 11 may extract a message having the same bus ID value as the bus counter value, or the correspondence that represents the correspondence between the bus counter value and the bus ID value in the storage unit 12 in advance. A table may be stored and a message may be extracted based on the correspondence table.

次いで制御部11は、ステップS102にてメッセージを抽出することができたか否かを判定する(ステップS103)。抽出することができなかったと判定した場合(S103:NO)、制御部11は処理を終える。一方、抽出することができたと判定した場合(S103:YES)、制御部11はメッセージ割当処理を行う(ステップS104)。メッセージ割当処理とは、ステップS102で抽出したメッセージに含まれる中継メッセージ夫々が中継されたときに規定時間を満たすような中継メッセージ及び送信メールボックス34bの組を決定する処理であり、詳細は後述する。   Next, the control unit 11 determines whether or not the message has been extracted in step S102 (step S103). When it determines with having not been extracted (S103: NO), the control part 11 finishes a process. On the other hand, when it determines with having extracted (S103: YES), the control part 11 performs a message allocation process (step S104). The message assignment process is a process for determining a combination of a relay message and a transmission mailbox 34b that satisfies a specified time when each relay message included in the message extracted in step S102 is relayed. Details will be described later. .

その後、制御部11は、バスカウンタを更新する(ステップS105)。制御部11は例えば、バスカウンタの値に1の値をインクリメントする。その後、制御部11は、処理をステップS102に戻し、ステップS103でメッセージを抽出できなかったと判定するまでステップS102〜ステップS105の処理を繰り返す。   Thereafter, the control unit 11 updates the bus counter (step S105). For example, the control unit 11 increments the value of 1 to the value of the bus counter. Then, the control part 11 returns a process to step S102, and repeats the process of step S102-step S105 until it determines with having not extracted the message by step S103.

シミュレーション装置1は、以上の処理を行うことにより、中継装置3に接続された通信バス5毎に、各中継メッセージが中継される際に規定時間を満たすような、中継メッセージ及び送信メールボックス34bの組を決定することができる。   By performing the above processing, the simulation apparatus 1 causes the relay message and the transmission mailbox 34b to satisfy the specified time when each relay message is relayed for each communication bus 5 connected to the relay apparatus 3. A set can be determined.

図5及び図6は、メッセージ割当処理のサブルーチンを示すフローチャートである。シミュレーション装置1の制御部11は、計時部16に指令を出し、計時を開始する(ステップS201)。次いで制御部11は、送信メールボックス34bの数を計数するための送信メールボックスカウンタの領域を一時記憶部13に設け、当該送信メールボックスカウンタの値を1とする(ステップS202)。   5 and 6 are flowcharts showing a subroutine of message assignment processing. The control unit 11 of the simulation apparatus 1 issues a command to the timer unit 16 and starts timing (step S201). Next, the control unit 11 provides an area of the transmission mailbox counter for counting the number of transmission mailboxes 34b in the temporary storage unit 13, and sets the value of the transmission mailbox counter to 1 (step S202).

次いで制御部11は、ステップS102で抽出したメッセージに含まれる中継メッセージの中から最低の優先度を有する最低優先度メッセージを選択する(ステップS203)。具体的には制御部11は、ステップS102で抽出したメッセージに含まれるECU−IDの値が0のメッセージの内、IDの値が一番大きいメッセージを選択し、一時記憶部13に記憶する。なお、制御部11はステップS203においてシミュレーションプログラム12aを実行することにより、選択部として機能する。   Next, the control unit 11 selects the lowest priority message having the lowest priority from the relay messages included in the message extracted in step S102 (step S203). Specifically, the control unit 11 selects the message having the largest ID value from among the messages having the ECU-ID value 0 included in the message extracted in step S <b> 102 and stores the message in the temporary storage unit 13. The control unit 11 functions as a selection unit by executing the simulation program 12a in step S203.

次いで制御部11は、アービトレーション処理を行う(ステップS204)。アービトレーション処理においては、制御部11は、ステップS203又は後述のステップS210で選択された中継メッセージが、アービトレーションを経て通信バス5から送出可能となるまでをシミュレートする処理である。当該処理によって、ステップS203又はステップS210で選択された中継メッセージが送信メールボックス34bに割り当てられた後、通信バス5に送出可能となるまでの時間を算出する。なお、アービトレーション処理の詳細は後述する。   Next, the control unit 11 performs an arbitration process (step S204). In the arbitration process, the control unit 11 is a process of simulating until the relay message selected in step S203 or step S210 described later can be sent from the communication bus 5 through the arbitration. By this processing, the time until the relay message selected in step S203 or step S210 can be sent to the communication bus 5 after being assigned to the transmission mailbox 34b is calculated. Details of the arbitration process will be described later.

次いで制御部11は、遅延時間算出処理を行う(ステップS205)。遅延時間算出処理においては、制御部11は、ステップS204にて算出した時間を用いて、中継装置3がステップS203又はステップS210で選択された中継メッセージを受信してから中継先のECU4に送信が完了するまでの時間、即ち遅延時間を算出する。制御部11は、ステップS205においてシミュレーションプログラム12aを実行することにより算出部として機能する。なお、遅延時間算出処理の詳細は後述する。   Next, the control unit 11 performs a delay time calculation process (step S205). In the delay time calculation process, the control unit 11 uses the time calculated in step S204 to transmit the relay message to the relay destination ECU 4 after the relay device 3 receives the relay message selected in step S203 or step S210. The time until completion, that is, the delay time is calculated. The control unit 11 functions as a calculation unit by executing the simulation program 12a in step S205. Details of the delay time calculation process will be described later.

次いで制御部11は、ステップS205で算出した遅延時間を一時記憶部13に記憶する(ステップS206)。その際、制御部11は、対応する中継メッセージに遅延時間を対応付けて記憶する。その後、制御部11は、選択フラグに1の値を設定する(ステップS207)。具体的には、制御部11は、ステップS203又はステップS210で選択された中継メッセージであるか否かを識別するための選択フラグの領域を一時記憶部13に設け、当該中継メッセージに対応付けて選択フラグの値を1とする。   Next, the control unit 11 stores the delay time calculated in step S205 in the temporary storage unit 13 (step S206). At that time, the control unit 11 stores the corresponding relay message in association with the delay time. Thereafter, the control unit 11 sets a value of 1 to the selection flag (step S207). Specifically, the control unit 11 provides a selection flag area for identifying whether or not the relay message is selected in Step S203 or Step S210 in the temporary storage unit 13, and associates it with the relay message. The value of the selection flag is set to 1.

次いで制御部11は、全メッセージを選択したか否かを判定する(ステップS208)。具体的には制御部11は、図4中のステップS102で抽出されたメッセージに含まれる中継メッセージのID全てについて、一時記憶部13に記憶された選択フラグの値が1であるか否かを判定することで全メッセージを選択したか否かを判定する。   Next, the control unit 11 determines whether all messages have been selected (step S208). Specifically, the control unit 11 determines whether or not the value of the selection flag stored in the temporary storage unit 13 is 1 for all the relay message IDs included in the message extracted in step S102 in FIG. By determining, it is determined whether or not all messages have been selected.

全メッセージを選択していないと判定した場合(S208:NO)、制御部11は、周期を判定する(ステップS209)。具体的には、制御部11は、図4中のステップS102で抽出された各中継メッセージについて、ステップS201で計時を開始してから対応する周期の整数倍以上が経過し、かつ上述の選択フラグの値が1であるか否かを判定する。なお、制御部11はステップS209においてシミュレーションプログラム12aを実行することにより、周期判定部として機能する。   When it determines with not having selected all the messages (S208: NO), the control part 11 determines a period (step S209). Specifically, for each relay message extracted in step S102 in FIG. 4, the control unit 11 has passed an integer multiple of the corresponding period since the start of time measurement in step S201, and the selection flag described above. Whether the value of 1 is 1 or not is determined. Note that the control unit 11 functions as a cycle determination unit by executing the simulation program 12a in step S209.

制御部11は、ステップS209の判定結果を用いて次のメッセージを選択する(ステップS210)。具体的には、制御部11は、計時を開始してから対応する周期の整数倍以上を経過し、かつ上述の選択フラグの値が1であると判定された中継メッセージと、選択フラグの値が0の中継メッセージとの中から一番優先度の高い中継メッセージを選択する。なお、ステップS210において制御部11はシミュレーションプログラム12aを実行することにより、選択部として機能する。その後、制御部11は処理をステップS204に戻す。   The control unit 11 selects the next message using the determination result of step S209 (step S210). Specifically, the control unit 11 has passed the integer multiple of the corresponding period from the start of timing and has determined that the value of the selection flag is 1 and the value of the selection flag. The relay message with the highest priority is selected from among the relay messages with 0. In step S210, the control unit 11 functions as a selection unit by executing the simulation program 12a. Then, the control part 11 returns a process to step S204.

全メッセージを選択したと判定した場合(S208:YES)、制御部11は、全メッセージが規定時間を満たしたか否かを判定する(ステップS211)。具体的には、制御部11は、一時記憶部13に記憶された各中継メッセージの遅延時間が、シミュレーション条件に含まれ、記憶部12に各中継メッセージに対応付けて記憶されている規定時間よりも短いか否かを各判定する。制御部11は、当該中継メッセージの内、一の中継メッセージでも規定時間を満たしていないと判定した場合には、全メッセージが規定時間を満たしていないと判定する。なお、制御部11は、ステップS211においてシミュレーションプログラム12aを実行することにより、判定部として機能する。   When it determines with having selected all the messages (S208: YES), the control part 11 determines whether all the messages satisfy | filled regulation time (step S211). Specifically, the control unit 11 includes the delay time of each relay message stored in the temporary storage unit 13 included in the simulation condition, and from the specified time stored in the storage unit 12 in association with each relay message. Each is determined whether or not it is too short. When it is determined that one relay message does not satisfy the specified time among the relay messages, the control unit 11 determines that all the messages do not satisfy the specified time. The control unit 11 functions as a determination unit by executing the simulation program 12a in step S211.

全メッセージが規定時間を満たしていないと判定した場合(S211:NO)、制御部11は、規定時間を満たしていないと判定した中継メッセージの中に、最低優先度メッセージが含まれているか否かを判定する(ステップS212)。最低優先度メッセージが含まれていないと判定した場合(S212:NO)、制御部11はステップS214に処理を進める。一方、最低優先度メッセージが含まれていると判定した場合(S212:YES)、制御部11は、当該最低優先度メッセージを割当不可メッセージとして一時記憶部13に記憶する(ステップS213)。このとき一時記憶部13は、記憶部に相当する。割当不可メッセージとは、割り当て方法によらず、遅延時間が規定時間を満たす可能性の低い中継メッセージを指す。   When it is determined that all the messages do not satisfy the specified time (S211: NO), the control unit 11 determines whether or not the lowest priority message is included in the relay message that is determined not to satisfy the specified time. Is determined (step S212). If it is determined that the lowest priority message is not included (S212: NO), the control unit 11 advances the process to step S214. On the other hand, if it is determined that the lowest priority message is included (S212: YES), the control unit 11 stores the lowest priority message in the temporary storage unit 13 as an unassignable message (step S213). At this time, the temporary storage unit 13 corresponds to a storage unit. The non-assignable message refers to a relay message with a low possibility of satisfying a specified time regardless of the assignment method.

次いで制御部11は、抽出すべきメッセージがあるか否かを判定する(ステップS214)。抽出すべきメッセージとは、遅延時間が規定時間よりも長いと判定された中継メッセージにおける最低の優先度以上の優先度を有する図4中のステップS102で抽出された中継メッセージである。抽出すべきメッセージがないと判定した場合(S214:NO)、制御部11は、図4中のステップS105に処理を戻す。   Next, the control unit 11 determines whether there is a message to be extracted (step S214). The message to be extracted is the relay message extracted in step S102 in FIG. 4 having a priority equal to or higher than the lowest priority in the relay message determined to have a delay time longer than the specified time. When it determines with there being no message which should be extracted (S214: NO), the control part 11 returns a process to step S105 in FIG.

抽出すべきメッセージがあると判定した場合(S214:YES)、制御部11は当該抽出すべきメッセージの抽出及び記憶を行う(ステップS215)。具体的には、制御部11は、メッセージテーブル12bから抽出すべき中継メッセージを抽出し、一時記憶部13に記憶する。このとき、一時記憶部13は、記憶部に相当する。   When it is determined that there is a message to be extracted (S214: YES), the control unit 11 extracts and stores the message to be extracted (step S215). Specifically, the control unit 11 extracts a relay message to be extracted from the message table 12 b and stores it in the temporary storage unit 13. At this time, the temporary storage unit 13 corresponds to a storage unit.

次いで制御部11は、ステップS211の判定結果に基づいて、特定の中継メッセージと、一の送信メールボックス34bとを組として決定する(ステップS216)。特定の中継メッセージとは、遅延時間が規定時間を満たしたと判定され、かつ遅延時間が規定時間よりも長いと判定されたメッセージにおける最低の優先度よりも低い優先度を有する中継メッセージである。具体的には、制御部11は、遅延時間が規定時間よりも短いと判定され、かつ上記の最低の優先度を有する中継メッセージに含まれる優先度よりも低い優先度を有する中継メッセージを送信メールボックスカウンタの値に対応付けて一時記憶部13に記憶する。制御部11は、ステップS216においてシミュレーションプログラム12aを実行することにより、決定部として機能する。   Next, the control unit 11 determines a specific relay message and one transmission mailbox 34b as a set based on the determination result of step S211 (step S216). The specific relay message is a relay message having a priority lower than the lowest priority in a message in which the delay time is determined to satisfy the specified time and the delay time is determined to be longer than the specified time. Specifically, the control unit 11 determines that the delay time is shorter than the specified time and sends a relay message having a lower priority than the priority included in the relay message having the lowest priority. The value is stored in the temporary storage unit 13 in association with the value of the box counter. The control unit 11 functions as a determination unit by executing the simulation program 12a in step S216.

次いで制御部11は、ステップS202で一時記憶部13に設けた送信メールボックスカウンタの値に1の値をインクリメントする更新を行い(ステップS217)、ステップS203に処理を戻す。ステップS203に処理を戻した制御部11は、ステップS215で一時記憶部13に記憶した中継メッセージを対象とし、また、再度計時を開始してその後の処理を行うようにしてある。   Next, in step S202, the control unit 11 updates the transmission mailbox counter provided in the temporary storage unit 13 to increment the value of 1 (step S217), and returns the process to step S203. The control unit 11 that has returned the process to step S203 targets the relay message stored in the temporary storage unit 13 in step S215, and starts counting again to perform the subsequent processing.

一方、ステップS211において全メッセージが規定時間を満たしたと判定した場合(S211:YES)、制御部11は、送信メールボックスカウンタの値が1より大きいか否かを判定する(ステップS218)。送信メールボックスカウンタの値が1以下であると判定した場合(S218:NO)、制御部11はステップS223に処理を進める。   On the other hand, when it is determined in step S211 that all messages have satisfied the specified time (S211: YES), the control unit 11 determines whether or not the value of the transmission mailbox counter is greater than 1 (step S218). When it determines with the value of the transmission mailbox counter being 1 or less (S218: NO), the control part 11 advances a process to step S223.

送信メールボックスカウンタの値が1より大きいと判定した場合(S218:YES)、制御部11は、当該送信メールボックスカウンタの値が上限値よりも大きいか否かを判定する(ステップS219)。上限値とは、記憶部12に記憶されたシミュレーション条件に含まれる送信メールボックス34bの数の上限値である。送信メールボックスカウンタの値が上限値よりも大きいと判定した場合(S219:YES)、制御部11は、図4中のステップS105に処理を戻す。   When it is determined that the value of the transmission mailbox counter is greater than 1 (S218: YES), the control unit 11 determines whether or not the value of the transmission mailbox counter is greater than the upper limit value (step S219). The upper limit value is an upper limit value of the number of transmission mailboxes 34b included in the simulation conditions stored in the storage unit 12. When it is determined that the value of the transmission mailbox counter is larger than the upper limit value (S219: YES), the control unit 11 returns the process to step S105 in FIG.

送信メールボックスカウンタの値が上限値以下であると判定した場合(S219:NO)、制御部11は、割当不可メッセージが記憶されているか判定する(ステップS220)。具体的には、制御部11は、一時記憶部13を参照して割当不可メッセージが記憶されているか否かを判定する。なお、割当不可メッセージが一時記憶部13に記憶されている場合、当該割当不可メッセージは、ステップS213において記憶されたものである。   When it determines with the value of a transmission mailbox counter being below an upper limit (S219: NO), the control part 11 determines whether the allocation impossible message is memorize | stored (step S220). Specifically, the control unit 11 refers to the temporary storage unit 13 to determine whether or not an assignment impossible message is stored. Note that, when the assignment impossible message is stored in the temporary storage unit 13, the assignment impossible message is the one stored in step S213.

割当不可メッセージが記憶されていないと判定した場合(S220:NO)、制御部11は、ステップS223に処理を進める。一方、割当不可メッセージが記憶されていると判定した場合(S220:YES)、制御部11は、記憶されている割当不可メッセージ数が残送信メールボックス数と同じ数であるか否かを判定する(ステップS221)。残送信メールボックス数は、中継装置3の通信バス5に対応するメッセージが割り当てられていない送信メールボックス34bの数に相当する。具体的には、残送信メールボックス数は、記憶部12に記憶されているシミュレーション条件に含まれる送信メールボックス34bの上限値から送信メールボックスカウンタの値を引いた値で表される。なお、制御部11は、シミュレーションプログラム12aを実行することによって、ステップS221で割当不可メッセージ数を計数するとき、計数部に相当する。   If it is determined that the assignment impossible message is not stored (S220: NO), the controller 11 advances the process to step S223. On the other hand, when it is determined that an unassignable message is stored (S220: YES), the control unit 11 determines whether or not the number of stored unassignable messages is the same as the number of remaining transmission mailboxes. (Step S221). The number of remaining transmission mailboxes corresponds to the number of transmission mailboxes 34b to which messages corresponding to the communication bus 5 of the relay device 3 are not assigned. Specifically, the number of remaining transmission mailboxes is represented by a value obtained by subtracting the value of the transmission mailbox counter from the upper limit value of the transmission mailbox 34b included in the simulation conditions stored in the storage unit 12. The control unit 11 corresponds to a counting unit when counting the number of unallocated messages in step S221 by executing the simulation program 12a.

割当不可メッセージ数が残送信メールボックス数と同じ数であると判定した場合(S221:YES)、制御部11は、ステップS211で規定時間を満たしたと判定した全メッセージと一の送信メールボックス34bとを組として決定する(ステップS222)。制御部11は例えば、ステップS216の処理と同様の処理を行う。その後、制御部11は、図4中のステップS105に処理を戻す。一方、割当不可メッセージ数が残送信メールボックス数と同じ数ではないと判定した場合(S221:NO)、制御部11は、処理をステップS223に進める。   When it is determined that the number of unassignable messages is the same as the number of remaining transmission mailboxes (S221: YES), the control unit 11 determines that all messages determined to satisfy the specified time in step S211 and one transmission mailbox 34b. Are determined as a set (step S222). For example, the control unit 11 performs the same process as the process of step S216. Then, the control part 11 returns a process to step S105 in FIG. On the other hand, if it is determined that the number of unassignable messages is not the same as the number of remaining transmission mailboxes (S221: NO), the control unit 11 advances the process to step S223.

制御部11は、ステップS211で規定時間を満たしたと判定した全メッセージと一の送信メールボックス34bとを組として決定する(ステップS223)。制御部11は例えば、ステップS216の処理と同様の処理を行う。次いで、制御部11は規定時間を更新し(ステップS224)、図5中のステップS201に処理を戻す。具体的には、制御部11は、シミュレーション条件に含まれている中継メッセージ毎の規定時間を上限に、規定時間夫々を例えば0.9倍、1.1倍等の任意の倍率で変更した時間を新たな規定時間として、図5中のステップS201から再度シミュレーションを行う。ステップS224で規定時間が更新された場合、制御部11は、ステップS211で判定する規定時間は更新された規定時間である。また制御部11は、更新された規定時間でステップS211の処理を行い、ステップS224の処理を再度行う場合、ステップS221で割当不可メッセージ数が残送信メールボックス数よりも大きいと判定されたとき、当該規定時間よりも長くなるように更新する。また、当該割当不可メッセージ数が残送信メールボックス数よりも少ないと判定されたとき、制御部11は当該規定時間よりも短くなるように更新する。同様に、送信メールボックスカウンタの値が1以下であると判定されたとき、又は割当不可メッセージが記憶されていないと判定されたとき、制御部11は当該規定時間よりも短くなるように更新する。   The control unit 11 determines a set of all the messages determined to have satisfied the specified time in step S211 and one transmission mail box 34b (step S223). For example, the control unit 11 performs the same process as the process of step S216. Next, the control unit 11 updates the specified time (step S224), and returns the process to step S201 in FIG. Specifically, the control unit 11 sets the specified time for each relay message included in the simulation condition as the upper limit, and changes the specified time by an arbitrary magnification such as 0.9 times or 1.1 times, for example. As a new specified time, the simulation is performed again from step S201 in FIG. When the specified time is updated in step S224, the control unit 11 determines that the specified time determined in step S211 is the updated specified time. In addition, when the control unit 11 performs the process of step S211 with the updated specified time and performs the process of step S224 again, when it is determined in step S221 that the number of unassignable messages is larger than the number of remaining transmission mailboxes, Update to be longer than the specified time. Further, when it is determined that the number of messages that cannot be allocated is smaller than the number of remaining transmission mailboxes, the control unit 11 updates the message so that it is shorter than the specified time. Similarly, when it is determined that the value of the transmission mailbox counter is 1 or less, or when it is determined that an unallocated message is not stored, the control unit 11 updates it so as to be shorter than the specified time. .

図7は、アービトレーション処理のサブルーチンを示すフローチャートである。制御部11は、図5中のステップS203又はステップS210で選択された中継メッセージに含まれる優先度を比較するための比較対象を選択する(ステップS301)。具体的には、図4中のステップS102で抽出したメッセージに含まれるECU−IDの値が0でないメッセージを当該比較対象として選択する。   FIG. 7 is a flowchart showing a subroutine of arbitration processing. The control unit 11 selects a comparison target for comparing the priorities included in the relay message selected in step S203 or step S210 in FIG. 5 (step S301). Specifically, a message whose ECU-ID value included in the message extracted in step S102 in FIG. 4 is not 0 is selected as the comparison target.

次いで制御部11はステップS203又はステップS210で選択した中継メッセージと、ステップS301で選択した送出メッセージとに含まれる優先度夫々を比較する(ステップS302)。なお、制御部11は、ステップS302においてシミュレーションプログラム12aを実行することにより、比較部として機能する。   Next, the control unit 11 compares the priorities included in the relay message selected in step S203 or step S210 and the outgoing message selected in step S301 (step S302). Note that the control unit 11 functions as a comparison unit by executing the simulation program 12a in step S302.

その後、制御部11は、ステップS203又はステップS210で選択したメッセージの優先度が一番高いか否かを判定する(ステップS303)。なお、制御部11は、ステップS303においてシミュレーションプログラム12aを実行することにより、送出判定部として機能する。   Thereafter, the control unit 11 determines whether or not the priority of the message selected in step S203 or step S210 is the highest (step S303). Note that the control unit 11 functions as a transmission determination unit by executing the simulation program 12a in step S303.

優先度が一番高くはないと判定された場合(S303:NO)、制御部11は、ステップS302で比較した優先度の中で一番高い優先度を持つ送出メッセージを一時記憶部13に記憶する(ステップS304)。制御部11は例えば、ステップS302で優先度を比較したときに一番高い送出メッセージのID及びバス占有時間を対応付けて一時記憶部13に記憶する。バス占有時間は、メッセージが通信バス5に送出されたときに当該通信バス5を占有する時間であり、メッセージテーブル12bに記憶されているデータ長に基づいて算出される。なお、各メッセージのバス占有時間が予めメッセージテーブル12bに記憶されていてもよい。   When it is determined that the priority is not the highest (S303: NO), the control unit 11 stores the outgoing message having the highest priority among the priorities compared in step S302 in the temporary storage unit 13. (Step S304). For example, when the priority is compared in step S <b> 302, the control unit 11 associates the ID of the highest outgoing message with the bus occupation time and stores it in the temporary storage unit 13. The bus occupation time is the time for which the communication bus 5 is occupied when a message is sent to the communication bus 5, and is calculated based on the data length stored in the message table 12b. Note that the bus occupation time of each message may be stored in the message table 12b in advance.

次いで制御部11は、送出周期を判定する(ステップS305)。具体的には、制御部11は、ステップS304にて一時記憶部13に記憶されている送出メッセージの内、計時を開始してから対応する周期の整数倍以上経過している送出メッセージがあるか否かを判定する。なお、制御部11は、ステップS305においてシミュレーションプログラム12aを実行することにより、送出周期判定部として機能する。その後、制御部11は、ステップS301に処理を戻す。そのとき制御部11は、ステップS301の処理において、ステップS305で送出周期にあると判定された送出メッセージと、ステップS304にて一時記憶部13に記憶されていないその他の送出メッセージとから比較対象を選択する。   Next, the control unit 11 determines the sending cycle (step S305). Specifically, the control unit 11 determines whether there is a transmission message that has passed an integral multiple of the corresponding period since the start of time measurement, among the transmission messages stored in the temporary storage unit 13 in step S304. Determine whether or not. Note that the control unit 11 functions as a transmission cycle determination unit by executing the simulation program 12a in step S305. Thereafter, the control unit 11 returns the process to step S301. At that time, in the process of step S301, the control unit 11 selects a comparison target from the transmission message determined to be in the transmission cycle in step S305 and the other transmission messages not stored in the temporary storage unit 13 in step S304. select.

一方、優先度が一番高いと判定された場合(S303:YES)、制御部11は、総占有時間を算出する(ステップS306)。具体的には、制御部11は、ステップS302における優先度の比較で、一番高い優先度を持つ送出メッセージとして、当該送出メッセージに係る情報が一時記憶部13に記憶されている場合、当該送出メッセージのバス占有時間を全て積算する。一時記憶部13に、一番高い優先度を持つ送出メッセージに係る情報が記憶されていない場合、ステップS306で算出される総占有時間は0である。なお、制御部11は、ステップS306においてシミュレーションプログラム12aを実行することにより、時間算出部として機能する。その後、制御部11は、ステップS205に処理を戻す。   On the other hand, when it is determined that the priority is the highest (S303: YES), the control unit 11 calculates the total occupation time (step S306). Specifically, when the information related to the transmission message is stored in the temporary storage unit 13 as the transmission message having the highest priority in the priority comparison in step S302, the control unit 11 performs the transmission. Accumulate all message bus occupancy times. When the temporary storage unit 13 does not store information related to the outgoing message having the highest priority, the total occupation time calculated in step S306 is zero. Note that the control unit 11 functions as a time calculation unit by executing the simulation program 12a in step S306. Thereafter, the control unit 11 returns the process to step S205.

図8は、遅延時間算出処理のサブルーチンを示すフローチャートである。制御部11は、一時記憶部13に遅延時間が記憶されているか否かを判定する(ステップS401)。遅延時間が記憶されていないと判定した場合(ステップS401:NO)、制御部11は、記憶部12に記憶されたシミュレーション条件の中から遅延時間の初期値を読出し(ステップS402)、ステップS404に処理を進める。遅延時間の初期値とは、例えば、8バイトのデータ長を有するメッセージが通信バス5を占有する時間である。   FIG. 8 is a flowchart showing a subroutine of delay time calculation processing. The control unit 11 determines whether or not the delay time is stored in the temporary storage unit 13 (step S401). When it is determined that the delay time is not stored (step S401: NO), the control unit 11 reads the initial value of the delay time from the simulation conditions stored in the storage unit 12 (step S402), and the process proceeds to step S404. Proceed with the process. The initial value of the delay time is a time for which a message having a data length of 8 bytes occupies the communication bus 5, for example.

一方、遅延時間が記憶されていると判定した場合(S401:YES)、制御部11は、少なくとも1回は図5中のステップS206の処理を行っており、当該ステップS206で一時記憶部13に記憶された遅延時間を読出す(ステップS403)。その後、制御部11は、ステップS404に処理を進める。   On the other hand, if it is determined that the delay time is stored (S401: YES), the control unit 11 has performed the process of step S206 in FIG. 5 at least once, and the temporary storage unit 13 in step S206. The stored delay time is read (step S403). Then, the control part 11 advances a process to step S404.

制御部11は、ステップS402又はステップS403における処理を行った後、遅延時間を算出し(ステップS404)、図5中のステップS206に処理を戻す。具体的には、制御部11は、ステップS402で読出した初期値又はステップS403で読出した遅延時間に、図7に示したアービトレーション処理におけるステップS306で算出した総占有時間を加える。   After performing the process in step S402 or step S403, the control unit 11 calculates a delay time (step S404), and returns the process to step S206 in FIG. Specifically, the control unit 11 adds the total occupation time calculated in step S306 in the arbitration process shown in FIG. 7 to the initial value read in step S402 or the delay time read in step S403.

以上の構成及び処理により、シミュレーション装置1は、中継装置3の中継に遅延が生じ易い状況をシミュレートすることができる。また、シミュレーション装置1は、図6中のステップS213で一時記憶部13に割当不可メッセージを記憶することで、遅延時間が規定時間を満たさない可能性の高い中継メッセージを除外して処理を行うことができる。また、シミュレーション装置1は、図6中のステップS219で送信メールボックスカウンタの値が上限値より大きいか否かを判定する。そうすることで、中継装置3が通信部34に予め備えてある送信メールボックス34bの数以内で、規定時間を満たしてメッセージを中継することができるか否かを知ることができる。また、シミュレーション装置1は、図6中のステップS224で規定時間を変更して、ステップS221で割当不可メッセージ数が残送信メールボックス数と等しくなるまでメッセージの割当処理を繰り返す。そうすることによって、規定時間を満たし、かつ中継装置3の送信メールボックス34bに空きがある場合に、割当不可メッセージ夫々を空いている送信メールボックス34bに割り当てることができ、中継装置3の送信メールボックス34bを最大限活用することができる。   With the above configuration and processing, the simulation apparatus 1 can simulate a situation in which a delay is likely to occur in the relay of the relay apparatus 3. In addition, the simulation apparatus 1 stores a non-assignable message in the temporary storage unit 13 in step S213 in FIG. 6, and performs processing while excluding a relay message that has a high possibility that the delay time does not satisfy the specified time. Can do. Further, the simulation apparatus 1 determines whether or not the value of the transmission mailbox counter is larger than the upper limit value in step S219 in FIG. By doing so, it is possible to know whether or not the relay device 3 can relay the message within the specified number of transmission mail boxes 34b provided in the communication unit 34 in advance. Further, the simulation apparatus 1 changes the specified time in step S224 in FIG. 6 and repeats the message assignment process until the number of unassignable messages becomes equal to the number of remaining transmission mailboxes in step S221. By doing so, when the specified time is satisfied and the transmission mailbox 34b of the relay device 3 is empty, the unassignable messages can be allocated to the empty transmission mailbox 34b, and the transmission mail of the relay device 3 can be assigned. The box 34b can be used to the maximum.

また、シミュレーション装置1は、図6中のステップS215、ステップS216の処理を行うことにより、送信メールボックス34bと組をなすメッセージに含まれる優先度の順が連続するように割り当てることができる。以下に、具体例を用いて説明する。   Moreover, the simulation apparatus 1 can assign the priority order included in the message paired with the transmission mail box 34b to be continuous by performing the processing of step S215 and step S216 in FIG. Below, it demonstrates using a specific example.

図9は、組として決定された中継メッセージ及び送信メールボックス34bの具体例を示す説明図である。図9には、中継装置3によって同一の通信バス5に送出されるべき中継メッセージについて、シミュレーション装置1がシミュレートしたときに決定された組の例が表形式で示されている。判定結果(1回目)の列には、送信メールボックスカウンタの値が1のときに、制御部11がステップS211で各判定した判定結果が表され、「○」は遅延時間が規定時間を満たしたことを表し、「×」は満たしていないことを表している。判定結果(2回目)の列には、送信メールボックスカウンタの値が2のときに、制御部11がステップS211で各判定した判定結果が表され、「○」は遅延時間が規定時間を満たしたことを表し、「×」は満たしていないことを表している。送信メールボックスIDの列には、対応するメッセージが割り当てられる送信メールボックス34bのIDが示されている。また、図9で示す例においては、当該通信バス5に対応する通信部34には、送信メールボックス34bが2つ設けられており、シミュレーション装置1は、各送信メールボックス34bを識別するために、一方に1、他方に2の送信メールボックスIDを付しているものとする。   FIG. 9 is an explanatory diagram showing a specific example of the relay message and the transmission mail box 34b determined as a set. FIG. 9 shows an example of a set determined when the simulation apparatus 1 simulates a relay message to be sent to the same communication bus 5 by the relay apparatus 3 in a table format. In the column of the determination result (first time), when the value of the transmission mailbox counter is 1, the determination result determined by the control unit 11 in step S211 is represented, and “◯” indicates that the delay time satisfies the specified time. "X" indicates that the condition is not satisfied. In the determination result (second time) column, when the value of the transmission mailbox counter is 2, the determination result determined by the control unit 11 in step S211 is represented, and “◯” indicates that the delay time satisfies the specified time. "X" indicates that the condition is not satisfied. In the column of the transmission mailbox ID, the ID of the transmission mailbox 34b to which the corresponding message is assigned is shown. In the example shown in FIG. 9, the communication unit 34 corresponding to the communication bus 5 is provided with two transmission mailboxes 34b, and the simulation apparatus 1 identifies each transmission mailbox 34b. Suppose that one is assigned a transmission mailbox ID of 1 and the other is 2.

制御部11は、送信メールボックスカウンタの値を1として、IDが024〜49Bまでの各中継メッセージについて、ステップ205にて遅延時間を算出し、ステップS211で規定時間を満たしているか否かを各判定する。判定結果(1回目)の列によれば、規定時間を満たしていない中継メッセージが含まれている。そのため、制御部11は、全メッセージが規定時間を満たしていないと判定し(S211:NO)、ステップS212に処理を進める。ステップS211の判定対象の中継メッセージの内、最低の優先度を有するメッセージ、即ちIDが49Bの中継メッセージは規定時間を満たしている。そのため、制御部11は、最低優先度メッセージが含まれていないと判定し(S212:NO)、割当不可メッセージを記憶することなくステップS214及びステップS215に処理を進める。遅延時間が規定時間を満たさないメッセージの内、最低の優先度を有する中継メッセージのIDは123である。そのため、制御部11は、IDが024、025、及び0B8の中継メッセージに係る遅延時間夫々が規定時間を満たしていたとしても、ステップS215の処理でIDが024〜123までの中継メッセージを抽出及び記憶する。その後、制御部11は、ステップS216の処理で、IDが23B〜49Bまでの各中継メッセージと、送信メールボックスIDが1の送信メールボックス34bとを組として決定する。   The control unit 11 sets the value of the transmission mailbox counter to 1, calculates a delay time for each relay message with IDs 024 to 49B in step 205, and determines whether or not the specified time is satisfied in step S211. judge. According to the column of the determination result (first time), a relay message that does not satisfy the specified time is included. Therefore, the control unit 11 determines that all the messages do not satisfy the specified time (S211: NO), and advances the process to step S212. Among the relay messages to be determined in step S211, the message having the lowest priority, that is, the relay message with ID 49B satisfies the specified time. Therefore, the control unit 11 determines that the lowest priority message is not included (S212: NO), and advances the process to step S214 and step S215 without storing the assignment impossible message. Among messages whose delay time does not satisfy the specified time, the ID of the relay message having the lowest priority is 123. Therefore, the control unit 11 extracts the relay messages with IDs 024 to 123 in the process of step S215 even if the delay times related to the relay messages with IDs 024, 025, and 0B8 satisfy the specified time. Remember. After that, the control unit 11 determines each relay message with IDs 23B to 49B and the transmission mailbox 34b with the transmission mailbox ID 1 as a set in step S216.

次いで、制御部11は、ステップS217の処理で送信メールボックスカウンタの値を2に更新し、先に抽出及び記憶したIDが024〜123の中継メッセージについて、ステップS203以降の処理を行う。即ち、制御部11は、IDが024〜123の各中継メッセージが、組として決定されていない一の送信メールボックス34bに割り当てられたときの遅延時間を算出し、ステップS211で規定時間を満たしているか否かを各判定する。判定結果(2回目)の列によれば、全メッセージが規定時間を満たしている。そのため、制御部11は全メッセージが規定時間を満たしたと判定し(S211:YES)、制御部11はステップS218に処理を進める。ここで、送信メールボックスカウンタの値は2であり、当該値2はシミュレーションの対象となる通信部34に設けられている送信メールボックス34bの上限値を超えず、先の処理では割当不可メッセージが記憶されていない。そのため、制御部11はステップS223に処理を進める。ステップS223では、制御部11はIDが024〜123までの各中継メッセージと、送信メールボックスIDが2の送信メールボックス34bとを組として決定する。   Next, the control unit 11 updates the value of the transmission mailbox counter to 2 in the process of step S217, and performs the processes from step S203 onward for the relay messages with IDs 024 to 123 extracted and stored previously. That is, the control unit 11 calculates a delay time when each relay message with IDs 024 to 123 is assigned to one transmission mailbox 34b that is not determined as a set, and satisfies the specified time in step S211. Each is determined whether or not. According to the column of determination results (second time), all messages satisfy the specified time. Therefore, the control unit 11 determines that all messages have satisfied the specified time (S211: YES), and the control unit 11 advances the process to step S218. Here, the value of the transmission mailbox counter is 2, and the value 2 does not exceed the upper limit value of the transmission mailbox 34b provided in the communication unit 34 to be simulated. Not remembered. Therefore, the control part 11 advances a process to step S223. In step S223, the control unit 11 determines each relay message with an ID of 024 to 123 and a transmission mailbox 34b with a transmission mailbox ID 2 as a set.

以上のように、ステップS215及びステップS216の処理を行うことによって、送信メールボックス34bと組をなすメッセージに含まれる優先度の順が連続するように割り当てることができる。このようなシミュレーション装置1は、メッセージテーブル12b内の中継メッセージにおける優先度の順序を保持した状態で、異なる送信メールボックス34bに各メッセージを割り当て可能な組を決定することができる。従って、一の送信メールボックス34bに割り当てられる優先度の高いメッセージが、他の送信メールボックス34bに割り当てられるメッセージに起因して、送信されるまでに時間を要するという事態を防止することができる。そのため、メッセージの送出に要する時間をより短縮可能なメッセージ及び送信メールボックス34bの組を決定することができる。   As described above, by performing the processing of step S215 and step S216, it is possible to assign the priority order included in the message paired with the transmission mail box 34b to be continuous. Such a simulation apparatus 1 can determine a set that can assign each message to a different transmission mailbox 34b in a state where the priority order of relay messages in the message table 12b is maintained. Therefore, it is possible to prevent a situation in which a message having a high priority assigned to one transmission mailbox 34b takes time to be transmitted due to a message assigned to another transmission mailbox 34b. Therefore, it is possible to determine a set of a message and a transmission mailbox 34b that can further reduce the time required for sending the message.

なお、実施の形態1では、図6中のステップS224で規定時間が一度も更新されていない場合、即ち空いている送信メールボックス34bを最大限活用する前においては、割当不可メッセージが一時記憶部13に記憶されていないことを前提に処理を進めてもよい。具体的には、ステップS224で規定時間を更新したか否かを区別するフラグを一時記憶部13に記憶しておく。制御部11は、ステップS224で規定時間を1度も更新していない場合に、ステップS220で割当不可メッセージが記憶されていると判定した場合、図5中のステップS105に処理を戻す。このようにすることによって、シミュレーション条件に含まれている規定時間を最低限満たした中継メッセージについて送信メールボックス34bを最大限活用する処理を行うことができる。   In the first embodiment, when the specified time has not been updated even in step S224 in FIG. 6, that is, before the vacant transmission mail box 34b is utilized to the maximum extent, the assignment impossible message is temporarily stored in the temporary storage unit. The processing may be advanced on the premise that the data is not stored in 13. Specifically, a flag for distinguishing whether or not the specified time has been updated in step S224 is stored in the temporary storage unit 13. If the controller 11 has not updated the specified time even once in step S224, and determines that the assignment impossible message is stored in step S220, the controller 11 returns the process to step S105 in FIG. By doing so, it is possible to perform the process of making the maximum use of the transmission mailbox 34b for the relay message that satisfies the specified time included in the simulation conditions at the minimum.

次に、上述のシミュレーション装置1を用いて中継装置3を製造する製造方法を説明する。中継装置3の製造装置は、中継装置3に接続されるべき通信バス5、各通信バス5に接続されるべきECU4、及び各ECU4が送出するメッセージに係る情報を用いて、メッセージテーブル12bを作成し、シミュレーション装置1に記憶させる。また、製造装置は、中継装置3が備える送信メールボックス34bの数及び各メッセージの規定時間を含むシミュレーション条件を記憶部12に記憶させる。   Next, the manufacturing method which manufactures the relay apparatus 3 using the above-mentioned simulation apparatus 1 is demonstrated. The manufacturing apparatus of the relay device 3 creates the message table 12b by using the communication bus 5 to be connected to the relay device 3, the ECU 4 to be connected to each communication bus 5, and information relating to the message sent by each ECU 4. And stored in the simulation apparatus 1. Further, the manufacturing apparatus stores in the storage unit 12 simulation conditions including the number of transmission mailboxes 34b included in the relay apparatus 3 and the specified time of each message.

その後、製造装置は、シミュレーション装置1に図4〜図8に示した処理を行わせ、全ての中継メッセージが規定時間を満たしたときに、各送信メールボックス34bに割り当てられるべきメッセージを区別して取得する。具体的には、送信メールボックスカウンタが中継装置3の上限値を超えず、図4中のステップS102で抽出した中継メッセージ全てが規定時間を満たしたときに、図6中のステップS216、ステップS222、又はステップS223で決定された組を取得する。製造装置は、中継装置3が中継メッセージを送信メールボックス34bに割り当てるときに、取得した組の対応関係となるように、制御プログラム32a等を作成する。なお、製造装置は、シミュレーション条件に含まれる規定時間を満たしたときに取得したメッセージを用いてもよいし、ステップS224で更新した規定時間を満たしたときに取得したメッセージを用いてもよい。   Thereafter, the manufacturing apparatus causes the simulation apparatus 1 to perform the processes shown in FIGS. 4 to 8, and when all the relay messages satisfy the specified time, the messages to be assigned to the respective transmission mailboxes 34 b are distinguished and acquired. To do. Specifically, when the transmission mailbox counter does not exceed the upper limit value of the relay device 3 and all the relay messages extracted in step S102 in FIG. 4 satisfy the specified time, steps S216 and S222 in FIG. Or, the set determined in step S223 is acquired. When the relay apparatus 3 assigns the relay message to the transmission mail box 34b, the manufacturing apparatus creates the control program 32a and the like so that the correspondence relationship of the acquired set is obtained. The manufacturing apparatus may use the message acquired when the specified time included in the simulation condition is satisfied, or may use the message acquired when the specified time updated in step S224 is satisfied.

以上のようにして中継装置3を製造することによって、シミュレーション装置1によって作り出した中継に遅延が生じ易い状況でも規定時間を満たすことができるため、中継装置3による中継の遅延を確実に防止することができる。また、シミュレーション装置1のシミュレーションによって全中継メッセージが規定時間を満たさなかった場合でも、メッセージテーブル12b及びシミュレーション条件を変更して、規定時間を満たすまでシミュレーションを繰り返すことができる。その際、製造装置は、中継装置3に係る条件を反映したメッセージテーブル12b及びシミュレーション条件を新たに作成し、記憶部12に記憶させることで、シミュレーション装置1は様々な条件に係る中継装置3の挙動をシミュレートすることができる。そのため、接続されるべき通信バス5の数等の条件が夫々異なる複数の中継装置3を製造する場合であっても、各中継装置3に対応するメッセージテーブル12b及びシミュレーション条件を作成し、シミュレーション装置1を用いることができる。   By manufacturing the relay device 3 as described above, it is possible to satisfy the specified time even in a situation in which the delay created in the relay created by the simulation device 1 is likely to occur, so that the relay delay by the relay device 3 can be reliably prevented. Can do. Further, even when all the relay messages do not satisfy the specified time by the simulation of the simulation apparatus 1, the message table 12b and the simulation conditions can be changed and the simulation can be repeated until the specified time is satisfied. At that time, the manufacturing apparatus newly creates a message table 12b and simulation conditions reflecting the conditions related to the relay apparatus 3, and stores them in the storage unit 12, so that the simulation apparatus 1 allows the relay apparatus 3 related to various conditions to be stored. The behavior can be simulated. Therefore, even when a plurality of relay apparatuses 3 having different conditions such as the number of communication buses 5 to be connected are manufactured, a message table 12b and simulation conditions corresponding to each relay apparatus 3 are created, and the simulation apparatus 1 can be used.

(実施の形態2)
実施の形態1においては、遅延時間が規定時間を満たしたと判定され、かつ遅延時間が規定時間よりも長いと判定されたメッセージに含まれる優先度における最低の優先度よりも低い優先度を有する中継メッセージと一の送信メールボックス34bとを組として決定した。実施の形態2においては、組をなす中継メッセージが、遅延時間が規定時間を満たしたと判定され、かつ遅延時間が規定時間よりも長いと判定された中継メッセージに含まれる優先度における最高の優先度よりも高い優先度を有する中継メッセージである例を説明する。なお、以下で説明する構成及び作用を除くその他の構成及び作用は上述の実施の形態1と同様であるため、同様の構成に関する詳細な説明及びその作用効果の説明は簡潔のため省略する。
(Embodiment 2)
In the first embodiment, relay having a priority lower than the lowest priority among the priorities included in the message that is determined that the delay time satisfies the specified time and that the delay time is determined to be longer than the specified time. The message and one transmission mailbox 34b are determined as a set. In the second embodiment, the highest priority among the priority levels included in the relay message that is determined that the relay message that forms a set satisfies the specified delay time and the delay time is longer than the specified time. An example of a relay message having a higher priority will be described. Since the other configurations and operations except the configurations and operations described below are the same as those in the first embodiment, detailed description on the same configurations and descriptions of the operations and effects are omitted for the sake of brevity.

シミュレーション装置1の制御部11は、図6中のステップS214において抽出すべきメッセージがあるか否かを判定する。実施の形態2における抽出すべきメッセージとは、遅延時間が規定時間よりも長いと判定された中継メッセージにおける最高の優先度以下の優先度を有する図4中のステップS102で抽出された中継メッセージである。例えば、制御部11がステップS211で図9の判定結果(1回目)のように判定した場合、抽出すべき中継メッセージは、IDが026〜49Bまでの中継メッセージである。   The control unit 11 of the simulation apparatus 1 determines whether there is a message to be extracted in step S214 in FIG. The message to be extracted in the second embodiment is the relay message extracted in step S102 in FIG. 4 having a priority equal to or lower than the highest priority in the relay message determined to have a delay time longer than the specified time. is there. For example, when the control unit 11 determines in step S211 as the determination result (first time) in FIG. 9, the relay message to be extracted is a relay message having IDs of 026 to 49B.

また、制御部11は、ステップS216の処理において、特定の中継メッセージと、一の送信メールボックス34bとを組として決定する。実施の形態2における特定の中継メッセージとは、遅延時間が規定時間を満たしたと判定され、かつ遅延時間が規定時間よりも長いと判定された中継メッセージにおける最高の優先度よりも高い優先度の中継メッセージである。例えば、制御部11がステップS211で図9の判定結果(1回目)のように判定した場合、特定の中継メッセージは、IDが024及び025の中継メッセージである。このとき制御部11は、IDが024及び025の中継メッセージと送信メールボックスIDが1の送信メールボックス34bとを組として決定する。   In addition, in the process of step S216, the control unit 11 determines a specific relay message and one transmission mail box 34b as a set. The specific relay message in the second embodiment is a relay having a higher priority than the highest priority in the relay message that is determined that the delay time satisfies the specified time and that the delay time is determined to be longer than the specified time. Message. For example, when the control unit 11 determines in step S211 as the determination result (first time) in FIG. 9, the specific relay message is a relay message with IDs 024 and 025. At this time, the control unit 11 determines the relay message with IDs 024 and 025 and the transmission mailbox 34b with the transmission mailbox ID 1 as a set.

シミュレーション装置1が以上のような処理を行うことによっても、送信メールボックス34bと組をなす中継メッセージに含まれる優先度の順が連続するように割り当てることができる。従って、実施の形態1と同様の効果を得ることができる。   Even when the simulation apparatus 1 performs the above-described processing, the priority order included in the relay message paired with the transmission mail box 34b can be assigned in succession. Therefore, the same effect as in the first embodiment can be obtained.

(実施の形態3)
実施の形態1及び2においては、シミュレーション装置1が一の送信メールボックス34bに割り当てる対象となる中継メッセージ全てについて、遅延時間が規定時間を満たすか否かの判定を行う例を説明した。実施の形態3においては、中継メッセージ全てについては判定を行わない例について説明する。なお、以下で説明する構成及び作用を除くその他の構成及び作用は上述の実施の形態1及び2と同様であるため、同様の構成に関する詳細な説明及びその作用効果の説明は簡潔のため省略する。
(Embodiment 3)
In the first and second embodiments, an example has been described in which the simulation apparatus 1 determines whether or not the delay time satisfies the specified time for all relay messages to be assigned to one transmission mailbox 34b. In the third embodiment, an example in which determination is not performed for all relay messages will be described. Since the other configurations and operations except for the configurations and operations described below are the same as those in the first and second embodiments, a detailed description of the same configuration and a description of the operations and effects are omitted for the sake of brevity. .

実施の形態3のシミュレーション装置1の制御部11は、図6中のステップS211の処理で、優先度が低いメッセージ順又は高いメッセージ順に、遅延時間が規定時間を満たすか否かを判定することで、全メッセージが規定時間を満たしたか否かを判定する。制御部11は、優先度が低いメッセージ順に判定したときに、規定時間を満たさない中継メッセージがあった場合、当該中継メッセージよりも優先度が高い中継メッセージについては判定を行わず、ステップS212以降に処理を進める。また、制御部11は、優先度が高いメッセージ順に判定したときに、規定時間を満たさない中継メッセージがあった場合、当該中継メッセージよりも優先度が低いメッセージについて判定を行わず、ステップS212以降に処理を進める。また、制御部11はステップS212の処理に代えて、規定時間を満たさないメッセージが最低優先度メッセージであるか否かを判定する。   The control unit 11 of the simulation apparatus 1 according to the third embodiment determines whether or not the delay time satisfies the specified time in the order of messages having a low priority or a message having a high priority in the process of step S211 in FIG. , It is determined whether or not all messages satisfy the specified time. When there is a relay message that does not satisfy the specified time when the control unit 11 determines in order of the messages with the lowest priority, the control unit 11 does not determine the relay message with a higher priority than the relay message, and after step S212. Proceed with the process. Also, when there is a relay message that does not satisfy the specified time when the control unit 11 determines in the order of the messages with the highest priority, the control unit 11 does not determine the message with a lower priority than the relay message, and after step S212. Proceed with the process. Moreover, it replaces with the process of step S212 and the control part 11 determines whether the message which does not satisfy regulation time is a lowest priority message.

ここで、制御部11は、ステップS211で優先度が低いメッセージ順に判定をする場合、ステップS214〜ステップS216の処理を実施の形態1と同様の処理として実行する。また、制御部11は、ステップS211で優先度が高いメッセージ順に判定をする場合、ステップS214〜ステップS216の処理を実施の形態2と同様の処理として実行する。   Here, when the control unit 11 determines in the order of the messages having the lowest priority in step S211, the control unit 11 executes the processes in steps S214 to S216 as the same processes as those in the first embodiment. In addition, when the control unit 11 determines in the order of the messages with the highest priority in step S211, the control unit 11 executes the processes in steps S214 to S216 as the same processes as those in the second embodiment.

シミュレーション装置1が以上のような処理を行うことによっても、送信メールボックス34bと組をなす中継メッセージに含まれる優先度の順が連続するように割り当てることができる。従って、実施の形態1及び2と同様の効果を得ることができる。また、規定時間を満たさない中継メッセージがあった場合に、当該中継メッセージよりも優先度が高い又は低い中継メッセージについて規定時間を満たすか否かの判定が不要であるため、シミュレーション装置1の処理負荷を軽減することができる。   Even when the simulation apparatus 1 performs the above-described processing, the priority order included in the relay message paired with the transmission mail box 34b can be assigned in succession. Therefore, the same effect as in the first and second embodiments can be obtained. In addition, when there is a relay message that does not satisfy the specified time, it is not necessary to determine whether or not the specified time is satisfied for a relay message having a higher or lower priority than the relay message. Can be reduced.

(実施の形態4)
実施の形態1〜3においては、シミュレーション装置1が一の送信メールボックス34bに割り当てる対象となる中継メッセージ全てについて遅延時間を算出する例を示した。実施の形態4においては、中継メッセージ全てについては遅延時間を算出しない例について説明する。なお、以下で説明する構成及び作用を除くその他の構成及び作用は上述の実施の形態2と同様であるため、同様の構成に関する詳細な説明及びその作用効果の説明は簡潔のため省略する。
(Embodiment 4)
In the first to third embodiments, an example has been described in which the simulation apparatus 1 calculates the delay time for all relay messages to be assigned to one transmission mailbox 34b. In the fourth embodiment, an example in which the delay time is not calculated for all relay messages will be described. Since other configurations and operations except the configurations and operations described below are the same as those in the above-described second embodiment, a detailed description of the same configurations and a description of the operations and effects are omitted for the sake of brevity.

図10及び図11は、実施の形態4におけるメッセージ割当処理のサブルーチンを示すフローチャートである。なお、図10中のステップS501、ステップS502、ステップS504、及びステップS505の処理は、図5中のステップS201、ステップS202、ステップS204、及びステップS205の処理と同様であるため、異なる部分を主として説明する。同様に、図10中のステップS507〜ステップS510の処理は、図5中のステップS206〜ステップS209の処理と同様であるため、異なる部分を主として説明する。また、図11中のステップS512〜ステップS523の処理は、図6中のステップS213〜ステップS224の処理と同様であるため、異なる部分を主として説明する。   10 and 11 are flowcharts showing a subroutine of message assignment processing in the fourth embodiment. Note that the processing of step S501, step S502, step S504, and step S505 in FIG. 10 is the same as the processing of step S201, step S202, step S204, and step S205 in FIG. explain. Similarly, the processing from step S507 to step S510 in FIG. 10 is the same as the processing from step S206 to step S209 in FIG. Moreover, since the process of step S512-step S523 in FIG. 11 is the same as the process of step S213-step S224 in FIG. 6, a different part is mainly demonstrated.

実施の形態4のシミュレーション装置1の制御部11は、ステップS502の処理の後、メインルーチンにて抽出した中継メッセージ(図4中ステップS102参照)の中から最高の優先度の中継メッセージを選択する(ステップS503)。その後、制御部11は選択した中継メッセージについてステップS504以降に処理を進める。また、制御部11は、ステップS510の処理の後、ステップS503の処理にて中継メッセージを選択する場合、図5中のステップS210と同様の処理を行う。即ち、制御部11は、ステップS501で計時を開始してから対応する周期の整数倍以上を経過し、かつ上述の選択フラグの値が1であると判定された中継メッセージと、選択フラグの値が0の中継メッセージとの中から一番優先度の高い中継メッセージを選択する。   The control unit 11 of the simulation apparatus 1 according to the fourth embodiment selects the relay message with the highest priority from the relay messages extracted in the main routine (see step S102 in FIG. 4) after the process of step S502. (Step S503). Thereafter, the control unit 11 advances the processing to step S504 and subsequent steps for the selected relay message. Further, after selecting the relay message in the process of step S503 after the process of step S510, the control unit 11 performs the same process as in step S210 in FIG. In other words, the control unit 11 starts the time measurement in step S501, and has passed the integral multiple of the corresponding cycle and has determined that the value of the selection flag is 1, and the value of the selection flag. The relay message with the highest priority is selected from among the relay messages with 0.

また、制御部11は、選択した中継メッセージの遅延時間をステップS505で算出した後、当該遅延時間が規定時間を満たしたか否かを判定する(ステップS506)。具体的には、制御部11は、記憶部12に中継メッセージに対応付けて記憶されているシミュレーション条件に含まれる規定時間よりも当該遅延時間が短いか否かを判定する。制御部11は、ステップS506においてシミュレーションプログラム12aを実行することにより、判定部として機能する。   Further, after calculating the delay time of the selected relay message in step S505, the control unit 11 determines whether or not the delay time satisfies the specified time (step S506). Specifically, the control unit 11 determines whether or not the delay time is shorter than the specified time included in the simulation condition stored in the storage unit 12 in association with the relay message. The control unit 11 functions as a determination unit by executing the simulation program 12a in step S506.

遅延時間が規定時間を満たしていないと判定した場合(S506:NO)、制御部11は、選択したメッセージが最低優先度メッセージであるか否かを判定する(ステップS511)。最低優先度メッセージであると判定した場合(S511:YES)、制御部11はステップS512以降に処理を進め、最低優先度メッセージでないと判定した場合(S511:NO)、制御部11はステップS513以降に処理を進める。   When it is determined that the delay time does not satisfy the specified time (S506: NO), the control unit 11 determines whether or not the selected message is the lowest priority message (step S511). When it is determined that the message is the lowest priority message (S511: YES), the control unit 11 advances the process to step S512 and after, and when it is determined that the message is not the lowest priority message (S511: NO), the control unit 11 is performed after step S513. Proceed with the process.

一方、遅延時間が規定時間を満たしたと判定した場合(S506:YES)、制御部11は、ステップS507以降に処理を進める。   On the other hand, when it determines with delay time having satisfy | filled regulation time (S506: YES), the control part 11 advances a process after step S507.

また、ステップS509にて全メッセージを選択したと判定した場合(S509:YES)、制御部11は、ステップS517以降に処理を進める。即ち、制御部11が全メッセージを選択したということは、ステップS506にて各中継メッセージの遅延時間が対応する規定時間を満たしたということを示している。   If it is determined in step S509 that all messages have been selected (S509: YES), the controller 11 advances the process to step S517 and subsequent steps. That is, the fact that the control unit 11 has selected all the messages indicates that the delay time of each relay message has satisfied the corresponding specified time in step S506.

以上の処理を行うことにより、制御部11が選択した中継メッセージに遅延時間を算出する都度、当該遅延時間が規定時間を満たすか否かを判定する。従って、制御部11は、一の中継メッセージについて遅延時間が規定時間を満たさないと判定した場合、その後、同一の送信メールボックスカウンタについてステップS503〜ステップS510の処理を行う必要がない。そのため、シミュレーション装置1の処理負担を軽減することができる。   By performing the above processing, each time the delay time is calculated for the relay message selected by the control unit 11, it is determined whether or not the delay time satisfies the specified time. Therefore, when the control unit 11 determines that the delay time does not satisfy the specified time for one relay message, it is not necessary to perform the processing from step S503 to step S510 on the same transmission mailbox counter thereafter. Therefore, the processing burden on the simulation apparatus 1 can be reduced.

なお、実施の形態4においては、制御部11は、各送信メールボックス34bにメッセージを割り当てるシミュレーションを行うときに、実施の形態1及び2で説明したように、最低優先度メッセージを最初に選択する処理を行っていない。しかしながら、遅延時間算出処理の初期値(図8中ステップS402参照)を、例えば最低優先度メッセージが通信バス5を占有する時間等の値に調整することにより、中継装置3の中継に遅延が生じ易い状況を模することが可能である。   In the fourth embodiment, the control unit 11 first selects the lowest priority message as described in the first and second embodiments when performing a simulation for assigning a message to each outgoing mailbox 34b. No processing is performed. However, by adjusting the initial value of the delay time calculation process (see step S402 in FIG. 8) to a value such as the time that the lowest priority message occupies the communication bus 5, a delay occurs in the relay of the relay device 3. It is possible to simulate an easy situation.

なお、本実施の形態においては、シミュレーション装置1は、図5中のステップS204におけるアービトレーション処理でメッセージテーブル12bに記憶された送出メッセージを用いる例を説明したが、それ以外の情報を用いて当該処理を行ってもよい。例えば、所定時間毎にランダムに優先度が変化するデータを用いてもよい。その場合、制御部11は、図7中のステップS301では、比較対象を選択する処理に代えて、計時部16に指令を出して、計時を開始してから経過した時間を取得することによって、ステップS302において当該時間に基づいて優先度を比較することができる。   In the present embodiment, the simulation apparatus 1 has been described with reference to the example in which the outgoing message stored in the message table 12b is used in the arbitration process in step S204 in FIG. May be performed. For example, data whose priority changes at random every predetermined time may be used. In that case, in step S301 in FIG. 7, instead of the process of selecting the comparison target, the control unit 11 issues a command to the time measuring unit 16 and acquires the time that has elapsed since the start of time measurement. In step S302, priorities can be compared based on the time.

また、本実施の形態において、シミュレーション装置1は、記憶部12に送信メールボックス34bの数の上限値を記憶し、図6中のステップS218で、送信メールボックスカウンタの値が上限値より大きいか否かを判定したが判定しなくともよい。その場合、ステップS211において全メッセージが規定時間を満たしたと判定されたときの送信メールボックスカウンタの値が、規定時間を満たす送信メールボックス34bの数の最小値となり、中継装置3を製造する際に送信メールボックス34bを最小限の構成とすることができる。   In the present embodiment, the simulation apparatus 1 stores the upper limit value of the number of transmission mailboxes 34b in the storage unit 12, and whether the value of the transmission mailbox counter is larger than the upper limit value in step S218 in FIG. Although it is determined whether or not, it is not necessary to determine. In this case, the value of the transmission mailbox counter when it is determined in step S211 that all messages have satisfied the specified time becomes the minimum value of the number of transmission mailboxes 34b that satisfy the specified time, and the relay device 3 is manufactured. The transmission mailbox 34b can be configured to be minimal.

また、本実施の形態において、シミュレーション装置1は、図6中のステップS213で割当不可メッセージを一時記憶部13に記憶することを説明したが、当該割当不可メッセージを記憶しなくともよい。その場合、シミュレーション装置1は、例えば同一の中継メッセージが複数回、ステップS212で最低優先度メッセージが含まれていると判定されたときに処理を終える等の例外処理を行うことによって、処理が終了しないという不具合を避けることができる。   Further, in the present embodiment, it has been described that the simulation apparatus 1 stores the assignment impossible message in the temporary storage unit 13 in step S213 in FIG. 6, but the assignment impossible message may not be stored. In that case, for example, the simulation apparatus 1 ends the process by performing an exception process such as ending the process when the same relay message is determined to include the lowest priority message a plurality of times in step S212. The trouble of not doing can be avoided.

また、本実施の形態において、シミュレーション装置1は、図6中のステップS224において、規定時間を更新して再度メッセージ割当処理を行うことを説明したが、当該処理を行わなくともよい。その場合であっても、予め記憶部12に記憶した規定時間を満たす送信メールボックス34bに割り当てるべきメッセージを知ることができる。   Further, in the present embodiment, it has been described that the simulation apparatus 1 updates the specified time and performs the message assignment process again in step S224 in FIG. 6, but the process may not be performed. Even in that case, it is possible to know the message to be assigned to the transmission mail box 34b that satisfies the specified time stored in the storage unit 12 in advance.

また、本実施の形態においては、シミュレーション装置1は、中継装置3がメッセージを中継するときの挙動をシミュレートしたが、送信メールボックス34bを備える中継装置3以外の通信装置の挙動をシミュレートし、メッセージ及び当該メッセージが割り当てられる送信メールボックス34bの組を決定するようにしてもよい。また、本実施の形態において、シミュレーション装置1がシミュレートする中継装置3は、CANプロトコルに従って送受信されるメッセージを中継する例を説明するが、優先度を用いるプロトコルであればよい。   In the present embodiment, the simulation apparatus 1 simulates the behavior when the relay apparatus 3 relays a message. However, the simulation apparatus 1 simulates the behavior of a communication apparatus other than the relay apparatus 3 including the transmission mailbox 34b. The set of the message and the transmission mailbox 34b to which the message is assigned may be determined. In the present embodiment, the relay apparatus 3 simulated by the simulation apparatus 1 will be described as an example of relaying a message transmitted / received according to the CAN protocol, but any protocol that uses priority may be used.

今回開示された実施の形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time is to be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the meanings described above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

以上の説明に対し更に以下の項を開示する。
(付記1)
複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージを各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定する割当装置であって、
前記複数のメッセージ及び各メッセージに対応する優先度を記憶する記憶部と、
該記憶部に記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように、各組を決定する決定部と
を備えることを特徴とする割当装置。
The following items are further disclosed with respect to the above description.
(Appendix 1)
When a communication device including a plurality of transmission mailboxes transmits a plurality of externally received messages, a set of messages and transmission mailboxes when assigning each message to one of the transmission mailboxes is defined as the communication. An allocation device that determines by simulating the behavior when a device sends and receives messages,
A storage unit for storing the plurality of messages and a priority corresponding to each message;
A determination unit for determining each group such that a plurality of messages stored in the storage unit and a plurality of messages paired with at least one transmission mailbox are in the order of priority corresponding thereto; An allocation apparatus characterized by the above.

(付記2)
前記記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する選択部と、
前記複数のメッセージ夫々について、前記選択部が選択した順序で一の送信メールボックスに割り当てられたときにおける、前記通信装置が各メッセージを受信してから送信を完了するまでの所要時間を各算出する算出部と、
前記算出部が算出した各所要時間が、所定の許容時間よりも短いか否かを各判定する判定部と
を更に備え、
前記決定部は、前記判定部が否と判定したメッセージに対応する優先度における最低の(又は最高の)優先度よりも低い(又は高い)優先度に対応する前記複数のメッセージ内のメッセージと、前記一の送信メールボックスとを組として決定するようにしてあること
を特徴とする付記1に記載の割当装置。
(Appendix 2)
A selection unit that sequentially selects a plurality of messages stored in the storage unit based on a corresponding priority;
For each of the plurality of messages, each time is calculated from the time when the communication device receives each message until the transmission is completed when it is assigned to one transmission mailbox in the order selected by the selection unit. A calculation unit;
A determination unit for determining whether each required time calculated by the calculation unit is shorter than a predetermined allowable time; and
The determination unit includes a message in the plurality of messages corresponding to a lower (or higher) priority than a lowest (or highest) priority in a priority corresponding to a message that the determination unit determines to be; The allocation apparatus according to claim 1, wherein the one transmission mailbox is determined as a set.

(付記3)
前記記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する選択部と、
前記複数のメッセージ夫々について、前記選択部が選択した順序で一の送信メールボックスに割り当てられたときにおける、前記通信装置が各メッセージを受信してから送信を完了するまでの所要時間を各算出する算出部と、
対応する優先度の低い(又は高い)メッセージ順に、前記算出部が算出した所要時間が所定の許容時間よりも短いか否かを判定する判定部と
を更に備え、
前記決定部は、前記判定部が最初に否と判定したメッセージに対応する優先度よりも低い(又は高い)優先度に対応する前記複数のメッセージ内のメッセージと、前記一の送信メールボックスとを組として決定するようにしてあること
を特徴とする付記1に記載の割当装置。
(Appendix 3)
A selection unit that sequentially selects a plurality of messages stored in the storage unit based on a corresponding priority;
For each of the plurality of messages, each time is calculated from the time when the communication device receives each message until the transmission is completed when it is assigned to one transmission mailbox in the order selected by the selection unit. A calculation unit;
A determination unit for determining whether the required time calculated by the calculation unit is shorter than a predetermined allowable time in order of corresponding low priority (or high) messages;
The determination unit includes a message in the plurality of messages corresponding to a priority lower than (or higher than) a priority corresponding to a message that the determination unit first determines to be negative, and the one transmission mailbox. The assigning device according to appendix 1, wherein the assigning device is determined as a set.

(付記4)
前記算出部は、前記選択部がメッセージを選択する都度、該メッセージに係る前記所要時間を算出するようにしてあり、
前記判定部は、前記算出部が所要時間を算出する都度、該所要時間が所定の許容時間よりも短いか否かを判定するようにしてあること
を特徴とする付記3に記載の割当装置。
(Appendix 4)
The calculation unit calculates the time required for the message every time the selection unit selects a message,
The allocation device according to appendix 3, wherein the determination unit determines whether the required time is shorter than a predetermined allowable time each time the calculation unit calculates the required time.

(付記5)
前記通信装置は、他の通信装置が送信するメッセージに対応する優先度よりも、自身が送信するメッセージに対応する優先度が高い場合、該メッセージを送信するものであり、
前記選択部は、前記記憶部に記憶された複数のメッセージの中から対応する優先度が最低のメッセージを選択し、その後、対応する優先度が高い順にメッセージを順次選択するようにしてあること
を特徴とする付記2から4までの何れか一つに記載の割当装置。
(Appendix 5)
The communication device transmits the message when the priority corresponding to the message transmitted by itself is higher than the priority corresponding to the message transmitted by another communication device.
The selection unit selects a message having the lowest priority from the plurality of messages stored in the storage unit, and then sequentially selects messages in descending order of the corresponding priority. 5. The assigning device according to any one of appendices 2 to 4, which is a feature.

(付記6)
前記通信装置は、前記他の通信装置が接続された通信バスに接続され、該通信バスを介してメッセージを送信するものであり、
前記記憶部は、前記複数のメッセージ夫々が前記通信バスに送出されたときに前記通信バスを占有する占有時間、並びに前記他の通信装置が送信する複数のメッセージ及び各メッセージに対応する優先度を記憶するようにしてあり、
前記記憶部に記憶された他の通信装置が送信するメッセージに対応する優先度及び前記選択部が選択したメッセージに対応する優先度に基づいて、前記通信装置が該メッセージを送信することができるか否かを判定する送信判定部と、
前記選択部がメッセージを選択してから前記送信判定部が該メッセージを送信することができると判定するまでの時間を、前記選択部がメッセージを選択する都度算出する時間算出部と
を備え、
前記算出部は、前記選択部により選択されたメッセージに係る前記占有時間及び該メッセージが選択されたときに前記時間算出部が算出した時間の和を、該時間算出部が時間を算出する都度積算することで前記メッセージに係る所要時間を算出するようにしてあること
を特徴とする付記5に記載の割当装置。
(Appendix 6)
The communication device is connected to a communication bus to which the other communication device is connected, and transmits a message via the communication bus.
The storage unit occupies an occupation time for occupying the communication bus when each of the plurality of messages is sent to the communication bus, and a plurality of messages transmitted by the other communication devices and a priority corresponding to each message. I remember it,
Whether the communication device can transmit the message based on the priority corresponding to the message transmitted by another communication device stored in the storage unit and the priority corresponding to the message selected by the selection unit A transmission determination unit for determining whether or not,
A time calculation unit that calculates a time from when the selection unit selects a message until the transmission determination unit determines that the message can be transmitted, each time the selection unit selects a message, and
The calculation unit adds the occupied time related to the message selected by the selection unit and the sum of the times calculated by the time calculation unit when the message is selected, each time the time calculation unit calculates the time. The allocation device according to appendix 5, wherein the time required for the message is calculated.

(付記7)
前記記憶部は、前記他の通信装置が送信する複数のメッセージ夫々が送信されたときに該通信バスを占有する占有時間を記憶するようにしてあり、
前記選択部が選択したメッセージと、前記他の通信装置が送信するメッセージとに各対応する優先度を比較する比較部を備え、
前記送信判定部は、前記比較部の比較結果が、前記選択部に選択されたメッセージに対応する優先度が一番高いか否かを判定することで、前記メッセージを送信することができるか否かを判定するようにしてあり、
前記比較部は、前記選択部に選択されたメッセージに対応する優先度が、前記送信判定部により一番高くはないと判定されたとき、前記送信判定部により前記優先度が一番高いと判定されるまで、比較対象を変えて優先度の比較を繰り返すようにしてあり、
前記時間算出部は、前記送信判定部が前記選択部により選択されたメッセージに対応する優先度が一番高くはないと判定したときの前記比較部の比較結果における、最も優先度が高いメッセージに対応する占有時間に基づいて時間を算出するようにしてあること
を特徴とする付記6に記載の割当装置。
(Appendix 7)
The storage unit is configured to store an occupation time for occupying the communication bus when each of a plurality of messages transmitted by the other communication device is transmitted.
A comparison unit that compares the corresponding priority between the message selected by the selection unit and the message transmitted by the other communication device;
Whether the transmission determination unit can transmit the message by determining whether the comparison result of the comparison unit has the highest priority corresponding to the message selected by the selection unit. To determine whether
The comparison unit determines that the priority corresponding to the message selected by the selection unit is the highest by the transmission determination unit when the transmission determination unit determines that the priority is not the highest. Until it is done, the priority comparison is repeated by changing the comparison target,
The time calculating unit determines that the message having the highest priority in the comparison result of the comparing unit when the transmission determining unit determines that the priority corresponding to the message selected by the selecting unit is not the highest. The allocation device according to appendix 6, wherein the time is calculated based on the corresponding occupation time.

(付記8)
前記記憶部は、前記複数のメッセージ夫々が送信される送出周期を記憶してあり、
シミュレーションが開始された後、前記複数のメッセージ夫々について送信されるべきか否かを、前記送出周期に基づいて判定する送出周期判定部を備え
前記比較部は、前記送出周期判定部により送信されるべきと判定されたメッセージを前記比較対象とするようにしてあること
を特徴とする付記7に記載の割当装置。
(Appendix 8)
The storage unit stores a transmission cycle in which each of the plurality of messages is transmitted,
After the simulation is started, a transmission cycle determination unit that determines whether or not each of the plurality of messages should be transmitted based on the transmission cycle is provided. The comparison unit is transmitted by the transmission cycle determination unit. The allocation device according to appendix 7, wherein a message determined to be a target is set as the comparison target.

(付記9)
前記記憶部は、前記複数のメッセージ夫々が前記通信装置に受信されるべき周期を記憶してあり、
シミュレーションが開始された後、前記複数のメッセージ夫々について前記通信装置に受信されるべきか否かを前記周期に基づいて判定する周期判定部を備え、
前記選択部は、前記周期判定部により前記通信装置に受信されるべきと判定されたメッセージの中からメッセージを選択するようにしてあること
を特徴とする付記6から8までの何れか一つに記載の割当装置。
(Appendix 9)
The storage unit stores a cycle in which each of the plurality of messages is to be received by the communication device,
After the simulation is started, a cycle determination unit that determines whether or not each of the plurality of messages should be received by the communication device based on the cycle,
The selection unit is configured to select a message from messages determined to be received by the communication device by the cycle determination unit. The allocation device described.

(付記10)
前記算出部は予め設定された初期値から積算するようにしてあること
を特徴とする付記6から9までの何れか一つに記載の割当装置。
(Appendix 10)
The assigning device according to any one of appendices 6 to 9, wherein the calculation unit is configured to integrate from a preset initial value.

(付記11)
前記許容時間は、前記複数のメッセージ夫々に各対応付けて前記記憶部に記憶され、
前記判定部は、記憶部が記憶してある複数のメッセージ全てについて、対応する許容時間よりも短いか否かを判定するようにしてあること
を特徴とする付記6から10までの何れか一つに記載の割当装置。
(Appendix 11)
The allowable time is stored in the storage unit in association with each of the plurality of messages,
The determination unit is configured to determine whether or not all of the plurality of messages stored in the storage unit are shorter than the corresponding allowable time. The allocation device described in 1.

(付記12)
前記決定部によって組として決定されたメッセージを除く前記複数のメッセージ夫々を対応付けて残部のメッセージとして前記記憶部に記憶するようにしてあり、
前記選択部は、前記一の送信メールボックスと異なる他の送信メールボックスに割り当てるべく、前記記憶部に記憶された残部のメッセージの中から最低の優先度に対応するメッセージを選択し、その後、前記他の送信メールボックスに割り当てるべく対応する優先度が高い順に前記メッセージを順次選択するようにしてあること
を特徴とする付記2から11までの何れか一つに記載の割当装置。
(Appendix 12)
The plurality of messages excluding messages determined as a set by the determination unit are associated with each other and stored in the storage unit as remaining messages,
The selection unit selects a message corresponding to the lowest priority from the remaining messages stored in the storage unit to be assigned to another transmission mailbox different from the one transmission mailbox, and then 12. The assigning device according to any one of appendices 2 to 11, wherein the messages are sequentially selected in descending order of priority corresponding to assignment to another transmission mailbox.

(付記13)
前記選択部によって選択された最低の優先度に対応するメッセージにおける前記所要時間が、対応する許容時間よりも長いと前記判定部にて判定された場合、前記メッセージは前記残部のメッセージとは別に、割当不可メッセージとして前記記憶部に記憶するようにしてあること
を特徴とする付記12に記載の割当装置。
(Appendix 13)
When the determination unit determines that the required time in the message corresponding to the lowest priority selected by the selection unit is longer than the corresponding allowable time, the message is separate from the remaining message, 13. The allocation device according to appendix 12, wherein the allocation unit stores the allocation incapable message in the storage unit.

(付記14)
前記記憶部は、前記通信装置が備え得る送信メールボックスの数の上限値を記憶してあり、
前記判定部によって、前記記憶部に記憶された前記割当不可メッセージを除く複数のメッセージ全てにおける各所要時間が、所定の許容時間よりも短いと判定された場合、前記選択部が割り当てるべき送信メールボックスの数が前記上限値以下であるか否かを判定するようにしてあること
を特徴とする付記13に記載の割当装置。
(Appendix 14)
The storage unit stores an upper limit value of the number of transmission mailboxes that the communication device can have,
When the determination unit determines that each required time in all of the plurality of messages other than the unallocated message stored in the storage unit is shorter than a predetermined allowable time, the transmission mailbox to be allocated by the selection unit It is determined whether the number of is below the said upper limit, The allocation apparatus of Claim 13 characterized by the above-mentioned.

(付記15)
前記記憶部に記憶された割当不可メッセージを除く複数のメッセージ全てにおける所要時間夫々が、所定の許容時間よりも短いと前記判定部にて判定された場合、前記記憶部に記憶された前記割当不可メッセージの数を計数する計数部を備え、
該計数部が計数した数が、前記送信メールボックスの数の上限値よりも少ない場合、前記許容時間を所定の倍率で変更した時間に更新し、シミュレーションを再度行い、その後、前記計数部が計数した数が前記送信メールボックスの数の上限値と一致するまで、前記許容時間の更新を行い、シミュレーションを繰り返すこと
を特徴とする付記14に記載の割当装置。
(Appendix 15)
When the determination unit determines that each required time in all of the plurality of messages other than the non-assignable message stored in the storage unit is shorter than a predetermined allowable time, the non-assignment stored in the storage unit A counting unit for counting the number of messages;
When the number counted by the counting unit is smaller than the upper limit value of the number of transmission mailboxes, the allowable time is updated to a time changed by a predetermined magnification, the simulation is performed again, and then the counting unit counts The assigning device according to claim 14, wherein the allowable time is updated and the simulation is repeated until the number of matches matches the upper limit value of the number of transmission mailboxes.

(付記16)
複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージを各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定する割当方法であって、
前記複数のメッセージ及び各メッセージに対応する優先度を予め記憶しておき、
記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように、各組を決定するステップ
を含むことを特徴とする割当方法。
(Appendix 16)
When a communication device including a plurality of transmission mailboxes transmits a plurality of externally received messages, a set of messages and transmission mailboxes when assigning each message to one of the transmission mailboxes is defined as the communication. An allocation method that determines by simulating the behavior when a device sends and receives messages,
A plurality of messages and priorities corresponding to the messages are stored in advance;
An assignment comprising: determining each set such that the order of priority corresponding to each of a plurality of messages paired with at least one outgoing mailbox among the plurality of stored messages is consecutive; Method.

(付記17)
複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージ夫々を各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定することを、前記複数のメッセージ及び各メッセージに対応する優先度を予め記憶してあるコンピュータに行わせるコンピュータプログラムであって、
コンピュータに、
記憶された複数のメッセージの内、任意の送信メールボックスに割り当てるべきでないメッセージを特定するステップと、
特定されたメッセージに対応する優先度よりも低い(又は高い)優先度に対応するメッセージ、及び前記送信メールボックスを組として決定するステップと
を実行させることを特徴とするコンピュータプログラム。
(Appendix 17)
When a communication device including a plurality of transmission mailboxes transmits each of a plurality of externally received messages, a set of messages and transmission mailboxes when assigning each message to any of the transmission mailboxes, A computer program for causing a computer that stores in advance the plurality of messages and the priority corresponding to each message to determine by simulating the behavior when the communication device transmits and receives messages,
On the computer,
Identifying a message that should not be assigned to any outgoing mailbox among a plurality of stored messages;
A computer program, comprising: executing a message corresponding to a priority lower (or higher) than a priority corresponding to the identified message, and a step of determining the transmission mailbox as a set.

(付記18)
通信バスを介して複数のメッセージを送信するときに該メッセージ夫々を割り当てるべき複数の送信メールボックスを備え、異なる通信バスの間で所定のメッセージ群におけるメッセージを順次中継する中継装置を、付記1から15までの何れか一つに記載の割当装置を用いて製造する中継装置の製造方法であって、
前記割当装置の記憶部に、前記メッセージ群及び各メッセージに対応する優先度を記憶する工程と、
前記割当装置に、前記記憶部に記憶されたメッセージ群及び複数の優先度に基づいて、前記中継装置が備える複数の送信メールボックス夫々に割り当てるべき前記メッセージ群におけるメッセージを決定させる工程と
を含むことを特徴とする中継装置の製造方法。
(Appendix 18)
A relay apparatus comprising a plurality of transmission mailboxes to which messages are assigned when transmitting a plurality of messages via a communication bus, and sequentially relaying messages in a predetermined message group between different communication buses, 15. A method of manufacturing a relay device using the allocation device according to any one of up to 15,
Storing the message group and the priority corresponding to each message in the storage unit of the allocation device;
Including causing the assigning device to determine a message in the message group to be assigned to each of a plurality of transmission mailboxes included in the relay device based on the message group stored in the storage unit and a plurality of priorities. The manufacturing method of the relay apparatus characterized by these.

1 シミュレーション装置
2 記録媒体
2a シミュレーションプログラム
3 中継装置
4 ECU
5 通信バス
11 制御部
12 記憶部
12a シミュレーションプログラム
12b メッセージテーブル
13 一時記憶部
34 通信部
34b 送信メールボックス
DESCRIPTION OF SYMBOLS 1 Simulation apparatus 2 Recording medium 2a Simulation program 3 Relay apparatus 4 ECU
5 Communication Bus 11 Control Unit 12 Storage Unit 12a Simulation Program 12b Message Table 13 Temporary Storage Unit 34 Communication Unit 34b Transmission Mailbox

Claims (8)

複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージを各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定する割当装置であって、
前記複数のメッセージ及び各メッセージに対応する優先度を記憶する記憶部と、
該記憶部に記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように、各組を決定する決定部と
を備えることを特徴とする割当装置。
When a communication device including a plurality of transmission mailboxes transmits a plurality of externally received messages, a set of messages and transmission mailboxes when assigning each message to one of the transmission mailboxes is defined as the communication. An allocation device that determines by simulating the behavior when a device sends and receives messages,
A storage unit for storing the plurality of messages and a priority corresponding to each message;
A determination unit for determining each group such that a plurality of messages stored in the storage unit and a plurality of messages paired with at least one transmission mailbox are in the order of priority corresponding thereto; An allocation apparatus characterized by the above.
前記記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する選択部と、
前記複数のメッセージ夫々について、前記選択部が選択した順序で一の送信メールボックスに割り当てられたときにおける、前記通信装置が各メッセージを受信してから送信を完了するまでの所要時間を各算出する算出部と、
前記算出部が算出した各所要時間が、所定の許容時間よりも短いか否かを各判定する判定部と
を更に備え、
前記決定部は、前記判定部が否と判定したメッセージに対応する優先度における最低の(又は最高の)優先度よりも低い(又は高い)優先度に対応する前記複数のメッセージ内のメッセージと、前記一の送信メールボックスとを組として決定するようにしてあること
を特徴とする請求項1に記載の割当装置。
A selection unit that sequentially selects a plurality of messages stored in the storage unit based on a corresponding priority;
For each of the plurality of messages, each time is calculated from the time when the communication device receives each message until the transmission is completed when it is assigned to one transmission mailbox in the order selected by the selection unit. A calculation unit;
A determination unit for determining whether each required time calculated by the calculation unit is shorter than a predetermined allowable time; and
The determination unit includes a message in the plurality of messages corresponding to a lower (or higher) priority than a lowest (or highest) priority in a priority corresponding to a message that the determination unit determines to be; 2. The allocation apparatus according to claim 1, wherein the one transmission mailbox is determined as a set.
前記記憶部に記憶された複数のメッセージを、対応する優先度に基づいて順次選択する選択部と、
前記複数のメッセージ夫々について、前記選択部が選択した順序で一の送信メールボックスに割り当てられたときにおける、前記通信装置が各メッセージを受信してから送信を完了するまでの所要時間を各算出する算出部と、
対応する優先度の低い(又は高い)メッセージ順に、前記算出部が算出した所要時間が所定の許容時間よりも短いか否かを判定する判定部と
を更に備え、
前記決定部は、前記判定部が最初に否と判定したメッセージに対応する優先度よりも低い(又は高い)優先度に対応する前記複数のメッセージ内のメッセージと、前記一の送信メールボックスとを組として決定するようにしてあること
を特徴とする請求項1に記載の割当装置。
A selection unit that sequentially selects a plurality of messages stored in the storage unit based on a corresponding priority;
For each of the plurality of messages, each time is calculated from the time when the communication device receives each message until the transmission is completed when it is assigned to one transmission mailbox in the order selected by the selection unit. A calculation unit;
A determination unit for determining whether the required time calculated by the calculation unit is shorter than a predetermined allowable time in order of corresponding low priority (or high) messages;
The determination unit includes a message in the plurality of messages corresponding to a priority lower than (or higher than) a priority corresponding to a message that the determination unit first determines to be negative, and the one transmission mailbox. The allocation apparatus according to claim 1, wherein the allocation apparatus is determined as a set.
前記算出部は、前記選択部がメッセージを選択する都度、該メッセージに係る前記所要時間を算出するようにしてあり、
前記判定部は、前記算出部が所要時間を算出する都度、該所要時間が所定の許容時間よりも短いか否かを判定するようにしてあること
を特徴とする請求項3に記載の割当装置。
The calculation unit calculates the time required for the message every time the selection unit selects a message,
The allocation device according to claim 3, wherein the determination unit determines whether or not the required time is shorter than a predetermined allowable time each time the calculation unit calculates the required time. .
前記通信装置は、他の通信装置が送信するメッセージに対応する優先度よりも、自身が送信するメッセージに対応する優先度が高い場合、該メッセージを送信するものであり、
前記選択部は、前記記憶部に記憶された複数のメッセージの中から対応する優先度が最低のメッセージを選択し、その後、対応する優先度が高い順にメッセージを順次選択するようにしてあること
を特徴とする請求項2から4までの何れか一つに記載の割当装置。
The communication device transmits the message when the priority corresponding to the message transmitted by itself is higher than the priority corresponding to the message transmitted by another communication device.
The selection unit selects a message having the lowest priority from the plurality of messages stored in the storage unit, and then sequentially selects messages in descending order of the corresponding priority. 5. The assigning device according to any one of claims 2 to 4, characterized in that:
複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージを各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定する割当方法であって、
前記複数のメッセージ及び各メッセージに対応する優先度を予め記憶しておき、
記憶された複数のメッセージの内、少なくとも一の送信メールボックスと組をなす複数のメッセージに各対応する優先度の順が連続するように、各組を決定するステップ
を含むことを特徴とする割当方法。
When a communication device including a plurality of transmission mailboxes transmits a plurality of externally received messages, a set of messages and transmission mailboxes when assigning each message to one of the transmission mailboxes is defined as the communication. An allocation method that determines by simulating the behavior when a device sends and receives messages,
A plurality of messages and priorities corresponding to the messages are stored in advance;
An assignment comprising: determining each set such that the order of priority corresponding to each of a plurality of messages paired with at least one outgoing mailbox among the plurality of stored messages is consecutive; Method.
複数の送信メールボックスを備える通信装置が、外部から受信した複数のメッセージ夫々を各送信するときに、各メッセージを前記送信メールボックスの何れかに割り当てるに際してのメッセージ及び送信メールボックスの組を、前記通信装置がメッセージを送受信するときの挙動をシミュレートすることで決定することを、前記複数のメッセージ及び各メッセージに対応する優先度を予め記憶してあるコンピュータに行わせるコンピュータプログラムであって、
コンピュータに、
記憶された複数のメッセージの内、任意の送信メールボックスに割り当てるべきでないメッセージを特定するステップと、
特定されたメッセージに対応する優先度よりも低い(又は高い)優先度に対応するメッセージ、及び前記送信メールボックスを組として決定するステップと
を実行させることを特徴とするコンピュータプログラム。
When a communication device including a plurality of transmission mailboxes transmits each of a plurality of externally received messages, a set of messages and transmission mailboxes when assigning each message to any of the transmission mailboxes, A computer program for causing a computer that stores in advance the plurality of messages and the priority corresponding to each message to determine by simulating the behavior when the communication device transmits and receives messages,
On the computer,
Identifying a message that should not be assigned to any outgoing mailbox among a plurality of stored messages;
A computer program, comprising: executing a message corresponding to a priority lower (or higher) than a priority corresponding to the identified message, and a step of determining the transmission mailbox as a set.
通信バスを介して複数のメッセージを送信するときに該メッセージ夫々を割り当てるべき複数の送信メールボックスを備え、異なる通信バスの間で所定のメッセージ群におけるメッセージを順次中継する中継装置を、請求項1から5までの何れか一つに記載の割当装置を用いて製造する中継装置の製造方法であって、
前記割当装置の記憶部に、前記メッセージ群及び各メッセージに対応する優先度を記憶する工程と、
前記割当装置に、前記記憶部に記憶されたメッセージ群及び複数の優先度に基づいて、前記中継装置が備える複数の送信メールボックス夫々に割り当てるべき前記メッセージ群におけるメッセージを決定させる工程と
を含むことを特徴とする中継装置の製造方法。
A relay apparatus comprising a plurality of transmission mailboxes to which each message is assigned when transmitting a plurality of messages via a communication bus, and sequentially relaying messages in a predetermined message group between different communication buses. A manufacturing method of a relay device manufactured using the allocation device according to any one of 1 to 5,
Storing the message group and the priority corresponding to each message in the storage unit of the allocation device;
Including causing the assigning device to determine a message in the message group to be assigned to each of a plurality of transmission mailboxes included in the relay device based on the message group stored in the storage unit and a plurality of priorities. The manufacturing method of the relay apparatus characterized by these.
JP2014179238A 2014-09-03 2014-09-03 Allocation device, allocation method, computer program, and manufacturing method for relay device Pending JP2016054385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014179238A JP2016054385A (en) 2014-09-03 2014-09-03 Allocation device, allocation method, computer program, and manufacturing method for relay device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014179238A JP2016054385A (en) 2014-09-03 2014-09-03 Allocation device, allocation method, computer program, and manufacturing method for relay device

Publications (1)

Publication Number Publication Date
JP2016054385A true JP2016054385A (en) 2016-04-14

Family

ID=55745443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014179238A Pending JP2016054385A (en) 2014-09-03 2014-09-03 Allocation device, allocation method, computer program, and manufacturing method for relay device

Country Status (1)

Country Link
JP (1) JP2016054385A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103648A (en) * 2008-10-21 2010-05-06 Fujitsu Ten Ltd Gateway device and gateway method
US20100329272A1 (en) * 2009-04-03 2010-12-30 Honda Motor Co., Ltd. Vehicle onboard gateway apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103648A (en) * 2008-10-21 2010-05-06 Fujitsu Ten Ltd Gateway device and gateway method
US20100329272A1 (en) * 2009-04-03 2010-12-30 Honda Motor Co., Ltd. Vehicle onboard gateway apparatus

Similar Documents

Publication Publication Date Title
CN106527981B (en) Data fragmentation method of self-adaptive distributed storage system based on configuration
EP3419247B1 (en) Method and device for storage resource allocation for video cloud storage
CN110365768A (en) Method of data synchronization, device, medium, the electronic equipment of distributed system
KR102372423B1 (en) Apparatus for sharing parameter and method for using the same
WO2016138638A1 (en) Resource allocation method and apparatus for virtual machines
CN107835266B (en) Method for automatically allocating addresses to same nodes on communication bus
JP2009508247A (en) Method and system for bus arbitration
US10505859B2 (en) Packet deadlines in a queue to control the age of information
JP2008293484A (en) Buffer memory sharing apparatus
US9606945B2 (en) Access controller, router, access controlling method, and computer program
CN109617806B (en) Data traffic scheduling method and device
CN115827253B (en) Chip resource calculation power distribution method, device, equipment and storage medium
KR20180103589A (en) Scheduling method and scheduler for switching
CN114490457A (en) Semiconductor device with a plurality of semiconductor chips
EP2704009A2 (en) Information processing apparatus, information processing method, and program
US9213660B2 (en) Receiver based communication permission token allocation
CN104426793A (en) Apparatus For Controlling Network Traffic
TWI507832B (en) Input/output device, programmable logic controller and computing method by the input/output device
WO2021129534A1 (en) Method for migrating function node, and related device
JP2020088514A (en) Transmission device, communication device, communication system, transmission method, and program
EP3090919B1 (en) Service plan creation device
JP2016054385A (en) Allocation device, allocation method, computer program, and manufacturing method for relay device
JP2015089042A (en) Simulation device, simulation method, computer program, and method of manufacturing relay device
JP5815085B1 (en) Communication system, communication apparatus, connection state determination method, and control program
CN115865866A (en) Address allocation method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171128

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20180724