[go: up one dir, main page]

JP4721741B2 - Data processing module and message receiving method thereof - Google Patents

Data processing module and message receiving method thereof Download PDF

Info

Publication number
JP4721741B2
JP4721741B2 JP2005089459A JP2005089459A JP4721741B2 JP 4721741 B2 JP4721741 B2 JP 4721741B2 JP 2005089459 A JP2005089459 A JP 2005089459A JP 2005089459 A JP2005089459 A JP 2005089459A JP 4721741 B2 JP4721741 B2 JP 4721741B2
Authority
JP
Japan
Prior art keywords
message
buffer
reception
address
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005089459A
Other languages
Japanese (ja)
Other versions
JP2006268743A (en
Inventor
賢一 光末
明洋 小野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2005089459A priority Critical patent/JP4721741B2/en
Publication of JP2006268743A publication Critical patent/JP2006268743A/en
Application granted granted Critical
Publication of JP4721741B2 publication Critical patent/JP4721741B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Description

本発明は、データ処理モジュール及びそのメッセージ受信方法に関する。   The present invention relates to a data processing module and a message receiving method thereof.

近年、通信プロトコルとして、マルチマスタの通信プロトコルが注目されている。マルチマスタの通信プロトコルによれば、バスが解放されているときに、バスに接続されている複数の通信ノードのいずれもがデータをバス上に送信することができ、システムの柔軟性が高い等の特徴がある。このようなマルチマスタの通信プロトコルは、自動車内のECU(電子制御ユニット)間のシリアル通信プロトコルとして用いられており、通信ノードの増減が簡単にできる等、システムの柔軟性が高いため、上記した自動車分野に止まらず、FA(Factory Automation)、船舶、医療機器といった分野の通信プロトコルとしても有望視されている。   In recent years, multi-master communication protocols have attracted attention as communication protocols. According to the multi-master communication protocol, when the bus is released, any of a plurality of communication nodes connected to the bus can transmit data on the bus, and the flexibility of the system is high. There are features. Such a multi-master communication protocol is used as a serial communication protocol between ECUs (electronic control units) in an automobile, and can be easily increased or decreased in communication nodes. In addition to the automobile field, it is also promising as a communication protocol in fields such as FA (Factory Automation), ships, and medical equipment.

マルチマスタの通信プロトコルの例として、マルチマスタのCAN(Controller Area Network、以下、CANという)プロトコル(ISO11898、ISO11519シリーズで規格化)が知られている(特許文献1参照)。CANプロトコルでは、特許文献1の34頁右上欄5)−3 データ交換DPRAM以下に示されたとおり、受信したメッセージの格納に先だって、メッセージの優先度を取得するため受信検索プロセスが行われる。また、メッセージ送信に先だって、送信候補となるメッセージを決定する送信検索プロセスが行われる。そして、同35頁左下欄5)−3.6 探索プロセス及び図20に示されたとおり、メッセージバッファの探索は、分割不可能な動作として実施される。   As an example of a multi-master communication protocol, a multi-master CAN (Controller Area Network, hereinafter referred to as CAN) protocol (standardized by ISO 11898 and ISO 11519 series) is known (see Patent Document 1). In the CAN protocol, the upper right column on page 34 of Patent Document 1 5) -3 Data Exchange DPRAM As shown below, a reception search process is performed to obtain the priority of a message prior to storing the received message. Further, prior to message transmission, a transmission search process for determining a message as a transmission candidate is performed. And the lower left column of page 35, 5) -3.6 As shown in the search process and FIG. 20, the search of the message buffer is performed as an operation that cannot be divided.

特開昭61−195453号公報JP-A 61-195453

従来のCANについて図面を用いて説明する。図5は、CANデバイスの構成を模式的に示したブロック図である。図6は、CANデバイスのメッセージバッファの構成を模式的に示したブロック図である。   A conventional CAN will be described with reference to the drawings. FIG. 5 is a block diagram schematically showing the configuration of the CAN device. FIG. 6 is a block diagram schematically showing the configuration of the message buffer of the CAN device.

CANデバイス1は、CANモジュール2(データ処理モジュール)と、CPU3と、RAM4と、周辺回路5と、を1チップで構成した装置であり、バス6を介してCANトランシーバ(図示せず)に電気的に接続されている(図5参照)。   The CAN device 1 is a device in which a CAN module 2 (data processing module), a CPU 3, a RAM 4, and a peripheral circuit 5 are configured as one chip, and is electrically connected to a CAN transceiver (not shown) via a bus 6. Connected (see FIG. 5).

CANモジュール2は、データの処理を行うデータ処理モジュールであり、メッセージハンドリング部11と、メッセージバッファ12と、CANプロトコル送信層13と、マスクセット14と、を備える(図5参照)。   The CAN module 2 is a data processing module that processes data, and includes a message handling unit 11, a message buffer 12, a CAN protocol transmission layer 13, and a mask set 14 (see FIG. 5).

メッセージハンドリング部11は、受信したメッセージをメッセージバッファ12にストアする処理や、メッセージバッファ12にストアされたメッセージから送信候補となるメッセージを選択する処理等を行う(図5参照)。メッセージハンドリング部11は、メッセージバッファ12にストアされたメッセージから送信候補となるメッセージを選択処理を行う部分において、送信検索用アドレス生成部(図示せず)と、送信検索用比較部(図示せず)と、を有する。また、メッセージハンドリング部11は、メッセージバッファ12にストア処理を行う部分において、ID比較部23と、判定部24と、受信候補アドレス保持部25と、初期化制御部26と、を有する(図7参照)。なお、各構成部23〜26の詳細な構成については後述する。   The message handling unit 11 performs processing for storing the received message in the message buffer 12, processing for selecting a message that is a transmission candidate from the messages stored in the message buffer 12, and the like (see FIG. 5). The message handling unit 11 performs transmission selection address generation unit (not shown) and transmission search comparison unit (not shown) in a part for selecting a message to be a transmission candidate from messages stored in the message buffer 12. And). In addition, the message handling unit 11 includes an ID comparison unit 23, a determination unit 24, a reception candidate address holding unit 25, and an initialization control unit 26 in a part that performs a store process in the message buffer 12 (FIG. 7). reference). In addition, the detailed structure of each structure part 23-26 is mentioned later.

メッセージバッファ12は、所定数のメッセージを格納することが可能なバッファであり(図5参照)、所定数のバッファ(メールボックスに相当)に区切られており、バッファごとにアドレス及び詳細アドレスが付与されている(図6参照)。ここで、詳細アドレスは、比較対象バッファの識別子の基本部分(MIDL)、コントロールフィールドの値等の制御情報の値(MCTRL)、拡張部分(MIDH)等を含む。メッセージは、識別子(ID)、コントロールフィールド(制御セグメント)、メッセージ本文の順に並べられた情報である(図6参照)。各バッファには、メッセージの他に、送受信設定情報(MT)、格納情報(DN)、上書情報(OWS)等のステータス情報が格納されている(図6参照)。送受信設定情報(MT)は、送信設定か受信設定かを示す情報、及び、受信設定の場合はマスク設定情報を含む情報である。なお、マスク設定情報は、(IDの一部をマスクする)マスクセット(図5の14)の設定条件を示す情報であり、マスクの使用の有無、マスクの使用がある場合はマスクの種類(例えば、マスク1〜マスク4のいずれか1つ)を含む。また、送受信設定情報(MT)が受信設定であるバッファには、受信設定に係る識別子(ID)が格納されている。格納情報(DN)は、メッセージの格納の有無を示す情報であり、「1」のときはメッセージの格納あり、「0」のときはメッセージの格納なしである。上書情報(OWS)は、メッセージの上書きの可否を示す情報であり、「1」のときは上書き可能であり、「0」のときは上書き不可である。   The message buffer 12 is a buffer that can store a predetermined number of messages (see FIG. 5), and is divided into a predetermined number of buffers (corresponding to a mailbox), and an address and a detailed address are assigned to each buffer. (See FIG. 6). Here, the detailed address includes the basic part (MIDL) of the identifier of the comparison target buffer, the value of control information such as the value of the control field (MCTRL), the extended part (MIDH), and the like. The message is information arranged in the order of an identifier (ID), a control field (control segment), and a message body (see FIG. 6). In addition to the message, status information such as transmission / reception setting information (MT), storage information (DN), and overwrite information (OWS) is stored in each buffer (see FIG. 6). Transmission / reception setting information (MT) is information including transmission setting or reception setting, and information including mask setting information in the case of reception setting. Note that the mask setting information is information indicating the setting conditions of a mask set (14 in FIG. 5) that masks a part of the ID, and whether or not a mask is used. For example, any one of mask 1 to mask 4) is included. Further, an identifier (ID) related to the reception setting is stored in the buffer whose transmission / reception setting information (MT) is the reception setting. The storage information (DN) is information indicating whether or not a message is stored. When “1”, the message is stored, and when “0”, the message is not stored. The overwriting information (OWS) is information indicating whether or not the message can be overwritten. When it is “1”, it can be overwritten, and when it is “0”, it cannot be overwritten.

CANプロトコル送信層13は、CANプロトコルに従ってCANトランシーバ(図示せず)とデータの送受信を行う(図5参照)。   The CAN protocol transmission layer 13 transmits / receives data to / from a CAN transceiver (not shown) according to the CAN protocol (see FIG. 5).

マスクセット14は、メッセージの所定部分(例えばIDの一部)をマスクする際に用いられる(図5参照)。例えば、IDが4つの数字からなるデータであるとして、アドレス#0〜31のバッファを有するメッセージバッファ12のアドレス#nに受信設定に係るIDに0533hが割り振られていた場合において、送受信設定情報(MT)が「マスク1あり」の場合はID=053xh(xは0〜9、a〜f)の16種類のメッセージがアドレス#nのバッファに格納され、送受信設定情報(MT)が「マスク2あり」の場合はID=05xxh(xは0〜9、a〜f)の256種類のメッセージがアドレス#nのバッファに格納され、送受信設定情報(MT)が「マスク3あり」の場合はID=0xxxh(xは0〜9、a〜f)の4096種類のメッセージがアドレス#nのバッファに格納され、送受信設定情報(MT)が「マスク4あり」の場合はID=xxxxh(xは0〜9、a〜f)の65536種類のメッセージがアドレス#nのバッファに格納されることになる。   The mask set 14 is used when a predetermined part (for example, a part of ID) of a message is masked (see FIG. 5). For example, assuming that the ID is data consisting of four numbers, when 0533h is assigned to the address #n of the message buffer 12 having the buffers of the addresses # 0 to 31 as the ID related to the reception setting, the transmission / reception setting information ( When (MT) is “with mask 1”, 16 types of messages with ID = 053xh (x is 0 to 9, a to f) are stored in the buffer of address #n, and the transmission / reception setting information (MT) is “mask 2”. If “Yes”, 256 types of messages with ID = 05xxh (x is 0 to 9, a to f) are stored in the buffer at address #n, and if the transmission / reception setting information (MT) is “with mask 3”, ID = 4096h (x is 0 to 9, a to f) are stored in the buffer at address #n, and the transmission / reception setting information (MT) is “with mask 4” ID = xxxxh if (x is 0 to 9, a to f) so that the 65536 message types is stored in the buffer address #n.

CPU3は、例えば、各種センサ(図示せず)からのデータを周辺回路5を介して取り出すとともにRAM4を利用して所望の処理を実行してメッセージバッファ12にデータを書き込む処理や、メッセージバッファ12に書き込まれたメッセージを取り出して所望の処理を実行した後、周辺回路5を介して外部に接続された表示装置(図示せず)にデータを送信する処理等を行う(図5参照)。   For example, the CPU 3 takes out data from various sensors (not shown) via the peripheral circuit 5, executes a desired process using the RAM 4, writes data to the message buffer 12, and stores the data in the message buffer 12. After taking out the written message and executing a desired process, a process of transmitting data to a display device (not shown) connected to the outside via the peripheral circuit 5 is performed (see FIG. 5).

周辺回路5は、例えば、CANデバイス1の外部に設けられた各種センサ(図示せず)及び表示装置(図示せず)と接続され、CANデバイス1の外部と内部との間のインターフェースを行う(図5参照)。   The peripheral circuit 5 is connected to, for example, various sensors (not shown) and a display device (not shown) provided outside the CAN device 1 and performs an interface between the outside and the inside of the CAN device 1 ( (See FIG. 5).

次に、従来例のCANデバイスのCANプロトコル送信層およびメッセージハンドリング部について図面を用いて説明する。図7は、CANデバイスのメッセージハンドリング部およびCANプロトコル送信層の構成を模式的に示したブロック図である。   Next, a CAN protocol transmission layer and a message handling unit of a conventional CAN device will be described with reference to the drawings. FIG. 7 is a block diagram schematically showing the configuration of the message handling unit and the CAN protocol transmission layer of the CAN device.

CANプロトコル送信層13は、格納処理部21と、サーチ用アドレス生成部22と、を有する。   The CAN protocol transmission layer 13 includes a storage processing unit 21 and a search address generation unit 22.

格納処理部21は、受信したメッセージをメッセージバッファ12の所定アドレスのバッファに格納する処理を行う部分である。格納処理部21は、メッセージを受信することにより、受信信号をサーチ用アドレス生成部22に向けて出力する。ここで、受信信号は、メッセージを受信したことを示すための信号である。格納処理部21は、メッセージを受信することにより、メッセージ中のID(メッセージID)を読み出して当該メッセージIDをID比較部23に向けて出力する。格納処理部21は、判定部24からの受信検索結果有効フラグがレベル「1」のときに、受信候補アドレス保持部25からの受信候補アドレス(保持された受信候補アドレス)に対応するメッセージバッファ12のアドレスのバッファに向けてメッセージ(受信したメッセージ)を出力する。ここで、受信検索結果有効フラグは、受信検索の結果が有効であることを示すフラグであり、格納処理部21にてメッセージの格納処理を許可するためのフラグである。格納処理部21から出力されたメッセージは、対応するアドレスのバッファに格納されることになる。格納処理部21は、メッセージの格納が完了すると、(1)対応するアドレスのバッファの格納情報(DN)をセットして「1」にし、(2)初期化制御部26に格納完了情報を送信し、その後、新たなメッセージを受信することになる。   The storage processing unit 21 is a part that performs processing for storing the received message in a buffer at a predetermined address of the message buffer 12. The storage processing unit 21 receives the message and outputs the received signal to the search address generation unit 22. Here, the received signal is a signal for indicating that a message has been received. Upon receiving the message, the storage processing unit 21 reads an ID (message ID) in the message and outputs the message ID to the ID comparison unit 23. When the reception search result valid flag from the determination unit 24 is level “1”, the storage processing unit 21 stores the message buffer 12 corresponding to the reception candidate address (held reception candidate address) from the reception candidate address holding unit 25. A message (received message) is output to the buffer at the address. Here, the reception search result valid flag is a flag indicating that the result of the reception search is valid, and is a flag for permitting the storage processing unit 21 to store the message. The message output from the storage processing unit 21 is stored in the buffer at the corresponding address. When the storage of the message is completed, the storage processing unit 21 sets (1) the storage information (DN) of the buffer at the corresponding address to “1”, and (2) transmits the storage completion information to the initialization control unit 26. After that, a new message is received.

サーチ用アドレス生成部22は、格納処理部21からの受信信号を受けることにより、メッセージバッファ12のアドレス及び詳細アドレスを検索するためのアドレス及び詳細アドレスを生成する部分である。例えば、メッセージバッファ12中にアドレス#31〜#0があり、アドレスごとに詳細アドレス(MIDH、MCTRL、MIDL)がある場合、アドレス#31とその詳細アドレスを生成し、その後、アドレス#30から#0まで順々に同様な生成を行うことになる。サーチ用アドレス生成部22は、生成されたアドレス及び詳細アドレス(生成アドレス等)をメッセージバッファ12に向けて出力するとともに、生成されたアドレス(生成アドレスのみ)を受信候補アドレス保持部25に向けて出力する。サーチ用アドレス生成部22から出力された生成アドレス等がメッセージバッファ12に入力されることにより、(1)対応するアドレスに係るバッファから受信設定IDが読み出されて、当該受信設定IDがID比較部23に向けて出力されるとともに、(2)対応するアドレスに係るバッファの送受信設定情報(MT)、格納情報(DN)および上書情報(OWS)が読み出されて、当該送受信設定情報(MT)、当該格納情報(DN)および当該上書情報(OWS)が判定部24に向けて出力されることになる。   The search address generation unit 22 is a part that generates an address and a detailed address for searching for an address and a detailed address of the message buffer 12 by receiving a reception signal from the storage processing unit 21. For example, when there are addresses # 31 to # 0 in the message buffer 12 and there are detailed addresses (MIDH, MCTRL, MIDL) for each address, an address # 31 and its detailed address are generated, and then the address # 30 to ## Similar generation is performed in order up to zero. The search address generation unit 22 outputs the generated address and the detailed address (generated address, etc.) to the message buffer 12, and also outputs the generated address (only the generated address) to the reception candidate address holding unit 25. Output. When the generated address output from the search address generator 22 is input to the message buffer 12, (1) the reception setting ID is read from the buffer associated with the corresponding address, and the reception setting ID is compared with the ID. (2) The transmission / reception setting information (MT), storage information (DN) and overwriting information (OWS) of the buffer associated with the corresponding address are read out, and the transmission / reception setting information ( MT), the stored information (DN), and the overwriting information (OWS) are output toward the determination unit 24.

メッセージハンドリング部11は、メッセージバッファ12にストア処理を行う部分において、ID比較部23と、判定部24と、受信候補アドレス保持部25と、初期化制御部26と、を有する。   The message handling unit 11 includes an ID comparison unit 23, a determination unit 24, a reception candidate address holding unit 25, and an initialization control unit 26 in a part that performs a store process in the message buffer 12.

ID比較部23は、メッセージバッファ12からの受信設定IDと、格納処理部21からのメッセージIDと、が一致するか否かを比較する部分である。ID比較部23では、順々に入力されてくる受信設定IDと、メッセージIDと、が比較されることになる。ID比較部23は、受信設定IDとメッセージIDが一致したときにFIT信号(一致信号;レベル「1」)を判定部24に向けて出力する。なお、受信設定IDとメッセージIDが一致しないときは、FIT信号は出力されない(FIT信号がレベル「0」)。   The ID comparison unit 23 is a part that compares whether the reception setting ID from the message buffer 12 matches the message ID from the storage processing unit 21. In the ID comparison unit 23, the reception setting IDs input sequentially and the message IDs are compared. The ID comparison unit 23 outputs a FIT signal (match signal; level “1”) to the determination unit 24 when the reception setting ID matches the message ID. When the reception setting ID and the message ID do not match, the FIT signal is not output (FIT signal is level “0”).

判定部24は、メッセージバッファ12からの送受信設定情報(MT)、格納情報(DN)および上書情報(OWS)と、ID比較部23からのFIT信号と、に基づいて、メッセージを格納すべきアドレスの優位性を判定する部分である。判定部24は、ID比較部23からのFIT信号(レベル「1」)が入力されたときに、当該FIT信号に対応するアドレスが優位と判定されると、受信候補アドレス保持部25に向けて受信候補アドレス更新信号(レベル「1」)を出力するとともに、格納処理部21に向けて受信検索結果有効フラグ(レベル「1」)を出力する。ここで、受信候補アドレス更新信号は、受信候補アドレス保持部25に入力された対応する生成アドレスを受信候補となるアドレスとして更新するための信号である。受信検索結果有効フラグは、受信検索の結果が有効であることを示すフラグであり、格納処理部21にてメッセージの格納処理を許可するためのフラグである。判定部24は、初期化制御部26からの初期化信号を受けることにより、(判定部24の内部に)保持された所定の情報を初期化する。ここで、初期化信号は、判定部24において保持された所定の情報を初期化するための信号である。なお、判定部24の詳細な構成については後述する。   The determination unit 24 should store a message based on the transmission / reception setting information (MT), storage information (DN), and overwrite information (OWS) from the message buffer 12 and the FIT signal from the ID comparison unit 23. This is the part that determines the superiority of the address. When the determination unit 24 determines that the address corresponding to the FIT signal is superior when the FIT signal (level “1”) is input from the ID comparison unit 23, the determination unit 24 proceeds toward the reception candidate address holding unit 25. A reception candidate address update signal (level “1”) is output, and a reception search result valid flag (level “1”) is output to the storage processing unit 21. Here, the reception candidate address update signal is a signal for updating the corresponding generated address input to the reception candidate address holding unit 25 as an address to be a reception candidate. The reception search result valid flag is a flag indicating that the result of the reception search is valid, and is a flag for allowing the storage processing unit 21 to store the message. The determination unit 24 initializes predetermined information held (inside the determination unit 24) by receiving an initialization signal from the initialization control unit 26. Here, the initialization signal is a signal for initializing predetermined information held in the determination unit 24. The detailed configuration of the determination unit 24 will be described later.

受信候補アドレス保持部25は、判定部24からの受信候補アドレス更新信号(レベル「1」)を受けたときに、サーチ用アドレス生成部22からの対応する生成アドレスを受信候補アドレスとして更新し、保持する部分である。受信候補アドレス保持部25は、保持した受信候補アドレスを格納処理部21に向けて出力する。   When the reception candidate address holding unit 25 receives the reception candidate address update signal (level “1”) from the determination unit 24, the corresponding generation address from the search address generation unit 22 is updated as the reception candidate address. The part to hold. The reception candidate address holding unit 25 outputs the held reception candidate address toward the storage processing unit 21.

初期化制御部26は、格納処理部21からの格納完了情報を受信することにより、初期化信号を判定部24に向けて出力する。   The initialization control unit 26 receives the storage completion information from the storage processing unit 21 and outputs an initialization signal to the determination unit 24.

次に、従来例のCANデバイスのメッセージハンドリング部の判定部について図面を用いて説明する。図8は、従来例に係るCANモジュールの判定部の構成を模式的に示したブロック図である。   Next, the determination unit of the message handling unit of the conventional CAN device will be described with reference to the drawings. FIG. 8 is a block diagram schematically showing the configuration of the determination unit of the CAN module according to the conventional example.

判定部24は、受信候補MT保持部131と、受信候補DN保持部132と、受信候補OWS保持部133と、MT判定部134と、DN/OWS判定部135と、優位性判定部136と、受信候補アドレス更新判定部137と、受信検索結果判定部138と、を有する。   The determination unit 24 includes a reception candidate MT storage unit 131, a reception candidate DN storage unit 132, a reception candidate OWS storage unit 133, an MT determination unit 134, a DN / OWS determination unit 135, and a superiority determination unit 136. A reception candidate address update determination unit 137 and a reception search result determination unit 138 are provided.

受信候補MT保持部131は、受信候補となるアドレスの送受信設定情報(受信候補MT)のマスク設定情報を保持する部分である。受信候補MT保持部131は、受信候補アドレス更新判定部137からの受信候補アドレス更新信号(レベル「1」)を受けたときに、そのときにメッセージバッファ(図7の12)から出力されている送受信設定情報(MT)のマスク設定情報に更新される。受信候補MT保持部131は、初期化制御部(図7の26)からの初期化信号を受けたときに、初期化され、受信候補MTのマスク設定情報を最も優先順位の低い状態(例えば、マスク4あり;表1参照)になる。受信候補MT保持部131は、保持している受信候補MTのマスク設定情報をMT判定部134に向けて出力する。なお、マスク設定情報の優先順位は、例えば、「マスクなし」が最も優先順位が高く、以下「マスク1あり(IDの下1桁のマスク)」、「マスク2あり(IDの下2桁のマスク)」、「マスク3あり(IDの下3桁のマスク)」、「マスク4あり(IDの下4桁のマスク)」の順に優先順位が低くなってゆく(表1参照)。   The reception candidate MT holding unit 131 is a part that holds mask setting information of transmission / reception setting information (reception candidate MT) of an address that is a reception candidate. When the reception candidate MT holding unit 131 receives a reception candidate address update signal (level “1”) from the reception candidate address update determination unit 137, the reception candidate MT holding unit 131 outputs the reception candidate address update signal from the message buffer (12 in FIG. 7). The transmission / reception setting information (MT) is updated to mask setting information. The reception candidate MT holding unit 131 is initialized when receiving the initialization signal from the initialization control unit (26 in FIG. 7), and sets the mask setting information of the reception candidate MT in the state with the lowest priority (for example, There is a mask 4; see Table 1). The reception candidate MT holding unit 131 outputs the held mask setting information of the reception candidate MT to the MT determination unit 134. The priority of the mask setting information is, for example, “No mask” has the highest priority, and hereinafter, “With mask 1 (the last one digit mask of ID)”, “With mask 2 (the last two digits of ID) “Mask)”, “With mask 3 (the last three digits of the ID)”, and “With mask 4 (the last four digits of the ID)”, the order of priority decreases (see Table 1).

Figure 0004721741
Figure 0004721741

受信候補DN保持部132は、受信候補となるアドレスの格納情報(受信候補DN)を保持する部分である。受信候補DN保持部132は、受信候補アドレス更新判定部137からの受信候補アドレス更新信号(レベル「1」)を受けたときに、そのときにメッセージバッファ(図7の12)から出力されている格納情報(DN)に更新される。受信候補DN保持部132は、保持している受信候補DNをDN/OWS判定部135に向けて出力する。   The reception candidate DN holding unit 132 is a part that holds storage information (reception candidate DN) of addresses that are reception candidates. When receiving candidate address update signal (level “1”) is received from receiving candidate address update determining section 137, receiving candidate DN holding section 132 is output from the message buffer (12 in FIG. 7) at that time. Updated to storage information (DN). The reception candidate DN holding unit 132 outputs the held reception candidate DN toward the DN / OWS determination unit 135.

受信候補OWS保持部133は、受信候補となるアドレスの上書情報(受信候補OWS)を保持する部分である。受信候補OWS保持部133は、受信候補アドレス更新判定部137からの受信候補アドレス更新信号(レベル「1」)を受けたときに、そのときにメッセージバッファ(図7の12)から出力されている上書情報(OWS)に更新される。受信候補OWS保持部133は、保持している受信候補OWSを優位性判定部136に向けて出力する。   The reception candidate OWS holding unit 133 is a part that holds the overwrite information (reception candidate OWS) of an address that is a reception candidate. When receiving candidate address update signal (level “1”) is received from receiving candidate address update determining section 137, receiving candidate OWS holding section 133 is output from the message buffer (12 in FIG. 7) at that time. Updated to overwrite information (OWS). The reception candidate OWS holding unit 133 outputs the held reception candidate OWS to the superiority determination unit 136.

なお、DNとOWSの組合せの優先順位は、DN=0であるときOWSを問わず最も優先順位が高く、DN=1でOWS=1であるときが2番目に優先順位が高く、DN=1でOWS=0であるときが最も優先順位が低い(表2参照)。   The combination of DN and OWS has the highest priority regardless of OWS when DN = 0, the second highest when DN = 1 and OWS = 1, and DN = 1. When OWS = 0, the lowest priority is given (see Table 2).

Figure 0004721741
Figure 0004721741

MT判定部134は、メッセージバッファ(図7の12)からの送受信設定情報(MT)と、受信候補MT保持部131からの受信候補MTと、を比較して、送受信設定情報(MT)の優位性を判定(MT判定)する部分である。MTと受信候補MTの比較では、マスク設定情報同士が比較される。MT判定部134は、MTと受信候補MTの比較により、MTの優先順位が高いときに「優」と判定し、MTの優先順位が低いときに「劣」と判定し、MTと受信候補MTの優先順位が同じときに「同」と判定する(表1参照)。MT判定部134は、判定結果であるMT判定情報を優位性判定部136に向けて出力する。   The MT determination unit 134 compares the transmission / reception setting information (MT) from the message buffer (12 in FIG. 7) with the reception candidate MT from the reception candidate MT holding unit 131, and the superiority of the transmission / reception setting information (MT). This is a part for determining sex (MT determination). In the comparison between the MT and the reception candidate MT, the mask setting information is compared. The MT determination unit 134 determines “excellent” when the MT priority is high by comparing the MT and the reception candidate MT, determines “inferior” when the MT priority is low, and determines the MT and the reception candidate MT. Are determined to be “same” (see Table 1). The MT determination unit 134 outputs the MT determination information that is the determination result to the superiority determination unit 136.

DN/OWS判定部135は、メッセージバッファ(図7の12)からの格納情報(DN)および上書情報(OWS)と、受信候補DN保持部132からの受信候補DNと、に基づいて、DNおよびOWSの組合せと受信候補DNおよび受信候補OWSの組合せとを比較したときのDNおよびOWSの組合せの優位性を判定(DN/OWS判定)する部分である。DNおよびOWSの組合せの優位性の判定基準は表3の通りである。DN/OWS判定部135は、判定結果であるDN/OWS判定情報と、DN、OWS及び受信候補DNと、を優位性判定部136に向けて出力する。なお、図8において、DN/OWS判定部135は、受信候補OWS保持部133から受信候補OWSを受けていない構成になっているが、これはDN/OWS判定部135のDN/OWS判定において受信候補OWSが影響しないからである。   The DN / OWS determination unit 135 performs DN based on the storage information (DN) and overwrite information (OWS) from the message buffer (12 in FIG. 7) and the reception candidate DN from the reception candidate DN holding unit 132. And a combination of the OWS and the combination of the reception candidate DN and the reception candidate OWS to determine the superiority of the combination of the DN and the OWS (DN / OWS determination). Table 3 shows the criteria for determining the superiority of the combination of DN and OWS. The DN / OWS determination unit 135 outputs the DN / OWS determination information as the determination result, the DN, the OWS, and the reception candidate DN to the superiority determination unit 136. In FIG. 8, the DN / OWS determination unit 135 is configured not to receive the reception candidate OWS from the reception candidate OWS holding unit 133, but this is received in the DN / OWS determination of the DN / OWS determination unit 135. This is because the candidate OWS has no effect.

Figure 0004721741
Figure 0004721741

優位性判定部136は、MT判定部134からのMT判定情報と、DN/OWS判定部135からのDN/OWS判定情報、DN、OWS及び受信候補DNと、受信候補OWS保持部133からの受信候補OWSと、に基づいて、メッセージを格納すべきバッファのアドレスの優位性を判定する部分である。優位性判定部136は、第1書込判定部136aと、第2書込判定部136bと、総合判定部136cと、を有する。   The superiority determination unit 136 receives the MT determination information from the MT determination unit 134, the DN / OWS determination information from the DN / OWS determination unit 135, the DN, OWS, and the reception candidate DN, and the reception candidate OWS holding unit 133. This is a part for determining the superiority of the address of the buffer to store the message based on the candidate OWS. The superiority determination unit 136 includes a first write determination unit 136a, a second write determination unit 136b, and an overall determination unit 136c.

第1書込判定部136aは、DNおよびOWSに基づいて、DNおよびOWSの組合せが書込み可能か否かを判定(第1書込判定)する部分である。第1書込判定部136aは、(1)DN=0のときはOWSにかかわらず「書込可能」と判定し、(2)DN=1でOWS=1のときは「書込可能」と判定し、(3)DN=1でOWS=0のときは「書込不可」と判定する(表4参照)。   The first write determination unit 136a is a part that determines whether the combination of DN and OWS is writable based on DN and OWS (first write determination). The first write determining unit 136a determines (1) “write is possible” regardless of OWS when DN = 0, and (2) “write is possible” when DN = 1 and OWS = 1. (3) When DN = 1 and OWS = 0, it is determined that “write is impossible” (see Table 4).

Figure 0004721741
Figure 0004721741

第2書込判定部136bは、受信候補DNおよび受信候補OWSに基づいて、受信候補DNおよび受信候補OWSの組合せが書込み可能か否かを判定(第2書込判定)する部分である。第2書込判定部136bは、(1)受信候補DN=0のときは受信候補OWSにかかわらず「書込可能」と判定し、(2)受信候補DN=1で受信候補OWS=1のときは「書込可能」と判定し、(3)受信候補DN=1で受信候補OWS=0のときは「書込不可」と判定する(表4参照)。   The second writing determination unit 136b is a part that determines whether or not the combination of the reception candidate DN and the reception candidate OWS can be written based on the reception candidate DN and the reception candidate OWS (second writing determination). The second write determination unit 136b determines (1) “Writable” regardless of the reception candidate OWS when the reception candidate DN = 0, and (2) When the reception candidate DN = 1 and the reception candidate OWS = 1. When the reception candidate DN = 1 and the reception candidate OWS = 0, it is determined that “writing is impossible” (see Table 4).

総合判定部136cは、MT判定部134からのMT判定情報と、DN/OWS判定部135からのDN/OWS判定情報と、第1書込判定部136aの第1書込判定結果と、第2書込判定部136bの第2書込判定結果と、に基づいて、メッセージを格納すべきバッファのアドレスの優位性を総合判定する。総合判定部136cは、(1)MT判定情報が「優」でDN/OWS判定情報が「1」であるときは、第1書込判定結果および第2書込判定結果にかかわらず、優位性判定信号(レベル「1」)を出力し、(2)MT判定情報が「優」でDN/OWS判定情報が「0」で第1書込判定結果が「書込可能」であるときは、第2書込判定結果にかかわらず、優位性判定信号(レベル「1」)を出力し、(3)MT判定情報が「優」でDN/OWS判定情報が「0」で第1書込判定結果が「書込不可」であるときは、第2書込判定結果にかかわらず、優位性判定信号が出力されず(レベル「0」)、(4)MT判定情報が「同」でDN/OWS判定情報が「1」であるときは、第1書込判定結果および第2書込判定結果にかかわらず、優位性判定信号(レベル「1」)を出力し、(5)MT判定情報が「同」でDN/OWS判定情報が「0」であるときは、第1書込判定結果および第2書込判定結果にかかわらず、優位性判定信号が出力されず(レベル「0」)、(6)MT判定情報が「劣」でDN/OWS判定情報が「1」で第2書込判定結果が「書込可能」であるときは、第1書込判定結果にかかわらず、優位性判定信号を出力せず(レベル「0」)、(7)MT判定情報が「劣」でDN/OWS判定情報が「1」で第2書込判定結果が「書込不可」であるときは、第1書込判定結果にかかわらず、優位性判定信号(レベル「1」)を出力し、(8)MT判定情報が「劣」でDN/OWS判定情報が「0」であるときは、第1書込判定結果および第2書込判定結果にかかわらず、優位性判定信号が出力されない(レベル「0」)(表5参照)。   The overall determination unit 136c includes the MT determination information from the MT determination unit 134, the DN / OWS determination information from the DN / OWS determination unit 135, the first write determination result of the first write determination unit 136a, and the second Based on the second write determination result of the write determination unit 136b, the superiority of the address of the buffer in which the message is to be stored is comprehensively determined. The overall determination unit 136c (1) When the MT determination information is “excellent” and the DN / OWS determination information is “1”, the comprehensive determination unit 136c is superior regardless of the first write determination result and the second write determination result. When a determination signal (level “1”) is output and (2) the MT determination information is “excellent”, the DN / OWS determination information is “0”, and the first write determination result is “writable”, Regardless of the second write determination result, the superiority determination signal (level “1”) is output, and (3) the first write determination is performed when the MT determination information is “excellent” and the DN / OWS determination information is “0”. When the result is “not writable”, the superiority determination signal is not output regardless of the second write determination result (level “0”), and (4) the MT determination information is “same” and DN / When the OWS determination information is “1”, the superiority determination signal is transmitted regardless of the first write determination result and the second write determination result. (Level “1”) is output, and (5) when the MT determination information is “same” and the DN / OWS determination information is “0”, the first write determination result and the second write determination result are related. Therefore, the superiority determination signal is not output (level “0”), (6) the MT determination information is “poor”, the DN / OWS determination information is “1”, and the second write determination result is “writable”. , The superiority determination signal is not output regardless of the first write determination result (level “0”), (7) the MT determination information is “poor”, and the DN / OWS determination information is “1”. When the second write determination result is “unwritable”, the superiority determination signal (level “1”) is output regardless of the first write determination result, and (8) the MT determination information is “ If the DN / OWS determination information is “0”, the advantage is superior regardless of the first writing determination result and the second writing determination result. Determination signal is not outputted (level "0") (see Table 5).

Figure 0004721741
Figure 0004721741

受信候補アドレス更新判定部137は、受信候補アドレス保持部25にて受信候補アドレスを更新するか否かを判定するAND回路である。受信候補アドレス更新判定部137は、優位性判定部136からの優位性判定信号(レベル「1」)と、ID比較部(図7の23)からの対応するFIT信号(レベル「1」)と、が入力されることにより、受信候補MT保持部131、受信候補DN保持部132、受信候補OWS保持部133、受信検索結果判定部138、及び受信候補アドレス保持部25のそれぞれに向けて受信候補アドレス更新信号(レベル「1」)を出力する。   The reception candidate address update determination unit 137 is an AND circuit that determines whether or not the reception candidate address holding unit 25 updates the reception candidate address. The reception candidate address update determination unit 137 receives the superiority determination signal (level “1”) from the superiority determination unit 136 and the corresponding FIT signal (level “1”) from the ID comparison unit (23 in FIG. 7). , Is input to the reception candidate MT holding unit 131, the reception candidate DN holding unit 132, the reception candidate OWS holding unit 133, the reception search result determination unit 138, and the reception candidate address holding unit 25. An address update signal (level “1”) is output.

受信検索結果判定部138は、受信検索結果が有効か否かを判定するフリップフロップ回路部である。受信検索結果判定部138は、受信候補アドレス更新判定部137からの受信候補アドレス更新信号(レベル「1」)を受けてから初期化制御部(図7の26)からの初期化信号(レベル「1」)を受けるまでの間、受信検索結果有効フラグとしてレベル「1」を出力する。受信検索結果判定部138は、初期化信号(レベル「1」)を受けてから受信候補アドレス更新信号を受けるまでの間、受信検索結果有効フラグとしてレベル「0」を出力する。   The reception search result determination unit 138 is a flip-flop circuit unit that determines whether the reception search result is valid. The reception search result determination unit 138 receives the reception candidate address update signal (level “1”) from the reception candidate address update determination unit 137 and then receives an initialization signal (level “26” in FIG. 7). 1 "), level" 1 "is output as a reception search result valid flag. The reception search result determination unit 138 outputs the level “0” as the reception search result valid flag from when the initialization signal (level “1”) is received until the reception candidate address update signal is received.

次に、従来例のCANデバイスの動作(受信したメッセージの格納処理の際の動作)について説明する。   Next, the operation of the conventional CAN device (the operation when storing the received message) will be described.

まず、格納処理部(図7の21)にてメッセージを受信したときに、メッセージIDがID比較部(図7の23)に向けて出力され、受信信号がサーチ用アドレス生成部(図7の22)に向けて出力される。次に、サーチ用アドレス生成部(図7の22)にて受信信号を受信することにより、アドレス及び詳細アドレス(MIDH、MCTRL、MIDL)が生成される。   First, when a message is received by the storage processing unit (21 in FIG. 7), the message ID is output to the ID comparison unit (23 in FIG. 7), and the received signal is sent to the search address generation unit (in FIG. 7). 22). Next, an address and a detailed address (MIDH, MCTRL, MIDL) are generated by receiving the received signal at the search address generator (22 in FIG. 7).

次に、生成されたアドレスに基づいて、メッセージバッファ(図7の12)から、対応するアドレスの受信設定IDが読み出され、ID比較部(図7の23)にてメッセージIDと受信設定IDが一致するか否かが比較されることになる。メッセージIDと受信設定IDが一致したときは、ID比較部(図7の23)からFIT信号が出力される。一方で、生成されたアドレスに基づいて、メッセージバッファ(図7の12)から、対応するアドレスの送受信設定情報(MT)、格納情報(DN)、及び上書情報(OWS)が読み出され、判定部(図7の24)にて送受信設定情報(MT)、格納情報(DN)、上書情報(OWS)およびFIT信号に基づいて各アドレスの優位性を判定する。各アドレスの優位性の判定では、MT判定部(図8の134)にてMTと受信候補MTに基づいてMTの優位性を判定したMT判定情報と、DN/OWS判定部(図8の135)にてDNとOWSと受信候補DNに基づいてDNとOWSの組合せの優位性を判定したDN/OWS判定情報と、DN/OWS判定部(図8の135)からのDN、OWSおよび受信候補DNと、受信候補OWSと、に基づいて、優位性判定部(図8の136)にてメッセージを格納すべきバッファのアドレスの優位性の総合判定を行う。優位性が高いと判定されると、優位性判定部(図8の136)から優位性判定信号が出力される。受信候補アドレス更新判定部(図8の137)に優位性判定信号およびFIT信号が入力されたときに、受信候補アドレス更新信号が出力され、受信検索結果判定部(図8の138)に受信候補アドレス更新信号が入力されたときに受信検索結果有効フラグが出力される。   Next, the reception setting ID of the corresponding address is read from the message buffer (12 in FIG. 7) based on the generated address, and the message ID and the reception setting ID are read by the ID comparison unit (23 in FIG. 7). Are compared. When the message ID matches the reception setting ID, the FIT signal is output from the ID comparison unit (23 in FIG. 7). On the other hand, based on the generated address, transmission / reception setting information (MT), storage information (DN), and overwrite information (OWS) of the corresponding address are read from the message buffer (12 in FIG. 7). The determination unit (24 in FIG. 7) determines the superiority of each address based on the transmission / reception setting information (MT), the storage information (DN), the overwriting information (OWS), and the FIT signal. In determining the superiority of each address, the MT determination unit (134 in FIG. 8) determines the MT superiority based on the MT and the reception candidate MT, and the DN determination information (135 in FIG. 8). ), DN / OWS determination information that determines the superiority of the combination of DN and OWS based on DN, OWS, and reception candidate DN, and DN, OWS, and reception candidate from DN / OWS determination unit (135 in FIG. 8) Based on the DN and the reception candidate OWS, the superiority determination unit (136 in FIG. 8) performs a comprehensive determination of the superiority of the address of the buffer in which the message is to be stored. If it is determined that the superiority is high, the superiority determination signal is output from the superiority determination unit (136 in FIG. 8). When the superiority determination signal and the FIT signal are input to the reception candidate address update determination unit (137 in FIG. 8), the reception candidate address update signal is output, and the reception candidate result update unit (138 in FIG. 8) receives the reception candidate. When the address update signal is input, the reception search result valid flag is output.

次に、受信候補アドレス保持部(図8の25)にて受信候補アドレス更新信号を受信すると、そのときの最新の生成アドレス(受信候補アドレス)に更新され、当該受信候補アドレスが格納処理部(図7の21)に向けて出力される。また、受信候補MT保持部(図8の131)、受信候補DN保持部(図8の132)、及び受信候補OWS保持部(図8の133)にて受信候補アドレス更新信号を受信すると、それぞれMT、DN、OWSに更新される。次に、格納処理部(図7の21)にて受信候補アドレスと受信検索結果有効フラグを受信すると、受信候補アドレスに対応するアドレスのバッファにメッセージが格納される。メッセージの格納が完了すると、格納処理部(図7の21)は、対応するアドレスのバッファの格納情報(DN)をセットして「1」にし、初期化制御部(図7の26)に向けて格納完了情報を出力する。初期化制御部(図7の26)は、格納完了情報を受信することにより、初期化信号を出力する。受信候補MT保持部(図8の131)、受信候補DN保持部(図8の132)、及び受信候補OWS保持部(図8の133)にて初期化信号を受信すると、初期化され、それぞれ優先順位の一番低い状態(受信候補MTが「マスク4あり」、受信候補DNが「1」、受信候補OWSが「0」)になる。その後、格納処理部(図7の21)にて新たなメッセージを受信することになる。   Next, when the reception candidate address holding signal (25 in FIG. 8) receives the reception candidate address update signal, it is updated to the latest generation address (reception candidate address) at that time, and the reception candidate address is stored in the storage processing unit ( It is output toward 21) in FIG. When the reception candidate address update signal is received by the reception candidate MT holding unit (131 in FIG. 8), the reception candidate DN holding unit (132 in FIG. 8), and the reception candidate OWS holding unit (133 in FIG. 8), Updated to MT, DN, OWS. Next, when the storage processing unit (21 in FIG. 7) receives the reception candidate address and the reception search result valid flag, the message is stored in the buffer of the address corresponding to the reception candidate address. When the message storage is completed, the storage processing unit (21 in FIG. 7) sets the storage information (DN) of the buffer at the corresponding address to “1” and goes to the initialization control unit (26 in FIG. 7). To output storage completion information. Upon receiving the storage completion information, the initialization control unit (26 in FIG. 7) outputs an initialization signal. When the reception candidate MT holding unit (131 in FIG. 8), the reception candidate DN holding unit (132 in FIG. 8), and the reception candidate OWS holding unit (133 in FIG. 8) receive initialization signals, they are initialized, The state with the lowest priority (reception candidate MT is “with mask 4”, reception candidate DN is “1”, reception candidate OWS is “0”). Thereafter, a new message is received by the storage processing unit (21 in FIG. 7).

次に、従来のCANデバイスの動作(受信したメッセージの格納処理の際の動作)について具体例を用いて説明する。図9は、従来例に係るCANモジュールにおいて受信したメッセージの格納処理の際の動作を説明するための模式図である。図10は、従来例に係るCANモジュールにおいて受信した第1のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。図11は、従来例に係るCANモジュールにおいて受信した第2のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。   Next, the operation of the conventional CAN device (the operation when storing the received message) will be described using a specific example. FIG. 9 is a schematic diagram for explaining an operation in storing a message received in the CAN module according to the conventional example. FIG. 10 is a timing chart for explaining the operation in the storing process of the first message received in the CAN module according to the conventional example. FIG. 11 is a timing chart for explaining the operation in storing the second message received in the CAN module according to the conventional example.

ここでは、メッセージバッファにおいて、初期設定条件として図9(A)のような受信設定ID、送受信設定情報(MT)、格納情報(DN)、及び上書情報(OWS)が設定された4つのアドレスがあるものとする。また、第1のメッセージのID(=0533h)は、第2のメッセージのID(=0533h)と同じであるものとする。なお、説明の便宜上、メッセージバッファのアドレスが#4から#1である場合について説明する。   Here, in the message buffer, four addresses in which a reception setting ID, transmission / reception setting information (MT), storage information (DN), and overwrite information (OWS) as shown in FIG. 9A are set as initial setting conditions. There shall be. Further, the ID (= 0533h) of the first message is the same as the ID (= 0533h) of the second message. For convenience of explanation, a case where the address of the message buffer is # 4 to # 1 will be described.

第1のメッセージ(ID=0533h)を受信した場合について説明する。第1のメッセージを受信すると、メッセージバッファのアドレス#4から#1へと検索が行われる。アドレス#4については、受信設定IDが0333hで第1のメッセージのIDが0533hであるため、一致しないことからFIT信号が出力されず、受信候補アドレス更新信号が出力されず、受信検索結果有効フラグが「0」であるから、第1のメッセージがアドレス#4のバッファに格納されることはない(図9(A)、図10参照)。次に、アドレス#3については、送信設定である(受信設定IDがない)ので、アドレス#3のバッファに第1のメッセージが格納されることはない(図9(A)、図10参照)。   A case where the first message (ID = 0533h) is received will be described. When the first message is received, a search is performed from message buffer address # 4 to # 1. For address # 4, since the reception setting ID is 0333h and the ID of the first message is 0533h, the FIT signal is not output because there is no match, the reception candidate address update signal is not output, and the reception search result valid flag Is “0”, the first message is not stored in the buffer at address # 4 (see FIGS. 9A and 10). Next, since address # 3 is a transmission setting (no reception setting ID), the first message is not stored in the buffer of address # 3 (see FIGS. 9A and 10). .

次に、アドレス#2について、受信設定IDが0533hで第1のメッセージのIDが0533hで一致することからFIT信号が出力され、MTが「マスクなし」で受信候補MTが「マスク4あり」であるためMT判定情報は「優」となり(表1参照)、DNが「0」でOWSが「0」であり受信候補DNが「1」で受信候補OWSが「0」であるためDN/OWS判定情報は「1」となるから(表3参照)、優位性判定信号(レベル「1」)が出力され(表5参照)、受信候補アドレス更新信号が出力され、受信候補MTが「マスクなし」、受信候補DNが「0」、受信候補OWSが「0」、受信候補アドレスが「アドレス#2」に更新され、受信検索結果有効フラグが「1」となるから、第1のメッセージはアドレス#2のバッファに格納されることになる(図9(A)、図10参照)。   Next, for address # 2, since the reception setting ID is 0533h and the ID of the first message is 0533h, the FIT signal is output, the MT is “no mask”, and the reception candidate MT is “with mask 4”. Therefore, the MT determination information is “excellent” (see Table 1), DN / OWS is “0”, OWS is “0”, reception candidate DN is “1”, and reception candidate OWS is “0”. Since the determination information is “1” (see Table 3), the superiority determination signal (level “1”) is output (see Table 5), the reception candidate address update signal is output, and the reception candidate MT is “no mask”. ”, The reception candidate DN is“ 0 ”, the reception candidate OWS is“ 0 ”, the reception candidate address is updated to“ address # 2 ”, and the reception search result valid flag is“ 1 ”. # 2 buffer It will be accommodated (FIG. 9 (A), the see Figure 10).

次に、アドレス#1について、MTが「マスク2あり」で受信候補MTが「マスクなし」であるためMT判定情報は「劣」であり(表1参照)、DNが「0」でOWSが「1」で受信候補DNが「0」で受信候補OWSが「0」であるためDN/OWS判定情報は「1」であり(表3参照)、受信候補DNが「0」で受信候補OWSが「0」であるため第2書込判定結果は「書込可能」であるから(表4参照)、優位性判定信号が出力されず(表5参照)、受信候補アドレス更新信号が出力されず、受信候補アドレスが「アドレス#2」のままであるから、第1のメッセージがアドレス#1のバッファに格納されることはない(図9(A)、図10参照)。   Next, for address # 1, since MT is “with mask 2” and reception candidate MT is “without mask”, the MT determination information is “poor” (see Table 1), DN is “0”, and OWS is Since “1” is the reception candidate DN “0” and the reception candidate OWS is “0”, the DN / OWS determination information is “1” (see Table 3), and the reception candidate DN is “0” and the reception candidate OWS. Since the second write determination result is “writable” because “0” is “0” (see Table 4), the superiority determination signal is not output (see Table 5), and the reception candidate address update signal is output. Since the reception candidate address remains “address # 2”, the first message is not stored in the buffer of address # 1 (see FIG. 9A and FIG. 10).

第1のメッセージが格納された時点で、アドレス#2の格納情報(DN)が0から1に書き換わる(図9(B)参照)。   When the first message is stored, the storage information (DN) at address # 2 is rewritten from 0 to 1 (see FIG. 9B).

第2のメッセージ(ID=0533h)を受信した場合について説明する。アドレス#4については、受信設定IDが0333hで第2のメッセージのIDが0533hで一致しないことからFIT信号が出力されず、受信候補アドレス更新信号が出力されず、受信検索結果有効フラグが「0」であるから、第2のメッセージがアドレス#4のバッファに格納されることはない(図9(B)、図11参照)。次に、アドレス#3については、送信設定である(受信設定IDがない)ので、アドレス#3のバッファに第2のメッセージが格納されることはない(図9(B)、図11参照)。   A case where the second message (ID = 0533h) is received will be described. For address # 4, since the reception setting ID is 0333h and the ID of the second message is 0533h, the FIT signal is not output, the reception candidate address update signal is not output, and the reception search result valid flag is “0”. Therefore, the second message is not stored in the buffer at address # 4 (see FIG. 9B and FIG. 11). Next, since address # 3 is a transmission setting (no reception setting ID), the second message is not stored in the buffer of address # 3 (see FIGS. 9B and 11). .

次に、アドレス#2について、受信設定IDが0533hで第2のメッセージのIDが0533hであるため一致することからFIT信号が出力されるが、MTが「マスクなし」で受信候補MTが「マスク4あり」であるためMT判定情報は「優」となり(表1参照)、DNが「1」でOWSが「0」であり受信候補DNが「1」で受信候補OWSが「0」であるためDN/OWS判定情報は「0」となり(表3参照)、DNが「1」でOWSが「0」であるため第1書込判定結果は「書込不可」となるため(表4)、優位性判定信号が出力されず(レベル「0」;表5参照)、受信候補アドレス更新信号が出力されず、受信検索結果有効フラグが「0」となるため、第2のメッセージはアドレス#2のバッファに格納されない(図9(B)、図11参照)。   Next, for address # 2, since the reception setting ID is 0533h and the ID of the second message is 0533h, the FIT signal is output because they match, but the MT is “no mask” and the reception candidate MT is “mask” MT determination information is “excellent” because “4 is present” (see Table 1), DN is “1”, OWS is “0”, reception candidate DN is “1”, and reception candidate OWS is “0”. Therefore, the DN / OWS determination information is “0” (see Table 3), and since the DN is “1” and the OWS is “0”, the first write determination result is “not writable” (Table 4). Since the superiority determination signal is not output (level “0”; see Table 5), the reception candidate address update signal is not output, and the reception search result valid flag is “0”, the second message is address # 2 is not stored in the buffer (FIG. 9B) See Figure 11).

次に、アドレス#1について、受信設定IDが0533hで第2のメッセージのIDが0533hであるため一致することからFIT信号が出力され、MTが「マスク2あり」で受信候補MTが「マスクなし」であるからMT判定情報は「劣」であり(表1参照)、DNが「0」でOWSが「1」で受信候補DNが「1」で受信候補OWSが「0」であるためDN/OWS判定情報は「1」であり(表3参照)、受信候補DNが「1」で受信候補OWSが「0」であるため第2書込判定結果は「書込不可」であるから(表4参照)、優位性判定信号(レベル「1」)が出力され、受信候補アドレス更新信号が出力され、受信候補MTが「マスク2あり」、受信候補DNが「0」、受信候補OWSが「1」、受信候補アドレスが「アドレス#1」に更新され、受信検索結果有効フラグが「1」であるから、第2のメッセージがアドレス#1のバッファに格納されることになる(図9(B)、図11参照)。   Next, for address # 1, since the reception setting ID is 0533h and the ID of the second message is 0533h, the FIT signal is output because they match, the MT is “with mask 2”, and the reception candidate MT is “no mask” Therefore, the MT determination information is “poor” (see Table 1), DN is “0”, OWS is “1”, reception candidate DN is “1”, and reception candidate OWS is “0”. Since the / OWS determination information is “1” (see Table 3) and the reception candidate DN is “1” and the reception candidate OWS is “0”, the second write determination result is “unwritable” ( Table 4), a superiority determination signal (level “1”) is output, a reception candidate address update signal is output, reception candidate MT is “with mask 2”, reception candidate DN is “0”, and reception candidate OWS is “1”, the reception candidate address is “address # 1 Updated on, because the receiving search results valid flag is "1", so that the second message is stored in the buffer of the address # 1 (FIG. 9 (B), the reference 11).

第2のメッセージが格納された時点で、アドレス#1の格納情報(DN)が0から1に書き換わる(図9(C)参照)。   When the second message is stored, the storage information (DN) of address # 1 is rewritten from 0 to 1 (see FIG. 9C).

ここで、従来のCANデバイスにおいて問題となるのは、優先順位の高いメッセージのバッファが一杯になった場合でかつ上書き禁止のときに、次のメッセージが、次の優先順位のバッファに書かれてしまうことで、CPUがメッセージバッファからID=0533hのメッセージのデータを読み出すためには、アドレス#2とアドレス#1の2つアドレスのバッファから読み出さなければならず、複数のデータを読み出さなければならないという処理及び読み出された複数のデータの内いずれを選択して使うかCPUが決定しなければならないため、余分な処理が必要であった。   Here, the problem with the conventional CAN device is that when the high priority message buffer is full and overwriting is prohibited, the next message is written to the next priority buffer. Thus, in order for the CPU to read the data of the message with ID = 0533h from the message buffer, it must read from the buffer of the two addresses of address # 2 and address # 1, and must read a plurality of data. Since the CPU has to decide which process to use and which of the read data is to be used, extra processing is necessary.

本発明の第1の視点においては、マルチマスタ方式のネットワークに接続されるデータ処理モジュールにおいて、メッセージを格納可能な所定数のバッファに区切られており、かつ、前記バッファごとに対応して、送信設定か受信設定かを示す送受信設定情報、メッセージの格納の有無を示す格納情報、及び、メッセージの上書きの可否を示す上書情報が格納されたメッセージバッファと、受信したメッセージに関連付けられている識別子と、前記バッファに対応付けられている前記送受信設定情報に基づいて決まる識別子とを比較することにより、前記受信したメッセージに関連付けられている識別子に対応する前記バッファを、前記メッセージバッファの中から検出する識別子比較部と、前記識別子比較部の比較結果に応じて、前記各々のバッファに格納された前記送受信設定情報と、前記メッセージを受信時の前記格納情報と、前記上書情報とに基づいて、前記受信したメッセージを格納すべきバッファを特定し、前記メッセージの格納を許可する判定部と、を備え、前記判定部は、第1の識別子に関連付けられている第1のメッセージを受信したときであって、前記識別子比較部が、前記第1の識別子に対応付けられている第1のバッファ及び第2のバッファを検出したときに、前記第1のバッファ及び前記第2のバッファに係る前記送受信設定情報が受信設定であり、前記第1のバッファにおいて前記第1の識別子に関連付けられている第2のメッセージが格納され、前記第1のバッファに係る前記格納情報がメッセージが格納されていることを示し、かつ、前記第1のバッファに係る前記上書情報が上書不可を示すことを検出した場合には、前記第1のメッセージの前記第1のバッファ及び前記第2のバッファへの格納を許可しないことを特徴とする。 In a first aspect of the present invention, in the data processing module connected to a network of multi-master mode, messages are divided into a predetermined number of buffers capable of storing and, in response to each pre-Symbol buffer, receiving setting information that indicates whether the transmission setting or reception setting, storing information indicating whether the storage of the message, and a message buffer overwriting information indicating whether the overwrite message is stored, associated with the received message By comparing the identifier and the identifier determined based on the transmission / reception setting information associated with the buffer, the buffer corresponding to the identifier associated with the received message is selected from the message buffer. According to the comparison result of the identifier comparison unit to be detected and the identifier comparison unit, Based on the transmission / reception setting information stored in the buffer, the storage information at the time of receiving the message, and the overwrite information, the buffer for storing the received message is specified, and the storage of the message is permitted. A determination unit that receives the first message associated with the first identifier, and the identifier comparison unit is associated with the first identifier. When the first buffer and the second buffer are detected, the transmission / reception setting information related to the first buffer and the second buffer is a reception setting, and the first identifier is set in the first buffer. A second message associated with the first buffer is stored, the storage information associated with the first buffer indicates that a message is stored, and the first If the overwrite information relating to Ffa detects that indicating the disable overwriting is characterized in that it does not allow storage of the first buffer and the second buffer of the first message.

本発明の第2の視点においては、マルチマスタ方式のネットワークに接続されるデータ処理モジュールにおいて、複数のバッファから構成され、それぞれのバッファが、データを識別するための識別情報、バッファの上書きの可否を示す上書情報、バッファの識別情報をマスクするためのマスク情報を含んで構成されたメッセージバッファと、受信データを受け取ったとき、前記メッセージバッファ内の前記複数のバッファすべての識別情報及び前記マスク情報から得られる識別情報と前記受信データの識別情報とを比較し、複数のバッファの識別情報が一致した場合には、前記マスク情報に応じて一番優先順位の高いバッファを選択し、前記選択されたバッファの前記上書情報が書き込み不可を示しているときには、前記選択されたバッファ及び他のバッファにデータを書き込むことなく受信データを処理する制御回路と、を備えることを特徴とする。 In the second aspect of the present invention, a data processing module connected to a multi-master network is composed of a plurality of buffers, and each buffer has identification information for identifying data and whether or not the buffer can be overwritten. A message buffer including mask information for masking identification information of the buffer, identification information of all of the plurality of buffers in the message buffer and the mask when received data is received The identification information obtained from the information is compared with the identification information of the received data, and when the identification information of a plurality of buffers matches, the buffer having the highest priority is selected according to the mask information, and the selection When the overwrite information in the designated buffer indicates that writing is not possible, the selected buffer And characterized in that it comprises a control circuit for processing the received data without writing the data to another buffer.

本発明の第3の視点においては、マルチマスタ方式のネットワークに接続されるデータ処理モジュールのメッセージ受信方法において、メッセージバッファの第1のアドレスに係るバッファに第1のメッセージが格納されているときであって、前記第1のアドレスに係るバッファへの上書きが不可であり、かつ、前記第1のメッセージの識別子と同じ識別子が付与された第2のメッセージを受信したときに、前記第1のアドレスよりも優位性の低い第2のアドレスに係るバッファに前記第2のメッセージを格納しないことを特徴とする。 According to a third aspect of the present invention, in the message reception method of the data processing module connected to the multi-master network, the first message is stored in the buffer associated with the first address of the message buffer. And the first address is received when a second message to which the same identifier as the identifier of the first message is given cannot be overwritten on the buffer related to the first address. The second message is not stored in a buffer associated with a second address having a lower priority than the second address.

本発明(請求項1−)によれば、余分なデータが分散して格納されることがない。また、CPUがメッセージバッファからメッセージを読み出す際に余分な処理が発生しない。また、CPU処理が高速化され、システムとして高いパフォーマンスを発揮させることができる。さらに、受信履歴を辿るような場合でも同様に余分な処理が発生しない。 According to the present invention (claim 1 7), it is not that more data will be stored in a distributed. Also, no extra processing occurs when the CPU reads a message from the message buffer. Further, the CPU processing is speeded up, and high performance as a system can be exhibited. Further, even when the reception history is traced, no extra processing occurs.

本発明の実施形態1に係るデータ処理モジュールについて図面を用いて説明する。図1は、本発明の実施形態1に係るCANモジュール(データ処理モジュール)の判定部の構成を模式的に示したブロック図である。   A data processing module according to Embodiment 1 of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram schematically illustrating a configuration of a determination unit of a CAN module (data processing module) according to the first embodiment of the present invention.

実施形態1に係るCANモジュール(データ処理モジュール)の判定部24は、CANデバイス(図5の1)におけるCANモジュール(図5の2;データ処理モジュール)のメッセージハンドリング部(図7の11)に設けられている。実施形態1に係るCANモジュール(データ処理モジュール)の判定部24以外の他の構成部分については、従来のCANモジュールの判定部以外の他の構成部分と同様である。なお、CANモジュール(データ処理モジュール)の全体的な構成(判定部以外の構成)については、図5〜図7、及びこれらの図面に対応する従来例の説明を参照されたい。   The determination unit 24 of the CAN module (data processing module) according to the first embodiment is used as a message handling unit (11 in FIG. 7) of the CAN module (2 in FIG. 5; data processing module) in the CAN device (1 in FIG. 5). Is provided. Components other than the determination unit 24 of the CAN module (data processing module) according to the first embodiment are the same as other components other than the determination unit of the conventional CAN module. For the overall configuration (configuration other than the determination unit) of the CAN module (data processing module), refer to FIGS. 5 to 7 and the description of the conventional example corresponding to these drawings.

図7を参照すると、判定部24は、メッセージバッファ12からの送受信設定情報(MT)、格納情報(DN)および上書情報(OWS)と、ID比較部23からのFIT信号と、に基づいて、メッセージを格納すべきアドレスの優位性を判定する部分である。判定部24は、ID比較部23からのFIT信号(レベル「1」)が入力されたときに、当該FIT信号に対応するアドレスが優位と判定されると、受信候補アドレス保持部25に向けて受信候補アドレス更新信号(レベル「1」)を出力するとともに、格納処理部21に向けて受信検索結果有効フラグ(レベル「1」)を出力する。ここで、受信候補アドレス更新信号は、受信候補アドレス保持部25に入力された対応する生成アドレスを受信候補となるアドレスとして更新するための信号である。受信検索結果有効フラグは、受信検索の結果が有効であることを示すフラグであり、格納処理部21にてメッセージの格納処理を許可するためのフラグである。判定部24は、初期化制御部26からの初期化信号を受けることにより、(判定部24の内部に)保持された所定の情報を初期化する。なお、実施形態1に係るデータ処理モジュールの判定部は、従来例に係るデータ処理モジュールの判定部と判定手法が異なる。   Referring to FIG. 7, the determination unit 24 is based on transmission / reception setting information (MT), storage information (DN) and overwriting information (OWS) from the message buffer 12, and the FIT signal from the ID comparison unit 23. This is a part for determining the superiority of the address where the message is stored. When the determination unit 24 determines that the address corresponding to the FIT signal is superior when the FIT signal (level “1”) is input from the ID comparison unit 23, the determination unit 24 proceeds toward the reception candidate address holding unit 25. A reception candidate address update signal (level “1”) is output, and a reception search result valid flag (level “1”) is output to the storage processing unit 21. Here, the reception candidate address update signal is a signal for updating the corresponding generated address input to the reception candidate address holding unit 25 as an address to be a reception candidate. The reception search result valid flag is a flag indicating that the result of the reception search is valid, and is a flag for allowing the storage processing unit 21 to store the message. The determination unit 24 initializes predetermined information held (inside the determination unit 24) by receiving an initialization signal from the initialization control unit 26. In addition, the determination part of the data processing module which concerns on Embodiment 1 differs in the determination method from the determination part of the data processing module which concerns on a prior art example.

図1を参照すると、判定部24は、受信候補MT保持部31と、受信候補DN保持部32と、受信候補OWS保持部33と、MT判定部34と、DN/OWS判定部35と、優位性判定部36と、受信候補アドレス更新判定部37と、受信検索結果更新判定部38と、受信検索結果有効マスク判定部39と、受信検索結果判定部40と、を有する。   Referring to FIG. 1, the determination unit 24 includes a reception candidate MT holding unit 31, a reception candidate DN holding unit 32, a reception candidate OWS holding unit 33, an MT determination unit 34, and a DN / OWS determination unit 35. And a reception search result update determination unit 38, a reception search result update mask determination unit 39, and a reception search result determination unit 40.

受信候補MT保持部31は、受信候補となるアドレスの送受信設定情報(受信候補MT)のマスク設定情報を保持する部分である。受信候補MT保持部31は、受信候補アドレス更新判定部37からの受信候補アドレス更新信号(レベル「1」)を受けたときに、そのときにメッセージバッファ(図7の12)から出力されている送受信設定情報(MT)のマスク設定情報に更新される。受信候補MT保持部31は、初期化制御部(図7の26)からの初期化信号を受けたときに、初期化され、受信候補MTのマスク設定情報を最も優先順位の低い状態(例えば、マスク4あり;表1参照)にする。受信候補MT保持部31は、保持している受信候補MTのマスク設定情報をMT判定部34に向けて出力する。なお、実施形態1の受信候補MT保持部31については、従来例の受信候補MT保持部(図8の131)と同様である。   The reception candidate MT holding unit 31 is a part that holds mask setting information of transmission / reception setting information (reception candidate MT) of an address that is a reception candidate. When the reception candidate MT holding unit 31 receives the reception candidate address update signal (level “1”) from the reception candidate address update determination unit 37, the message is output from the message buffer (12 in FIG. 7) at that time. The transmission / reception setting information (MT) is updated to mask setting information. The reception candidate MT holding unit 31 is initialized when receiving the initialization signal from the initialization control unit (26 in FIG. 7), and sets the mask setting information of the reception candidate MT in the state with the lowest priority (for example, With mask 4; see Table 1). The reception candidate MT holding unit 31 outputs the held mask setting information of the reception candidate MT to the MT determination unit 34. Note that the reception candidate MT holding unit 31 of the first embodiment is the same as the reception candidate MT holding unit (131 in FIG. 8) of the conventional example.

受信候補DN保持部32は、受信候補となるアドレスの格納情報(受信候補DN)を保持する部分である。受信候補DN保持部32は、受信候補アドレス更新判定部37からの受信候補アドレス更新信号(レベル「1」)を受けたときに、そのときにメッセージバッファ(図7の12)から出力されている格納情報(DN)に更新される。受信候補DN保持部32は、初期化制御部(図7の26)からの初期化信号を受けたときに、初期化され、受信候補DNをDNとOWSの組合せが最も優先順位の低いときのDNの状態(レベル「1」;表2参照)にする。受信候補DN保持部32は、保持している受信候補DNをDN/OWS判定部35及び受信検索結果有効マスク判定部39に向けて出力する。なお、実施形態1の受信候補DN保持部32は、受信候補DNを受信検索結果有効マスク判定部39に向けて出力している点で、従来例の受信候補DN保持部(図8の132)と異なる。   The reception candidate DN holding unit 32 is a part that holds storage information (reception candidate DN) of addresses that are reception candidates. When receiving candidate address update signal (level “1”) is received from receiving candidate address update determining unit 37, receiving candidate DN holding unit 32 is output from the message buffer (12 in FIG. 7) at that time. Updated to storage information (DN). The reception candidate DN holding unit 32 is initialized when receiving an initialization signal from the initialization control unit (26 in FIG. 7), and the reception candidate DN is selected when the combination of DN and OWS has the lowest priority. The DN state is set (level “1”; see Table 2). The reception candidate DN holding unit 32 outputs the held reception candidate DN toward the DN / OWS determination unit 35 and the reception search result valid mask determination unit 39. Note that the reception candidate DN holding unit 32 of the first embodiment outputs the reception candidate DN toward the reception search result valid mask determination unit 39, so that the conventional reception candidate DN holding unit (132 in FIG. 8). And different.

受信候補OWS保持部33は、受信候補となるアドレスの上書情報(受信候補OWS)を保持する部分である。受信候補OWS保持部33は、受信候補アドレス更新判定部37からの受信候補アドレス更新信号(レベル「1」)を受けたときに、そのときにメッセージバッファ(図7の12)から出力されている上書情報(OWS)に更新される。受信候補OWS保持部33は、初期化制御部(図7の26)からの初期化信号を受けたときに、初期化され、受信候補OWSをDNとOWSの組合せが最も優先順位の低いときのOWSの状態(レベル「0」;表2参照)にする。受信候補OWS保持部33は、保持している受信候補OWSを受信検索結果有効マスク判定部39に向けて出力する。なお、実施形態1の受信候補OWS保持部33は、受信候補OWSを受信検索結果有効マスク判定部39に向けて出力し、かつ、受信候補OWSを優位性判定部36に向けて出力しない点で、従来例の受信候補OWS保持部(図8の133)と異なる。   The reception candidate OWS holding unit 33 is a part that holds the overwrite information (reception candidate OWS) of an address that is a reception candidate. When the reception candidate OWS holding unit 33 receives the reception candidate address update signal (level “1”) from the reception candidate address update determination unit 37, it is output from the message buffer (12 in FIG. 7) at that time. Updated to overwrite information (OWS). The reception candidate OWS holding unit 33 is initialized when receiving an initialization signal from the initialization control unit (26 in FIG. 7), and the reception candidate OWS is a combination of DN and OWS with the lowest priority. The OWS state is set (level “0”; see Table 2). The reception candidate OWS holding unit 33 outputs the held reception candidate OWS to the reception search result valid mask determination unit 39. The reception candidate OWS holding unit 33 according to the first embodiment outputs the reception candidate OWS toward the reception search result valid mask determination unit 39 and does not output the reception candidate OWS toward the superiority determination unit 36. This is different from the conventional reception candidate OWS holding unit (133 in FIG. 8).

MT判定部34は、メッセージバッファ(図7の12)からの送受信設定情報(MT)と、受信候補MT保持部31からの受信候補MTと、を比較して、送受信設定情報(MT)の優位性を判定(MT判定)する部分である。MTと受信候補MTの比較では、マスク設定情報同士が比較される。MT判定部34は、MTと受信候補MTの比較により、MTの優先順位が高いときに「優」と判定し、MTの優先順位が低いときに「劣」と判定し、MTと受信候補MTの優先順位が同じときに「同」と判定する(表1参照)。MT判定部34は、判定結果であるMT判定情報を優位性判定部36に向けて出力する。なお、実施形態1のMT判定部34については、従来例のMT判定部(図8の134)と同様である。   The MT determination unit 34 compares the transmission / reception setting information (MT) from the message buffer (12 in FIG. 7) with the reception candidate MT from the reception candidate MT holding unit 31 to determine the superiority of the transmission / reception setting information (MT). This is a part for determining sex (MT determination). In the comparison between the MT and the reception candidate MT, the mask setting information is compared. The MT determination unit 34 determines “excellent” when the MT priority is high by comparing the MT and the reception candidate MT, and determines “inferior” when the MT priority is low. Are determined to be “same” (see Table 1). The MT determination unit 34 outputs the MT determination information that is the determination result toward the superiority determination unit 36. The MT determination unit 34 of the first embodiment is the same as the MT determination unit (134 in FIG. 8) of the conventional example.

DN/OWS判定部35は、メッセージバッファ(図7の12)からの格納情報(DN)および上書情報(OWS)と、受信候補DN保持部32からの受信候補DNと、に基づいて、DNおよびOWSの組合せと受信候補DNおよび受信候補OWSの組合せとを比較したときのDNおよびOWSの組合せの優位性を判定(DN/OWS判定)する部分である。DNおよびOWSの組合せの優位性の判定基準は以下の通りである。(1)DNが「0」(格納可能)のときに、OWS、受信候補DNおよび受信候補OWSを問わず「1」と判定し、(2)DNが「1」(格納不可)でOWSが「0」(上書不可)のときに、受信候補DNおよび受信候補OWSを問わず「0」と判定し、(3)DNが「1」(格納不可)でOWSが「1」(上書可能)で受信候補DNが「0」のときに、受信候補OWSを問わず「0」と判定し、(4)DNが「1」(格納不可)でOWSが「1」(上書可能)で受信候補DNが「1」のときに、受信候補OWSを問わず「1」と判定する(表3参照)。DN/OWS判定部35は、判定結果であるDN/OWS判定情報を優位性判定部36に向けて出力する。ここで、図1において、DN/OWS判定部35は、受信候補OWS保持部33から受信候補OWSを受けていない構成になっているが、これはDN/OWS判定部35のDN/OWS判定において受信候補OWSが影響しないからである。もっとも、DN/OWS判定部35は、受信候補OWS保持部33から受信候補OWSを受けるような構成であってもよい。なお、実施形態1のDN/OWS判定部35は、DN、OWS及び受信候補DNを優位性判定部36に向けて出力していない点で、従来例のDN/OWS判定部(図8の135)と異なる。   The DN / OWS determination unit 35 performs DN processing based on the storage information (DN) and overwrite information (OWS) from the message buffer (12 in FIG. 7) and the reception candidate DN from the reception candidate DN holding unit 32. And a combination of the OWS and the combination of the reception candidate DN and the reception candidate OWS to determine the superiority of the combination of the DN and the OWS (DN / OWS determination). The criteria for determining the superiority of the combination of DN and OWS are as follows. (1) When DN is “0” (can be stored), it is determined as “1” regardless of OWS, reception candidate DN, and reception candidate OWS, and (2) DN is “1” (cannot be stored) and OWS is When “0” (overwriting is impossible), the reception candidate DN and the reception candidate OWS are determined to be “0”. (3) DN is “1” (cannot be stored) and OWS is “1” (overwriting) Possible) and the reception candidate DN is “0”, it is determined as “0” regardless of the reception candidate OWS. (4) DN is “1” (cannot be stored) and OWS is “1” (can be overwritten) When the reception candidate DN is “1”, the reception candidate OWS is determined to be “1” (see Table 3). The DN / OWS determination unit 35 outputs DN / OWS determination information, which is a determination result, toward the superiority determination unit 36. Here, in FIG. 1, the DN / OWS determination unit 35 is configured not to receive the reception candidate OWS from the reception candidate OWS holding unit 33, but this is the case in the DN / OWS determination of the DN / OWS determination unit 35. This is because the reception candidate OWS has no effect. However, the DN / OWS determination unit 35 may be configured to receive the reception candidate OWS from the reception candidate OWS holding unit 33. Note that the DN / OWS determination unit 35 of the first embodiment does not output the DN, OWS, and reception candidate DN to the superiority determination unit 36, so that the DN / OWS determination unit of the conventional example (135 in FIG. 8). ) Is different.

優位性判定部36は、MT判定部34からのMT判定情報と、DN/OWS判定部35からのDN/OWS判定情報と、に基づいて、メッセージを格納すべきバッファのアドレスの優位性を判定する部分である。優位性判定部36は、(1)MT判定情報が「優」であるときは、DN/OWS判定情報にかかわらず、優位性判定信号(レベル「1」)を出力し、(2)MT判定情報が「同」でDN/OWS判定情報が「1」であるときは、優位性判定信号(レベル「1」)を出力し、(3)MT判定情報が「同」でDN/OWS判定情報が「0」であるときは、優位性判定信号が出力されず(レベル「0」)、(4)MT判定情報が「劣」であるときは、DN/OWS判定情報にかかわらず、優位性判定信号を出力しない(レベル「0」)(表6参照)。なお、実施形態1の優位性判定部36は、MT判定情報とDN/OWS判定情報のみに基づいて判定を行っており、MT判定情報が「優」であれば常に優位性判定信号を「1」とし、MT判定情報が「劣」であれば常に優位性判定信号を「0」としている点で、従来例の優位性判定部(図8の136、表5)と異なる。   Based on the MT determination information from the MT determination unit 34 and the DN / OWS determination information from the DN / OWS determination unit 35, the superiority determination unit 36 determines the superiority of the address of the buffer in which the message is to be stored. It is a part to do. The superiority determination unit 36 outputs (1) the superiority determination signal (level “1”) regardless of the DN / OWS determination information when the MT determination information is “excellent”, and (2) the MT determination When the information is “same” and the DN / OWS determination information is “1”, the superiority determination signal (level “1”) is output. (3) The MT determination information is “same” and the DN / OWS determination information. When “0” is “0”, the superiority determination signal is not output (level “0”). (4) When the MT determination information is “inferior”, the superiority is determined regardless of the DN / OWS determination information. The determination signal is not output (level “0”) (see Table 6). The superiority determination unit 36 of the first embodiment performs determination based only on the MT determination information and the DN / OWS determination information. If the MT determination information is “excellent”, the superiority determination signal is always “1”. , And when the MT determination information is “poor”, the superiority determination signal is always “0”, which is different from the conventional superiority determination unit (136 in FIG. 8, Table 5).

Figure 0004721741
Figure 0004721741

受信候補アドレス更新判定部37は、受信候補アドレス保持部25にて受信候補アドレスを更新するか否かを判定するAND回路である。受信候補アドレス更新判定部37は、優位性判定部36からの優位性判定信号(レベル「1」)と、ID比較部(図7の23)からの対応するFIT信号(レベル「1」)と、が入力されることにより、受信候補MT保持部31、受信候補DN保持部32、受信候補OWS保持部33、受信検索結果更新判定部38、及び受信候補アドレス保持部25のそれぞれに向けて受信候補アドレス更新信号(レベル「1」)を出力する。   The reception candidate address update determination unit 37 is an AND circuit that determines whether or not the reception candidate address holding unit 25 updates the reception candidate address. The reception candidate address update determination unit 37 receives the superiority determination signal (level “1”) from the superiority determination unit 36 and the corresponding FIT signal (level “1”) from the ID comparison unit (23 in FIG. 7). , Are received toward the reception candidate MT holding unit 31, the reception candidate DN holding unit 32, the reception candidate OWS holding unit 33, the reception search result update determination unit 38, and the reception candidate address holding unit 25. A candidate address update signal (level “1”) is output.

受信検索結果更新判定部38は、受信検索結果を更新するか否かを判定するRS型フリップフロップ回路部である。受信検索結果更新判定部38は、受信候補アドレス更新判定部37からの受信候補アドレス更新信号(レベル「1」)を受けてから初期化制御部(図7の26)からの初期化信号(レベル「1」)を受けるまでの間、受信検索結果更新フラグとしてレベル「1」を出力する。受信検索結果更新判定部38は、初期化信号(レベル「1」)を受けてから受信候補アドレス更新信号を受けるまでの間、受信検索結果更新フラグとしてレベル「0」を出力する。ここで、受信検索結果更新フラグは、受信検索結果を更新するか否かを判定するためのフラグである。   The reception search result update determination unit 38 is an RS flip-flop circuit unit that determines whether or not to update the reception search result. The reception search result update determination unit 38 receives the reception candidate address update signal (level “1”) from the reception candidate address update determination unit 37 and then receives an initialization signal (level 26) from the initialization control unit (26 in FIG. 7). Until receiving “1”), the level “1” is output as the reception search result update flag. The reception search result update determination unit 38 outputs level “0” as the reception search result update flag from the time when the initialization signal (level “1”) is received until the reception candidate address update signal is received. Here, the reception search result update flag is a flag for determining whether or not to update the reception search result.

受信検索結果有効マスク判定部39は、受信検索結果を有効にするのをマスクするか否かを判定する論理回路である。受信検索結果有効マスク判定部39は、受信候補DN保持部32からの受信候補DNと、受信候補OWS保持部33からの受信候補OWSと、に基づいて受信検索結果有効マスク信号を生成する。受信検索結果有効マスク判定部39は、(1)受信候補DNが「1」で受信候補OWSが「0」のときに受信検索結果有効マスク信号を「0」とし、(2)受信候補DNが「1」で受信候補OWSが「1」のときに受信検索結果有効マスク信号を「1」とし、(3)受信候補DNが「0」で受信候補OWSが「0」のときに受信検索結果有効マスク信号を「1」とし、(4)受信候補DNが「0」で受信候補OWSが「1」のときに受信検索結果有効マスク信号を「1」とする。ここで、受信検索結果有効マスク信号は、受信検索結果有効信号をマスクするための信号である。なお、受信検索結果有効マスク判定部39は、従来例になかった構成部である。   The reception search result validity mask determination unit 39 is a logic circuit that determines whether or not to validate the reception search result. The reception search result valid mask determination unit 39 generates a reception search result valid mask signal based on the reception candidate DN from the reception candidate DN holding unit 32 and the reception candidate OWS from the reception candidate OWS holding unit 33. The reception search result valid mask determination unit 39 sets the reception search result valid mask signal to “0” when the reception candidate DN is “1” and the reception candidate OWS is “0”, and (2) the reception candidate DN is The reception search result valid mask signal is set to “1” when the reception candidate OWS is “1” at “1”, and (3) the reception search result when the reception candidate DN is “0” and the reception candidate OWS is “0”. The effective mask signal is set to “1”, and (4) the reception search result effective mask signal is set to “1” when the reception candidate DN is “0” and the reception candidate OWS is “1”. Here, the reception search result valid mask signal is a signal for masking the reception search result valid signal. The reception search result valid mask determination unit 39 is a component that was not found in the conventional example.

受信検索結果判定部40は、受信検索結果が有効か否かを判定するAND回路である。受信検索結果判定部40は、受信検索結果更新判定部38からの受信検索結果更新フラグと、受信検索結果有効マスク判定部39からの受信検索結果有効マスク信号と、に基づいて、受信検索結果有効フラグを出力する。受信検索結果判定部40は、受信検索結果更新フラグが「1」で受信検索結果有効マスク信号が「1」のときに受信検索結果有効フラグ(レベル「1」)を出力し、その他の場合は受信検索結果有効フラグを出力しない(レベル「0」)。   The reception search result determination unit 40 is an AND circuit that determines whether the reception search result is valid. The reception search result determination unit 40 determines whether the reception search result is valid based on the reception search result update flag from the reception search result update determination unit 38 and the reception search result valid mask signal from the reception search result validity mask determination unit 39. Output a flag. The reception search result determination unit 40 outputs a reception search result valid flag (level “1”) when the reception search result update flag is “1” and the reception search result valid mask signal is “1”. The reception search result valid flag is not output (level “0”).

次に、実施形態1のCANモジュール(データ処理モジュール)の動作(受信したメッセージの格納処理の際の動作)について説明する。   Next, the operation of the CAN module (data processing module) according to the first embodiment (the operation when storing a received message) will be described.

まず、格納処理部(図7の21)にてメッセージを受信したときに、メッセージIDがID比較部(図7の23)に向けて出力され、受信信号がサーチ用アドレス生成部(図7の22)に向けて出力される。次に、サーチ用アドレス生成部(図7の22)にて受信信号を受信することにより、アドレス及び詳細アドレス(MIDH、MCTRL、MIDL)が生成される。   First, when a message is received by the storage processing unit (21 in FIG. 7), the message ID is output to the ID comparison unit (23 in FIG. 7), and the received signal is sent to the search address generation unit (in FIG. 7). 22). Next, an address and a detailed address (MIDH, MCTRL, MIDL) are generated by receiving the received signal at the search address generator (22 in FIG. 7).

次に、生成されたアドレスに基づいて、メッセージバッファ(図7の12)から、対応するアドレスの受信設定IDが読み出され、ID比較部(図7の23)にてメッセージIDと受信設定IDが一致するか否かが比較されることになる。メッセージIDと受信設定IDが一致したときは、ID比較部(図7の23)からFIT信号が出力される。一方で、生成されたアドレスに基づいて、メッセージバッファ(図7の12)から、対応するアドレスの送受信設定情報(MT)、格納情報(DN)、及び上書情報(OWS)が読み出され、判定部(図7の24)にて送受信設定情報(MT)、格納情報(DN)、上書情報(OWS)およびFIT信号に基づいて各アドレスの優位性を判定する。各アドレスの優位性の判定では、MT判定部(図1の34)にてMTと受信候補MTに基づいてMTの優位性を判定したMT判定情報と、DN/OWS判定部(図1の35)にてDNとOWSと受信候補DNに基づいてDNとOWSの組合せの優位性を判定したDN/OWS判定情報と、に基づいて、優位性判定部(図1の36)にてメッセージを格納すべきバッファのアドレスの優位性の総合判定を行う。優位性が高いと判定されると、優位性判定部(図1の36)から優位性判定信号が出力される。受信候補アドレス更新判定部(図1の37)に優位性判定信号およびFIT信号が入力されたときに、受信候補アドレス更新信号が出力される。次に、受信候補アドレス保持部(図1の25)にて受信候補アドレス更新信号を受信すると、そのときの最新の生成アドレス(受信候補アドレス)に更新され、当該受信候補アドレスが格納処理部(図7の21)に向けて出力される。また、受信候補MT保持部(図1の31)、受信候補DN保持部(図1の32)、及び受信候補OWS保持部(図1の33)にて受信候補アドレス更新信号を受信すると、それぞれMT、DN、OWSに更新される。   Next, the reception setting ID of the corresponding address is read from the message buffer (12 in FIG. 7) based on the generated address, and the message ID and the reception setting ID are read by the ID comparison unit (23 in FIG. 7). Are compared. When the message ID matches the reception setting ID, the FIT signal is output from the ID comparison unit (23 in FIG. 7). On the other hand, based on the generated address, transmission / reception setting information (MT), storage information (DN), and overwrite information (OWS) of the corresponding address are read from the message buffer (12 in FIG. 7). The determination unit (24 in FIG. 7) determines the superiority of each address based on the transmission / reception setting information (MT), the storage information (DN), the overwriting information (OWS), and the FIT signal. In determining the superiority of each address, the MT determination unit (34 in FIG. 1) determines MT superiority based on the MT and the reception candidate MT, and the DN / OWS determination unit (35 in FIG. 1). ) And the DN / OWS determination information that determines the superiority of the combination of DN and OWS based on DN, OWS, and reception candidate DN, and stores the message in the superiority determination unit (36 in FIG. 1). Comprehensive determination of the superiority of the buffer address to be performed. If it is determined that the superiority is high, an advantage determination signal is output from the superiority determination unit (36 in FIG. 1). When the superiority determination signal and the FIT signal are input to the reception candidate address update determination unit (37 in FIG. 1), a reception candidate address update signal is output. Next, when the reception candidate address holding signal (25 in FIG. 1) receives the reception candidate address update signal, it is updated to the latest generation address (reception candidate address) at that time, and the reception candidate address is stored in the storage processing unit ( It is output toward 21) in FIG. When the reception candidate address update signal is received by the reception candidate MT holding unit (31 in FIG. 1), the reception candidate DN holding unit (32 in FIG. 1), and the reception candidate OWS holding unit (33 in FIG. 1), respectively. Updated to MT, DN, OWS.

次に、受信検索結果更新判定部(図1の38)に受信候補アドレス更新信号が入力されたときに受信検索結果更新信号(レベル「1」)が出力される。受信検索結果有効マスク判定部(図1の39)に受信候補DN(例えば、レベル「0」)と受信候補OWS(例えば、レベル「0」)が入力されると受信検索結果有効マスク信号(レベル「1」)が出力される。受信検索結果判定部(図1の40)に受信検索結果更新信号(レベル「1」)と受信検索結果有効マスク信号(レベル「1」)が入力されると、受信検索結果有効フラグが出力される。   Next, when a reception candidate address update signal is input to the reception search result update determination unit (38 in FIG. 1), a reception search result update signal (level “1”) is output. When a reception candidate DN (for example, level “0”) and a reception candidate OWS (for example, level “0”) are input to the reception search result effective mask determination unit (39 in FIG. 1), the reception search result effective mask signal (level “1”) is output. When a reception search result update signal (level “1”) and a reception search result valid mask signal (level “1”) are input to the reception search result determination unit (40 in FIG. 1), a reception search result valid flag is output. The

次に、格納処理部(図7の21)にて受信候補アドレスと受信検索結果有効フラグを受信すると、受信候補アドレスに対応するアドレスのバッファにメッセージが格納される。メッセージの格納が完了すると、格納処理部(図7の21)は、対応するアドレスのバッファの格納情報(DN)をセットして「1」にし、初期化制御部(図7の26)に向けて格納完了情報を出力する。初期化制御部(図7の26)は、格納完了情報を受信することにより、初期化信号を出力する。受信候補MT保持部(図1の31)、受信候補DN保持部(図1の32)、及び受信候補OWS保持部(図1の33)にて初期化信号を受信すると、初期化され、それぞれ優先順位の一番低い状態(受信候補MTが「マスク4あり」、受信候補DNが「1」、受信候補OWSが「0」)になる。その後、格納処理部(図7の21)にて新たなメッセージを受信することになる。   Next, when the storage processing unit (21 in FIG. 7) receives the reception candidate address and the reception search result valid flag, the message is stored in the buffer of the address corresponding to the reception candidate address. When the message storage is completed, the storage processing unit (21 in FIG. 7) sets the storage information (DN) of the buffer at the corresponding address to “1” and goes to the initialization control unit (26 in FIG. 7). To output storage completion information. Upon receiving the storage completion information, the initialization control unit (26 in FIG. 7) outputs an initialization signal. When the reception candidate MT holding unit (31 in FIG. 1), the reception candidate DN holding unit (32 in FIG. 1), and the reception candidate OWS holding unit (33 in FIG. 1) receive the initialization signals, they are initialized, The state with the lowest priority (reception candidate MT is “with mask 4”, reception candidate DN is “1”, reception candidate OWS is “0”). Thereafter, a new message is received by the storage processing unit (21 in FIG. 7).

次に、実施形態1のCANモジュール(データ処理モジュール)の動作(受信したメッセージの格納処理の際の動作)について具体例を用いて説明する。図2は、本発明の実施形態1に係るCANモジュール(データ処理モジュール)において受信メッセージの格納処理の際の動作を説明するための模式図である。図3は、本発明の実施形態1に係るCANモジュール(データ処理モジュール)において受信した第1のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。図4は、本発明の実施形態1に係るCANモジュール(データ処理モジュール)において受信した第2のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。   Next, the operation of the CAN module (data processing module) according to the first embodiment (the operation when storing the received message) will be described using a specific example. FIG. 2 is a schematic diagram for explaining an operation in the received message storage process in the CAN module (data processing module) according to the first embodiment of the present invention. FIG. 3 is a timing chart for explaining the operation at the time of storing the first message received by the CAN module (data processing module) according to the first embodiment of the present invention. FIG. 4 is a timing chart for explaining the operation during the storing process of the second message received by the CAN module (data processing module) according to the first embodiment of the present invention.

ここでは、メッセージバッファにおいて、初期設定条件(従来例で用いたものと同様)として図2(A)のような受信設定ID、送受信設定情報(MT)、格納情報(DN)、及び上書情報(OWS)が設定された4つのアドレスがあるものとする。また、第1のメッセージのID(=0533h)は、第2のメッセージのID(=0533h)と同じであるものとする。なお、説明の便宜上、メッセージバッファのアドレスが#4から#1である場合について説明する。   Here, in the message buffer, as initial setting conditions (similar to those used in the conventional example), the reception setting ID, transmission / reception setting information (MT), storage information (DN), and overwrite information as shown in FIG. Assume that there are four addresses for which (OWS) is set. Further, the ID (= 0533h) of the first message is the same as the ID (= 0533h) of the second message. For convenience of explanation, a case where the address of the message buffer is # 4 to # 1 will be described.

第1のメッセージ(ID=0533h)を受信した場合について説明する。第1のメッセージを受信すると、メッセージバッファのアドレス#4から#1へと検索が行われる。アドレス#4については、受信設定IDが0333hで第1のメッセージのIDが0533hであるため、一致しないことからFIT信号が出力されず、受信候補アドレス更新信号が出力されず、受信検索結果更新フラグが「0」で、受信検索結果有効フラグが「0」であるから、第1のメッセージがアドレス#4のバッファに格納されることはない(図2(A)、図3参照)。次に、アドレス#3については、送信設定である(受信設定IDがない)ので、アドレス#3のバッファに第1のメッセージが格納されることはない(図2(A)、図3参照)。   A case where the first message (ID = 0533h) is received will be described. When the first message is received, a search is performed from message buffer address # 4 to # 1. For address # 4, since the reception setting ID is 0333h and the ID of the first message is 0533h, the FIT signal is not output because there is no match, the reception candidate address update signal is not output, and the reception search result update flag Is “0” and the reception search result valid flag is “0”, the first message is never stored in the buffer at address # 4 (see FIGS. 2A and 3). Next, since address # 3 is a transmission setting (no reception setting ID), the first message is not stored in the buffer of address # 3 (see FIGS. 2A and 3). .

次に、アドレス#2について、受信設定IDが0533hで第1のメッセージのIDが0533hで一致することからFIT信号が出力され、MTが「マスクなし」で受信候補MTが「マスク4あり」であるためMT判定情報は「優」となるから(表1参照)、優位性判定信号(レベル「1」)が出力され(表6参照)、受信候補アドレス更新信号が出力され、受信候補MTが「マスクなし」、受信候補DNが「0」、受信候補OWSが「0」、受信候補アドレスが「アドレス#2」に更新され、受信検索結果有効マスク信号(レベル「1」)が出力され、受信検索結果更新フラグが「1」となり、受信検索結果有効フラグが「1」となるから、第1のメッセージはアドレス#2のバッファに格納されることになる(図2(A)、図3参照)。   Next, for address # 2, since the reception setting ID is 0533h and the ID of the first message is 0533h, the FIT signal is output, the MT is “no mask”, and the reception candidate MT is “with mask 4”. Therefore, since the MT determination information is “excellent” (see Table 1), the superiority determination signal (level “1”) is output (see Table 6), the reception candidate address update signal is output, and the reception candidate MT is “No mask”, reception candidate DN is “0”, reception candidate OWS is “0”, reception candidate address is updated to “address # 2”, and a reception search result valid mask signal (level “1”) is output, Since the reception search result update flag becomes “1” and the reception search result valid flag becomes “1”, the first message is stored in the buffer at address # 2 (FIG. 2A, FIG. 3). reference)

次に、アドレス#1について、MTが「マスク2あり」で受信候補MTが「マスクなし」であるためMT判定情報は「劣」であるから(表1参照)、優位性判定信号が出力されず(表6参照)、受信候補アドレス更新信号が出力されず、受信候補アドレスが「アドレス#2」のままであるから、第1のメッセージがアドレス#1のバッファに格納されることはない(図2(A)、図3参照)。   Next, for the address # 1, since the MT is “with mask 2” and the reception candidate MT is “without mask”, the MT determination information is “poor” (see Table 1), so the superiority determination signal is output. (See Table 6), the reception candidate address update signal is not output, and the reception candidate address remains “address # 2”, so that the first message is not stored in the buffer of address # 1 ( (Refer FIG. 2 (A) and FIG. 3).

第1のメッセージが格納された時点で、アドレス#2の格納情報(DN)が0から1に書き換わる(図2(B)参照)。   When the first message is stored, the storage information (DN) at address # 2 is rewritten from 0 to 1 (see FIG. 2B).

第2のメッセージ(ID=0533h)を受信した場合について説明する。アドレス#4については、受信設定IDが0333hで第2のメッセージのIDが0533hで一致しないことからFIT信号が出力されず、受信候補アドレス更新信号が出力されず、受信検索結果更新フラグが「0」で、受信検索結果有効フラグが「0」であるから、第2のメッセージがアドレス#4のバッファに格納されることはない(図2(B)、図4参照)。次に、アドレス#3については、送信設定である(受信設定IDがない)ので、アドレス#3のバッファに第2のメッセージが格納されることはない(図2(B)、図4参照)。   A case where the second message (ID = 0533h) is received will be described. For address # 4, since the reception setting ID is 0333h and the ID of the second message is 0533h, the FIT signal is not output, the reception candidate address update signal is not output, and the reception search result update flag is “0”. ”, Since the reception search result valid flag is“ 0 ”, the second message is not stored in the buffer at address # 4 (see FIG. 2B and FIG. 4). Next, since address # 3 is a transmission setting (no reception setting ID), the second message is not stored in the buffer of address # 3 (see FIGS. 2B and 4). .

次に、アドレス#2について、受信設定IDが0533hで第2のメッセージのIDが0533hであるため一致することからFIT信号が出力され、MTが「マスクなし」で受信候補MTが「マスク4あり」であるためMT判定情報は「優」となるから(表1参照)、優位性判定信号が出力され(表6参照)、受信候補アドレス更新信号が出力され、受信候補MTが「マスクなし」、受信候補DNが「1」、受信候補OWSが「0」、受信候補アドレスが「アドレス#2」に更新され、受信検索結果更新フラグが「1」となるが、受信候補DNが「1」で受信候補OWSが「0」であるから受信検索結果有効フラグが「0」となるから、第2のメッセージはアドレス#2のバッファに格納されない(図2(B)、図4参照)。   Next, for address # 2, since the reception setting ID is 0533h and the ID of the second message is 0533h, the FIT signal is output because they match, the MT is “no mask”, and the reception candidate MT is “with mask 4” Since the MT determination information is “excellent” (see Table 1), the superiority determination signal is output (see Table 6), the reception candidate address update signal is output, and the reception candidate MT is “no mask”. The reception candidate DN is “1”, the reception candidate OWS is “0”, the reception candidate address is updated to “address # 2”, and the reception search result update flag is “1”, but the reception candidate DN is “1”. Since the reception candidate OWS is “0” and the reception search result valid flag is “0”, the second message is not stored in the buffer of the address # 2 (see FIG. 2B and FIG. 4).

次に、アドレス#1について、受信設定IDが0533hで第2のメッセージのIDが0533hであるため一致することからFIT信号が出力されるが、MTが「マスク2あり」で受信候補MTが「マスクなし」であるからMT判定情報は「劣」であるから(表1参照)、優位性判定信号が出力されず(レベル「0」)、受信候補アドレス更新信号が出力されず、受信候補アドレスが「アドレス#2」のままであるから、第2のメッセージがアドレス#1のバッファに格納されない(図2(B)、図4参照)。   Next, for the address # 1, since the reception setting ID is 0533h and the ID of the second message is 0533h, the FIT signal is output because they match, but the MT is “with mask 2” and the reception candidate MT is “ Since it is “no mask”, the MT determination information is “poor” (see Table 1), the superiority determination signal is not output (level “0”), the reception candidate address update signal is not output, and the reception candidate address Remains at “address # 2”, the second message is not stored in the buffer at address # 1 (see FIG. 2B and FIG. 4).

なお、第2のメッセージは格納されないので、どのアドレスの格納情報(DN)も書き換わらない(図2(C)参照)。   Since the second message is not stored, the storage information (DN) at any address is not rewritten (see FIG. 2C).

この状態で、CPUがID=0533hのメッセージを読み出すためには、バッファ#2のみから読み出せばよい。つまり、CPUは、メッセージバッファの特定の単一のバッファに対してのみリードアクセスを行えばよい。   In this state, in order for the CPU to read the message with ID = 0533h, it is only necessary to read from the buffer # 2. That is, the CPU only needs to perform read access to a specific single buffer of the message buffer.

実施形態1によれば、余分なデータが分散して格納されることがないので、CPUがメッセージバッファからメッセージを読み出す際に余分な処理が発生しない。そのため、CPU処理が高速化され、システムとして高いパフォーマンスを発揮させることができる。また、受信履歴を辿るような場合でも同様に余分な処理が発生しない。   According to the first embodiment, since extra data is not distributed and stored, no extra processing occurs when the CPU reads a message from the message buffer. Therefore, the CPU processing is speeded up, and high performance as a system can be exhibited. Similarly, no extra processing occurs even when the reception history is traced.

本発明の実施形態1に係るCANモジュール(データ処理モジュール)の判定部の構成を模式的に示したブロック図である。It is the block diagram which showed typically the structure of the determination part of the CAN module (data processing module) which concerns on Embodiment 1 of this invention. 本発明の実施形態1に係るCANモジュール(データ処理モジュール)において受信メッセージの格納処理の際の動作を説明するための模式図である。It is a schematic diagram for demonstrating the operation | movement in the case of the storage process of a received message in the CAN module (data processing module) which concerns on Embodiment 1 of this invention. 本発明の実施形態1に係るCANモジュール(データ処理モジュール)において受信した第1のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating the operation | movement in the case of the storage process of the 1st message received in the CAN module (data processing module) which concerns on Embodiment 1 of this invention. 本発明の実施形態1に係るCANモジュール(データ処理モジュール)において受信した第2のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating the operation | movement in the case of the storage process of the 2nd message received in the CAN module (data processing module) which concerns on Embodiment 1 of this invention. CANデバイスの構成を模式的に示したブロック図である。It is the block diagram which showed the structure of the CAN device typically. CANデバイスのメッセージバッファの構成を模式的に示したブロック図である。It is the block diagram which showed typically the structure of the message buffer of a CAN device. メッセージバッファのメッセージハンドリング部の一部(受信したメッセージをメッセージバッファにストアする部分)の構成を模式的に示したブロック図である。It is the block diagram which showed typically the structure of a part (part which stores the received message in a message buffer) of the message handling part of a message buffer. 従来例に係るCANモジュールの判定部の構成を模式的に示したブロック図である。It is the block diagram which showed typically the structure of the determination part of the CAN module which concerns on a prior art example. 従来例に係るCANモジュールにおいて受信したメッセージの格納処理の際の動作を説明するための模式図である。It is a schematic diagram for demonstrating the operation | movement in the case of the storage process of the message received in the CAN module which concerns on a prior art example. 従来例に係るCANモジュールにおいて受信した第1のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating the operation | movement at the time of the storage process of the 1st message received in the CAN module which concerns on a prior art example. 従来例に係るCANモジュールにおいて受信した第2のメッセージの格納処理の際の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating the operation | movement at the time of the storage process of the 2nd message received in the CAN module which concerns on a prior art example.

符号の説明Explanation of symbols

1 CANデバイス
2 CANモジュール(データ処理モジュール)
3 CPU
4 RAM
5 周辺回路
6 バス
11 メッセージハンドリング部
12 メッセージバッファ
13 CANプロトコル送信層
14 マスクセット
21 格納処理部
22 サーチ用アドレス生成部
23 ID比較部(識別子比較部)
24 判定部
25 受信候補アドレス保持部
26 初期化制御部
31、131 受信候補MT保持部(受信候補送受信設定情報保持部)
32、132 受信候補DN保持部(受信候補格納情報保持部)
33、133 受信候補OWS保持部(受信候補上書情報保持部)
34、134 MT判定部(送受信設定情報判定部)
35、135 DN/OWS判定部(格納情報/上書情報判定部)
36、136 優位性判定部
37、137 受信候補アドレス更新判定部
38 受信検索結果更新判定部
39 受信検索結果有効マスク判定部
40、138 受信検索結果判定部
136a 第1書込判定部
136b 第2書込判定部
136c 総合判定部
1 CAN device 2 CAN module (data processing module)
3 CPU
4 RAM
DESCRIPTION OF SYMBOLS 5 Peripheral circuit 6 Bus 11 Message handling part 12 Message buffer 13 CAN protocol transmission layer 14 Mask set 21 Storage process part 22 Search address generation part 23 ID comparison part (identifier comparison part)
24 determination unit 25 reception candidate address holding unit 26 initialization control unit 31, 131 reception candidate MT holding unit (reception candidate transmission / reception setting information holding unit)
32, 132 Reception candidate DN holding unit (reception candidate storage information holding unit)
33, 133 Reception candidate OWS holding unit (reception candidate overwrite information holding unit)
34, 134 MT determination unit (transmission / reception setting information determination unit)
35, 135 DN / OWS determination unit (stored information / overwrite information determination unit)
36, 136 Superiority determination unit 37, 137 Reception candidate address update determination unit 38 Reception search result update determination unit 39 Reception search result valid mask determination unit 40, 138 Reception search result determination unit 136a First write determination unit 136b Second book Included judgment part 136c Comprehensive judgment part

Claims (7)

メッセージを格納可能な所定数のバッファに区切られており、かつ、前記バッファごとに対応して、送信設定か受信設定かを示す送受信設定情報、メッセージの格納の有無を示す格納情報、及び、メッセージの上書きの可否を示す上書情報が格納されたメッセージバッファと、
受信したメッセージに関連付けられている識別子と、前記バッファに対応付けられている前記送受信設定情報に基づいて決まる識別子とを比較することにより、前記受信したメッセージに関連付けられている識別子に対応する前記バッファを、前記メッセージバッファの中から検出する識別子比較部と、
前記識別子比較部の比較結果に応じて、前記各々のバッファに格納された前記送受信設定情報と、前記メッセージを受信時の前記格納情報と、前記上書情報とに基づいて、前記受信したメッセージを格納すべきバッファを特定し、前記メッセージの格納を許可する判定部と、
を備え、
前記判定部は、第1の識別子に関連付けられている第1のメッセージを受信したときであって、前記識別子比較部が、前記第1の識別子に対応付けられている第1のバッファ及び第2のバッファを検出したときに、前記第1のバッファ及び前記第2のバッファに係る前記送受信設定情報が受信設定であり、前記第1のバッファにおいて前記第1の識別子に関連付けられている第2のメッセージが格納され、前記第1のバッファに係る前記格納情報がメッセージが格納されていることを示し、かつ、前記第1のバッファに係る前記上書情報が上書不可を示すことを検出した場合には、前記第1のメッセージの前記第1のバッファ及び前記第2のバッファへの格納を許可しないことを特徴とするデータ処理モジュール。
Messages are divided into a predetermined number of buffers capable of storing and pre SL corresponding to each buffer, transceiver setting information indicating whether transmission setting or reception setting, storing information indicating whether the storage of the message and, A message buffer in which overwrite information indicating whether or not the message can be overwritten is stored;
The buffer corresponding to the identifier associated with the received message by comparing an identifier associated with the received message with an identifier determined based on the transmission / reception setting information associated with the buffer An identifier comparison unit for detecting the message buffer from the message buffer;
Based on the comparison result of the identifier comparison unit, based on the transmission / reception setting information stored in each of the buffers, the storage information at the time of receiving the message, and the overwrite information, the received message A determination unit that identifies a buffer to be stored and permits storage of the message ;
With
The determination unit receives a first message associated with a first identifier, and the identifier comparison unit includes a first buffer and a second buffer associated with the first identifier. When the first and second buffers are detected, the transmission / reception setting information related to the first buffer and the second buffer is a reception setting, and the second buffer associated with the first identifier in the first buffer When a message is stored, the stored information related to the first buffer indicates that the message is stored, and it is detected that the overwrite information related to the first buffer indicates that overwriting is not possible In the data processing module , storage of the first message in the first buffer and the second buffer is not permitted .
前記第1のバッファに格納されている前記第2のメッセージは、前記判定部によって前記第1のメッセージの格納が許可されていないときに、CPUから読み出されることを特徴とする請求項1に記載のデータ処理モジュール。The said 2nd message stored in the said 1st buffer is read from CPU, when storing of the said 1st message is not permitted by the said determination part. Data processing module. 前記判定部は、前記各々のバッファに格納された前記送受信設定情報が送信設定である場合には、前記第1のメッセージの前記第1のバッファ及び前記第2のバッファへの格納を許可しないことを特徴とする請求項1又は2記載のデータ処理モジュール。The determination unit does not permit storage of the first message in the first buffer and the second buffer when the transmission / reception setting information stored in each of the buffers is a transmission setting. The data processing module according to claim 1 or 2. 複数のバッファから構成され、それぞれのバッファが、データを識別するための識別情報、バッファの上書きの可否を示す上書情報、バッファの識別情報をマスクするためのマスク情報を含んで構成されたメッセージバッファと、
受信データを受け取ったとき、前記メッセージバッファ内の前記複数のバッファすべての識別情報及び前記マスク情報から得られる識別情報と前記受信データの識別情報とを比較し、複数のバッファの識別情報が一致した場合には、前記マスク情報に応じて一番優先順位の高いバッファを選択し、前記選択されたバッファの前記上書情報が書き込み不可を示しているときには、前記選択されたバッファ及び他のバッファにデータを書き込むことなく受信データを処理する制御回路と、
を備えることを特徴とするデータ処理モジュール。
A message composed of a plurality of buffers, each of which includes identification information for identifying data, overwrite information indicating whether the buffer can be overwritten, and mask information for masking the buffer identification information. A buffer,
When the received data is received, the identification information of all the plurality of buffers in the message buffer and the identification information obtained from the mask information are compared with the identification information of the received data, and the identification information of the plurality of buffers matches. In this case, the buffer having the highest priority is selected according to the mask information, and when the overwrite information of the selected buffer indicates that writing is not possible, the selected buffer and other buffers are selected. A control circuit that processes received data without writing data;
A data processing module comprising:
前記識別情報は複数ビットから構成され、前記マスク情報は前記複数ビットの所定ビットをマスクする情報であることを特徴とする請求項記載のデータ処理モジュール。 5. The data processing module according to claim 4, wherein the identification information is composed of a plurality of bits, and the mask information is information for masking the predetermined bits of the plurality of bits. メッセージバッファの第1のアドレスに係るバッファに第1のメッセージが格納されているときであって、前記第1のアドレスに係るバッファへの上書きが不可であり、かつ、前記第1のメッセージの識別子と同じ識別子が付与された第2のメッセージを受信したときに、前記第1のアドレスよりも優位性が低い第2のアドレスに係るバッファが同じ識別子を備えかつ上書きが可のとき前記第2のアドレスに係るバッファに前記第2のメッセージを格納しないことを特徴とするデータ処理モジュールのメッセージ受信方法。   When the first message is stored in the buffer associated with the first address of the message buffer, the buffer associated with the first address cannot be overwritten, and the identifier of the first message When the second message to which the same identifier is assigned is received, the buffer associated with the second address, which has a lower priority than the first address, has the same identifier and can be overwritten. A message receiving method of a data processing module, wherein the second message is not stored in a buffer associated with an address. 前記第2のアドレスに係るバッファの識別子はマスク情報によってマスクされ、前記マスクされた識別子が前記第2のメッセージの識別子と同じであることを特徴とする請求項記載のデータ処理モジュールのメッセージ受信方法。 7. The message reception of the data processing module according to claim 6 , wherein the identifier of the buffer related to the second address is masked by mask information, and the masked identifier is the same as the identifier of the second message. Method.
JP2005089459A 2005-03-25 2005-03-25 Data processing module and message receiving method thereof Expired - Fee Related JP4721741B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005089459A JP4721741B2 (en) 2005-03-25 2005-03-25 Data processing module and message receiving method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005089459A JP4721741B2 (en) 2005-03-25 2005-03-25 Data processing module and message receiving method thereof

Publications (2)

Publication Number Publication Date
JP2006268743A JP2006268743A (en) 2006-10-05
JP4721741B2 true JP4721741B2 (en) 2011-07-13

Family

ID=37204598

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005089459A Expired - Fee Related JP4721741B2 (en) 2005-03-25 2005-03-25 Data processing module and message receiving method thereof

Country Status (1)

Country Link
JP (1) JP4721741B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6344348B2 (en) * 2015-09-14 2018-06-20 株式会社デンソー Buffer control device, communication node, and relay device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3546662C3 (en) * 1985-02-22 1997-04-03 Bosch Gmbh Robert Method for operating a data processing system
JP3284823B2 (en) * 1995-04-21 2002-05-20 株式会社エフ・エフ・シー Data communication device
JP3713977B2 (en) * 1998-09-21 2005-11-09 株式会社日立製作所 Real-time distributed system
US6434432B1 (en) * 1999-09-15 2002-08-13 Koninklijke Philips Electronics N. V. Method for writing back message ID information to a match ID register and a CAN microcontroller that implements this method
JP4616531B2 (en) * 2001-12-21 2011-01-19 富士フイルム株式会社 Communication equipment

Also Published As

Publication number Publication date
JP2006268743A (en) 2006-10-05

Similar Documents

Publication Publication Date Title
CN100382016C (en) Digital signal system possessing accelerator and method of operation
CN109726163A (en) A kind of communication system based on SPI, method, equipment and storage medium
EP2650794A1 (en) Information processing system and information transmission method
US20100131685A1 (en) Hardware configuration information system, method, and computer program product
US7934043B2 (en) Data processing apparatus for controlling access to a memory based upon detection of completion of a DMA bus cycle
JP4721741B2 (en) Data processing module and message receiving method thereof
US8065496B2 (en) Method for updating information used for selecting candidate in LRU control
JP2004021351A (en) IC card and control method thereof
US8904032B2 (en) Prefetch optimization of the communication of data using descriptor lists
US9582341B2 (en) Semiconductor device including a plurality of processors and a method of operating the same
JP4574377B2 (en) Data processing module and method for managing transmitted / received messages thereof
CN113222807B (en) Data memory, data storage method, data reading method, chip and computer equipment
US20050138236A1 (en) Direct memory access control device and method for automatically updating data transmisson size from peripheral
JP4522846B2 (en) Data processing module and method for determining candidate message for sending
US20030200401A1 (en) Microcomputer system automatically backing-up data written in storage medium in transceiver, and transceiver connected thereto
CN100454226C (en) Host, storage device and method for accessing storage device
JP4492955B2 (en) Data processing module and method for determining candidate message for sending
US12235900B2 (en) Computer-implemented data structure, electronic storage medium, and method for data exchange
JP4601456B2 (en) Data processing module and method for determining storage location of received message
JP6718798B2 (en) Switch and its data access method
CN117811939B (en) Remote terminal simulation method based on 1553B bus
US6938102B1 (en) Dequeuing from a host adapter two-dimensional queue
US7404049B2 (en) Method and system for managing address bits during buffered program operations in a memory device
EP2590085A1 (en) Controller host interface for a FlexRay communication controller
JP4540570B2 (en) Data processing module, device, system, and transmission candidate message search method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071212

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101001

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101012

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110105

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110405

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110405

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140415

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees