JP2008271410A - Serial bus system - Google Patents

Serial bus system Download PDF

Info

Publication number
JP2008271410A
JP2008271410A JP2007114486A JP2007114486A JP2008271410A JP 2008271410 A JP2008271410 A JP 2008271410A JP 2007114486 A JP2007114486 A JP 2007114486A JP 2007114486 A JP2007114486 A JP 2007114486A JP 2008271410 A JP2008271410 A JP 2008271410A
Authority
JP
Japan
Prior art keywords
data
station
master
serial bus
slave
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.)
Granted
Application number
JP2007114486A
Other languages
Japanese (ja)
Other versions
JP5002316B2 (en
Inventor
Toshihiro Kitamura
寿博 北村
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP2007114486A priority Critical patent/JP5002316B2/en
Publication of JP2008271410A publication Critical patent/JP2008271410A/en
Application granted granted Critical
Publication of JP5002316B2 publication Critical patent/JP5002316B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a serial bus system with which data can be shared between master stations without reducing transmission efficiency. <P>SOLUTION: A master station 10 comprises a judgement unit 101 for judging whether or not data flowing on a serial bus 3 are predetermined data to be shared with other master station 10 and a capturing unit 102 for capturing the data judged by the judgement unit 101 as the data to be shared with the other master station 10. Furthermore, a slave station 20 comprises a judgement unit 201 for judging whether or not data flowing on the serial bus 3 are predetermined data to be shared with other slave station 20 and a capturing unit 202 for capturing the data judged by the judgement unit 201 as the data to be shared with the other slave station 20. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、複数のマスター局と複数のスレーブ局とがシリアルバスを介して接続されたシリアルバスシステムに関するものである。   The present invention relates to a serial bus system in which a plurality of master stations and a plurality of slave stations are connected via a serial bus.

図8は、従来のシリアルバスシステムにおいて複数のマスター局間であるデータを共有する場合データの流れを示した図である。まず、マスター局101Jは、スレーブ局201Jにあるデータを読み出すためのコマンドを送出し(1st)、このコマンドを受信したスレーブ局201Jは、マスター局101Jに読み出し要求がされたデータを送出し(2nd)、マスター局101Jは、受信したデータをマスター局102Jに送出し(3rd)、マスター局102Jは受信したデータに対するレスポンスをマスター局101Jに送出することで、マスター局101Jとマスター局102Jとの間でデータが共有されていた。   FIG. 8 is a diagram showing the flow of data when data is shared among a plurality of master stations in a conventional serial bus system. First, the master station 101J sends a command for reading data in the slave station 201J (1st), and the slave station 201J receiving this command sends the data requested to be read to the master station 101J (2nd). ), The master station 101J sends the received data to the master station 102J (3rd), and the master station 102J sends a response to the received data to the master station 101J, so that the master station 101J and the master station 102J Was sharing data.

図9は、従来のシリアルバスシステムにおいて複数のスレーブ局間であるデータを共有する場合データの流れを示した図である。まず、マスター局101Jは、スレーブ局201Jにデータを読み出すためのコマンドを送出し(1st)、このコマンドを受信したスレーブ局201Jは、マスター局101Jに読み出し要求がされたデータを送出し(2nd)、マスター局101Jは、受信したデータをスレーブ局202Jに送出し(3rd)、スレーブ局202Jは受信したデータに対するレスポンスをマスター局101Jに送出することで(4th)、スレーブ局201Jとスレーブ局202Jとの間でデータが共有されていた。   FIG. 9 is a diagram showing the flow of data when data is shared among a plurality of slave stations in a conventional serial bus system. First, the master station 101J sends a command for reading data to the slave station 201J (1st), and the slave station 201J receiving this command sends the data requested to be read to the master station 101J (2nd). The master station 101J sends the received data to the slave station 202J (3rd), and the slave station 202J sends a response to the received data to the master station 101J (4th), so that the slave station 201J and the slave station 202J Data was shared between.

特許文献1には、データ線のトラフィックを圧迫することなく、少ない信号線と簡単なデータ通信タイミング手段とによって、効率良くデータの伝送を行うことができる双方向シリアルインターフェイス回路を提供することを目的として(段落[0004])、「予め決めておいた自データ送受信部のアドレス番号と3進カウンタのタイミングとが一致したときにのみ、送信したいデータ送受信部のアドレス番号をデータに付加して送信する」シリアルインターフェイス回路が開示されている(段落[0028])。
特開2001−285319号公報
Patent Document 1 aims to provide a bidirectional serial interface circuit that can efficiently transmit data by using a small number of signal lines and simple data communication timing means without squeezing data line traffic. (Paragraph [0004]) “Only when the address number of the own data transmission / reception unit determined in advance matches the timing of the ternary counter, the address number of the data transmission / reception unit to be transmitted is added to the data and transmitted. A serial interface circuit is disclosed (paragraph [0028]).
JP 2001-285319 A

しかしながら、従来のシリアルバスシステムにおいては、図8に示すようにスレーブ局201Jからのデータを受信したマスター局101Jが他のマスター局102Jに共有すべきデータを送出することでデータが共有されているため、シリアルバスのトラフィックが増大し、伝送効率が低下するという問題があった。また、従来のシリアルバスシステムにおいては、図9に示すように、スレーブ局201Jからのデータを受信したマスター局101Jがスレーブ局202Jに共有すべきデータを送出することでスレーブ局201J及び202J間でデータが共有されているため、シリアルバスのトラフィックが増大し、伝送効率が低下するという問題があった。   However, in the conventional serial bus system, as shown in FIG. 8, data is shared by the master station 101J receiving data from the slave station 201J sending data to be shared to the other master station 102J. Therefore, there is a problem that traffic on the serial bus increases and transmission efficiency decreases. In the conventional serial bus system, as shown in FIG. 9, the master station 101J that has received data from the slave station 201J sends data to be shared to the slave station 202J, so that the slave stations 201J and 202J can transmit data. Since data is shared, there is a problem that traffic on the serial bus increases and transmission efficiency decreases.

更に、特許文献1の技術は、自データ送受信部のアドレス番号と3進カウンタのタイミングとが一致したときにのみ、送信したいデータ送受信部のアドレス番号をデータに付加して送信するというような構成が採用されており、本願とは構成が大きく相違している。   Further, the technology of Patent Document 1 is configured such that only when the address number of the own data transmission / reception unit matches the timing of the ternary counter, the address number of the data transmission / reception unit to be transmitted is added to the data and transmitted. Is adopted, and the configuration is greatly different from that of the present application.

本発明の目的は、伝送効率を低下させることなく、マスター局間でデータを共有することができるシリアルバスシステムを提供することである。   An object of the present invention is to provide a serial bus system capable of sharing data between master stations without reducing transmission efficiency.

本発明によるシリアルバスシステムは、複数のマスター局と、各マスター局とシリアルバスを介して接続された複数のスレーブ局とを備えるシリアルバスシステムであって、前記マスター局は、前記シリアルバスを流れるデータが他のマスター局との間で共有すべき予め定められたデータであるか否かを判定するマスター側判定手段と、前記マスター側判定手段により他のマスター局との間で共有すべきデータであると判定されたデータを取り込むマスター側取込手段とを備えることを特徴とする。   A serial bus system according to the present invention is a serial bus system including a plurality of master stations and a plurality of slave stations connected to each master station via a serial bus, and the master station flows through the serial bus. Master side determination means for determining whether or not data is predetermined data to be shared with other master stations, and data to be shared with other master stations by the master side determination means And a master side taking-in means for taking in the data determined to be.

この構成によれば、マスター局において、シリアルバスを流れるデータが他のマスター局との間で共有すべき予め定められたデータであるか否かが判定され、他のマスター局との間で共有すべきデータであると判定された場合、当該データが取り込まれる。そのため、マスター局同士で共有すべきデータを送受することなく、データを共有することができ、伝送効率を低下させることなく、マスター局同士でデータを共有することができる。   According to this configuration, in the master station, it is determined whether or not the data flowing through the serial bus is predetermined data to be shared with other master stations, and is shared with other master stations. If it is determined that the data should be, the data is fetched. Therefore, data can be shared without transmitting / receiving data to be shared between master stations, and data can be shared between master stations without deteriorating transmission efficiency.

また、前記スレーブ局は、前記シリアルバスを流れるデータが他のスレーブ局との間で共有すべき予め定められたデータであるか否かを判定するスレーブ側判定手段と、前記スレーブ側判定手段により他のスレーブ局との間で共有すべきデータであると判定されたデータを取り込むスレーブ側取込手段とを備えることが好ましい。   The slave station includes a slave-side determination unit that determines whether data flowing through the serial bus is predetermined data to be shared with other slave stations, and the slave-side determination unit. It is preferable to include a slave-side capturing unit that captures data determined to be shared with other slave stations.

この構成によれば、スレーブ局において、シリアルバスを流れるデータが他のスレーブ局との間で共有すべき予め定められたデータであるか否かが判定され、他のスレーブ局との間で共有すべきデータであると判定された場合、当該データが取り込まれるため、スレーブ局同士で共有すべきデータを送受することなく、データを共有することができ、伝送効率を低下させることなく、スレーブ局同士でデータを共有することができる。   According to this configuration, in the slave station, it is determined whether or not the data flowing through the serial bus is predetermined data to be shared with other slave stations, and shared with other slave stations. If it is determined that the data is to be received, the data is taken in. Therefore, the slave station can share the data without transmitting / receiving the data to be shared between the slave stations, and without reducing the transmission efficiency. You can share data with each other.

また、前記マスター側判定手段は、前記シリアルバスに流れるデータが、データを共有することが予め定められた他のマスター局宛に送出されたデータである場合、当該データを他のマスター局との間で共有すべきデータであると判定することが好ましい。   In addition, when the data flowing through the serial bus is data transmitted to another master station that is predetermined to share data, the master side determination unit transmits the data to another master station. It is preferable to determine that the data should be shared among the users.

この構成によれば、シリアルバスに流れるデータがどのスレーブ局から送出されたデータであるかを判定することで、当該データが他のマスター局との間で共有すべきデータであるか否かが判定されるため、他のマスター局との間で共有すべきデータであるか否かの判定処理の簡便化を図ることができる。   According to this configuration, by determining which slave station the data flowing through the serial bus is the data transmitted, it is possible to determine whether the data should be shared with other master stations. Since the determination is made, it is possible to simplify the process of determining whether or not the data is to be shared with other master stations.

また、前記スレーブ側判定手段は、前記シリアルバスに流れるデータが、データを共有することが予め定められた他のスレーブ局宛に送出されたデータである場合、当該データを他のマスター局との間で共有すべきデータであると判定することが好ましい。   In addition, when the data flowing through the serial bus is data sent to another slave station that is predetermined to share data, the slave-side determination unit sends the data to another master station. It is preferable to determine that the data should be shared among the users.

この構成によれば、シリアルバスに流れるデータがどのマスター局から送出されたデータであるかを判定することで、当該データが他のスレーブ局との間で共有すべきデータであるか否かが判定されるため、他のスレーブ局との間で共有すべきデータであるか否かの判定処理の簡便化を図ることができる。   According to this configuration, by determining which master station the data flowing on the serial bus is the data transmitted from the serial bus, it is possible to determine whether the data should be shared with other slave stations. Therefore, it is possible to simplify the process of determining whether or not the data is to be shared with other slave stations.

本発明によれば、伝送効率を低下させることなく、マスター局間でデータを共有させることができる。   According to the present invention, data can be shared between master stations without lowering transmission efficiency.

以下、本発明の実施の形態によるシリアルバスシステムについて説明する。図1は、本実施の形態によるシリアルバスシステムのブロック図を示している。本シリアルバスシステムは、N(nは2以上の整数)個のマスター局11〜1Nと、M(Mは2以上の整数)個のスレーブ局21〜2Mとを備えている。マスター局11〜1N及びスレーブ局21〜2Mはシリアルバス3により種々のデータが送受信可能に接続されている。なお、マスター局11〜1Nを特に区別しない場合は、マスター局に対して「10」の符号を付し、スレーブ局21〜2Mを特に区別しない場合は、スレーブ局に対して「20」の符号を付す。   Hereinafter, a serial bus system according to an embodiment of the present invention will be described. FIG. 1 shows a block diagram of a serial bus system according to the present embodiment. This serial bus system includes N (n is an integer of 2 or more) master stations 11 to 1N and M (M is an integer of 2 or more) slave stations 21 to 2M. The master stations 11 to 1N and the slave stations 21 to 2M are connected by a serial bus 3 so that various data can be transmitted and received. If the master stations 11 to 1N are not particularly distinguished from each other, the master station is assigned a sign of “10”, and if the slave stations 21 to 2M are not particularly distinguished from each other, the slave station is designated to be “20”. Is attached.

マスター局10は、例えばCPUが搭載された回路基板と、当該回路基板を他の回路基板に接続するためのコネクタとを備えている。本シリアルバスシステムにおいては、マスター局10は、スレーブ局20を制御するためのコマンドフレームをシリアルバス3上に送出するものとする。   The master station 10 includes, for example, a circuit board on which a CPU is mounted, and a connector for connecting the circuit board to another circuit board. In this serial bus system, the master station 10 transmits a command frame for controlling the slave station 20 onto the serial bus 3.

スレーブ局20は、例えばEEPROM等の記憶装置や、入出力インターフェイス等が搭載された回路基板と、当該回路基板を他の回路基板に接続するためのコネクタとを備えている。本シリアルバスシステムにおいては、スレーブ局20は、マスター局10から送信されたコマンドフレームに対するレスポンスフレームをシリアルバス3上に送出するものとする。   The slave station 20 includes, for example, a storage device such as an EEPROM, a circuit board on which an input / output interface or the like is mounted, and a connector for connecting the circuit board to another circuit board. In the present serial bus system, the slave station 20 sends a response frame to the command frame transmitted from the master station 10 onto the serial bus 3.

シリアルバス3は、マスター局10及びスレーブ局20から送出されるデータを伝送するデータ線31と、マスター局11〜1N及びスレーブ局21〜2Nを同期させるためのクロック信号を伝送するクロック線32とを備えている。   The serial bus 3 includes a data line 31 that transmits data transmitted from the master station 10 and the slave station 20, and a clock line 32 that transmits a clock signal for synchronizing the master stations 11 to 1N and the slave stations 21 to 2N. It has.

そして、マスター局11〜1Nを構成する回路基板とスレーブ局21〜2Mを構成する回路基板がコネクタを介して接続されると、図1に示すように、マスター局10及びスレーブ局20がシリアルバス3を介して接続されることとなる。なお、図1に示すシリアルバスシステムは、2軸XYテーブルや、ロボットアーム等の制御対象物を制御するPLC(programmable logic controller)を構成する。   When the circuit boards constituting the master stations 11 to 1N and the circuit boards constituting the slave stations 21 to 2M are connected via connectors, the master station 10 and the slave station 20 are connected to the serial bus as shown in FIG. 3 will be connected. The serial bus system shown in FIG. 1 constitutes a PLC (programmable logic controller) for controlling a control target such as a two-axis XY table or a robot arm.

図2は、マスター局10が送出するコマンドフレームF1のデータフォーマットの一例を示した図である。図2に示すようにコマンドフレームF1は、「送信元マスター局局番」のフィールドと、「送信先スレーブ局局番」のフィールドと、「コマンド」のフィールドと、「アドレス」のフィールドと、「データ」のフィールドと、「FCS(Frame Check Sequence)」のフィールドとを備えている。なお、コマンドフレームF1は、マスター局10のみが送出し、スレーブ局20は送出しない。   FIG. 2 is a diagram showing an example of the data format of the command frame F1 sent out by the master station 10. As shown in FIG. As shown in FIG. 2, the command frame F1 includes a "source master station number" field, a "destination slave station number" field, a "command" field, an "address" field, and a "data" And a “FCS (Frame Check Sequence)” field. The command frame F1 is transmitted only by the master station 10 and not transmitted by the slave station 20.

「送信元マスター局局番」のフィールドには、コマンドフレームF1の送信元となるマスター局10に対して一意に与えられた局番が格納される。「送信先スレーブ局局番」のフィールドには、コマンドフレームF1の送信先となるスレーブ局20に対して一意に与えられた局番が格納される。「コマンド」のフィールドには、コマンドフレームであることを示し、かつ、コマンドの種類を示すデータが格納される。   In the “source master station number” field, a station number uniquely given to the master station 10 that is the source of the command frame F1 is stored. In the “destination slave station number” field, a station number uniquely given to the slave station 20 that is the transmission destination of the command frame F1 is stored. The “command” field stores data indicating a command frame and the type of command.

ここで、コマンドの種類としては、マスター局10がスレーブ局20にデータを書き込むための「書き込みコマンド」、及びマスター局10がスレーブ局20からデータを読み出すための「読み出しコマンド」等が含まれる。   Here, the types of commands include a “write command” for the master station 10 to write data to the slave station 20, a “read command” for the master station 10 to read data from the slave station 20, and the like.

「アドレス」のフィールドには、例えば、コマンドフレームF1が「読み出しコマンド」である場合は、読み出し対象となるデータが格納されたスレーブ局20の記憶装置内のアドレスが格納され、また、コマンドフレームF1が「書き込みコマンド」である場合は、書き込み対象のデータが書き込まれるスレーブ局20の記憶装置内のアドレスが格納される。「データ」のフィールドには、例えば、コマンドフレームF1が「書き込みコマンド」である場合は、書き込み対象のデータが格納される。「FCS」のフィールドには、コマンドフレームF1の誤り検出を行うためのフレームチェックシーケンスが格納される。   In the “address” field, for example, when the command frame F1 is a “read command”, the address in the storage device of the slave station 20 storing the data to be read is stored, and the command frame F1 Is a “write command”, the address in the storage device of the slave station 20 to which the write target data is written is stored. In the “data” field, for example, when the command frame F1 is a “write command”, data to be written is stored. The “FCS” field stores a frame check sequence for detecting an error in the command frame F1.

図3は、スレーブ局20がマスター局10に送信するレスポンスフレームF2のデータフォーマットの一例を示している。レスポンスフレームF2は、「送信元マスター局局番」のフィールド、「送信先スレーブ局局番」のフィールド、「レスポンス」のフィールド、「データ」のフィールド、及び「FCS」のフィールドを備えている。なお、レスポンスフレームF2は、スレーブ局20のみが送出し、マスター局10は送出しない。   FIG. 3 shows an example of the data format of the response frame F2 transmitted from the slave station 20 to the master station 10. The response frame F2 includes a “source master station number” field, a “destination slave station number” field, a “response” field, a “data” field, and an “FCS” field. The response frame F2 is transmitted only by the slave station 20 and not transmitted by the master station 10.

「送信元マスター局局番」のフィールドには、レスポンスフレームF2の送信先となるマスター局10の局番、すなわち、レスポンスフレームF2に対するコマンドフレームF1の送信元であるマスター局10の局番が格納される。「送信先スレーブ局局番」のフィールドには、レスポンスフレームF2の送信元となるスレーブ局20の局番、すなわち、レスポンスフレームF2に対するコマンドフレームF1の送信先となるスレーブ局20の局番が格納される。「レスポンス」のフィールドには、レスポンスフレームF2がレスポンスフレームF2であることを示すデータが格納される。「データ」のフィールドには、例えばレスポンスフレームF2が「読み出しコマンド」に対するレスポンスである場合は、読み出し対象となるデータが格納される。「FCS」のフィールドには、レスポンスフレームF2の誤り検出を行うためのフレームチェックシーケンスが格納される。   In the “source master station number” field, the station number of the master station 10 that is the destination of the response frame F2, that is, the station number of the master station 10 that is the source of the command frame F1 for the response frame F2 is stored. In the “destination slave station number” field, the station number of the slave station 20 that is the transmission source of the response frame F2, that is, the station number of the slave station 20 that is the transmission destination of the command frame F1 for the response frame F2 is stored. In the “response” field, data indicating that the response frame F2 is the response frame F2 is stored. In the “data” field, for example, when the response frame F2 is a response to the “read command”, data to be read is stored. The “FCS” field stores a frame check sequence for detecting an error in the response frame F2.

図4は、マスター局10の詳細な構成を示すブロック図である。なお、図4に示すブロック図は、スレーブ局20の詳細な構成も示しており、括弧内の符号はスレーブ局に対する構成を示している。   FIG. 4 is a block diagram showing a detailed configuration of the master station 10. The block diagram shown in FIG. 4 also shows the detailed configuration of the slave station 20, and the reference numerals in parentheses indicate the configuration for the slave station.

図4に示すように、マスター局10は、判定部101、取込部102、及び記憶部103を備えている。判定部101(マスター側判定手段)は、シリアルバス3を流れるデータが他のマスター局10との間で共有すべき予め定められたデータであるか否かを判定する。   As illustrated in FIG. 4, the master station 10 includes a determination unit 101, an acquisition unit 102, and a storage unit 103. The determination unit 101 (master side determination means) determines whether the data flowing through the serial bus 3 is predetermined data that should be shared with other master stations 10.

ここで、判定部101は、シリアルバス3を流れるデータを検出すると、当該データをバッファ101aに格納し、当該データが他のマスター局10から送出されたコマンドフレームF1である場合は、当該コマンドフレームF1の「送信元マスター局局番」のフィールドに、データを共有することが予め定められた他のマスター局10の局番が格納されているか否かを判定し、「送信元マスター局局番」のフィールドにデータを共有することが予め定められた他のマスター局10の局番が格納されている場合は、当該コマンドフレームF1を、他のマスター局10との間で共有すべきデータであると判定する。バッファ101aは、シリアルバス3を流れるデータを一時的に格納する。   Here, when the determination unit 101 detects data flowing through the serial bus 3, the determination unit 101 stores the data in the buffer 101a. If the data is the command frame F1 transmitted from another master station 10, the command frame It is determined whether or not the station number of another master station 10 that is predetermined to share data is stored in the field “source master station number” of F1, and the field “source master station number” If the station number of another master station 10 that is predetermined to share data is stored, the command frame F1 is determined to be data to be shared with the other master station 10. . The buffer 101a temporarily stores data flowing through the serial bus 3.

また、判定部101は、バッファ101aに格納したデータが、スレーブ局20から送出されたレスポンスフレームF2である場合は、このレスポンスフレームF2の「送信元マスター局局番」のフィールドに、データを共有することが予め定められた他のマスター局10の局番が格納されているか否かを判定し、「送信元マスター局局番」のフィールドにデータを共有することが予め定められた他のマスター局10の局番が格納されている場合は、当該レスポンスフレームF2を他のマスター局10との間で共有すべきデータであると判定する。   Further, when the data stored in the buffer 101a is the response frame F2 transmitted from the slave station 20, the determination unit 101 shares the data in the “source master station number” field of the response frame F2. It is determined whether or not the station number of the other master station 10 determined in advance is stored, and the data of the other master station 10 determined in advance to share data in the field of “source master station station number” is determined. If the station number is stored, it is determined that the response frame F2 is data to be shared with other master stations 10.

取込部102は、判定部101により他のマスター局10との間で共有すべきデータであると判定されたデータを記憶部103に取り込む。記憶部103は、EEPROM等の書き換え可能な不揮発性の記憶装置から構成される。   The capturing unit 102 captures the data determined by the determining unit 101 as data to be shared with the other master station 10 into the storage unit 103. The storage unit 103 includes a rewritable nonvolatile storage device such as an EEPROM.

図4に示すスレーブ局20は、判定部201、取込部202、及び記憶部203を備える。判定部201は、シリアルバス3を流れるデータが他のスレーブ局20との間で共有すべき予め定められたデータが送出されたか否かを判定する。   The slave station 20 illustrated in FIG. 4 includes a determination unit 201, a capture unit 202, and a storage unit 203. The determination unit 201 determines whether or not predetermined data to be shared with other slave stations 20 is transmitted as data flowing through the serial bus 3.

ここで、判定部201は、シリアルバス3を流れるデータを検出すると、当該データをバッファ201aに格納し、当該データがあるマスター局10から送出されたコマンドフレームF1である場合は、このコマンドフレームF1の「送信先スレーブ局局番」のフィールドに、データを共有することが予め定められた他のスレーブ局20の局番が格納されているか否かを判定し、「送信先スレーブ局局番」のフィールドにデータを共有することが予め定められた他のスレーブ局20の局番が格納されている場合は、このコマンドフレームF1を、他のスレーブ局20との間で共有すべきデータであると判定する。   Here, when the determination unit 201 detects data flowing through the serial bus 3, the determination unit 201 stores the data in the buffer 201a. If the data is a command frame F1 sent from the master station 10 with the data, the determination unit 201 uses the command frame F1. In the “destination slave station number” field, it is determined whether or not the station number of another slave station 20 predetermined to share data is stored, and the “destination slave station number” field is displayed. When the station number of another slave station 20 that is predetermined to share data is stored, it is determined that the command frame F1 is data to be shared with the other slave station 20.

また、判定部201は、バッファ201aに格納したデータが、スレーブ局20から送出されたレスポンスフレームF2である場合は、このレスポンスフレームF2の「送信先スレーブ局局番」のフィールドに、データを共有することが予め定められた他のスレーブ局20の局番が格納されているか否かを判定し、データを共有することが予め定められた他のマスター局10の局番が格納されている場合は、このレスポンスフレームF2を他のスレーブ局20との間で共有すべきデータであると判定する。   Further, when the data stored in the buffer 201a is the response frame F2 transmitted from the slave station 20, the determination unit 201 shares the data in the “destination slave station number” field of the response frame F2. It is determined whether or not the station number of another slave station 20 determined in advance is stored, and when the station number of another master station 10 determined to share data is stored, this It is determined that the response frame F2 is data to be shared with other slave stations 20.

取込部202は、EEPROM等の不揮発性の記憶装置から構成され、判定部201により他のスレーブ局20との間で共有すべきデータであると判定されたデータを記憶部203に取り込む。記憶部203は、EEPROM等の書き換え可能な不揮発性の記憶装置から構成される。   The fetch unit 202 is configured by a nonvolatile storage device such as an EEPROM, and fetches data determined by the determination unit 201 as data to be shared with other slave stations 20 into the storage unit 203. The storage unit 203 includes a rewritable nonvolatile storage device such as an EEPROM.

図5は、本シリアルバスシステムのデータの流れを示した図である。このシリアルバスシステムでは、マスター局10として2つのマスター局11、12が存在し、スレーブ局21として2つのスレーブ局21,22が存在する。また、このシリアルバスシステムでは、マスター局11,12は、データを共有するものとする。   FIG. 5 is a diagram showing a data flow of the serial bus system. In this serial bus system, two master stations 11 and 12 exist as the master station 10, and two slave stations 21 and 22 exist as the slave station 21. In this serial bus system, the master stations 11 and 12 share data.

まず、マスター局11がシリアルバス3を介してスレーブ局21に「読み出しコマンド」のコマンドフレームF1を送出する(1st)。ここで、マスター局12は、このコマンドフレームF1の「送信元マスター局局番」のフィールドに、データを共有することが予め定められたマスター局11の局番が格納されているため、このコマンドフレームF1を取り込む。次に、このコマンドフレームF1を受信したスレーブ局21は、このコマンドフレームF1に対するレスポンスフレームF2をマスター局11に送出する(2st)。ここで、マスター局12は、このレスポンスフレームF2の「送信元マスター局局番」のフィールドにデータを共有することが予め定められたマスター局11の局番が格納されているため、このレスポンスフレームF2を取り込む。これにより、マスター局11は、スレーブ局21にコマンドフレームF1を送出した後、マスター局12にこのコマンドフレームF1を送出しなくても、マスター局12との間でコマンドフレームF1を共有することができる。また、マスター局11は、スレーブ局21から送出されたレスポンスフレームF2を受信した後、マスター局12にこのレスポンスフレームF2を送出しなくとも、マスター局12との間でレスポンスフレームF2を共有することができる。   First, the master station 11 sends a command frame F1 of “read command” to the slave station 21 via the serial bus 3 (1st). Here, since the master station 12 stores the station number of the master station 11 that is predetermined to share data in the “source master station number” field of this command frame F1, this command frame F1. Capture. Next, the slave station 21 that has received the command frame F1 transmits a response frame F2 to the command frame F1 to the master station 11 (2st). Here, the master station 12 stores the station number of the master station 11 that is predetermined to share data in the “source master station station number” field of the response frame F2, and therefore uses the response frame F2 as the response frame F2. take in. Thus, the master station 11 can share the command frame F1 with the master station 12 without sending the command frame F1 to the master station 12 after sending the command frame F1 to the slave station 21. it can. Further, after receiving the response frame F2 sent from the slave station 21, the master station 11 shares the response frame F2 with the master station 12 without sending the response frame F2 to the master station 12. Can do.

次に、スレーブ局20の処理について説明する。図6は、スレーブ局20の処理を示すフローチャートである。まず、ステップS1において、スレーブ局20の判定部201は、シリアルバス3を流れるデータを検出し、当該データをバッファ201aに格納し、当該データがコマンドフレームF1であるか否かを判定し、コマンドフレームF1である場合(ステップS1でYES)、処理をステップS2に進める一方、コマンドフレームF1でない場合(ステップS1でNO)、当該データをバッファ201aから破棄して処理を終了する。   Next, processing of the slave station 20 will be described. FIG. 6 is a flowchart showing the processing of the slave station 20. First, in step S1, the determination unit 201 of the slave station 20 detects data flowing through the serial bus 3, stores the data in the buffer 201a, determines whether the data is the command frame F1, and executes the command If it is the frame F1 (YES in step S1), the process proceeds to step S2, whereas if it is not the command frame F1 (NO in step S1), the data is discarded from the buffer 201a and the process is terminated.

次に、ステップS2において、判定部201は、コマンドフレームF1の「送信先スレーブ局局番」のフィールドを参照し、このフィールドにデータを共有すべき他のスレーブ局20の局番が格納されている場合(ステップS2でYES)、処理をステップS3に進め、共有すべき他のスレーブ局20の局番が格納されていない場合(ステップS2でNO)、このコマンドフレームF1をバッファ201aから破棄して処理を終了する。   Next, in step S2, the determination unit 201 refers to the “destination slave station number” field of the command frame F1, and stores the station numbers of other slave stations 20 that should share data in this field. (YES in step S2), the process proceeds to step S3. If the station number of another slave station 20 to be shared is not stored (NO in step S2), the command frame F1 is discarded from the buffer 201a and the process is performed. finish.

次に、ステップS3において、判定部201は、コマンドフレームF1の「アドレス」のフィールドを参照し、このフィールドに格納されたアドレスが、他のスレーブ局20と共有すべきデータを格納するために予め割り当てられたアドレス領域内アドレスを示す場合(ステップS3でYES)、処理をステップS4に進め、「アドレス」のフィールドに格納されたアドレスが、他のスレーブ局20と共有すべきデータを格納するために予め割り当てられたアドレス領域内のアドレスを示さない場合(ステップS3でNO)、このコマンドフレームF1をバッファ201aから破棄して処理を終了する。   Next, in step S 3, the determination unit 201 refers to the “address” field of the command frame F 1, and the address stored in this field stores the data to be shared with the other slave stations 20 in advance. If the address in the allocated address area is indicated (YES in step S3), the process proceeds to step S4, where the address stored in the “address” field stores data to be shared with other slave stations 20 If no address in the pre-assigned address area is indicated (NO in step S3), the command frame F1 is discarded from the buffer 201a and the process is terminated.

次に、ステップS5において、判定部201は、コマンドフレームF1の「コマンド」のフィールドを参照し、このフィールドに「書き込みコマンド」、「読み出しコマンド」、及びこれら以外の「その他のコマンド」のいずれのコマンドを示すデータが格納されているか否かにより、コマンドフレームF1が「書き込みコマンド」、「読み出しコマンド」及び「その他のコマンド」のいずれのコマンドに該当するか否かを判定する。   Next, in step S5, the determination unit 201 refers to the “command” field of the command frame F1, and in this field, any of “write command”, “read command”, and “other commands” other than these. It is determined whether or not the command frame F1 corresponds to any of the “write command”, “read command”, and “other commands” depending on whether or not the data indicating the command is stored.

そして、判定部201は、コマンドフレームF1が「書き込みコマンド」であると判定した場合(ステップS4で「書き込み」)、処理をステップS9に進め、取込部202は、コマンドフレームF1の「データ」のフィールドに格納された書き込み対象のデータを、「アドレス」のフィールドに格納されたデータが示す記憶部203のアドレスに書き込み、データを取り込む。これにより、コマンドフレームF1の送信先のスレーブ局20との間でデータが共有される。なお、書き込みが終了すると、取込部202は、バッファ201aに格納されているコマンドフレームF1を破棄する。   If the determination unit 201 determines that the command frame F1 is a “write command” (“write” in step S4), the process proceeds to step S9, and the capture unit 202 reads “data” of the command frame F1. The data to be written stored in the field “1” is written to the address of the storage unit 203 indicated by the data stored in the “address” field, and the data is captured. As a result, data is shared with the slave station 20 that is the transmission destination of the command frame F1. Note that when the writing is completed, the capturing unit 202 discards the command frame F1 stored in the buffer 201a.

一方、ステップS4において、判定部201は、コマンドフレームF1が読み出しコマンドであると判定した場合(ステップS4で読み出し)、後述するタイムアウト時間の計時を開始すると共に、シリアルバス3に流れているデータをバッファ201aに格納し、当該データが他のスレーブ局20から送出されたレスポンスフレームF2であるか否かを判定する(ステップS5)。ここで、判定部201は、シリアルバス3上を流れるデータを検出する毎に当該データをバッファ201aに格納し、当該データがレスポンスフレームF2であるか否かを判定し、レスポンスフレームF2でないと判定した場合は、そのデータをバッファ201aから破棄し、レスポンスフレームF2であると判定した場合は、そのデータをバッファ201aに保持する。   On the other hand, if the determination unit 201 determines in step S4 that the command frame F1 is a read command (read in step S4), the determination unit 201 starts time-out time measurement, which will be described later, and also transmits data flowing in the serial bus 3. It is stored in the buffer 201a, and it is determined whether or not the data is a response frame F2 transmitted from another slave station 20 (step S5). Here, every time data flowing on the serial bus 3 is detected, the determination unit 201 stores the data in the buffer 201a, determines whether the data is the response frame F2, and determines that the data is not the response frame F2. In such a case, the data is discarded from the buffer 201a, and when it is determined that it is the response frame F2, the data is held in the buffer 201a.

そして、ステップS5において、判定部201は、レスポンスフレームF2と判定した場合(ステップS5でYES)、処理をステップS6に進め、レスポンスフレームF2と判定していない場合(ステップS5でNO)、処理をステップS7に進める。   If the determination unit 201 determines in step S5 that the response frame is F2 (YES in step S5), the process proceeds to step S6. If the determination unit 201 does not determine that the response frame is F2 (NO in step S5), the process is performed. Proceed to step S7.

次に、判定部201は、ステップS7において、予め定められたタイム時間アウトが経過した場合(ステップS7でYES)、すなわち、タイムアウト時間が経過するまでに、レスポンスフレームF2を受信できなかった場合、コマンドフレームF1をバッファから破棄して処理を終了する。   Next, when the predetermined time-out has elapsed in step S7 (YES in step S7), that is, the determination unit 201 has not received the response frame F2 until the timeout time elapses. The command frame F1 is discarded from the buffer and the process is terminated.

一方、ステップS7において、判定部201は、タイムアウト時間が経過していない場合(ステップS7でNO)、処理をステップS5に戻す。   On the other hand, in step S7, the determination part 201 returns a process to step S5, when timeout time has not passed (it is NO at step S7).

次に、ステップS6において、判定部201は、ステップS5で判定したレスポンスフレームF2が正常なデータであるか否かを判定し、正常なデータである場合(ステップS6でYES)、処理をステップS8に進め、異常なデータである場合(ステップS6でNO)、コマンドフレームF1及びレスポンスフレームF2をバッファ201aから破棄して処理を終了する。ここで、判定部201は、例えば、レスポンスフレームF2の「FCS」のフィールドに格納されたデータからレスポンスフレームF2に誤りがあるか否かを判定し、誤りがあると判定した場合は、レスポンスフレームF2は異常なデータであると判定する。   Next, in step S6, the determination unit 201 determines whether or not the response frame F2 determined in step S5 is normal data. If the response frame F2 is normal data (YES in step S6), the process proceeds to step S8. If the data is abnormal (NO in step S6), the command frame F1 and the response frame F2 are discarded from the buffer 201a, and the process ends. Here, for example, the determination unit 201 determines whether or not there is an error in the response frame F2 from the data stored in the “FCS” field of the response frame F2, and if it is determined that there is an error, F2 is determined to be abnormal data.

次に、ステップS8において、判定部201は、ステップS5で判定したレスポンスフレームF2の「送信先スレーブ局局番」のフィールドに、データを共有すべき他のスレーブ局の局番が格納されている場合(ステップS8でYES)、処理をステップS9に進め、ステップS5で判定したレスポンスフレームF2の「送信先スレーブ局局番」のフィールドに、データを共有すべき他のスレーブ局20の局番が格納されていない場合(ステップS8でNO)、コマンドフレームF1及びレスポンスフレームF2をバッファ201aから破棄して処理を終了する。   Next, in step S8, the determination unit 201 stores the station numbers of other slave stations that should share data in the “transmission destination slave station number” field of the response frame F2 determined in step S5 ( The process proceeds to step S9, and the station number of the other slave station 20 that should share data is not stored in the “destination slave station number” field of the response frame F2 determined in step S5. If so (NO in step S8), the command frame F1 and the response frame F2 are discarded from the buffer 201a, and the process ends.

次に、ステップS9において、取込部202は、ステップS5で受信したレスポンスフレームF2の「データ」のフィールドに格納された読み出し対象のデータを、「アドレス」のフィールドに格納されたデータによって示される記憶部203のアドレスに書き込み、データを取り込み、処理を終了する。なお、書き込みが終了すると、取込部202は、バッファ201aに格納されているコマンドフレームF1及びレスポンスフレームF2を破棄する。   Next, in step S9, the capturing unit 202 indicates the data to be read stored in the “data” field of the response frame F2 received in step S5 by the data stored in the “address” field. Write to the address of the storage unit 203, capture the data, and terminate the process. Note that when the writing is completed, the capturing unit 202 discards the command frame F1 and the response frame F2 stored in the buffer 201a.

次に、マスター局10の処理について説明する。図7はマスター局10の処理を示すフローチャートである。まず、ステップS21において、マスター局10の判定部101は、シリアルバス3を流れるデータを検出し、当該データをバッファ101aに格納し、当該データがコマンドフレームF1であるか否かを判定し、コマンドフレームF1である場合(ステップS21でYES)、当該データをバッファ101aに保持し、処理をステップS2に進める一方、コマンドフレームF1でない場合(ステップS21でNO)、当該データをバッファ101aから破棄して処理を終了する。   Next, processing of the master station 10 will be described. FIG. 7 is a flowchart showing processing of the master station 10. First, in step S21, the determination unit 101 of the master station 10 detects data flowing through the serial bus 3, stores the data in the buffer 101a, determines whether the data is the command frame F1, and executes the command If it is the frame F1 (YES in step S21), the data is held in the buffer 101a and the process proceeds to step S2. On the other hand, if it is not the command frame F1 (NO in step S21), the data is discarded from the buffer 101a. The process ends.

次に、ステップS22において、判定部101は、コマンドフレームF1の「送信元マスター局局番」のフィールドを参照し、このフィールドにデータを共有すべき他のマスター局10の局番が格納されている場合(ステップS22でYES)、処理をステップS23に進め、共有すべき他のマスター局10の局番が格納されていない場合(ステップS22でNO)、当該コマンドフレームF1をバッファ101aから破棄して処理を終了する。   Next, in step S22, the determination unit 101 refers to the “source master station number” field of the command frame F1, and stores the station numbers of other master stations 10 that should share data in this field. (YES in step S22), the process proceeds to step S23. If the station number of another master station 10 to be shared is not stored (NO in step S22), the command frame F1 is discarded from the buffer 101a and the process is performed. finish.

次に、ステップS23において、判定部101は、コマンドフレームF1の「アドレス」のフィールドを参照し、このフィールドに格納されたアドレスが、他のマスター局10と共有すべきデータを格納するために予め割り当てられたアドレス領域内アドレスを示す場合(ステップS23でYES)、処理をステップS24に進め、「アドレス」のフィールドに格納されたアドレスが、他のマスター局10と共有すべきデータを格納するために予め割り当てられたアドレス領域内のアドレスを示さない場合(ステップS23でNO)、当該コマンドフレームF1をバッファ101aから破棄して処理を終了する。   Next, in step S23, the determination unit 101 refers to the “address” field of the command frame F1, and the address stored in this field is stored in advance in order to store data to be shared with other master stations 10. If the address in the allocated address area is indicated (YES in step S23), the process proceeds to step S24, and the address stored in the “address” field stores data to be shared with other master stations 10. If no address in the pre-assigned address area is indicated (NO in step S23), the command frame F1 is discarded from the buffer 101a and the process is terminated.

次に、ステップS24において、判定部101は、コマンドフレームF1の「コマンド」のフィールドを参照し、このフィールドに「書き込みコマンド」、「読み出しコマンド」、及びこれら以外の「その他のコマンド」のいずれのコマンドを示すデータが格納されているか否かにより、コマンドフレームF1が「書き込みコマンド」、「読み出しコマンド」及び「その他のコマンド」のいずれのコマンドに該当するか否かを判定する。   Next, in step S24, the determination unit 101 refers to the “command” field of the command frame F1, and in this field, any of “write command”, “read command”, and “other commands” other than these. It is determined whether or not the command frame F1 corresponds to any of the “write command”, “read command”, and “other commands” depending on whether or not the data indicating the command is stored.

そして、判定部101は、コマンドフレームF1が「書き込みコマンド」であると判定した場合(ステップS24で「書き込み」)、処理をステップS29に進め、取込部102は、コマンドフレームF1の「データ」のフィールドに格納された書き込み対象のデータを、「アドレス」のフィールドに格納されたデータによって示される記憶部103のアドレスに書き込み、データを取り込む。これにより、コマンドフレームF1の送信元のマスター局10との間でデータが共有される。なお、書き込みが終了すると、取込部102は、バッファ101aに格納されているコマンドフレームF1を破棄する。   If the determination unit 101 determines that the command frame F1 is a “write command” (“write” in step S24), the process proceeds to step S29, and the capture unit 102 reads “data” of the command frame F1. The data to be written stored in this field is written to the address of the storage unit 103 indicated by the data stored in the “address” field, and the data is captured. As a result, data is shared with the master station 10 that is the transmission source of the command frame F1. Note that when the writing is completed, the capturing unit 102 discards the command frame F1 stored in the buffer 101a.

一方、ステップS24において、判定部101は、コマンドフレームF1が「読み出しコマンド」であると判定した場合(ステップS24で読み出し)、後述するタイムアウト時間の計時を開始すると共に、シリアルバス3に流れているデータをバッファ101aに格納し、当該データがレスポンスフレームF2であるか否かを判定する(ステップS25)。ここで、判定部101は、シリアルバス3上を流れるデータを検出する毎に当該データをバッファ101aに格納し、当該データがレスポンスフレームF2であるか否かを判定し、レスポンスフレームF2でないと判定した場合は、そのデータをバッファ101aから破棄し、レスポンスフレームF2であると判定した場合は、そのデータをバッファ101aに保持する。   On the other hand, if the determination unit 101 determines in step S24 that the command frame F1 is a “read command” (read in step S24), it starts timing a timeout time described later and flows to the serial bus 3. Data is stored in the buffer 101a, and it is determined whether or not the data is the response frame F2 (step S25). Here, each time the data flowing on the serial bus 3 is detected, the determination unit 101 stores the data in the buffer 101a, determines whether the data is the response frame F2, and determines that the data is not the response frame F2. In such a case, the data is discarded from the buffer 101a, and when it is determined that it is the response frame F2, the data is held in the buffer 101a.

そして、ステップS25において、判定部101は、レスポンスフレームF2と判定した場合(ステップS25でYES)、処理をステップS26に進め、レスポンスフレームF2と判定していない場合(ステップS25でNO)、処理をステップS27に進める。   In step S25, if the determination unit 101 determines that the response frame is F2 (YES in step S25), the process proceeds to step S26, and if it is not determined to be the response frame F2 (NO in step S25), the process is performed. Proceed to step S27.

次に、判定部101は、ステップS27において、予め定められたタイム時間アウトが経過した場合(ステップS27でYES)、すなわち、タイムアウト時間が経過するまでに、レスポンスフレームF2を受信できなかった場合、コマンドフレームF1をバッファ101aから破棄して処理を終了する。   Next, in step S27, the determination unit 101 determines that if a predetermined time-out has elapsed (YES in step S27), that is, if the response frame F2 cannot be received before the timeout time elapses. The command frame F1 is discarded from the buffer 101a and the process is terminated.

一方、ステップS27において、判定部101は、タイムアウト時間が経過していない場合(ステップS27でNO)、処理をステップS25に戻す。   On the other hand, in step S27, the determination part 101 returns a process to step S25, when timeout time has not passed (it is NO at step S27).

次に、ステップS26において、判定部101は、ステップS25で受信したレスポンスフレームF2が正常なデータであるか否かを判定し、正常なデータである場合(ステップS26でYES)、処理をステップS28に進め、異常なデータである場合(ステップS26でNO)、コマンドフレームF1及びレスポンスフレームF2をバッファ101aから破棄して処理を終了する。ここで、判定部101は、例えば、レスポンスフレームF2の「FCS」のフィールドに格納されたデータからレスポンスフレームF2に誤りがあるか否かを判定し、誤りがあると判定した場合は、レスポンスフレームF2は異常なデータであると判定する。   Next, in step S26, the determination unit 101 determines whether or not the response frame F2 received in step S25 is normal data. If the response frame F2 is normal data (YES in step S26), the process proceeds to step S28. If the data is abnormal (NO in step S26), the command frame F1 and the response frame F2 are discarded from the buffer 101a, and the process is terminated. Here, for example, the determination unit 101 determines whether or not there is an error in the response frame F2 from the data stored in the “FCS” field of the response frame F2, and if it is determined that there is an error, the response frame F2 F2 is determined to be abnormal data.

次に、ステップS28において、判定部101は、ステップS25で受信したレスポンスフレームF2の「送信元マスター局局番」のフィールドに、データを共有すべき他のマスター局の局番が格納されている場合(ステップS28でYES)、処理をステップS29に進め、ステップS25で受信したレスポンスフレームF2の「送信元マスター局局番」のフィールドに、データを共有すべき他のマスター局10の局番が格納されていない場合(ステップS28でNO)、コマンドフレームF1及びレスポンスフレームF2をバッファ101aから破棄して処理を終了する。   Next, in step S28, the determination unit 101 stores the station numbers of other master stations that should share data in the “source master station number” field of the response frame F2 received in step S25 ( The process proceeds to step S29, and the station number of the other master station 10 that should share data is not stored in the “source master station number” field of the response frame F2 received in step S25. If so (NO in step S28), the command frame F1 and the response frame F2 are discarded from the buffer 101a, and the process ends.

次に、ステップS29において、取込部102は、ステップS25で受信したレスポンスフレームF2の「データ」のフィールドに格納された読み出し対象のデータを、「アドレス」のフィールドに格納されたデータによって示される記憶部103のアドレスに書き込み、データを取り込み、処理を終了する。これにより、コマンドフレームF1を送出したマスター局10もレスポンスフレームF2に含まれる読み出し対象のデータを取り込んでいるため、コマンドフレームF1を送出したマスター局10との間でデータが共有される。なお、書き込みが終了すると、取込部102は、バッファ101aに格納されているコマンドフレームF1及びレスポンスフレームF2を破棄する。   Next, in step S29, the capturing unit 102 indicates the data to be read stored in the “data” field of the response frame F2 received in step S25 by the data stored in the “address” field. Write to the address of the storage unit 103, capture the data, and terminate the process. As a result, the master station 10 that has transmitted the command frame F1 also captures the data to be read included in the response frame F2, so that the data is shared with the master station 10 that has transmitted the command frame F1. When the writing is completed, the capturing unit 102 discards the command frame F1 and the response frame F2 stored in the buffer 101a.

このように、本シリアルバスシステムによれば、マスター局10において、シリアルバス3を流れるデータが他のマスター局10との間で共有すべき予め定められたデータであるか否かが判定され、他のマスター局10との間で共有すべきデータであると判定された場合、当該データが取り込まれる。そのため、マスター局10同士で共有すべきデータを送受することなく、データを共有することができ、伝送効率を低下させることなく、マスター局10同士でデータを共有することができる。   As described above, according to the present serial bus system, in the master station 10, it is determined whether or not the data flowing through the serial bus 3 is predetermined data to be shared with other master stations 10. When it is determined that the data is to be shared with another master station 10, the data is captured. Therefore, data can be shared without transmitting / receiving data to be shared between the master stations 10, and data can be shared between the master stations 10 without reducing transmission efficiency.

また、スレーブ局20において、シリアルバス3を流れるデータが他のスレーブ局20との間で共有すべき予め定められたデータであるか否かが判定され、他のスレーブ局20との間で共有すべきデータであると判定された場合、当該データが取り込まれるため、スレーブ局20同士で共有すべきデータを送受することなく、データを共有することができ、伝送効率を低下させることなく、スレーブ局20同士でデータを共有することができる。   Further, in the slave station 20, it is determined whether or not the data flowing through the serial bus 3 is predetermined data to be shared with the other slave stations 20, and is shared with the other slave stations 20. If it is determined that the data is to be received, the data is taken in. Therefore, the data can be shared without transmitting / receiving data to be shared between the slave stations 20, and the slave can be shared without reducing transmission efficiency. The stations 20 can share data.

本実施の形態によるシリアルバスシステムのブロック図を示している。1 shows a block diagram of a serial bus system according to the present embodiment. マスター局が送出するコマンドフレームのデータフォーマットの一例を示した図である。It is the figure which showed an example of the data format of the command frame which a master station sends out. スレーブ局がマスター局に送信するレスポンスフレームF2のデータフォーマットの一例を示している。An example of the data format of the response frame F2 transmitted from the slave station to the master station is shown. マスター局及びスレーブ局の詳細な構成を示すブロック図である。It is a block diagram which shows the detailed structure of a master station and a slave station. 本シリアルバスシステムのデータの流れを示した図である。It is the figure which showed the data flow of this serial bus system. スレーブ局の処理を示すフローチャートである。It is a flowchart which shows the process of a slave station. マスター局の処理を示すフローチャートである。It is a flowchart which shows the process of a master station. 従来のシリアルバスシステムにおいて複数のマスター局間であるデータを共有する場合データの流れを示した図である。It is the figure which showed the flow of data when sharing the data which is between several master stations in the conventional serial bus system. 従来のシリアルバスシステムにおいて複数のスレーブ局間であるデータを共有する場合データの流れを示した図である。It is the figure which showed the flow of data when sharing the data which is between several slave stations in the conventional serial bus system.

符号の説明Explanation of symbols

3 シリアルバス
10,11〜1N マスター局
20,21〜2M スレーブ局
31 データ線
32 クロック線
101a バッファ
101 判定部
102 取込部
103 記憶部
201a バッファ
201 判定部
202 取込部
203 記憶部
F1 コマンドフレーム
F2 レスポンスフレーム
3 serial bus 10, 11 to 1N master station 20, 21 to 2M slave station 31 data line 32 clock line 101a buffer 101 determination unit 102 acquisition unit 103 storage unit 201a buffer 201 determination unit 202 acquisition unit 203 storage unit F1 command frame F2 response frame

Claims (4)

複数のマスター局と、各マスター局とシリアルバスを介して接続された複数のスレーブ局とを備えるシリアルバスシステムであって、
前記マスター局は、
前記シリアルバスを流れるデータが他のマスター局との間で共有すべき予め定められたデータであるか否かを判定するマスター側判定手段と、
前記マスター側判定手段により他のマスター局との間で共有すべきデータであると判定されたデータを取り込むマスター側取込手段とを備えることを特徴とするシリアルバスシステム。
A serial bus system comprising a plurality of master stations and a plurality of slave stations connected to each master station via a serial bus,
The master station
Master side determination means for determining whether data flowing through the serial bus is predetermined data to be shared with other master stations;
A serial bus system comprising: a master side fetching unit for fetching data determined to be shared with other master stations by the master side judging unit.
前記スレーブ局は、
前記シリアルバスを流れるデータが他のスレーブ局との間で共有すべき予め定められたデータであるか否かを判定するスレーブ側判定手段と、
前記スレーブ側判定手段により他のスレーブ局との間で共有すべきデータであると判定されたデータを取り込むスレーブ側取込手段とを備えることを特徴とする請求項1記載のシリアルバスシステム。
The slave station
Slave-side determination means for determining whether data flowing through the serial bus is predetermined data to be shared with other slave stations;
2. The serial bus system according to claim 1, further comprising slave side fetching means for fetching data determined to be shared with other slave stations by the slave side judging means.
前記マスター側判定手段は、前記シリアルバスに流れるデータが、データを共有することが予め定められた他のマスター局宛に送出されたデータである場合、当該データを他のマスター局との間で共有すべきデータであると判定することを特徴とする請求項1又は2記載のシリアルバスシステム。   When the data flowing through the serial bus is data transmitted to another master station that is predetermined to share the data, the master side determination unit transmits the data to another master station. 3. The serial bus system according to claim 1, wherein it is determined that the data is to be shared. 前記スレーブ側判定手段は、前記シリアルバスに流れるデータが、データを共有することが予め定められた他のスレーブ局宛に送出されたデータである場合、当該データを他のマスター局との間で共有すべきデータであると判定することを特徴とする請求項2記載のシリアルバスシステム。   When the data flowing through the serial bus is data sent to another slave station that is predetermined to share the data, the slave side determination means sends the data to another master station. 3. The serial bus system according to claim 2, wherein the data is determined to be shared.
JP2007114486A 2007-04-24 2007-04-24 Serial bus system Expired - Fee Related JP5002316B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007114486A JP5002316B2 (en) 2007-04-24 2007-04-24 Serial bus system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007114486A JP5002316B2 (en) 2007-04-24 2007-04-24 Serial bus system

Publications (2)

Publication Number Publication Date
JP2008271410A true JP2008271410A (en) 2008-11-06
JP5002316B2 JP5002316B2 (en) 2012-08-15

Family

ID=40050295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007114486A Expired - Fee Related JP5002316B2 (en) 2007-04-24 2007-04-24 Serial bus system

Country Status (1)

Country Link
JP (1) JP5002316B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016225985A (en) * 2015-06-02 2016-12-28 エルエス産電株式会社Lsis Co., Ltd. Method of controlling inverters

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07212864A (en) * 1994-01-20 1995-08-11 Chino Corp Data transmitter
JP2000032554A (en) * 1998-07-09 2000-01-28 Omron Corp Communication control system, wired system and communication equipment
JP2003295914A (en) * 2001-05-21 2003-10-17 Omron Corp Slave, node, processing device, processing method, network power supply monitor system, power supply monitor method, input/output device power supply monitor system, and monitoring method for network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07212864A (en) * 1994-01-20 1995-08-11 Chino Corp Data transmitter
JP2000032554A (en) * 1998-07-09 2000-01-28 Omron Corp Communication control system, wired system and communication equipment
JP2003295914A (en) * 2001-05-21 2003-10-17 Omron Corp Slave, node, processing device, processing method, network power supply monitor system, power supply monitor method, input/output device power supply monitor system, and monitoring method for network system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016225985A (en) * 2015-06-02 2016-12-28 エルエス産電株式会社Lsis Co., Ltd. Method of controlling inverters
US10659536B2 (en) 2015-06-02 2020-05-19 Lsis Co., Ltd. Method of controlling inverters

Also Published As

Publication number Publication date
JP5002316B2 (en) 2012-08-15

Similar Documents

Publication Publication Date Title
US8700866B2 (en) Data transfer apparatus, data transfer device, and data transfer method in a data transfer device
US20140365632A1 (en) Interface apparatus and memory bus system
CN103546467A (en) Method for transmitting Modbus RTU protocol on TCP/IP network
CN104199795A (en) Bus framework
JP2023532689A (en) SPI-based data transmission system
EP2846470A1 (en) A method of mobile terminal internal communications
CN103077139A (en) Integrated circuit adopting internal integrated circuit bus and control method of integrated circuit
JP4001511B2 (en) IC card and control method thereof
JP5002316B2 (en) Serial bus system
EP1255375A1 (en) Plural station memory data sharing system
JP5930767B2 (en) Electronic device, communication control method
CN103049409B (en) One-way high-speed data transmission control method
JP2011160427A (en) Switching device of dual-port ethernet(r) system
US7724775B2 (en) Data transmission circuit and method for controlling the data transmission circuit
JP4938944B2 (en) Elevator information transmission control device
CN102984599B (en) Based on video acquisition transmitting device and the method for RapidIO protocol network
JP5612158B1 (en) Master-slave communication device and communication method thereof
JP2021016092A (en) Serial communication method and serial communication system
CN103841039B (en) The method and apparatus of network streaming
CN102195783B (en) Network interface card capable of sharing buffer and buffer sharing method
JP2012038260A (en) Bus transfer system
JP2008181182A (en) Synchronous serial bus system and method for controlling secondary station thereof
KR101218543B1 (en) Controller for 9-bit serial communication system
JP5155793B2 (en) Inter-bus relay device
JP2007034893A (en) Data processing module and its message transmission preparation method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100713

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100902

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100928

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101108

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20101129

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20101217

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20110704

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110627

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

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150525

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20150525

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20150525

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees